1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA_FLAGS 637 SJAVAC_SERVER_JAVA 638 JAVA_TOOL_FLAGS_SMALL 639 JAVA_FLAGS_SMALL 640 JAVA_FLAGS_BIG 641 JAVA_FLAGS 642 JOBS 643 MEMORY_SIZE 644 NUM_CORES 645 ENABLE_INTREE_EC 646 SALIB_NAME 647 HOTSPOT_MAKE_ARGS 648 LIBZIP_CAN_USE_MMAP 649 LIBDL 650 LIBM 651 USE_EXTERNAL_LCMS 652 LCMS_LIBS 653 LCMS_CFLAGS 654 USE_EXTERNAL_LIBZ 655 USE_EXTERNAL_LIBPNG 656 PNG_LIBS 657 PNG_CFLAGS 658 USE_EXTERNAL_LIBGIF 659 USE_EXTERNAL_LIBJPEG 660 LLVM_LIBS 661 LLVM_LDFLAGS 662 LLVM_CFLAGS 663 LLVM_CONFIG 664 LIBFFI_LIBS 665 LIBFFI_CFLAGS 666 ALSA_LIBS 667 ALSA_CFLAGS 668 FREETYPE_BUNDLE_LIB_PATH 669 FREETYPE_LIBS 670 FREETYPE_CFLAGS 671 CUPS_CFLAGS 672 X_EXTRA_LIBS 673 X_LIBS 674 X_PRE_LIBS 675 X_CFLAGS 676 XMKMF 677 MSVCP_DLL 678 MSVCR_DLL 679 LIBCXX 680 STATIC_CXX_SETTING 681 FIXPATH 682 GCOV_ENABLED 683 ZIP_DEBUGINFO_FILES 684 ENABLE_DEBUG_SYMBOLS 685 CFLAGS_WARNINGS_ARE_ERRORS 686 DISABLE_WARNING_PREFIX 687 WARNINGS_AS_ERRORS 688 COMPILER_SUPPORTS_TARGET_BITS_FLAG 689 ZERO_ARCHFLAG 690 LDFLAGS_TESTEXE_SUFFIX 691 LDFLAGS_TESTLIB_SUFFIX 692 LDFLAGS_TESTEXE 693 LDFLAGS_TESTLIB 694 LDFLAGS_CXX_JDK 695 LDFLAGS_JDKEXE_SUFFIX 696 LDFLAGS_JDKLIB_SUFFIX 697 LDFLAGS_JDKEXE 698 LDFLAGS_JDKLIB 699 CXXFLAGS_TESTEXE 700 CXXFLAGS_TESTLIB 701 CFLAGS_TESTEXE 702 CFLAGS_TESTLIB 703 CXXFLAGS_JDKEXE 704 CXXFLAGS_JDKLIB 705 CFLAGS_JDKEXE 706 CFLAGS_JDKLIB 707 MACOSX_VERSION_MIN 708 CXX_O_FLAG_NONE 709 CXX_O_FLAG_DEBUG 710 CXX_O_FLAG_NORM 711 CXX_O_FLAG_HI 712 CXX_O_FLAG_HIGHEST 713 C_O_FLAG_NONE 714 C_O_FLAG_DEBUG 715 C_O_FLAG_NORM 716 C_O_FLAG_HI 717 C_O_FLAG_HIGHEST 718 CXXFLAGS_DEBUG_SYMBOLS 719 CFLAGS_DEBUG_SYMBOLS 720 CXX_FLAG_DEPS 721 C_FLAG_DEPS 722 SET_SHARED_LIBRARY_MAPFILE 723 SET_SHARED_LIBRARY_NAME 724 SET_SHARED_LIBRARY_ORIGIN 725 SET_EXECUTABLE_ORIGIN 726 CXX_FLAG_REORDER 727 C_FLAG_REORDER 728 RC_FLAGS 729 AR_OUT_OPTION 730 LD_OUT_OPTION 731 EXE_OUT_OPTION 732 CC_OUT_OPTION 733 STRIPFLAGS 734 ARFLAGS 735 COMPILER_TARGET_BITS_FLAG 736 JT_HOME 737 JTREGEXE 738 USING_BROKEN_SUSE_LD 739 PACKAGE_PATH 740 USE_CLANG 741 HOTSPOT_LD 742 HOTSPOT_CXX 743 HOTSPOT_RC 744 HOTSPOT_MT 745 BUILD_SYSROOT_LDFLAGS 746 BUILD_SYSROOT_CFLAGS 747 BUILD_LD 748 BUILD_CXX 749 BUILD_CC 750 ac_ct_OBJDUMP 751 OBJDUMP 752 ac_ct_OBJCOPY 753 OBJCOPY 754 ac_ct_NM 755 ac_ct_STRIP 756 GNM 757 NM 758 STRIP 759 MSBUILD 760 DUMPBIN 761 RC 762 MT 763 LIPO 764 ac_ct_AR 765 AR 766 AS 767 LDCXX 768 LD 769 CXXCPP 770 CPP 771 ac_ct_CXX 772 CXXFLAGS 773 CXX 774 ac_ct_PROPER_COMPILER_CXX 775 PROPER_COMPILER_CXX 776 TOOLCHAIN_PATH_CXX 777 POTENTIAL_CXX 778 OBJEXT 779 EXEEXT 780 ac_ct_CC 781 CPPFLAGS 782 LDFLAGS 783 CFLAGS 784 CC 785 ac_ct_PROPER_COMPILER_CC 786 PROPER_COMPILER_CC 787 TOOLCHAIN_PATH_CC 788 POTENTIAL_CC 789 VS_LIB 790 VS_INCLUDE 791 VS_PATH 792 CYGWIN_LINK 793 SYSROOT_LDFLAGS 794 SYSROOT_CFLAGS 795 LEGACY_EXTRA_LDFLAGS 796 LEGACY_EXTRA_CXXFLAGS 797 LEGACY_EXTRA_CFLAGS 798 EXE_SUFFIX 799 OBJ_SUFFIX 800 STATIC_LIBRARY 801 SHARED_LIBRARY 802 STATIC_LIBRARY_SUFFIX 803 SHARED_LIBRARY_SUFFIX 804 LIBRARY_PREFIX 805 TOOLCHAIN_TYPE 806 BUILD_HOTSPOT 807 HOTSPOT_DIST 808 BUILD_OUTPUT 809 OVERRIDE_SRC_ROOT 810 ADD_SRC_ROOT 811 JDK_TOPDIR 812 NASHORN_TOPDIR 813 HOTSPOT_TOPDIR 814 JAXWS_TOPDIR 815 JAXP_TOPDIR 816 CORBA_TOPDIR 817 LANGTOOLS_TOPDIR 818 JAVAC_FLAGS 819 BOOT_JDK_SOURCETARGET 820 JARSIGNER 821 JAR 822 JAVAH 823 JAVAC 824 JAVA 825 BOOT_JDK 826 JAVA_CHECK 827 JAVAC_CHECK 828 COOKED_BUILD_NUMBER 829 JDK_VERSION 830 COPYRIGHT_YEAR 831 MACOSX_BUNDLE_ID_BASE 832 MACOSX_BUNDLE_NAME_BASE 833 COMPANY_NAME 834 JDK_RC_PLATFORM_NAME 835 PRODUCT_SUFFIX 836 PRODUCT_NAME 837 LAUNCHER_NAME 838 MILESTONE 839 JDK_BUILD_NUMBER 840 JDK_UPDATE_VERSION 841 JDK_MICRO_VERSION 842 JDK_MINOR_VERSION 843 JDK_MAJOR_VERSION 844 USER_RELEASE_SUFFIX 845 COMPRESS_JARS 846 UNLIMITED_CRYPTO 847 CACERTS_FILE 848 TEST_IN_BUILD 849 BUILD_HEADLESS 850 SUPPORT_HEADFUL 851 SUPPORT_HEADLESS 852 OS_VERSION_MICRO 853 OS_VERSION_MINOR 854 OS_VERSION_MAJOR 855 PKG_CONFIG 856 BASH_ARGS 857 SETFILE 858 CODESIGN 859 XATTR 860 DSYMUTIL 861 IS_GNU_TIME 862 PATCH 863 TIME 864 STAT 865 HG 866 READELF 867 OTOOL 868 LDD 869 ZIP 870 UNZIP 871 FIND_DELETE 872 OUTPUT_SYNC 873 OUTPUT_SYNC_SUPPORTED 874 MAKE 875 CHECK_TOOLSDIR_MAKE 876 CHECK_TOOLSDIR_GMAKE 877 CHECK_MAKE 878 CHECK_GMAKE 879 PKGHANDLER 880 CONFIGURESUPPORT_OUTPUTDIR 881 OUTPUT_ROOT 882 CONF_NAME 883 SPEC 884 SDKROOT 885 XCODEBUILD 886 BUILD_VARIANT_RELEASE 887 DEBUG_CLASSFILES 888 FASTDEBUG 889 VARIANT 890 DEBUG_LEVEL 891 MACOSX_UNIVERSAL 892 INCLUDE_SA 893 JVM_VARIANT_CORE 894 JVM_VARIANT_ZEROSHARK 895 JVM_VARIANT_ZERO 896 JVM_VARIANT_KERNEL 897 JVM_VARIANT_MINIMAL1 898 JVM_VARIANT_CLIENT 899 JVM_VARIANT_SERVER 900 JVM_VARIANTS 901 JVM_INTERPRETER 902 JDK_VARIANT 903 SET_OPENJDK 904 CANONICAL_TOPDIR 905 ORIGINAL_TOPDIR 906 TOPDIR 907 PATH_SEP 908 ZERO_ARCHDEF 909 DEFINE_CROSS_COMPILE_ARCH 910 LP64 911 OPENJDK_TARGET_OS_EXPORT_DIR 912 OPENJDK_TARGET_CPU_JLI_CFLAGS 913 OPENJDK_TARGET_CPU_OSARCH 914 OPENJDK_TARGET_CPU_ISADIR 915 OPENJDK_TARGET_CPU_LIBDIR 916 OPENJDK_TARGET_CPU_LEGACY_LIB 917 OPENJDK_TARGET_CPU_LEGACY 918 REQUIRED_OS_VERSION 919 REQUIRED_OS_NAME 920 COMPILE_TYPE 921 OPENJDK_TARGET_CPU_ENDIAN 922 OPENJDK_TARGET_CPU_BITS 923 OPENJDK_TARGET_CPU_ARCH 924 OPENJDK_TARGET_CPU 925 OPENJDK_TARGET_OS_ENV 926 OPENJDK_TARGET_OS_TYPE 927 OPENJDK_TARGET_OS 928 OPENJDK_BUILD_CPU_ENDIAN 929 OPENJDK_BUILD_CPU_BITS 930 OPENJDK_BUILD_CPU_ARCH 931 OPENJDK_BUILD_CPU 932 OPENJDK_BUILD_OS_ENV 933 OPENJDK_BUILD_OS_TYPE 934 OPENJDK_BUILD_OS 935 OPENJDK_BUILD_AUTOCONF_NAME 936 OPENJDK_TARGET_AUTOCONF_NAME 937 target_os 938 target_vendor 939 target_cpu 940 target 941 host_os 942 host_vendor 943 host_cpu 944 host 945 build_os 946 build_vendor 947 build_cpu 948 build 949 NICE 950 CPIO 951 DF 952 READLINK 953 CYGPATH 954 SED 955 FGREP 956 EGREP 957 GREP 958 AWK 959 XARGS 960 WHICH 961 WC 962 UNIQ 963 UNAME 964 TR 965 TOUCH 966 TEE 967 TAR 968 TAIL 969 SORT 970 SH 971 RM 972 PRINTF 973 NAWK 974 MV 975 MKTEMP 976 MKDIR 977 LS 978 LN 979 HEAD 980 FIND 981 FILE 982 EXPR 983 ECHO 984 DIRNAME 985 DIFF 986 DATE 987 CUT 988 CP 989 COMM 990 CMP 991 CHMOD 992 CAT 993 BASH 994 BASENAME 995 DATE_WHEN_CONFIGURED 996 ORIGINAL_PATH 997 CONFIGURE_COMMAND_LINE 998 target_alias 999 host_alias 1000 build_alias 1001 LIBS 1002 ECHO_T 1003 ECHO_N 1004 ECHO_C 1005 DEFS 1006 mandir 1007 localedir 1008 libdir 1009 psdir 1010 pdfdir 1011 dvidir 1012 htmldir 1013 infodir 1014 docdir 1015 oldincludedir 1016 includedir 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_target_bits 1040 enable_openjdk_only 1041 with_custom_make_dir 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_sdk_name 1054 with_conf_name 1055 with_output_sync 1056 enable_headful 1057 enable_hotspot_test_in_build 1058 with_cacerts_file 1059 enable_unlimited_crypto 1060 with_milestone 1061 with_update_version 1062 with_user_release_suffix 1063 with_build_number 1064 with_copyright_year 1065 with_boot_jdk 1066 with_add_source_root 1067 with_override_source_root 1068 with_adds_and_overrides 1069 with_override_langtools 1070 with_override_corba 1071 with_override_jaxp 1072 with_override_jaxws 1073 with_override_hotspot 1074 with_override_nashorn 1075 with_override_jdk 1076 with_import_hotspot 1077 with_toolchain_type 1078 with_extra_cflags 1079 with_extra_cxxflags 1080 with_extra_ldflags 1081 with_toolchain_version 1082 with_jtreg 1083 enable_warnings_as_errors 1084 enable_debug_symbols 1085 enable_zip_debug_info 1086 enable_native_coverage 1087 with_stdc__lib 1088 with_msvcr_dll 1089 with_msvcp_dll 1090 with_x 1091 with_cups 1092 with_cups_include 1093 with_freetype 1094 with_freetype_include 1095 with_freetype_lib 1096 with_freetype_src 1097 enable_freetype_bundling 1098 with_alsa 1099 with_alsa_include 1100 with_alsa_lib 1101 with_libffi 1102 with_libffi_include 1103 with_libffi_lib 1104 with_libjpeg 1105 with_giflib 1106 with_libpng 1107 with_zlib 1108 with_lcms 1109 with_dxsdk 1110 with_dxsdk_lib 1111 with_dxsdk_include 1112 with_num_cores 1113 with_memory_size 1114 with_jobs 1115 with_boot_jdk_jvmargs 1116 with_sjavac_server_java 1117 enable_sjavac 1118 enable_precompiled_headers 1119 enable_ccache 1120 with_ccache_dir 1121 ' 1122 ac_precious_vars='build_alias 1123 host_alias 1124 target_alias 1125 BASENAME 1126 BASH 1127 CAT 1128 CHMOD 1129 CMP 1130 COMM 1131 CP 1132 CUT 1133 DATE 1134 DIFF 1135 DIRNAME 1136 ECHO 1137 EXPR 1138 FILE 1139 FIND 1140 HEAD 1141 LN 1142 LS 1143 MKDIR 1144 MKTEMP 1145 MV 1146 NAWK 1147 PRINTF 1148 RM 1149 SH 1150 SORT 1151 TAIL 1152 TAR 1153 TEE 1154 TOUCH 1155 TR 1156 UNAME 1157 UNIQ 1158 WC 1159 WHICH 1160 XARGS 1161 AWK 1162 GREP 1163 EGREP 1164 FGREP 1165 SED 1166 CYGPATH 1167 READLINK 1168 DF 1169 CPIO 1170 NICE 1171 UNZIP 1172 ZIP 1173 LDD 1174 OTOOL 1175 READELF 1176 HG 1177 STAT 1178 TIME 1179 PATCH 1180 DSYMUTIL 1181 XATTR 1182 CODESIGN 1183 SETFILE 1184 PKG_CONFIG 1185 JAVA 1186 JAVAC 1187 JAVAH 1188 JAR 1189 JARSIGNER 1190 CC 1191 CFLAGS 1192 LDFLAGS 1193 LIBS 1194 CPPFLAGS 1195 CXX 1196 CXXFLAGS 1197 CCC 1198 CPP 1199 CXXCPP 1200 AS 1201 AR 1202 LIPO 1203 STRIP 1204 NM 1205 GNM 1206 OBJCOPY 1207 OBJDUMP 1208 BUILD_CC 1209 BUILD_CXX 1210 BUILD_LD 1211 JTREGEXE 1212 XMKMF 1213 FREETYPE_CFLAGS 1214 FREETYPE_LIBS 1215 ALSA_CFLAGS 1216 ALSA_LIBS 1217 LIBFFI_CFLAGS 1218 LIBFFI_LIBS 1219 PNG_CFLAGS 1220 PNG_LIBS 1221 LCMS_CFLAGS 1222 LCMS_LIBS 1223 CCACHE' 1224 1225 1226 # Initialize some variables set by options. 1227 ac_init_help= 1228 ac_init_version=false 1229 ac_unrecognized_opts= 1230 ac_unrecognized_sep= 1231 # The variables have the same names as the options, with 1232 # dashes changed to underlines. 1233 cache_file=/dev/null 1234 exec_prefix=NONE 1235 no_create= 1236 no_recursion= 1237 prefix=NONE 1238 program_prefix=NONE 1239 program_suffix=NONE 1240 program_transform_name=s,x,x, 1241 silent= 1242 site= 1243 srcdir= 1244 verbose= 1245 x_includes=NONE 1246 x_libraries=NONE 1247 1248 # Installation directory options. 1249 # These are left unexpanded so users can "make install exec_prefix=/foo" 1250 # and all the variables that are supposed to be based on exec_prefix 1251 # by default will actually change. 1252 # Use braces instead of parens because sh, perl, etc. also accept them. 1253 # (The list follows the same order as the GNU Coding Standards.) 1254 bindir='${exec_prefix}/bin' 1255 sbindir='${exec_prefix}/sbin' 1256 libexecdir='${exec_prefix}/libexec' 1257 datarootdir='${prefix}/share' 1258 datadir='${datarootdir}' 1259 sysconfdir='${prefix}/etc' 1260 sharedstatedir='${prefix}/com' 1261 localstatedir='${prefix}/var' 1262 includedir='${prefix}/include' 1263 oldincludedir='/usr/include' 1264 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1265 infodir='${datarootdir}/info' 1266 htmldir='${docdir}' 1267 dvidir='${docdir}' 1268 pdfdir='${docdir}' 1269 psdir='${docdir}' 1270 libdir='${exec_prefix}/lib' 1271 localedir='${datarootdir}/locale' 1272 mandir='${datarootdir}/man' 1273 1274 ac_prev= 1275 ac_dashdash= 1276 for ac_option 1277 do 1278 # If the previous option needs an argument, assign it. 1279 if test -n "$ac_prev"; then 1280 eval $ac_prev=\$ac_option 1281 ac_prev= 1282 continue 1283 fi 1284 1285 case $ac_option in 1286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1287 *=) ac_optarg= ;; 1288 *) ac_optarg=yes ;; 1289 esac 1290 1291 # Accept the important Cygnus configure options, so we can diagnose typos. 1292 1293 case $ac_dashdash$ac_option in 1294 --) 1295 ac_dashdash=yes ;; 1296 1297 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1298 ac_prev=bindir ;; 1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1300 bindir=$ac_optarg ;; 1301 1302 -build | --build | --buil | --bui | --bu) 1303 ac_prev=build_alias ;; 1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1305 build_alias=$ac_optarg ;; 1306 1307 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1309 ac_prev=cache_file ;; 1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1312 cache_file=$ac_optarg ;; 1313 1314 --config-cache | -C) 1315 cache_file=config.cache ;; 1316 1317 -datadir | --datadir | --datadi | --datad) 1318 ac_prev=datadir ;; 1319 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1320 datadir=$ac_optarg ;; 1321 1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1323 | --dataroo | --dataro | --datar) 1324 ac_prev=datarootdir ;; 1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1327 datarootdir=$ac_optarg ;; 1328 1329 -disable-* | --disable-*) 1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1331 # Reject names that are not valid shell variable names. 1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1333 as_fn_error $? "invalid feature name: $ac_useropt" 1334 ac_useropt_orig=$ac_useropt 1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1336 case $ac_user_opts in 1337 *" 1338 "enable_$ac_useropt" 1339 "*) ;; 1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1341 ac_unrecognized_sep=', ';; 1342 esac 1343 eval enable_$ac_useropt=no ;; 1344 1345 -docdir | --docdir | --docdi | --doc | --do) 1346 ac_prev=docdir ;; 1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1348 docdir=$ac_optarg ;; 1349 1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1351 ac_prev=dvidir ;; 1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1353 dvidir=$ac_optarg ;; 1354 1355 -enable-* | --enable-*) 1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1357 # Reject names that are not valid shell variable names. 1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1359 as_fn_error $? "invalid feature name: $ac_useropt" 1360 ac_useropt_orig=$ac_useropt 1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1362 case $ac_user_opts in 1363 *" 1364 "enable_$ac_useropt" 1365 "*) ;; 1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1367 ac_unrecognized_sep=', ';; 1368 esac 1369 eval enable_$ac_useropt=\$ac_optarg ;; 1370 1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1373 | --exec | --exe | --ex) 1374 ac_prev=exec_prefix ;; 1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1377 | --exec=* | --exe=* | --ex=*) 1378 exec_prefix=$ac_optarg ;; 1379 1380 -gas | --gas | --ga | --g) 1381 # Obsolete; use --with-gas. 1382 with_gas=yes ;; 1383 1384 -help | --help | --hel | --he | -h) 1385 ac_init_help=long ;; 1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1387 ac_init_help=recursive ;; 1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1389 ac_init_help=short ;; 1390 1391 -host | --host | --hos | --ho) 1392 ac_prev=host_alias ;; 1393 -host=* | --host=* | --hos=* | --ho=*) 1394 host_alias=$ac_optarg ;; 1395 1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1397 ac_prev=htmldir ;; 1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1399 | --ht=*) 1400 htmldir=$ac_optarg ;; 1401 1402 -includedir | --includedir | --includedi | --included | --include \ 1403 | --includ | --inclu | --incl | --inc) 1404 ac_prev=includedir ;; 1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1406 | --includ=* | --inclu=* | --incl=* | --inc=*) 1407 includedir=$ac_optarg ;; 1408 1409 -infodir | --infodir | --infodi | --infod | --info | --inf) 1410 ac_prev=infodir ;; 1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1412 infodir=$ac_optarg ;; 1413 1414 -libdir | --libdir | --libdi | --libd) 1415 ac_prev=libdir ;; 1416 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1417 libdir=$ac_optarg ;; 1418 1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1420 | --libexe | --libex | --libe) 1421 ac_prev=libexecdir ;; 1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1423 | --libexe=* | --libex=* | --libe=*) 1424 libexecdir=$ac_optarg ;; 1425 1426 -localedir | --localedir | --localedi | --localed | --locale) 1427 ac_prev=localedir ;; 1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1429 localedir=$ac_optarg ;; 1430 1431 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1432 | --localstate | --localstat | --localsta | --localst | --locals) 1433 ac_prev=localstatedir ;; 1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1436 localstatedir=$ac_optarg ;; 1437 1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1439 ac_prev=mandir ;; 1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1441 mandir=$ac_optarg ;; 1442 1443 -nfp | --nfp | --nf) 1444 # Obsolete; use --without-fp. 1445 with_fp=no ;; 1446 1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1448 | --no-cr | --no-c | -n) 1449 no_create=yes ;; 1450 1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1453 no_recursion=yes ;; 1454 1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1457 | --oldin | --oldi | --old | --ol | --o) 1458 ac_prev=oldincludedir ;; 1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1462 oldincludedir=$ac_optarg ;; 1463 1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1465 ac_prev=prefix ;; 1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1467 prefix=$ac_optarg ;; 1468 1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1470 | --program-pre | --program-pr | --program-p) 1471 ac_prev=program_prefix ;; 1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1474 program_prefix=$ac_optarg ;; 1475 1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1477 | --program-suf | --program-su | --program-s) 1478 ac_prev=program_suffix ;; 1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1481 program_suffix=$ac_optarg ;; 1482 1483 -program-transform-name | --program-transform-name \ 1484 | --program-transform-nam | --program-transform-na \ 1485 | --program-transform-n | --program-transform- \ 1486 | --program-transform | --program-transfor \ 1487 | --program-transfo | --program-transf \ 1488 | --program-trans | --program-tran \ 1489 | --progr-tra | --program-tr | --program-t) 1490 ac_prev=program_transform_name ;; 1491 -program-transform-name=* | --program-transform-name=* \ 1492 | --program-transform-nam=* | --program-transform-na=* \ 1493 | --program-transform-n=* | --program-transform-=* \ 1494 | --program-transform=* | --program-transfor=* \ 1495 | --program-transfo=* | --program-transf=* \ 1496 | --program-trans=* | --program-tran=* \ 1497 | --progr-tra=* | --program-tr=* | --program-t=*) 1498 program_transform_name=$ac_optarg ;; 1499 1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1501 ac_prev=pdfdir ;; 1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1503 pdfdir=$ac_optarg ;; 1504 1505 -psdir | --psdir | --psdi | --psd | --ps) 1506 ac_prev=psdir ;; 1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1508 psdir=$ac_optarg ;; 1509 1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1511 | -silent | --silent | --silen | --sile | --sil) 1512 silent=yes ;; 1513 1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1515 ac_prev=sbindir ;; 1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1517 | --sbi=* | --sb=*) 1518 sbindir=$ac_optarg ;; 1519 1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1522 | --sharedst | --shareds | --shared | --share | --shar \ 1523 | --sha | --sh) 1524 ac_prev=sharedstatedir ;; 1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1528 | --sha=* | --sh=*) 1529 sharedstatedir=$ac_optarg ;; 1530 1531 -site | --site | --sit) 1532 ac_prev=site ;; 1533 -site=* | --site=* | --sit=*) 1534 site=$ac_optarg ;; 1535 1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1537 ac_prev=srcdir ;; 1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1539 srcdir=$ac_optarg ;; 1540 1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1542 | --syscon | --sysco | --sysc | --sys | --sy) 1543 ac_prev=sysconfdir ;; 1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1546 sysconfdir=$ac_optarg ;; 1547 1548 -target | --target | --targe | --targ | --tar | --ta | --t) 1549 ac_prev=target_alias ;; 1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1551 target_alias=$ac_optarg ;; 1552 1553 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1554 verbose=yes ;; 1555 1556 -version | --version | --versio | --versi | --vers | -V) 1557 ac_init_version=: ;; 1558 1559 -with-* | --with-*) 1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1561 # Reject names that are not valid shell variable names. 1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1563 as_fn_error $? "invalid package name: $ac_useropt" 1564 ac_useropt_orig=$ac_useropt 1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1566 case $ac_user_opts in 1567 *" 1568 "with_$ac_useropt" 1569 "*) ;; 1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1571 ac_unrecognized_sep=', ';; 1572 esac 1573 eval with_$ac_useropt=\$ac_optarg ;; 1574 1575 -without-* | --without-*) 1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1577 # Reject names that are not valid shell variable names. 1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1579 as_fn_error $? "invalid package name: $ac_useropt" 1580 ac_useropt_orig=$ac_useropt 1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1582 case $ac_user_opts in 1583 *" 1584 "with_$ac_useropt" 1585 "*) ;; 1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1587 ac_unrecognized_sep=', ';; 1588 esac 1589 eval with_$ac_useropt=no ;; 1590 1591 --x) 1592 # Obsolete; use --with-x. 1593 with_x=yes ;; 1594 1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1596 | --x-incl | --x-inc | --x-in | --x-i) 1597 ac_prev=x_includes ;; 1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1600 x_includes=$ac_optarg ;; 1601 1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1604 ac_prev=x_libraries ;; 1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1607 x_libraries=$ac_optarg ;; 1608 1609 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1610 Try \`$0 --help' for more information" 1611 ;; 1612 1613 *=*) 1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1615 # Reject names that are not valid shell variable names. 1616 case $ac_envvar in #( 1617 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1619 esac 1620 eval $ac_envvar=\$ac_optarg 1621 export $ac_envvar ;; 1622 1623 *) 1624 # FIXME: should be removed in autoconf 3.0. 1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1629 ;; 1630 1631 esac 1632 done 1633 1634 if test -n "$ac_prev"; then 1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1636 as_fn_error $? "missing argument to $ac_option" 1637 fi 1638 1639 if test -n "$ac_unrecognized_opts"; then 1640 case $enable_option_checking in 1641 no) ;; 1642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1644 esac 1645 fi 1646 1647 # Check all directory arguments for consistency. 1648 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1649 datadir sysconfdir sharedstatedir localstatedir includedir \ 1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1651 libdir localedir mandir 1652 do 1653 eval ac_val=\$$ac_var 1654 # Remove trailing slashes. 1655 case $ac_val in 1656 */ ) 1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1658 eval $ac_var=\$ac_val;; 1659 esac 1660 # Be sure to have absolute directory names. 1661 case $ac_val in 1662 [\\/$]* | ?:[\\/]* ) continue;; 1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1664 esac 1665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1666 done 1667 1668 # There might be people who depend on the old broken behavior: `$host' 1669 # used to hold the argument of --host etc. 1670 # FIXME: To remove some day. 1671 build=$build_alias 1672 host=$host_alias 1673 target=$target_alias 1674 1675 # FIXME: To remove some day. 1676 if test "x$host_alias" != x; then 1677 if test "x$build_alias" = x; then 1678 cross_compiling=maybe 1679 elif test "x$build_alias" != "x$host_alias"; then 1680 cross_compiling=yes 1681 fi 1682 fi 1683 1684 ac_tool_prefix= 1685 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1686 1687 test "$silent" = yes && exec 6>/dev/null 1688 1689 1690 ac_pwd=`pwd` && test -n "$ac_pwd" && 1691 ac_ls_di=`ls -di .` && 1692 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1693 as_fn_error $? "working directory cannot be determined" 1694 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1695 as_fn_error $? "pwd does not report name of working directory" 1696 1697 1698 # Find the source files, if location was not specified. 1699 if test -z "$srcdir"; then 1700 ac_srcdir_defaulted=yes 1701 # Try the directory containing this script, then the parent directory. 1702 ac_confdir=`$as_dirname -- "$as_myself" || 1703 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1704 X"$as_myself" : 'X\(//\)[^/]' \| \ 1705 X"$as_myself" : 'X\(//\)$' \| \ 1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1707 $as_echo X"$as_myself" | 1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1709 s//\1/ 1710 q 1711 } 1712 /^X\(\/\/\)[^/].*/{ 1713 s//\1/ 1714 q 1715 } 1716 /^X\(\/\/\)$/{ 1717 s//\1/ 1718 q 1719 } 1720 /^X\(\/\).*/{ 1721 s//\1/ 1722 q 1723 } 1724 s/.*/./; q'` 1725 srcdir=$ac_confdir 1726 if test ! -r "$srcdir/$ac_unique_file"; then 1727 srcdir=.. 1728 fi 1729 else 1730 ac_srcdir_defaulted=no 1731 fi 1732 if test ! -r "$srcdir/$ac_unique_file"; then 1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1735 fi 1736 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1737 ac_abs_confdir=`( 1738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1739 pwd)` 1740 # When building in place, set srcdir=. 1741 if test "$ac_abs_confdir" = "$ac_pwd"; then 1742 srcdir=. 1743 fi 1744 # Remove unnecessary trailing slashes from srcdir. 1745 # Double slashes in file names in object file debugging info 1746 # mess up M-x gdb in Emacs. 1747 case $srcdir in 1748 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1749 esac 1750 for ac_var in $ac_precious_vars; do 1751 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1752 eval ac_env_${ac_var}_value=\$${ac_var} 1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1754 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1755 done 1756 1757 # 1758 # Report the --help message. 1759 # 1760 if test "$ac_init_help" = "long"; then 1761 # Omit some internal or obsolete options to make the list less imposing. 1762 # This message is too long to be a string in the A/UX 3.1 sh. 1763 cat <<_ACEOF 1764 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1765 1766 Usage: $0 [OPTION]... [VAR=VALUE]... 1767 1768 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1769 VAR=VALUE. See below for descriptions of some of the useful variables. 1770 1771 Defaults for the options are specified in brackets. 1772 1773 Configuration: 1774 -h, --help display this help and exit 1775 --help=short display options specific to this package 1776 --help=recursive display the short help of all the included packages 1777 -V, --version display version information and exit 1778 -q, --quiet, --silent do not print \`checking ...' messages 1779 --cache-file=FILE cache test results in FILE [disabled] 1780 -C, --config-cache alias for \`--cache-file=config.cache' 1781 -n, --no-create do not create output files 1782 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1783 1784 Installation directories: 1785 --prefix=PREFIX install architecture-independent files in PREFIX 1786 [$ac_default_prefix] 1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1788 [PREFIX] 1789 1790 By default, \`make install' will install all the files in 1791 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1792 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1793 for instance \`--prefix=\$HOME'. 1794 1795 For better control, use the options below. 1796 1797 Fine tuning of the installation directories: 1798 --bindir=DIR user executables [EPREFIX/bin] 1799 --sbindir=DIR system admin executables [EPREFIX/sbin] 1800 --libexecdir=DIR program executables [EPREFIX/libexec] 1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1804 --libdir=DIR object code libraries [EPREFIX/lib] 1805 --includedir=DIR C header files [PREFIX/include] 1806 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1809 --infodir=DIR info documentation [DATAROOTDIR/info] 1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1811 --mandir=DIR man documentation [DATAROOTDIR/man] 1812 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1813 --htmldir=DIR html documentation [DOCDIR] 1814 --dvidir=DIR dvi documentation [DOCDIR] 1815 --pdfdir=DIR pdf documentation [DOCDIR] 1816 --psdir=DIR ps documentation [DOCDIR] 1817 _ACEOF 1818 1819 cat <<\_ACEOF 1820 1821 X features: 1822 --x-includes=DIR X include files are in DIR 1823 --x-libraries=DIR X library files are in DIR 1824 1825 System types: 1826 --build=BUILD configure for building on BUILD [guessed] 1827 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1828 --target=TARGET configure for building compilers for TARGET [HOST] 1829 _ACEOF 1830 fi 1831 1832 if test -n "$ac_init_help"; then 1833 case $ac_init_help in 1834 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1835 esac 1836 cat <<\_ACEOF 1837 1838 Optional Features: 1839 --disable-option-checking ignore unrecognized --enable/--with options 1840 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1841 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1842 --enable-openjdk-only suppress building custom source even if present 1843 [disabled] 1844 --enable-debug set the debug level to fastdebug (shorthand for 1845 --with-debug-level=fastdebug) [disabled] 1846 --disable-headful disable building headful support (graphical UI 1847 support) [enabled] 1848 --enable-hotspot-test-in-build 1849 run the Queens test after Hotspot build [disabled] 1850 --enable-unlimited-crypto 1851 Enable unlimited crypto policy [disabled] 1852 --disable-warnings-as-errors 1853 do not consider native warnings to be an error 1854 [enabled] 1855 --disable-debug-symbols disable generation of debug symbols [enabled] 1856 --disable-zip-debug-info 1857 disable zipping of debug-info files [enabled] 1858 --enable-native-coverage 1859 enable native compilation with code coverage 1860 data[disabled] 1861 --disable-freetype-bundling 1862 disable bundling of the freetype library with the 1863 build result [enabled on Windows or when using 1864 --with-freetype, disabled otherwise] 1865 --enable-sjavac use sjavac to do fast incremental compiles 1866 [disabled] 1867 --disable-precompiled-headers 1868 disable using precompiled headers when compiling C++ 1869 [enabled] 1870 --enable-ccache enable using ccache to speed up recompilations 1871 [disabled] 1872 1873 Optional Packages: 1874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1876 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1877 support it), e.g. --with-target-bits=32 [guessed] 1878 --with-custom-make-dir Deprecated. Option is kept for backwards 1879 compatibility and is ignored 1880 --with-jdk-variant JDK variant to build (normal) [normal] 1881 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1882 --with-jvm-variants JVM variants (separated by commas) to build (server, 1883 client, minimal1, kernel, zero, zeroshark, core) 1884 [server] 1885 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1886 optimized (HotSpot build only)) [release] 1887 --with-devkit use this devkit for compilers, tools and resources 1888 --with-sys-root alias for --with-sysroot for backwards compatability 1889 --with-sysroot use this directory as sysroot 1890 --with-tools-dir alias for --with-toolchain-path for backwards 1891 compatibility 1892 --with-toolchain-path prepend these directories when searching for 1893 toolchain binaries (compilers etc) 1894 --with-extra-path prepend these directories to the default path 1895 --with-sdk-name use the platform SDK of the given name. [macosx] 1896 --with-conf-name use this as the name of the configuration [generated 1897 from important configuration options] 1898 --with-output-sync set make output sync type if supported by make. 1899 [recurse] 1900 --with-cacerts-file specify alternative cacerts file 1901 --with-milestone Set milestone value for build [internal] 1902 --with-update-version Set update version value for build [b00] 1903 --with-user-release-suffix 1904 Add a custom string to the version string if build 1905 number is not set.[username_builddateb00] 1906 --with-build-number Set build number value for build [b00] 1907 --with-copyright-year Set copyright year value for build [current year] 1908 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1909 --with-add-source-root for each and every source directory, look in this 1910 additional source root for the same directory; if it 1911 exists and have files in it, include it in the build 1912 --with-override-source-root 1913 for each and every source directory, look in this 1914 override source root for the same directory; if it 1915 exists, use that directory instead and ignore the 1916 directory in the original source root 1917 --with-adds-and-overrides 1918 use the subdirs 'adds' and 'overrides' in the 1919 specified directory as add-source-root and 1920 override-source-root 1921 --with-override-langtools 1922 use this langtools dir for the build 1923 --with-override-corba use this corba dir for the build 1924 --with-override-jaxp use this jaxp dir for the build 1925 --with-override-jaxws use this jaxws dir for the build 1926 --with-override-hotspot use this hotspot dir for the build 1927 --with-override-nashorn use this nashorn dir for the build 1928 --with-override-jdk use this jdk dir for the build 1929 --with-import-hotspot import hotspot binaries from this jdk image or 1930 hotspot build dist dir instead of building from 1931 source 1932 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1933 to show possible values [platform dependent] 1934 --with-extra-cflags extra flags to be used when compiling jdk c-files 1935 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1936 --with-extra-ldflags extra flags to be used when linking jdk 1937 --with-toolchain-version 1938 the version of the toolchain to look for, use 1939 '--help' to show possible values [platform 1940 dependent] 1941 --with-jtreg Regression Test Harness [probed] 1942 --with-stdc++lib=<static>,<dynamic>,<default> 1943 force linking of the C++ runtime on Linux to either 1944 static or dynamic, default is static with dynamic as 1945 fallback 1946 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 1947 (Windows only) [probed] 1948 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 1949 (Windows only) [probed] 1950 --with-x use the X Window System 1951 --with-cups specify prefix directory for the cups package 1952 (expecting the headers under PATH/include) 1953 --with-cups-include specify directory for the cups include files 1954 --with-freetype specify prefix directory for the freetype package 1955 (expecting the libraries under PATH/lib and the 1956 headers under PATH/include) 1957 --with-freetype-include specify directory for the freetype include files 1958 --with-freetype-lib specify directory for the freetype library 1959 --with-freetype-src specify directory with freetype sources to 1960 automatically build the library (experimental, 1961 Windows-only) 1962 --with-alsa specify prefix directory for the alsa package 1963 (expecting the libraries under PATH/lib and the 1964 headers under PATH/include) 1965 --with-alsa-include specify directory for the alsa include files 1966 --with-alsa-lib specify directory for the alsa library 1967 --with-libffi specify prefix directory for the libffi package 1968 (expecting the libraries under PATH/lib and the 1969 headers under PATH/include) 1970 --with-libffi-include specify directory for the libffi include files 1971 --with-libffi-lib specify directory for the libffi library 1972 --with-libjpeg use libjpeg from build system or OpenJDK source 1973 (system, bundled) [bundled] 1974 --with-giflib use giflib from build system or OpenJDK source 1975 (system, bundled) [bundled] 1976 --with-libpng use libpng from build system or OpenJDK source 1977 (system, bundled) [bundled] 1978 --with-zlib use zlib from build system or OpenJDK source 1979 (system, bundled) [bundled] 1980 --with-lcms use lcms2 from build system or OpenJDK source 1981 (system, bundled) [bundled] 1982 --with-dxsdk Deprecated. Option is kept for backwards 1983 compatibility and is ignored 1984 --with-dxsdk-lib Deprecated. Option is kept for backwards 1985 compatibility and is ignored 1986 --with-dxsdk-include Deprecated. Option is kept for backwards 1987 compatibility and is ignored 1988 --with-num-cores number of cores in the build system, e.g. 1989 --with-num-cores=8 [probed] 1990 --with-memory-size memory (in MB) available in the build system, e.g. 1991 --with-memory-size=1024 [probed] 1992 --with-jobs number of parallel jobs to let make run [calculated 1993 based on cores and memory] 1994 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1995 invocations of boot JDK, overriding the default 1996 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1997 -enableassertions" 1998 --with-sjavac-server-java 1999 use this java binary for running the sjavac 2000 background server [Boot JDK java] 2001 --with-ccache-dir where to store ccache files [~/.ccache] 2002 2003 Some influential environment variables: 2004 BASENAME Override default value for BASENAME 2005 BASH Override default value for BASH 2006 CAT Override default value for CAT 2007 CHMOD Override default value for CHMOD 2008 CMP Override default value for CMP 2009 COMM Override default value for COMM 2010 CP Override default value for CP 2011 CUT Override default value for CUT 2012 DATE Override default value for DATE 2013 DIFF Override default value for DIFF 2014 DIRNAME Override default value for DIRNAME 2015 ECHO Override default value for ECHO 2016 EXPR Override default value for EXPR 2017 FILE Override default value for FILE 2018 FIND Override default value for FIND 2019 HEAD Override default value for HEAD 2020 LN Override default value for LN 2021 LS Override default value for LS 2022 MKDIR Override default value for MKDIR 2023 MKTEMP Override default value for MKTEMP 2024 MV Override default value for MV 2025 NAWK Override default value for NAWK 2026 PRINTF Override default value for PRINTF 2027 RM Override default value for RM 2028 SH Override default value for SH 2029 SORT Override default value for SORT 2030 TAIL Override default value for TAIL 2031 TAR Override default value for TAR 2032 TEE Override default value for TEE 2033 TOUCH Override default value for TOUCH 2034 TR Override default value for TR 2035 UNAME Override default value for UNAME 2036 UNIQ Override default value for UNIQ 2037 WC Override default value for WC 2038 WHICH Override default value for WHICH 2039 XARGS Override default value for XARGS 2040 AWK Override default value for AWK 2041 GREP Override default value for GREP 2042 EGREP Override default value for EGREP 2043 FGREP Override default value for FGREP 2044 SED Override default value for SED 2045 CYGPATH Override default value for CYGPATH 2046 READLINK Override default value for READLINK 2047 DF Override default value for DF 2048 CPIO Override default value for CPIO 2049 NICE Override default value for NICE 2050 UNZIP Override default value for UNZIP 2051 ZIP Override default value for ZIP 2052 LDD Override default value for LDD 2053 OTOOL Override default value for OTOOL 2054 READELF Override default value for READELF 2055 HG Override default value for HG 2056 STAT Override default value for STAT 2057 TIME Override default value for TIME 2058 PATCH Override default value for PATCH 2059 DSYMUTIL Override default value for DSYMUTIL 2060 XATTR Override default value for XATTR 2061 CODESIGN Override default value for CODESIGN 2062 SETFILE Override default value for SETFILE 2063 PKG_CONFIG path to pkg-config utility 2064 JAVA Override default value for JAVA 2065 JAVAC Override default value for JAVAC 2066 JAVAH Override default value for JAVAH 2067 JAR Override default value for JAR 2068 JARSIGNER Override default value for JARSIGNER 2069 CC C compiler command 2070 CFLAGS C compiler flags 2071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2072 nonstandard directory <lib dir> 2073 LIBS libraries to pass to the linker, e.g. -l<library> 2074 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2075 you have headers in a nonstandard directory <include dir> 2076 CXX C++ compiler command 2077 CXXFLAGS C++ compiler flags 2078 CPP C preprocessor 2079 CXXCPP C++ preprocessor 2080 AS Override default value for AS 2081 AR Override default value for AR 2082 LIPO Override default value for LIPO 2083 STRIP Override default value for STRIP 2084 NM Override default value for NM 2085 GNM Override default value for GNM 2086 OBJCOPY Override default value for OBJCOPY 2087 OBJDUMP Override default value for OBJDUMP 2088 BUILD_CC Override default value for BUILD_CC 2089 BUILD_CXX Override default value for BUILD_CXX 2090 BUILD_LD Override default value for BUILD_LD 2091 JTREGEXE Override default value for JTREGEXE 2092 XMKMF Path to xmkmf, Makefile generator for X Window System 2093 FREETYPE_CFLAGS 2094 C compiler flags for FREETYPE, overriding pkg-config 2095 FREETYPE_LIBS 2096 linker flags for FREETYPE, overriding pkg-config 2097 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2098 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2099 LIBFFI_CFLAGS 2100 C compiler flags for LIBFFI, overriding pkg-config 2101 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2102 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2103 PNG_LIBS linker flags for PNG, overriding pkg-config 2104 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2105 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2106 CCACHE Override default value for CCACHE 2107 2108 Use these variables to override the choices made by `configure' or to help 2109 it to find libraries and programs with nonstandard names/locations. 2110 2111 Report bugs to <build-dev@openjdk.java.net>. 2112 OpenJDK home page: <http://openjdk.java.net>. 2113 _ACEOF 2114 ac_status=$? 2115 fi 2116 2117 if test "$ac_init_help" = "recursive"; then 2118 # If there are subdirs, report their specific --help. 2119 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2120 test -d "$ac_dir" || 2121 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2122 continue 2123 ac_builddir=. 2124 2125 case "$ac_dir" in 2126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2127 *) 2128 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2129 # A ".." for each directory in $ac_dir_suffix. 2130 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2131 case $ac_top_builddir_sub in 2132 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2133 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2134 esac ;; 2135 esac 2136 ac_abs_top_builddir=$ac_pwd 2137 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2138 # for backward compatibility: 2139 ac_top_builddir=$ac_top_build_prefix 2140 2141 case $srcdir in 2142 .) # We are building in place. 2143 ac_srcdir=. 2144 ac_top_srcdir=$ac_top_builddir_sub 2145 ac_abs_top_srcdir=$ac_pwd ;; 2146 [\\/]* | ?:[\\/]* ) # Absolute name. 2147 ac_srcdir=$srcdir$ac_dir_suffix; 2148 ac_top_srcdir=$srcdir 2149 ac_abs_top_srcdir=$srcdir ;; 2150 *) # Relative name. 2151 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2152 ac_top_srcdir=$ac_top_build_prefix$srcdir 2153 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2154 esac 2155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2156 2157 cd "$ac_dir" || { ac_status=$?; continue; } 2158 # Check for guested configure. 2159 if test -f "$ac_srcdir/configure.gnu"; then 2160 echo && 2161 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2162 elif test -f "$ac_srcdir/configure"; then 2163 echo && 2164 $SHELL "$ac_srcdir/configure" --help=recursive 2165 else 2166 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2167 fi || ac_status=$? 2168 cd "$ac_pwd" || { ac_status=$?; break; } 2169 done 2170 fi 2171 2172 test -n "$ac_init_help" && exit $ac_status 2173 if $ac_init_version; then 2174 cat <<\_ACEOF 2175 OpenJDK configure jdk9 2176 generated by GNU Autoconf 2.69 2177 2178 Copyright (C) 2012 Free Software Foundation, Inc. 2179 This configure script is free software; the Free Software Foundation 2180 gives unlimited permission to copy, distribute and modify it. 2181 _ACEOF 2182 exit 2183 fi 2184 2185 ## ------------------------ ## 2186 ## Autoconf initialization. ## 2187 ## ------------------------ ## 2188 2189 # ac_fn_c_try_compile LINENO 2190 # -------------------------- 2191 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2192 ac_fn_c_try_compile () 2193 { 2194 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2195 rm -f conftest.$ac_objext 2196 if { { ac_try="$ac_compile" 2197 case "(($ac_try" in 2198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2199 *) ac_try_echo=$ac_try;; 2200 esac 2201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2202 $as_echo "$ac_try_echo"; } >&5 2203 (eval "$ac_compile") 2>conftest.err 2204 ac_status=$? 2205 if test -s conftest.err; then 2206 grep -v '^ *+' conftest.err >conftest.er1 2207 cat conftest.er1 >&5 2208 mv -f conftest.er1 conftest.err 2209 fi 2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2211 test $ac_status = 0; } && { 2212 test -z "$ac_c_werror_flag" || 2213 test ! -s conftest.err 2214 } && test -s conftest.$ac_objext; then : 2215 ac_retval=0 2216 else 2217 $as_echo "$as_me: failed program was:" >&5 2218 sed 's/^/| /' conftest.$ac_ext >&5 2219 2220 ac_retval=1 2221 fi 2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2223 as_fn_set_status $ac_retval 2224 2225 } # ac_fn_c_try_compile 2226 2227 # ac_fn_cxx_try_compile LINENO 2228 # ---------------------------- 2229 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2230 ac_fn_cxx_try_compile () 2231 { 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 rm -f conftest.$ac_objext 2234 if { { ac_try="$ac_compile" 2235 case "(($ac_try" in 2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2237 *) ac_try_echo=$ac_try;; 2238 esac 2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2240 $as_echo "$ac_try_echo"; } >&5 2241 (eval "$ac_compile") 2>conftest.err 2242 ac_status=$? 2243 if test -s conftest.err; then 2244 grep -v '^ *+' conftest.err >conftest.er1 2245 cat conftest.er1 >&5 2246 mv -f conftest.er1 conftest.err 2247 fi 2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2249 test $ac_status = 0; } && { 2250 test -z "$ac_cxx_werror_flag" || 2251 test ! -s conftest.err 2252 } && test -s conftest.$ac_objext; then : 2253 ac_retval=0 2254 else 2255 $as_echo "$as_me: failed program was:" >&5 2256 sed 's/^/| /' conftest.$ac_ext >&5 2257 2258 ac_retval=1 2259 fi 2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2261 as_fn_set_status $ac_retval 2262 2263 } # ac_fn_cxx_try_compile 2264 2265 # ac_fn_c_try_cpp LINENO 2266 # ---------------------- 2267 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2268 ac_fn_c_try_cpp () 2269 { 2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2271 if { { ac_try="$ac_cpp conftest.$ac_ext" 2272 case "(($ac_try" in 2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2274 *) ac_try_echo=$ac_try;; 2275 esac 2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2277 $as_echo "$ac_try_echo"; } >&5 2278 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2279 ac_status=$? 2280 if test -s conftest.err; then 2281 grep -v '^ *+' conftest.err >conftest.er1 2282 cat conftest.er1 >&5 2283 mv -f conftest.er1 conftest.err 2284 fi 2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2286 test $ac_status = 0; } > conftest.i && { 2287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2288 test ! -s conftest.err 2289 }; then : 2290 ac_retval=0 2291 else 2292 $as_echo "$as_me: failed program was:" >&5 2293 sed 's/^/| /' conftest.$ac_ext >&5 2294 2295 ac_retval=1 2296 fi 2297 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2298 as_fn_set_status $ac_retval 2299 2300 } # ac_fn_c_try_cpp 2301 2302 # ac_fn_cxx_try_cpp LINENO 2303 # ------------------------ 2304 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2305 ac_fn_cxx_try_cpp () 2306 { 2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2308 if { { ac_try="$ac_cpp conftest.$ac_ext" 2309 case "(($ac_try" in 2310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2311 *) ac_try_echo=$ac_try;; 2312 esac 2313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2314 $as_echo "$ac_try_echo"; } >&5 2315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2316 ac_status=$? 2317 if test -s conftest.err; then 2318 grep -v '^ *+' conftest.err >conftest.er1 2319 cat conftest.er1 >&5 2320 mv -f conftest.er1 conftest.err 2321 fi 2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2323 test $ac_status = 0; } > conftest.i && { 2324 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2325 test ! -s conftest.err 2326 }; then : 2327 ac_retval=0 2328 else 2329 $as_echo "$as_me: failed program was:" >&5 2330 sed 's/^/| /' conftest.$ac_ext >&5 2331 2332 ac_retval=1 2333 fi 2334 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2335 as_fn_set_status $ac_retval 2336 2337 } # ac_fn_cxx_try_cpp 2338 2339 # ac_fn_c_try_link LINENO 2340 # ----------------------- 2341 # Try to link conftest.$ac_ext, and return whether this succeeded. 2342 ac_fn_c_try_link () 2343 { 2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2345 rm -f conftest.$ac_objext conftest$ac_exeext 2346 if { { ac_try="$ac_link" 2347 case "(($ac_try" in 2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2349 *) ac_try_echo=$ac_try;; 2350 esac 2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2352 $as_echo "$ac_try_echo"; } >&5 2353 (eval "$ac_link") 2>conftest.err 2354 ac_status=$? 2355 if test -s conftest.err; then 2356 grep -v '^ *+' conftest.err >conftest.er1 2357 cat conftest.er1 >&5 2358 mv -f conftest.er1 conftest.err 2359 fi 2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2361 test $ac_status = 0; } && { 2362 test -z "$ac_c_werror_flag" || 2363 test ! -s conftest.err 2364 } && test -s conftest$ac_exeext && { 2365 test "$cross_compiling" = yes || 2366 test -x conftest$ac_exeext 2367 }; then : 2368 ac_retval=0 2369 else 2370 $as_echo "$as_me: failed program was:" >&5 2371 sed 's/^/| /' conftest.$ac_ext >&5 2372 2373 ac_retval=1 2374 fi 2375 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2376 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2377 # interfere with the next link command; also delete a directory that is 2378 # left behind by Apple's compiler. We do this before executing the actions. 2379 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2380 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2381 as_fn_set_status $ac_retval 2382 2383 } # ac_fn_c_try_link 2384 2385 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2386 # --------------------------------------------------------- 2387 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2388 # the include files in INCLUDES and setting the cache variable VAR 2389 # accordingly. 2390 ac_fn_cxx_check_header_mongrel () 2391 { 2392 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2393 if eval \${$3+:} false; then : 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2395 $as_echo_n "checking for $2... " >&6; } 2396 if eval \${$3+:} false; then : 2397 $as_echo_n "(cached) " >&6 2398 fi 2399 eval ac_res=\$$3 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2401 $as_echo "$ac_res" >&6; } 2402 else 2403 # Is the header compilable? 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2405 $as_echo_n "checking $2 usability... " >&6; } 2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2407 /* end confdefs.h. */ 2408 $4 2409 #include <$2> 2410 _ACEOF 2411 if ac_fn_cxx_try_compile "$LINENO"; then : 2412 ac_header_compiler=yes 2413 else 2414 ac_header_compiler=no 2415 fi 2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2418 $as_echo "$ac_header_compiler" >&6; } 2419 2420 # Is the header present? 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2422 $as_echo_n "checking $2 presence... " >&6; } 2423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2424 /* end confdefs.h. */ 2425 #include <$2> 2426 _ACEOF 2427 if ac_fn_cxx_try_cpp "$LINENO"; then : 2428 ac_header_preproc=yes 2429 else 2430 ac_header_preproc=no 2431 fi 2432 rm -f conftest.err conftest.i conftest.$ac_ext 2433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2434 $as_echo "$ac_header_preproc" >&6; } 2435 2436 # So? What about this header? 2437 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2438 yes:no: ) 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2440 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2442 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2443 ;; 2444 no:yes:* ) 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2446 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2448 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2450 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2452 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2454 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2455 ( $as_echo "## ----------------------------------------- ## 2456 ## Report this to build-dev@openjdk.java.net ## 2457 ## ----------------------------------------- ##" 2458 ) | sed "s/^/$as_me: WARNING: /" >&2 2459 ;; 2460 esac 2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2462 $as_echo_n "checking for $2... " >&6; } 2463 if eval \${$3+:} false; then : 2464 $as_echo_n "(cached) " >&6 2465 else 2466 eval "$3=\$ac_header_compiler" 2467 fi 2468 eval ac_res=\$$3 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2470 $as_echo "$ac_res" >&6; } 2471 fi 2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2473 2474 } # ac_fn_cxx_check_header_mongrel 2475 2476 # ac_fn_cxx_try_run LINENO 2477 # ------------------------ 2478 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2479 # that executables *can* be run. 2480 ac_fn_cxx_try_run () 2481 { 2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2483 if { { ac_try="$ac_link" 2484 case "(($ac_try" in 2485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2486 *) ac_try_echo=$ac_try;; 2487 esac 2488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2489 $as_echo "$ac_try_echo"; } >&5 2490 (eval "$ac_link") 2>&5 2491 ac_status=$? 2492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2493 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2494 { { case "(($ac_try" in 2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2496 *) ac_try_echo=$ac_try;; 2497 esac 2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2499 $as_echo "$ac_try_echo"; } >&5 2500 (eval "$ac_try") 2>&5 2501 ac_status=$? 2502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2503 test $ac_status = 0; }; }; then : 2504 ac_retval=0 2505 else 2506 $as_echo "$as_me: program exited with status $ac_status" >&5 2507 $as_echo "$as_me: failed program was:" >&5 2508 sed 's/^/| /' conftest.$ac_ext >&5 2509 2510 ac_retval=$ac_status 2511 fi 2512 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2514 as_fn_set_status $ac_retval 2515 2516 } # ac_fn_cxx_try_run 2517 2518 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2519 # --------------------------------------------------------- 2520 # Tests whether HEADER exists and can be compiled using the include files in 2521 # INCLUDES, setting the cache variable VAR accordingly. 2522 ac_fn_cxx_check_header_compile () 2523 { 2524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2526 $as_echo_n "checking for $2... " >&6; } 2527 if eval \${$3+:} false; then : 2528 $as_echo_n "(cached) " >&6 2529 else 2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2531 /* end confdefs.h. */ 2532 $4 2533 #include <$2> 2534 _ACEOF 2535 if ac_fn_cxx_try_compile "$LINENO"; then : 2536 eval "$3=yes" 2537 else 2538 eval "$3=no" 2539 fi 2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2541 fi 2542 eval ac_res=\$$3 2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2544 $as_echo "$ac_res" >&6; } 2545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2546 2547 } # ac_fn_cxx_check_header_compile 2548 2549 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2550 # ---------------------------------------------- 2551 # Tries to find the compile-time value of EXPR in a program that includes 2552 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2553 # computed 2554 ac_fn_cxx_compute_int () 2555 { 2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2557 if test "$cross_compiling" = yes; then 2558 # Depending upon the size, compute the lo and hi bounds. 2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2560 /* end confdefs.h. */ 2561 $4 2562 int 2563 main () 2564 { 2565 static int test_array [1 - 2 * !(($2) >= 0)]; 2566 test_array [0] = 0; 2567 return test_array [0]; 2568 2569 ; 2570 return 0; 2571 } 2572 _ACEOF 2573 if ac_fn_cxx_try_compile "$LINENO"; then : 2574 ac_lo=0 ac_mid=0 2575 while :; do 2576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2577 /* end confdefs.h. */ 2578 $4 2579 int 2580 main () 2581 { 2582 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2583 test_array [0] = 0; 2584 return test_array [0]; 2585 2586 ; 2587 return 0; 2588 } 2589 _ACEOF 2590 if ac_fn_cxx_try_compile "$LINENO"; then : 2591 ac_hi=$ac_mid; break 2592 else 2593 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2594 if test $ac_lo -le $ac_mid; then 2595 ac_lo= ac_hi= 2596 break 2597 fi 2598 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2599 fi 2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2601 done 2602 else 2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2604 /* end confdefs.h. */ 2605 $4 2606 int 2607 main () 2608 { 2609 static int test_array [1 - 2 * !(($2) < 0)]; 2610 test_array [0] = 0; 2611 return test_array [0]; 2612 2613 ; 2614 return 0; 2615 } 2616 _ACEOF 2617 if ac_fn_cxx_try_compile "$LINENO"; then : 2618 ac_hi=-1 ac_mid=-1 2619 while :; do 2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621 /* end confdefs.h. */ 2622 $4 2623 int 2624 main () 2625 { 2626 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2627 test_array [0] = 0; 2628 return test_array [0]; 2629 2630 ; 2631 return 0; 2632 } 2633 _ACEOF 2634 if ac_fn_cxx_try_compile "$LINENO"; then : 2635 ac_lo=$ac_mid; break 2636 else 2637 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2638 if test $ac_mid -le $ac_hi; then 2639 ac_lo= ac_hi= 2640 break 2641 fi 2642 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2643 fi 2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2645 done 2646 else 2647 ac_lo= ac_hi= 2648 fi 2649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2650 fi 2651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2652 # Binary search between lo and hi bounds. 2653 while test "x$ac_lo" != "x$ac_hi"; do 2654 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2656 /* end confdefs.h. */ 2657 $4 2658 int 2659 main () 2660 { 2661 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2662 test_array [0] = 0; 2663 return test_array [0]; 2664 2665 ; 2666 return 0; 2667 } 2668 _ACEOF 2669 if ac_fn_cxx_try_compile "$LINENO"; then : 2670 ac_hi=$ac_mid 2671 else 2672 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2673 fi 2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2675 done 2676 case $ac_lo in #(( 2677 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2678 '') ac_retval=1 ;; 2679 esac 2680 else 2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2682 /* end confdefs.h. */ 2683 $4 2684 static long int longval () { return $2; } 2685 static unsigned long int ulongval () { return $2; } 2686 #include <stdio.h> 2687 #include <stdlib.h> 2688 int 2689 main () 2690 { 2691 2692 FILE *f = fopen ("conftest.val", "w"); 2693 if (! f) 2694 return 1; 2695 if (($2) < 0) 2696 { 2697 long int i = longval (); 2698 if (i != ($2)) 2699 return 1; 2700 fprintf (f, "%ld", i); 2701 } 2702 else 2703 { 2704 unsigned long int i = ulongval (); 2705 if (i != ($2)) 2706 return 1; 2707 fprintf (f, "%lu", i); 2708 } 2709 /* Do not output a trailing newline, as this causes \r\n confusion 2710 on some platforms. */ 2711 return ferror (f) || fclose (f) != 0; 2712 2713 ; 2714 return 0; 2715 } 2716 _ACEOF 2717 if ac_fn_cxx_try_run "$LINENO"; then : 2718 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2719 else 2720 ac_retval=1 2721 fi 2722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2723 conftest.$ac_objext conftest.beam conftest.$ac_ext 2724 rm -f conftest.val 2725 2726 fi 2727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2728 as_fn_set_status $ac_retval 2729 2730 } # ac_fn_cxx_compute_int 2731 2732 # ac_fn_cxx_try_link LINENO 2733 # ------------------------- 2734 # Try to link conftest.$ac_ext, and return whether this succeeded. 2735 ac_fn_cxx_try_link () 2736 { 2737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2738 rm -f conftest.$ac_objext conftest$ac_exeext 2739 if { { ac_try="$ac_link" 2740 case "(($ac_try" in 2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2742 *) ac_try_echo=$ac_try;; 2743 esac 2744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2745 $as_echo "$ac_try_echo"; } >&5 2746 (eval "$ac_link") 2>conftest.err 2747 ac_status=$? 2748 if test -s conftest.err; then 2749 grep -v '^ *+' conftest.err >conftest.er1 2750 cat conftest.er1 >&5 2751 mv -f conftest.er1 conftest.err 2752 fi 2753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2754 test $ac_status = 0; } && { 2755 test -z "$ac_cxx_werror_flag" || 2756 test ! -s conftest.err 2757 } && test -s conftest$ac_exeext && { 2758 test "$cross_compiling" = yes || 2759 test -x conftest$ac_exeext 2760 }; then : 2761 ac_retval=0 2762 else 2763 $as_echo "$as_me: failed program was:" >&5 2764 sed 's/^/| /' conftest.$ac_ext >&5 2765 2766 ac_retval=1 2767 fi 2768 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2769 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2770 # interfere with the next link command; also delete a directory that is 2771 # left behind by Apple's compiler. We do this before executing the actions. 2772 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2774 as_fn_set_status $ac_retval 2775 2776 } # ac_fn_cxx_try_link 2777 2778 # ac_fn_cxx_check_func LINENO FUNC VAR 2779 # ------------------------------------ 2780 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2781 ac_fn_cxx_check_func () 2782 { 2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2785 $as_echo_n "checking for $2... " >&6; } 2786 if eval \${$3+:} false; then : 2787 $as_echo_n "(cached) " >&6 2788 else 2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2790 /* end confdefs.h. */ 2791 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2792 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2793 #define $2 innocuous_$2 2794 2795 /* System header to define __stub macros and hopefully few prototypes, 2796 which can conflict with char $2 (); below. 2797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2798 <limits.h> exists even on freestanding compilers. */ 2799 2800 #ifdef __STDC__ 2801 # include <limits.h> 2802 #else 2803 # include <assert.h> 2804 #endif 2805 2806 #undef $2 2807 2808 /* Override any GCC internal prototype to avoid an error. 2809 Use char because int might match the return type of a GCC 2810 builtin and then its argument prototype would still apply. */ 2811 #ifdef __cplusplus 2812 extern "C" 2813 #endif 2814 char $2 (); 2815 /* The GNU C library defines this for functions which it implements 2816 to always fail with ENOSYS. Some functions are actually named 2817 something starting with __ and the normal name is an alias. */ 2818 #if defined __stub_$2 || defined __stub___$2 2819 choke me 2820 #endif 2821 2822 int 2823 main () 2824 { 2825 return $2 (); 2826 ; 2827 return 0; 2828 } 2829 _ACEOF 2830 if ac_fn_cxx_try_link "$LINENO"; then : 2831 eval "$3=yes" 2832 else 2833 eval "$3=no" 2834 fi 2835 rm -f core conftest.err conftest.$ac_objext \ 2836 conftest$ac_exeext conftest.$ac_ext 2837 fi 2838 eval ac_res=\$$3 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2840 $as_echo "$ac_res" >&6; } 2841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2842 2843 } # ac_fn_cxx_check_func 2844 2845 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2846 # ------------------------------------------------------- 2847 # Tests whether HEADER exists and can be compiled using the include files in 2848 # INCLUDES, setting the cache variable VAR accordingly. 2849 ac_fn_c_check_header_compile () 2850 { 2851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2853 $as_echo_n "checking for $2... " >&6; } 2854 if eval \${$3+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856 else 2857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2858 /* end confdefs.h. */ 2859 $4 2860 #include <$2> 2861 _ACEOF 2862 if ac_fn_c_try_compile "$LINENO"; then : 2863 eval "$3=yes" 2864 else 2865 eval "$3=no" 2866 fi 2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2868 fi 2869 eval ac_res=\$$3 2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2871 $as_echo "$ac_res" >&6; } 2872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2873 2874 } # ac_fn_c_check_header_compile 2875 cat >config.log <<_ACEOF 2876 This file contains any messages produced by compilers while 2877 running configure, to aid debugging if configure makes a mistake. 2878 2879 It was created by OpenJDK $as_me jdk9, which was 2880 generated by GNU Autoconf 2.69. Invocation command line was 2881 2882 $ $0 $@ 2883 2884 _ACEOF 2885 exec 5>>config.log 2886 { 2887 cat <<_ASUNAME 2888 ## --------- ## 2889 ## Platform. ## 2890 ## --------- ## 2891 2892 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2893 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2894 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2895 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2896 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2897 2898 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2899 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2900 2901 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2902 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2903 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2904 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2905 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2906 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2907 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2908 2909 _ASUNAME 2910 2911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2912 for as_dir in $PATH 2913 do 2914 IFS=$as_save_IFS 2915 test -z "$as_dir" && as_dir=. 2916 $as_echo "PATH: $as_dir" 2917 done 2918 IFS=$as_save_IFS 2919 2920 } >&5 2921 2922 cat >&5 <<_ACEOF 2923 2924 2925 ## ----------- ## 2926 ## Core tests. ## 2927 ## ----------- ## 2928 2929 _ACEOF 2930 2931 2932 # Keep a trace of the command line. 2933 # Strip out --no-create and --no-recursion so they do not pile up. 2934 # Strip out --silent because we don't want to record it for future runs. 2935 # Also quote any args containing shell meta-characters. 2936 # Make two passes to allow for proper duplicate-argument suppression. 2937 ac_configure_args= 2938 ac_configure_args0= 2939 ac_configure_args1= 2940 ac_must_keep_next=false 2941 for ac_pass in 1 2 2942 do 2943 for ac_arg 2944 do 2945 case $ac_arg in 2946 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2947 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2948 | -silent | --silent | --silen | --sile | --sil) 2949 continue ;; 2950 *\'*) 2951 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2952 esac 2953 case $ac_pass in 2954 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2955 2) 2956 as_fn_append ac_configure_args1 " '$ac_arg'" 2957 if test $ac_must_keep_next = true; then 2958 ac_must_keep_next=false # Got value, back to normal. 2959 else 2960 case $ac_arg in 2961 *=* | --config-cache | -C | -disable-* | --disable-* \ 2962 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2963 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2964 | -with-* | --with-* | -without-* | --without-* | --x) 2965 case "$ac_configure_args0 " in 2966 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2967 esac 2968 ;; 2969 -* ) ac_must_keep_next=true ;; 2970 esac 2971 fi 2972 as_fn_append ac_configure_args " '$ac_arg'" 2973 ;; 2974 esac 2975 done 2976 done 2977 { ac_configure_args0=; unset ac_configure_args0;} 2978 { ac_configure_args1=; unset ac_configure_args1;} 2979 2980 # When interrupted or exit'd, cleanup temporary files, and complete 2981 # config.log. We remove comments because anyway the quotes in there 2982 # would cause problems or look ugly. 2983 # WARNING: Use '\'' to represent an apostrophe within the trap. 2984 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2985 trap 'exit_status=$? 2986 # Save into config.log some information that might help in debugging. 2987 { 2988 echo 2989 2990 $as_echo "## ---------------- ## 2991 ## Cache variables. ## 2992 ## ---------------- ##" 2993 echo 2994 # The following way of writing the cache mishandles newlines in values, 2995 ( 2996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2997 eval ac_val=\$$ac_var 2998 case $ac_val in #( 2999 *${as_nl}*) 3000 case $ac_var in #( 3001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3003 esac 3004 case $ac_var in #( 3005 _ | IFS | as_nl) ;; #( 3006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3007 *) { eval $ac_var=; unset $ac_var;} ;; 3008 esac ;; 3009 esac 3010 done 3011 (set) 2>&1 | 3012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3013 *${as_nl}ac_space=\ *) 3014 sed -n \ 3015 "s/'\''/'\''\\\\'\'''\''/g; 3016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3017 ;; #( 3018 *) 3019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3020 ;; 3021 esac | 3022 sort 3023 ) 3024 echo 3025 3026 $as_echo "## ----------------- ## 3027 ## Output variables. ## 3028 ## ----------------- ##" 3029 echo 3030 for ac_var in $ac_subst_vars 3031 do 3032 eval ac_val=\$$ac_var 3033 case $ac_val in 3034 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3035 esac 3036 $as_echo "$ac_var='\''$ac_val'\''" 3037 done | sort 3038 echo 3039 3040 if test -n "$ac_subst_files"; then 3041 $as_echo "## ------------------- ## 3042 ## File substitutions. ## 3043 ## ------------------- ##" 3044 echo 3045 for ac_var in $ac_subst_files 3046 do 3047 eval ac_val=\$$ac_var 3048 case $ac_val in 3049 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3050 esac 3051 $as_echo "$ac_var='\''$ac_val'\''" 3052 done | sort 3053 echo 3054 fi 3055 3056 if test -s confdefs.h; then 3057 $as_echo "## ----------- ## 3058 ## confdefs.h. ## 3059 ## ----------- ##" 3060 echo 3061 cat confdefs.h 3062 echo 3063 fi 3064 test "$ac_signal" != 0 && 3065 $as_echo "$as_me: caught signal $ac_signal" 3066 $as_echo "$as_me: exit $exit_status" 3067 } >&5 3068 rm -f core *.core core.conftest.* && 3069 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3070 exit $exit_status 3071 ' 0 3072 for ac_signal in 1 2 13 15; do 3073 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3074 done 3075 ac_signal=0 3076 3077 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3078 rm -f -r conftest* confdefs.h 3079 3080 $as_echo "/* confdefs.h */" > confdefs.h 3081 3082 # Predefined preprocessor variables. 3083 3084 cat >>confdefs.h <<_ACEOF 3085 #define PACKAGE_NAME "$PACKAGE_NAME" 3086 _ACEOF 3087 3088 cat >>confdefs.h <<_ACEOF 3089 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3090 _ACEOF 3091 3092 cat >>confdefs.h <<_ACEOF 3093 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3094 _ACEOF 3095 3096 cat >>confdefs.h <<_ACEOF 3097 #define PACKAGE_STRING "$PACKAGE_STRING" 3098 _ACEOF 3099 3100 cat >>confdefs.h <<_ACEOF 3101 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3102 _ACEOF 3103 3104 cat >>confdefs.h <<_ACEOF 3105 #define PACKAGE_URL "$PACKAGE_URL" 3106 _ACEOF 3107 3108 3109 # Let the site file select an alternate cache file if it wants to. 3110 # Prefer an explicitly selected file to automatically selected ones. 3111 ac_site_file1=NONE 3112 ac_site_file2=NONE 3113 if test -n "$CONFIG_SITE"; then 3114 # We do not want a PATH search for config.site. 3115 case $CONFIG_SITE in #(( 3116 -*) ac_site_file1=./$CONFIG_SITE;; 3117 */*) ac_site_file1=$CONFIG_SITE;; 3118 *) ac_site_file1=./$CONFIG_SITE;; 3119 esac 3120 elif test "x$prefix" != xNONE; then 3121 ac_site_file1=$prefix/share/config.site 3122 ac_site_file2=$prefix/etc/config.site 3123 else 3124 ac_site_file1=$ac_default_prefix/share/config.site 3125 ac_site_file2=$ac_default_prefix/etc/config.site 3126 fi 3127 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3128 do 3129 test "x$ac_site_file" = xNONE && continue 3130 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3132 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3133 sed 's/^/| /' "$ac_site_file" >&5 3134 . "$ac_site_file" \ 3135 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3137 as_fn_error $? "failed to load site script $ac_site_file 3138 See \`config.log' for more details" "$LINENO" 5; } 3139 fi 3140 done 3141 3142 if test -r "$cache_file"; then 3143 # Some versions of bash will fail to source /dev/null (special files 3144 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3145 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3146 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3147 $as_echo "$as_me: loading cache $cache_file" >&6;} 3148 case $cache_file in 3149 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3150 *) . "./$cache_file";; 3151 esac 3152 fi 3153 else 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3155 $as_echo "$as_me: creating cache $cache_file" >&6;} 3156 >$cache_file 3157 fi 3158 3159 # Check that the precious variables saved in the cache have kept the same 3160 # value. 3161 ac_cache_corrupted=false 3162 for ac_var in $ac_precious_vars; do 3163 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3164 eval ac_new_set=\$ac_env_${ac_var}_set 3165 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3166 eval ac_new_val=\$ac_env_${ac_var}_value 3167 case $ac_old_set,$ac_new_set in 3168 set,) 3169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3170 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3171 ac_cache_corrupted=: ;; 3172 ,set) 3173 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3174 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3175 ac_cache_corrupted=: ;; 3176 ,);; 3177 *) 3178 if test "x$ac_old_val" != "x$ac_new_val"; then 3179 # differences in whitespace do not lead to failure. 3180 ac_old_val_w=`echo x $ac_old_val` 3181 ac_new_val_w=`echo x $ac_new_val` 3182 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3184 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3185 ac_cache_corrupted=: 3186 else 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3188 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3189 eval $ac_var=\$ac_old_val 3190 fi 3191 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3192 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3193 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3194 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3195 fi;; 3196 esac 3197 # Pass precious variables to config.status. 3198 if test "$ac_new_set" = set; then 3199 case $ac_new_val in 3200 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3201 *) ac_arg=$ac_var=$ac_new_val ;; 3202 esac 3203 case " $ac_configure_args " in 3204 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3205 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3206 esac 3207 fi 3208 done 3209 if $ac_cache_corrupted; then 3210 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3213 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3214 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3215 fi 3216 ## -------------------- ## 3217 ## Main body of script. ## 3218 ## -------------------- ## 3219 3220 ac_ext=c 3221 ac_cpp='$CPP $CPPFLAGS' 3222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3224 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3225 3226 3227 3228 ac_aux_dir= 3229 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3230 if test -f "$ac_dir/install-sh"; then 3231 ac_aux_dir=$ac_dir 3232 ac_install_sh="$ac_aux_dir/install-sh -c" 3233 break 3234 elif test -f "$ac_dir/install.sh"; then 3235 ac_aux_dir=$ac_dir 3236 ac_install_sh="$ac_aux_dir/install.sh -c" 3237 break 3238 elif test -f "$ac_dir/shtool"; then 3239 ac_aux_dir=$ac_dir 3240 ac_install_sh="$ac_aux_dir/shtool install -c" 3241 break 3242 fi 3243 done 3244 if test -z "$ac_aux_dir"; then 3245 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 3246 fi 3247 3248 # These three variables are undocumented and unsupported, 3249 # and are intended to be withdrawn in a future Autoconf release. 3250 # They can cause serious problems if a builder's source tree is in a directory 3251 # whose full name contains unusual characters. 3252 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3253 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3254 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3255 3256 3257 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3258 3259 # 3260 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3261 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3262 # 3263 # This code is free software; you can redistribute it and/or modify it 3264 # under the terms of the GNU General Public License version 2 only, as 3265 # published by the Free Software Foundation. Oracle designates this 3266 # particular file as subject to the "Classpath" exception as provided 3267 # by Oracle in the LICENSE file that accompanied this code. 3268 # 3269 # This code is distributed in the hope that it will be useful, but WITHOUT 3270 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3271 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3272 # version 2 for more details (a copy is included in the LICENSE file that 3273 # accompanied this code). 3274 # 3275 # You should have received a copy of the GNU General Public License version 3276 # 2 along with this work; if not, write to the Free Software Foundation, 3277 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3278 # 3279 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3280 # or visit www.oracle.com if you need additional information or have any 3281 # questions. 3282 # 3283 3284 # 3285 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3286 # 3287 # This program is free software; you can redistribute it and/or modify 3288 # it under the terms of the GNU General Public License as published by 3289 # the Free Software Foundation; either version 2 of the License, or 3290 # (at your option) any later version. 3291 # 3292 # This program is distributed in the hope that it will be useful, but 3293 # WITHOUT ANY WARRANTY; without even the implied warranty of 3294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3295 # General Public License for more details. 3296 # 3297 # You should have received a copy of the GNU General Public License 3298 # along with this program; if not, write to the Free Software 3299 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3300 # 3301 # As a special exception to the GNU General Public License, if you 3302 # distribute this file as part of a program that contains a 3303 # configuration script generated by Autoconf, you may include it under 3304 # the same distribution terms that you use for the rest of that program. 3305 3306 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3307 # ---------------------------------- 3308 # PKG_PROG_PKG_CONFIG 3309 3310 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3311 # 3312 # Check to see whether a particular set of modules exists. Similar 3313 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3314 # 3315 # 3316 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3317 # this or PKG_CHECK_MODULES is called, or make sure to call 3318 # PKG_CHECK_EXISTS manually 3319 # -------------------------------------------------------------- 3320 3321 3322 3323 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3324 # --------------------------------------------- 3325 # _PKG_CONFIG 3326 3327 # _PKG_SHORT_ERRORS_SUPPORTED 3328 # ----------------------------- 3329 # _PKG_SHORT_ERRORS_SUPPORTED 3330 3331 3332 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3333 # [ACTION-IF-NOT-FOUND]) 3334 # 3335 # 3336 # Note that if there is a possibility the first call to 3337 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3338 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3339 # 3340 # 3341 # -------------------------------------------------------------- 3342 # PKG_CHECK_MODULES 3343 3344 3345 # Include these first... 3346 # 3347 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3348 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3349 # 3350 # This code is free software; you can redistribute it and/or modify it 3351 # under the terms of the GNU General Public License version 2 only, as 3352 # published by the Free Software Foundation. Oracle designates this 3353 # particular file as subject to the "Classpath" exception as provided 3354 # by Oracle in the LICENSE file that accompanied this code. 3355 # 3356 # This code is distributed in the hope that it will be useful, but WITHOUT 3357 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3358 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3359 # version 2 for more details (a copy is included in the LICENSE file that 3360 # accompanied this code). 3361 # 3362 # You should have received a copy of the GNU General Public License version 3363 # 2 along with this work; if not, write to the Free Software Foundation, 3364 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3365 # 3366 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3367 # or visit www.oracle.com if you need additional information or have any 3368 # questions. 3369 # 3370 3371 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3372 # If so, then append $1 to $2 \ 3373 # Also set JVM_ARG_OK to true/false depending on outcome. 3374 3375 3376 # Appends a string to a path variable, only adding the : when needed. 3377 3378 3379 # Prepends a string to a path variable, only adding the : when needed. 3380 3381 3382 # This will make sure the given variable points to a full and proper 3383 # path. This means: 3384 # 1) There will be no spaces in the path. On unix platforms, 3385 # spaces in the path will result in an error. On Windows, 3386 # the path will be rewritten using short-style to be space-free. 3387 # 2) The path will be absolute, and it will be in unix-style (on 3388 # cygwin). 3389 # $1: The name of the variable to fix 3390 3391 3392 # This will make sure the given variable points to a executable 3393 # with a full and proper path. This means: 3394 # 1) There will be no spaces in the path. On unix platforms, 3395 # spaces in the path will result in an error. On Windows, 3396 # the path will be rewritten using short-style to be space-free. 3397 # 2) The path will be absolute, and it will be in unix-style (on 3398 # cygwin). 3399 # Any arguments given to the executable is preserved. 3400 # If the input variable does not have a directory specification, then 3401 # it need to be in the PATH. 3402 # $1: The name of the variable to fix 3403 3404 3405 3406 3407 # Register a --with argument but mark it as deprecated 3408 # $1: The name of the with argument to deprecate, not including --with- 3409 3410 3411 # Register a --enable argument but mark it as deprecated 3412 # $1: The name of the with argument to deprecate, not including --enable- 3413 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3414 3415 3416 3417 3418 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3419 # $1: variable to check 3420 3421 3422 # Check that there are no unprocessed overridden variables left. 3423 # If so, they are an incorrect argument and we will exit with an error. 3424 3425 3426 # Setup a tool for the given variable. If correctly specified by the user, 3427 # use that value, otherwise search for the tool using the supplied code snippet. 3428 # $1: variable to set 3429 # $2: code snippet to call to look for the tool 3430 3431 3432 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3433 # $1: variable to set 3434 # $2: executable name (or list of names) to look for 3435 3436 3437 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3438 # $1: variable to set 3439 # $2: executable name (or list of names) to look for 3440 3441 3442 # Like BASIC_PATH_PROGS but fails if no tool was found. 3443 # $1: variable to set 3444 # $2: executable name (or list of names) to look for 3445 3446 3447 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3448 # $1: variable to set 3449 # $2: autoconf macro to call to look for the special tool 3450 3451 3452 # Setup the most fundamental tools that relies on not much else to set up, 3453 # but is used by much of the early bootstrap code. 3454 3455 3456 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3457 3458 3459 # Evaluates platform specific overrides for devkit variables. 3460 # $1: Name of variable 3461 3462 3463 3464 3465 3466 3467 #%%% Simple tools %%% 3468 3469 # Check if we have found a usable version of make 3470 # $1: the path to a potential make binary (or empty) 3471 # $2: the description on how we found this 3472 3473 3474 3475 3476 # Goes looking for a usable version of GNU make. 3477 3478 3479 3480 3481 3482 3483 # Check if build directory is on local disk. If not possible to determine, 3484 # we prefer to claim it's local. 3485 # Argument 1: directory to test 3486 # Argument 2: what to do if it is on local disk 3487 # Argument 3: what to do otherwise (remote disk or failure) 3488 3489 3490 # Check that source files have basic read permissions set. This might 3491 # not be the case in cygwin in certain conditions. 3492 3493 3494 3495 3496 # Check for support for specific options in bash 3497 3498 3499 # Code to run after AC_OUTPUT 3500 3501 3502 # 3503 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3504 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3505 # 3506 # This code is free software; you can redistribute it and/or modify it 3507 # under the terms of the GNU General Public License version 2 only, as 3508 # published by the Free Software Foundation. Oracle designates this 3509 # particular file as subject to the "Classpath" exception as provided 3510 # by Oracle in the LICENSE file that accompanied this code. 3511 # 3512 # This code is distributed in the hope that it will be useful, but WITHOUT 3513 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3514 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3515 # version 2 for more details (a copy is included in the LICENSE file that 3516 # accompanied this code). 3517 # 3518 # You should have received a copy of the GNU General Public License version 3519 # 2 along with this work; if not, write to the Free Software Foundation, 3520 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3521 # 3522 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3523 # or visit www.oracle.com if you need additional information or have any 3524 # questions. 3525 # 3526 3527 3528 3529 3530 3531 # Helper function which possibly converts a path using DOS-style short mode. 3532 # If so, the updated path is stored in $new_path. 3533 # $1: The path to check 3534 3535 3536 # Helper function which possibly converts a path using DOS-style short mode. 3537 # If so, the updated path is stored in $new_path. 3538 # $1: The path to check 3539 3540 3541 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3542 # and could probably be heavily simplified. However, all changes in this 3543 # area tend to need lot of testing in different scenarios, and in lack of 3544 # proper unit testing, cleaning this up has not been deemed worth the effort 3545 # at the moment. 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3556 3557 3558 3559 3560 # ... then the rest 3561 # 3562 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3563 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3564 # 3565 # This code is free software; you can redistribute it and/or modify it 3566 # under the terms of the GNU General Public License version 2 only, as 3567 # published by the Free Software Foundation. Oracle designates this 3568 # particular file as subject to the "Classpath" exception as provided 3569 # by Oracle in the LICENSE file that accompanied this code. 3570 # 3571 # This code is distributed in the hope that it will be useful, but WITHOUT 3572 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3573 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3574 # version 2 for more details (a copy is included in the LICENSE file that 3575 # accompanied this code). 3576 # 3577 # You should have received a copy of the GNU General Public License version 3578 # 2 along with this work; if not, write to the Free Software Foundation, 3579 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3580 # 3581 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3582 # or visit www.oracle.com if you need additional information or have any 3583 # questions. 3584 # 3585 3586 ######################################################################## 3587 # This file handles detection of the Boot JDK. The Boot JDK detection 3588 # process has been developed as a response to solve a complex real-world 3589 # problem. Initially, it was simple, but it has grown as platform after 3590 # platform, idiosyncracy after idiosyncracy has been supported. 3591 # 3592 # The basic idea is this: 3593 # 1) You need an acceptable *) JDK to use as a Boot JDK 3594 # 2) There are several ways to locate a JDK, that are mostly platform 3595 # dependent **) 3596 # 3) You can have multiple JDKs installed 3597 # 4) If possible, configure should try to dig out an acceptable JDK 3598 # automatically, without having to resort to command-line options 3599 # 3600 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3601 # javac) and not a JRE, etc. 3602 # 3603 # **) On Windows we typically use a well-known path. 3604 # On MacOSX we typically use the tool java_home. 3605 # On Linux we typically find javac in the $PATH, and then follow a 3606 # chain of symlinks that often ends up in a real JDK. 3607 # 3608 # This leads to the code where we check in different ways to locate a 3609 # JDK, and if one is found, check if it is acceptable. If not, we print 3610 # our reasons for rejecting it (useful when debugging non-working 3611 # configure situations) and continue checking the next one. 3612 ######################################################################## 3613 3614 # Execute the check given as argument, and verify the result 3615 # If the Boot JDK was previously found, do nothing 3616 # $1 A command line (typically autoconf macro) to execute 3617 3618 3619 # Test: Is bootjdk explicitely set by command line arguments? 3620 3621 3622 # Test: Is $JAVA_HOME set? 3623 3624 3625 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3626 3627 3628 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3629 # $1: Argument to the java_home binary (optional) 3630 3631 3632 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3633 3634 3635 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3636 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3637 # $1 = Path to directory containing jdk installations. 3638 # $2 = String to append to the found JDK directory to get the proper JDK home 3639 3640 3641 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3642 # environmental variable as base for where to look. 3643 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3644 3645 3646 # Test: Is there a JDK installed in default, well-known locations? 3647 3648 3649 # Check that a command-line tool in the Boot JDK is correct 3650 # $1 = name of variable to assign 3651 # $2 = name of binary 3652 3653 3654 ############################################################################### 3655 # 3656 # We need a Boot JDK to bootstrap the build. 3657 # 3658 3659 3660 3661 3662 3663 # 3664 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3665 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3666 # 3667 # This code is free software; you can redistribute it and/or modify it 3668 # under the terms of the GNU General Public License version 2 only, as 3669 # published by the Free Software Foundation. Oracle designates this 3670 # particular file as subject to the "Classpath" exception as provided 3671 # by Oracle in the LICENSE file that accompanied this code. 3672 # 3673 # This code is distributed in the hope that it will be useful, but WITHOUT 3674 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3675 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3676 # version 2 for more details (a copy is included in the LICENSE file that 3677 # accompanied this code). 3678 # 3679 # You should have received a copy of the GNU General Public License version 3680 # 2 along with this work; if not, write to the Free Software Foundation, 3681 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3682 # 3683 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3684 # or visit www.oracle.com if you need additional information or have any 3685 # questions. 3686 # 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 # 3708 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3709 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3710 # 3711 # This code is free software; you can redistribute it and/or modify it 3712 # under the terms of the GNU General Public License version 2 only, as 3713 # published by the Free Software Foundation. Oracle designates this 3714 # particular file as subject to the "Classpath" exception as provided 3715 # by Oracle in the LICENSE file that accompanied this code. 3716 # 3717 # This code is distributed in the hope that it will be useful, but WITHOUT 3718 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3719 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3720 # version 2 for more details (a copy is included in the LICENSE file that 3721 # accompanied this code). 3722 # 3723 # You should have received a copy of the GNU General Public License version 3724 # 2 along with this work; if not, write to the Free Software Foundation, 3725 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3726 # 3727 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3728 # or visit www.oracle.com if you need additional information or have any 3729 # questions. 3730 # 3731 3732 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 3733 # corresponding configure arguments instead 3734 3735 3736 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 3737 # that configure can use them while detecting compilers. 3738 # TOOLCHAIN_TYPE is available here. 3739 3740 3741 3742 3743 3744 3745 # Documentation on common flags used for solstudio in HIGHEST. 3746 # 3747 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3748 # done with care, there are some assumptions below that need to 3749 # be understood about the use of pointers, and IEEE behavior. 3750 # 3751 # -fns: Use non-standard floating point mode (not IEEE 754) 3752 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3753 # -fsingle: Use single precision floating point with 'float' 3754 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3755 # (Source with excessing pointer casting and data access with mixed 3756 # pointer types are not recommended) 3757 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3758 # (If you expect perfect errno behavior, do not use this) 3759 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3760 # -xrestrict: Pointer parameters to functions do not overlap 3761 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3762 # If you pass in multiple pointers to the same data, do not use this) 3763 # -xlibmil: Inline some library routines 3764 # (If you expect perfect errno behavior, do not use this) 3765 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3766 # (If you expect perfect errno behavior, do not use this) 3767 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3768 3769 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3770 # Bug? 3771 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3772 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3773 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3774 #fi 3775 3776 3777 3778 3779 3780 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3781 # [RUN-IF-FALSE]) 3782 # ------------------------------------------------------------ 3783 # Check that the c and c++ compilers support an argument 3784 3785 3786 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3787 # [RUN-IF-FALSE]) 3788 # ------------------------------------------------------------ 3789 # Check that the linker support an argument 3790 3791 3792 3793 3794 # 3795 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3796 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3797 # 3798 # This code is free software; you can redistribute it and/or modify it 3799 # under the terms of the GNU General Public License version 2 only, as 3800 # published by the Free Software Foundation. Oracle designates this 3801 # particular file as subject to the "Classpath" exception as provided 3802 # by Oracle in the LICENSE file that accompanied this code. 3803 # 3804 # This code is distributed in the hope that it will be useful, but WITHOUT 3805 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3806 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3807 # version 2 for more details (a copy is included in the LICENSE file that 3808 # accompanied this code). 3809 # 3810 # You should have received a copy of the GNU General Public License version 3811 # 2 along with this work; if not, write to the Free Software Foundation, 3812 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3813 # 3814 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3815 # or visit www.oracle.com if you need additional information or have any 3816 # questions. 3817 # 3818 3819 3820 3821 3822 3823 cygwin_help() { 3824 case $1 in 3825 unzip) 3826 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3827 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3828 ;; 3829 zip) 3830 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3831 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3832 ;; 3833 make) 3834 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3835 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3836 ;; 3837 freetype) 3838 HELP_MSG=" 3839 The freetype library can now be build during the configure process. 3840 Download the freetype sources and unpack them into an arbitrary directory: 3841 3842 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3843 tar -xzf freetype-2.5.3.tar.gz 3844 3845 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3846 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3847 builds or into '<freetype_src>/lib32' for 32-bit builds. 3848 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3849 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3850 ;; 3851 esac 3852 } 3853 3854 msys_help() { 3855 PKGHANDLER_COMMAND="" 3856 } 3857 3858 apt_help() { 3859 case $1 in 3860 reduced) 3861 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 3862 devkit) 3863 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3864 openjdk) 3865 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3866 alsa) 3867 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3868 cups) 3869 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3870 freetype) 3871 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3872 ffi) 3873 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 3874 x11) 3875 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3876 ccache) 3877 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3878 esac 3879 } 3880 3881 yum_help() { 3882 case $1 in 3883 devkit) 3884 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3885 openjdk) 3886 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3887 alsa) 3888 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3889 cups) 3890 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3891 freetype) 3892 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3893 x11) 3894 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3895 ccache) 3896 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3897 esac 3898 } 3899 3900 port_help() { 3901 PKGHANDLER_COMMAND="" 3902 } 3903 3904 pkgutil_help() { 3905 PKGHANDLER_COMMAND="" 3906 } 3907 3908 pkgadd_help() { 3909 PKGHANDLER_COMMAND="" 3910 } 3911 3912 # This function will check if we're called from the "configure" wrapper while 3913 # printing --help. If so, we will print out additional information that can 3914 # only be extracted within the autoconf script, and then exit. This must be 3915 # called at the very beginning in configure.ac. 3916 3917 3918 3919 3920 3921 3922 # 3923 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3924 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3925 # 3926 # This code is free software; you can redistribute it and/or modify it 3927 # under the terms of the GNU General Public License version 2 only, as 3928 # published by the Free Software Foundation. Oracle designates this 3929 # particular file as subject to the "Classpath" exception as provided 3930 # by Oracle in the LICENSE file that accompanied this code. 3931 # 3932 # This code is distributed in the hope that it will be useful, but WITHOUT 3933 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3934 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3935 # version 2 for more details (a copy is included in the LICENSE file that 3936 # accompanied this code). 3937 # 3938 # You should have received a copy of the GNU General Public License version 3939 # 2 along with this work; if not, write to the Free Software Foundation, 3940 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3941 # 3942 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3943 # or visit www.oracle.com if you need additional information or have any 3944 # questions. 3945 # 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 ############################################################################### 3957 # 3958 # Should we build only OpenJDK even if closed sources are present? 3959 # 3960 3961 3962 3963 3964 ############################################################################### 3965 # 3966 # Setup version numbers 3967 # 3968 3969 3970 3971 3972 3973 3974 ################################################################################ 3975 # 3976 # Gcov coverage data for hotspot 3977 # 3978 3979 3980 # 3981 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3982 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3983 # 3984 # This code is free software; you can redistribute it and/or modify it 3985 # under the terms of the GNU General Public License version 2 only, as 3986 # published by the Free Software Foundation. Oracle designates this 3987 # particular file as subject to the "Classpath" exception as provided 3988 # by Oracle in the LICENSE file that accompanied this code. 3989 # 3990 # This code is distributed in the hope that it will be useful, but WITHOUT 3991 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3992 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3993 # version 2 for more details (a copy is included in the LICENSE file that 3994 # accompanied this code). 3995 # 3996 # You should have received a copy of the GNU General Public License version 3997 # 2 along with this work; if not, write to the Free Software Foundation, 3998 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3999 # 4000 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4001 # or visit www.oracle.com if you need additional information or have any 4002 # questions. 4003 # 4004 4005 # Major library component reside in separate files. 4006 # 4007 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4008 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4009 # 4010 # This code is free software; you can redistribute it and/or modify it 4011 # under the terms of the GNU General Public License version 2 only, as 4012 # published by the Free Software Foundation. Oracle designates this 4013 # particular file as subject to the "Classpath" exception as provided 4014 # by Oracle in the LICENSE file that accompanied this code. 4015 # 4016 # This code is distributed in the hope that it will be useful, but WITHOUT 4017 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4018 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4019 # version 2 for more details (a copy is included in the LICENSE file that 4020 # accompanied this code). 4021 # 4022 # You should have received a copy of the GNU General Public License version 4023 # 2 along with this work; if not, write to the Free Software Foundation, 4024 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4025 # 4026 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4027 # or visit www.oracle.com if you need additional information or have any 4028 # questions. 4029 # 4030 4031 ################################################################################ 4032 # Setup alsa (Advanced Linux Sound Architecture) 4033 ################################################################################ 4034 4035 4036 # 4037 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4038 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4039 # 4040 # This code is free software; you can redistribute it and/or modify it 4041 # under the terms of the GNU General Public License version 2 only, as 4042 # published by the Free Software Foundation. Oracle designates this 4043 # particular file as subject to the "Classpath" exception as provided 4044 # by Oracle in the LICENSE file that accompanied this code. 4045 # 4046 # This code is distributed in the hope that it will be useful, but WITHOUT 4047 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4048 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4049 # version 2 for more details (a copy is included in the LICENSE file that 4050 # accompanied this code). 4051 # 4052 # You should have received a copy of the GNU General Public License version 4053 # 2 along with this work; if not, write to the Free Software Foundation, 4054 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4055 # 4056 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4057 # or visit www.oracle.com if you need additional information or have any 4058 # questions. 4059 # 4060 4061 ################################################################################ 4062 # Setup bundled libraries. 4063 # 4064 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4065 # OpenJDK repository. Default is to use these libraries as bundled, but they 4066 # might be replaced by en external version by the user. 4067 ################################################################################ 4068 4069 4070 ################################################################################ 4071 # Setup libjpeg 4072 ################################################################################ 4073 4074 4075 ################################################################################ 4076 # Setup giflib 4077 ################################################################################ 4078 4079 4080 ################################################################################ 4081 # Setup libpng 4082 ################################################################################ 4083 4084 4085 ################################################################################ 4086 # Setup zlib 4087 ################################################################################ 4088 4089 4090 ################################################################################ 4091 # Setup lcms (Little CMS) 4092 ################################################################################ 4093 4094 4095 # 4096 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4097 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4098 # 4099 # This code is free software; you can redistribute it and/or modify it 4100 # under the terms of the GNU General Public License version 2 only, as 4101 # published by the Free Software Foundation. Oracle designates this 4102 # particular file as subject to the "Classpath" exception as provided 4103 # by Oracle in the LICENSE file that accompanied this code. 4104 # 4105 # This code is distributed in the hope that it will be useful, but WITHOUT 4106 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4107 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4108 # version 2 for more details (a copy is included in the LICENSE file that 4109 # accompanied this code). 4110 # 4111 # You should have received a copy of the GNU General Public License version 4112 # 2 along with this work; if not, write to the Free Software Foundation, 4113 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4114 # 4115 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4116 # or visit www.oracle.com if you need additional information or have any 4117 # questions. 4118 # 4119 4120 ################################################################################ 4121 # Setup cups (Common Unix Printing System) 4122 ################################################################################ 4123 4124 4125 # 4126 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4127 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4128 # 4129 # This code is free software; you can redistribute it and/or modify it 4130 # under the terms of the GNU General Public License version 2 only, as 4131 # published by the Free Software Foundation. Oracle designates this 4132 # particular file as subject to the "Classpath" exception as provided 4133 # by Oracle in the LICENSE file that accompanied this code. 4134 # 4135 # This code is distributed in the hope that it will be useful, but WITHOUT 4136 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4137 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4138 # version 2 for more details (a copy is included in the LICENSE file that 4139 # accompanied this code). 4140 # 4141 # You should have received a copy of the GNU General Public License version 4142 # 2 along with this work; if not, write to the Free Software Foundation, 4143 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4144 # 4145 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4146 # or visit www.oracle.com if you need additional information or have any 4147 # questions. 4148 # 4149 4150 ################################################################################ 4151 # Setup libffi (Foreign Function Interface) 4152 ################################################################################ 4153 4154 4155 # 4156 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4157 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4158 # 4159 # This code is free software; you can redistribute it and/or modify it 4160 # under the terms of the GNU General Public License version 2 only, as 4161 # published by the Free Software Foundation. Oracle designates this 4162 # particular file as subject to the "Classpath" exception as provided 4163 # by Oracle in the LICENSE file that accompanied this code. 4164 # 4165 # This code is distributed in the hope that it will be useful, but WITHOUT 4166 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4167 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4168 # version 2 for more details (a copy is included in the LICENSE file that 4169 # accompanied this code). 4170 # 4171 # You should have received a copy of the GNU General Public License version 4172 # 2 along with this work; if not, write to the Free Software Foundation, 4173 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4174 # 4175 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4176 # or visit www.oracle.com if you need additional information or have any 4177 # questions. 4178 # 4179 4180 ################################################################################ 4181 # Build the freetype lib from source 4182 ################################################################################ 4183 4184 4185 ################################################################################ 4186 # Check if a potential freeype library match is correct and usable 4187 ################################################################################ 4188 4189 4190 ################################################################################ 4191 # Setup freetype (The FreeType2 font rendering library) 4192 ################################################################################ 4193 4194 4195 # 4196 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4197 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4198 # 4199 # This code is free software; you can redistribute it and/or modify it 4200 # under the terms of the GNU General Public License version 2 only, as 4201 # published by the Free Software Foundation. Oracle designates this 4202 # particular file as subject to the "Classpath" exception as provided 4203 # by Oracle in the LICENSE file that accompanied this code. 4204 # 4205 # This code is distributed in the hope that it will be useful, but WITHOUT 4206 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4207 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4208 # version 2 for more details (a copy is included in the LICENSE file that 4209 # accompanied this code). 4210 # 4211 # You should have received a copy of the GNU General Public License version 4212 # 2 along with this work; if not, write to the Free Software Foundation, 4213 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4214 # 4215 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4216 # or visit www.oracle.com if you need additional information or have any 4217 # questions. 4218 # 4219 4220 ################################################################################ 4221 # Setup the standard C/C++ runtime libraries. 4222 # 4223 # Most importantly, determine if stdc++ should be linked statically or 4224 # dynamically. 4225 ################################################################################ 4226 4227 4228 # 4229 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4230 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4231 # 4232 # This code is free software; you can redistribute it and/or modify it 4233 # under the terms of the GNU General Public License version 2 only, as 4234 # published by the Free Software Foundation. Oracle designates this 4235 # particular file as subject to the "Classpath" exception as provided 4236 # by Oracle in the LICENSE file that accompanied this code. 4237 # 4238 # This code is distributed in the hope that it will be useful, but WITHOUT 4239 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4240 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4241 # version 2 for more details (a copy is included in the LICENSE file that 4242 # accompanied this code). 4243 # 4244 # You should have received a copy of the GNU General Public License version 4245 # 2 along with this work; if not, write to the Free Software Foundation, 4246 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4247 # 4248 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4249 # or visit www.oracle.com if you need additional information or have any 4250 # questions. 4251 # 4252 4253 ################################################################################ 4254 # Setup X11 Windows system 4255 ################################################################################ 4256 4257 4258 4259 ################################################################################ 4260 # Determine which libraries are needed for this configuration 4261 ################################################################################ 4262 4263 4264 ################################################################################ 4265 # Parse library options, and setup needed libraries 4266 ################################################################################ 4267 4268 4269 ################################################################################ 4270 # Setup llvm (Low-Level VM) 4271 ################################################################################ 4272 4273 4274 ################################################################################ 4275 # Setup various libraries, typically small system libraries 4276 ################################################################################ 4277 4278 4279 # 4280 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4281 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4282 # 4283 # This code is free software; you can redistribute it and/or modify it 4284 # under the terms of the GNU General Public License version 2 only, as 4285 # published by the Free Software Foundation. Oracle designates this 4286 # particular file as subject to the "Classpath" exception as provided 4287 # by Oracle in the LICENSE file that accompanied this code. 4288 # 4289 # This code is distributed in the hope that it will be useful, but WITHOUT 4290 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4291 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4292 # version 2 for more details (a copy is included in the LICENSE file that 4293 # accompanied this code). 4294 # 4295 # You should have received a copy of the GNU General Public License version 4296 # 2 along with this work; if not, write to the Free Software Foundation, 4297 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4298 # 4299 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4300 # or visit www.oracle.com if you need additional information or have any 4301 # questions. 4302 # 4303 4304 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4305 # Converts autoconf style CPU name to OpenJDK style, into 4306 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4307 4308 4309 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4310 # Converts autoconf style OS name to OpenJDK style, into 4311 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4312 4313 4314 # Expects $host_os $host_cpu $build_os and $build_cpu 4315 # and $with_target_bits to have been setup! 4316 # 4317 # Translate the standard triplet(quadruplet) definition 4318 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4319 # OPENJDK_BUILD_OS, etc. 4320 4321 4322 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4323 # accordingly. Must be done after setting up build and target system, but before 4324 # doing anything else with these values. 4325 4326 4327 # Setup the legacy variables, for controlling the old makefiles. 4328 # 4329 4330 4331 4332 4333 #%%% Build and target systems %%% 4334 4335 4336 4337 4338 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4339 # Add -mX to various FLAGS variables. 4340 4341 4342 4343 4344 4345 4346 # 4347 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4348 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4349 # 4350 # This code is free software; you can redistribute it and/or modify it 4351 # under the terms of the GNU General Public License version 2 only, as 4352 # published by the Free Software Foundation. Oracle designates this 4353 # particular file as subject to the "Classpath" exception as provided 4354 # by Oracle in the LICENSE file that accompanied this code. 4355 # 4356 # This code is distributed in the hope that it will be useful, but WITHOUT 4357 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4358 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4359 # version 2 for more details (a copy is included in the LICENSE file that 4360 # accompanied this code). 4361 # 4362 # You should have received a copy of the GNU General Public License version 4363 # 2 along with this work; if not, write to the Free Software Foundation, 4364 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4365 # 4366 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4367 # or visit www.oracle.com if you need additional information or have any 4368 # questions. 4369 # 4370 4371 4372 4373 4374 4375 4376 4377 4378 # 4379 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4380 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4381 # 4382 # This code is free software; you can redistribute it and/or modify it 4383 # under the terms of the GNU General Public License version 2 only, as 4384 # published by the Free Software Foundation. Oracle designates this 4385 # particular file as subject to the "Classpath" exception as provided 4386 # by Oracle in the LICENSE file that accompanied this code. 4387 # 4388 # This code is distributed in the hope that it will be useful, but WITHOUT 4389 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4390 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4391 # version 2 for more details (a copy is included in the LICENSE file that 4392 # accompanied this code). 4393 # 4394 # You should have received a copy of the GNU General Public License version 4395 # 2 along with this work; if not, write to the Free Software Foundation, 4396 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4397 # 4398 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4399 # or visit www.oracle.com if you need additional information or have any 4400 # questions. 4401 # 4402 4403 ######################################################################## 4404 # This file is responsible for detecting, verifying and setting up the 4405 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4406 # proper paths to the binaries, but it will not setup any flags. 4407 # 4408 # The binaries used is determined by the toolchain type, which is the family of 4409 # compilers and related tools that are used. 4410 ######################################################################## 4411 4412 4413 # All valid toolchains, regardless of platform (used by help.m4) 4414 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4415 4416 # These toolchains are valid on different platforms 4417 VALID_TOOLCHAINS_linux="gcc clang" 4418 VALID_TOOLCHAINS_solaris="solstudio" 4419 VALID_TOOLCHAINS_macosx="gcc clang" 4420 VALID_TOOLCHAINS_aix="xlc" 4421 VALID_TOOLCHAINS_windows="microsoft" 4422 4423 # Toolchain descriptions 4424 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4425 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4426 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4427 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4428 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4429 4430 # Setup a number of variables describing how native output files are 4431 # named on this platform/toolchain. 4432 4433 4434 # Determine which toolchain type to use, and make sure it is valid for this 4435 # platform. Setup various information about the selected toolchain. 4436 4437 4438 # Before we start detecting the toolchain executables, we might need some 4439 # special setup, e.g. additional paths etc. 4440 4441 4442 # Restore path, etc 4443 4444 4445 # Check if a compiler is of the toolchain type we expect, and save the version 4446 # information from it. If the compiler does not match the expected type, 4447 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4448 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4449 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4450 # 4451 # $1 = compiler to test (CC or CXX) 4452 # $2 = human readable name of compiler (C or C++) 4453 4454 4455 # Try to locate the given C or C++ compiler in the path, or otherwise. 4456 # 4457 # $1 = compiler to test (CC or CXX) 4458 # $2 = human readable name of compiler (C or C++) 4459 # $3 = list of compiler names to search for 4460 4461 4462 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4463 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4464 # archiver (AR). Verify that the compilers are correct according to the 4465 # toolchain type. 4466 4467 4468 # Setup additional tools that is considered a part of the toolchain, but not the 4469 # core part. Many of these are highly platform-specific and do not exist, 4470 # and/or are not needed on all platforms. 4471 4472 4473 # Setup the build tools (i.e, the compiler and linker used to build programs 4474 # that should be run on the build platform, not the target platform, as a build 4475 # helper). Since the non-cross-compile case uses the normal, target compilers 4476 # for this, we can only do this after these have been setup. 4477 4478 4479 # Setup legacy variables that are still needed as alternative ways to refer to 4480 # parts of the toolchain. 4481 4482 4483 # Do some additional checks on the detected tools. 4484 4485 4486 # Setup the JTReg Regression Test Harness. 4487 4488 4489 # 4490 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4491 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4492 # 4493 # This code is free software; you can redistribute it and/or modify it 4494 # under the terms of the GNU General Public License version 2 only, as 4495 # published by the Free Software Foundation. Oracle designates this 4496 # particular file as subject to the "Classpath" exception as provided 4497 # by Oracle in the LICENSE file that accompanied this code. 4498 # 4499 # This code is distributed in the hope that it will be useful, but WITHOUT 4500 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4501 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4502 # version 2 for more details (a copy is included in the LICENSE file that 4503 # accompanied this code). 4504 # 4505 # You should have received a copy of the GNU General Public License version 4506 # 2 along with this work; if not, write to the Free Software Foundation, 4507 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4508 # 4509 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4510 # or visit www.oracle.com if you need additional information or have any 4511 # questions. 4512 # 4513 4514 ################################################################################ 4515 # The order of these defines the priority by which we try to find them. 4516 VALID_VS_VERSIONS="2013 2012 2010" 4517 4518 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4519 VS_VERSION_INTERNAL_2010=100 4520 VS_MSVCR_2010=msvcr100.dll 4521 # We don't use msvcp on Visual Studio 2010 4522 #VS_MSVCP_2010=msvcp100.dll 4523 VS_ENVVAR_2010="VS100COMNTOOLS" 4524 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4525 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4526 VS_VS_PLATFORM_NAME_2010="v100" 4527 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4528 4529 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4530 VS_VERSION_INTERNAL_2012=110 4531 VS_MSVCR_2012=msvcr110.dll 4532 VS_MSVCP_2012=msvcp110.dll 4533 VS_ENVVAR_2012="VS110COMNTOOLS" 4534 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4535 VS_SDK_INSTALLDIR_2012= 4536 VS_VS_PLATFORM_NAME_2012="v110" 4537 VS_SDK_PLATFORM_NAME_2012= 4538 4539 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4540 VS_VERSION_INTERNAL_2013=120 4541 VS_MSVCR_2013=msvcr120.dll 4542 VS_MSVCP_2013=msvcp120.dll 4543 VS_ENVVAR_2013="VS120COMNTOOLS" 4544 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4545 VS_SDK_INSTALLDIR_2013= 4546 VS_VS_PLATFORM_NAME_2013="v120" 4547 VS_SDK_PLATFORM_NAME_2013= 4548 4549 ################################################################################ 4550 4551 4552 4553 ################################################################################ 4554 4555 4556 4557 ################################################################################ 4558 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4559 # build environment and assigns it to VS_ENV_CMD 4560 4561 4562 ################################################################################ 4563 4564 4565 4566 ################################################################################ 4567 # Check if the VS env variables were setup prior to running configure. 4568 # If not, then find vcvarsall.bat and run it automatically, and integrate 4569 # the set env variables into the spec file. 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 # This line needs to be here, verbatim, after all includes and the dummy hook 4585 # definitions. It is replaced with custom functionality when building 4586 # custom sources. 4587 #CUSTOM_AUTOCONF_INCLUDE 4588 4589 # Do not change or remove the following line, it is needed for consistency checks: 4590 DATE_WHEN_GENERATED=1444643341 4591 4592 ############################################################################### 4593 # 4594 # Initialization / Boot-strapping 4595 # 4596 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4597 # thus it jumps back and forth, each time gaining something needed later on. 4598 # 4599 ############################################################################### 4600 4601 # If we are requested to print additional help, do that and then exit. 4602 # This must be the very first call. 4603 4604 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4605 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4606 $PRINTF "Which are valid to use depends on the build platform.\n" 4607 for toolchain in $VALID_TOOLCHAINS_all; do 4608 # Use indirect variable referencing 4609 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4610 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4611 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4612 done 4613 4614 # And now exit directly 4615 exit 0 4616 fi 4617 4618 4619 # Basic initialization that must happen first of all in the normal process. 4620 4621 # Save the original command line. This is passed to us by the wrapper configure script. 4622 4623 # Save the path variable before it gets changed 4624 ORIGINAL_PATH="$PATH" 4625 4626 DATE_WHEN_CONFIGURED=`LANG=C date` 4627 4628 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4629 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4631 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4632 4633 4634 # Start with tools that do not need have cross compilation support 4635 # and can be expected to be found in the default PATH. These tools are 4636 # used by configure. 4637 4638 # First are all the simple required tools. 4639 4640 4641 4642 # Publish this variable in the help. 4643 4644 4645 if [ -z "${BASENAME+x}" ]; then 4646 # The variable is not set by user, try to locate tool using the code snippet 4647 for ac_prog in basename 4648 do 4649 # Extract the first word of "$ac_prog", so it can be a program name with args. 4650 set dummy $ac_prog; ac_word=$2 4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4652 $as_echo_n "checking for $ac_word... " >&6; } 4653 if ${ac_cv_path_BASENAME+:} false; then : 4654 $as_echo_n "(cached) " >&6 4655 else 4656 case $BASENAME in 4657 [\\/]* | ?:[\\/]*) 4658 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4659 ;; 4660 *) 4661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4662 for as_dir in $PATH 4663 do 4664 IFS=$as_save_IFS 4665 test -z "$as_dir" && as_dir=. 4666 for ac_exec_ext in '' $ac_executable_extensions; do 4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4668 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4670 break 2 4671 fi 4672 done 4673 done 4674 IFS=$as_save_IFS 4675 4676 ;; 4677 esac 4678 fi 4679 BASENAME=$ac_cv_path_BASENAME 4680 if test -n "$BASENAME"; then 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4682 $as_echo "$BASENAME" >&6; } 4683 else 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4685 $as_echo "no" >&6; } 4686 fi 4687 4688 4689 test -n "$BASENAME" && break 4690 done 4691 4692 else 4693 # The variable is set, but is it from the command line or the environment? 4694 4695 # Try to remove the string !BASENAME! from our list. 4696 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4697 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4698 # If it failed, the variable was not from the command line. Ignore it, 4699 # but warn the user (except for BASH, which is always set by the calling BASH). 4700 if test "xBASENAME" != xBASH; then 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4702 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4703 fi 4704 # Try to locate tool using the code snippet 4705 for ac_prog in basename 4706 do 4707 # Extract the first word of "$ac_prog", so it can be a program name with args. 4708 set dummy $ac_prog; ac_word=$2 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4710 $as_echo_n "checking for $ac_word... " >&6; } 4711 if ${ac_cv_path_BASENAME+:} false; then : 4712 $as_echo_n "(cached) " >&6 4713 else 4714 case $BASENAME in 4715 [\\/]* | ?:[\\/]*) 4716 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4717 ;; 4718 *) 4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4720 for as_dir in $PATH 4721 do 4722 IFS=$as_save_IFS 4723 test -z "$as_dir" && as_dir=. 4724 for ac_exec_ext in '' $ac_executable_extensions; do 4725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4726 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4728 break 2 4729 fi 4730 done 4731 done 4732 IFS=$as_save_IFS 4733 4734 ;; 4735 esac 4736 fi 4737 BASENAME=$ac_cv_path_BASENAME 4738 if test -n "$BASENAME"; then 4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4740 $as_echo "$BASENAME" >&6; } 4741 else 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4743 $as_echo "no" >&6; } 4744 fi 4745 4746 4747 test -n "$BASENAME" && break 4748 done 4749 4750 else 4751 # If it succeeded, then it was overridden by the user. We will use it 4752 # for the tool. 4753 4754 # First remove it from the list of overridden variables, so we can test 4755 # for unknown variables in the end. 4756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4757 4758 # Check if we try to supply an empty value 4759 if test "x$BASENAME" = x; then 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 4761 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4763 $as_echo_n "checking for BASENAME... " >&6; } 4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 4765 $as_echo "disabled" >&6; } 4766 else 4767 # Check if the provided tool contains a complete path. 4768 tool_specified="$BASENAME" 4769 tool_basename="${tool_specified##*/}" 4770 if test "x$tool_basename" = "x$tool_specified"; then 4771 # A command without a complete path is provided, search $PATH. 4772 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4773 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4774 # Extract the first word of "$tool_basename", so it can be a program name with args. 4775 set dummy $tool_basename; ac_word=$2 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4777 $as_echo_n "checking for $ac_word... " >&6; } 4778 if ${ac_cv_path_BASENAME+:} false; then : 4779 $as_echo_n "(cached) " >&6 4780 else 4781 case $BASENAME in 4782 [\\/]* | ?:[\\/]*) 4783 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4784 ;; 4785 *) 4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4787 for as_dir in $PATH 4788 do 4789 IFS=$as_save_IFS 4790 test -z "$as_dir" && as_dir=. 4791 for ac_exec_ext in '' $ac_executable_extensions; do 4792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4793 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4795 break 2 4796 fi 4797 done 4798 done 4799 IFS=$as_save_IFS 4800 4801 ;; 4802 esac 4803 fi 4804 BASENAME=$ac_cv_path_BASENAME 4805 if test -n "$BASENAME"; then 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4807 $as_echo "$BASENAME" >&6; } 4808 else 4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4810 $as_echo "no" >&6; } 4811 fi 4812 4813 4814 if test "x$BASENAME" = x; then 4815 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4816 fi 4817 else 4818 # Otherwise we believe it is a complete path. Use it as it is. 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4820 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4822 $as_echo_n "checking for BASENAME... " >&6; } 4823 if test ! -x "$tool_specified"; then 4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4825 $as_echo "not found" >&6; } 4826 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4827 fi 4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4829 $as_echo "$tool_specified" >&6; } 4830 fi 4831 fi 4832 fi 4833 fi 4834 4835 4836 4837 if test "x$BASENAME" = x; then 4838 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4839 fi 4840 4841 4842 4843 4844 4845 # Publish this variable in the help. 4846 4847 4848 if [ -z "${BASH+x}" ]; then 4849 # The variable is not set by user, try to locate tool using the code snippet 4850 for ac_prog in bash 4851 do 4852 # Extract the first word of "$ac_prog", so it can be a program name with args. 4853 set dummy $ac_prog; ac_word=$2 4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4855 $as_echo_n "checking for $ac_word... " >&6; } 4856 if ${ac_cv_path_BASH+:} false; then : 4857 $as_echo_n "(cached) " >&6 4858 else 4859 case $BASH in 4860 [\\/]* | ?:[\\/]*) 4861 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4862 ;; 4863 *) 4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4865 for as_dir in $PATH 4866 do 4867 IFS=$as_save_IFS 4868 test -z "$as_dir" && as_dir=. 4869 for ac_exec_ext in '' $ac_executable_extensions; do 4870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4871 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4873 break 2 4874 fi 4875 done 4876 done 4877 IFS=$as_save_IFS 4878 4879 ;; 4880 esac 4881 fi 4882 BASH=$ac_cv_path_BASH 4883 if test -n "$BASH"; then 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4885 $as_echo "$BASH" >&6; } 4886 else 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4888 $as_echo "no" >&6; } 4889 fi 4890 4891 4892 test -n "$BASH" && break 4893 done 4894 4895 else 4896 # The variable is set, but is it from the command line or the environment? 4897 4898 # Try to remove the string !BASH! from our list. 4899 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4900 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4901 # If it failed, the variable was not from the command line. Ignore it, 4902 # but warn the user (except for BASH, which is always set by the calling BASH). 4903 if test "xBASH" != xBASH; then 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4905 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4906 fi 4907 # Try to locate tool using the code snippet 4908 for ac_prog in bash 4909 do 4910 # Extract the first word of "$ac_prog", so it can be a program name with args. 4911 set dummy $ac_prog; ac_word=$2 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4913 $as_echo_n "checking for $ac_word... " >&6; } 4914 if ${ac_cv_path_BASH+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916 else 4917 case $BASH in 4918 [\\/]* | ?:[\\/]*) 4919 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4920 ;; 4921 *) 4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4923 for as_dir in $PATH 4924 do 4925 IFS=$as_save_IFS 4926 test -z "$as_dir" && as_dir=. 4927 for ac_exec_ext in '' $ac_executable_extensions; do 4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4929 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4931 break 2 4932 fi 4933 done 4934 done 4935 IFS=$as_save_IFS 4936 4937 ;; 4938 esac 4939 fi 4940 BASH=$ac_cv_path_BASH 4941 if test -n "$BASH"; then 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4943 $as_echo "$BASH" >&6; } 4944 else 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4946 $as_echo "no" >&6; } 4947 fi 4948 4949 4950 test -n "$BASH" && break 4951 done 4952 4953 else 4954 # If it succeeded, then it was overridden by the user. We will use it 4955 # for the tool. 4956 4957 # First remove it from the list of overridden variables, so we can test 4958 # for unknown variables in the end. 4959 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4960 4961 # Check if we try to supply an empty value 4962 if test "x$BASH" = x; then 4963 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 4964 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4966 $as_echo_n "checking for BASH... " >&6; } 4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 4968 $as_echo "disabled" >&6; } 4969 else 4970 # Check if the provided tool contains a complete path. 4971 tool_specified="$BASH" 4972 tool_basename="${tool_specified##*/}" 4973 if test "x$tool_basename" = "x$tool_specified"; then 4974 # A command without a complete path is provided, search $PATH. 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4976 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4977 # Extract the first word of "$tool_basename", so it can be a program name with args. 4978 set dummy $tool_basename; ac_word=$2 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4980 $as_echo_n "checking for $ac_word... " >&6; } 4981 if ${ac_cv_path_BASH+:} false; then : 4982 $as_echo_n "(cached) " >&6 4983 else 4984 case $BASH in 4985 [\\/]* | ?:[\\/]*) 4986 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4987 ;; 4988 *) 4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4990 for as_dir in $PATH 4991 do 4992 IFS=$as_save_IFS 4993 test -z "$as_dir" && as_dir=. 4994 for ac_exec_ext in '' $ac_executable_extensions; do 4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4996 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4998 break 2 4999 fi 5000 done 5001 done 5002 IFS=$as_save_IFS 5003 5004 ;; 5005 esac 5006 fi 5007 BASH=$ac_cv_path_BASH 5008 if test -n "$BASH"; then 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5010 $as_echo "$BASH" >&6; } 5011 else 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5013 $as_echo "no" >&6; } 5014 fi 5015 5016 5017 if test "x$BASH" = x; then 5018 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5019 fi 5020 else 5021 # Otherwise we believe it is a complete path. Use it as it is. 5022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5023 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5025 $as_echo_n "checking for BASH... " >&6; } 5026 if test ! -x "$tool_specified"; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5028 $as_echo "not found" >&6; } 5029 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5030 fi 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5032 $as_echo "$tool_specified" >&6; } 5033 fi 5034 fi 5035 fi 5036 fi 5037 5038 5039 5040 if test "x$BASH" = x; then 5041 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5042 fi 5043 5044 5045 5046 5047 5048 # Publish this variable in the help. 5049 5050 5051 if [ -z "${CAT+x}" ]; then 5052 # The variable is not set by user, try to locate tool using the code snippet 5053 for ac_prog in cat 5054 do 5055 # Extract the first word of "$ac_prog", so it can be a program name with args. 5056 set dummy $ac_prog; ac_word=$2 5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5058 $as_echo_n "checking for $ac_word... " >&6; } 5059 if ${ac_cv_path_CAT+:} false; then : 5060 $as_echo_n "(cached) " >&6 5061 else 5062 case $CAT in 5063 [\\/]* | ?:[\\/]*) 5064 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5065 ;; 5066 *) 5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5068 for as_dir in $PATH 5069 do 5070 IFS=$as_save_IFS 5071 test -z "$as_dir" && as_dir=. 5072 for ac_exec_ext in '' $ac_executable_extensions; do 5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5074 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5076 break 2 5077 fi 5078 done 5079 done 5080 IFS=$as_save_IFS 5081 5082 ;; 5083 esac 5084 fi 5085 CAT=$ac_cv_path_CAT 5086 if test -n "$CAT"; then 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5088 $as_echo "$CAT" >&6; } 5089 else 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5091 $as_echo "no" >&6; } 5092 fi 5093 5094 5095 test -n "$CAT" && break 5096 done 5097 5098 else 5099 # The variable is set, but is it from the command line or the environment? 5100 5101 # Try to remove the string !CAT! from our list. 5102 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5103 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5104 # If it failed, the variable was not from the command line. Ignore it, 5105 # but warn the user (except for BASH, which is always set by the calling BASH). 5106 if test "xCAT" != xBASH; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5108 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5109 fi 5110 # Try to locate tool using the code snippet 5111 for ac_prog in cat 5112 do 5113 # Extract the first word of "$ac_prog", so it can be a program name with args. 5114 set dummy $ac_prog; ac_word=$2 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5116 $as_echo_n "checking for $ac_word... " >&6; } 5117 if ${ac_cv_path_CAT+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119 else 5120 case $CAT in 5121 [\\/]* | ?:[\\/]*) 5122 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5123 ;; 5124 *) 5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5126 for as_dir in $PATH 5127 do 5128 IFS=$as_save_IFS 5129 test -z "$as_dir" && as_dir=. 5130 for ac_exec_ext in '' $ac_executable_extensions; do 5131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5132 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5134 break 2 5135 fi 5136 done 5137 done 5138 IFS=$as_save_IFS 5139 5140 ;; 5141 esac 5142 fi 5143 CAT=$ac_cv_path_CAT 5144 if test -n "$CAT"; then 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5146 $as_echo "$CAT" >&6; } 5147 else 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5149 $as_echo "no" >&6; } 5150 fi 5151 5152 5153 test -n "$CAT" && break 5154 done 5155 5156 else 5157 # If it succeeded, then it was overridden by the user. We will use it 5158 # for the tool. 5159 5160 # First remove it from the list of overridden variables, so we can test 5161 # for unknown variables in the end. 5162 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5163 5164 # Check if we try to supply an empty value 5165 if test "x$CAT" = x; then 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5167 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5169 $as_echo_n "checking for CAT... " >&6; } 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5171 $as_echo "disabled" >&6; } 5172 else 5173 # Check if the provided tool contains a complete path. 5174 tool_specified="$CAT" 5175 tool_basename="${tool_specified##*/}" 5176 if test "x$tool_basename" = "x$tool_specified"; then 5177 # A command without a complete path is provided, search $PATH. 5178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5179 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5180 # Extract the first word of "$tool_basename", so it can be a program name with args. 5181 set dummy $tool_basename; ac_word=$2 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5183 $as_echo_n "checking for $ac_word... " >&6; } 5184 if ${ac_cv_path_CAT+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186 else 5187 case $CAT in 5188 [\\/]* | ?:[\\/]*) 5189 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5190 ;; 5191 *) 5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5193 for as_dir in $PATH 5194 do 5195 IFS=$as_save_IFS 5196 test -z "$as_dir" && as_dir=. 5197 for ac_exec_ext in '' $ac_executable_extensions; do 5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5199 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5201 break 2 5202 fi 5203 done 5204 done 5205 IFS=$as_save_IFS 5206 5207 ;; 5208 esac 5209 fi 5210 CAT=$ac_cv_path_CAT 5211 if test -n "$CAT"; then 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5213 $as_echo "$CAT" >&6; } 5214 else 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5216 $as_echo "no" >&6; } 5217 fi 5218 5219 5220 if test "x$CAT" = x; then 5221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5222 fi 5223 else 5224 # Otherwise we believe it is a complete path. Use it as it is. 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5226 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5228 $as_echo_n "checking for CAT... " >&6; } 5229 if test ! -x "$tool_specified"; then 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5231 $as_echo "not found" >&6; } 5232 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5233 fi 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5235 $as_echo "$tool_specified" >&6; } 5236 fi 5237 fi 5238 fi 5239 fi 5240 5241 5242 5243 if test "x$CAT" = x; then 5244 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5245 fi 5246 5247 5248 5249 5250 5251 # Publish this variable in the help. 5252 5253 5254 if [ -z "${CHMOD+x}" ]; then 5255 # The variable is not set by user, try to locate tool using the code snippet 5256 for ac_prog in chmod 5257 do 5258 # Extract the first word of "$ac_prog", so it can be a program name with args. 5259 set dummy $ac_prog; ac_word=$2 5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5261 $as_echo_n "checking for $ac_word... " >&6; } 5262 if ${ac_cv_path_CHMOD+:} false; then : 5263 $as_echo_n "(cached) " >&6 5264 else 5265 case $CHMOD in 5266 [\\/]* | ?:[\\/]*) 5267 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5268 ;; 5269 *) 5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5271 for as_dir in $PATH 5272 do 5273 IFS=$as_save_IFS 5274 test -z "$as_dir" && as_dir=. 5275 for ac_exec_ext in '' $ac_executable_extensions; do 5276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5277 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5279 break 2 5280 fi 5281 done 5282 done 5283 IFS=$as_save_IFS 5284 5285 ;; 5286 esac 5287 fi 5288 CHMOD=$ac_cv_path_CHMOD 5289 if test -n "$CHMOD"; then 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5291 $as_echo "$CHMOD" >&6; } 5292 else 5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5294 $as_echo "no" >&6; } 5295 fi 5296 5297 5298 test -n "$CHMOD" && break 5299 done 5300 5301 else 5302 # The variable is set, but is it from the command line or the environment? 5303 5304 # Try to remove the string !CHMOD! from our list. 5305 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5306 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5307 # If it failed, the variable was not from the command line. Ignore it, 5308 # but warn the user (except for BASH, which is always set by the calling BASH). 5309 if test "xCHMOD" != xBASH; then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5311 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5312 fi 5313 # Try to locate tool using the code snippet 5314 for ac_prog in chmod 5315 do 5316 # Extract the first word of "$ac_prog", so it can be a program name with args. 5317 set dummy $ac_prog; ac_word=$2 5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5319 $as_echo_n "checking for $ac_word... " >&6; } 5320 if ${ac_cv_path_CHMOD+:} false; then : 5321 $as_echo_n "(cached) " >&6 5322 else 5323 case $CHMOD in 5324 [\\/]* | ?:[\\/]*) 5325 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5326 ;; 5327 *) 5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5329 for as_dir in $PATH 5330 do 5331 IFS=$as_save_IFS 5332 test -z "$as_dir" && as_dir=. 5333 for ac_exec_ext in '' $ac_executable_extensions; do 5334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5335 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5337 break 2 5338 fi 5339 done 5340 done 5341 IFS=$as_save_IFS 5342 5343 ;; 5344 esac 5345 fi 5346 CHMOD=$ac_cv_path_CHMOD 5347 if test -n "$CHMOD"; then 5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5349 $as_echo "$CHMOD" >&6; } 5350 else 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5352 $as_echo "no" >&6; } 5353 fi 5354 5355 5356 test -n "$CHMOD" && break 5357 done 5358 5359 else 5360 # If it succeeded, then it was overridden by the user. We will use it 5361 # for the tool. 5362 5363 # First remove it from the list of overridden variables, so we can test 5364 # for unknown variables in the end. 5365 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5366 5367 # Check if we try to supply an empty value 5368 if test "x$CHMOD" = x; then 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5370 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5372 $as_echo_n "checking for CHMOD... " >&6; } 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5374 $as_echo "disabled" >&6; } 5375 else 5376 # Check if the provided tool contains a complete path. 5377 tool_specified="$CHMOD" 5378 tool_basename="${tool_specified##*/}" 5379 if test "x$tool_basename" = "x$tool_specified"; then 5380 # A command without a complete path is provided, search $PATH. 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5382 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5383 # Extract the first word of "$tool_basename", so it can be a program name with args. 5384 set dummy $tool_basename; ac_word=$2 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5386 $as_echo_n "checking for $ac_word... " >&6; } 5387 if ${ac_cv_path_CHMOD+:} false; then : 5388 $as_echo_n "(cached) " >&6 5389 else 5390 case $CHMOD in 5391 [\\/]* | ?:[\\/]*) 5392 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5393 ;; 5394 *) 5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5396 for as_dir in $PATH 5397 do 5398 IFS=$as_save_IFS 5399 test -z "$as_dir" && as_dir=. 5400 for ac_exec_ext in '' $ac_executable_extensions; do 5401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5402 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5404 break 2 5405 fi 5406 done 5407 done 5408 IFS=$as_save_IFS 5409 5410 ;; 5411 esac 5412 fi 5413 CHMOD=$ac_cv_path_CHMOD 5414 if test -n "$CHMOD"; then 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5416 $as_echo "$CHMOD" >&6; } 5417 else 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5419 $as_echo "no" >&6; } 5420 fi 5421 5422 5423 if test "x$CHMOD" = x; then 5424 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5425 fi 5426 else 5427 # Otherwise we believe it is a complete path. Use it as it is. 5428 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5429 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5431 $as_echo_n "checking for CHMOD... " >&6; } 5432 if test ! -x "$tool_specified"; then 5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5434 $as_echo "not found" >&6; } 5435 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5436 fi 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5438 $as_echo "$tool_specified" >&6; } 5439 fi 5440 fi 5441 fi 5442 fi 5443 5444 5445 5446 if test "x$CHMOD" = x; then 5447 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5448 fi 5449 5450 5451 5452 5453 5454 # Publish this variable in the help. 5455 5456 5457 if [ -z "${CMP+x}" ]; then 5458 # The variable is not set by user, try to locate tool using the code snippet 5459 for ac_prog in cmp 5460 do 5461 # Extract the first word of "$ac_prog", so it can be a program name with args. 5462 set dummy $ac_prog; ac_word=$2 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464 $as_echo_n "checking for $ac_word... " >&6; } 5465 if ${ac_cv_path_CMP+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467 else 5468 case $CMP in 5469 [\\/]* | ?:[\\/]*) 5470 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5471 ;; 5472 *) 5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5474 for as_dir in $PATH 5475 do 5476 IFS=$as_save_IFS 5477 test -z "$as_dir" && as_dir=. 5478 for ac_exec_ext in '' $ac_executable_extensions; do 5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5480 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5482 break 2 5483 fi 5484 done 5485 done 5486 IFS=$as_save_IFS 5487 5488 ;; 5489 esac 5490 fi 5491 CMP=$ac_cv_path_CMP 5492 if test -n "$CMP"; then 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5494 $as_echo "$CMP" >&6; } 5495 else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5497 $as_echo "no" >&6; } 5498 fi 5499 5500 5501 test -n "$CMP" && break 5502 done 5503 5504 else 5505 # The variable is set, but is it from the command line or the environment? 5506 5507 # Try to remove the string !CMP! from our list. 5508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5510 # If it failed, the variable was not from the command line. Ignore it, 5511 # but warn the user (except for BASH, which is always set by the calling BASH). 5512 if test "xCMP" != xBASH; then 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5514 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5515 fi 5516 # Try to locate tool using the code snippet 5517 for ac_prog in cmp 5518 do 5519 # Extract the first word of "$ac_prog", so it can be a program name with args. 5520 set dummy $ac_prog; ac_word=$2 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522 $as_echo_n "checking for $ac_word... " >&6; } 5523 if ${ac_cv_path_CMP+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525 else 5526 case $CMP in 5527 [\\/]* | ?:[\\/]*) 5528 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5529 ;; 5530 *) 5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532 for as_dir in $PATH 5533 do 5534 IFS=$as_save_IFS 5535 test -z "$as_dir" && as_dir=. 5536 for ac_exec_ext in '' $ac_executable_extensions; do 5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5538 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5540 break 2 5541 fi 5542 done 5543 done 5544 IFS=$as_save_IFS 5545 5546 ;; 5547 esac 5548 fi 5549 CMP=$ac_cv_path_CMP 5550 if test -n "$CMP"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5552 $as_echo "$CMP" >&6; } 5553 else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555 $as_echo "no" >&6; } 5556 fi 5557 5558 5559 test -n "$CMP" && break 5560 done 5561 5562 else 5563 # If it succeeded, then it was overridden by the user. We will use it 5564 # for the tool. 5565 5566 # First remove it from the list of overridden variables, so we can test 5567 # for unknown variables in the end. 5568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5569 5570 # Check if we try to supply an empty value 5571 if test "x$CMP" = x; then 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 5573 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5575 $as_echo_n "checking for CMP... " >&6; } 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5577 $as_echo "disabled" >&6; } 5578 else 5579 # Check if the provided tool contains a complete path. 5580 tool_specified="$CMP" 5581 tool_basename="${tool_specified##*/}" 5582 if test "x$tool_basename" = "x$tool_specified"; then 5583 # A command without a complete path is provided, search $PATH. 5584 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5585 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5586 # Extract the first word of "$tool_basename", so it can be a program name with args. 5587 set dummy $tool_basename; ac_word=$2 5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5589 $as_echo_n "checking for $ac_word... " >&6; } 5590 if ${ac_cv_path_CMP+:} false; then : 5591 $as_echo_n "(cached) " >&6 5592 else 5593 case $CMP in 5594 [\\/]* | ?:[\\/]*) 5595 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5596 ;; 5597 *) 5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5599 for as_dir in $PATH 5600 do 5601 IFS=$as_save_IFS 5602 test -z "$as_dir" && as_dir=. 5603 for ac_exec_ext in '' $ac_executable_extensions; do 5604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5605 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5607 break 2 5608 fi 5609 done 5610 done 5611 IFS=$as_save_IFS 5612 5613 ;; 5614 esac 5615 fi 5616 CMP=$ac_cv_path_CMP 5617 if test -n "$CMP"; then 5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5619 $as_echo "$CMP" >&6; } 5620 else 5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5622 $as_echo "no" >&6; } 5623 fi 5624 5625 5626 if test "x$CMP" = x; then 5627 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5628 fi 5629 else 5630 # Otherwise we believe it is a complete path. Use it as it is. 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5632 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5634 $as_echo_n "checking for CMP... " >&6; } 5635 if test ! -x "$tool_specified"; then 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5637 $as_echo "not found" >&6; } 5638 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5639 fi 5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5641 $as_echo "$tool_specified" >&6; } 5642 fi 5643 fi 5644 fi 5645 fi 5646 5647 5648 5649 if test "x$CMP" = x; then 5650 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5651 fi 5652 5653 5654 5655 5656 5657 # Publish this variable in the help. 5658 5659 5660 if [ -z "${COMM+x}" ]; then 5661 # The variable is not set by user, try to locate tool using the code snippet 5662 for ac_prog in comm 5663 do 5664 # Extract the first word of "$ac_prog", so it can be a program name with args. 5665 set dummy $ac_prog; ac_word=$2 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5667 $as_echo_n "checking for $ac_word... " >&6; } 5668 if ${ac_cv_path_COMM+:} false; then : 5669 $as_echo_n "(cached) " >&6 5670 else 5671 case $COMM in 5672 [\\/]* | ?:[\\/]*) 5673 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5674 ;; 5675 *) 5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5677 for as_dir in $PATH 5678 do 5679 IFS=$as_save_IFS 5680 test -z "$as_dir" && as_dir=. 5681 for ac_exec_ext in '' $ac_executable_extensions; do 5682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5683 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5685 break 2 5686 fi 5687 done 5688 done 5689 IFS=$as_save_IFS 5690 5691 ;; 5692 esac 5693 fi 5694 COMM=$ac_cv_path_COMM 5695 if test -n "$COMM"; then 5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5697 $as_echo "$COMM" >&6; } 5698 else 5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5700 $as_echo "no" >&6; } 5701 fi 5702 5703 5704 test -n "$COMM" && break 5705 done 5706 5707 else 5708 # The variable is set, but is it from the command line or the environment? 5709 5710 # Try to remove the string !COMM! from our list. 5711 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5712 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5713 # If it failed, the variable was not from the command line. Ignore it, 5714 # but warn the user (except for BASH, which is always set by the calling BASH). 5715 if test "xCOMM" != xBASH; then 5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5717 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5718 fi 5719 # Try to locate tool using the code snippet 5720 for ac_prog in comm 5721 do 5722 # Extract the first word of "$ac_prog", so it can be a program name with args. 5723 set dummy $ac_prog; ac_word=$2 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5725 $as_echo_n "checking for $ac_word... " >&6; } 5726 if ${ac_cv_path_COMM+:} false; then : 5727 $as_echo_n "(cached) " >&6 5728 else 5729 case $COMM in 5730 [\\/]* | ?:[\\/]*) 5731 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5732 ;; 5733 *) 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735 for as_dir in $PATH 5736 do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_exec_ext in '' $ac_executable_extensions; do 5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5741 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5743 break 2 5744 fi 5745 done 5746 done 5747 IFS=$as_save_IFS 5748 5749 ;; 5750 esac 5751 fi 5752 COMM=$ac_cv_path_COMM 5753 if test -n "$COMM"; then 5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5755 $as_echo "$COMM" >&6; } 5756 else 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5758 $as_echo "no" >&6; } 5759 fi 5760 5761 5762 test -n "$COMM" && break 5763 done 5764 5765 else 5766 # If it succeeded, then it was overridden by the user. We will use it 5767 # for the tool. 5768 5769 # First remove it from the list of overridden variables, so we can test 5770 # for unknown variables in the end. 5771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5772 5773 # Check if we try to supply an empty value 5774 if test "x$COMM" = x; then 5775 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 5776 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5778 $as_echo_n "checking for COMM... " >&6; } 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5780 $as_echo "disabled" >&6; } 5781 else 5782 # Check if the provided tool contains a complete path. 5783 tool_specified="$COMM" 5784 tool_basename="${tool_specified##*/}" 5785 if test "x$tool_basename" = "x$tool_specified"; then 5786 # A command without a complete path is provided, search $PATH. 5787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5788 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5789 # Extract the first word of "$tool_basename", so it can be a program name with args. 5790 set dummy $tool_basename; ac_word=$2 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5792 $as_echo_n "checking for $ac_word... " >&6; } 5793 if ${ac_cv_path_COMM+:} false; then : 5794 $as_echo_n "(cached) " >&6 5795 else 5796 case $COMM in 5797 [\\/]* | ?:[\\/]*) 5798 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5799 ;; 5800 *) 5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5802 for as_dir in $PATH 5803 do 5804 IFS=$as_save_IFS 5805 test -z "$as_dir" && as_dir=. 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5808 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5810 break 2 5811 fi 5812 done 5813 done 5814 IFS=$as_save_IFS 5815 5816 ;; 5817 esac 5818 fi 5819 COMM=$ac_cv_path_COMM 5820 if test -n "$COMM"; then 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5822 $as_echo "$COMM" >&6; } 5823 else 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5825 $as_echo "no" >&6; } 5826 fi 5827 5828 5829 if test "x$COMM" = x; then 5830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5831 fi 5832 else 5833 # Otherwise we believe it is a complete path. Use it as it is. 5834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5835 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5837 $as_echo_n "checking for COMM... " >&6; } 5838 if test ! -x "$tool_specified"; then 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5840 $as_echo "not found" >&6; } 5841 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5842 fi 5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5844 $as_echo "$tool_specified" >&6; } 5845 fi 5846 fi 5847 fi 5848 fi 5849 5850 5851 5852 if test "x$COMM" = x; then 5853 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5854 fi 5855 5856 5857 5858 5859 5860 # Publish this variable in the help. 5861 5862 5863 if [ -z "${CP+x}" ]; then 5864 # The variable is not set by user, try to locate tool using the code snippet 5865 for ac_prog in cp 5866 do 5867 # Extract the first word of "$ac_prog", so it can be a program name with args. 5868 set dummy $ac_prog; ac_word=$2 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5870 $as_echo_n "checking for $ac_word... " >&6; } 5871 if ${ac_cv_path_CP+:} false; then : 5872 $as_echo_n "(cached) " >&6 5873 else 5874 case $CP in 5875 [\\/]* | ?:[\\/]*) 5876 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5877 ;; 5878 *) 5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5880 for as_dir in $PATH 5881 do 5882 IFS=$as_save_IFS 5883 test -z "$as_dir" && as_dir=. 5884 for ac_exec_ext in '' $ac_executable_extensions; do 5885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5886 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5888 break 2 5889 fi 5890 done 5891 done 5892 IFS=$as_save_IFS 5893 5894 ;; 5895 esac 5896 fi 5897 CP=$ac_cv_path_CP 5898 if test -n "$CP"; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5900 $as_echo "$CP" >&6; } 5901 else 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5903 $as_echo "no" >&6; } 5904 fi 5905 5906 5907 test -n "$CP" && break 5908 done 5909 5910 else 5911 # The variable is set, but is it from the command line or the environment? 5912 5913 # Try to remove the string !CP! from our list. 5914 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5915 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5916 # If it failed, the variable was not from the command line. Ignore it, 5917 # but warn the user (except for BASH, which is always set by the calling BASH). 5918 if test "xCP" != xBASH; then 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5920 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5921 fi 5922 # Try to locate tool using the code snippet 5923 for ac_prog in cp 5924 do 5925 # Extract the first word of "$ac_prog", so it can be a program name with args. 5926 set dummy $ac_prog; ac_word=$2 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5928 $as_echo_n "checking for $ac_word... " >&6; } 5929 if ${ac_cv_path_CP+:} false; then : 5930 $as_echo_n "(cached) " >&6 5931 else 5932 case $CP in 5933 [\\/]* | ?:[\\/]*) 5934 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5935 ;; 5936 *) 5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5938 for as_dir in $PATH 5939 do 5940 IFS=$as_save_IFS 5941 test -z "$as_dir" && as_dir=. 5942 for ac_exec_ext in '' $ac_executable_extensions; do 5943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5944 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5946 break 2 5947 fi 5948 done 5949 done 5950 IFS=$as_save_IFS 5951 5952 ;; 5953 esac 5954 fi 5955 CP=$ac_cv_path_CP 5956 if test -n "$CP"; then 5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5958 $as_echo "$CP" >&6; } 5959 else 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5961 $as_echo "no" >&6; } 5962 fi 5963 5964 5965 test -n "$CP" && break 5966 done 5967 5968 else 5969 # If it succeeded, then it was overridden by the user. We will use it 5970 # for the tool. 5971 5972 # First remove it from the list of overridden variables, so we can test 5973 # for unknown variables in the end. 5974 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5975 5976 # Check if we try to supply an empty value 5977 if test "x$CP" = x; then 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 5979 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5981 $as_echo_n "checking for CP... " >&6; } 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5983 $as_echo "disabled" >&6; } 5984 else 5985 # Check if the provided tool contains a complete path. 5986 tool_specified="$CP" 5987 tool_basename="${tool_specified##*/}" 5988 if test "x$tool_basename" = "x$tool_specified"; then 5989 # A command without a complete path is provided, search $PATH. 5990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5991 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5992 # Extract the first word of "$tool_basename", so it can be a program name with args. 5993 set dummy $tool_basename; ac_word=$2 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5995 $as_echo_n "checking for $ac_word... " >&6; } 5996 if ${ac_cv_path_CP+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998 else 5999 case $CP in 6000 [\\/]* | ?:[\\/]*) 6001 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6002 ;; 6003 *) 6004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6005 for as_dir in $PATH 6006 do 6007 IFS=$as_save_IFS 6008 test -z "$as_dir" && as_dir=. 6009 for ac_exec_ext in '' $ac_executable_extensions; do 6010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6011 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6013 break 2 6014 fi 6015 done 6016 done 6017 IFS=$as_save_IFS 6018 6019 ;; 6020 esac 6021 fi 6022 CP=$ac_cv_path_CP 6023 if test -n "$CP"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6025 $as_echo "$CP" >&6; } 6026 else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028 $as_echo "no" >&6; } 6029 fi 6030 6031 6032 if test "x$CP" = x; then 6033 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6034 fi 6035 else 6036 # Otherwise we believe it is a complete path. Use it as it is. 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6038 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6040 $as_echo_n "checking for CP... " >&6; } 6041 if test ! -x "$tool_specified"; then 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6043 $as_echo "not found" >&6; } 6044 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6045 fi 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6047 $as_echo "$tool_specified" >&6; } 6048 fi 6049 fi 6050 fi 6051 fi 6052 6053 6054 6055 if test "x$CP" = x; then 6056 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6057 fi 6058 6059 6060 6061 6062 6063 # Publish this variable in the help. 6064 6065 6066 if [ -z "${CUT+x}" ]; then 6067 # The variable is not set by user, try to locate tool using the code snippet 6068 for ac_prog in cut 6069 do 6070 # Extract the first word of "$ac_prog", so it can be a program name with args. 6071 set dummy $ac_prog; ac_word=$2 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6073 $as_echo_n "checking for $ac_word... " >&6; } 6074 if ${ac_cv_path_CUT+:} false; then : 6075 $as_echo_n "(cached) " >&6 6076 else 6077 case $CUT in 6078 [\\/]* | ?:[\\/]*) 6079 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6080 ;; 6081 *) 6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6083 for as_dir in $PATH 6084 do 6085 IFS=$as_save_IFS 6086 test -z "$as_dir" && as_dir=. 6087 for ac_exec_ext in '' $ac_executable_extensions; do 6088 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6089 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6091 break 2 6092 fi 6093 done 6094 done 6095 IFS=$as_save_IFS 6096 6097 ;; 6098 esac 6099 fi 6100 CUT=$ac_cv_path_CUT 6101 if test -n "$CUT"; then 6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6103 $as_echo "$CUT" >&6; } 6104 else 6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6106 $as_echo "no" >&6; } 6107 fi 6108 6109 6110 test -n "$CUT" && break 6111 done 6112 6113 else 6114 # The variable is set, but is it from the command line or the environment? 6115 6116 # Try to remove the string !CUT! from our list. 6117 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6118 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6119 # If it failed, the variable was not from the command line. Ignore it, 6120 # but warn the user (except for BASH, which is always set by the calling BASH). 6121 if test "xCUT" != xBASH; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6123 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6124 fi 6125 # Try to locate tool using the code snippet 6126 for ac_prog in cut 6127 do 6128 # Extract the first word of "$ac_prog", so it can be a program name with args. 6129 set dummy $ac_prog; ac_word=$2 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131 $as_echo_n "checking for $ac_word... " >&6; } 6132 if ${ac_cv_path_CUT+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134 else 6135 case $CUT in 6136 [\\/]* | ?:[\\/]*) 6137 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6138 ;; 6139 *) 6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6141 for as_dir in $PATH 6142 do 6143 IFS=$as_save_IFS 6144 test -z "$as_dir" && as_dir=. 6145 for ac_exec_ext in '' $ac_executable_extensions; do 6146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6147 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6149 break 2 6150 fi 6151 done 6152 done 6153 IFS=$as_save_IFS 6154 6155 ;; 6156 esac 6157 fi 6158 CUT=$ac_cv_path_CUT 6159 if test -n "$CUT"; then 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6161 $as_echo "$CUT" >&6; } 6162 else 6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6164 $as_echo "no" >&6; } 6165 fi 6166 6167 6168 test -n "$CUT" && break 6169 done 6170 6171 else 6172 # If it succeeded, then it was overridden by the user. We will use it 6173 # for the tool. 6174 6175 # First remove it from the list of overridden variables, so we can test 6176 # for unknown variables in the end. 6177 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6178 6179 # Check if we try to supply an empty value 6180 if test "x$CUT" = x; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6182 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6184 $as_echo_n "checking for CUT... " >&6; } 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6186 $as_echo "disabled" >&6; } 6187 else 6188 # Check if the provided tool contains a complete path. 6189 tool_specified="$CUT" 6190 tool_basename="${tool_specified##*/}" 6191 if test "x$tool_basename" = "x$tool_specified"; then 6192 # A command without a complete path is provided, search $PATH. 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6194 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6195 # Extract the first word of "$tool_basename", so it can be a program name with args. 6196 set dummy $tool_basename; ac_word=$2 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6198 $as_echo_n "checking for $ac_word... " >&6; } 6199 if ${ac_cv_path_CUT+:} false; then : 6200 $as_echo_n "(cached) " >&6 6201 else 6202 case $CUT in 6203 [\\/]* | ?:[\\/]*) 6204 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6205 ;; 6206 *) 6207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6208 for as_dir in $PATH 6209 do 6210 IFS=$as_save_IFS 6211 test -z "$as_dir" && as_dir=. 6212 for ac_exec_ext in '' $ac_executable_extensions; do 6213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6214 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6216 break 2 6217 fi 6218 done 6219 done 6220 IFS=$as_save_IFS 6221 6222 ;; 6223 esac 6224 fi 6225 CUT=$ac_cv_path_CUT 6226 if test -n "$CUT"; then 6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6228 $as_echo "$CUT" >&6; } 6229 else 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6231 $as_echo "no" >&6; } 6232 fi 6233 6234 6235 if test "x$CUT" = x; then 6236 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6237 fi 6238 else 6239 # Otherwise we believe it is a complete path. Use it as it is. 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6241 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6243 $as_echo_n "checking for CUT... " >&6; } 6244 if test ! -x "$tool_specified"; then 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6246 $as_echo "not found" >&6; } 6247 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6248 fi 6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6250 $as_echo "$tool_specified" >&6; } 6251 fi 6252 fi 6253 fi 6254 fi 6255 6256 6257 6258 if test "x$CUT" = x; then 6259 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6260 fi 6261 6262 6263 6264 6265 6266 # Publish this variable in the help. 6267 6268 6269 if [ -z "${DATE+x}" ]; then 6270 # The variable is not set by user, try to locate tool using the code snippet 6271 for ac_prog in date 6272 do 6273 # Extract the first word of "$ac_prog", so it can be a program name with args. 6274 set dummy $ac_prog; ac_word=$2 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6276 $as_echo_n "checking for $ac_word... " >&6; } 6277 if ${ac_cv_path_DATE+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279 else 6280 case $DATE in 6281 [\\/]* | ?:[\\/]*) 6282 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6283 ;; 6284 *) 6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6286 for as_dir in $PATH 6287 do 6288 IFS=$as_save_IFS 6289 test -z "$as_dir" && as_dir=. 6290 for ac_exec_ext in '' $ac_executable_extensions; do 6291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6292 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6294 break 2 6295 fi 6296 done 6297 done 6298 IFS=$as_save_IFS 6299 6300 ;; 6301 esac 6302 fi 6303 DATE=$ac_cv_path_DATE 6304 if test -n "$DATE"; then 6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6306 $as_echo "$DATE" >&6; } 6307 else 6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6309 $as_echo "no" >&6; } 6310 fi 6311 6312 6313 test -n "$DATE" && break 6314 done 6315 6316 else 6317 # The variable is set, but is it from the command line or the environment? 6318 6319 # Try to remove the string !DATE! from our list. 6320 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6321 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6322 # If it failed, the variable was not from the command line. Ignore it, 6323 # but warn the user (except for BASH, which is always set by the calling BASH). 6324 if test "xDATE" != xBASH; then 6325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6326 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6327 fi 6328 # Try to locate tool using the code snippet 6329 for ac_prog in date 6330 do 6331 # Extract the first word of "$ac_prog", so it can be a program name with args. 6332 set dummy $ac_prog; ac_word=$2 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6334 $as_echo_n "checking for $ac_word... " >&6; } 6335 if ${ac_cv_path_DATE+:} false; then : 6336 $as_echo_n "(cached) " >&6 6337 else 6338 case $DATE in 6339 [\\/]* | ?:[\\/]*) 6340 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6341 ;; 6342 *) 6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6344 for as_dir in $PATH 6345 do 6346 IFS=$as_save_IFS 6347 test -z "$as_dir" && as_dir=. 6348 for ac_exec_ext in '' $ac_executable_extensions; do 6349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6350 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6352 break 2 6353 fi 6354 done 6355 done 6356 IFS=$as_save_IFS 6357 6358 ;; 6359 esac 6360 fi 6361 DATE=$ac_cv_path_DATE 6362 if test -n "$DATE"; then 6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6364 $as_echo "$DATE" >&6; } 6365 else 6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6367 $as_echo "no" >&6; } 6368 fi 6369 6370 6371 test -n "$DATE" && break 6372 done 6373 6374 else 6375 # If it succeeded, then it was overridden by the user. We will use it 6376 # for the tool. 6377 6378 # First remove it from the list of overridden variables, so we can test 6379 # for unknown variables in the end. 6380 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6381 6382 # Check if we try to supply an empty value 6383 if test "x$DATE" = x; then 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6385 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6387 $as_echo_n "checking for DATE... " >&6; } 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6389 $as_echo "disabled" >&6; } 6390 else 6391 # Check if the provided tool contains a complete path. 6392 tool_specified="$DATE" 6393 tool_basename="${tool_specified##*/}" 6394 if test "x$tool_basename" = "x$tool_specified"; then 6395 # A command without a complete path is provided, search $PATH. 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6397 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6398 # Extract the first word of "$tool_basename", so it can be a program name with args. 6399 set dummy $tool_basename; ac_word=$2 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6401 $as_echo_n "checking for $ac_word... " >&6; } 6402 if ${ac_cv_path_DATE+:} false; then : 6403 $as_echo_n "(cached) " >&6 6404 else 6405 case $DATE in 6406 [\\/]* | ?:[\\/]*) 6407 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6408 ;; 6409 *) 6410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411 for as_dir in $PATH 6412 do 6413 IFS=$as_save_IFS 6414 test -z "$as_dir" && as_dir=. 6415 for ac_exec_ext in '' $ac_executable_extensions; do 6416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6417 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6419 break 2 6420 fi 6421 done 6422 done 6423 IFS=$as_save_IFS 6424 6425 ;; 6426 esac 6427 fi 6428 DATE=$ac_cv_path_DATE 6429 if test -n "$DATE"; then 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6431 $as_echo "$DATE" >&6; } 6432 else 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6434 $as_echo "no" >&6; } 6435 fi 6436 6437 6438 if test "x$DATE" = x; then 6439 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6440 fi 6441 else 6442 # Otherwise we believe it is a complete path. Use it as it is. 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6444 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6446 $as_echo_n "checking for DATE... " >&6; } 6447 if test ! -x "$tool_specified"; then 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6449 $as_echo "not found" >&6; } 6450 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6451 fi 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6453 $as_echo "$tool_specified" >&6; } 6454 fi 6455 fi 6456 fi 6457 fi 6458 6459 6460 6461 if test "x$DATE" = x; then 6462 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6463 fi 6464 6465 6466 6467 6468 6469 # Publish this variable in the help. 6470 6471 6472 if [ -z "${DIFF+x}" ]; then 6473 # The variable is not set by user, try to locate tool using the code snippet 6474 for ac_prog in gdiff diff 6475 do 6476 # Extract the first word of "$ac_prog", so it can be a program name with args. 6477 set dummy $ac_prog; ac_word=$2 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6479 $as_echo_n "checking for $ac_word... " >&6; } 6480 if ${ac_cv_path_DIFF+:} false; then : 6481 $as_echo_n "(cached) " >&6 6482 else 6483 case $DIFF in 6484 [\\/]* | ?:[\\/]*) 6485 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6486 ;; 6487 *) 6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489 for as_dir in $PATH 6490 do 6491 IFS=$as_save_IFS 6492 test -z "$as_dir" && as_dir=. 6493 for ac_exec_ext in '' $ac_executable_extensions; do 6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6495 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6497 break 2 6498 fi 6499 done 6500 done 6501 IFS=$as_save_IFS 6502 6503 ;; 6504 esac 6505 fi 6506 DIFF=$ac_cv_path_DIFF 6507 if test -n "$DIFF"; then 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6509 $as_echo "$DIFF" >&6; } 6510 else 6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6512 $as_echo "no" >&6; } 6513 fi 6514 6515 6516 test -n "$DIFF" && break 6517 done 6518 6519 else 6520 # The variable is set, but is it from the command line or the environment? 6521 6522 # Try to remove the string !DIFF! from our list. 6523 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6524 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6525 # If it failed, the variable was not from the command line. Ignore it, 6526 # but warn the user (except for BASH, which is always set by the calling BASH). 6527 if test "xDIFF" != xBASH; then 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6529 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6530 fi 6531 # Try to locate tool using the code snippet 6532 for ac_prog in gdiff diff 6533 do 6534 # Extract the first word of "$ac_prog", so it can be a program name with args. 6535 set dummy $ac_prog; ac_word=$2 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6537 $as_echo_n "checking for $ac_word... " >&6; } 6538 if ${ac_cv_path_DIFF+:} false; then : 6539 $as_echo_n "(cached) " >&6 6540 else 6541 case $DIFF in 6542 [\\/]* | ?:[\\/]*) 6543 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6544 ;; 6545 *) 6546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6547 for as_dir in $PATH 6548 do 6549 IFS=$as_save_IFS 6550 test -z "$as_dir" && as_dir=. 6551 for ac_exec_ext in '' $ac_executable_extensions; do 6552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6553 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6555 break 2 6556 fi 6557 done 6558 done 6559 IFS=$as_save_IFS 6560 6561 ;; 6562 esac 6563 fi 6564 DIFF=$ac_cv_path_DIFF 6565 if test -n "$DIFF"; then 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6567 $as_echo "$DIFF" >&6; } 6568 else 6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6570 $as_echo "no" >&6; } 6571 fi 6572 6573 6574 test -n "$DIFF" && break 6575 done 6576 6577 else 6578 # If it succeeded, then it was overridden by the user. We will use it 6579 # for the tool. 6580 6581 # First remove it from the list of overridden variables, so we can test 6582 # for unknown variables in the end. 6583 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6584 6585 # Check if we try to supply an empty value 6586 if test "x$DIFF" = x; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 6588 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6590 $as_echo_n "checking for DIFF... " >&6; } 6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6592 $as_echo "disabled" >&6; } 6593 else 6594 # Check if the provided tool contains a complete path. 6595 tool_specified="$DIFF" 6596 tool_basename="${tool_specified##*/}" 6597 if test "x$tool_basename" = "x$tool_specified"; then 6598 # A command without a complete path is provided, search $PATH. 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6600 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6601 # Extract the first word of "$tool_basename", so it can be a program name with args. 6602 set dummy $tool_basename; ac_word=$2 6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6604 $as_echo_n "checking for $ac_word... " >&6; } 6605 if ${ac_cv_path_DIFF+:} false; then : 6606 $as_echo_n "(cached) " >&6 6607 else 6608 case $DIFF in 6609 [\\/]* | ?:[\\/]*) 6610 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6611 ;; 6612 *) 6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6614 for as_dir in $PATH 6615 do 6616 IFS=$as_save_IFS 6617 test -z "$as_dir" && as_dir=. 6618 for ac_exec_ext in '' $ac_executable_extensions; do 6619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6620 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6622 break 2 6623 fi 6624 done 6625 done 6626 IFS=$as_save_IFS 6627 6628 ;; 6629 esac 6630 fi 6631 DIFF=$ac_cv_path_DIFF 6632 if test -n "$DIFF"; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6634 $as_echo "$DIFF" >&6; } 6635 else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637 $as_echo "no" >&6; } 6638 fi 6639 6640 6641 if test "x$DIFF" = x; then 6642 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6643 fi 6644 else 6645 # Otherwise we believe it is a complete path. Use it as it is. 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6647 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6649 $as_echo_n "checking for DIFF... " >&6; } 6650 if test ! -x "$tool_specified"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6652 $as_echo "not found" >&6; } 6653 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6654 fi 6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6656 $as_echo "$tool_specified" >&6; } 6657 fi 6658 fi 6659 fi 6660 fi 6661 6662 6663 6664 if test "x$DIFF" = x; then 6665 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6666 fi 6667 6668 6669 6670 6671 6672 # Publish this variable in the help. 6673 6674 6675 if [ -z "${DIRNAME+x}" ]; then 6676 # The variable is not set by user, try to locate tool using the code snippet 6677 for ac_prog in dirname 6678 do 6679 # Extract the first word of "$ac_prog", so it can be a program name with args. 6680 set dummy $ac_prog; ac_word=$2 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6682 $as_echo_n "checking for $ac_word... " >&6; } 6683 if ${ac_cv_path_DIRNAME+:} false; then : 6684 $as_echo_n "(cached) " >&6 6685 else 6686 case $DIRNAME in 6687 [\\/]* | ?:[\\/]*) 6688 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6689 ;; 6690 *) 6691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6692 for as_dir in $PATH 6693 do 6694 IFS=$as_save_IFS 6695 test -z "$as_dir" && as_dir=. 6696 for ac_exec_ext in '' $ac_executable_extensions; do 6697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6698 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6700 break 2 6701 fi 6702 done 6703 done 6704 IFS=$as_save_IFS 6705 6706 ;; 6707 esac 6708 fi 6709 DIRNAME=$ac_cv_path_DIRNAME 6710 if test -n "$DIRNAME"; then 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6712 $as_echo "$DIRNAME" >&6; } 6713 else 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6715 $as_echo "no" >&6; } 6716 fi 6717 6718 6719 test -n "$DIRNAME" && break 6720 done 6721 6722 else 6723 # The variable is set, but is it from the command line or the environment? 6724 6725 # Try to remove the string !DIRNAME! from our list. 6726 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6727 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6728 # If it failed, the variable was not from the command line. Ignore it, 6729 # but warn the user (except for BASH, which is always set by the calling BASH). 6730 if test "xDIRNAME" != xBASH; then 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6732 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6733 fi 6734 # Try to locate tool using the code snippet 6735 for ac_prog in dirname 6736 do 6737 # Extract the first word of "$ac_prog", so it can be a program name with args. 6738 set dummy $ac_prog; ac_word=$2 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6740 $as_echo_n "checking for $ac_word... " >&6; } 6741 if ${ac_cv_path_DIRNAME+:} false; then : 6742 $as_echo_n "(cached) " >&6 6743 else 6744 case $DIRNAME in 6745 [\\/]* | ?:[\\/]*) 6746 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6747 ;; 6748 *) 6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6750 for as_dir in $PATH 6751 do 6752 IFS=$as_save_IFS 6753 test -z "$as_dir" && as_dir=. 6754 for ac_exec_ext in '' $ac_executable_extensions; do 6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6756 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6758 break 2 6759 fi 6760 done 6761 done 6762 IFS=$as_save_IFS 6763 6764 ;; 6765 esac 6766 fi 6767 DIRNAME=$ac_cv_path_DIRNAME 6768 if test -n "$DIRNAME"; then 6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6770 $as_echo "$DIRNAME" >&6; } 6771 else 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6773 $as_echo "no" >&6; } 6774 fi 6775 6776 6777 test -n "$DIRNAME" && break 6778 done 6779 6780 else 6781 # If it succeeded, then it was overridden by the user. We will use it 6782 # for the tool. 6783 6784 # First remove it from the list of overridden variables, so we can test 6785 # for unknown variables in the end. 6786 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6787 6788 # Check if we try to supply an empty value 6789 if test "x$DIRNAME" = x; then 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 6791 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6793 $as_echo_n "checking for DIRNAME... " >&6; } 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6795 $as_echo "disabled" >&6; } 6796 else 6797 # Check if the provided tool contains a complete path. 6798 tool_specified="$DIRNAME" 6799 tool_basename="${tool_specified##*/}" 6800 if test "x$tool_basename" = "x$tool_specified"; then 6801 # A command without a complete path is provided, search $PATH. 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6803 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6804 # Extract the first word of "$tool_basename", so it can be a program name with args. 6805 set dummy $tool_basename; ac_word=$2 6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6807 $as_echo_n "checking for $ac_word... " >&6; } 6808 if ${ac_cv_path_DIRNAME+:} false; then : 6809 $as_echo_n "(cached) " >&6 6810 else 6811 case $DIRNAME in 6812 [\\/]* | ?:[\\/]*) 6813 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6814 ;; 6815 *) 6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6817 for as_dir in $PATH 6818 do 6819 IFS=$as_save_IFS 6820 test -z "$as_dir" && as_dir=. 6821 for ac_exec_ext in '' $ac_executable_extensions; do 6822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6823 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6825 break 2 6826 fi 6827 done 6828 done 6829 IFS=$as_save_IFS 6830 6831 ;; 6832 esac 6833 fi 6834 DIRNAME=$ac_cv_path_DIRNAME 6835 if test -n "$DIRNAME"; then 6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6837 $as_echo "$DIRNAME" >&6; } 6838 else 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6840 $as_echo "no" >&6; } 6841 fi 6842 6843 6844 if test "x$DIRNAME" = x; then 6845 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6846 fi 6847 else 6848 # Otherwise we believe it is a complete path. Use it as it is. 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6850 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6852 $as_echo_n "checking for DIRNAME... " >&6; } 6853 if test ! -x "$tool_specified"; then 6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6855 $as_echo "not found" >&6; } 6856 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6857 fi 6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6859 $as_echo "$tool_specified" >&6; } 6860 fi 6861 fi 6862 fi 6863 fi 6864 6865 6866 6867 if test "x$DIRNAME" = x; then 6868 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6869 fi 6870 6871 6872 6873 6874 6875 # Publish this variable in the help. 6876 6877 6878 if [ -z "${ECHO+x}" ]; then 6879 # The variable is not set by user, try to locate tool using the code snippet 6880 for ac_prog in echo 6881 do 6882 # Extract the first word of "$ac_prog", so it can be a program name with args. 6883 set dummy $ac_prog; ac_word=$2 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6885 $as_echo_n "checking for $ac_word... " >&6; } 6886 if ${ac_cv_path_ECHO+:} false; then : 6887 $as_echo_n "(cached) " >&6 6888 else 6889 case $ECHO in 6890 [\\/]* | ?:[\\/]*) 6891 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6892 ;; 6893 *) 6894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6895 for as_dir in $PATH 6896 do 6897 IFS=$as_save_IFS 6898 test -z "$as_dir" && as_dir=. 6899 for ac_exec_ext in '' $ac_executable_extensions; do 6900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6901 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6903 break 2 6904 fi 6905 done 6906 done 6907 IFS=$as_save_IFS 6908 6909 ;; 6910 esac 6911 fi 6912 ECHO=$ac_cv_path_ECHO 6913 if test -n "$ECHO"; then 6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6915 $as_echo "$ECHO" >&6; } 6916 else 6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6918 $as_echo "no" >&6; } 6919 fi 6920 6921 6922 test -n "$ECHO" && break 6923 done 6924 6925 else 6926 # The variable is set, but is it from the command line or the environment? 6927 6928 # Try to remove the string !ECHO! from our list. 6929 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6930 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6931 # If it failed, the variable was not from the command line. Ignore it, 6932 # but warn the user (except for BASH, which is always set by the calling BASH). 6933 if test "xECHO" != xBASH; then 6934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6935 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6936 fi 6937 # Try to locate tool using the code snippet 6938 for ac_prog in echo 6939 do 6940 # Extract the first word of "$ac_prog", so it can be a program name with args. 6941 set dummy $ac_prog; ac_word=$2 6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6943 $as_echo_n "checking for $ac_word... " >&6; } 6944 if ${ac_cv_path_ECHO+:} false; then : 6945 $as_echo_n "(cached) " >&6 6946 else 6947 case $ECHO in 6948 [\\/]* | ?:[\\/]*) 6949 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6950 ;; 6951 *) 6952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6953 for as_dir in $PATH 6954 do 6955 IFS=$as_save_IFS 6956 test -z "$as_dir" && as_dir=. 6957 for ac_exec_ext in '' $ac_executable_extensions; do 6958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6959 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6961 break 2 6962 fi 6963 done 6964 done 6965 IFS=$as_save_IFS 6966 6967 ;; 6968 esac 6969 fi 6970 ECHO=$ac_cv_path_ECHO 6971 if test -n "$ECHO"; then 6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6973 $as_echo "$ECHO" >&6; } 6974 else 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6976 $as_echo "no" >&6; } 6977 fi 6978 6979 6980 test -n "$ECHO" && break 6981 done 6982 6983 else 6984 # If it succeeded, then it was overridden by the user. We will use it 6985 # for the tool. 6986 6987 # First remove it from the list of overridden variables, so we can test 6988 # for unknown variables in the end. 6989 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6990 6991 # Check if we try to supply an empty value 6992 if test "x$ECHO" = x; then 6993 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 6994 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6996 $as_echo_n "checking for ECHO... " >&6; } 6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6998 $as_echo "disabled" >&6; } 6999 else 7000 # Check if the provided tool contains a complete path. 7001 tool_specified="$ECHO" 7002 tool_basename="${tool_specified##*/}" 7003 if test "x$tool_basename" = "x$tool_specified"; then 7004 # A command without a complete path is provided, search $PATH. 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7006 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7007 # Extract the first word of "$tool_basename", so it can be a program name with args. 7008 set dummy $tool_basename; ac_word=$2 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7010 $as_echo_n "checking for $ac_word... " >&6; } 7011 if ${ac_cv_path_ECHO+:} false; then : 7012 $as_echo_n "(cached) " >&6 7013 else 7014 case $ECHO in 7015 [\\/]* | ?:[\\/]*) 7016 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7017 ;; 7018 *) 7019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7020 for as_dir in $PATH 7021 do 7022 IFS=$as_save_IFS 7023 test -z "$as_dir" && as_dir=. 7024 for ac_exec_ext in '' $ac_executable_extensions; do 7025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7026 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7028 break 2 7029 fi 7030 done 7031 done 7032 IFS=$as_save_IFS 7033 7034 ;; 7035 esac 7036 fi 7037 ECHO=$ac_cv_path_ECHO 7038 if test -n "$ECHO"; then 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7040 $as_echo "$ECHO" >&6; } 7041 else 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7043 $as_echo "no" >&6; } 7044 fi 7045 7046 7047 if test "x$ECHO" = x; then 7048 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7049 fi 7050 else 7051 # Otherwise we believe it is a complete path. Use it as it is. 7052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7053 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7055 $as_echo_n "checking for ECHO... " >&6; } 7056 if test ! -x "$tool_specified"; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7058 $as_echo "not found" >&6; } 7059 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7060 fi 7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7062 $as_echo "$tool_specified" >&6; } 7063 fi 7064 fi 7065 fi 7066 fi 7067 7068 7069 7070 if test "x$ECHO" = x; then 7071 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7072 fi 7073 7074 7075 7076 7077 7078 # Publish this variable in the help. 7079 7080 7081 if [ -z "${EXPR+x}" ]; then 7082 # The variable is not set by user, try to locate tool using the code snippet 7083 for ac_prog in expr 7084 do 7085 # Extract the first word of "$ac_prog", so it can be a program name with args. 7086 set dummy $ac_prog; ac_word=$2 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7088 $as_echo_n "checking for $ac_word... " >&6; } 7089 if ${ac_cv_path_EXPR+:} false; then : 7090 $as_echo_n "(cached) " >&6 7091 else 7092 case $EXPR in 7093 [\\/]* | ?:[\\/]*) 7094 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7095 ;; 7096 *) 7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098 for as_dir in $PATH 7099 do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108 done 7109 done 7110 IFS=$as_save_IFS 7111 7112 ;; 7113 esac 7114 fi 7115 EXPR=$ac_cv_path_EXPR 7116 if test -n "$EXPR"; then 7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7118 $as_echo "$EXPR" >&6; } 7119 else 7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7121 $as_echo "no" >&6; } 7122 fi 7123 7124 7125 test -n "$EXPR" && break 7126 done 7127 7128 else 7129 # The variable is set, but is it from the command line or the environment? 7130 7131 # Try to remove the string !EXPR! from our list. 7132 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7133 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7134 # If it failed, the variable was not from the command line. Ignore it, 7135 # but warn the user (except for BASH, which is always set by the calling BASH). 7136 if test "xEXPR" != xBASH; then 7137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7138 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7139 fi 7140 # Try to locate tool using the code snippet 7141 for ac_prog in expr 7142 do 7143 # Extract the first word of "$ac_prog", so it can be a program name with args. 7144 set dummy $ac_prog; ac_word=$2 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7146 $as_echo_n "checking for $ac_word... " >&6; } 7147 if ${ac_cv_path_EXPR+:} false; then : 7148 $as_echo_n "(cached) " >&6 7149 else 7150 case $EXPR in 7151 [\\/]* | ?:[\\/]*) 7152 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7153 ;; 7154 *) 7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7156 for as_dir in $PATH 7157 do 7158 IFS=$as_save_IFS 7159 test -z "$as_dir" && as_dir=. 7160 for ac_exec_ext in '' $ac_executable_extensions; do 7161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7162 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7164 break 2 7165 fi 7166 done 7167 done 7168 IFS=$as_save_IFS 7169 7170 ;; 7171 esac 7172 fi 7173 EXPR=$ac_cv_path_EXPR 7174 if test -n "$EXPR"; then 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7176 $as_echo "$EXPR" >&6; } 7177 else 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7179 $as_echo "no" >&6; } 7180 fi 7181 7182 7183 test -n "$EXPR" && break 7184 done 7185 7186 else 7187 # If it succeeded, then it was overridden by the user. We will use it 7188 # for the tool. 7189 7190 # First remove it from the list of overridden variables, so we can test 7191 # for unknown variables in the end. 7192 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7193 7194 # Check if we try to supply an empty value 7195 if test "x$EXPR" = x; then 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7197 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7199 $as_echo_n "checking for EXPR... " >&6; } 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7201 $as_echo "disabled" >&6; } 7202 else 7203 # Check if the provided tool contains a complete path. 7204 tool_specified="$EXPR" 7205 tool_basename="${tool_specified##*/}" 7206 if test "x$tool_basename" = "x$tool_specified"; then 7207 # A command without a complete path is provided, search $PATH. 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7209 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7210 # Extract the first word of "$tool_basename", so it can be a program name with args. 7211 set dummy $tool_basename; ac_word=$2 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213 $as_echo_n "checking for $ac_word... " >&6; } 7214 if ${ac_cv_path_EXPR+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216 else 7217 case $EXPR in 7218 [\\/]* | ?:[\\/]*) 7219 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7220 ;; 7221 *) 7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7223 for as_dir in $PATH 7224 do 7225 IFS=$as_save_IFS 7226 test -z "$as_dir" && as_dir=. 7227 for ac_exec_ext in '' $ac_executable_extensions; do 7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7229 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7231 break 2 7232 fi 7233 done 7234 done 7235 IFS=$as_save_IFS 7236 7237 ;; 7238 esac 7239 fi 7240 EXPR=$ac_cv_path_EXPR 7241 if test -n "$EXPR"; then 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7243 $as_echo "$EXPR" >&6; } 7244 else 7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7246 $as_echo "no" >&6; } 7247 fi 7248 7249 7250 if test "x$EXPR" = x; then 7251 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7252 fi 7253 else 7254 # Otherwise we believe it is a complete path. Use it as it is. 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7256 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7258 $as_echo_n "checking for EXPR... " >&6; } 7259 if test ! -x "$tool_specified"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7261 $as_echo "not found" >&6; } 7262 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7263 fi 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7265 $as_echo "$tool_specified" >&6; } 7266 fi 7267 fi 7268 fi 7269 fi 7270 7271 7272 7273 if test "x$EXPR" = x; then 7274 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7275 fi 7276 7277 7278 7279 7280 7281 # Publish this variable in the help. 7282 7283 7284 if [ -z "${FILE+x}" ]; then 7285 # The variable is not set by user, try to locate tool using the code snippet 7286 for ac_prog in file 7287 do 7288 # Extract the first word of "$ac_prog", so it can be a program name with args. 7289 set dummy $ac_prog; ac_word=$2 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7291 $as_echo_n "checking for $ac_word... " >&6; } 7292 if ${ac_cv_path_FILE+:} false; then : 7293 $as_echo_n "(cached) " >&6 7294 else 7295 case $FILE in 7296 [\\/]* | ?:[\\/]*) 7297 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7298 ;; 7299 *) 7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7301 for as_dir in $PATH 7302 do 7303 IFS=$as_save_IFS 7304 test -z "$as_dir" && as_dir=. 7305 for ac_exec_ext in '' $ac_executable_extensions; do 7306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7307 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7309 break 2 7310 fi 7311 done 7312 done 7313 IFS=$as_save_IFS 7314 7315 ;; 7316 esac 7317 fi 7318 FILE=$ac_cv_path_FILE 7319 if test -n "$FILE"; then 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7321 $as_echo "$FILE" >&6; } 7322 else 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7324 $as_echo "no" >&6; } 7325 fi 7326 7327 7328 test -n "$FILE" && break 7329 done 7330 7331 else 7332 # The variable is set, but is it from the command line or the environment? 7333 7334 # Try to remove the string !FILE! from our list. 7335 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7336 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7337 # If it failed, the variable was not from the command line. Ignore it, 7338 # but warn the user (except for BASH, which is always set by the calling BASH). 7339 if test "xFILE" != xBASH; then 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7341 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7342 fi 7343 # Try to locate tool using the code snippet 7344 for ac_prog in file 7345 do 7346 # Extract the first word of "$ac_prog", so it can be a program name with args. 7347 set dummy $ac_prog; ac_word=$2 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7349 $as_echo_n "checking for $ac_word... " >&6; } 7350 if ${ac_cv_path_FILE+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352 else 7353 case $FILE in 7354 [\\/]* | ?:[\\/]*) 7355 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7356 ;; 7357 *) 7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7359 for as_dir in $PATH 7360 do 7361 IFS=$as_save_IFS 7362 test -z "$as_dir" && as_dir=. 7363 for ac_exec_ext in '' $ac_executable_extensions; do 7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7365 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7367 break 2 7368 fi 7369 done 7370 done 7371 IFS=$as_save_IFS 7372 7373 ;; 7374 esac 7375 fi 7376 FILE=$ac_cv_path_FILE 7377 if test -n "$FILE"; then 7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7379 $as_echo "$FILE" >&6; } 7380 else 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7382 $as_echo "no" >&6; } 7383 fi 7384 7385 7386 test -n "$FILE" && break 7387 done 7388 7389 else 7390 # If it succeeded, then it was overridden by the user. We will use it 7391 # for the tool. 7392 7393 # First remove it from the list of overridden variables, so we can test 7394 # for unknown variables in the end. 7395 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7396 7397 # Check if we try to supply an empty value 7398 if test "x$FILE" = x; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 7400 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7402 $as_echo_n "checking for FILE... " >&6; } 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7404 $as_echo "disabled" >&6; } 7405 else 7406 # Check if the provided tool contains a complete path. 7407 tool_specified="$FILE" 7408 tool_basename="${tool_specified##*/}" 7409 if test "x$tool_basename" = "x$tool_specified"; then 7410 # A command without a complete path is provided, search $PATH. 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7412 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7413 # Extract the first word of "$tool_basename", so it can be a program name with args. 7414 set dummy $tool_basename; ac_word=$2 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7416 $as_echo_n "checking for $ac_word... " >&6; } 7417 if ${ac_cv_path_FILE+:} false; then : 7418 $as_echo_n "(cached) " >&6 7419 else 7420 case $FILE in 7421 [\\/]* | ?:[\\/]*) 7422 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7423 ;; 7424 *) 7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7426 for as_dir in $PATH 7427 do 7428 IFS=$as_save_IFS 7429 test -z "$as_dir" && as_dir=. 7430 for ac_exec_ext in '' $ac_executable_extensions; do 7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7432 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7434 break 2 7435 fi 7436 done 7437 done 7438 IFS=$as_save_IFS 7439 7440 ;; 7441 esac 7442 fi 7443 FILE=$ac_cv_path_FILE 7444 if test -n "$FILE"; then 7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7446 $as_echo "$FILE" >&6; } 7447 else 7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7449 $as_echo "no" >&6; } 7450 fi 7451 7452 7453 if test "x$FILE" = x; then 7454 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7455 fi 7456 else 7457 # Otherwise we believe it is a complete path. Use it as it is. 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7459 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7461 $as_echo_n "checking for FILE... " >&6; } 7462 if test ! -x "$tool_specified"; then 7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7464 $as_echo "not found" >&6; } 7465 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7466 fi 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7468 $as_echo "$tool_specified" >&6; } 7469 fi 7470 fi 7471 fi 7472 fi 7473 7474 7475 7476 if test "x$FILE" = x; then 7477 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7478 fi 7479 7480 7481 7482 7483 7484 # Publish this variable in the help. 7485 7486 7487 if [ -z "${FIND+x}" ]; then 7488 # The variable is not set by user, try to locate tool using the code snippet 7489 for ac_prog in find 7490 do 7491 # Extract the first word of "$ac_prog", so it can be a program name with args. 7492 set dummy $ac_prog; ac_word=$2 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7494 $as_echo_n "checking for $ac_word... " >&6; } 7495 if ${ac_cv_path_FIND+:} false; then : 7496 $as_echo_n "(cached) " >&6 7497 else 7498 case $FIND in 7499 [\\/]* | ?:[\\/]*) 7500 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7501 ;; 7502 *) 7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7504 for as_dir in $PATH 7505 do 7506 IFS=$as_save_IFS 7507 test -z "$as_dir" && as_dir=. 7508 for ac_exec_ext in '' $ac_executable_extensions; do 7509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7510 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7512 break 2 7513 fi 7514 done 7515 done 7516 IFS=$as_save_IFS 7517 7518 ;; 7519 esac 7520 fi 7521 FIND=$ac_cv_path_FIND 7522 if test -n "$FIND"; then 7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7524 $as_echo "$FIND" >&6; } 7525 else 7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7527 $as_echo "no" >&6; } 7528 fi 7529 7530 7531 test -n "$FIND" && break 7532 done 7533 7534 else 7535 # The variable is set, but is it from the command line or the environment? 7536 7537 # Try to remove the string !FIND! from our list. 7538 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7539 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7540 # If it failed, the variable was not from the command line. Ignore it, 7541 # but warn the user (except for BASH, which is always set by the calling BASH). 7542 if test "xFIND" != xBASH; then 7543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7544 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7545 fi 7546 # Try to locate tool using the code snippet 7547 for ac_prog in find 7548 do 7549 # Extract the first word of "$ac_prog", so it can be a program name with args. 7550 set dummy $ac_prog; ac_word=$2 7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7552 $as_echo_n "checking for $ac_word... " >&6; } 7553 if ${ac_cv_path_FIND+:} false; then : 7554 $as_echo_n "(cached) " >&6 7555 else 7556 case $FIND in 7557 [\\/]* | ?:[\\/]*) 7558 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7559 ;; 7560 *) 7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7562 for as_dir in $PATH 7563 do 7564 IFS=$as_save_IFS 7565 test -z "$as_dir" && as_dir=. 7566 for ac_exec_ext in '' $ac_executable_extensions; do 7567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7568 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7570 break 2 7571 fi 7572 done 7573 done 7574 IFS=$as_save_IFS 7575 7576 ;; 7577 esac 7578 fi 7579 FIND=$ac_cv_path_FIND 7580 if test -n "$FIND"; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7582 $as_echo "$FIND" >&6; } 7583 else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585 $as_echo "no" >&6; } 7586 fi 7587 7588 7589 test -n "$FIND" && break 7590 done 7591 7592 else 7593 # If it succeeded, then it was overridden by the user. We will use it 7594 # for the tool. 7595 7596 # First remove it from the list of overridden variables, so we can test 7597 # for unknown variables in the end. 7598 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7599 7600 # Check if we try to supply an empty value 7601 if test "x$FIND" = x; then 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 7603 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7605 $as_echo_n "checking for FIND... " >&6; } 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7607 $as_echo "disabled" >&6; } 7608 else 7609 # Check if the provided tool contains a complete path. 7610 tool_specified="$FIND" 7611 tool_basename="${tool_specified##*/}" 7612 if test "x$tool_basename" = "x$tool_specified"; then 7613 # A command without a complete path is provided, search $PATH. 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7615 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7616 # Extract the first word of "$tool_basename", so it can be a program name with args. 7617 set dummy $tool_basename; ac_word=$2 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7619 $as_echo_n "checking for $ac_word... " >&6; } 7620 if ${ac_cv_path_FIND+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622 else 7623 case $FIND in 7624 [\\/]* | ?:[\\/]*) 7625 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7626 ;; 7627 *) 7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7629 for as_dir in $PATH 7630 do 7631 IFS=$as_save_IFS 7632 test -z "$as_dir" && as_dir=. 7633 for ac_exec_ext in '' $ac_executable_extensions; do 7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7635 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7637 break 2 7638 fi 7639 done 7640 done 7641 IFS=$as_save_IFS 7642 7643 ;; 7644 esac 7645 fi 7646 FIND=$ac_cv_path_FIND 7647 if test -n "$FIND"; then 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7649 $as_echo "$FIND" >&6; } 7650 else 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7652 $as_echo "no" >&6; } 7653 fi 7654 7655 7656 if test "x$FIND" = x; then 7657 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7658 fi 7659 else 7660 # Otherwise we believe it is a complete path. Use it as it is. 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7662 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7664 $as_echo_n "checking for FIND... " >&6; } 7665 if test ! -x "$tool_specified"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7667 $as_echo "not found" >&6; } 7668 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7669 fi 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7671 $as_echo "$tool_specified" >&6; } 7672 fi 7673 fi 7674 fi 7675 fi 7676 7677 7678 7679 if test "x$FIND" = x; then 7680 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7681 fi 7682 7683 7684 7685 7686 7687 # Publish this variable in the help. 7688 7689 7690 if [ -z "${HEAD+x}" ]; then 7691 # The variable is not set by user, try to locate tool using the code snippet 7692 for ac_prog in head 7693 do 7694 # Extract the first word of "$ac_prog", so it can be a program name with args. 7695 set dummy $ac_prog; ac_word=$2 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7697 $as_echo_n "checking for $ac_word... " >&6; } 7698 if ${ac_cv_path_HEAD+:} false; then : 7699 $as_echo_n "(cached) " >&6 7700 else 7701 case $HEAD in 7702 [\\/]* | ?:[\\/]*) 7703 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7704 ;; 7705 *) 7706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7707 for as_dir in $PATH 7708 do 7709 IFS=$as_save_IFS 7710 test -z "$as_dir" && as_dir=. 7711 for ac_exec_ext in '' $ac_executable_extensions; do 7712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7713 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7715 break 2 7716 fi 7717 done 7718 done 7719 IFS=$as_save_IFS 7720 7721 ;; 7722 esac 7723 fi 7724 HEAD=$ac_cv_path_HEAD 7725 if test -n "$HEAD"; then 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7727 $as_echo "$HEAD" >&6; } 7728 else 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7730 $as_echo "no" >&6; } 7731 fi 7732 7733 7734 test -n "$HEAD" && break 7735 done 7736 7737 else 7738 # The variable is set, but is it from the command line or the environment? 7739 7740 # Try to remove the string !HEAD! from our list. 7741 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7742 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7743 # If it failed, the variable was not from the command line. Ignore it, 7744 # but warn the user (except for BASH, which is always set by the calling BASH). 7745 if test "xHEAD" != xBASH; then 7746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7747 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7748 fi 7749 # Try to locate tool using the code snippet 7750 for ac_prog in head 7751 do 7752 # Extract the first word of "$ac_prog", so it can be a program name with args. 7753 set dummy $ac_prog; ac_word=$2 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7755 $as_echo_n "checking for $ac_word... " >&6; } 7756 if ${ac_cv_path_HEAD+:} false; then : 7757 $as_echo_n "(cached) " >&6 7758 else 7759 case $HEAD in 7760 [\\/]* | ?:[\\/]*) 7761 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7762 ;; 7763 *) 7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7765 for as_dir in $PATH 7766 do 7767 IFS=$as_save_IFS 7768 test -z "$as_dir" && as_dir=. 7769 for ac_exec_ext in '' $ac_executable_extensions; do 7770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7771 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7773 break 2 7774 fi 7775 done 7776 done 7777 IFS=$as_save_IFS 7778 7779 ;; 7780 esac 7781 fi 7782 HEAD=$ac_cv_path_HEAD 7783 if test -n "$HEAD"; then 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7785 $as_echo "$HEAD" >&6; } 7786 else 7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7788 $as_echo "no" >&6; } 7789 fi 7790 7791 7792 test -n "$HEAD" && break 7793 done 7794 7795 else 7796 # If it succeeded, then it was overridden by the user. We will use it 7797 # for the tool. 7798 7799 # First remove it from the list of overridden variables, so we can test 7800 # for unknown variables in the end. 7801 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7802 7803 # Check if we try to supply an empty value 7804 if test "x$HEAD" = x; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 7806 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7808 $as_echo_n "checking for HEAD... " >&6; } 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7810 $as_echo "disabled" >&6; } 7811 else 7812 # Check if the provided tool contains a complete path. 7813 tool_specified="$HEAD" 7814 tool_basename="${tool_specified##*/}" 7815 if test "x$tool_basename" = "x$tool_specified"; then 7816 # A command without a complete path is provided, search $PATH. 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7818 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7819 # Extract the first word of "$tool_basename", so it can be a program name with args. 7820 set dummy $tool_basename; ac_word=$2 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7822 $as_echo_n "checking for $ac_word... " >&6; } 7823 if ${ac_cv_path_HEAD+:} false; then : 7824 $as_echo_n "(cached) " >&6 7825 else 7826 case $HEAD in 7827 [\\/]* | ?:[\\/]*) 7828 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7829 ;; 7830 *) 7831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7832 for as_dir in $PATH 7833 do 7834 IFS=$as_save_IFS 7835 test -z "$as_dir" && as_dir=. 7836 for ac_exec_ext in '' $ac_executable_extensions; do 7837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7838 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7840 break 2 7841 fi 7842 done 7843 done 7844 IFS=$as_save_IFS 7845 7846 ;; 7847 esac 7848 fi 7849 HEAD=$ac_cv_path_HEAD 7850 if test -n "$HEAD"; then 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7852 $as_echo "$HEAD" >&6; } 7853 else 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7855 $as_echo "no" >&6; } 7856 fi 7857 7858 7859 if test "x$HEAD" = x; then 7860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7861 fi 7862 else 7863 # Otherwise we believe it is a complete path. Use it as it is. 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7865 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7867 $as_echo_n "checking for HEAD... " >&6; } 7868 if test ! -x "$tool_specified"; then 7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7870 $as_echo "not found" >&6; } 7871 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7872 fi 7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7874 $as_echo "$tool_specified" >&6; } 7875 fi 7876 fi 7877 fi 7878 fi 7879 7880 7881 7882 if test "x$HEAD" = x; then 7883 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7884 fi 7885 7886 7887 7888 7889 7890 # Publish this variable in the help. 7891 7892 7893 if [ -z "${LN+x}" ]; then 7894 # The variable is not set by user, try to locate tool using the code snippet 7895 for ac_prog in ln 7896 do 7897 # Extract the first word of "$ac_prog", so it can be a program name with args. 7898 set dummy $ac_prog; ac_word=$2 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7900 $as_echo_n "checking for $ac_word... " >&6; } 7901 if ${ac_cv_path_LN+:} false; then : 7902 $as_echo_n "(cached) " >&6 7903 else 7904 case $LN in 7905 [\\/]* | ?:[\\/]*) 7906 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7907 ;; 7908 *) 7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7910 for as_dir in $PATH 7911 do 7912 IFS=$as_save_IFS 7913 test -z "$as_dir" && as_dir=. 7914 for ac_exec_ext in '' $ac_executable_extensions; do 7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7916 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7918 break 2 7919 fi 7920 done 7921 done 7922 IFS=$as_save_IFS 7923 7924 ;; 7925 esac 7926 fi 7927 LN=$ac_cv_path_LN 7928 if test -n "$LN"; then 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7930 $as_echo "$LN" >&6; } 7931 else 7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7933 $as_echo "no" >&6; } 7934 fi 7935 7936 7937 test -n "$LN" && break 7938 done 7939 7940 else 7941 # The variable is set, but is it from the command line or the environment? 7942 7943 # Try to remove the string !LN! from our list. 7944 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7945 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7946 # If it failed, the variable was not from the command line. Ignore it, 7947 # but warn the user (except for BASH, which is always set by the calling BASH). 7948 if test "xLN" != xBASH; then 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7950 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7951 fi 7952 # Try to locate tool using the code snippet 7953 for ac_prog in ln 7954 do 7955 # Extract the first word of "$ac_prog", so it can be a program name with args. 7956 set dummy $ac_prog; ac_word=$2 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7958 $as_echo_n "checking for $ac_word... " >&6; } 7959 if ${ac_cv_path_LN+:} false; then : 7960 $as_echo_n "(cached) " >&6 7961 else 7962 case $LN in 7963 [\\/]* | ?:[\\/]*) 7964 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7965 ;; 7966 *) 7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7968 for as_dir in $PATH 7969 do 7970 IFS=$as_save_IFS 7971 test -z "$as_dir" && as_dir=. 7972 for ac_exec_ext in '' $ac_executable_extensions; do 7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7974 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7976 break 2 7977 fi 7978 done 7979 done 7980 IFS=$as_save_IFS 7981 7982 ;; 7983 esac 7984 fi 7985 LN=$ac_cv_path_LN 7986 if test -n "$LN"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7988 $as_echo "$LN" >&6; } 7989 else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991 $as_echo "no" >&6; } 7992 fi 7993 7994 7995 test -n "$LN" && break 7996 done 7997 7998 else 7999 # If it succeeded, then it was overridden by the user. We will use it 8000 # for the tool. 8001 8002 # First remove it from the list of overridden variables, so we can test 8003 # for unknown variables in the end. 8004 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8005 8006 # Check if we try to supply an empty value 8007 if test "x$LN" = x; then 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 8009 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8011 $as_echo_n "checking for LN... " >&6; } 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8013 $as_echo "disabled" >&6; } 8014 else 8015 # Check if the provided tool contains a complete path. 8016 tool_specified="$LN" 8017 tool_basename="${tool_specified##*/}" 8018 if test "x$tool_basename" = "x$tool_specified"; then 8019 # A command without a complete path is provided, search $PATH. 8020 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 8021 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 8022 # Extract the first word of "$tool_basename", so it can be a program name with args. 8023 set dummy $tool_basename; ac_word=$2 8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8025 $as_echo_n "checking for $ac_word... " >&6; } 8026 if ${ac_cv_path_LN+:} false; then : 8027 $as_echo_n "(cached) " >&6 8028 else 8029 case $LN in 8030 [\\/]* | ?:[\\/]*) 8031 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8032 ;; 8033 *) 8034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8035 for as_dir in $PATH 8036 do 8037 IFS=$as_save_IFS 8038 test -z "$as_dir" && as_dir=. 8039 for ac_exec_ext in '' $ac_executable_extensions; do 8040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8041 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8043 break 2 8044 fi 8045 done 8046 done 8047 IFS=$as_save_IFS 8048 8049 ;; 8050 esac 8051 fi 8052 LN=$ac_cv_path_LN 8053 if test -n "$LN"; then 8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8055 $as_echo "$LN" >&6; } 8056 else 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8058 $as_echo "no" >&6; } 8059 fi 8060 8061 8062 if test "x$LN" = x; then 8063 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8064 fi 8065 else 8066 # Otherwise we believe it is a complete path. Use it as it is. 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 8068 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 8070 $as_echo_n "checking for LN... " >&6; } 8071 if test ! -x "$tool_specified"; then 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8073 $as_echo "not found" >&6; } 8074 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 8075 fi 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8077 $as_echo "$tool_specified" >&6; } 8078 fi 8079 fi 8080 fi 8081 fi 8082 8083 8084 8085 if test "x$LN" = x; then 8086 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 8087 fi 8088 8089 8090 8091 8092 8093 # Publish this variable in the help. 8094 8095 8096 if [ -z "${LS+x}" ]; then 8097 # The variable is not set by user, try to locate tool using the code snippet 8098 for ac_prog in ls 8099 do 8100 # Extract the first word of "$ac_prog", so it can be a program name with args. 8101 set dummy $ac_prog; ac_word=$2 8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8103 $as_echo_n "checking for $ac_word... " >&6; } 8104 if ${ac_cv_path_LS+:} false; then : 8105 $as_echo_n "(cached) " >&6 8106 else 8107 case $LS in 8108 [\\/]* | ?:[\\/]*) 8109 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8110 ;; 8111 *) 8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113 for as_dir in $PATH 8114 do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8119 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123 done 8124 done 8125 IFS=$as_save_IFS 8126 8127 ;; 8128 esac 8129 fi 8130 LS=$ac_cv_path_LS 8131 if test -n "$LS"; then 8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8133 $as_echo "$LS" >&6; } 8134 else 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8136 $as_echo "no" >&6; } 8137 fi 8138 8139 8140 test -n "$LS" && break 8141 done 8142 8143 else 8144 # The variable is set, but is it from the command line or the environment? 8145 8146 # Try to remove the string !LS! from our list. 8147 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 8148 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8149 # If it failed, the variable was not from the command line. Ignore it, 8150 # but warn the user (except for BASH, which is always set by the calling BASH). 8151 if test "xLS" != xBASH; then 8152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 8153 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 8154 fi 8155 # Try to locate tool using the code snippet 8156 for ac_prog in ls 8157 do 8158 # Extract the first word of "$ac_prog", so it can be a program name with args. 8159 set dummy $ac_prog; ac_word=$2 8160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8161 $as_echo_n "checking for $ac_word... " >&6; } 8162 if ${ac_cv_path_LS+:} false; then : 8163 $as_echo_n "(cached) " >&6 8164 else 8165 case $LS in 8166 [\\/]* | ?:[\\/]*) 8167 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8168 ;; 8169 *) 8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8171 for as_dir in $PATH 8172 do 8173 IFS=$as_save_IFS 8174 test -z "$as_dir" && as_dir=. 8175 for ac_exec_ext in '' $ac_executable_extensions; do 8176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8177 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8179 break 2 8180 fi 8181 done 8182 done 8183 IFS=$as_save_IFS 8184 8185 ;; 8186 esac 8187 fi 8188 LS=$ac_cv_path_LS 8189 if test -n "$LS"; then 8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8191 $as_echo "$LS" >&6; } 8192 else 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8194 $as_echo "no" >&6; } 8195 fi 8196 8197 8198 test -n "$LS" && break 8199 done 8200 8201 else 8202 # If it succeeded, then it was overridden by the user. We will use it 8203 # for the tool. 8204 8205 # First remove it from the list of overridden variables, so we can test 8206 # for unknown variables in the end. 8207 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8208 8209 # Check if we try to supply an empty value 8210 if test "x$LS" = x; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 8212 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8214 $as_echo_n "checking for LS... " >&6; } 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8216 $as_echo "disabled" >&6; } 8217 else 8218 # Check if the provided tool contains a complete path. 8219 tool_specified="$LS" 8220 tool_basename="${tool_specified##*/}" 8221 if test "x$tool_basename" = "x$tool_specified"; then 8222 # A command without a complete path is provided, search $PATH. 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 8224 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 8225 # Extract the first word of "$tool_basename", so it can be a program name with args. 8226 set dummy $tool_basename; ac_word=$2 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8228 $as_echo_n "checking for $ac_word... " >&6; } 8229 if ${ac_cv_path_LS+:} false; then : 8230 $as_echo_n "(cached) " >&6 8231 else 8232 case $LS in 8233 [\\/]* | ?:[\\/]*) 8234 ac_cv_path_LS="$LS" # Let the user override the test with a path. 8235 ;; 8236 *) 8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8238 for as_dir in $PATH 8239 do 8240 IFS=$as_save_IFS 8241 test -z "$as_dir" && as_dir=. 8242 for ac_exec_ext in '' $ac_executable_extensions; do 8243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8244 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 8245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8246 break 2 8247 fi 8248 done 8249 done 8250 IFS=$as_save_IFS 8251 8252 ;; 8253 esac 8254 fi 8255 LS=$ac_cv_path_LS 8256 if test -n "$LS"; then 8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 8258 $as_echo "$LS" >&6; } 8259 else 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8261 $as_echo "no" >&6; } 8262 fi 8263 8264 8265 if test "x$LS" = x; then 8266 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8267 fi 8268 else 8269 # Otherwise we believe it is a complete path. Use it as it is. 8270 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 8271 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 8273 $as_echo_n "checking for LS... " >&6; } 8274 if test ! -x "$tool_specified"; then 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8276 $as_echo "not found" >&6; } 8277 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 8278 fi 8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8280 $as_echo "$tool_specified" >&6; } 8281 fi 8282 fi 8283 fi 8284 fi 8285 8286 8287 8288 if test "x$LS" = x; then 8289 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 8290 fi 8291 8292 8293 8294 8295 8296 # Publish this variable in the help. 8297 8298 8299 if [ -z "${MKDIR+x}" ]; then 8300 # The variable is not set by user, try to locate tool using the code snippet 8301 for ac_prog in mkdir 8302 do 8303 # Extract the first word of "$ac_prog", so it can be a program name with args. 8304 set dummy $ac_prog; ac_word=$2 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8306 $as_echo_n "checking for $ac_word... " >&6; } 8307 if ${ac_cv_path_MKDIR+:} false; then : 8308 $as_echo_n "(cached) " >&6 8309 else 8310 case $MKDIR in 8311 [\\/]* | ?:[\\/]*) 8312 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8313 ;; 8314 *) 8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316 for as_dir in $PATH 8317 do 8318 IFS=$as_save_IFS 8319 test -z "$as_dir" && as_dir=. 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8322 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326 done 8327 done 8328 IFS=$as_save_IFS 8329 8330 ;; 8331 esac 8332 fi 8333 MKDIR=$ac_cv_path_MKDIR 8334 if test -n "$MKDIR"; then 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8336 $as_echo "$MKDIR" >&6; } 8337 else 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339 $as_echo "no" >&6; } 8340 fi 8341 8342 8343 test -n "$MKDIR" && break 8344 done 8345 8346 else 8347 # The variable is set, but is it from the command line or the environment? 8348 8349 # Try to remove the string !MKDIR! from our list. 8350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8352 # If it failed, the variable was not from the command line. Ignore it, 8353 # but warn the user (except for BASH, which is always set by the calling BASH). 8354 if test "xMKDIR" != xBASH; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8356 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8357 fi 8358 # Try to locate tool using the code snippet 8359 for ac_prog in mkdir 8360 do 8361 # Extract the first word of "$ac_prog", so it can be a program name with args. 8362 set dummy $ac_prog; ac_word=$2 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8364 $as_echo_n "checking for $ac_word... " >&6; } 8365 if ${ac_cv_path_MKDIR+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367 else 8368 case $MKDIR in 8369 [\\/]* | ?:[\\/]*) 8370 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8371 ;; 8372 *) 8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8374 for as_dir in $PATH 8375 do 8376 IFS=$as_save_IFS 8377 test -z "$as_dir" && as_dir=. 8378 for ac_exec_ext in '' $ac_executable_extensions; do 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8380 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8382 break 2 8383 fi 8384 done 8385 done 8386 IFS=$as_save_IFS 8387 8388 ;; 8389 esac 8390 fi 8391 MKDIR=$ac_cv_path_MKDIR 8392 if test -n "$MKDIR"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8394 $as_echo "$MKDIR" >&6; } 8395 else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8397 $as_echo "no" >&6; } 8398 fi 8399 8400 8401 test -n "$MKDIR" && break 8402 done 8403 8404 else 8405 # If it succeeded, then it was overridden by the user. We will use it 8406 # for the tool. 8407 8408 # First remove it from the list of overridden variables, so we can test 8409 # for unknown variables in the end. 8410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8411 8412 # Check if we try to supply an empty value 8413 if test "x$MKDIR" = x; then 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 8415 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8417 $as_echo_n "checking for MKDIR... " >&6; } 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8419 $as_echo "disabled" >&6; } 8420 else 8421 # Check if the provided tool contains a complete path. 8422 tool_specified="$MKDIR" 8423 tool_basename="${tool_specified##*/}" 8424 if test "x$tool_basename" = "x$tool_specified"; then 8425 # A command without a complete path is provided, search $PATH. 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8427 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8428 # Extract the first word of "$tool_basename", so it can be a program name with args. 8429 set dummy $tool_basename; ac_word=$2 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8431 $as_echo_n "checking for $ac_word... " >&6; } 8432 if ${ac_cv_path_MKDIR+:} false; then : 8433 $as_echo_n "(cached) " >&6 8434 else 8435 case $MKDIR in 8436 [\\/]* | ?:[\\/]*) 8437 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8438 ;; 8439 *) 8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8441 for as_dir in $PATH 8442 do 8443 IFS=$as_save_IFS 8444 test -z "$as_dir" && as_dir=. 8445 for ac_exec_ext in '' $ac_executable_extensions; do 8446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8447 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8449 break 2 8450 fi 8451 done 8452 done 8453 IFS=$as_save_IFS 8454 8455 ;; 8456 esac 8457 fi 8458 MKDIR=$ac_cv_path_MKDIR 8459 if test -n "$MKDIR"; then 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8461 $as_echo "$MKDIR" >&6; } 8462 else 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8464 $as_echo "no" >&6; } 8465 fi 8466 8467 8468 if test "x$MKDIR" = x; then 8469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8470 fi 8471 else 8472 # Otherwise we believe it is a complete path. Use it as it is. 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8474 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8476 $as_echo_n "checking for MKDIR... " >&6; } 8477 if test ! -x "$tool_specified"; then 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8479 $as_echo "not found" >&6; } 8480 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8481 fi 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8483 $as_echo "$tool_specified" >&6; } 8484 fi 8485 fi 8486 fi 8487 fi 8488 8489 8490 8491 if test "x$MKDIR" = x; then 8492 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8493 fi 8494 8495 8496 8497 8498 8499 # Publish this variable in the help. 8500 8501 8502 if [ -z "${MKTEMP+x}" ]; then 8503 # The variable is not set by user, try to locate tool using the code snippet 8504 for ac_prog in mktemp 8505 do 8506 # Extract the first word of "$ac_prog", so it can be a program name with args. 8507 set dummy $ac_prog; ac_word=$2 8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8509 $as_echo_n "checking for $ac_word... " >&6; } 8510 if ${ac_cv_path_MKTEMP+:} false; then : 8511 $as_echo_n "(cached) " >&6 8512 else 8513 case $MKTEMP in 8514 [\\/]* | ?:[\\/]*) 8515 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8516 ;; 8517 *) 8518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8519 for as_dir in $PATH 8520 do 8521 IFS=$as_save_IFS 8522 test -z "$as_dir" && as_dir=. 8523 for ac_exec_ext in '' $ac_executable_extensions; do 8524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8525 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8527 break 2 8528 fi 8529 done 8530 done 8531 IFS=$as_save_IFS 8532 8533 ;; 8534 esac 8535 fi 8536 MKTEMP=$ac_cv_path_MKTEMP 8537 if test -n "$MKTEMP"; then 8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8539 $as_echo "$MKTEMP" >&6; } 8540 else 8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8542 $as_echo "no" >&6; } 8543 fi 8544 8545 8546 test -n "$MKTEMP" && break 8547 done 8548 8549 else 8550 # The variable is set, but is it from the command line or the environment? 8551 8552 # Try to remove the string !MKTEMP! from our list. 8553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8555 # If it failed, the variable was not from the command line. Ignore it, 8556 # but warn the user (except for BASH, which is always set by the calling BASH). 8557 if test "xMKTEMP" != xBASH; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8559 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8560 fi 8561 # Try to locate tool using the code snippet 8562 for ac_prog in mktemp 8563 do 8564 # Extract the first word of "$ac_prog", so it can be a program name with args. 8565 set dummy $ac_prog; ac_word=$2 8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8567 $as_echo_n "checking for $ac_word... " >&6; } 8568 if ${ac_cv_path_MKTEMP+:} false; then : 8569 $as_echo_n "(cached) " >&6 8570 else 8571 case $MKTEMP in 8572 [\\/]* | ?:[\\/]*) 8573 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8574 ;; 8575 *) 8576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8577 for as_dir in $PATH 8578 do 8579 IFS=$as_save_IFS 8580 test -z "$as_dir" && as_dir=. 8581 for ac_exec_ext in '' $ac_executable_extensions; do 8582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8583 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8585 break 2 8586 fi 8587 done 8588 done 8589 IFS=$as_save_IFS 8590 8591 ;; 8592 esac 8593 fi 8594 MKTEMP=$ac_cv_path_MKTEMP 8595 if test -n "$MKTEMP"; then 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8597 $as_echo "$MKTEMP" >&6; } 8598 else 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8600 $as_echo "no" >&6; } 8601 fi 8602 8603 8604 test -n "$MKTEMP" && break 8605 done 8606 8607 else 8608 # If it succeeded, then it was overridden by the user. We will use it 8609 # for the tool. 8610 8611 # First remove it from the list of overridden variables, so we can test 8612 # for unknown variables in the end. 8613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8614 8615 # Check if we try to supply an empty value 8616 if test "x$MKTEMP" = x; then 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 8618 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8620 $as_echo_n "checking for MKTEMP... " >&6; } 8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8622 $as_echo "disabled" >&6; } 8623 else 8624 # Check if the provided tool contains a complete path. 8625 tool_specified="$MKTEMP" 8626 tool_basename="${tool_specified##*/}" 8627 if test "x$tool_basename" = "x$tool_specified"; then 8628 # A command without a complete path is provided, search $PATH. 8629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8630 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8631 # Extract the first word of "$tool_basename", so it can be a program name with args. 8632 set dummy $tool_basename; ac_word=$2 8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8634 $as_echo_n "checking for $ac_word... " >&6; } 8635 if ${ac_cv_path_MKTEMP+:} false; then : 8636 $as_echo_n "(cached) " >&6 8637 else 8638 case $MKTEMP in 8639 [\\/]* | ?:[\\/]*) 8640 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8641 ;; 8642 *) 8643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8644 for as_dir in $PATH 8645 do 8646 IFS=$as_save_IFS 8647 test -z "$as_dir" && as_dir=. 8648 for ac_exec_ext in '' $ac_executable_extensions; do 8649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8650 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8652 break 2 8653 fi 8654 done 8655 done 8656 IFS=$as_save_IFS 8657 8658 ;; 8659 esac 8660 fi 8661 MKTEMP=$ac_cv_path_MKTEMP 8662 if test -n "$MKTEMP"; then 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8664 $as_echo "$MKTEMP" >&6; } 8665 else 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8667 $as_echo "no" >&6; } 8668 fi 8669 8670 8671 if test "x$MKTEMP" = x; then 8672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8673 fi 8674 else 8675 # Otherwise we believe it is a complete path. Use it as it is. 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8677 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8679 $as_echo_n "checking for MKTEMP... " >&6; } 8680 if test ! -x "$tool_specified"; then 8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8682 $as_echo "not found" >&6; } 8683 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8684 fi 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8686 $as_echo "$tool_specified" >&6; } 8687 fi 8688 fi 8689 fi 8690 fi 8691 8692 8693 8694 if test "x$MKTEMP" = x; then 8695 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8696 fi 8697 8698 8699 8700 8701 8702 # Publish this variable in the help. 8703 8704 8705 if [ -z "${MV+x}" ]; then 8706 # The variable is not set by user, try to locate tool using the code snippet 8707 for ac_prog in mv 8708 do 8709 # Extract the first word of "$ac_prog", so it can be a program name with args. 8710 set dummy $ac_prog; ac_word=$2 8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8712 $as_echo_n "checking for $ac_word... " >&6; } 8713 if ${ac_cv_path_MV+:} false; then : 8714 $as_echo_n "(cached) " >&6 8715 else 8716 case $MV in 8717 [\\/]* | ?:[\\/]*) 8718 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8719 ;; 8720 *) 8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8722 for as_dir in $PATH 8723 do 8724 IFS=$as_save_IFS 8725 test -z "$as_dir" && as_dir=. 8726 for ac_exec_ext in '' $ac_executable_extensions; do 8727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8728 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8730 break 2 8731 fi 8732 done 8733 done 8734 IFS=$as_save_IFS 8735 8736 ;; 8737 esac 8738 fi 8739 MV=$ac_cv_path_MV 8740 if test -n "$MV"; then 8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8742 $as_echo "$MV" >&6; } 8743 else 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8745 $as_echo "no" >&6; } 8746 fi 8747 8748 8749 test -n "$MV" && break 8750 done 8751 8752 else 8753 # The variable is set, but is it from the command line or the environment? 8754 8755 # Try to remove the string !MV! from our list. 8756 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8757 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8758 # If it failed, the variable was not from the command line. Ignore it, 8759 # but warn the user (except for BASH, which is always set by the calling BASH). 8760 if test "xMV" != xBASH; then 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8762 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8763 fi 8764 # Try to locate tool using the code snippet 8765 for ac_prog in mv 8766 do 8767 # Extract the first word of "$ac_prog", so it can be a program name with args. 8768 set dummy $ac_prog; ac_word=$2 8769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8770 $as_echo_n "checking for $ac_word... " >&6; } 8771 if ${ac_cv_path_MV+:} false; then : 8772 $as_echo_n "(cached) " >&6 8773 else 8774 case $MV in 8775 [\\/]* | ?:[\\/]*) 8776 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8777 ;; 8778 *) 8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8780 for as_dir in $PATH 8781 do 8782 IFS=$as_save_IFS 8783 test -z "$as_dir" && as_dir=. 8784 for ac_exec_ext in '' $ac_executable_extensions; do 8785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8786 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8788 break 2 8789 fi 8790 done 8791 done 8792 IFS=$as_save_IFS 8793 8794 ;; 8795 esac 8796 fi 8797 MV=$ac_cv_path_MV 8798 if test -n "$MV"; then 8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8800 $as_echo "$MV" >&6; } 8801 else 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8803 $as_echo "no" >&6; } 8804 fi 8805 8806 8807 test -n "$MV" && break 8808 done 8809 8810 else 8811 # If it succeeded, then it was overridden by the user. We will use it 8812 # for the tool. 8813 8814 # First remove it from the list of overridden variables, so we can test 8815 # for unknown variables in the end. 8816 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8817 8818 # Check if we try to supply an empty value 8819 if test "x$MV" = x; then 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 8821 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8823 $as_echo_n "checking for MV... " >&6; } 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8825 $as_echo "disabled" >&6; } 8826 else 8827 # Check if the provided tool contains a complete path. 8828 tool_specified="$MV" 8829 tool_basename="${tool_specified##*/}" 8830 if test "x$tool_basename" = "x$tool_specified"; then 8831 # A command without a complete path is provided, search $PATH. 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8833 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8834 # Extract the first word of "$tool_basename", so it can be a program name with args. 8835 set dummy $tool_basename; ac_word=$2 8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8837 $as_echo_n "checking for $ac_word... " >&6; } 8838 if ${ac_cv_path_MV+:} false; then : 8839 $as_echo_n "(cached) " >&6 8840 else 8841 case $MV in 8842 [\\/]* | ?:[\\/]*) 8843 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8844 ;; 8845 *) 8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8847 for as_dir in $PATH 8848 do 8849 IFS=$as_save_IFS 8850 test -z "$as_dir" && as_dir=. 8851 for ac_exec_ext in '' $ac_executable_extensions; do 8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8853 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8855 break 2 8856 fi 8857 done 8858 done 8859 IFS=$as_save_IFS 8860 8861 ;; 8862 esac 8863 fi 8864 MV=$ac_cv_path_MV 8865 if test -n "$MV"; then 8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8867 $as_echo "$MV" >&6; } 8868 else 8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8870 $as_echo "no" >&6; } 8871 fi 8872 8873 8874 if test "x$MV" = x; then 8875 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8876 fi 8877 else 8878 # Otherwise we believe it is a complete path. Use it as it is. 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8880 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8882 $as_echo_n "checking for MV... " >&6; } 8883 if test ! -x "$tool_specified"; then 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8885 $as_echo "not found" >&6; } 8886 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8887 fi 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8889 $as_echo "$tool_specified" >&6; } 8890 fi 8891 fi 8892 fi 8893 fi 8894 8895 8896 8897 if test "x$MV" = x; then 8898 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8899 fi 8900 8901 8902 8903 8904 8905 # Publish this variable in the help. 8906 8907 8908 if [ -z "${NAWK+x}" ]; then 8909 # The variable is not set by user, try to locate tool using the code snippet 8910 for ac_prog in nawk gawk awk 8911 do 8912 # Extract the first word of "$ac_prog", so it can be a program name with args. 8913 set dummy $ac_prog; ac_word=$2 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8915 $as_echo_n "checking for $ac_word... " >&6; } 8916 if ${ac_cv_path_NAWK+:} false; then : 8917 $as_echo_n "(cached) " >&6 8918 else 8919 case $NAWK in 8920 [\\/]* | ?:[\\/]*) 8921 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8922 ;; 8923 *) 8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8925 for as_dir in $PATH 8926 do 8927 IFS=$as_save_IFS 8928 test -z "$as_dir" && as_dir=. 8929 for ac_exec_ext in '' $ac_executable_extensions; do 8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8931 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8933 break 2 8934 fi 8935 done 8936 done 8937 IFS=$as_save_IFS 8938 8939 ;; 8940 esac 8941 fi 8942 NAWK=$ac_cv_path_NAWK 8943 if test -n "$NAWK"; then 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8945 $as_echo "$NAWK" >&6; } 8946 else 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8948 $as_echo "no" >&6; } 8949 fi 8950 8951 8952 test -n "$NAWK" && break 8953 done 8954 8955 else 8956 # The variable is set, but is it from the command line or the environment? 8957 8958 # Try to remove the string !NAWK! from our list. 8959 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8960 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8961 # If it failed, the variable was not from the command line. Ignore it, 8962 # but warn the user (except for BASH, which is always set by the calling BASH). 8963 if test "xNAWK" != xBASH; then 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8965 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8966 fi 8967 # Try to locate tool using the code snippet 8968 for ac_prog in nawk gawk awk 8969 do 8970 # Extract the first word of "$ac_prog", so it can be a program name with args. 8971 set dummy $ac_prog; ac_word=$2 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8973 $as_echo_n "checking for $ac_word... " >&6; } 8974 if ${ac_cv_path_NAWK+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976 else 8977 case $NAWK in 8978 [\\/]* | ?:[\\/]*) 8979 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8980 ;; 8981 *) 8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8983 for as_dir in $PATH 8984 do 8985 IFS=$as_save_IFS 8986 test -z "$as_dir" && as_dir=. 8987 for ac_exec_ext in '' $ac_executable_extensions; do 8988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8989 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8991 break 2 8992 fi 8993 done 8994 done 8995 IFS=$as_save_IFS 8996 8997 ;; 8998 esac 8999 fi 9000 NAWK=$ac_cv_path_NAWK 9001 if test -n "$NAWK"; then 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9003 $as_echo "$NAWK" >&6; } 9004 else 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9006 $as_echo "no" >&6; } 9007 fi 9008 9009 9010 test -n "$NAWK" && break 9011 done 9012 9013 else 9014 # If it succeeded, then it was overridden by the user. We will use it 9015 # for the tool. 9016 9017 # First remove it from the list of overridden variables, so we can test 9018 # for unknown variables in the end. 9019 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9020 9021 # Check if we try to supply an empty value 9022 if test "x$NAWK" = x; then 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 9024 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9026 $as_echo_n "checking for NAWK... " >&6; } 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9028 $as_echo "disabled" >&6; } 9029 else 9030 # Check if the provided tool contains a complete path. 9031 tool_specified="$NAWK" 9032 tool_basename="${tool_specified##*/}" 9033 if test "x$tool_basename" = "x$tool_specified"; then 9034 # A command without a complete path is provided, search $PATH. 9035 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 9036 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 9037 # Extract the first word of "$tool_basename", so it can be a program name with args. 9038 set dummy $tool_basename; ac_word=$2 9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9040 $as_echo_n "checking for $ac_word... " >&6; } 9041 if ${ac_cv_path_NAWK+:} false; then : 9042 $as_echo_n "(cached) " >&6 9043 else 9044 case $NAWK in 9045 [\\/]* | ?:[\\/]*) 9046 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9047 ;; 9048 *) 9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9050 for as_dir in $PATH 9051 do 9052 IFS=$as_save_IFS 9053 test -z "$as_dir" && as_dir=. 9054 for ac_exec_ext in '' $ac_executable_extensions; do 9055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9056 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9058 break 2 9059 fi 9060 done 9061 done 9062 IFS=$as_save_IFS 9063 9064 ;; 9065 esac 9066 fi 9067 NAWK=$ac_cv_path_NAWK 9068 if test -n "$NAWK"; then 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9070 $as_echo "$NAWK" >&6; } 9071 else 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9073 $as_echo "no" >&6; } 9074 fi 9075 9076 9077 if test "x$NAWK" = x; then 9078 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9079 fi 9080 else 9081 # Otherwise we believe it is a complete path. Use it as it is. 9082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 9083 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 9085 $as_echo_n "checking for NAWK... " >&6; } 9086 if test ! -x "$tool_specified"; then 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9088 $as_echo "not found" >&6; } 9089 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 9090 fi 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9092 $as_echo "$tool_specified" >&6; } 9093 fi 9094 fi 9095 fi 9096 fi 9097 9098 9099 9100 if test "x$NAWK" = x; then 9101 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 9102 fi 9103 9104 9105 9106 9107 9108 # Publish this variable in the help. 9109 9110 9111 if [ -z "${PRINTF+x}" ]; then 9112 # The variable is not set by user, try to locate tool using the code snippet 9113 for ac_prog in printf 9114 do 9115 # Extract the first word of "$ac_prog", so it can be a program name with args. 9116 set dummy $ac_prog; ac_word=$2 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9118 $as_echo_n "checking for $ac_word... " >&6; } 9119 if ${ac_cv_path_PRINTF+:} false; then : 9120 $as_echo_n "(cached) " >&6 9121 else 9122 case $PRINTF in 9123 [\\/]* | ?:[\\/]*) 9124 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9125 ;; 9126 *) 9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9128 for as_dir in $PATH 9129 do 9130 IFS=$as_save_IFS 9131 test -z "$as_dir" && as_dir=. 9132 for ac_exec_ext in '' $ac_executable_extensions; do 9133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9134 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9136 break 2 9137 fi 9138 done 9139 done 9140 IFS=$as_save_IFS 9141 9142 ;; 9143 esac 9144 fi 9145 PRINTF=$ac_cv_path_PRINTF 9146 if test -n "$PRINTF"; then 9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9148 $as_echo "$PRINTF" >&6; } 9149 else 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9151 $as_echo "no" >&6; } 9152 fi 9153 9154 9155 test -n "$PRINTF" && break 9156 done 9157 9158 else 9159 # The variable is set, but is it from the command line or the environment? 9160 9161 # Try to remove the string !PRINTF! from our list. 9162 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 9163 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9164 # If it failed, the variable was not from the command line. Ignore it, 9165 # but warn the user (except for BASH, which is always set by the calling BASH). 9166 if test "xPRINTF" != xBASH; then 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 9168 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 9169 fi 9170 # Try to locate tool using the code snippet 9171 for ac_prog in printf 9172 do 9173 # Extract the first word of "$ac_prog", so it can be a program name with args. 9174 set dummy $ac_prog; ac_word=$2 9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9176 $as_echo_n "checking for $ac_word... " >&6; } 9177 if ${ac_cv_path_PRINTF+:} false; then : 9178 $as_echo_n "(cached) " >&6 9179 else 9180 case $PRINTF in 9181 [\\/]* | ?:[\\/]*) 9182 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9183 ;; 9184 *) 9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9186 for as_dir in $PATH 9187 do 9188 IFS=$as_save_IFS 9189 test -z "$as_dir" && as_dir=. 9190 for ac_exec_ext in '' $ac_executable_extensions; do 9191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9192 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9194 break 2 9195 fi 9196 done 9197 done 9198 IFS=$as_save_IFS 9199 9200 ;; 9201 esac 9202 fi 9203 PRINTF=$ac_cv_path_PRINTF 9204 if test -n "$PRINTF"; then 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9206 $as_echo "$PRINTF" >&6; } 9207 else 9208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9209 $as_echo "no" >&6; } 9210 fi 9211 9212 9213 test -n "$PRINTF" && break 9214 done 9215 9216 else 9217 # If it succeeded, then it was overridden by the user. We will use it 9218 # for the tool. 9219 9220 # First remove it from the list of overridden variables, so we can test 9221 # for unknown variables in the end. 9222 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9223 9224 # Check if we try to supply an empty value 9225 if test "x$PRINTF" = x; then 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 9227 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9229 $as_echo_n "checking for PRINTF... " >&6; } 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9231 $as_echo "disabled" >&6; } 9232 else 9233 # Check if the provided tool contains a complete path. 9234 tool_specified="$PRINTF" 9235 tool_basename="${tool_specified##*/}" 9236 if test "x$tool_basename" = "x$tool_specified"; then 9237 # A command without a complete path is provided, search $PATH. 9238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 9239 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 9240 # Extract the first word of "$tool_basename", so it can be a program name with args. 9241 set dummy $tool_basename; ac_word=$2 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9243 $as_echo_n "checking for $ac_word... " >&6; } 9244 if ${ac_cv_path_PRINTF+:} false; then : 9245 $as_echo_n "(cached) " >&6 9246 else 9247 case $PRINTF in 9248 [\\/]* | ?:[\\/]*) 9249 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 9250 ;; 9251 *) 9252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9253 for as_dir in $PATH 9254 do 9255 IFS=$as_save_IFS 9256 test -z "$as_dir" && as_dir=. 9257 for ac_exec_ext in '' $ac_executable_extensions; do 9258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9259 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 9260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9261 break 2 9262 fi 9263 done 9264 done 9265 IFS=$as_save_IFS 9266 9267 ;; 9268 esac 9269 fi 9270 PRINTF=$ac_cv_path_PRINTF 9271 if test -n "$PRINTF"; then 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 9273 $as_echo "$PRINTF" >&6; } 9274 else 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9276 $as_echo "no" >&6; } 9277 fi 9278 9279 9280 if test "x$PRINTF" = x; then 9281 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9282 fi 9283 else 9284 # Otherwise we believe it is a complete path. Use it as it is. 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 9286 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 9288 $as_echo_n "checking for PRINTF... " >&6; } 9289 if test ! -x "$tool_specified"; then 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9291 $as_echo "not found" >&6; } 9292 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 9293 fi 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9295 $as_echo "$tool_specified" >&6; } 9296 fi 9297 fi 9298 fi 9299 fi 9300 9301 9302 9303 if test "x$PRINTF" = x; then 9304 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 9305 fi 9306 9307 9308 9309 9310 9311 # Publish this variable in the help. 9312 9313 9314 if [ -z "${RM+x}" ]; then 9315 # The variable is not set by user, try to locate tool using the code snippet 9316 for ac_prog in rm 9317 do 9318 # Extract the first word of "$ac_prog", so it can be a program name with args. 9319 set dummy $ac_prog; ac_word=$2 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9321 $as_echo_n "checking for $ac_word... " >&6; } 9322 if ${ac_cv_path_RM+:} false; then : 9323 $as_echo_n "(cached) " >&6 9324 else 9325 case $RM in 9326 [\\/]* | ?:[\\/]*) 9327 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9328 ;; 9329 *) 9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9331 for as_dir in $PATH 9332 do 9333 IFS=$as_save_IFS 9334 test -z "$as_dir" && as_dir=. 9335 for ac_exec_ext in '' $ac_executable_extensions; do 9336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9337 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9339 break 2 9340 fi 9341 done 9342 done 9343 IFS=$as_save_IFS 9344 9345 ;; 9346 esac 9347 fi 9348 RM=$ac_cv_path_RM 9349 if test -n "$RM"; then 9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9351 $as_echo "$RM" >&6; } 9352 else 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9354 $as_echo "no" >&6; } 9355 fi 9356 9357 9358 test -n "$RM" && break 9359 done 9360 9361 else 9362 # The variable is set, but is it from the command line or the environment? 9363 9364 # Try to remove the string !RM! from our list. 9365 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 9366 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9367 # If it failed, the variable was not from the command line. Ignore it, 9368 # but warn the user (except for BASH, which is always set by the calling BASH). 9369 if test "xRM" != xBASH; then 9370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 9371 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 9372 fi 9373 # Try to locate tool using the code snippet 9374 for ac_prog in rm 9375 do 9376 # Extract the first word of "$ac_prog", so it can be a program name with args. 9377 set dummy $ac_prog; ac_word=$2 9378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9379 $as_echo_n "checking for $ac_word... " >&6; } 9380 if ${ac_cv_path_RM+:} false; then : 9381 $as_echo_n "(cached) " >&6 9382 else 9383 case $RM in 9384 [\\/]* | ?:[\\/]*) 9385 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9386 ;; 9387 *) 9388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9389 for as_dir in $PATH 9390 do 9391 IFS=$as_save_IFS 9392 test -z "$as_dir" && as_dir=. 9393 for ac_exec_ext in '' $ac_executable_extensions; do 9394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9395 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9397 break 2 9398 fi 9399 done 9400 done 9401 IFS=$as_save_IFS 9402 9403 ;; 9404 esac 9405 fi 9406 RM=$ac_cv_path_RM 9407 if test -n "$RM"; then 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9409 $as_echo "$RM" >&6; } 9410 else 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9412 $as_echo "no" >&6; } 9413 fi 9414 9415 9416 test -n "$RM" && break 9417 done 9418 9419 else 9420 # If it succeeded, then it was overridden by the user. We will use it 9421 # for the tool. 9422 9423 # First remove it from the list of overridden variables, so we can test 9424 # for unknown variables in the end. 9425 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9426 9427 # Check if we try to supply an empty value 9428 if test "x$RM" = x; then 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 9430 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 9431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9432 $as_echo_n "checking for RM... " >&6; } 9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9434 $as_echo "disabled" >&6; } 9435 else 9436 # Check if the provided tool contains a complete path. 9437 tool_specified="$RM" 9438 tool_basename="${tool_specified##*/}" 9439 if test "x$tool_basename" = "x$tool_specified"; then 9440 # A command without a complete path is provided, search $PATH. 9441 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9442 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9443 # Extract the first word of "$tool_basename", so it can be a program name with args. 9444 set dummy $tool_basename; ac_word=$2 9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9446 $as_echo_n "checking for $ac_word... " >&6; } 9447 if ${ac_cv_path_RM+:} false; then : 9448 $as_echo_n "(cached) " >&6 9449 else 9450 case $RM in 9451 [\\/]* | ?:[\\/]*) 9452 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9453 ;; 9454 *) 9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9456 for as_dir in $PATH 9457 do 9458 IFS=$as_save_IFS 9459 test -z "$as_dir" && as_dir=. 9460 for ac_exec_ext in '' $ac_executable_extensions; do 9461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9462 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9464 break 2 9465 fi 9466 done 9467 done 9468 IFS=$as_save_IFS 9469 9470 ;; 9471 esac 9472 fi 9473 RM=$ac_cv_path_RM 9474 if test -n "$RM"; then 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9476 $as_echo "$RM" >&6; } 9477 else 9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9479 $as_echo "no" >&6; } 9480 fi 9481 9482 9483 if test "x$RM" = x; then 9484 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9485 fi 9486 else 9487 # Otherwise we believe it is a complete path. Use it as it is. 9488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9489 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9491 $as_echo_n "checking for RM... " >&6; } 9492 if test ! -x "$tool_specified"; then 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9494 $as_echo "not found" >&6; } 9495 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9496 fi 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9498 $as_echo "$tool_specified" >&6; } 9499 fi 9500 fi 9501 fi 9502 fi 9503 9504 9505 9506 if test "x$RM" = x; then 9507 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9508 fi 9509 9510 9511 9512 9513 9514 # Publish this variable in the help. 9515 9516 9517 if [ -z "${SH+x}" ]; then 9518 # The variable is not set by user, try to locate tool using the code snippet 9519 for ac_prog in sh 9520 do 9521 # Extract the first word of "$ac_prog", so it can be a program name with args. 9522 set dummy $ac_prog; ac_word=$2 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9524 $as_echo_n "checking for $ac_word... " >&6; } 9525 if ${ac_cv_path_SH+:} false; then : 9526 $as_echo_n "(cached) " >&6 9527 else 9528 case $SH in 9529 [\\/]* | ?:[\\/]*) 9530 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9531 ;; 9532 *) 9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9534 for as_dir in $PATH 9535 do 9536 IFS=$as_save_IFS 9537 test -z "$as_dir" && as_dir=. 9538 for ac_exec_ext in '' $ac_executable_extensions; do 9539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9540 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9542 break 2 9543 fi 9544 done 9545 done 9546 IFS=$as_save_IFS 9547 9548 ;; 9549 esac 9550 fi 9551 SH=$ac_cv_path_SH 9552 if test -n "$SH"; then 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9554 $as_echo "$SH" >&6; } 9555 else 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9557 $as_echo "no" >&6; } 9558 fi 9559 9560 9561 test -n "$SH" && break 9562 done 9563 9564 else 9565 # The variable is set, but is it from the command line or the environment? 9566 9567 # Try to remove the string !SH! from our list. 9568 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9569 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9570 # If it failed, the variable was not from the command line. Ignore it, 9571 # but warn the user (except for BASH, which is always set by the calling BASH). 9572 if test "xSH" != xBASH; then 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9574 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9575 fi 9576 # Try to locate tool using the code snippet 9577 for ac_prog in sh 9578 do 9579 # Extract the first word of "$ac_prog", so it can be a program name with args. 9580 set dummy $ac_prog; ac_word=$2 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9582 $as_echo_n "checking for $ac_word... " >&6; } 9583 if ${ac_cv_path_SH+:} false; then : 9584 $as_echo_n "(cached) " >&6 9585 else 9586 case $SH in 9587 [\\/]* | ?:[\\/]*) 9588 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9589 ;; 9590 *) 9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9592 for as_dir in $PATH 9593 do 9594 IFS=$as_save_IFS 9595 test -z "$as_dir" && as_dir=. 9596 for ac_exec_ext in '' $ac_executable_extensions; do 9597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9598 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9600 break 2 9601 fi 9602 done 9603 done 9604 IFS=$as_save_IFS 9605 9606 ;; 9607 esac 9608 fi 9609 SH=$ac_cv_path_SH 9610 if test -n "$SH"; then 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9612 $as_echo "$SH" >&6; } 9613 else 9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9615 $as_echo "no" >&6; } 9616 fi 9617 9618 9619 test -n "$SH" && break 9620 done 9621 9622 else 9623 # If it succeeded, then it was overridden by the user. We will use it 9624 # for the tool. 9625 9626 # First remove it from the list of overridden variables, so we can test 9627 # for unknown variables in the end. 9628 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9629 9630 # Check if we try to supply an empty value 9631 if test "x$SH" = x; then 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 9633 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9635 $as_echo_n "checking for SH... " >&6; } 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9637 $as_echo "disabled" >&6; } 9638 else 9639 # Check if the provided tool contains a complete path. 9640 tool_specified="$SH" 9641 tool_basename="${tool_specified##*/}" 9642 if test "x$tool_basename" = "x$tool_specified"; then 9643 # A command without a complete path is provided, search $PATH. 9644 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9645 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9646 # Extract the first word of "$tool_basename", so it can be a program name with args. 9647 set dummy $tool_basename; ac_word=$2 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9649 $as_echo_n "checking for $ac_word... " >&6; } 9650 if ${ac_cv_path_SH+:} false; then : 9651 $as_echo_n "(cached) " >&6 9652 else 9653 case $SH in 9654 [\\/]* | ?:[\\/]*) 9655 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9656 ;; 9657 *) 9658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9659 for as_dir in $PATH 9660 do 9661 IFS=$as_save_IFS 9662 test -z "$as_dir" && as_dir=. 9663 for ac_exec_ext in '' $ac_executable_extensions; do 9664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9665 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9667 break 2 9668 fi 9669 done 9670 done 9671 IFS=$as_save_IFS 9672 9673 ;; 9674 esac 9675 fi 9676 SH=$ac_cv_path_SH 9677 if test -n "$SH"; then 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9679 $as_echo "$SH" >&6; } 9680 else 9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9682 $as_echo "no" >&6; } 9683 fi 9684 9685 9686 if test "x$SH" = x; then 9687 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9688 fi 9689 else 9690 # Otherwise we believe it is a complete path. Use it as it is. 9691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9692 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9694 $as_echo_n "checking for SH... " >&6; } 9695 if test ! -x "$tool_specified"; then 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9697 $as_echo "not found" >&6; } 9698 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9699 fi 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9701 $as_echo "$tool_specified" >&6; } 9702 fi 9703 fi 9704 fi 9705 fi 9706 9707 9708 9709 if test "x$SH" = x; then 9710 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9711 fi 9712 9713 9714 9715 9716 9717 # Publish this variable in the help. 9718 9719 9720 if [ -z "${SORT+x}" ]; then 9721 # The variable is not set by user, try to locate tool using the code snippet 9722 for ac_prog in sort 9723 do 9724 # Extract the first word of "$ac_prog", so it can be a program name with args. 9725 set dummy $ac_prog; ac_word=$2 9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9727 $as_echo_n "checking for $ac_word... " >&6; } 9728 if ${ac_cv_path_SORT+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730 else 9731 case $SORT in 9732 [\\/]* | ?:[\\/]*) 9733 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9734 ;; 9735 *) 9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9737 for as_dir in $PATH 9738 do 9739 IFS=$as_save_IFS 9740 test -z "$as_dir" && as_dir=. 9741 for ac_exec_ext in '' $ac_executable_extensions; do 9742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9743 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9745 break 2 9746 fi 9747 done 9748 done 9749 IFS=$as_save_IFS 9750 9751 ;; 9752 esac 9753 fi 9754 SORT=$ac_cv_path_SORT 9755 if test -n "$SORT"; then 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9757 $as_echo "$SORT" >&6; } 9758 else 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9760 $as_echo "no" >&6; } 9761 fi 9762 9763 9764 test -n "$SORT" && break 9765 done 9766 9767 else 9768 # The variable is set, but is it from the command line or the environment? 9769 9770 # Try to remove the string !SORT! from our list. 9771 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9772 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9773 # If it failed, the variable was not from the command line. Ignore it, 9774 # but warn the user (except for BASH, which is always set by the calling BASH). 9775 if test "xSORT" != xBASH; then 9776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9777 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9778 fi 9779 # Try to locate tool using the code snippet 9780 for ac_prog in sort 9781 do 9782 # Extract the first word of "$ac_prog", so it can be a program name with args. 9783 set dummy $ac_prog; ac_word=$2 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9785 $as_echo_n "checking for $ac_word... " >&6; } 9786 if ${ac_cv_path_SORT+:} false; then : 9787 $as_echo_n "(cached) " >&6 9788 else 9789 case $SORT in 9790 [\\/]* | ?:[\\/]*) 9791 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9792 ;; 9793 *) 9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9795 for as_dir in $PATH 9796 do 9797 IFS=$as_save_IFS 9798 test -z "$as_dir" && as_dir=. 9799 for ac_exec_ext in '' $ac_executable_extensions; do 9800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9801 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9803 break 2 9804 fi 9805 done 9806 done 9807 IFS=$as_save_IFS 9808 9809 ;; 9810 esac 9811 fi 9812 SORT=$ac_cv_path_SORT 9813 if test -n "$SORT"; then 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9815 $as_echo "$SORT" >&6; } 9816 else 9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9818 $as_echo "no" >&6; } 9819 fi 9820 9821 9822 test -n "$SORT" && break 9823 done 9824 9825 else 9826 # If it succeeded, then it was overridden by the user. We will use it 9827 # for the tool. 9828 9829 # First remove it from the list of overridden variables, so we can test 9830 # for unknown variables in the end. 9831 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9832 9833 # Check if we try to supply an empty value 9834 if test "x$SORT" = x; then 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 9836 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9838 $as_echo_n "checking for SORT... " >&6; } 9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9840 $as_echo "disabled" >&6; } 9841 else 9842 # Check if the provided tool contains a complete path. 9843 tool_specified="$SORT" 9844 tool_basename="${tool_specified##*/}" 9845 if test "x$tool_basename" = "x$tool_specified"; then 9846 # A command without a complete path is provided, search $PATH. 9847 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9848 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9849 # Extract the first word of "$tool_basename", so it can be a program name with args. 9850 set dummy $tool_basename; ac_word=$2 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9852 $as_echo_n "checking for $ac_word... " >&6; } 9853 if ${ac_cv_path_SORT+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855 else 9856 case $SORT in 9857 [\\/]* | ?:[\\/]*) 9858 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9859 ;; 9860 *) 9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9862 for as_dir in $PATH 9863 do 9864 IFS=$as_save_IFS 9865 test -z "$as_dir" && as_dir=. 9866 for ac_exec_ext in '' $ac_executable_extensions; do 9867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9868 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9870 break 2 9871 fi 9872 done 9873 done 9874 IFS=$as_save_IFS 9875 9876 ;; 9877 esac 9878 fi 9879 SORT=$ac_cv_path_SORT 9880 if test -n "$SORT"; then 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9882 $as_echo "$SORT" >&6; } 9883 else 9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9885 $as_echo "no" >&6; } 9886 fi 9887 9888 9889 if test "x$SORT" = x; then 9890 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9891 fi 9892 else 9893 # Otherwise we believe it is a complete path. Use it as it is. 9894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9895 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9897 $as_echo_n "checking for SORT... " >&6; } 9898 if test ! -x "$tool_specified"; then 9899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9900 $as_echo "not found" >&6; } 9901 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9902 fi 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9904 $as_echo "$tool_specified" >&6; } 9905 fi 9906 fi 9907 fi 9908 fi 9909 9910 9911 9912 if test "x$SORT" = x; then 9913 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9914 fi 9915 9916 9917 9918 9919 9920 # Publish this variable in the help. 9921 9922 9923 if [ -z "${TAIL+x}" ]; then 9924 # The variable is not set by user, try to locate tool using the code snippet 9925 for ac_prog in tail 9926 do 9927 # Extract the first word of "$ac_prog", so it can be a program name with args. 9928 set dummy $ac_prog; ac_word=$2 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9930 $as_echo_n "checking for $ac_word... " >&6; } 9931 if ${ac_cv_path_TAIL+:} false; then : 9932 $as_echo_n "(cached) " >&6 9933 else 9934 case $TAIL in 9935 [\\/]* | ?:[\\/]*) 9936 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9937 ;; 9938 *) 9939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9940 for as_dir in $PATH 9941 do 9942 IFS=$as_save_IFS 9943 test -z "$as_dir" && as_dir=. 9944 for ac_exec_ext in '' $ac_executable_extensions; do 9945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9946 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9948 break 2 9949 fi 9950 done 9951 done 9952 IFS=$as_save_IFS 9953 9954 ;; 9955 esac 9956 fi 9957 TAIL=$ac_cv_path_TAIL 9958 if test -n "$TAIL"; then 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9960 $as_echo "$TAIL" >&6; } 9961 else 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9963 $as_echo "no" >&6; } 9964 fi 9965 9966 9967 test -n "$TAIL" && break 9968 done 9969 9970 else 9971 # The variable is set, but is it from the command line or the environment? 9972 9973 # Try to remove the string !TAIL! from our list. 9974 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9975 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9976 # If it failed, the variable was not from the command line. Ignore it, 9977 # but warn the user (except for BASH, which is always set by the calling BASH). 9978 if test "xTAIL" != xBASH; then 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9980 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9981 fi 9982 # Try to locate tool using the code snippet 9983 for ac_prog in tail 9984 do 9985 # Extract the first word of "$ac_prog", so it can be a program name with args. 9986 set dummy $ac_prog; ac_word=$2 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9988 $as_echo_n "checking for $ac_word... " >&6; } 9989 if ${ac_cv_path_TAIL+:} false; then : 9990 $as_echo_n "(cached) " >&6 9991 else 9992 case $TAIL in 9993 [\\/]* | ?:[\\/]*) 9994 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9995 ;; 9996 *) 9997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9998 for as_dir in $PATH 9999 do 10000 IFS=$as_save_IFS 10001 test -z "$as_dir" && as_dir=. 10002 for ac_exec_ext in '' $ac_executable_extensions; do 10003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10004 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10006 break 2 10007 fi 10008 done 10009 done 10010 IFS=$as_save_IFS 10011 10012 ;; 10013 esac 10014 fi 10015 TAIL=$ac_cv_path_TAIL 10016 if test -n "$TAIL"; then 10017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10018 $as_echo "$TAIL" >&6; } 10019 else 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10021 $as_echo "no" >&6; } 10022 fi 10023 10024 10025 test -n "$TAIL" && break 10026 done 10027 10028 else 10029 # If it succeeded, then it was overridden by the user. We will use it 10030 # for the tool. 10031 10032 # First remove it from the list of overridden variables, so we can test 10033 # for unknown variables in the end. 10034 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10035 10036 # Check if we try to supply an empty value 10037 if test "x$TAIL" = x; then 10038 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 10039 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10041 $as_echo_n "checking for TAIL... " >&6; } 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10043 $as_echo "disabled" >&6; } 10044 else 10045 # Check if the provided tool contains a complete path. 10046 tool_specified="$TAIL" 10047 tool_basename="${tool_specified##*/}" 10048 if test "x$tool_basename" = "x$tool_specified"; then 10049 # A command without a complete path is provided, search $PATH. 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 10051 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 10052 # Extract the first word of "$tool_basename", so it can be a program name with args. 10053 set dummy $tool_basename; ac_word=$2 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10055 $as_echo_n "checking for $ac_word... " >&6; } 10056 if ${ac_cv_path_TAIL+:} false; then : 10057 $as_echo_n "(cached) " >&6 10058 else 10059 case $TAIL in 10060 [\\/]* | ?:[\\/]*) 10061 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 10062 ;; 10063 *) 10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10065 for as_dir in $PATH 10066 do 10067 IFS=$as_save_IFS 10068 test -z "$as_dir" && as_dir=. 10069 for ac_exec_ext in '' $ac_executable_extensions; do 10070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10071 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10073 break 2 10074 fi 10075 done 10076 done 10077 IFS=$as_save_IFS 10078 10079 ;; 10080 esac 10081 fi 10082 TAIL=$ac_cv_path_TAIL 10083 if test -n "$TAIL"; then 10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 10085 $as_echo "$TAIL" >&6; } 10086 else 10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10088 $as_echo "no" >&6; } 10089 fi 10090 10091 10092 if test "x$TAIL" = x; then 10093 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10094 fi 10095 else 10096 # Otherwise we believe it is a complete path. Use it as it is. 10097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 10098 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 10100 $as_echo_n "checking for TAIL... " >&6; } 10101 if test ! -x "$tool_specified"; then 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10103 $as_echo "not found" >&6; } 10104 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 10105 fi 10106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10107 $as_echo "$tool_specified" >&6; } 10108 fi 10109 fi 10110 fi 10111 fi 10112 10113 10114 10115 if test "x$TAIL" = x; then 10116 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 10117 fi 10118 10119 10120 10121 10122 10123 # Publish this variable in the help. 10124 10125 10126 if [ -z "${TAR+x}" ]; then 10127 # The variable is not set by user, try to locate tool using the code snippet 10128 for ac_prog in tar 10129 do 10130 # Extract the first word of "$ac_prog", so it can be a program name with args. 10131 set dummy $ac_prog; ac_word=$2 10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10133 $as_echo_n "checking for $ac_word... " >&6; } 10134 if ${ac_cv_path_TAR+:} false; then : 10135 $as_echo_n "(cached) " >&6 10136 else 10137 case $TAR in 10138 [\\/]* | ?:[\\/]*) 10139 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10140 ;; 10141 *) 10142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10143 for as_dir in $PATH 10144 do 10145 IFS=$as_save_IFS 10146 test -z "$as_dir" && as_dir=. 10147 for ac_exec_ext in '' $ac_executable_extensions; do 10148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10149 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10151 break 2 10152 fi 10153 done 10154 done 10155 IFS=$as_save_IFS 10156 10157 ;; 10158 esac 10159 fi 10160 TAR=$ac_cv_path_TAR 10161 if test -n "$TAR"; then 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10163 $as_echo "$TAR" >&6; } 10164 else 10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10166 $as_echo "no" >&6; } 10167 fi 10168 10169 10170 test -n "$TAR" && break 10171 done 10172 10173 else 10174 # The variable is set, but is it from the command line or the environment? 10175 10176 # Try to remove the string !TAR! from our list. 10177 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 10178 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10179 # If it failed, the variable was not from the command line. Ignore it, 10180 # but warn the user (except for BASH, which is always set by the calling BASH). 10181 if test "xTAR" != xBASH; then 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 10183 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 10184 fi 10185 # Try to locate tool using the code snippet 10186 for ac_prog in tar 10187 do 10188 # Extract the first word of "$ac_prog", so it can be a program name with args. 10189 set dummy $ac_prog; ac_word=$2 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10191 $as_echo_n "checking for $ac_word... " >&6; } 10192 if ${ac_cv_path_TAR+:} false; then : 10193 $as_echo_n "(cached) " >&6 10194 else 10195 case $TAR in 10196 [\\/]* | ?:[\\/]*) 10197 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10198 ;; 10199 *) 10200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10201 for as_dir in $PATH 10202 do 10203 IFS=$as_save_IFS 10204 test -z "$as_dir" && as_dir=. 10205 for ac_exec_ext in '' $ac_executable_extensions; do 10206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10207 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10209 break 2 10210 fi 10211 done 10212 done 10213 IFS=$as_save_IFS 10214 10215 ;; 10216 esac 10217 fi 10218 TAR=$ac_cv_path_TAR 10219 if test -n "$TAR"; then 10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10221 $as_echo "$TAR" >&6; } 10222 else 10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10224 $as_echo "no" >&6; } 10225 fi 10226 10227 10228 test -n "$TAR" && break 10229 done 10230 10231 else 10232 # If it succeeded, then it was overridden by the user. We will use it 10233 # for the tool. 10234 10235 # First remove it from the list of overridden variables, so we can test 10236 # for unknown variables in the end. 10237 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10238 10239 # Check if we try to supply an empty value 10240 if test "x$TAR" = x; then 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 10242 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10244 $as_echo_n "checking for TAR... " >&6; } 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10246 $as_echo "disabled" >&6; } 10247 else 10248 # Check if the provided tool contains a complete path. 10249 tool_specified="$TAR" 10250 tool_basename="${tool_specified##*/}" 10251 if test "x$tool_basename" = "x$tool_specified"; then 10252 # A command without a complete path is provided, search $PATH. 10253 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 10254 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 10255 # Extract the first word of "$tool_basename", so it can be a program name with args. 10256 set dummy $tool_basename; ac_word=$2 10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10258 $as_echo_n "checking for $ac_word... " >&6; } 10259 if ${ac_cv_path_TAR+:} false; then : 10260 $as_echo_n "(cached) " >&6 10261 else 10262 case $TAR in 10263 [\\/]* | ?:[\\/]*) 10264 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 10265 ;; 10266 *) 10267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10268 for as_dir in $PATH 10269 do 10270 IFS=$as_save_IFS 10271 test -z "$as_dir" && as_dir=. 10272 for ac_exec_ext in '' $ac_executable_extensions; do 10273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10274 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 10275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10276 break 2 10277 fi 10278 done 10279 done 10280 IFS=$as_save_IFS 10281 10282 ;; 10283 esac 10284 fi 10285 TAR=$ac_cv_path_TAR 10286 if test -n "$TAR"; then 10287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 10288 $as_echo "$TAR" >&6; } 10289 else 10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10291 $as_echo "no" >&6; } 10292 fi 10293 10294 10295 if test "x$TAR" = x; then 10296 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10297 fi 10298 else 10299 # Otherwise we believe it is a complete path. Use it as it is. 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 10301 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 10303 $as_echo_n "checking for TAR... " >&6; } 10304 if test ! -x "$tool_specified"; then 10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10306 $as_echo "not found" >&6; } 10307 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 10308 fi 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10310 $as_echo "$tool_specified" >&6; } 10311 fi 10312 fi 10313 fi 10314 fi 10315 10316 10317 10318 if test "x$TAR" = x; then 10319 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 10320 fi 10321 10322 10323 10324 10325 10326 # Publish this variable in the help. 10327 10328 10329 if [ -z "${TEE+x}" ]; then 10330 # The variable is not set by user, try to locate tool using the code snippet 10331 for ac_prog in tee 10332 do 10333 # Extract the first word of "$ac_prog", so it can be a program name with args. 10334 set dummy $ac_prog; ac_word=$2 10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10336 $as_echo_n "checking for $ac_word... " >&6; } 10337 if ${ac_cv_path_TEE+:} false; then : 10338 $as_echo_n "(cached) " >&6 10339 else 10340 case $TEE in 10341 [\\/]* | ?:[\\/]*) 10342 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10343 ;; 10344 *) 10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10346 for as_dir in $PATH 10347 do 10348 IFS=$as_save_IFS 10349 test -z "$as_dir" && as_dir=. 10350 for ac_exec_ext in '' $ac_executable_extensions; do 10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10352 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10354 break 2 10355 fi 10356 done 10357 done 10358 IFS=$as_save_IFS 10359 10360 ;; 10361 esac 10362 fi 10363 TEE=$ac_cv_path_TEE 10364 if test -n "$TEE"; then 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10366 $as_echo "$TEE" >&6; } 10367 else 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10369 $as_echo "no" >&6; } 10370 fi 10371 10372 10373 test -n "$TEE" && break 10374 done 10375 10376 else 10377 # The variable is set, but is it from the command line or the environment? 10378 10379 # Try to remove the string !TEE! from our list. 10380 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 10381 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10382 # If it failed, the variable was not from the command line. Ignore it, 10383 # but warn the user (except for BASH, which is always set by the calling BASH). 10384 if test "xTEE" != xBASH; then 10385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 10386 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 10387 fi 10388 # Try to locate tool using the code snippet 10389 for ac_prog in tee 10390 do 10391 # Extract the first word of "$ac_prog", so it can be a program name with args. 10392 set dummy $ac_prog; ac_word=$2 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10394 $as_echo_n "checking for $ac_word... " >&6; } 10395 if ${ac_cv_path_TEE+:} false; then : 10396 $as_echo_n "(cached) " >&6 10397 else 10398 case $TEE in 10399 [\\/]* | ?:[\\/]*) 10400 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10401 ;; 10402 *) 10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10404 for as_dir in $PATH 10405 do 10406 IFS=$as_save_IFS 10407 test -z "$as_dir" && as_dir=. 10408 for ac_exec_ext in '' $ac_executable_extensions; do 10409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10410 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10412 break 2 10413 fi 10414 done 10415 done 10416 IFS=$as_save_IFS 10417 10418 ;; 10419 esac 10420 fi 10421 TEE=$ac_cv_path_TEE 10422 if test -n "$TEE"; then 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10424 $as_echo "$TEE" >&6; } 10425 else 10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10427 $as_echo "no" >&6; } 10428 fi 10429 10430 10431 test -n "$TEE" && break 10432 done 10433 10434 else 10435 # If it succeeded, then it was overridden by the user. We will use it 10436 # for the tool. 10437 10438 # First remove it from the list of overridden variables, so we can test 10439 # for unknown variables in the end. 10440 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10441 10442 # Check if we try to supply an empty value 10443 if test "x$TEE" = x; then 10444 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 10445 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10447 $as_echo_n "checking for TEE... " >&6; } 10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10449 $as_echo "disabled" >&6; } 10450 else 10451 # Check if the provided tool contains a complete path. 10452 tool_specified="$TEE" 10453 tool_basename="${tool_specified##*/}" 10454 if test "x$tool_basename" = "x$tool_specified"; then 10455 # A command without a complete path is provided, search $PATH. 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10457 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10458 # Extract the first word of "$tool_basename", so it can be a program name with args. 10459 set dummy $tool_basename; ac_word=$2 10460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10461 $as_echo_n "checking for $ac_word... " >&6; } 10462 if ${ac_cv_path_TEE+:} false; then : 10463 $as_echo_n "(cached) " >&6 10464 else 10465 case $TEE in 10466 [\\/]* | ?:[\\/]*) 10467 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10468 ;; 10469 *) 10470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10471 for as_dir in $PATH 10472 do 10473 IFS=$as_save_IFS 10474 test -z "$as_dir" && as_dir=. 10475 for ac_exec_ext in '' $ac_executable_extensions; do 10476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10477 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10479 break 2 10480 fi 10481 done 10482 done 10483 IFS=$as_save_IFS 10484 10485 ;; 10486 esac 10487 fi 10488 TEE=$ac_cv_path_TEE 10489 if test -n "$TEE"; then 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10491 $as_echo "$TEE" >&6; } 10492 else 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10494 $as_echo "no" >&6; } 10495 fi 10496 10497 10498 if test "x$TEE" = x; then 10499 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10500 fi 10501 else 10502 # Otherwise we believe it is a complete path. Use it as it is. 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10504 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10506 $as_echo_n "checking for TEE... " >&6; } 10507 if test ! -x "$tool_specified"; then 10508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10509 $as_echo "not found" >&6; } 10510 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10511 fi 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10513 $as_echo "$tool_specified" >&6; } 10514 fi 10515 fi 10516 fi 10517 fi 10518 10519 10520 10521 if test "x$TEE" = x; then 10522 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10523 fi 10524 10525 10526 10527 10528 10529 # Publish this variable in the help. 10530 10531 10532 if [ -z "${TOUCH+x}" ]; then 10533 # The variable is not set by user, try to locate tool using the code snippet 10534 for ac_prog in touch 10535 do 10536 # Extract the first word of "$ac_prog", so it can be a program name with args. 10537 set dummy $ac_prog; ac_word=$2 10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10539 $as_echo_n "checking for $ac_word... " >&6; } 10540 if ${ac_cv_path_TOUCH+:} false; then : 10541 $as_echo_n "(cached) " >&6 10542 else 10543 case $TOUCH in 10544 [\\/]* | ?:[\\/]*) 10545 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10546 ;; 10547 *) 10548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10549 for as_dir in $PATH 10550 do 10551 IFS=$as_save_IFS 10552 test -z "$as_dir" && as_dir=. 10553 for ac_exec_ext in '' $ac_executable_extensions; do 10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10555 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10557 break 2 10558 fi 10559 done 10560 done 10561 IFS=$as_save_IFS 10562 10563 ;; 10564 esac 10565 fi 10566 TOUCH=$ac_cv_path_TOUCH 10567 if test -n "$TOUCH"; then 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10569 $as_echo "$TOUCH" >&6; } 10570 else 10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10572 $as_echo "no" >&6; } 10573 fi 10574 10575 10576 test -n "$TOUCH" && break 10577 done 10578 10579 else 10580 # The variable is set, but is it from the command line or the environment? 10581 10582 # Try to remove the string !TOUCH! from our list. 10583 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10584 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10585 # If it failed, the variable was not from the command line. Ignore it, 10586 # but warn the user (except for BASH, which is always set by the calling BASH). 10587 if test "xTOUCH" != xBASH; then 10588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10589 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10590 fi 10591 # Try to locate tool using the code snippet 10592 for ac_prog in touch 10593 do 10594 # Extract the first word of "$ac_prog", so it can be a program name with args. 10595 set dummy $ac_prog; ac_word=$2 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10597 $as_echo_n "checking for $ac_word... " >&6; } 10598 if ${ac_cv_path_TOUCH+:} false; then : 10599 $as_echo_n "(cached) " >&6 10600 else 10601 case $TOUCH in 10602 [\\/]* | ?:[\\/]*) 10603 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10604 ;; 10605 *) 10606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10607 for as_dir in $PATH 10608 do 10609 IFS=$as_save_IFS 10610 test -z "$as_dir" && as_dir=. 10611 for ac_exec_ext in '' $ac_executable_extensions; do 10612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10613 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10615 break 2 10616 fi 10617 done 10618 done 10619 IFS=$as_save_IFS 10620 10621 ;; 10622 esac 10623 fi 10624 TOUCH=$ac_cv_path_TOUCH 10625 if test -n "$TOUCH"; then 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10627 $as_echo "$TOUCH" >&6; } 10628 else 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10630 $as_echo "no" >&6; } 10631 fi 10632 10633 10634 test -n "$TOUCH" && break 10635 done 10636 10637 else 10638 # If it succeeded, then it was overridden by the user. We will use it 10639 # for the tool. 10640 10641 # First remove it from the list of overridden variables, so we can test 10642 # for unknown variables in the end. 10643 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10644 10645 # Check if we try to supply an empty value 10646 if test "x$TOUCH" = x; then 10647 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 10648 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10650 $as_echo_n "checking for TOUCH... " >&6; } 10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10652 $as_echo "disabled" >&6; } 10653 else 10654 # Check if the provided tool contains a complete path. 10655 tool_specified="$TOUCH" 10656 tool_basename="${tool_specified##*/}" 10657 if test "x$tool_basename" = "x$tool_specified"; then 10658 # A command without a complete path is provided, search $PATH. 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10660 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10661 # Extract the first word of "$tool_basename", so it can be a program name with args. 10662 set dummy $tool_basename; ac_word=$2 10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10664 $as_echo_n "checking for $ac_word... " >&6; } 10665 if ${ac_cv_path_TOUCH+:} false; then : 10666 $as_echo_n "(cached) " >&6 10667 else 10668 case $TOUCH in 10669 [\\/]* | ?:[\\/]*) 10670 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10671 ;; 10672 *) 10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10674 for as_dir in $PATH 10675 do 10676 IFS=$as_save_IFS 10677 test -z "$as_dir" && as_dir=. 10678 for ac_exec_ext in '' $ac_executable_extensions; do 10679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10680 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10682 break 2 10683 fi 10684 done 10685 done 10686 IFS=$as_save_IFS 10687 10688 ;; 10689 esac 10690 fi 10691 TOUCH=$ac_cv_path_TOUCH 10692 if test -n "$TOUCH"; then 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10694 $as_echo "$TOUCH" >&6; } 10695 else 10696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10697 $as_echo "no" >&6; } 10698 fi 10699 10700 10701 if test "x$TOUCH" = x; then 10702 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10703 fi 10704 else 10705 # Otherwise we believe it is a complete path. Use it as it is. 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10707 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10709 $as_echo_n "checking for TOUCH... " >&6; } 10710 if test ! -x "$tool_specified"; then 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10712 $as_echo "not found" >&6; } 10713 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10714 fi 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10716 $as_echo "$tool_specified" >&6; } 10717 fi 10718 fi 10719 fi 10720 fi 10721 10722 10723 10724 if test "x$TOUCH" = x; then 10725 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10726 fi 10727 10728 10729 10730 10731 10732 # Publish this variable in the help. 10733 10734 10735 if [ -z "${TR+x}" ]; then 10736 # The variable is not set by user, try to locate tool using the code snippet 10737 for ac_prog in tr 10738 do 10739 # Extract the first word of "$ac_prog", so it can be a program name with args. 10740 set dummy $ac_prog; ac_word=$2 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10742 $as_echo_n "checking for $ac_word... " >&6; } 10743 if ${ac_cv_path_TR+:} false; then : 10744 $as_echo_n "(cached) " >&6 10745 else 10746 case $TR in 10747 [\\/]* | ?:[\\/]*) 10748 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10749 ;; 10750 *) 10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10752 for as_dir in $PATH 10753 do 10754 IFS=$as_save_IFS 10755 test -z "$as_dir" && as_dir=. 10756 for ac_exec_ext in '' $ac_executable_extensions; do 10757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10758 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10760 break 2 10761 fi 10762 done 10763 done 10764 IFS=$as_save_IFS 10765 10766 ;; 10767 esac 10768 fi 10769 TR=$ac_cv_path_TR 10770 if test -n "$TR"; then 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10772 $as_echo "$TR" >&6; } 10773 else 10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10775 $as_echo "no" >&6; } 10776 fi 10777 10778 10779 test -n "$TR" && break 10780 done 10781 10782 else 10783 # The variable is set, but is it from the command line or the environment? 10784 10785 # Try to remove the string !TR! from our list. 10786 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10787 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10788 # If it failed, the variable was not from the command line. Ignore it, 10789 # but warn the user (except for BASH, which is always set by the calling BASH). 10790 if test "xTR" != xBASH; then 10791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10792 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10793 fi 10794 # Try to locate tool using the code snippet 10795 for ac_prog in tr 10796 do 10797 # Extract the first word of "$ac_prog", so it can be a program name with args. 10798 set dummy $ac_prog; ac_word=$2 10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10800 $as_echo_n "checking for $ac_word... " >&6; } 10801 if ${ac_cv_path_TR+:} false; then : 10802 $as_echo_n "(cached) " >&6 10803 else 10804 case $TR in 10805 [\\/]* | ?:[\\/]*) 10806 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10807 ;; 10808 *) 10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10810 for as_dir in $PATH 10811 do 10812 IFS=$as_save_IFS 10813 test -z "$as_dir" && as_dir=. 10814 for ac_exec_ext in '' $ac_executable_extensions; do 10815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10816 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10818 break 2 10819 fi 10820 done 10821 done 10822 IFS=$as_save_IFS 10823 10824 ;; 10825 esac 10826 fi 10827 TR=$ac_cv_path_TR 10828 if test -n "$TR"; then 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10830 $as_echo "$TR" >&6; } 10831 else 10832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10833 $as_echo "no" >&6; } 10834 fi 10835 10836 10837 test -n "$TR" && break 10838 done 10839 10840 else 10841 # If it succeeded, then it was overridden by the user. We will use it 10842 # for the tool. 10843 10844 # First remove it from the list of overridden variables, so we can test 10845 # for unknown variables in the end. 10846 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10847 10848 # Check if we try to supply an empty value 10849 if test "x$TR" = x; then 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 10851 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10853 $as_echo_n "checking for TR... " >&6; } 10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10855 $as_echo "disabled" >&6; } 10856 else 10857 # Check if the provided tool contains a complete path. 10858 tool_specified="$TR" 10859 tool_basename="${tool_specified##*/}" 10860 if test "x$tool_basename" = "x$tool_specified"; then 10861 # A command without a complete path is provided, search $PATH. 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10863 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10864 # Extract the first word of "$tool_basename", so it can be a program name with args. 10865 set dummy $tool_basename; ac_word=$2 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10867 $as_echo_n "checking for $ac_word... " >&6; } 10868 if ${ac_cv_path_TR+:} false; then : 10869 $as_echo_n "(cached) " >&6 10870 else 10871 case $TR in 10872 [\\/]* | ?:[\\/]*) 10873 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10874 ;; 10875 *) 10876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10877 for as_dir in $PATH 10878 do 10879 IFS=$as_save_IFS 10880 test -z "$as_dir" && as_dir=. 10881 for ac_exec_ext in '' $ac_executable_extensions; do 10882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10883 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10885 break 2 10886 fi 10887 done 10888 done 10889 IFS=$as_save_IFS 10890 10891 ;; 10892 esac 10893 fi 10894 TR=$ac_cv_path_TR 10895 if test -n "$TR"; then 10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10897 $as_echo "$TR" >&6; } 10898 else 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10900 $as_echo "no" >&6; } 10901 fi 10902 10903 10904 if test "x$TR" = x; then 10905 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10906 fi 10907 else 10908 # Otherwise we believe it is a complete path. Use it as it is. 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10910 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10912 $as_echo_n "checking for TR... " >&6; } 10913 if test ! -x "$tool_specified"; then 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10915 $as_echo "not found" >&6; } 10916 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10917 fi 10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10919 $as_echo "$tool_specified" >&6; } 10920 fi 10921 fi 10922 fi 10923 fi 10924 10925 10926 10927 if test "x$TR" = x; then 10928 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10929 fi 10930 10931 10932 10933 10934 10935 # Publish this variable in the help. 10936 10937 10938 if [ -z "${UNAME+x}" ]; then 10939 # The variable is not set by user, try to locate tool using the code snippet 10940 for ac_prog in uname 10941 do 10942 # Extract the first word of "$ac_prog", so it can be a program name with args. 10943 set dummy $ac_prog; 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_UNAME+:} false; then : 10947 $as_echo_n "(cached) " >&6 10948 else 10949 case $UNAME in 10950 [\\/]* | ?:[\\/]*) 10951 ac_cv_path_UNAME="$UNAME" # 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_UNAME="$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 UNAME=$ac_cv_path_UNAME 10973 if test -n "$UNAME"; then 10974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10975 $as_echo "$UNAME" >&6; } 10976 else 10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10978 $as_echo "no" >&6; } 10979 fi 10980 10981 10982 test -n "$UNAME" && break 10983 done 10984 10985 else 10986 # The variable is set, but is it from the command line or the environment? 10987 10988 # Try to remove the string !UNAME! from our list. 10989 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10990 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10991 # If it failed, the variable was not from the command line. Ignore it, 10992 # but warn the user (except for BASH, which is always set by the calling BASH). 10993 if test "xUNAME" != xBASH; then 10994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10995 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10996 fi 10997 # Try to locate tool using the code snippet 10998 for ac_prog in uname 10999 do 11000 # Extract the first word of "$ac_prog", so it can be a program name with args. 11001 set dummy $ac_prog; ac_word=$2 11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11003 $as_echo_n "checking for $ac_word... " >&6; } 11004 if ${ac_cv_path_UNAME+:} false; then : 11005 $as_echo_n "(cached) " >&6 11006 else 11007 case $UNAME in 11008 [\\/]* | ?:[\\/]*) 11009 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11010 ;; 11011 *) 11012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11013 for as_dir in $PATH 11014 do 11015 IFS=$as_save_IFS 11016 test -z "$as_dir" && as_dir=. 11017 for ac_exec_ext in '' $ac_executable_extensions; do 11018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11019 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11021 break 2 11022 fi 11023 done 11024 done 11025 IFS=$as_save_IFS 11026 11027 ;; 11028 esac 11029 fi 11030 UNAME=$ac_cv_path_UNAME 11031 if test -n "$UNAME"; then 11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11033 $as_echo "$UNAME" >&6; } 11034 else 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11036 $as_echo "no" >&6; } 11037 fi 11038 11039 11040 test -n "$UNAME" && break 11041 done 11042 11043 else 11044 # If it succeeded, then it was overridden by the user. We will use it 11045 # for the tool. 11046 11047 # First remove it from the list of overridden variables, so we can test 11048 # for unknown variables in the end. 11049 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11050 11051 # Check if we try to supply an empty value 11052 if test "x$UNAME" = x; then 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 11054 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 11055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11056 $as_echo_n "checking for UNAME... " >&6; } 11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11058 $as_echo "disabled" >&6; } 11059 else 11060 # Check if the provided tool contains a complete path. 11061 tool_specified="$UNAME" 11062 tool_basename="${tool_specified##*/}" 11063 if test "x$tool_basename" = "x$tool_specified"; then 11064 # A command without a complete path is provided, search $PATH. 11065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 11066 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 11067 # Extract the first word of "$tool_basename", so it can be a program name with args. 11068 set dummy $tool_basename; ac_word=$2 11069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11070 $as_echo_n "checking for $ac_word... " >&6; } 11071 if ${ac_cv_path_UNAME+:} false; then : 11072 $as_echo_n "(cached) " >&6 11073 else 11074 case $UNAME in 11075 [\\/]* | ?:[\\/]*) 11076 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 11077 ;; 11078 *) 11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11080 for as_dir in $PATH 11081 do 11082 IFS=$as_save_IFS 11083 test -z "$as_dir" && as_dir=. 11084 for ac_exec_ext in '' $ac_executable_extensions; do 11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11086 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 11087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11088 break 2 11089 fi 11090 done 11091 done 11092 IFS=$as_save_IFS 11093 11094 ;; 11095 esac 11096 fi 11097 UNAME=$ac_cv_path_UNAME 11098 if test -n "$UNAME"; then 11099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 11100 $as_echo "$UNAME" >&6; } 11101 else 11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11103 $as_echo "no" >&6; } 11104 fi 11105 11106 11107 if test "x$UNAME" = x; then 11108 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11109 fi 11110 else 11111 # Otherwise we believe it is a complete path. Use it as it is. 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 11113 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 11115 $as_echo_n "checking for UNAME... " >&6; } 11116 if test ! -x "$tool_specified"; then 11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11118 $as_echo "not found" >&6; } 11119 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 11120 fi 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11122 $as_echo "$tool_specified" >&6; } 11123 fi 11124 fi 11125 fi 11126 fi 11127 11128 11129 11130 if test "x$UNAME" = x; then 11131 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 11132 fi 11133 11134 11135 11136 11137 11138 # Publish this variable in the help. 11139 11140 11141 if [ -z "${UNIQ+x}" ]; then 11142 # The variable is not set by user, try to locate tool using the code snippet 11143 for ac_prog in uniq 11144 do 11145 # Extract the first word of "$ac_prog", so it can be a program name with args. 11146 set dummy $ac_prog; ac_word=$2 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11148 $as_echo_n "checking for $ac_word... " >&6; } 11149 if ${ac_cv_path_UNIQ+:} false; then : 11150 $as_echo_n "(cached) " >&6 11151 else 11152 case $UNIQ in 11153 [\\/]* | ?:[\\/]*) 11154 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11155 ;; 11156 *) 11157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11158 for as_dir in $PATH 11159 do 11160 IFS=$as_save_IFS 11161 test -z "$as_dir" && as_dir=. 11162 for ac_exec_ext in '' $ac_executable_extensions; do 11163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11164 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11166 break 2 11167 fi 11168 done 11169 done 11170 IFS=$as_save_IFS 11171 11172 ;; 11173 esac 11174 fi 11175 UNIQ=$ac_cv_path_UNIQ 11176 if test -n "$UNIQ"; then 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11178 $as_echo "$UNIQ" >&6; } 11179 else 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11181 $as_echo "no" >&6; } 11182 fi 11183 11184 11185 test -n "$UNIQ" && break 11186 done 11187 11188 else 11189 # The variable is set, but is it from the command line or the environment? 11190 11191 # Try to remove the string !UNIQ! from our list. 11192 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 11193 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11194 # If it failed, the variable was not from the command line. Ignore it, 11195 # but warn the user (except for BASH, which is always set by the calling BASH). 11196 if test "xUNIQ" != xBASH; then 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 11198 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 11199 fi 11200 # Try to locate tool using the code snippet 11201 for ac_prog in uniq 11202 do 11203 # Extract the first word of "$ac_prog", so it can be a program name with args. 11204 set dummy $ac_prog; ac_word=$2 11205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11206 $as_echo_n "checking for $ac_word... " >&6; } 11207 if ${ac_cv_path_UNIQ+:} false; then : 11208 $as_echo_n "(cached) " >&6 11209 else 11210 case $UNIQ in 11211 [\\/]* | ?:[\\/]*) 11212 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 11213 ;; 11214 *) 11215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11216 for as_dir in $PATH 11217 do 11218 IFS=$as_save_IFS 11219 test -z "$as_dir" && as_dir=. 11220 for ac_exec_ext in '' $ac_executable_extensions; do 11221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11222 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 11223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11224 break 2 11225 fi 11226 done 11227 done 11228 IFS=$as_save_IFS 11229 11230 ;; 11231 esac 11232 fi 11233 UNIQ=$ac_cv_path_UNIQ 11234 if test -n "$UNIQ"; then 11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11236 $as_echo "$UNIQ" >&6; } 11237 else 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11239 $as_echo "no" >&6; } 11240 fi 11241 11242 11243 test -n "$UNIQ" && break 11244 done 11245 11246 else 11247 # If it succeeded, then it was overridden by the user. We will use it 11248 # for the tool. 11249 11250 # First remove it from the list of overridden variables, so we can test 11251 # for unknown variables in the end. 11252 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11253 11254 # Check if we try to supply an empty value 11255 if test "x$UNIQ" = x; then 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 11257 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11259 $as_echo_n "checking for UNIQ... " >&6; } 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11261 $as_echo "disabled" >&6; } 11262 else 11263 # Check if the provided tool contains a complete path. 11264 tool_specified="$UNIQ" 11265 tool_basename="${tool_specified##*/}" 11266 if test "x$tool_basename" = "x$tool_specified"; then 11267 # A command without a complete path is provided, search $PATH. 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 11269 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 11270 # Extract the first word of "$tool_basename", so it can be a program name with args. 11271 set dummy $tool_basename; 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_UNIQ+:} false; then : 11275 $as_echo_n "(cached) " >&6 11276 else 11277 case $UNIQ in 11278 [\\/]* | ?:[\\/]*) 11279 ac_cv_path_UNIQ="$UNIQ" # 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_UNIQ="$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 UNIQ=$ac_cv_path_UNIQ 11301 if test -n "$UNIQ"; then 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 11303 $as_echo "$UNIQ" >&6; } 11304 else 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11306 $as_echo "no" >&6; } 11307 fi 11308 11309 11310 if test "x$UNIQ" = x; then 11311 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11312 fi 11313 else 11314 # Otherwise we believe it is a complete path. Use it as it is. 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 11316 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 11318 $as_echo_n "checking for UNIQ... " >&6; } 11319 if test ! -x "$tool_specified"; then 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11321 $as_echo "not found" >&6; } 11322 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 11323 fi 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11325 $as_echo "$tool_specified" >&6; } 11326 fi 11327 fi 11328 fi 11329 fi 11330 11331 11332 11333 if test "x$UNIQ" = x; then 11334 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 11335 fi 11336 11337 11338 11339 11340 11341 # Publish this variable in the help. 11342 11343 11344 if [ -z "${WC+x}" ]; then 11345 # The variable is not set by user, try to locate tool using the code snippet 11346 for ac_prog in wc 11347 do 11348 # Extract the first word of "$ac_prog", so it can be a program name with args. 11349 set dummy $ac_prog; ac_word=$2 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11351 $as_echo_n "checking for $ac_word... " >&6; } 11352 if ${ac_cv_path_WC+:} false; then : 11353 $as_echo_n "(cached) " >&6 11354 else 11355 case $WC in 11356 [\\/]* | ?:[\\/]*) 11357 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11358 ;; 11359 *) 11360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11361 for as_dir in $PATH 11362 do 11363 IFS=$as_save_IFS 11364 test -z "$as_dir" && as_dir=. 11365 for ac_exec_ext in '' $ac_executable_extensions; do 11366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11367 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11369 break 2 11370 fi 11371 done 11372 done 11373 IFS=$as_save_IFS 11374 11375 ;; 11376 esac 11377 fi 11378 WC=$ac_cv_path_WC 11379 if test -n "$WC"; then 11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11381 $as_echo "$WC" >&6; } 11382 else 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11384 $as_echo "no" >&6; } 11385 fi 11386 11387 11388 test -n "$WC" && break 11389 done 11390 11391 else 11392 # The variable is set, but is it from the command line or the environment? 11393 11394 # Try to remove the string !WC! from our list. 11395 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 11396 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11397 # If it failed, the variable was not from the command line. Ignore it, 11398 # but warn the user (except for BASH, which is always set by the calling BASH). 11399 if test "xWC" != xBASH; then 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 11401 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 11402 fi 11403 # Try to locate tool using the code snippet 11404 for ac_prog in wc 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_path_WC+:} false; then : 11411 $as_echo_n "(cached) " >&6 11412 else 11413 case $WC in 11414 [\\/]* | ?:[\\/]*) 11415 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11416 ;; 11417 *) 11418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11419 for as_dir in $PATH 11420 do 11421 IFS=$as_save_IFS 11422 test -z "$as_dir" && as_dir=. 11423 for ac_exec_ext in '' $ac_executable_extensions; do 11424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11425 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11427 break 2 11428 fi 11429 done 11430 done 11431 IFS=$as_save_IFS 11432 11433 ;; 11434 esac 11435 fi 11436 WC=$ac_cv_path_WC 11437 if test -n "$WC"; then 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11439 $as_echo "$WC" >&6; } 11440 else 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11442 $as_echo "no" >&6; } 11443 fi 11444 11445 11446 test -n "$WC" && break 11447 done 11448 11449 else 11450 # If it succeeded, then it was overridden by the user. We will use it 11451 # for the tool. 11452 11453 # First remove it from the list of overridden variables, so we can test 11454 # for unknown variables in the end. 11455 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11456 11457 # Check if we try to supply an empty value 11458 if test "x$WC" = x; then 11459 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 11460 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11462 $as_echo_n "checking for WC... " >&6; } 11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11464 $as_echo "disabled" >&6; } 11465 else 11466 # Check if the provided tool contains a complete path. 11467 tool_specified="$WC" 11468 tool_basename="${tool_specified##*/}" 11469 if test "x$tool_basename" = "x$tool_specified"; then 11470 # A command without a complete path is provided, search $PATH. 11471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 11472 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 11473 # Extract the first word of "$tool_basename", so it can be a program name with args. 11474 set dummy $tool_basename; ac_word=$2 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11476 $as_echo_n "checking for $ac_word... " >&6; } 11477 if ${ac_cv_path_WC+:} false; then : 11478 $as_echo_n "(cached) " >&6 11479 else 11480 case $WC in 11481 [\\/]* | ?:[\\/]*) 11482 ac_cv_path_WC="$WC" # Let the user override the test with a path. 11483 ;; 11484 *) 11485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11486 for as_dir in $PATH 11487 do 11488 IFS=$as_save_IFS 11489 test -z "$as_dir" && as_dir=. 11490 for ac_exec_ext in '' $ac_executable_extensions; do 11491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11492 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11494 break 2 11495 fi 11496 done 11497 done 11498 IFS=$as_save_IFS 11499 11500 ;; 11501 esac 11502 fi 11503 WC=$ac_cv_path_WC 11504 if test -n "$WC"; then 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11506 $as_echo "$WC" >&6; } 11507 else 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11509 $as_echo "no" >&6; } 11510 fi 11511 11512 11513 if test "x$WC" = x; then 11514 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11515 fi 11516 else 11517 # Otherwise we believe it is a complete path. Use it as it is. 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11519 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11521 $as_echo_n "checking for WC... " >&6; } 11522 if test ! -x "$tool_specified"; then 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11524 $as_echo "not found" >&6; } 11525 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11526 fi 11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11528 $as_echo "$tool_specified" >&6; } 11529 fi 11530 fi 11531 fi 11532 fi 11533 11534 11535 11536 if test "x$WC" = x; then 11537 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11538 fi 11539 11540 11541 11542 11543 11544 # Publish this variable in the help. 11545 11546 11547 if [ -z "${WHICH+x}" ]; then 11548 # The variable is not set by user, try to locate tool using the code snippet 11549 for ac_prog in which 11550 do 11551 # Extract the first word of "$ac_prog", so it can be a program name with args. 11552 set dummy $ac_prog; ac_word=$2 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11554 $as_echo_n "checking for $ac_word... " >&6; } 11555 if ${ac_cv_path_WHICH+:} false; then : 11556 $as_echo_n "(cached) " >&6 11557 else 11558 case $WHICH in 11559 [\\/]* | ?:[\\/]*) 11560 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11561 ;; 11562 *) 11563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11564 for as_dir in $PATH 11565 do 11566 IFS=$as_save_IFS 11567 test -z "$as_dir" && as_dir=. 11568 for ac_exec_ext in '' $ac_executable_extensions; do 11569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11570 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11572 break 2 11573 fi 11574 done 11575 done 11576 IFS=$as_save_IFS 11577 11578 ;; 11579 esac 11580 fi 11581 WHICH=$ac_cv_path_WHICH 11582 if test -n "$WHICH"; then 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11584 $as_echo "$WHICH" >&6; } 11585 else 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11587 $as_echo "no" >&6; } 11588 fi 11589 11590 11591 test -n "$WHICH" && break 11592 done 11593 11594 else 11595 # The variable is set, but is it from the command line or the environment? 11596 11597 # Try to remove the string !WHICH! from our list. 11598 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11599 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11600 # If it failed, the variable was not from the command line. Ignore it, 11601 # but warn the user (except for BASH, which is always set by the calling BASH). 11602 if test "xWHICH" != xBASH; then 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11604 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11605 fi 11606 # Try to locate tool using the code snippet 11607 for ac_prog in which 11608 do 11609 # Extract the first word of "$ac_prog", so it can be a program name with args. 11610 set dummy $ac_prog; ac_word=$2 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11612 $as_echo_n "checking for $ac_word... " >&6; } 11613 if ${ac_cv_path_WHICH+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615 else 11616 case $WHICH in 11617 [\\/]* | ?:[\\/]*) 11618 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11619 ;; 11620 *) 11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11622 for as_dir in $PATH 11623 do 11624 IFS=$as_save_IFS 11625 test -z "$as_dir" && as_dir=. 11626 for ac_exec_ext in '' $ac_executable_extensions; do 11627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11628 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11630 break 2 11631 fi 11632 done 11633 done 11634 IFS=$as_save_IFS 11635 11636 ;; 11637 esac 11638 fi 11639 WHICH=$ac_cv_path_WHICH 11640 if test -n "$WHICH"; then 11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11642 $as_echo "$WHICH" >&6; } 11643 else 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11645 $as_echo "no" >&6; } 11646 fi 11647 11648 11649 test -n "$WHICH" && break 11650 done 11651 11652 else 11653 # If it succeeded, then it was overridden by the user. We will use it 11654 # for the tool. 11655 11656 # First remove it from the list of overridden variables, so we can test 11657 # for unknown variables in the end. 11658 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11659 11660 # Check if we try to supply an empty value 11661 if test "x$WHICH" = x; then 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 11663 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 11664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11665 $as_echo_n "checking for WHICH... " >&6; } 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11667 $as_echo "disabled" >&6; } 11668 else 11669 # Check if the provided tool contains a complete path. 11670 tool_specified="$WHICH" 11671 tool_basename="${tool_specified##*/}" 11672 if test "x$tool_basename" = "x$tool_specified"; then 11673 # A command without a complete path is provided, search $PATH. 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11675 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11676 # Extract the first word of "$tool_basename", so it can be a program name with args. 11677 set dummy $tool_basename; ac_word=$2 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11679 $as_echo_n "checking for $ac_word... " >&6; } 11680 if ${ac_cv_path_WHICH+:} false; then : 11681 $as_echo_n "(cached) " >&6 11682 else 11683 case $WHICH in 11684 [\\/]* | ?:[\\/]*) 11685 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11686 ;; 11687 *) 11688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11689 for as_dir in $PATH 11690 do 11691 IFS=$as_save_IFS 11692 test -z "$as_dir" && as_dir=. 11693 for ac_exec_ext in '' $ac_executable_extensions; do 11694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11695 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11697 break 2 11698 fi 11699 done 11700 done 11701 IFS=$as_save_IFS 11702 11703 ;; 11704 esac 11705 fi 11706 WHICH=$ac_cv_path_WHICH 11707 if test -n "$WHICH"; then 11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11709 $as_echo "$WHICH" >&6; } 11710 else 11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11712 $as_echo "no" >&6; } 11713 fi 11714 11715 11716 if test "x$WHICH" = x; then 11717 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11718 fi 11719 else 11720 # Otherwise we believe it is a complete path. Use it as it is. 11721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11722 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11724 $as_echo_n "checking for WHICH... " >&6; } 11725 if test ! -x "$tool_specified"; then 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11727 $as_echo "not found" >&6; } 11728 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11729 fi 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11731 $as_echo "$tool_specified" >&6; } 11732 fi 11733 fi 11734 fi 11735 fi 11736 11737 11738 11739 if test "x$WHICH" = x; then 11740 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11741 fi 11742 11743 11744 11745 11746 11747 # Publish this variable in the help. 11748 11749 11750 if [ -z "${XARGS+x}" ]; then 11751 # The variable is not set by user, try to locate tool using the code snippet 11752 for ac_prog in xargs 11753 do 11754 # Extract the first word of "$ac_prog", so it can be a program name with args. 11755 set dummy $ac_prog; ac_word=$2 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11757 $as_echo_n "checking for $ac_word... " >&6; } 11758 if ${ac_cv_path_XARGS+:} false; then : 11759 $as_echo_n "(cached) " >&6 11760 else 11761 case $XARGS in 11762 [\\/]* | ?:[\\/]*) 11763 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11764 ;; 11765 *) 11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11767 for as_dir in $PATH 11768 do 11769 IFS=$as_save_IFS 11770 test -z "$as_dir" && as_dir=. 11771 for ac_exec_ext in '' $ac_executable_extensions; do 11772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11773 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11775 break 2 11776 fi 11777 done 11778 done 11779 IFS=$as_save_IFS 11780 11781 ;; 11782 esac 11783 fi 11784 XARGS=$ac_cv_path_XARGS 11785 if test -n "$XARGS"; then 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11787 $as_echo "$XARGS" >&6; } 11788 else 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11790 $as_echo "no" >&6; } 11791 fi 11792 11793 11794 test -n "$XARGS" && break 11795 done 11796 11797 else 11798 # The variable is set, but is it from the command line or the environment? 11799 11800 # Try to remove the string !XARGS! from our list. 11801 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11802 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11803 # If it failed, the variable was not from the command line. Ignore it, 11804 # but warn the user (except for BASH, which is always set by the calling BASH). 11805 if test "xXARGS" != xBASH; then 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11807 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11808 fi 11809 # Try to locate tool using the code snippet 11810 for ac_prog in xargs 11811 do 11812 # Extract the first word of "$ac_prog", so it can be a program name with args. 11813 set dummy $ac_prog; ac_word=$2 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11815 $as_echo_n "checking for $ac_word... " >&6; } 11816 if ${ac_cv_path_XARGS+:} false; then : 11817 $as_echo_n "(cached) " >&6 11818 else 11819 case $XARGS in 11820 [\\/]* | ?:[\\/]*) 11821 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11822 ;; 11823 *) 11824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11825 for as_dir in $PATH 11826 do 11827 IFS=$as_save_IFS 11828 test -z "$as_dir" && as_dir=. 11829 for ac_exec_ext in '' $ac_executable_extensions; do 11830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11831 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11833 break 2 11834 fi 11835 done 11836 done 11837 IFS=$as_save_IFS 11838 11839 ;; 11840 esac 11841 fi 11842 XARGS=$ac_cv_path_XARGS 11843 if test -n "$XARGS"; then 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11845 $as_echo "$XARGS" >&6; } 11846 else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11848 $as_echo "no" >&6; } 11849 fi 11850 11851 11852 test -n "$XARGS" && break 11853 done 11854 11855 else 11856 # If it succeeded, then it was overridden by the user. We will use it 11857 # for the tool. 11858 11859 # First remove it from the list of overridden variables, so we can test 11860 # for unknown variables in the end. 11861 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11862 11863 # Check if we try to supply an empty value 11864 if test "x$XARGS" = x; then 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 11866 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11868 $as_echo_n "checking for XARGS... " >&6; } 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11870 $as_echo "disabled" >&6; } 11871 else 11872 # Check if the provided tool contains a complete path. 11873 tool_specified="$XARGS" 11874 tool_basename="${tool_specified##*/}" 11875 if test "x$tool_basename" = "x$tool_specified"; then 11876 # A command without a complete path is provided, search $PATH. 11877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11878 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11879 # Extract the first word of "$tool_basename", so it can be a program name with args. 11880 set dummy $tool_basename; ac_word=$2 11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11882 $as_echo_n "checking for $ac_word... " >&6; } 11883 if ${ac_cv_path_XARGS+:} false; then : 11884 $as_echo_n "(cached) " >&6 11885 else 11886 case $XARGS in 11887 [\\/]* | ?:[\\/]*) 11888 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11889 ;; 11890 *) 11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11892 for as_dir in $PATH 11893 do 11894 IFS=$as_save_IFS 11895 test -z "$as_dir" && as_dir=. 11896 for ac_exec_ext in '' $ac_executable_extensions; do 11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11898 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11900 break 2 11901 fi 11902 done 11903 done 11904 IFS=$as_save_IFS 11905 11906 ;; 11907 esac 11908 fi 11909 XARGS=$ac_cv_path_XARGS 11910 if test -n "$XARGS"; then 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11912 $as_echo "$XARGS" >&6; } 11913 else 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11915 $as_echo "no" >&6; } 11916 fi 11917 11918 11919 if test "x$XARGS" = x; then 11920 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11921 fi 11922 else 11923 # Otherwise we believe it is a complete path. Use it as it is. 11924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11925 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11927 $as_echo_n "checking for XARGS... " >&6; } 11928 if test ! -x "$tool_specified"; then 11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11930 $as_echo "not found" >&6; } 11931 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11932 fi 11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11934 $as_echo "$tool_specified" >&6; } 11935 fi 11936 fi 11937 fi 11938 fi 11939 11940 11941 11942 if test "x$XARGS" = x; then 11943 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11944 fi 11945 11946 11947 11948 # Then required tools that require some special treatment. 11949 11950 11951 # Publish this variable in the help. 11952 11953 11954 if [ -z "${AWK+x}" ]; then 11955 # The variable is not set by user, try to locate tool using the code snippet 11956 for ac_prog in gawk mawk nawk awk 11957 do 11958 # Extract the first word of "$ac_prog", so it can be a program name with args. 11959 set dummy $ac_prog; ac_word=$2 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11961 $as_echo_n "checking for $ac_word... " >&6; } 11962 if ${ac_cv_prog_AWK+:} false; then : 11963 $as_echo_n "(cached) " >&6 11964 else 11965 if test -n "$AWK"; then 11966 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11967 else 11968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11969 for as_dir in $PATH 11970 do 11971 IFS=$as_save_IFS 11972 test -z "$as_dir" && as_dir=. 11973 for ac_exec_ext in '' $ac_executable_extensions; do 11974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11975 ac_cv_prog_AWK="$ac_prog" 11976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11977 break 2 11978 fi 11979 done 11980 done 11981 IFS=$as_save_IFS 11982 11983 fi 11984 fi 11985 AWK=$ac_cv_prog_AWK 11986 if test -n "$AWK"; then 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11988 $as_echo "$AWK" >&6; } 11989 else 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11991 $as_echo "no" >&6; } 11992 fi 11993 11994 11995 test -n "$AWK" && break 11996 done 11997 11998 else 11999 # The variable is set, but is it from the command line or the environment? 12000 12001 # Try to remove the string !AWK! from our list. 12002 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 12003 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12004 # If it failed, the variable was not from the command line. Ignore it, 12005 # but warn the user (except for BASH, which is always set by the calling BASH). 12006 if test "xAWK" != xBASH; then 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 12008 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 12009 fi 12010 # Try to locate tool using the code snippet 12011 for ac_prog in gawk mawk nawk awk 12012 do 12013 # Extract the first word of "$ac_prog", so it can be a program name with args. 12014 set dummy $ac_prog; ac_word=$2 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12016 $as_echo_n "checking for $ac_word... " >&6; } 12017 if ${ac_cv_prog_AWK+:} false; then : 12018 $as_echo_n "(cached) " >&6 12019 else 12020 if test -n "$AWK"; then 12021 ac_cv_prog_AWK="$AWK" # Let the user override the test. 12022 else 12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12024 for as_dir in $PATH 12025 do 12026 IFS=$as_save_IFS 12027 test -z "$as_dir" && as_dir=. 12028 for ac_exec_ext in '' $ac_executable_extensions; do 12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12030 ac_cv_prog_AWK="$ac_prog" 12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12032 break 2 12033 fi 12034 done 12035 done 12036 IFS=$as_save_IFS 12037 12038 fi 12039 fi 12040 AWK=$ac_cv_prog_AWK 12041 if test -n "$AWK"; then 12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12043 $as_echo "$AWK" >&6; } 12044 else 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12046 $as_echo "no" >&6; } 12047 fi 12048 12049 12050 test -n "$AWK" && break 12051 done 12052 12053 else 12054 # If it succeeded, then it was overridden by the user. We will use it 12055 # for the tool. 12056 12057 # First remove it from the list of overridden variables, so we can test 12058 # for unknown variables in the end. 12059 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12060 12061 # Check if we try to supply an empty value 12062 if test "x$AWK" = x; then 12063 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 12064 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12066 $as_echo_n "checking for AWK... " >&6; } 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12068 $as_echo "disabled" >&6; } 12069 else 12070 # Check if the provided tool contains a complete path. 12071 tool_specified="$AWK" 12072 tool_basename="${tool_specified##*/}" 12073 if test "x$tool_basename" = "x$tool_specified"; then 12074 # A command without a complete path is provided, search $PATH. 12075 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 12076 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 12077 # Extract the first word of "$tool_basename", so it can be a program name with args. 12078 set dummy $tool_basename; ac_word=$2 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12080 $as_echo_n "checking for $ac_word... " >&6; } 12081 if ${ac_cv_path_AWK+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083 else 12084 case $AWK in 12085 [\\/]* | ?:[\\/]*) 12086 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 12087 ;; 12088 *) 12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12090 for as_dir in $PATH 12091 do 12092 IFS=$as_save_IFS 12093 test -z "$as_dir" && as_dir=. 12094 for ac_exec_ext in '' $ac_executable_extensions; do 12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12096 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12098 break 2 12099 fi 12100 done 12101 done 12102 IFS=$as_save_IFS 12103 12104 ;; 12105 esac 12106 fi 12107 AWK=$ac_cv_path_AWK 12108 if test -n "$AWK"; then 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 12110 $as_echo "$AWK" >&6; } 12111 else 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12113 $as_echo "no" >&6; } 12114 fi 12115 12116 12117 if test "x$AWK" = x; then 12118 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12119 fi 12120 else 12121 # Otherwise we believe it is a complete path. Use it as it is. 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 12123 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 12125 $as_echo_n "checking for AWK... " >&6; } 12126 if test ! -x "$tool_specified"; then 12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12128 $as_echo "not found" >&6; } 12129 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 12130 fi 12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12132 $as_echo "$tool_specified" >&6; } 12133 fi 12134 fi 12135 fi 12136 fi 12137 12138 12139 if test "x$AWK" = x; then 12140 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 12141 fi 12142 12143 12144 12145 12146 # Publish this variable in the help. 12147 12148 12149 if [ -z "${GREP+x}" ]; then 12150 # The variable is not set by user, try to locate tool using the code snippet 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12152 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12153 if ${ac_cv_path_GREP+:} false; then : 12154 $as_echo_n "(cached) " >&6 12155 else 12156 if test -z "$GREP"; then 12157 ac_path_GREP_found=false 12158 # Loop through the user's path and test for each of PROGNAME-LIST 12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12160 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12161 do 12162 IFS=$as_save_IFS 12163 test -z "$as_dir" && as_dir=. 12164 for ac_prog in grep ggrep; do 12165 for ac_exec_ext in '' $ac_executable_extensions; do 12166 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12167 as_fn_executable_p "$ac_path_GREP" || continue 12168 # Check for GNU ac_path_GREP and select it if it is found. 12169 # Check for GNU $ac_path_GREP 12170 case `"$ac_path_GREP" --version 2>&1` in 12171 *GNU*) 12172 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12173 *) 12174 ac_count=0 12175 $as_echo_n 0123456789 >"conftest.in" 12176 while : 12177 do 12178 cat "conftest.in" "conftest.in" >"conftest.tmp" 12179 mv "conftest.tmp" "conftest.in" 12180 cp "conftest.in" "conftest.nl" 12181 $as_echo 'GREP' >> "conftest.nl" 12182 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12183 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12184 as_fn_arith $ac_count + 1 && ac_count=$as_val 12185 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12186 # Best one so far, save it but keep looking for a better one 12187 ac_cv_path_GREP="$ac_path_GREP" 12188 ac_path_GREP_max=$ac_count 12189 fi 12190 # 10*(2^10) chars as input seems more than enough 12191 test $ac_count -gt 10 && break 12192 done 12193 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12194 esac 12195 12196 $ac_path_GREP_found && break 3 12197 done 12198 done 12199 done 12200 IFS=$as_save_IFS 12201 if test -z "$ac_cv_path_GREP"; then 12202 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12203 fi 12204 else 12205 ac_cv_path_GREP=$GREP 12206 fi 12207 12208 fi 12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12210 $as_echo "$ac_cv_path_GREP" >&6; } 12211 GREP="$ac_cv_path_GREP" 12212 12213 12214 else 12215 # The variable is set, but is it from the command line or the environment? 12216 12217 # Try to remove the string !GREP! from our list. 12218 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 12219 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12220 # If it failed, the variable was not from the command line. Ignore it, 12221 # but warn the user (except for BASH, which is always set by the calling BASH). 12222 if test "xGREP" != xBASH; then 12223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 12224 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 12225 fi 12226 # Try to locate tool using the code snippet 12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 12228 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 12229 if ${ac_cv_path_GREP+:} false; then : 12230 $as_echo_n "(cached) " >&6 12231 else 12232 if test -z "$GREP"; then 12233 ac_path_GREP_found=false 12234 # Loop through the user's path and test for each of PROGNAME-LIST 12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12237 do 12238 IFS=$as_save_IFS 12239 test -z "$as_dir" && as_dir=. 12240 for ac_prog in grep ggrep; do 12241 for ac_exec_ext in '' $ac_executable_extensions; do 12242 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 12243 as_fn_executable_p "$ac_path_GREP" || continue 12244 # Check for GNU ac_path_GREP and select it if it is found. 12245 # Check for GNU $ac_path_GREP 12246 case `"$ac_path_GREP" --version 2>&1` in 12247 *GNU*) 12248 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 12249 *) 12250 ac_count=0 12251 $as_echo_n 0123456789 >"conftest.in" 12252 while : 12253 do 12254 cat "conftest.in" "conftest.in" >"conftest.tmp" 12255 mv "conftest.tmp" "conftest.in" 12256 cp "conftest.in" "conftest.nl" 12257 $as_echo 'GREP' >> "conftest.nl" 12258 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12260 as_fn_arith $ac_count + 1 && ac_count=$as_val 12261 if test $ac_count -gt ${ac_path_GREP_max-0}; then 12262 # Best one so far, save it but keep looking for a better one 12263 ac_cv_path_GREP="$ac_path_GREP" 12264 ac_path_GREP_max=$ac_count 12265 fi 12266 # 10*(2^10) chars as input seems more than enough 12267 test $ac_count -gt 10 && break 12268 done 12269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12270 esac 12271 12272 $ac_path_GREP_found && break 3 12273 done 12274 done 12275 done 12276 IFS=$as_save_IFS 12277 if test -z "$ac_cv_path_GREP"; then 12278 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12279 fi 12280 else 12281 ac_cv_path_GREP=$GREP 12282 fi 12283 12284 fi 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 12286 $as_echo "$ac_cv_path_GREP" >&6; } 12287 GREP="$ac_cv_path_GREP" 12288 12289 12290 else 12291 # If it succeeded, then it was overridden by the user. We will use it 12292 # for the tool. 12293 12294 # First remove it from the list of overridden variables, so we can test 12295 # for unknown variables in the end. 12296 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12297 12298 # Check if we try to supply an empty value 12299 if test "x$GREP" = x; then 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 12301 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 12303 $as_echo_n "checking for GREP... " >&6; } 12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12305 $as_echo "disabled" >&6; } 12306 else 12307 # Check if the provided tool contains a complete path. 12308 tool_specified="$GREP" 12309 tool_basename="${tool_specified##*/}" 12310 if test "x$tool_basename" = "x$tool_specified"; then 12311 # A command without a complete path is provided, search $PATH. 12312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 12313 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 12314 # Extract the first word of "$tool_basename", so it can be a program name with args. 12315 set dummy $tool_basename; ac_word=$2 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12317 $as_echo_n "checking for $ac_word... " >&6; } 12318 if ${ac_cv_path_GREP+:} false; then : 12319 $as_echo_n "(cached) " >&6 12320 else 12321 case $GREP in 12322 [\\/]* | ?:[\\/]*) 12323 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 12324 ;; 12325 *) 12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12327 for as_dir in $PATH 12328 do 12329 IFS=$as_save_IFS 12330 test -z "$as_dir" && as_dir=. 12331 for ac_exec_ext in '' $ac_executable_extensions; do 12332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12333 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12335 break 2 12336 fi 12337 done 12338 done 12339 IFS=$as_save_IFS 12340 12341 ;; 12342 esac 12343 fi 12344 GREP=$ac_cv_path_GREP 12345 if test -n "$GREP"; then 12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 12347 $as_echo "$GREP" >&6; } 12348 else 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12350 $as_echo "no" >&6; } 12351 fi 12352 12353 12354 if test "x$GREP" = x; then 12355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12356 fi 12357 else 12358 # Otherwise we believe it is a complete path. Use it as it is. 12359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 12360 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 12362 $as_echo_n "checking for GREP... " >&6; } 12363 if test ! -x "$tool_specified"; then 12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12365 $as_echo "not found" >&6; } 12366 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12367 fi 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12369 $as_echo "$tool_specified" >&6; } 12370 fi 12371 fi 12372 fi 12373 fi 12374 12375 12376 if test "x$GREP" = x; then 12377 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 12378 fi 12379 12380 12381 12382 12383 # Publish this variable in the help. 12384 12385 12386 if [ -z "${EGREP+x}" ]; then 12387 # The variable is not set by user, try to locate tool using the code snippet 12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 12389 $as_echo_n "checking for egrep... " >&6; } 12390 if ${ac_cv_path_EGREP+:} false; then : 12391 $as_echo_n "(cached) " >&6 12392 else 12393 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12394 then ac_cv_path_EGREP="$GREP -E" 12395 else 12396 if test -z "$EGREP"; then 12397 ac_path_EGREP_found=false 12398 # Loop through the user's path and test for each of PROGNAME-LIST 12399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12400 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12401 do 12402 IFS=$as_save_IFS 12403 test -z "$as_dir" && as_dir=. 12404 for ac_prog in egrep; do 12405 for ac_exec_ext in '' $ac_executable_extensions; do 12406 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 12407 as_fn_executable_p "$ac_path_EGREP" || continue 12408 # Check for GNU ac_path_EGREP and select it if it is found. 12409 # Check for GNU $ac_path_EGREP 12410 case `"$ac_path_EGREP" --version 2>&1` in 12411 *GNU*) 12412 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 12413 *) 12414 ac_count=0 12415 $as_echo_n 0123456789 >"conftest.in" 12416 while : 12417 do 12418 cat "conftest.in" "conftest.in" >"conftest.tmp" 12419 mv "conftest.tmp" "conftest.in" 12420 cp "conftest.in" "conftest.nl" 12421 $as_echo 'EGREP' >> "conftest.nl" 12422 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12423 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12424 as_fn_arith $ac_count + 1 && ac_count=$as_val 12425 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12426 # Best one so far, save it but keep looking for a better one 12427 ac_cv_path_EGREP="$ac_path_EGREP" 12428 ac_path_EGREP_max=$ac_count 12429 fi 12430 # 10*(2^10) chars as input seems more than enough 12431 test $ac_count -gt 10 && break 12432 done 12433 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12434 esac 12435 12436 $ac_path_EGREP_found && break 3 12437 done 12438 done 12439 done 12440 IFS=$as_save_IFS 12441 if test -z "$ac_cv_path_EGREP"; then 12442 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12443 fi 12444 else 12445 ac_cv_path_EGREP=$EGREP 12446 fi 12447 12448 fi 12449 fi 12450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12451 $as_echo "$ac_cv_path_EGREP" >&6; } 12452 EGREP="$ac_cv_path_EGREP" 12453 12454 12455 else 12456 # The variable is set, but is it from the command line or the environment? 12457 12458 # Try to remove the string !EGREP! from our list. 12459 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 12460 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12461 # If it failed, the variable was not from the command line. Ignore it, 12462 # but warn the user (except for BASH, which is always set by the calling BASH). 12463 if test "xEGREP" != xBASH; then 12464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 12465 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 12466 fi 12467 # Try to locate tool using the code snippet 12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 12469 $as_echo_n "checking for egrep... " >&6; } 12470 if ${ac_cv_path_EGREP+:} false; then : 12471 $as_echo_n "(cached) " >&6 12472 else 12473 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 12474 then ac_cv_path_EGREP="$GREP -E" 12475 else 12476 if test -z "$EGREP"; then 12477 ac_path_EGREP_found=false 12478 # Loop through the user's path and test for each of PROGNAME-LIST 12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12480 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12481 do 12482 IFS=$as_save_IFS 12483 test -z "$as_dir" && as_dir=. 12484 for ac_prog in egrep; do 12485 for ac_exec_ext in '' $ac_executable_extensions; do 12486 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 12487 as_fn_executable_p "$ac_path_EGREP" || continue 12488 # Check for GNU ac_path_EGREP and select it if it is found. 12489 # Check for GNU $ac_path_EGREP 12490 case `"$ac_path_EGREP" --version 2>&1` in 12491 *GNU*) 12492 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 12493 *) 12494 ac_count=0 12495 $as_echo_n 0123456789 >"conftest.in" 12496 while : 12497 do 12498 cat "conftest.in" "conftest.in" >"conftest.tmp" 12499 mv "conftest.tmp" "conftest.in" 12500 cp "conftest.in" "conftest.nl" 12501 $as_echo 'EGREP' >> "conftest.nl" 12502 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 12503 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12504 as_fn_arith $ac_count + 1 && ac_count=$as_val 12505 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 12506 # Best one so far, save it but keep looking for a better one 12507 ac_cv_path_EGREP="$ac_path_EGREP" 12508 ac_path_EGREP_max=$ac_count 12509 fi 12510 # 10*(2^10) chars as input seems more than enough 12511 test $ac_count -gt 10 && break 12512 done 12513 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12514 esac 12515 12516 $ac_path_EGREP_found && break 3 12517 done 12518 done 12519 done 12520 IFS=$as_save_IFS 12521 if test -z "$ac_cv_path_EGREP"; then 12522 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12523 fi 12524 else 12525 ac_cv_path_EGREP=$EGREP 12526 fi 12527 12528 fi 12529 fi 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 12531 $as_echo "$ac_cv_path_EGREP" >&6; } 12532 EGREP="$ac_cv_path_EGREP" 12533 12534 12535 else 12536 # If it succeeded, then it was overridden by the user. We will use it 12537 # for the tool. 12538 12539 # First remove it from the list of overridden variables, so we can test 12540 # for unknown variables in the end. 12541 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12542 12543 # Check if we try to supply an empty value 12544 if test "x$EGREP" = x; then 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 12546 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12548 $as_echo_n "checking for EGREP... " >&6; } 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12550 $as_echo "disabled" >&6; } 12551 else 12552 # Check if the provided tool contains a complete path. 12553 tool_specified="$EGREP" 12554 tool_basename="${tool_specified##*/}" 12555 if test "x$tool_basename" = "x$tool_specified"; then 12556 # A command without a complete path is provided, search $PATH. 12557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12558 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12559 # Extract the first word of "$tool_basename", so it can be a program name with args. 12560 set dummy $tool_basename; ac_word=$2 12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12562 $as_echo_n "checking for $ac_word... " >&6; } 12563 if ${ac_cv_path_EGREP+:} false; then : 12564 $as_echo_n "(cached) " >&6 12565 else 12566 case $EGREP in 12567 [\\/]* | ?:[\\/]*) 12568 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12569 ;; 12570 *) 12571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12572 for as_dir in $PATH 12573 do 12574 IFS=$as_save_IFS 12575 test -z "$as_dir" && as_dir=. 12576 for ac_exec_ext in '' $ac_executable_extensions; do 12577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12578 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12580 break 2 12581 fi 12582 done 12583 done 12584 IFS=$as_save_IFS 12585 12586 ;; 12587 esac 12588 fi 12589 EGREP=$ac_cv_path_EGREP 12590 if test -n "$EGREP"; then 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12592 $as_echo "$EGREP" >&6; } 12593 else 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12595 $as_echo "no" >&6; } 12596 fi 12597 12598 12599 if test "x$EGREP" = x; then 12600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12601 fi 12602 else 12603 # Otherwise we believe it is a complete path. Use it as it is. 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12605 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12607 $as_echo_n "checking for EGREP... " >&6; } 12608 if test ! -x "$tool_specified"; then 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12610 $as_echo "not found" >&6; } 12611 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12612 fi 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12614 $as_echo "$tool_specified" >&6; } 12615 fi 12616 fi 12617 fi 12618 fi 12619 12620 12621 if test "x$EGREP" = x; then 12622 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12623 fi 12624 12625 12626 12627 12628 # Publish this variable in the help. 12629 12630 12631 if [ -z "${FGREP+x}" ]; then 12632 # The variable is not set by user, try to locate tool using the code snippet 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12634 $as_echo_n "checking for fgrep... " >&6; } 12635 if ${ac_cv_path_FGREP+:} false; then : 12636 $as_echo_n "(cached) " >&6 12637 else 12638 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12639 then ac_cv_path_FGREP="$GREP -F" 12640 else 12641 if test -z "$FGREP"; then 12642 ac_path_FGREP_found=false 12643 # Loop through the user's path and test for each of PROGNAME-LIST 12644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12645 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12646 do 12647 IFS=$as_save_IFS 12648 test -z "$as_dir" && as_dir=. 12649 for ac_prog in fgrep; do 12650 for ac_exec_ext in '' $ac_executable_extensions; do 12651 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12652 as_fn_executable_p "$ac_path_FGREP" || continue 12653 # Check for GNU ac_path_FGREP and select it if it is found. 12654 # Check for GNU $ac_path_FGREP 12655 case `"$ac_path_FGREP" --version 2>&1` in 12656 *GNU*) 12657 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12658 *) 12659 ac_count=0 12660 $as_echo_n 0123456789 >"conftest.in" 12661 while : 12662 do 12663 cat "conftest.in" "conftest.in" >"conftest.tmp" 12664 mv "conftest.tmp" "conftest.in" 12665 cp "conftest.in" "conftest.nl" 12666 $as_echo 'FGREP' >> "conftest.nl" 12667 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12668 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12669 as_fn_arith $ac_count + 1 && ac_count=$as_val 12670 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12671 # Best one so far, save it but keep looking for a better one 12672 ac_cv_path_FGREP="$ac_path_FGREP" 12673 ac_path_FGREP_max=$ac_count 12674 fi 12675 # 10*(2^10) chars as input seems more than enough 12676 test $ac_count -gt 10 && break 12677 done 12678 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12679 esac 12680 12681 $ac_path_FGREP_found && break 3 12682 done 12683 done 12684 done 12685 IFS=$as_save_IFS 12686 if test -z "$ac_cv_path_FGREP"; then 12687 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12688 fi 12689 else 12690 ac_cv_path_FGREP=$FGREP 12691 fi 12692 12693 fi 12694 fi 12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12696 $as_echo "$ac_cv_path_FGREP" >&6; } 12697 FGREP="$ac_cv_path_FGREP" 12698 12699 12700 else 12701 # The variable is set, but is it from the command line or the environment? 12702 12703 # Try to remove the string !FGREP! from our list. 12704 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12705 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12706 # If it failed, the variable was not from the command line. Ignore it, 12707 # but warn the user (except for BASH, which is always set by the calling BASH). 12708 if test "xFGREP" != xBASH; then 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12710 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12711 fi 12712 # Try to locate tool using the code snippet 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12714 $as_echo_n "checking for fgrep... " >&6; } 12715 if ${ac_cv_path_FGREP+:} false; then : 12716 $as_echo_n "(cached) " >&6 12717 else 12718 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12719 then ac_cv_path_FGREP="$GREP -F" 12720 else 12721 if test -z "$FGREP"; then 12722 ac_path_FGREP_found=false 12723 # Loop through the user's path and test for each of PROGNAME-LIST 12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12725 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12726 do 12727 IFS=$as_save_IFS 12728 test -z "$as_dir" && as_dir=. 12729 for ac_prog in fgrep; do 12730 for ac_exec_ext in '' $ac_executable_extensions; do 12731 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12732 as_fn_executable_p "$ac_path_FGREP" || continue 12733 # Check for GNU ac_path_FGREP and select it if it is found. 12734 # Check for GNU $ac_path_FGREP 12735 case `"$ac_path_FGREP" --version 2>&1` in 12736 *GNU*) 12737 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12738 *) 12739 ac_count=0 12740 $as_echo_n 0123456789 >"conftest.in" 12741 while : 12742 do 12743 cat "conftest.in" "conftest.in" >"conftest.tmp" 12744 mv "conftest.tmp" "conftest.in" 12745 cp "conftest.in" "conftest.nl" 12746 $as_echo 'FGREP' >> "conftest.nl" 12747 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12748 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12749 as_fn_arith $ac_count + 1 && ac_count=$as_val 12750 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12751 # Best one so far, save it but keep looking for a better one 12752 ac_cv_path_FGREP="$ac_path_FGREP" 12753 ac_path_FGREP_max=$ac_count 12754 fi 12755 # 10*(2^10) chars as input seems more than enough 12756 test $ac_count -gt 10 && break 12757 done 12758 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12759 esac 12760 12761 $ac_path_FGREP_found && break 3 12762 done 12763 done 12764 done 12765 IFS=$as_save_IFS 12766 if test -z "$ac_cv_path_FGREP"; then 12767 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12768 fi 12769 else 12770 ac_cv_path_FGREP=$FGREP 12771 fi 12772 12773 fi 12774 fi 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12776 $as_echo "$ac_cv_path_FGREP" >&6; } 12777 FGREP="$ac_cv_path_FGREP" 12778 12779 12780 else 12781 # If it succeeded, then it was overridden by the user. We will use it 12782 # for the tool. 12783 12784 # First remove it from the list of overridden variables, so we can test 12785 # for unknown variables in the end. 12786 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12787 12788 # Check if we try to supply an empty value 12789 if test "x$FGREP" = x; then 12790 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 12791 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12793 $as_echo_n "checking for FGREP... " >&6; } 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12795 $as_echo "disabled" >&6; } 12796 else 12797 # Check if the provided tool contains a complete path. 12798 tool_specified="$FGREP" 12799 tool_basename="${tool_specified##*/}" 12800 if test "x$tool_basename" = "x$tool_specified"; then 12801 # A command without a complete path is provided, search $PATH. 12802 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12803 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12804 # Extract the first word of "$tool_basename", so it can be a program name with args. 12805 set dummy $tool_basename; ac_word=$2 12806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12807 $as_echo_n "checking for $ac_word... " >&6; } 12808 if ${ac_cv_path_FGREP+:} false; then : 12809 $as_echo_n "(cached) " >&6 12810 else 12811 case $FGREP in 12812 [\\/]* | ?:[\\/]*) 12813 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12814 ;; 12815 *) 12816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12817 for as_dir in $PATH 12818 do 12819 IFS=$as_save_IFS 12820 test -z "$as_dir" && as_dir=. 12821 for ac_exec_ext in '' $ac_executable_extensions; do 12822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12823 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12825 break 2 12826 fi 12827 done 12828 done 12829 IFS=$as_save_IFS 12830 12831 ;; 12832 esac 12833 fi 12834 FGREP=$ac_cv_path_FGREP 12835 if test -n "$FGREP"; then 12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12837 $as_echo "$FGREP" >&6; } 12838 else 12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12840 $as_echo "no" >&6; } 12841 fi 12842 12843 12844 if test "x$FGREP" = x; then 12845 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12846 fi 12847 else 12848 # Otherwise we believe it is a complete path. Use it as it is. 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12850 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12852 $as_echo_n "checking for FGREP... " >&6; } 12853 if test ! -x "$tool_specified"; then 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12855 $as_echo "not found" >&6; } 12856 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12857 fi 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12859 $as_echo "$tool_specified" >&6; } 12860 fi 12861 fi 12862 fi 12863 fi 12864 12865 12866 if test "x$FGREP" = x; then 12867 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12868 fi 12869 12870 12871 12872 12873 # Publish this variable in the help. 12874 12875 12876 if [ -z "${SED+x}" ]; then 12877 # The variable is not set by user, try to locate tool using the code snippet 12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12879 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12880 if ${ac_cv_path_SED+:} false; then : 12881 $as_echo_n "(cached) " >&6 12882 else 12883 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12884 for ac_i in 1 2 3 4 5 6 7; do 12885 ac_script="$ac_script$as_nl$ac_script" 12886 done 12887 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12888 { ac_script=; unset ac_script;} 12889 if test -z "$SED"; then 12890 ac_path_SED_found=false 12891 # Loop through the user's path and test for each of PROGNAME-LIST 12892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12893 for as_dir in $PATH 12894 do 12895 IFS=$as_save_IFS 12896 test -z "$as_dir" && as_dir=. 12897 for ac_prog in sed gsed; do 12898 for ac_exec_ext in '' $ac_executable_extensions; do 12899 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12900 as_fn_executable_p "$ac_path_SED" || continue 12901 # Check for GNU ac_path_SED and select it if it is found. 12902 # Check for GNU $ac_path_SED 12903 case `"$ac_path_SED" --version 2>&1` in 12904 *GNU*) 12905 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12906 *) 12907 ac_count=0 12908 $as_echo_n 0123456789 >"conftest.in" 12909 while : 12910 do 12911 cat "conftest.in" "conftest.in" >"conftest.tmp" 12912 mv "conftest.tmp" "conftest.in" 12913 cp "conftest.in" "conftest.nl" 12914 $as_echo '' >> "conftest.nl" 12915 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12916 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12917 as_fn_arith $ac_count + 1 && ac_count=$as_val 12918 if test $ac_count -gt ${ac_path_SED_max-0}; then 12919 # Best one so far, save it but keep looking for a better one 12920 ac_cv_path_SED="$ac_path_SED" 12921 ac_path_SED_max=$ac_count 12922 fi 12923 # 10*(2^10) chars as input seems more than enough 12924 test $ac_count -gt 10 && break 12925 done 12926 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12927 esac 12928 12929 $ac_path_SED_found && break 3 12930 done 12931 done 12932 done 12933 IFS=$as_save_IFS 12934 if test -z "$ac_cv_path_SED"; then 12935 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12936 fi 12937 else 12938 ac_cv_path_SED=$SED 12939 fi 12940 12941 fi 12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12943 $as_echo "$ac_cv_path_SED" >&6; } 12944 SED="$ac_cv_path_SED" 12945 rm -f conftest.sed 12946 12947 else 12948 # The variable is set, but is it from the command line or the environment? 12949 12950 # Try to remove the string !SED! from our list. 12951 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12952 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12953 # If it failed, the variable was not from the command line. Ignore it, 12954 # but warn the user (except for BASH, which is always set by the calling BASH). 12955 if test "xSED" != xBASH; then 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12957 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12958 fi 12959 # Try to locate tool using the code snippet 12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12961 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12962 if ${ac_cv_path_SED+:} false; then : 12963 $as_echo_n "(cached) " >&6 12964 else 12965 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12966 for ac_i in 1 2 3 4 5 6 7; do 12967 ac_script="$ac_script$as_nl$ac_script" 12968 done 12969 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12970 { ac_script=; unset ac_script;} 12971 if test -z "$SED"; then 12972 ac_path_SED_found=false 12973 # Loop through the user's path and test for each of PROGNAME-LIST 12974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12975 for as_dir in $PATH 12976 do 12977 IFS=$as_save_IFS 12978 test -z "$as_dir" && as_dir=. 12979 for ac_prog in sed gsed; do 12980 for ac_exec_ext in '' $ac_executable_extensions; do 12981 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12982 as_fn_executable_p "$ac_path_SED" || continue 12983 # Check for GNU ac_path_SED and select it if it is found. 12984 # Check for GNU $ac_path_SED 12985 case `"$ac_path_SED" --version 2>&1` in 12986 *GNU*) 12987 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12988 *) 12989 ac_count=0 12990 $as_echo_n 0123456789 >"conftest.in" 12991 while : 12992 do 12993 cat "conftest.in" "conftest.in" >"conftest.tmp" 12994 mv "conftest.tmp" "conftest.in" 12995 cp "conftest.in" "conftest.nl" 12996 $as_echo '' >> "conftest.nl" 12997 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12999 as_fn_arith $ac_count + 1 && ac_count=$as_val 13000 if test $ac_count -gt ${ac_path_SED_max-0}; then 13001 # Best one so far, save it but keep looking for a better one 13002 ac_cv_path_SED="$ac_path_SED" 13003 ac_path_SED_max=$ac_count 13004 fi 13005 # 10*(2^10) chars as input seems more than enough 13006 test $ac_count -gt 10 && break 13007 done 13008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13009 esac 13010 13011 $ac_path_SED_found && break 3 13012 done 13013 done 13014 done 13015 IFS=$as_save_IFS 13016 if test -z "$ac_cv_path_SED"; then 13017 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 13018 fi 13019 else 13020 ac_cv_path_SED=$SED 13021 fi 13022 13023 fi 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 13025 $as_echo "$ac_cv_path_SED" >&6; } 13026 SED="$ac_cv_path_SED" 13027 rm -f conftest.sed 13028 13029 else 13030 # If it succeeded, then it was overridden by the user. We will use it 13031 # for the tool. 13032 13033 # First remove it from the list of overridden variables, so we can test 13034 # for unknown variables in the end. 13035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13036 13037 # Check if we try to supply an empty value 13038 if test "x$SED" = x; then 13039 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 13040 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13042 $as_echo_n "checking for SED... " >&6; } 13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13044 $as_echo "disabled" >&6; } 13045 else 13046 # Check if the provided tool contains a complete path. 13047 tool_specified="$SED" 13048 tool_basename="${tool_specified##*/}" 13049 if test "x$tool_basename" = "x$tool_specified"; then 13050 # A command without a complete path is provided, search $PATH. 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 13052 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 13053 # Extract the first word of "$tool_basename", so it can be a program name with args. 13054 set dummy $tool_basename; ac_word=$2 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13056 $as_echo_n "checking for $ac_word... " >&6; } 13057 if ${ac_cv_path_SED+:} false; then : 13058 $as_echo_n "(cached) " >&6 13059 else 13060 case $SED in 13061 [\\/]* | ?:[\\/]*) 13062 ac_cv_path_SED="$SED" # Let the user override the test with a path. 13063 ;; 13064 *) 13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13066 for as_dir in $PATH 13067 do 13068 IFS=$as_save_IFS 13069 test -z "$as_dir" && as_dir=. 13070 for ac_exec_ext in '' $ac_executable_extensions; do 13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13072 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13074 break 2 13075 fi 13076 done 13077 done 13078 IFS=$as_save_IFS 13079 13080 ;; 13081 esac 13082 fi 13083 SED=$ac_cv_path_SED 13084 if test -n "$SED"; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 13086 $as_echo "$SED" >&6; } 13087 else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13089 $as_echo "no" >&6; } 13090 fi 13091 13092 13093 if test "x$SED" = x; then 13094 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13095 fi 13096 else 13097 # Otherwise we believe it is a complete path. Use it as it is. 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 13099 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 13101 $as_echo_n "checking for SED... " >&6; } 13102 if test ! -x "$tool_specified"; then 13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13104 $as_echo "not found" >&6; } 13105 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 13106 fi 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13108 $as_echo "$tool_specified" >&6; } 13109 fi 13110 fi 13111 fi 13112 fi 13113 13114 13115 if test "x$SED" = x; then 13116 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 13117 fi 13118 13119 13120 13121 # Always force rm. 13122 RM="$RM -f" 13123 13124 # pwd behaves differently on various platforms and some don't support the -L flag. 13125 # Always use the bash builtin pwd to get uniform behavior. 13126 THEPWDCMD=pwd 13127 13128 # These are not required on all platforms 13129 13130 13131 # Publish this variable in the help. 13132 13133 13134 if [ -z "${CYGPATH+x}" ]; then 13135 # The variable is not set by user, try to locate tool using the code snippet 13136 for ac_prog in cygpath 13137 do 13138 # Extract the first word of "$ac_prog", so it can be a program name with args. 13139 set dummy $ac_prog; ac_word=$2 13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13141 $as_echo_n "checking for $ac_word... " >&6; } 13142 if ${ac_cv_path_CYGPATH+:} false; then : 13143 $as_echo_n "(cached) " >&6 13144 else 13145 case $CYGPATH in 13146 [\\/]* | ?:[\\/]*) 13147 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13148 ;; 13149 *) 13150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13151 for as_dir in $PATH 13152 do 13153 IFS=$as_save_IFS 13154 test -z "$as_dir" && as_dir=. 13155 for ac_exec_ext in '' $ac_executable_extensions; do 13156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13157 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13159 break 2 13160 fi 13161 done 13162 done 13163 IFS=$as_save_IFS 13164 13165 ;; 13166 esac 13167 fi 13168 CYGPATH=$ac_cv_path_CYGPATH 13169 if test -n "$CYGPATH"; then 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13171 $as_echo "$CYGPATH" >&6; } 13172 else 13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13174 $as_echo "no" >&6; } 13175 fi 13176 13177 13178 test -n "$CYGPATH" && break 13179 done 13180 13181 else 13182 # The variable is set, but is it from the command line or the environment? 13183 13184 # Try to remove the string !CYGPATH! from our list. 13185 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 13186 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13187 # If it failed, the variable was not from the command line. Ignore it, 13188 # but warn the user (except for BASH, which is always set by the calling BASH). 13189 if test "xCYGPATH" != xBASH; then 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 13191 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 13192 fi 13193 # Try to locate tool using the code snippet 13194 for ac_prog in cygpath 13195 do 13196 # Extract the first word of "$ac_prog", so it can be a program name with args. 13197 set dummy $ac_prog; ac_word=$2 13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13199 $as_echo_n "checking for $ac_word... " >&6; } 13200 if ${ac_cv_path_CYGPATH+:} false; then : 13201 $as_echo_n "(cached) " >&6 13202 else 13203 case $CYGPATH in 13204 [\\/]* | ?:[\\/]*) 13205 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13206 ;; 13207 *) 13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13209 for as_dir in $PATH 13210 do 13211 IFS=$as_save_IFS 13212 test -z "$as_dir" && as_dir=. 13213 for ac_exec_ext in '' $ac_executable_extensions; do 13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13215 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13217 break 2 13218 fi 13219 done 13220 done 13221 IFS=$as_save_IFS 13222 13223 ;; 13224 esac 13225 fi 13226 CYGPATH=$ac_cv_path_CYGPATH 13227 if test -n "$CYGPATH"; then 13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13229 $as_echo "$CYGPATH" >&6; } 13230 else 13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13232 $as_echo "no" >&6; } 13233 fi 13234 13235 13236 test -n "$CYGPATH" && break 13237 done 13238 13239 else 13240 # If it succeeded, then it was overridden by the user. We will use it 13241 # for the tool. 13242 13243 # First remove it from the list of overridden variables, so we can test 13244 # for unknown variables in the end. 13245 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13246 13247 # Check if we try to supply an empty value 13248 if test "x$CYGPATH" = x; then 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 13250 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13252 $as_echo_n "checking for CYGPATH... " >&6; } 13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13254 $as_echo "disabled" >&6; } 13255 else 13256 # Check if the provided tool contains a complete path. 13257 tool_specified="$CYGPATH" 13258 tool_basename="${tool_specified##*/}" 13259 if test "x$tool_basename" = "x$tool_specified"; then 13260 # A command without a complete path is provided, search $PATH. 13261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 13262 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 13263 # Extract the first word of "$tool_basename", so it can be a program name with args. 13264 set dummy $tool_basename; ac_word=$2 13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13266 $as_echo_n "checking for $ac_word... " >&6; } 13267 if ${ac_cv_path_CYGPATH+:} false; then : 13268 $as_echo_n "(cached) " >&6 13269 else 13270 case $CYGPATH in 13271 [\\/]* | ?:[\\/]*) 13272 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 13273 ;; 13274 *) 13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13276 for as_dir in $PATH 13277 do 13278 IFS=$as_save_IFS 13279 test -z "$as_dir" && as_dir=. 13280 for ac_exec_ext in '' $ac_executable_extensions; do 13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13282 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 13283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13284 break 2 13285 fi 13286 done 13287 done 13288 IFS=$as_save_IFS 13289 13290 ;; 13291 esac 13292 fi 13293 CYGPATH=$ac_cv_path_CYGPATH 13294 if test -n "$CYGPATH"; then 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 13296 $as_echo "$CYGPATH" >&6; } 13297 else 13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13299 $as_echo "no" >&6; } 13300 fi 13301 13302 13303 if test "x$CYGPATH" = x; then 13304 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13305 fi 13306 else 13307 # Otherwise we believe it is a complete path. Use it as it is. 13308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 13309 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 13311 $as_echo_n "checking for CYGPATH... " >&6; } 13312 if test ! -x "$tool_specified"; then 13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13314 $as_echo "not found" >&6; } 13315 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 13316 fi 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13318 $as_echo "$tool_specified" >&6; } 13319 fi 13320 fi 13321 fi 13322 fi 13323 13324 13325 13326 13327 # Publish this variable in the help. 13328 13329 13330 if [ -z "${READLINK+x}" ]; then 13331 # The variable is not set by user, try to locate tool using the code snippet 13332 for ac_prog in greadlink readlink 13333 do 13334 # Extract the first word of "$ac_prog", so it can be a program name with args. 13335 set dummy $ac_prog; ac_word=$2 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13337 $as_echo_n "checking for $ac_word... " >&6; } 13338 if ${ac_cv_path_READLINK+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340 else 13341 case $READLINK in 13342 [\\/]* | ?:[\\/]*) 13343 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13344 ;; 13345 *) 13346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13347 for as_dir in $PATH 13348 do 13349 IFS=$as_save_IFS 13350 test -z "$as_dir" && as_dir=. 13351 for ac_exec_ext in '' $ac_executable_extensions; do 13352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13353 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13355 break 2 13356 fi 13357 done 13358 done 13359 IFS=$as_save_IFS 13360 13361 ;; 13362 esac 13363 fi 13364 READLINK=$ac_cv_path_READLINK 13365 if test -n "$READLINK"; then 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13367 $as_echo "$READLINK" >&6; } 13368 else 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13370 $as_echo "no" >&6; } 13371 fi 13372 13373 13374 test -n "$READLINK" && break 13375 done 13376 13377 else 13378 # The variable is set, but is it from the command line or the environment? 13379 13380 # Try to remove the string !READLINK! from our list. 13381 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 13382 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13383 # If it failed, the variable was not from the command line. Ignore it, 13384 # but warn the user (except for BASH, which is always set by the calling BASH). 13385 if test "xREADLINK" != xBASH; then 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 13387 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 13388 fi 13389 # Try to locate tool using the code snippet 13390 for ac_prog in greadlink readlink 13391 do 13392 # Extract the first word of "$ac_prog", so it can be a program name with args. 13393 set dummy $ac_prog; ac_word=$2 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13395 $as_echo_n "checking for $ac_word... " >&6; } 13396 if ${ac_cv_path_READLINK+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398 else 13399 case $READLINK in 13400 [\\/]* | ?:[\\/]*) 13401 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13402 ;; 13403 *) 13404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13405 for as_dir in $PATH 13406 do 13407 IFS=$as_save_IFS 13408 test -z "$as_dir" && as_dir=. 13409 for ac_exec_ext in '' $ac_executable_extensions; do 13410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13411 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13413 break 2 13414 fi 13415 done 13416 done 13417 IFS=$as_save_IFS 13418 13419 ;; 13420 esac 13421 fi 13422 READLINK=$ac_cv_path_READLINK 13423 if test -n "$READLINK"; then 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13425 $as_echo "$READLINK" >&6; } 13426 else 13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13428 $as_echo "no" >&6; } 13429 fi 13430 13431 13432 test -n "$READLINK" && break 13433 done 13434 13435 else 13436 # If it succeeded, then it was overridden by the user. We will use it 13437 # for the tool. 13438 13439 # First remove it from the list of overridden variables, so we can test 13440 # for unknown variables in the end. 13441 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13442 13443 # Check if we try to supply an empty value 13444 if test "x$READLINK" = x; then 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 13446 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 13448 $as_echo_n "checking for READLINK... " >&6; } 13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13450 $as_echo "disabled" >&6; } 13451 else 13452 # Check if the provided tool contains a complete path. 13453 tool_specified="$READLINK" 13454 tool_basename="${tool_specified##*/}" 13455 if test "x$tool_basename" = "x$tool_specified"; then 13456 # A command without a complete path is provided, search $PATH. 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 13458 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 13459 # Extract the first word of "$tool_basename", so it can be a program name with args. 13460 set dummy $tool_basename; ac_word=$2 13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13462 $as_echo_n "checking for $ac_word... " >&6; } 13463 if ${ac_cv_path_READLINK+:} false; then : 13464 $as_echo_n "(cached) " >&6 13465 else 13466 case $READLINK in 13467 [\\/]* | ?:[\\/]*) 13468 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 13469 ;; 13470 *) 13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13472 for as_dir in $PATH 13473 do 13474 IFS=$as_save_IFS 13475 test -z "$as_dir" && as_dir=. 13476 for ac_exec_ext in '' $ac_executable_extensions; do 13477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13478 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13480 break 2 13481 fi 13482 done 13483 done 13484 IFS=$as_save_IFS 13485 13486 ;; 13487 esac 13488 fi 13489 READLINK=$ac_cv_path_READLINK 13490 if test -n "$READLINK"; then 13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 13492 $as_echo "$READLINK" >&6; } 13493 else 13494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13495 $as_echo "no" >&6; } 13496 fi 13497 13498 13499 if test "x$READLINK" = x; then 13500 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13501 fi 13502 else 13503 # Otherwise we believe it is a complete path. Use it as it is. 13504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 13505 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 13507 $as_echo_n "checking for READLINK... " >&6; } 13508 if test ! -x "$tool_specified"; then 13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13510 $as_echo "not found" >&6; } 13511 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 13512 fi 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13514 $as_echo "$tool_specified" >&6; } 13515 fi 13516 fi 13517 fi 13518 fi 13519 13520 13521 13522 13523 # Publish this variable in the help. 13524 13525 13526 if [ -z "${DF+x}" ]; then 13527 # The variable is not set by user, try to locate tool using the code snippet 13528 for ac_prog in df 13529 do 13530 # Extract the first word of "$ac_prog", so it can be a program name with args. 13531 set dummy $ac_prog; ac_word=$2 13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13533 $as_echo_n "checking for $ac_word... " >&6; } 13534 if ${ac_cv_path_DF+:} false; then : 13535 $as_echo_n "(cached) " >&6 13536 else 13537 case $DF in 13538 [\\/]* | ?:[\\/]*) 13539 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13540 ;; 13541 *) 13542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13543 for as_dir in $PATH 13544 do 13545 IFS=$as_save_IFS 13546 test -z "$as_dir" && as_dir=. 13547 for ac_exec_ext in '' $ac_executable_extensions; do 13548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13549 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13551 break 2 13552 fi 13553 done 13554 done 13555 IFS=$as_save_IFS 13556 13557 ;; 13558 esac 13559 fi 13560 DF=$ac_cv_path_DF 13561 if test -n "$DF"; then 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13563 $as_echo "$DF" >&6; } 13564 else 13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13566 $as_echo "no" >&6; } 13567 fi 13568 13569 13570 test -n "$DF" && break 13571 done 13572 13573 else 13574 # The variable is set, but is it from the command line or the environment? 13575 13576 # Try to remove the string !DF! from our list. 13577 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 13578 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13579 # If it failed, the variable was not from the command line. Ignore it, 13580 # but warn the user (except for BASH, which is always set by the calling BASH). 13581 if test "xDF" != xBASH; then 13582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 13583 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 13584 fi 13585 # Try to locate tool using the code snippet 13586 for ac_prog in df 13587 do 13588 # Extract the first word of "$ac_prog", so it can be a program name with args. 13589 set dummy $ac_prog; ac_word=$2 13590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13591 $as_echo_n "checking for $ac_word... " >&6; } 13592 if ${ac_cv_path_DF+:} false; then : 13593 $as_echo_n "(cached) " >&6 13594 else 13595 case $DF in 13596 [\\/]* | ?:[\\/]*) 13597 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13598 ;; 13599 *) 13600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13601 for as_dir in $PATH 13602 do 13603 IFS=$as_save_IFS 13604 test -z "$as_dir" && as_dir=. 13605 for ac_exec_ext in '' $ac_executable_extensions; do 13606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13607 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13609 break 2 13610 fi 13611 done 13612 done 13613 IFS=$as_save_IFS 13614 13615 ;; 13616 esac 13617 fi 13618 DF=$ac_cv_path_DF 13619 if test -n "$DF"; then 13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13621 $as_echo "$DF" >&6; } 13622 else 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13624 $as_echo "no" >&6; } 13625 fi 13626 13627 13628 test -n "$DF" && break 13629 done 13630 13631 else 13632 # If it succeeded, then it was overridden by the user. We will use it 13633 # for the tool. 13634 13635 # First remove it from the list of overridden variables, so we can test 13636 # for unknown variables in the end. 13637 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13638 13639 # Check if we try to supply an empty value 13640 if test "x$DF" = x; then 13641 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 13642 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13644 $as_echo_n "checking for DF... " >&6; } 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13646 $as_echo "disabled" >&6; } 13647 else 13648 # Check if the provided tool contains a complete path. 13649 tool_specified="$DF" 13650 tool_basename="${tool_specified##*/}" 13651 if test "x$tool_basename" = "x$tool_specified"; then 13652 # A command without a complete path is provided, search $PATH. 13653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13654 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13655 # Extract the first word of "$tool_basename", so it can be a program name with args. 13656 set dummy $tool_basename; ac_word=$2 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13658 $as_echo_n "checking for $ac_word... " >&6; } 13659 if ${ac_cv_path_DF+:} false; then : 13660 $as_echo_n "(cached) " >&6 13661 else 13662 case $DF in 13663 [\\/]* | ?:[\\/]*) 13664 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13665 ;; 13666 *) 13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13668 for as_dir in $PATH 13669 do 13670 IFS=$as_save_IFS 13671 test -z "$as_dir" && as_dir=. 13672 for ac_exec_ext in '' $ac_executable_extensions; do 13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13674 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13676 break 2 13677 fi 13678 done 13679 done 13680 IFS=$as_save_IFS 13681 13682 ;; 13683 esac 13684 fi 13685 DF=$ac_cv_path_DF 13686 if test -n "$DF"; then 13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13688 $as_echo "$DF" >&6; } 13689 else 13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13691 $as_echo "no" >&6; } 13692 fi 13693 13694 13695 if test "x$DF" = x; then 13696 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13697 fi 13698 else 13699 # Otherwise we believe it is a complete path. Use it as it is. 13700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13701 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13703 $as_echo_n "checking for DF... " >&6; } 13704 if test ! -x "$tool_specified"; then 13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13706 $as_echo "not found" >&6; } 13707 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13708 fi 13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13710 $as_echo "$tool_specified" >&6; } 13711 fi 13712 fi 13713 fi 13714 fi 13715 13716 13717 13718 13719 # Publish this variable in the help. 13720 13721 13722 if [ -z "${CPIO+x}" ]; then 13723 # The variable is not set by user, try to locate tool using the code snippet 13724 for ac_prog in cpio bsdcpio 13725 do 13726 # Extract the first word of "$ac_prog", so it can be a program name with args. 13727 set dummy $ac_prog; ac_word=$2 13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13729 $as_echo_n "checking for $ac_word... " >&6; } 13730 if ${ac_cv_path_CPIO+:} false; then : 13731 $as_echo_n "(cached) " >&6 13732 else 13733 case $CPIO in 13734 [\\/]* | ?:[\\/]*) 13735 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13736 ;; 13737 *) 13738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13739 for as_dir in $PATH 13740 do 13741 IFS=$as_save_IFS 13742 test -z "$as_dir" && as_dir=. 13743 for ac_exec_ext in '' $ac_executable_extensions; do 13744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13745 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13747 break 2 13748 fi 13749 done 13750 done 13751 IFS=$as_save_IFS 13752 13753 ;; 13754 esac 13755 fi 13756 CPIO=$ac_cv_path_CPIO 13757 if test -n "$CPIO"; then 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13759 $as_echo "$CPIO" >&6; } 13760 else 13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13762 $as_echo "no" >&6; } 13763 fi 13764 13765 13766 test -n "$CPIO" && break 13767 done 13768 13769 else 13770 # The variable is set, but is it from the command line or the environment? 13771 13772 # Try to remove the string !CPIO! from our list. 13773 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13774 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13775 # If it failed, the variable was not from the command line. Ignore it, 13776 # but warn the user (except for BASH, which is always set by the calling BASH). 13777 if test "xCPIO" != xBASH; then 13778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13779 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13780 fi 13781 # Try to locate tool using the code snippet 13782 for ac_prog in cpio bsdcpio 13783 do 13784 # Extract the first word of "$ac_prog", so it can be a program name with args. 13785 set dummy $ac_prog; ac_word=$2 13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13787 $as_echo_n "checking for $ac_word... " >&6; } 13788 if ${ac_cv_path_CPIO+:} false; then : 13789 $as_echo_n "(cached) " >&6 13790 else 13791 case $CPIO in 13792 [\\/]* | ?:[\\/]*) 13793 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13794 ;; 13795 *) 13796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13797 for as_dir in $PATH 13798 do 13799 IFS=$as_save_IFS 13800 test -z "$as_dir" && as_dir=. 13801 for ac_exec_ext in '' $ac_executable_extensions; do 13802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13803 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13805 break 2 13806 fi 13807 done 13808 done 13809 IFS=$as_save_IFS 13810 13811 ;; 13812 esac 13813 fi 13814 CPIO=$ac_cv_path_CPIO 13815 if test -n "$CPIO"; then 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13817 $as_echo "$CPIO" >&6; } 13818 else 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13820 $as_echo "no" >&6; } 13821 fi 13822 13823 13824 test -n "$CPIO" && break 13825 done 13826 13827 else 13828 # If it succeeded, then it was overridden by the user. We will use it 13829 # for the tool. 13830 13831 # First remove it from the list of overridden variables, so we can test 13832 # for unknown variables in the end. 13833 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13834 13835 # Check if we try to supply an empty value 13836 if test "x$CPIO" = x; then 13837 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 13838 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13840 $as_echo_n "checking for CPIO... " >&6; } 13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13842 $as_echo "disabled" >&6; } 13843 else 13844 # Check if the provided tool contains a complete path. 13845 tool_specified="$CPIO" 13846 tool_basename="${tool_specified##*/}" 13847 if test "x$tool_basename" = "x$tool_specified"; then 13848 # A command without a complete path is provided, search $PATH. 13849 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13850 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13851 # Extract the first word of "$tool_basename", so it can be a program name with args. 13852 set dummy $tool_basename; ac_word=$2 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13854 $as_echo_n "checking for $ac_word... " >&6; } 13855 if ${ac_cv_path_CPIO+:} false; then : 13856 $as_echo_n "(cached) " >&6 13857 else 13858 case $CPIO in 13859 [\\/]* | ?:[\\/]*) 13860 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13861 ;; 13862 *) 13863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13864 for as_dir in $PATH 13865 do 13866 IFS=$as_save_IFS 13867 test -z "$as_dir" && as_dir=. 13868 for ac_exec_ext in '' $ac_executable_extensions; do 13869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13870 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13872 break 2 13873 fi 13874 done 13875 done 13876 IFS=$as_save_IFS 13877 13878 ;; 13879 esac 13880 fi 13881 CPIO=$ac_cv_path_CPIO 13882 if test -n "$CPIO"; then 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13884 $as_echo "$CPIO" >&6; } 13885 else 13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13887 $as_echo "no" >&6; } 13888 fi 13889 13890 13891 if test "x$CPIO" = x; then 13892 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13893 fi 13894 else 13895 # Otherwise we believe it is a complete path. Use it as it is. 13896 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13897 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13899 $as_echo_n "checking for CPIO... " >&6; } 13900 if test ! -x "$tool_specified"; then 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13902 $as_echo "not found" >&6; } 13903 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13904 fi 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13906 $as_echo "$tool_specified" >&6; } 13907 fi 13908 fi 13909 fi 13910 fi 13911 13912 13913 13914 13915 # Publish this variable in the help. 13916 13917 13918 if [ -z "${NICE+x}" ]; then 13919 # The variable is not set by user, try to locate tool using the code snippet 13920 for ac_prog in nice 13921 do 13922 # Extract the first word of "$ac_prog", so it can be a program name with args. 13923 set dummy $ac_prog; ac_word=$2 13924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13925 $as_echo_n "checking for $ac_word... " >&6; } 13926 if ${ac_cv_path_NICE+:} false; then : 13927 $as_echo_n "(cached) " >&6 13928 else 13929 case $NICE in 13930 [\\/]* | ?:[\\/]*) 13931 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 13932 ;; 13933 *) 13934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13935 for as_dir in $PATH 13936 do 13937 IFS=$as_save_IFS 13938 test -z "$as_dir" && as_dir=. 13939 for ac_exec_ext in '' $ac_executable_extensions; do 13940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13941 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 13942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13943 break 2 13944 fi 13945 done 13946 done 13947 IFS=$as_save_IFS 13948 13949 ;; 13950 esac 13951 fi 13952 NICE=$ac_cv_path_NICE 13953 if test -n "$NICE"; then 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 13955 $as_echo "$NICE" >&6; } 13956 else 13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13958 $as_echo "no" >&6; } 13959 fi 13960 13961 13962 test -n "$NICE" && break 13963 done 13964 13965 else 13966 # The variable is set, but is it from the command line or the environment? 13967 13968 # Try to remove the string !NICE! from our list. 13969 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 13970 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13971 # If it failed, the variable was not from the command line. Ignore it, 13972 # but warn the user (except for BASH, which is always set by the calling BASH). 13973 if test "xNICE" != xBASH; then 13974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 13975 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 13976 fi 13977 # Try to locate tool using the code snippet 13978 for ac_prog in nice 13979 do 13980 # Extract the first word of "$ac_prog", so it can be a program name with args. 13981 set dummy $ac_prog; ac_word=$2 13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13983 $as_echo_n "checking for $ac_word... " >&6; } 13984 if ${ac_cv_path_NICE+:} false; then : 13985 $as_echo_n "(cached) " >&6 13986 else 13987 case $NICE in 13988 [\\/]* | ?:[\\/]*) 13989 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 13990 ;; 13991 *) 13992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13993 for as_dir in $PATH 13994 do 13995 IFS=$as_save_IFS 13996 test -z "$as_dir" && as_dir=. 13997 for ac_exec_ext in '' $ac_executable_extensions; do 13998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13999 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14001 break 2 14002 fi 14003 done 14004 done 14005 IFS=$as_save_IFS 14006 14007 ;; 14008 esac 14009 fi 14010 NICE=$ac_cv_path_NICE 14011 if test -n "$NICE"; then 14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14013 $as_echo "$NICE" >&6; } 14014 else 14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14016 $as_echo "no" >&6; } 14017 fi 14018 14019 14020 test -n "$NICE" && break 14021 done 14022 14023 else 14024 # If it succeeded, then it was overridden by the user. We will use it 14025 # for the tool. 14026 14027 # First remove it from the list of overridden variables, so we can test 14028 # for unknown variables in the end. 14029 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14030 14031 # Check if we try to supply an empty value 14032 if test "x$NICE" = x; then 14033 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 14034 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14036 $as_echo_n "checking for NICE... " >&6; } 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14038 $as_echo "disabled" >&6; } 14039 else 14040 # Check if the provided tool contains a complete path. 14041 tool_specified="$NICE" 14042 tool_basename="${tool_specified##*/}" 14043 if test "x$tool_basename" = "x$tool_specified"; then 14044 # A command without a complete path is provided, search $PATH. 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 14046 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 14047 # Extract the first word of "$tool_basename", so it can be a program name with args. 14048 set dummy $tool_basename; ac_word=$2 14049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14050 $as_echo_n "checking for $ac_word... " >&6; } 14051 if ${ac_cv_path_NICE+:} false; then : 14052 $as_echo_n "(cached) " >&6 14053 else 14054 case $NICE in 14055 [\\/]* | ?:[\\/]*) 14056 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 14057 ;; 14058 *) 14059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14060 for as_dir in $PATH 14061 do 14062 IFS=$as_save_IFS 14063 test -z "$as_dir" && as_dir=. 14064 for ac_exec_ext in '' $ac_executable_extensions; do 14065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14066 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 14067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14068 break 2 14069 fi 14070 done 14071 done 14072 IFS=$as_save_IFS 14073 14074 ;; 14075 esac 14076 fi 14077 NICE=$ac_cv_path_NICE 14078 if test -n "$NICE"; then 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 14080 $as_echo "$NICE" >&6; } 14081 else 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14083 $as_echo "no" >&6; } 14084 fi 14085 14086 14087 if test "x$NICE" = x; then 14088 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14089 fi 14090 else 14091 # Otherwise we believe it is a complete path. Use it as it is. 14092 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 14093 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 14095 $as_echo_n "checking for NICE... " >&6; } 14096 if test ! -x "$tool_specified"; then 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14098 $as_echo "not found" >&6; } 14099 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 14100 fi 14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14102 $as_echo "$tool_specified" >&6; } 14103 fi 14104 fi 14105 fi 14106 fi 14107 14108 14109 14110 14111 # Now we can determine OpenJDK build and target platforms. This is required to 14112 # have early on. 14113 # Make sure we can run config.sub. 14114 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 14115 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 14116 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 14118 $as_echo_n "checking build system type... " >&6; } 14119 if ${ac_cv_build+:} false; then : 14120 $as_echo_n "(cached) " >&6 14121 else 14122 ac_build_alias=$build_alias 14123 test "x$ac_build_alias" = x && 14124 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 14125 test "x$ac_build_alias" = x && 14126 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 14127 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 14128 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 14129 14130 fi 14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 14132 $as_echo "$ac_cv_build" >&6; } 14133 case $ac_cv_build in 14134 *-*-*) ;; 14135 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 14136 esac 14137 build=$ac_cv_build 14138 ac_save_IFS=$IFS; IFS='-' 14139 set x $ac_cv_build 14140 shift 14141 build_cpu=$1 14142 build_vendor=$2 14143 shift; shift 14144 # Remember, the first character of IFS is used to create $*, 14145 # except with old shells: 14146 build_os=$* 14147 IFS=$ac_save_IFS 14148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 14149 14150 14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 14152 $as_echo_n "checking host system type... " >&6; } 14153 if ${ac_cv_host+:} false; then : 14154 $as_echo_n "(cached) " >&6 14155 else 14156 if test "x$host_alias" = x; then 14157 ac_cv_host=$ac_cv_build 14158 else 14159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 14160 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 14161 fi 14162 14163 fi 14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 14165 $as_echo "$ac_cv_host" >&6; } 14166 case $ac_cv_host in 14167 *-*-*) ;; 14168 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 14169 esac 14170 host=$ac_cv_host 14171 ac_save_IFS=$IFS; IFS='-' 14172 set x $ac_cv_host 14173 shift 14174 host_cpu=$1 14175 host_vendor=$2 14176 shift; shift 14177 # Remember, the first character of IFS is used to create $*, 14178 # except with old shells: 14179 host_os=$* 14180 IFS=$ac_save_IFS 14181 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 14182 14183 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 14185 $as_echo_n "checking target system type... " >&6; } 14186 if ${ac_cv_target+:} false; then : 14187 $as_echo_n "(cached) " >&6 14188 else 14189 if test "x$target_alias" = x; then 14190 ac_cv_target=$ac_cv_host 14191 else 14192 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 14193 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 14194 fi 14195 14196 fi 14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 14198 $as_echo "$ac_cv_target" >&6; } 14199 case $ac_cv_target in 14200 *-*-*) ;; 14201 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 14202 esac 14203 target=$ac_cv_target 14204 ac_save_IFS=$IFS; IFS='-' 14205 set x $ac_cv_target 14206 shift 14207 target_cpu=$1 14208 target_vendor=$2 14209 shift; shift 14210 # Remember, the first character of IFS is used to create $*, 14211 # except with old shells: 14212 target_os=$* 14213 IFS=$ac_save_IFS 14214 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 14215 14216 14217 # The aliases save the names the user supplied, while $host etc. 14218 # will get canonicalized. 14219 test -n "$target_alias" && 14220 test "$program_prefix$program_suffix$program_transform_name" = \ 14221 NONENONEs,x,x, && 14222 program_prefix=${target_alias}- 14223 14224 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 14225 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 14226 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 14227 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 14228 # to use the configure naming style. 14229 14230 14231 14232 14233 14234 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 14235 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 14236 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 14237 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 14238 OPENJDK_TARGET_AUTOCONF_NAME="$host" 14239 OPENJDK_BUILD_AUTOCONF_NAME="$build" 14240 14241 14242 14243 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14244 14245 case "$build_os" in 14246 *linux*) 14247 VAR_OS=linux 14248 VAR_OS_TYPE=unix 14249 ;; 14250 *solaris*) 14251 VAR_OS=solaris 14252 VAR_OS_TYPE=unix 14253 ;; 14254 *darwin*) 14255 VAR_OS=macosx 14256 VAR_OS_TYPE=unix 14257 ;; 14258 *bsd*) 14259 VAR_OS=bsd 14260 VAR_OS_TYPE=unix 14261 ;; 14262 *cygwin*) 14263 VAR_OS=windows 14264 VAR_OS_ENV=windows.cygwin 14265 ;; 14266 *mingw*) 14267 VAR_OS=windows 14268 VAR_OS_ENV=windows.msys 14269 ;; 14270 *aix*) 14271 VAR_OS=aix 14272 VAR_OS_TYPE=unix 14273 ;; 14274 *) 14275 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 14276 ;; 14277 esac 14278 14279 14280 # First argument is the cpu name from the trip/quad 14281 case "$build_cpu" in 14282 x86_64) 14283 VAR_CPU=x86_64 14284 VAR_CPU_ARCH=x86 14285 VAR_CPU_BITS=64 14286 VAR_CPU_ENDIAN=little 14287 ;; 14288 i?86) 14289 VAR_CPU=x86 14290 VAR_CPU_ARCH=x86 14291 VAR_CPU_BITS=32 14292 VAR_CPU_ENDIAN=little 14293 ;; 14294 arm*) 14295 VAR_CPU=arm 14296 VAR_CPU_ARCH=arm 14297 VAR_CPU_BITS=32 14298 VAR_CPU_ENDIAN=little 14299 ;; 14300 aarch64) 14301 VAR_CPU=aarch64 14302 VAR_CPU_ARCH=aarch64 14303 VAR_CPU_BITS=64 14304 VAR_CPU_ENDIAN=little 14305 ;; 14306 powerpc) 14307 VAR_CPU=ppc 14308 VAR_CPU_ARCH=ppc 14309 VAR_CPU_BITS=32 14310 VAR_CPU_ENDIAN=big 14311 ;; 14312 powerpc64) 14313 VAR_CPU=ppc64 14314 VAR_CPU_ARCH=ppc 14315 VAR_CPU_BITS=64 14316 VAR_CPU_ENDIAN=big 14317 ;; 14318 powerpc64le) 14319 VAR_CPU=ppc64 14320 VAR_CPU_ARCH=ppc 14321 VAR_CPU_BITS=64 14322 VAR_CPU_ENDIAN=little 14323 ;; 14324 s390) 14325 VAR_CPU=s390 14326 VAR_CPU_ARCH=s390 14327 VAR_CPU_BITS=32 14328 VAR_CPU_ENDIAN=big 14329 ;; 14330 s390x) 14331 VAR_CPU=s390x 14332 VAR_CPU_ARCH=s390 14333 VAR_CPU_BITS=64 14334 VAR_CPU_ENDIAN=big 14335 ;; 14336 sparc) 14337 VAR_CPU=sparc 14338 VAR_CPU_ARCH=sparc 14339 VAR_CPU_BITS=32 14340 VAR_CPU_ENDIAN=big 14341 ;; 14342 sparcv9|sparc64) 14343 VAR_CPU=sparcv9 14344 VAR_CPU_ARCH=sparc 14345 VAR_CPU_BITS=64 14346 VAR_CPU_ENDIAN=big 14347 ;; 14348 *) 14349 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 14350 ;; 14351 esac 14352 14353 # ..and setup our own variables. (Do this explicitely to facilitate searching) 14354 OPENJDK_BUILD_OS="$VAR_OS" 14355 if test "x$VAR_OS_TYPE" != x; then 14356 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 14357 else 14358 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 14359 fi 14360 if test "x$VAR_OS_ENV" != x; then 14361 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 14362 else 14363 OPENJDK_BUILD_OS_ENV="$VAR_OS" 14364 fi 14365 OPENJDK_BUILD_CPU="$VAR_CPU" 14366 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 14367 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 14368 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 14369 14370 14371 14372 14373 14374 14375 14376 14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 14378 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 14380 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 14381 14382 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 14383 14384 case "$host_os" in 14385 *linux*) 14386 VAR_OS=linux 14387 VAR_OS_TYPE=unix 14388 ;; 14389 *solaris*) 14390 VAR_OS=solaris 14391 VAR_OS_TYPE=unix 14392 ;; 14393 *darwin*) 14394 VAR_OS=macosx 14395 VAR_OS_TYPE=unix 14396 ;; 14397 *bsd*) 14398 VAR_OS=bsd 14399 VAR_OS_TYPE=unix 14400 ;; 14401 *cygwin*) 14402 VAR_OS=windows 14403 VAR_OS_ENV=windows.cygwin 14404 ;; 14405 *mingw*) 14406 VAR_OS=windows 14407 VAR_OS_ENV=windows.msys 14408 ;; 14409 *aix*) 14410 VAR_OS=aix 14411 VAR_OS_TYPE=unix 14412 ;; 14413 *) 14414 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 14415 ;; 14416 esac 14417 14418 14419 # First argument is the cpu name from the trip/quad 14420 case "$host_cpu" in 14421 x86_64) 14422 VAR_CPU=x86_64 14423 VAR_CPU_ARCH=x86 14424 VAR_CPU_BITS=64 14425 VAR_CPU_ENDIAN=little 14426 ;; 14427 i?86) 14428 VAR_CPU=x86 14429 VAR_CPU_ARCH=x86 14430 VAR_CPU_BITS=32 14431 VAR_CPU_ENDIAN=little 14432 ;; 14433 arm*) 14434 VAR_CPU=arm 14435 VAR_CPU_ARCH=arm 14436 VAR_CPU_BITS=32 14437 VAR_CPU_ENDIAN=little 14438 ;; 14439 aarch64) 14440 VAR_CPU=aarch64 14441 VAR_CPU_ARCH=aarch64 14442 VAR_CPU_BITS=64 14443 VAR_CPU_ENDIAN=little 14444 ;; 14445 powerpc) 14446 VAR_CPU=ppc 14447 VAR_CPU_ARCH=ppc 14448 VAR_CPU_BITS=32 14449 VAR_CPU_ENDIAN=big 14450 ;; 14451 powerpc64) 14452 VAR_CPU=ppc64 14453 VAR_CPU_ARCH=ppc 14454 VAR_CPU_BITS=64 14455 VAR_CPU_ENDIAN=big 14456 ;; 14457 powerpc64le) 14458 VAR_CPU=ppc64 14459 VAR_CPU_ARCH=ppc 14460 VAR_CPU_BITS=64 14461 VAR_CPU_ENDIAN=little 14462 ;; 14463 s390) 14464 VAR_CPU=s390 14465 VAR_CPU_ARCH=s390 14466 VAR_CPU_BITS=32 14467 VAR_CPU_ENDIAN=big 14468 ;; 14469 s390x) 14470 VAR_CPU=s390x 14471 VAR_CPU_ARCH=s390 14472 VAR_CPU_BITS=64 14473 VAR_CPU_ENDIAN=big 14474 ;; 14475 sparc) 14476 VAR_CPU=sparc 14477 VAR_CPU_ARCH=sparc 14478 VAR_CPU_BITS=32 14479 VAR_CPU_ENDIAN=big 14480 ;; 14481 sparcv9|sparc64) 14482 VAR_CPU=sparcv9 14483 VAR_CPU_ARCH=sparc 14484 VAR_CPU_BITS=64 14485 VAR_CPU_ENDIAN=big 14486 ;; 14487 *) 14488 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 14489 ;; 14490 esac 14491 14492 # ... and setup our own variables. (Do this explicitely to facilitate searching) 14493 OPENJDK_TARGET_OS="$VAR_OS" 14494 if test "x$VAR_OS_TYPE" != x; then 14495 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 14496 else 14497 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 14498 fi 14499 if test "x$VAR_OS_ENV" != x; then 14500 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 14501 else 14502 OPENJDK_TARGET_OS_ENV="$VAR_OS" 14503 fi 14504 OPENJDK_TARGET_CPU="$VAR_CPU" 14505 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 14506 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 14507 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 14508 14509 14510 14511 14512 14513 14514 14515 14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 14517 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 14519 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 14520 14521 14522 14523 # Check whether --with-target-bits was given. 14524 if test "${with_target_bits+set}" = set; then : 14525 withval=$with_target_bits; 14526 fi 14527 14528 14529 # We have three types of compiles: 14530 # native == normal compilation, target system == build system 14531 # cross == traditional cross compilation, target system != build system; special toolchain needed 14532 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 14533 # 14534 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 14535 # We're doing a proper cross-compilation 14536 COMPILE_TYPE="cross" 14537 else 14538 COMPILE_TYPE="native" 14539 fi 14540 14541 if test "x$with_target_bits" != x; then 14542 if test "x$COMPILE_TYPE" = "xcross"; then 14543 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 14544 fi 14545 14546 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14547 # A reduced build is requested 14548 COMPILE_TYPE="reduced" 14549 OPENJDK_TARGET_CPU_BITS=32 14550 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 14551 OPENJDK_TARGET_CPU=x86 14552 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 14553 OPENJDK_TARGET_CPU=sparc 14554 else 14555 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 14556 fi 14557 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 14558 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 14559 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 14561 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 14562 else 14563 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 14564 fi 14565 fi 14566 14567 14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 14569 $as_echo_n "checking compilation type... " >&6; } 14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 14571 $as_echo "$COMPILE_TYPE" >&6; } 14572 14573 14574 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 14575 REQUIRED_OS_NAME=SunOS 14576 REQUIRED_OS_VERSION=5.10 14577 fi 14578 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 14579 REQUIRED_OS_NAME=Linux 14580 REQUIRED_OS_VERSION=2.6 14581 fi 14582 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14583 REQUIRED_OS_NAME=Windows 14584 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 14585 REQUIRED_OS_VERSION=5.2 14586 else 14587 REQUIRED_OS_VERSION=5.1 14588 fi 14589 fi 14590 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14591 REQUIRED_OS_NAME=Darwin 14592 REQUIRED_OS_VERSION=11.2 14593 fi 14594 14595 14596 14597 14598 14599 # Also store the legacy naming of the cpu. 14600 # Ie i586 and amd64 instead of x86 and x86_64 14601 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 14602 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14603 OPENJDK_TARGET_CPU_LEGACY="i586" 14604 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14605 # On all platforms except MacOSX replace x86_64 with amd64. 14606 OPENJDK_TARGET_CPU_LEGACY="amd64" 14607 fi 14608 14609 14610 # And the second legacy naming of the cpu. 14611 # Ie i386 and amd64 instead of x86 and x86_64. 14612 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 14613 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14614 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 14615 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14616 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 14617 fi 14618 14619 14620 # This is the name of the cpu (but using i386 and amd64 instead of 14621 # x86 and x86_64, respectively), preceeded by a /, to be used when 14622 # locating libraries. On macosx, it's empty, though. 14623 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 14624 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14625 OPENJDK_TARGET_CPU_LIBDIR="" 14626 fi 14627 14628 14629 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 14630 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 14631 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 14632 OPENJDK_TARGET_CPU_ISADIR="" 14633 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14634 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14635 OPENJDK_TARGET_CPU_ISADIR="/amd64" 14636 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 14637 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 14638 fi 14639 fi 14640 14641 14642 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 14643 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 14644 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 14645 # On linux only, we replace x86 with i386. 14646 OPENJDK_TARGET_CPU_OSARCH="i386" 14647 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14648 # On all platforms except macosx, we replace x86_64 with amd64. 14649 OPENJDK_TARGET_CPU_OSARCH="amd64" 14650 fi 14651 14652 14653 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 14654 if test "x$OPENJDK_TARGET_CPU" = xx86; then 14655 OPENJDK_TARGET_CPU_JLI="i386" 14656 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 14657 # On all platforms except macosx, we replace x86_64 with amd64. 14658 OPENJDK_TARGET_CPU_JLI="amd64" 14659 fi 14660 # Now setup the -D flags for building libjli. 14661 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 14662 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 14663 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 14664 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 14665 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 14666 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 14667 fi 14668 fi 14669 14670 14671 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 14672 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 14673 else 14674 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 14675 fi 14676 14677 14678 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14679 A_LP64="LP64:=" 14680 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 14681 # unpack200.exe 14682 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 14683 ADD_LP64="-D_LP64=1" 14684 fi 14685 fi 14686 LP64=$A_LP64 14687 14688 14689 if test "x$COMPILE_TYPE" = "xcross"; then 14690 # FIXME: ... or should this include reduced builds..? 14691 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 14692 else 14693 DEFINE_CROSS_COMPILE_ARCH="" 14694 fi 14695 14696 14697 # ZERO_ARCHDEF is used to enable architecture-specific code 14698 case "${OPENJDK_TARGET_CPU}" in 14699 ppc) ZERO_ARCHDEF=PPC32 ;; 14700 ppc64) ZERO_ARCHDEF=PPC64 ;; 14701 s390*) ZERO_ARCHDEF=S390 ;; 14702 sparc*) ZERO_ARCHDEF=SPARC ;; 14703 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14704 x86) ZERO_ARCHDEF=IA32 ;; 14705 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14706 esac 14707 14708 14709 14710 14711 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14712 14713 # Save the current directory this script was started from 14714 CURDIR="$PWD" 14715 14716 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 14717 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 14718 # was not available at that time. 14719 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 14720 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 14721 ORIGINAL_PATH="$REWRITTEN_PATH" 14722 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 14723 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 14724 fi 14725 14726 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14727 PATH_SEP=";" 14728 14729 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14730 if test $SRC_ROOT_LENGTH -gt 100; then 14731 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14732 fi 14733 14734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14736 $as_echo_n "checking cygwin release... " >&6; } 14737 CYGWIN_VERSION=`$UNAME -r` 14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14739 $as_echo "$CYGWIN_VERSION" >&6; } 14740 WINDOWS_ENV_VENDOR='cygwin' 14741 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14742 14743 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 14744 if test "x$CYGWIN_VERSION_OLD" != x; then 14745 { $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 14746 $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;} 14747 as_fn_error $? "Cannot continue" "$LINENO" 5 14748 fi 14749 if test "x$CYGPATH" = x; then 14750 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14751 fi 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14753 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14754 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14755 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14756 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14757 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14759 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14760 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14761 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14762 if test "x$test_cygdrive_prefix" = x; then 14763 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14764 fi 14765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14767 $as_echo_n "checking msys release... " >&6; } 14768 MSYS_VERSION=`$UNAME -r` 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14770 $as_echo "$MSYS_VERSION" >&6; } 14771 14772 WINDOWS_ENV_VENDOR='msys' 14773 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14774 14775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14776 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14777 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14778 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14779 14780 windows_path="$MSYS_ROOT_PATH" 14781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14782 unix_path=`$CYGPATH -u "$windows_path"` 14783 MSYS_ROOT_PATH="$unix_path" 14784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14786 MSYS_ROOT_PATH="$unix_path" 14787 fi 14788 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14790 $as_echo "$MSYS_ROOT_PATH" >&6; } 14791 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14792 else 14793 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14794 fi 14795 14796 # Test if windows or unix (cygwin/msys) find is first in path. 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14798 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14799 FIND_BINARY_OUTPUT=`find --version 2>&1` 14800 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14802 $as_echo "unix style" >&6; } 14803 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14805 $as_echo "Windows" >&6; } 14806 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14807 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14808 { $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 14809 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14810 as_fn_error $? "Cannot continue" "$LINENO" 5 14811 else 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14813 $as_echo "unknown" >&6; } 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14815 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14816 fi 14817 14818 else 14819 PATH_SEP=":" 14820 fi 14821 14822 14823 # We get the top-level directory from the supporting wrappers. 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14825 $as_echo_n "checking for top-level directory... " >&6; } 14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14827 $as_echo "$TOPDIR" >&6; } 14828 14829 14830 # Save the original version of TOPDIR for string comparisons 14831 ORIGINAL_TOPDIR="$TOPDIR" 14832 14833 14834 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14835 14836 # Only process if variable expands to non-empty 14837 14838 if test "x$CURDIR" != x; then 14839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14840 14841 # Input might be given as Windows format, start by converting to 14842 # unix format. 14843 path="$CURDIR" 14844 new_path=`$CYGPATH -u "$path"` 14845 14846 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14847 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14848 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14849 # "foo.exe" is OK but "foo" is an error. 14850 # 14851 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14852 # It is also a way to make sure we got the proper file name for the real test later on. 14853 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14854 if test "x$test_shortpath" = x; then 14855 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14856 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14857 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14858 fi 14859 14860 # Call helper function which possibly converts this using DOS-style short mode. 14861 # If so, the updated path is stored in $new_path. 14862 14863 input_path="$new_path" 14864 # Check if we need to convert this using DOS-style short mode. If the path 14865 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14866 # take no chances and rewrite it. 14867 # Note: m4 eats our [], so we need to use [ and ] instead. 14868 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14869 if test "x$has_forbidden_chars" != x; then 14870 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14871 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14872 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14873 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14874 # Going to short mode and back again did indeed matter. Since short mode is 14875 # case insensitive, let's make it lowercase to improve readability. 14876 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14877 # Now convert it back to Unix-style (cygpath) 14878 input_path=`$CYGPATH -u "$shortmode_path"` 14879 new_path="$input_path" 14880 fi 14881 fi 14882 14883 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14884 if test "x$test_cygdrive_prefix" = x; then 14885 # As a simple fix, exclude /usr/bin since it's not a real path. 14886 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14887 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14888 # a path prefixed by /cygdrive for fixpath to work. 14889 new_path="$CYGWIN_ROOT_PATH$input_path" 14890 fi 14891 fi 14892 14893 14894 if test "x$path" != "x$new_path"; then 14895 CURDIR="$new_path" 14896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14897 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14898 fi 14899 14900 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14901 14902 path="$CURDIR" 14903 has_colon=`$ECHO $path | $GREP ^.:` 14904 new_path="$path" 14905 if test "x$has_colon" = x; then 14906 # Not in mixed or Windows style, start by that. 14907 new_path=`cmd //c echo $path` 14908 fi 14909 14910 14911 input_path="$new_path" 14912 # Check if we need to convert this using DOS-style short mode. If the path 14913 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14914 # take no chances and rewrite it. 14915 # Note: m4 eats our [], so we need to use [ and ] instead. 14916 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14917 if test "x$has_forbidden_chars" != x; then 14918 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14919 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14920 fi 14921 14922 14923 windows_path="$new_path" 14924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14925 unix_path=`$CYGPATH -u "$windows_path"` 14926 new_path="$unix_path" 14927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14928 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14929 new_path="$unix_path" 14930 fi 14931 14932 if test "x$path" != "x$new_path"; then 14933 CURDIR="$new_path" 14934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14935 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14936 fi 14937 14938 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14939 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14940 14941 else 14942 # We're on a unix platform. Hooray! :) 14943 path="$CURDIR" 14944 has_space=`$ECHO "$path" | $GREP " "` 14945 if test "x$has_space" != x; then 14946 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14947 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14948 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14949 fi 14950 14951 # Use eval to expand a potential ~ 14952 eval path="$path" 14953 if test ! -f "$path" && test ! -d "$path"; then 14954 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14955 fi 14956 14957 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14958 fi 14959 fi 14960 14961 14962 # Only process if variable expands to non-empty 14963 14964 if test "x$TOPDIR" != x; then 14965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14966 14967 # Input might be given as Windows format, start by converting to 14968 # unix format. 14969 path="$TOPDIR" 14970 new_path=`$CYGPATH -u "$path"` 14971 14972 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14973 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14974 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14975 # "foo.exe" is OK but "foo" is an error. 14976 # 14977 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14978 # It is also a way to make sure we got the proper file name for the real test later on. 14979 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14980 if test "x$test_shortpath" = x; then 14981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14982 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14983 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14984 fi 14985 14986 # Call helper function which possibly converts this using DOS-style short mode. 14987 # If so, the updated path is stored in $new_path. 14988 14989 input_path="$new_path" 14990 # Check if we need to convert this using DOS-style short mode. If the path 14991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14992 # take no chances and rewrite it. 14993 # Note: m4 eats our [], so we need to use [ and ] instead. 14994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14995 if test "x$has_forbidden_chars" != x; then 14996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14997 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14998 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14999 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15000 # Going to short mode and back again did indeed matter. Since short mode is 15001 # case insensitive, let's make it lowercase to improve readability. 15002 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15003 # Now convert it back to Unix-style (cygpath) 15004 input_path=`$CYGPATH -u "$shortmode_path"` 15005 new_path="$input_path" 15006 fi 15007 fi 15008 15009 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15010 if test "x$test_cygdrive_prefix" = x; then 15011 # As a simple fix, exclude /usr/bin since it's not a real path. 15012 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15013 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15014 # a path prefixed by /cygdrive for fixpath to work. 15015 new_path="$CYGWIN_ROOT_PATH$input_path" 15016 fi 15017 fi 15018 15019 15020 if test "x$path" != "x$new_path"; then 15021 TOPDIR="$new_path" 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15023 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15024 fi 15025 15026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15027 15028 path="$TOPDIR" 15029 has_colon=`$ECHO $path | $GREP ^.:` 15030 new_path="$path" 15031 if test "x$has_colon" = x; then 15032 # Not in mixed or Windows style, start by that. 15033 new_path=`cmd //c echo $path` 15034 fi 15035 15036 15037 input_path="$new_path" 15038 # Check if we need to convert this using DOS-style short mode. If the path 15039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15040 # take no chances and rewrite it. 15041 # Note: m4 eats our [], so we need to use [ and ] instead. 15042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15043 if test "x$has_forbidden_chars" != x; then 15044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15046 fi 15047 15048 15049 windows_path="$new_path" 15050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15051 unix_path=`$CYGPATH -u "$windows_path"` 15052 new_path="$unix_path" 15053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15054 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15055 new_path="$unix_path" 15056 fi 15057 15058 if test "x$path" != "x$new_path"; then 15059 TOPDIR="$new_path" 15060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 15061 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 15062 fi 15063 15064 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15065 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15066 15067 else 15068 # We're on a unix platform. Hooray! :) 15069 path="$TOPDIR" 15070 has_space=`$ECHO "$path" | $GREP " "` 15071 if test "x$has_space" != x; then 15072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 15073 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 15074 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15075 fi 15076 15077 # Use eval to expand a potential ~ 15078 eval path="$path" 15079 if test ! -f "$path" && test ! -d "$path"; then 15080 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 15081 fi 15082 15083 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 15084 fi 15085 fi 15086 15087 # SRC_ROOT is a traditional alias for TOPDIR. 15088 SRC_ROOT=$TOPDIR 15089 15090 # Calculate a canonical version of TOPDIR for string comparisons 15091 CANONICAL_TOPDIR=$TOPDIR 15092 15093 if test "x$OPENJDK_BUILD_OS" != xwindows; then 15094 # Follow a chain of symbolic links. Use readlink 15095 # where it exists, else fall back to horribly 15096 # complicated shell code. 15097 if test "x$READLINK_TESTED" != yes; then 15098 # On MacOSX there is a readlink tool with a different 15099 # purpose than the GNU readlink tool. Check the found readlink. 15100 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 15101 if test "x$ISGNU" = x; then 15102 # A readlink that we do not know how to use. 15103 # Are there other non-GNU readlinks out there? 15104 READLINK_TESTED=yes 15105 READLINK= 15106 fi 15107 fi 15108 15109 if test "x$READLINK" != x; then 15110 CANONICAL_TOPDIR=`$READLINK -f $CANONICAL_TOPDIR` 15111 else 15112 # Save the current directory for restoring afterwards 15113 STARTDIR=$PWD 15114 COUNTER=0 15115 sym_link_dir=`$DIRNAME $CANONICAL_TOPDIR` 15116 sym_link_file=`$BASENAME $CANONICAL_TOPDIR` 15117 cd $sym_link_dir 15118 # Use -P flag to resolve symlinks in directories. 15119 cd `$THEPWDCMD -P` 15120 sym_link_dir=`$THEPWDCMD -P` 15121 # Resolve file symlinks 15122 while test $COUNTER -lt 20; do 15123 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 15124 if test "x$ISLINK" == x; then 15125 # This is not a symbolic link! We are done! 15126 break 15127 fi 15128 # Again resolve directory symlinks since the target of the just found 15129 # link could be in a different directory 15130 cd `$DIRNAME $ISLINK` 15131 sym_link_dir=`$THEPWDCMD -P` 15132 sym_link_file=`$BASENAME $ISLINK` 15133 let COUNTER=COUNTER+1 15134 done 15135 cd $STARTDIR 15136 CANONICAL_TOPDIR=$sym_link_dir/$sym_link_file 15137 fi 15138 fi 15139 15140 15141 15142 # Locate the directory of this script. 15143 AUTOCONF_DIR=$TOPDIR/common/autoconf 15144 15145 15146 # Check if it's a pure open build or if custom sources are to be used. 15147 15148 # Check whether --enable-openjdk-only was given. 15149 if test "${enable_openjdk_only+set}" = set; then : 15150 enableval=$enable_openjdk_only; 15151 else 15152 enable_openjdk_only="no" 15153 fi 15154 15155 15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 15157 $as_echo_n "checking for presence of closed sources... " >&6; } 15158 if test -d "$SRC_ROOT/jdk/src/closed"; then 15159 CLOSED_SOURCE_PRESENT=yes 15160 else 15161 CLOSED_SOURCE_PRESENT=no 15162 fi 15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 15164 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 15165 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 15167 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 15168 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 15170 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 15171 15172 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 15173 OPENJDK=true 15174 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 15176 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 15177 fi 15178 else 15179 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 15180 OPENJDK=true 15181 else 15182 OPENJDK=false 15183 fi 15184 fi 15185 15186 if test "x$OPENJDK" = "xtrue"; then 15187 SET_OPENJDK="OPENJDK=true" 15188 fi 15189 15190 15191 15192 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 15193 # the IncludeCustomExtension macro. 15194 15195 15196 # Check whether --with-custom-make-dir was given. 15197 if test "${with_custom_make_dir+set}" = set; then : 15198 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5 15199 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 15200 fi 15201 15202 15203 15204 15205 # These are needed to be able to create a configuration name (and thus the output directory) 15206 15207 ############################################################################### 15208 # 15209 # Check which variant of the JDK that we want to build. 15210 # Currently we have: 15211 # normal: standard edition 15212 # but the custom make system may add other variants 15213 # 15214 # Effectively the JDK variant gives a name to a specific set of 15215 # modules to compile into the JDK. In the future, these modules 15216 # might even be Jigsaw modules. 15217 # 15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 15219 $as_echo_n "checking which variant of the JDK to build... " >&6; } 15220 15221 # Check whether --with-jdk-variant was given. 15222 if test "${with_jdk_variant+set}" = set; then : 15223 withval=$with_jdk_variant; 15224 fi 15225 15226 15227 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 15228 JDK_VARIANT="normal" 15229 else 15230 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 15231 fi 15232 15233 15234 15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 15236 $as_echo "$JDK_VARIANT" >&6; } 15237 15238 15239 ############################################################################### 15240 # 15241 # Check which interpreter of the JVM we want to build. 15242 # Currently we have: 15243 # template: Template interpreter (the default) 15244 # cpp : C++ interpreter 15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 15246 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 15247 15248 # Check whether --with-jvm-interpreter was given. 15249 if test "${with_jvm_interpreter+set}" = set; then : 15250 withval=$with_jvm_interpreter; 15251 fi 15252 15253 15254 if test "x$with_jvm_interpreter" = x; then 15255 with_jvm_interpreter="template" 15256 fi 15257 15258 JVM_INTERPRETER="$with_jvm_interpreter" 15259 15260 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 15261 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 15262 fi 15263 15264 15265 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 15267 $as_echo "$with_jvm_interpreter" >&6; } 15268 15269 15270 15271 ############################################################################### 15272 # 15273 # Check which variants of the JVM that we want to build. 15274 # Currently we have: 15275 # server: normal interpreter and a tiered C1/C2 compiler 15276 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 15277 # minimal1: reduced form of client with optional VM services and features stripped out 15278 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 15279 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 15280 # zero: no machine code interpreter, no compiler 15281 # zeroshark: zero interpreter and shark/llvm compiler backend 15282 # core: interpreter only, no compiler (only works on some platforms) 15283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 15284 $as_echo_n "checking which variants of the JVM to build... " >&6; } 15285 15286 # Check whether --with-jvm-variants was given. 15287 if test "${with_jvm_variants+set}" = set; then : 15288 withval=$with_jvm_variants; 15289 fi 15290 15291 15292 if test "x$with_jvm_variants" = x; then 15293 with_jvm_variants="server" 15294 fi 15295 15296 JVM_VARIANTS=",$with_jvm_variants," 15297 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,//'` 15298 15299 if test "x$TEST_VARIANTS" != "x,"; then 15300 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 15301 fi 15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 15303 $as_echo "$with_jvm_variants" >&6; } 15304 15305 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 15306 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 15307 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 15308 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 15309 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 15310 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 15311 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 15312 15313 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 15314 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15315 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 15316 fi 15317 fi 15318 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 15319 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15320 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 15321 fi 15322 fi 15323 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 15324 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 15325 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 15326 fi 15327 fi 15328 15329 # Replace the commas with AND for use in the build directory name. 15330 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 15331 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/'` 15332 if test "x$COUNT_VARIANTS" != "x,1"; then 15333 BUILDING_MULTIPLE_JVM_VARIANTS=yes 15334 else 15335 BUILDING_MULTIPLE_JVM_VARIANTS=no 15336 fi 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 INCLUDE_SA=true 15348 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 15349 INCLUDE_SA=false 15350 fi 15351 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 15352 INCLUDE_SA=false 15353 fi 15354 if test "x$OPENJDK_TARGET_OS" = xaix ; then 15355 INCLUDE_SA=false 15356 fi 15357 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 15358 INCLUDE_SA=false 15359 fi 15360 15361 15362 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 15363 MACOSX_UNIVERSAL="true" 15364 fi 15365 15366 15367 15368 15369 ############################################################################### 15370 # 15371 # Set the debug level 15372 # release: no debug information, all optimizations, no asserts. 15373 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 15374 # fastdebug: debug information (-g), all optimizations, all asserts 15375 # slowdebug: debug information (-g), no optimizations, all asserts 15376 # 15377 DEBUG_LEVEL="release" 15378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 15379 $as_echo_n "checking which debug level to use... " >&6; } 15380 # Check whether --enable-debug was given. 15381 if test "${enable_debug+set}" = set; then : 15382 enableval=$enable_debug; 15383 ENABLE_DEBUG="${enableval}" 15384 DEBUG_LEVEL="fastdebug" 15385 15386 else 15387 ENABLE_DEBUG="no" 15388 fi 15389 15390 15391 15392 # Check whether --with-debug-level was given. 15393 if test "${with_debug_level+set}" = set; then : 15394 withval=$with_debug_level; 15395 DEBUG_LEVEL="${withval}" 15396 if test "x$ENABLE_DEBUG" = xyes; then 15397 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 15398 fi 15399 15400 fi 15401 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 15403 $as_echo "$DEBUG_LEVEL" >&6; } 15404 15405 if test "x$DEBUG_LEVEL" != xrelease && \ 15406 test "x$DEBUG_LEVEL" != xoptimized && \ 15407 test "x$DEBUG_LEVEL" != xfastdebug && \ 15408 test "x$DEBUG_LEVEL" != xslowdebug; then 15409 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 15410 fi 15411 15412 15413 ############################################################################### 15414 # 15415 # Setup legacy vars/targets and new vars to deal with different debug levels. 15416 # 15417 15418 case $DEBUG_LEVEL in 15419 release ) 15420 VARIANT="OPT" 15421 FASTDEBUG="false" 15422 DEBUG_CLASSFILES="false" 15423 BUILD_VARIANT_RELEASE="" 15424 HOTSPOT_DEBUG_LEVEL="product" 15425 HOTSPOT_EXPORT="product" 15426 ;; 15427 fastdebug ) 15428 VARIANT="DBG" 15429 FASTDEBUG="true" 15430 DEBUG_CLASSFILES="true" 15431 BUILD_VARIANT_RELEASE="-fastdebug" 15432 HOTSPOT_DEBUG_LEVEL="fastdebug" 15433 HOTSPOT_EXPORT="fastdebug" 15434 ;; 15435 slowdebug ) 15436 VARIANT="DBG" 15437 FASTDEBUG="false" 15438 DEBUG_CLASSFILES="true" 15439 BUILD_VARIANT_RELEASE="-debug" 15440 HOTSPOT_DEBUG_LEVEL="debug" 15441 HOTSPOT_EXPORT="debug" 15442 ;; 15443 optimized ) 15444 VARIANT="OPT" 15445 FASTDEBUG="false" 15446 DEBUG_CLASSFILES="false" 15447 BUILD_VARIANT_RELEASE="-optimized" 15448 HOTSPOT_DEBUG_LEVEL="optimized" 15449 HOTSPOT_EXPORT="optimized" 15450 ;; 15451 esac 15452 15453 # The debug level 'optimized' is a little special because it is currently only 15454 # applicable to the HotSpot build where it means to build a completely 15455 # optimized version of the VM without any debugging code (like for the 15456 # 'release' debug level which is called 'product' in the HotSpot build) but 15457 # with the exception that it can contain additional code which is otherwise 15458 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 15459 # test new and/or experimental features which are not intended for customer 15460 # shipment. Because these new features need to be tested and benchmarked in 15461 # real world scenarios, we want to build the containing JDK at the 'release' 15462 # debug level. 15463 if test "x$DEBUG_LEVEL" = xoptimized; then 15464 DEBUG_LEVEL="release" 15465 fi 15466 15467 ##### 15468 # Generate the legacy makefile targets for hotspot. 15469 # The hotspot api for selecting the build artifacts, really, needs to be improved. 15470 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 15471 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 15472 # But until then ... 15473 HOTSPOT_TARGET="" 15474 15475 if test "x$JVM_VARIANT_SERVER" = xtrue; then 15476 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 15477 fi 15478 15479 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 15480 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 15481 fi 15482 15483 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 15484 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 15485 fi 15486 15487 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 15488 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 15489 fi 15490 15491 if test "x$JVM_VARIANT_ZERO" = xtrue; then 15492 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 15493 fi 15494 15495 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 15496 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 15497 fi 15498 15499 if test "x$JVM_VARIANT_CORE" = xtrue; then 15500 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 15501 fi 15502 15503 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 15504 15505 # On Macosx universal binaries are produced, but they only contain 15506 # 64 bit intel. This invalidates control of which jvms are built 15507 # from configure, but only server is valid anyway. Fix this 15508 # when hotspot makefiles are rewritten. 15509 if test "x$MACOSX_UNIVERSAL" = xtrue; then 15510 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 15511 fi 15512 15513 ##### 15514 15515 15516 15517 15518 15519 15520 15521 15522 # With basic setup done, call the custom early hook. 15523 15524 15525 # Check if we have devkits, extra paths or sysroot set. 15526 15527 15528 # Check whether --with-devkit was given. 15529 if test "${with_devkit+set}" = set; then : 15530 withval=$with_devkit; 15531 15532 # Only process if variable expands to non-empty 15533 15534 if test "x$with_devkit" != x; then 15535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15536 15537 # Input might be given as Windows format, start by converting to 15538 # unix format. 15539 path="$with_devkit" 15540 new_path=`$CYGPATH -u "$path"` 15541 15542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15545 # "foo.exe" is OK but "foo" is an error. 15546 # 15547 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15548 # It is also a way to make sure we got the proper file name for the real test later on. 15549 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15550 if test "x$test_shortpath" = x; then 15551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 15552 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 15553 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 15554 fi 15555 15556 # Call helper function which possibly converts this using DOS-style short mode. 15557 # If so, the updated path is stored in $new_path. 15558 15559 input_path="$new_path" 15560 # Check if we need to convert this using DOS-style short mode. If the path 15561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15562 # take no chances and rewrite it. 15563 # Note: m4 eats our [], so we need to use [ and ] instead. 15564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15565 if test "x$has_forbidden_chars" != x; then 15566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15570 # Going to short mode and back again did indeed matter. Since short mode is 15571 # case insensitive, let's make it lowercase to improve readability. 15572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15573 # Now convert it back to Unix-style (cygpath) 15574 input_path=`$CYGPATH -u "$shortmode_path"` 15575 new_path="$input_path" 15576 fi 15577 fi 15578 15579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15580 if test "x$test_cygdrive_prefix" = x; then 15581 # As a simple fix, exclude /usr/bin since it's not a real path. 15582 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15584 # a path prefixed by /cygdrive for fixpath to work. 15585 new_path="$CYGWIN_ROOT_PATH$input_path" 15586 fi 15587 fi 15588 15589 15590 if test "x$path" != "x$new_path"; then 15591 with_devkit="$new_path" 15592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 15593 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 15594 fi 15595 15596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15597 15598 path="$with_devkit" 15599 has_colon=`$ECHO $path | $GREP ^.:` 15600 new_path="$path" 15601 if test "x$has_colon" = x; then 15602 # Not in mixed or Windows style, start by that. 15603 new_path=`cmd //c echo $path` 15604 fi 15605 15606 15607 input_path="$new_path" 15608 # Check if we need to convert this using DOS-style short mode. If the path 15609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15610 # take no chances and rewrite it. 15611 # Note: m4 eats our [], so we need to use [ and ] instead. 15612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15613 if test "x$has_forbidden_chars" != x; then 15614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15615 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15616 fi 15617 15618 15619 windows_path="$new_path" 15620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15621 unix_path=`$CYGPATH -u "$windows_path"` 15622 new_path="$unix_path" 15623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15625 new_path="$unix_path" 15626 fi 15627 15628 if test "x$path" != "x$new_path"; then 15629 with_devkit="$new_path" 15630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 15631 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 15632 fi 15633 15634 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15635 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15636 15637 else 15638 # We're on a unix platform. Hooray! :) 15639 path="$with_devkit" 15640 has_space=`$ECHO "$path" | $GREP " "` 15641 if test "x$has_space" != x; then 15642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 15643 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 15644 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15645 fi 15646 15647 # Use eval to expand a potential ~ 15648 eval path="$path" 15649 if test ! -f "$path" && test ! -d "$path"; then 15650 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 15651 fi 15652 15653 with_devkit="`cd "$path"; $THEPWDCMD -L`" 15654 fi 15655 fi 15656 15657 DEVKIT_ROOT="$with_devkit" 15658 # Check for a meta data info file in the root of the devkit 15659 if test -f "$DEVKIT_ROOT/devkit.info"; then 15660 . $DEVKIT_ROOT/devkit.info 15661 # This potentially sets the following: 15662 # A descriptive name of the devkit 15663 15664 if test "x$DEVKIT_NAME" = x; then 15665 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 15666 fi 15667 15668 # Corresponds to --with-extra-path 15669 15670 if test "x$DEVKIT_EXTRA_PATH" = x; then 15671 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 15672 fi 15673 15674 # Corresponds to --with-toolchain-path 15675 15676 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15677 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 15678 fi 15679 15680 # Corresponds to --with-sysroot 15681 15682 if test "x$DEVKIT_SYSROOT" = x; then 15683 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 15684 fi 15685 15686 15687 # Identifies the Visual Studio version in the devkit 15688 15689 if test "x$DEVKIT_VS_VERSION" = x; then 15690 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 15691 fi 15692 15693 # The Visual Studio include environment variable 15694 15695 if test "x$DEVKIT_VS_INCLUDE" = x; then 15696 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 15697 fi 15698 15699 # The Visual Studio lib environment variable 15700 15701 if test "x$DEVKIT_VS_LIB" = x; then 15702 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 15703 fi 15704 15705 # Corresponds to --with-msvcr-dll 15706 15707 if test "x$DEVKIT_MSVCR_DLL" = x; then 15708 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 15709 fi 15710 15711 # Corresponds to --with-msvcp-dll 15712 15713 if test "x$DEVKIT_MSVCP_DLL" = x; then 15714 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 15715 fi 15716 15717 fi 15718 15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 15720 $as_echo_n "checking for devkit... " >&6; } 15721 if test "x$DEVKIT_NAME" != x; then 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 15723 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 15724 else 15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 15726 $as_echo "$DEVKIT_ROOT" >&6; } 15727 fi 15728 15729 15730 if test "x$DEVKIT_EXTRA_PATH" != x; then 15731 if test "x$EXTRA_PATH" = x; then 15732 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 15733 else 15734 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 15735 fi 15736 fi 15737 15738 15739 # Fallback default of just /bin if DEVKIT_PATH is not defined 15740 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 15741 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 15742 fi 15743 15744 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 15745 if test "x$TOOLCHAIN_PATH" = x; then 15746 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 15747 else 15748 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 15749 fi 15750 fi 15751 15752 15753 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 15754 # places for backwards compatiblity. 15755 if test "x$DEVKIT_SYSROOT" != x; then 15756 SYSROOT="$DEVKIT_SYSROOT" 15757 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 15758 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 15759 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 15760 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 15761 fi 15762 15763 15764 fi 15765 15766 15767 # You can force the sysroot if the sysroot encoded into the compiler tools 15768 # is not correct. 15769 15770 # Check whether --with-sys-root was given. 15771 if test "${with_sys_root+set}" = set; then : 15772 withval=$with_sys_root; SYSROOT=$with_sys_root 15773 15774 fi 15775 15776 15777 15778 # Check whether --with-sysroot was given. 15779 if test "${with_sysroot+set}" = set; then : 15780 withval=$with_sysroot; SYSROOT=$with_sysroot 15781 15782 fi 15783 15784 15785 15786 # Check whether --with-tools-dir was given. 15787 if test "${with_tools_dir+set}" = set; then : 15788 withval=$with_tools_dir; 15789 if test "x$with_tools_dir" != x; then 15790 if test "x$TOOLCHAIN_PATH" = x; then 15791 TOOLCHAIN_PATH="$with_tools_dir" 15792 else 15793 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 15794 fi 15795 fi 15796 15797 15798 fi 15799 15800 15801 15802 # Check whether --with-toolchain-path was given. 15803 if test "${with_toolchain_path+set}" = set; then : 15804 withval=$with_toolchain_path; 15805 if test "x$with_toolchain_path" != x; then 15806 if test "x$TOOLCHAIN_PATH" = x; then 15807 TOOLCHAIN_PATH="$with_toolchain_path" 15808 else 15809 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15810 fi 15811 fi 15812 15813 15814 fi 15815 15816 15817 15818 # Check whether --with-extra-path was given. 15819 if test "${with_extra_path+set}" = set; then : 15820 withval=$with_extra_path; 15821 if test "x$with_extra_path" != x; then 15822 if test "x$EXTRA_PATH" = x; then 15823 EXTRA_PATH="$with_extra_path" 15824 else 15825 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15826 fi 15827 fi 15828 15829 15830 fi 15831 15832 15833 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15834 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 15835 # If not, detect if Xcode is installed by running xcodebuild -version 15836 # if no Xcode installed, xcodebuild exits with 1 15837 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15838 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15839 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15840 # fall back on the stub binary in /usr/bin/xcodebuild 15841 # Extract the first word of "xcodebuild", so it can be a program name with args. 15842 set dummy xcodebuild; ac_word=$2 15843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15844 $as_echo_n "checking for $ac_word... " >&6; } 15845 if ${ac_cv_path_XCODEBUILD+:} false; then : 15846 $as_echo_n "(cached) " >&6 15847 else 15848 case $XCODEBUILD in 15849 [\\/]* | ?:[\\/]*) 15850 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15851 ;; 15852 *) 15853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15854 for as_dir in $TOOLCHAIN_PATH 15855 do 15856 IFS=$as_save_IFS 15857 test -z "$as_dir" && as_dir=. 15858 for ac_exec_ext in '' $ac_executable_extensions; do 15859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15860 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15862 break 2 15863 fi 15864 done 15865 done 15866 IFS=$as_save_IFS 15867 15868 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15869 ;; 15870 esac 15871 fi 15872 XCODEBUILD=$ac_cv_path_XCODEBUILD 15873 if test -n "$XCODEBUILD"; then 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15875 $as_echo "$XCODEBUILD" >&6; } 15876 else 15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15878 $as_echo "no" >&6; } 15879 fi 15880 15881 15882 else 15883 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15884 # when only the command line tools are installed there are no SDKs, so headers 15885 # are copied into the system frameworks 15886 XCODEBUILD= 15887 15888 fi 15889 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15891 $as_echo_n "checking for sdk name... " >&6; } 15892 15893 # Check whether --with-sdk-name was given. 15894 if test "${with_sdk_name+set}" = set; then : 15895 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15896 15897 fi 15898 15899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15900 $as_echo "$SDKNAME" >&6; } 15901 15902 # if toolchain path is specified then don't rely on system headers, they may not compile 15903 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15904 test -z "$TOOLCHAIN_PATH" && \ 15905 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15906 15907 if test -z "$SYSROOT"; then 15908 if test -n "$XCODEBUILD"; then 15909 # if we don't have system headers, use default SDK name (last resort) 15910 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15911 SDKNAME=${SDKNAME:-macosx} 15912 fi 15913 15914 if test -n "$SDKNAME"; then 15915 # Call xcodebuild to determine SYSROOT 15916 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15917 fi 15918 else 15919 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15920 as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5 15921 fi 15922 fi 15923 else 15924 # warn user if --with-sdk-name was also set 15925 if test -n "$with_sdk_name"; then 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15927 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15928 fi 15929 fi 15930 15931 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15932 # If no system framework headers, then SYSROOT must be set, or we won't build 15933 as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5 15934 fi 15935 15936 # Perform a basic sanity test 15937 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15938 if test -z "$SYSROOT"; then 15939 as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5 15940 else 15941 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15942 fi 15943 fi 15944 15945 # set SDKROOT too, Xcode tools will pick it up 15946 SDKROOT=$SYSROOT 15947 15948 fi 15949 15950 # Prepend the extra path to the global path 15951 15952 if test "x$EXTRA_PATH" != x; then 15953 if test "x$PATH" = x; then 15954 PATH="$EXTRA_PATH" 15955 else 15956 PATH="$EXTRA_PATH:$PATH" 15957 fi 15958 fi 15959 15960 15961 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15962 # Add extra search paths on solaris for utilities like ar and as etc... 15963 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15964 fi 15965 15966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15967 $as_echo_n "checking for sysroot... " >&6; } 15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15969 $as_echo "$SYSROOT" >&6; } 15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15971 $as_echo_n "checking for toolchain path... " >&6; } 15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15973 $as_echo "$TOOLCHAIN_PATH" >&6; } 15974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15975 $as_echo_n "checking for extra path... " >&6; } 15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15977 $as_echo "$EXTRA_PATH" >&6; } 15978 15979 15980 # To properly create a configuration name, we need to have the OpenJDK target 15981 # and options (variants and debug level) parsed. 15982 15983 15984 15985 # Check whether --with-conf-name was given. 15986 if test "${with_conf_name+set}" = set; then : 15987 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15988 fi 15989 15990 15991 # Test from where we are running configure, in or outside of src root. 15992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15993 $as_echo_n "checking where to store configuration... " >&6; } 15994 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15995 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15996 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15997 # We are running configure from the src root. 15998 # Create a default ./build/target-variant-debuglevel output root. 15999 if test "x${CONF_NAME}" = x; then 16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 16001 $as_echo "in default location" >&6; } 16002 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 16003 else 16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 16005 $as_echo "in build directory with custom name" >&6; } 16006 fi 16007 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 16008 $MKDIR -p "$OUTPUT_ROOT" 16009 if test ! -d "$OUTPUT_ROOT"; then 16010 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 16011 fi 16012 else 16013 # We are running configure from outside of the src dir. 16014 # Then use the current directory as output dir! 16015 # If configuration is situated in normal build directory, just use the build 16016 # directory name as configuration name, otherwise use the complete path. 16017 if test "x${CONF_NAME}" = x; then 16018 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 16019 fi 16020 OUTPUT_ROOT="$CURDIR" 16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 16022 $as_echo "in current directory" >&6; } 16023 16024 # WARNING: This might be a bad thing to do. You need to be sure you want to 16025 # have a configuration in this directory. Do some sanity checks! 16026 16027 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 16028 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 16029 # other files 16030 files_present=`$LS $OUTPUT_ROOT` 16031 # Configure has already touched config.log and confdefs.h in the current dir when this check 16032 # is performed. 16033 filtered_files=`$ECHO "$files_present" \ 16034 | $SED -e 's/config.log//g' \ 16035 -e 's/configure.log//g' \ 16036 -e 's/confdefs.h//g' \ 16037 -e 's/ //g' \ 16038 | $TR -d '\n'` 16039 if test "x$filtered_files" != x; then 16040 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 16041 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 16042 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 16043 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 16045 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 16047 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 16049 $as_echo "$as_me: seriously mess up just about everything." >&6;} 16050 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 16051 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 16053 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 16054 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 16055 fi 16056 fi 16057 fi 16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 16059 $as_echo_n "checking what configuration name to use... " >&6; } 16060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 16061 $as_echo "$CONF_NAME" >&6; } 16062 16063 16064 # Only process if variable expands to non-empty 16065 16066 if test "x$OUTPUT_ROOT" != x; then 16067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16068 16069 # Input might be given as Windows format, start by converting to 16070 # unix format. 16071 path="$OUTPUT_ROOT" 16072 new_path=`$CYGPATH -u "$path"` 16073 16074 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16075 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16076 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16077 # "foo.exe" is OK but "foo" is an error. 16078 # 16079 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16080 # It is also a way to make sure we got the proper file name for the real test later on. 16081 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16082 if test "x$test_shortpath" = x; then 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16084 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16085 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 16086 fi 16087 16088 # Call helper function which possibly converts this using DOS-style short mode. 16089 # If so, the updated path is stored in $new_path. 16090 16091 input_path="$new_path" 16092 # Check if we need to convert this using DOS-style short mode. If the path 16093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16094 # take no chances and rewrite it. 16095 # Note: m4 eats our [], so we need to use [ and ] instead. 16096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16097 if test "x$has_forbidden_chars" != x; then 16098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16099 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16100 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16101 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16102 # Going to short mode and back again did indeed matter. Since short mode is 16103 # case insensitive, let's make it lowercase to improve readability. 16104 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16105 # Now convert it back to Unix-style (cygpath) 16106 input_path=`$CYGPATH -u "$shortmode_path"` 16107 new_path="$input_path" 16108 fi 16109 fi 16110 16111 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16112 if test "x$test_cygdrive_prefix" = x; then 16113 # As a simple fix, exclude /usr/bin since it's not a real path. 16114 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16115 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16116 # a path prefixed by /cygdrive for fixpath to work. 16117 new_path="$CYGWIN_ROOT_PATH$input_path" 16118 fi 16119 fi 16120 16121 16122 if test "x$path" != "x$new_path"; then 16123 OUTPUT_ROOT="$new_path" 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16125 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16126 fi 16127 16128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16129 16130 path="$OUTPUT_ROOT" 16131 has_colon=`$ECHO $path | $GREP ^.:` 16132 new_path="$path" 16133 if test "x$has_colon" = x; then 16134 # Not in mixed or Windows style, start by that. 16135 new_path=`cmd //c echo $path` 16136 fi 16137 16138 16139 input_path="$new_path" 16140 # Check if we need to convert this using DOS-style short mode. If the path 16141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16142 # take no chances and rewrite it. 16143 # Note: m4 eats our [], so we need to use [ and ] instead. 16144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16145 if test "x$has_forbidden_chars" != x; then 16146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16147 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16148 fi 16149 16150 16151 windows_path="$new_path" 16152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16153 unix_path=`$CYGPATH -u "$windows_path"` 16154 new_path="$unix_path" 16155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16157 new_path="$unix_path" 16158 fi 16159 16160 if test "x$path" != "x$new_path"; then 16161 OUTPUT_ROOT="$new_path" 16162 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 16163 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 16164 fi 16165 16166 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16167 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16168 16169 else 16170 # We're on a unix platform. Hooray! :) 16171 path="$OUTPUT_ROOT" 16172 has_space=`$ECHO "$path" | $GREP " "` 16173 if test "x$has_space" != x; then 16174 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 16175 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 16176 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16177 fi 16178 16179 # Use eval to expand a potential ~ 16180 eval path="$path" 16181 if test ! -f "$path" && test ! -d "$path"; then 16182 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 16183 fi 16184 16185 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 16186 fi 16187 fi 16188 16189 16190 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support" 16191 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 16192 16193 SPEC=$OUTPUT_ROOT/spec.gmk 16194 16195 CONF_NAME=$CONF_NAME 16196 16197 OUTPUT_ROOT=$OUTPUT_ROOT 16198 16199 16200 16201 # The spec.gmk file contains all variables for the make system. 16202 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 16203 16204 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 16205 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 16206 16207 # The bootcycle-spec.gmk file contains support for boot cycle builds. 16208 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 16209 16210 # The compare.sh is used to compare the build output to other builds. 16211 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 16212 16213 # The generated Makefile knows where the spec.gmk is and where the source is. 16214 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 16215 # which will look for generated configurations 16216 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 16217 16218 16219 16220 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 16221 16222 for ac_prog in apt-get yum port pkgutil pkgadd 16223 do 16224 # Extract the first word of "$ac_prog", so it can be a program name with args. 16225 set dummy $ac_prog; ac_word=$2 16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16227 $as_echo_n "checking for $ac_word... " >&6; } 16228 if ${ac_cv_prog_PKGHANDLER+:} false; then : 16229 $as_echo_n "(cached) " >&6 16230 else 16231 if test -n "$PKGHANDLER"; then 16232 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 16233 else 16234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16235 for as_dir in $PATH 16236 do 16237 IFS=$as_save_IFS 16238 test -z "$as_dir" && as_dir=. 16239 for ac_exec_ext in '' $ac_executable_extensions; do 16240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16241 ac_cv_prog_PKGHANDLER="$ac_prog" 16242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16243 break 2 16244 fi 16245 done 16246 done 16247 IFS=$as_save_IFS 16248 16249 fi 16250 fi 16251 PKGHANDLER=$ac_cv_prog_PKGHANDLER 16252 if test -n "$PKGHANDLER"; then 16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 16254 $as_echo "$PKGHANDLER" >&6; } 16255 else 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16257 $as_echo "no" >&6; } 16258 fi 16259 16260 16261 test -n "$PKGHANDLER" && break 16262 done 16263 16264 16265 16266 # Setup tools that requires more complex handling, or that is not needed by the configure script. 16267 16268 16269 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 16270 if test "x$MAKE" != x; then 16271 # User has supplied a make, test it. 16272 if test ! -f "$MAKE"; then 16273 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 16274 fi 16275 16276 MAKE_CANDIDATE=""$MAKE"" 16277 DESCRIPTION="user supplied MAKE=$MAKE" 16278 16279 # On Cygwin, we require a newer version of make than on other platforms 16280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16281 MAKE_VERSION_EXPR="-e 4\." 16282 MAKE_REQUIRED_VERSION="4.0" 16283 else 16284 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16285 MAKE_REQUIRED_VERSION="3.81" 16286 fi 16287 16288 if test "x$MAKE_CANDIDATE" != x; then 16289 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16290 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16291 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16292 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16293 if test "x$IS_GNU_MAKE" = x; then 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16295 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16296 else 16297 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16298 if test "x$IS_MODERN_MAKE" = x; then 16299 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16300 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16301 else 16302 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16304 MAKE_EXPECTED_ENV='cygwin' 16305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16306 MAKE_EXPECTED_ENV='msys' 16307 else 16308 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16309 fi 16310 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16311 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16312 else 16313 # Not relevant for non-Windows 16314 IS_MAKE_CORRECT_ENV=true 16315 fi 16316 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16317 { $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 16318 $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;} 16319 else 16320 FOUND_MAKE=$MAKE_CANDIDATE 16321 16322 # Only process if variable expands to non-empty 16323 16324 if test "x$FOUND_MAKE" != x; then 16325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16326 16327 # First separate the path from the arguments. This will split at the first 16328 # space. 16329 complete="$FOUND_MAKE" 16330 path="${complete%% *}" 16331 tmp="$complete EOL" 16332 arguments="${tmp#* }" 16333 16334 # Input might be given as Windows format, start by converting to 16335 # unix format. 16336 new_path=`$CYGPATH -u "$path"` 16337 16338 # Now try to locate executable using which 16339 new_path=`$WHICH "$new_path" 2> /dev/null` 16340 # bat and cmd files are not always considered executable in cygwin causing which 16341 # to not find them 16342 if test "x$new_path" = x \ 16343 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16344 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16345 new_path=`$CYGPATH -u "$path"` 16346 fi 16347 if test "x$new_path" = x; then 16348 # Oops. Which didn't find the executable. 16349 # The splitting of arguments from the executable at a space might have been incorrect, 16350 # since paths with space are more likely in Windows. Give it another try with the whole 16351 # argument. 16352 path="$complete" 16353 arguments="EOL" 16354 new_path=`$CYGPATH -u "$path"` 16355 new_path=`$WHICH "$new_path" 2> /dev/null` 16356 # bat and cmd files are not always considered executable in cygwin causing which 16357 # to not find them 16358 if test "x$new_path" = x \ 16359 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16360 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16361 new_path=`$CYGPATH -u "$path"` 16362 fi 16363 if test "x$new_path" = x; then 16364 # It's still not found. Now this is an unrecoverable error. 16365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16366 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16367 has_space=`$ECHO "$complete" | $GREP " "` 16368 if test "x$has_space" != x; then 16369 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16370 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16371 fi 16372 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16373 fi 16374 fi 16375 16376 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16377 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16378 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16379 # "foo.exe" is OK but "foo" is an error. 16380 # 16381 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16382 # It is also a way to make sure we got the proper file name for the real test later on. 16383 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16384 if test "x$test_shortpath" = x; then 16385 # Short path failed, file does not exist as specified. 16386 # Try adding .exe or .cmd 16387 if test -f "${new_path}.exe"; then 16388 input_to_shortpath="${new_path}.exe" 16389 elif test -f "${new_path}.cmd"; then 16390 input_to_shortpath="${new_path}.cmd" 16391 else 16392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16393 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16394 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16395 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16396 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16397 fi 16398 else 16399 input_to_shortpath="$new_path" 16400 fi 16401 16402 # Call helper function which possibly converts this using DOS-style short mode. 16403 # If so, the updated path is stored in $new_path. 16404 new_path="$input_to_shortpath" 16405 16406 input_path="$input_to_shortpath" 16407 # Check if we need to convert this using DOS-style short mode. If the path 16408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16409 # take no chances and rewrite it. 16410 # Note: m4 eats our [], so we need to use [ and ] instead. 16411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16412 if test "x$has_forbidden_chars" != x; then 16413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16414 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16415 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16416 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16417 # Going to short mode and back again did indeed matter. Since short mode is 16418 # case insensitive, let's make it lowercase to improve readability. 16419 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16420 # Now convert it back to Unix-style (cygpath) 16421 input_path=`$CYGPATH -u "$shortmode_path"` 16422 new_path="$input_path" 16423 fi 16424 fi 16425 16426 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16427 if test "x$test_cygdrive_prefix" = x; then 16428 # As a simple fix, exclude /usr/bin since it's not a real path. 16429 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16430 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16431 # a path prefixed by /cygdrive for fixpath to work. 16432 new_path="$CYGWIN_ROOT_PATH$input_path" 16433 fi 16434 fi 16435 16436 # remove trailing .exe if any 16437 new_path="${new_path/%.exe/}" 16438 16439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16440 16441 # First separate the path from the arguments. This will split at the first 16442 # space. 16443 complete="$FOUND_MAKE" 16444 path="${complete%% *}" 16445 tmp="$complete EOL" 16446 arguments="${tmp#* }" 16447 16448 # Input might be given as Windows format, start by converting to 16449 # unix format. 16450 new_path="$path" 16451 16452 windows_path="$new_path" 16453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16454 unix_path=`$CYGPATH -u "$windows_path"` 16455 new_path="$unix_path" 16456 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16457 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16458 new_path="$unix_path" 16459 fi 16460 16461 16462 # Now try to locate executable using which 16463 new_path=`$WHICH "$new_path" 2> /dev/null` 16464 16465 if test "x$new_path" = x; then 16466 # Oops. Which didn't find the executable. 16467 # The splitting of arguments from the executable at a space might have been incorrect, 16468 # since paths with space are more likely in Windows. Give it another try with the whole 16469 # argument. 16470 path="$complete" 16471 arguments="EOL" 16472 new_path="$path" 16473 16474 windows_path="$new_path" 16475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16476 unix_path=`$CYGPATH -u "$windows_path"` 16477 new_path="$unix_path" 16478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16480 new_path="$unix_path" 16481 fi 16482 16483 16484 new_path=`$WHICH "$new_path" 2> /dev/null` 16485 # bat and cmd files are not always considered executable in MSYS causing which 16486 # to not find them 16487 if test "x$new_path" = x \ 16488 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16489 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16490 new_path="$path" 16491 16492 windows_path="$new_path" 16493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16494 unix_path=`$CYGPATH -u "$windows_path"` 16495 new_path="$unix_path" 16496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16497 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16498 new_path="$unix_path" 16499 fi 16500 16501 fi 16502 16503 if test "x$new_path" = x; then 16504 # It's still not found. Now this is an unrecoverable error. 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16506 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16507 has_space=`$ECHO "$complete" | $GREP " "` 16508 if test "x$has_space" != x; then 16509 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16510 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16511 fi 16512 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16513 fi 16514 fi 16515 16516 # Now new_path has a complete unix path to the binary 16517 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16518 # Keep paths in /bin as-is, but remove trailing .exe if any 16519 new_path="${new_path/%.exe/}" 16520 # Do not save /bin paths to all_fixpath_prefixes! 16521 else 16522 # Not in mixed or Windows style, start by that. 16523 new_path=`cmd //c echo $new_path` 16524 16525 input_path="$new_path" 16526 # Check if we need to convert this using DOS-style short mode. If the path 16527 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16528 # take no chances and rewrite it. 16529 # Note: m4 eats our [], so we need to use [ and ] instead. 16530 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16531 if test "x$has_forbidden_chars" != x; then 16532 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16533 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16534 fi 16535 16536 # Output is in $new_path 16537 16538 windows_path="$new_path" 16539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16540 unix_path=`$CYGPATH -u "$windows_path"` 16541 new_path="$unix_path" 16542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16544 new_path="$unix_path" 16545 fi 16546 16547 # remove trailing .exe if any 16548 new_path="${new_path/%.exe/}" 16549 16550 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16551 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16552 fi 16553 16554 else 16555 # We're on a unix platform. Hooray! :) 16556 # First separate the path from the arguments. This will split at the first 16557 # space. 16558 complete="$FOUND_MAKE" 16559 path="${complete%% *}" 16560 tmp="$complete EOL" 16561 arguments="${tmp#* }" 16562 16563 # Cannot rely on the command "which" here since it doesn't always work. 16564 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16565 if test -z "$is_absolute_path"; then 16566 # Path to executable is not absolute. Find it. 16567 IFS_save="$IFS" 16568 IFS=: 16569 for p in $PATH; do 16570 if test -f "$p/$path" && test -x "$p/$path"; then 16571 new_path="$p/$path" 16572 break 16573 fi 16574 done 16575 IFS="$IFS_save" 16576 else 16577 # This is an absolute path, we can use it without further modifications. 16578 new_path="$path" 16579 fi 16580 16581 if test "x$new_path" = x; then 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16583 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16584 has_space=`$ECHO "$complete" | $GREP " "` 16585 if test "x$has_space" != x; then 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16587 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16588 fi 16589 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16590 fi 16591 fi 16592 16593 # Now join together the path and the arguments once again 16594 if test "x$arguments" != xEOL; then 16595 new_complete="$new_path ${arguments% *}" 16596 else 16597 new_complete="$new_path" 16598 fi 16599 16600 if test "x$complete" != "x$new_complete"; then 16601 FOUND_MAKE="$new_complete" 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16603 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16604 fi 16605 fi 16606 16607 fi 16608 fi 16609 fi 16610 fi 16611 16612 if test "x$FOUND_MAKE" = x; then 16613 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 16614 fi 16615 else 16616 # Try our hardest to locate a correct version of GNU make 16617 for ac_prog in gmake 16618 do 16619 # Extract the first word of "$ac_prog", so it can be a program name with args. 16620 set dummy $ac_prog; ac_word=$2 16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16622 $as_echo_n "checking for $ac_word... " >&6; } 16623 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 16624 $as_echo_n "(cached) " >&6 16625 else 16626 case $CHECK_GMAKE in 16627 [\\/]* | ?:[\\/]*) 16628 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 16629 ;; 16630 *) 16631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16632 for as_dir in $PATH 16633 do 16634 IFS=$as_save_IFS 16635 test -z "$as_dir" && as_dir=. 16636 for ac_exec_ext in '' $ac_executable_extensions; do 16637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16638 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16640 break 2 16641 fi 16642 done 16643 done 16644 IFS=$as_save_IFS 16645 16646 ;; 16647 esac 16648 fi 16649 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 16650 if test -n "$CHECK_GMAKE"; then 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 16652 $as_echo "$CHECK_GMAKE" >&6; } 16653 else 16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16655 $as_echo "no" >&6; } 16656 fi 16657 16658 16659 test -n "$CHECK_GMAKE" && break 16660 done 16661 16662 16663 MAKE_CANDIDATE=""$CHECK_GMAKE"" 16664 DESCRIPTION="gmake in PATH" 16665 16666 # On Cygwin, we require a newer version of make than on other platforms 16667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16668 MAKE_VERSION_EXPR="-e 4\." 16669 MAKE_REQUIRED_VERSION="4.0" 16670 else 16671 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 16672 MAKE_REQUIRED_VERSION="3.81" 16673 fi 16674 16675 if test "x$MAKE_CANDIDATE" != x; then 16676 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16677 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16678 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16679 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16680 if test "x$IS_GNU_MAKE" = x; then 16681 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16682 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16683 else 16684 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 16685 if test "x$IS_MODERN_MAKE" = x; then 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16687 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16688 else 16689 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16691 MAKE_EXPECTED_ENV='cygwin' 16692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16693 MAKE_EXPECTED_ENV='msys' 16694 else 16695 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16696 fi 16697 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16698 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16699 else 16700 # Not relevant for non-Windows 16701 IS_MAKE_CORRECT_ENV=true 16702 fi 16703 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16704 { $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 16705 $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;} 16706 else 16707 FOUND_MAKE=$MAKE_CANDIDATE 16708 16709 # Only process if variable expands to non-empty 16710 16711 if test "x$FOUND_MAKE" != x; then 16712 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16713 16714 # First separate the path from the arguments. This will split at the first 16715 # space. 16716 complete="$FOUND_MAKE" 16717 path="${complete%% *}" 16718 tmp="$complete EOL" 16719 arguments="${tmp#* }" 16720 16721 # Input might be given as Windows format, start by converting to 16722 # unix format. 16723 new_path=`$CYGPATH -u "$path"` 16724 16725 # Now try to locate executable using which 16726 new_path=`$WHICH "$new_path" 2> /dev/null` 16727 # bat and cmd files are not always considered executable in cygwin causing which 16728 # to not find them 16729 if test "x$new_path" = x \ 16730 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16731 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16732 new_path=`$CYGPATH -u "$path"` 16733 fi 16734 if test "x$new_path" = x; then 16735 # Oops. Which didn't find the executable. 16736 # The splitting of arguments from the executable at a space might have been incorrect, 16737 # since paths with space are more likely in Windows. Give it another try with the whole 16738 # argument. 16739 path="$complete" 16740 arguments="EOL" 16741 new_path=`$CYGPATH -u "$path"` 16742 new_path=`$WHICH "$new_path" 2> /dev/null` 16743 # bat and cmd files are not always considered executable in cygwin causing which 16744 # to not find them 16745 if test "x$new_path" = x \ 16746 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16747 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16748 new_path=`$CYGPATH -u "$path"` 16749 fi 16750 if test "x$new_path" = x; then 16751 # It's still not found. Now this is an unrecoverable error. 16752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16753 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16754 has_space=`$ECHO "$complete" | $GREP " "` 16755 if test "x$has_space" != x; then 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16758 fi 16759 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16760 fi 16761 fi 16762 16763 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16764 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16765 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16766 # "foo.exe" is OK but "foo" is an error. 16767 # 16768 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16769 # It is also a way to make sure we got the proper file name for the real test later on. 16770 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16771 if test "x$test_shortpath" = x; then 16772 # Short path failed, file does not exist as specified. 16773 # Try adding .exe or .cmd 16774 if test -f "${new_path}.exe"; then 16775 input_to_shortpath="${new_path}.exe" 16776 elif test -f "${new_path}.cmd"; then 16777 input_to_shortpath="${new_path}.cmd" 16778 else 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16780 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16782 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16783 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16784 fi 16785 else 16786 input_to_shortpath="$new_path" 16787 fi 16788 16789 # Call helper function which possibly converts this using DOS-style short mode. 16790 # If so, the updated path is stored in $new_path. 16791 new_path="$input_to_shortpath" 16792 16793 input_path="$input_to_shortpath" 16794 # Check if we need to convert this using DOS-style short mode. If the path 16795 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16796 # take no chances and rewrite it. 16797 # Note: m4 eats our [], so we need to use [ and ] instead. 16798 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16799 if test "x$has_forbidden_chars" != x; then 16800 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16801 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16802 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16803 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16804 # Going to short mode and back again did indeed matter. Since short mode is 16805 # case insensitive, let's make it lowercase to improve readability. 16806 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16807 # Now convert it back to Unix-style (cygpath) 16808 input_path=`$CYGPATH -u "$shortmode_path"` 16809 new_path="$input_path" 16810 fi 16811 fi 16812 16813 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16814 if test "x$test_cygdrive_prefix" = x; then 16815 # As a simple fix, exclude /usr/bin since it's not a real path. 16816 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16817 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16818 # a path prefixed by /cygdrive for fixpath to work. 16819 new_path="$CYGWIN_ROOT_PATH$input_path" 16820 fi 16821 fi 16822 16823 # remove trailing .exe if any 16824 new_path="${new_path/%.exe/}" 16825 16826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16827 16828 # First separate the path from the arguments. This will split at the first 16829 # space. 16830 complete="$FOUND_MAKE" 16831 path="${complete%% *}" 16832 tmp="$complete EOL" 16833 arguments="${tmp#* }" 16834 16835 # Input might be given as Windows format, start by converting to 16836 # unix format. 16837 new_path="$path" 16838 16839 windows_path="$new_path" 16840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16841 unix_path=`$CYGPATH -u "$windows_path"` 16842 new_path="$unix_path" 16843 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16844 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16845 new_path="$unix_path" 16846 fi 16847 16848 16849 # Now try to locate executable using which 16850 new_path=`$WHICH "$new_path" 2> /dev/null` 16851 16852 if test "x$new_path" = x; then 16853 # Oops. Which didn't find the executable. 16854 # The splitting of arguments from the executable at a space might have been incorrect, 16855 # since paths with space are more likely in Windows. Give it another try with the whole 16856 # argument. 16857 path="$complete" 16858 arguments="EOL" 16859 new_path="$path" 16860 16861 windows_path="$new_path" 16862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16863 unix_path=`$CYGPATH -u "$windows_path"` 16864 new_path="$unix_path" 16865 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16866 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16867 new_path="$unix_path" 16868 fi 16869 16870 16871 new_path=`$WHICH "$new_path" 2> /dev/null` 16872 # bat and cmd files are not always considered executable in MSYS causing which 16873 # to not find them 16874 if test "x$new_path" = x \ 16875 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16876 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16877 new_path="$path" 16878 16879 windows_path="$new_path" 16880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16881 unix_path=`$CYGPATH -u "$windows_path"` 16882 new_path="$unix_path" 16883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16884 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16885 new_path="$unix_path" 16886 fi 16887 16888 fi 16889 16890 if test "x$new_path" = x; then 16891 # It's still not found. Now this is an unrecoverable error. 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16893 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16894 has_space=`$ECHO "$complete" | $GREP " "` 16895 if test "x$has_space" != x; then 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16897 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16898 fi 16899 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16900 fi 16901 fi 16902 16903 # Now new_path has a complete unix path to the binary 16904 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16905 # Keep paths in /bin as-is, but remove trailing .exe if any 16906 new_path="${new_path/%.exe/}" 16907 # Do not save /bin paths to all_fixpath_prefixes! 16908 else 16909 # Not in mixed or Windows style, start by that. 16910 new_path=`cmd //c echo $new_path` 16911 16912 input_path="$new_path" 16913 # Check if we need to convert this using DOS-style short mode. If the path 16914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16915 # take no chances and rewrite it. 16916 # Note: m4 eats our [], so we need to use [ and ] instead. 16917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16918 if test "x$has_forbidden_chars" != x; then 16919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16920 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16921 fi 16922 16923 # Output is in $new_path 16924 16925 windows_path="$new_path" 16926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16927 unix_path=`$CYGPATH -u "$windows_path"` 16928 new_path="$unix_path" 16929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16931 new_path="$unix_path" 16932 fi 16933 16934 # remove trailing .exe if any 16935 new_path="${new_path/%.exe/}" 16936 16937 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16938 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16939 fi 16940 16941 else 16942 # We're on a unix platform. Hooray! :) 16943 # First separate the path from the arguments. This will split at the first 16944 # space. 16945 complete="$FOUND_MAKE" 16946 path="${complete%% *}" 16947 tmp="$complete EOL" 16948 arguments="${tmp#* }" 16949 16950 # Cannot rely on the command "which" here since it doesn't always work. 16951 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16952 if test -z "$is_absolute_path"; then 16953 # Path to executable is not absolute. Find it. 16954 IFS_save="$IFS" 16955 IFS=: 16956 for p in $PATH; do 16957 if test -f "$p/$path" && test -x "$p/$path"; then 16958 new_path="$p/$path" 16959 break 16960 fi 16961 done 16962 IFS="$IFS_save" 16963 else 16964 # This is an absolute path, we can use it without further modifications. 16965 new_path="$path" 16966 fi 16967 16968 if test "x$new_path" = x; then 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16970 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16971 has_space=`$ECHO "$complete" | $GREP " "` 16972 if test "x$has_space" != x; then 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16974 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16975 fi 16976 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16977 fi 16978 fi 16979 16980 # Now join together the path and the arguments once again 16981 if test "x$arguments" != xEOL; then 16982 new_complete="$new_path ${arguments% *}" 16983 else 16984 new_complete="$new_path" 16985 fi 16986 16987 if test "x$complete" != "x$new_complete"; then 16988 FOUND_MAKE="$new_complete" 16989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16990 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16991 fi 16992 fi 16993 16994 fi 16995 fi 16996 fi 16997 fi 16998 16999 17000 if test "x$FOUND_MAKE" = x; then 17001 for ac_prog in make 17002 do 17003 # Extract the first word of "$ac_prog", so it can be a program name with args. 17004 set dummy $ac_prog; ac_word=$2 17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17006 $as_echo_n "checking for $ac_word... " >&6; } 17007 if ${ac_cv_path_CHECK_MAKE+:} false; then : 17008 $as_echo_n "(cached) " >&6 17009 else 17010 case $CHECK_MAKE in 17011 [\\/]* | ?:[\\/]*) 17012 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 17013 ;; 17014 *) 17015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17016 for as_dir in $PATH 17017 do 17018 IFS=$as_save_IFS 17019 test -z "$as_dir" && as_dir=. 17020 for ac_exec_ext in '' $ac_executable_extensions; do 17021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17022 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 17023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17024 break 2 17025 fi 17026 done 17027 done 17028 IFS=$as_save_IFS 17029 17030 ;; 17031 esac 17032 fi 17033 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 17034 if test -n "$CHECK_MAKE"; then 17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 17036 $as_echo "$CHECK_MAKE" >&6; } 17037 else 17038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17039 $as_echo "no" >&6; } 17040 fi 17041 17042 17043 test -n "$CHECK_MAKE" && break 17044 done 17045 17046 17047 MAKE_CANDIDATE=""$CHECK_MAKE"" 17048 DESCRIPTION="make in PATH" 17049 17050 # On Cygwin, we require a newer version of make than on other platforms 17051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17052 MAKE_VERSION_EXPR="-e 4\." 17053 MAKE_REQUIRED_VERSION="4.0" 17054 else 17055 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17056 MAKE_REQUIRED_VERSION="3.81" 17057 fi 17058 17059 if test "x$MAKE_CANDIDATE" != x; then 17060 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17061 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17062 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17063 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17064 if test "x$IS_GNU_MAKE" = x; then 17065 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17066 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17067 else 17068 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17069 if test "x$IS_MODERN_MAKE" = x; then 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17071 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17072 else 17073 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17075 MAKE_EXPECTED_ENV='cygwin' 17076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17077 MAKE_EXPECTED_ENV='msys' 17078 else 17079 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17080 fi 17081 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17082 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17083 else 17084 # Not relevant for non-Windows 17085 IS_MAKE_CORRECT_ENV=true 17086 fi 17087 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17088 { $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 17089 $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;} 17090 else 17091 FOUND_MAKE=$MAKE_CANDIDATE 17092 17093 # Only process if variable expands to non-empty 17094 17095 if test "x$FOUND_MAKE" != x; then 17096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17097 17098 # First separate the path from the arguments. This will split at the first 17099 # space. 17100 complete="$FOUND_MAKE" 17101 path="${complete%% *}" 17102 tmp="$complete EOL" 17103 arguments="${tmp#* }" 17104 17105 # Input might be given as Windows format, start by converting to 17106 # unix format. 17107 new_path=`$CYGPATH -u "$path"` 17108 17109 # Now try to locate executable using which 17110 new_path=`$WHICH "$new_path" 2> /dev/null` 17111 # bat and cmd files are not always considered executable in cygwin causing which 17112 # to not find them 17113 if test "x$new_path" = x \ 17114 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17115 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17116 new_path=`$CYGPATH -u "$path"` 17117 fi 17118 if test "x$new_path" = x; then 17119 # Oops. Which didn't find the executable. 17120 # The splitting of arguments from the executable at a space might have been incorrect, 17121 # since paths with space are more likely in Windows. Give it another try with the whole 17122 # argument. 17123 path="$complete" 17124 arguments="EOL" 17125 new_path=`$CYGPATH -u "$path"` 17126 new_path=`$WHICH "$new_path" 2> /dev/null` 17127 # bat and cmd files are not always considered executable in cygwin causing which 17128 # to not find them 17129 if test "x$new_path" = x \ 17130 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17131 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17132 new_path=`$CYGPATH -u "$path"` 17133 fi 17134 if test "x$new_path" = x; then 17135 # It's still not found. Now this is an unrecoverable error. 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17137 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17138 has_space=`$ECHO "$complete" | $GREP " "` 17139 if test "x$has_space" != x; then 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17142 fi 17143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17144 fi 17145 fi 17146 17147 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17148 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17149 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17150 # "foo.exe" is OK but "foo" is an error. 17151 # 17152 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17153 # It is also a way to make sure we got the proper file name for the real test later on. 17154 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17155 if test "x$test_shortpath" = x; then 17156 # Short path failed, file does not exist as specified. 17157 # Try adding .exe or .cmd 17158 if test -f "${new_path}.exe"; then 17159 input_to_shortpath="${new_path}.exe" 17160 elif test -f "${new_path}.cmd"; then 17161 input_to_shortpath="${new_path}.cmd" 17162 else 17163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17164 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17165 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17166 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17167 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17168 fi 17169 else 17170 input_to_shortpath="$new_path" 17171 fi 17172 17173 # Call helper function which possibly converts this using DOS-style short mode. 17174 # If so, the updated path is stored in $new_path. 17175 new_path="$input_to_shortpath" 17176 17177 input_path="$input_to_shortpath" 17178 # Check if we need to convert this using DOS-style short mode. If the path 17179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17180 # take no chances and rewrite it. 17181 # Note: m4 eats our [], so we need to use [ and ] instead. 17182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17183 if test "x$has_forbidden_chars" != x; then 17184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17188 # Going to short mode and back again did indeed matter. Since short mode is 17189 # case insensitive, let's make it lowercase to improve readability. 17190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17191 # Now convert it back to Unix-style (cygpath) 17192 input_path=`$CYGPATH -u "$shortmode_path"` 17193 new_path="$input_path" 17194 fi 17195 fi 17196 17197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17198 if test "x$test_cygdrive_prefix" = x; then 17199 # As a simple fix, exclude /usr/bin since it's not a real path. 17200 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17202 # a path prefixed by /cygdrive for fixpath to work. 17203 new_path="$CYGWIN_ROOT_PATH$input_path" 17204 fi 17205 fi 17206 17207 # remove trailing .exe if any 17208 new_path="${new_path/%.exe/}" 17209 17210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17211 17212 # First separate the path from the arguments. This will split at the first 17213 # space. 17214 complete="$FOUND_MAKE" 17215 path="${complete%% *}" 17216 tmp="$complete EOL" 17217 arguments="${tmp#* }" 17218 17219 # Input might be given as Windows format, start by converting to 17220 # unix format. 17221 new_path="$path" 17222 17223 windows_path="$new_path" 17224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17225 unix_path=`$CYGPATH -u "$windows_path"` 17226 new_path="$unix_path" 17227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17229 new_path="$unix_path" 17230 fi 17231 17232 17233 # Now try to locate executable using which 17234 new_path=`$WHICH "$new_path" 2> /dev/null` 17235 17236 if test "x$new_path" = x; then 17237 # Oops. Which didn't find the executable. 17238 # The splitting of arguments from the executable at a space might have been incorrect, 17239 # since paths with space are more likely in Windows. Give it another try with the whole 17240 # argument. 17241 path="$complete" 17242 arguments="EOL" 17243 new_path="$path" 17244 17245 windows_path="$new_path" 17246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17247 unix_path=`$CYGPATH -u "$windows_path"` 17248 new_path="$unix_path" 17249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17251 new_path="$unix_path" 17252 fi 17253 17254 17255 new_path=`$WHICH "$new_path" 2> /dev/null` 17256 # bat and cmd files are not always considered executable in MSYS causing which 17257 # to not find them 17258 if test "x$new_path" = x \ 17259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17261 new_path="$path" 17262 17263 windows_path="$new_path" 17264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17265 unix_path=`$CYGPATH -u "$windows_path"` 17266 new_path="$unix_path" 17267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17269 new_path="$unix_path" 17270 fi 17271 17272 fi 17273 17274 if test "x$new_path" = x; then 17275 # It's still not found. Now this is an unrecoverable error. 17276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17277 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17278 has_space=`$ECHO "$complete" | $GREP " "` 17279 if test "x$has_space" != x; then 17280 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17281 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17282 fi 17283 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17284 fi 17285 fi 17286 17287 # Now new_path has a complete unix path to the binary 17288 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17289 # Keep paths in /bin as-is, but remove trailing .exe if any 17290 new_path="${new_path/%.exe/}" 17291 # Do not save /bin paths to all_fixpath_prefixes! 17292 else 17293 # Not in mixed or Windows style, start by that. 17294 new_path=`cmd //c echo $new_path` 17295 17296 input_path="$new_path" 17297 # Check if we need to convert this using DOS-style short mode. If the path 17298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17299 # take no chances and rewrite it. 17300 # Note: m4 eats our [], so we need to use [ and ] instead. 17301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17302 if test "x$has_forbidden_chars" != x; then 17303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17304 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17305 fi 17306 17307 # Output is in $new_path 17308 17309 windows_path="$new_path" 17310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17311 unix_path=`$CYGPATH -u "$windows_path"` 17312 new_path="$unix_path" 17313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17315 new_path="$unix_path" 17316 fi 17317 17318 # remove trailing .exe if any 17319 new_path="${new_path/%.exe/}" 17320 17321 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17322 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17323 fi 17324 17325 else 17326 # We're on a unix platform. Hooray! :) 17327 # First separate the path from the arguments. This will split at the first 17328 # space. 17329 complete="$FOUND_MAKE" 17330 path="${complete%% *}" 17331 tmp="$complete EOL" 17332 arguments="${tmp#* }" 17333 17334 # Cannot rely on the command "which" here since it doesn't always work. 17335 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17336 if test -z "$is_absolute_path"; then 17337 # Path to executable is not absolute. Find it. 17338 IFS_save="$IFS" 17339 IFS=: 17340 for p in $PATH; do 17341 if test -f "$p/$path" && test -x "$p/$path"; then 17342 new_path="$p/$path" 17343 break 17344 fi 17345 done 17346 IFS="$IFS_save" 17347 else 17348 # This is an absolute path, we can use it without further modifications. 17349 new_path="$path" 17350 fi 17351 17352 if test "x$new_path" = x; then 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17354 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17355 has_space=`$ECHO "$complete" | $GREP " "` 17356 if test "x$has_space" != x; then 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17358 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17359 fi 17360 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17361 fi 17362 fi 17363 17364 # Now join together the path and the arguments once again 17365 if test "x$arguments" != xEOL; then 17366 new_complete="$new_path ${arguments% *}" 17367 else 17368 new_complete="$new_path" 17369 fi 17370 17371 if test "x$complete" != "x$new_complete"; then 17372 FOUND_MAKE="$new_complete" 17373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17374 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17375 fi 17376 fi 17377 17378 fi 17379 fi 17380 fi 17381 fi 17382 17383 fi 17384 17385 if test "x$FOUND_MAKE" = x; then 17386 if test "x$TOOLCHAIN_PATH" != x; then 17387 # We have a toolchain path, check that as well before giving up. 17388 OLD_PATH=$PATH 17389 PATH=$TOOLCHAIN_PATH:$PATH 17390 for ac_prog in gmake 17391 do 17392 # Extract the first word of "$ac_prog", so it can be a program name with args. 17393 set dummy $ac_prog; ac_word=$2 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17395 $as_echo_n "checking for $ac_word... " >&6; } 17396 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 17397 $as_echo_n "(cached) " >&6 17398 else 17399 case $CHECK_TOOLSDIR_GMAKE in 17400 [\\/]* | ?:[\\/]*) 17401 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 17402 ;; 17403 *) 17404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17405 for as_dir in $PATH 17406 do 17407 IFS=$as_save_IFS 17408 test -z "$as_dir" && as_dir=. 17409 for ac_exec_ext in '' $ac_executable_extensions; do 17410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17411 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17413 break 2 17414 fi 17415 done 17416 done 17417 IFS=$as_save_IFS 17418 17419 ;; 17420 esac 17421 fi 17422 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 17423 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 17425 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 17426 else 17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17428 $as_echo "no" >&6; } 17429 fi 17430 17431 17432 test -n "$CHECK_TOOLSDIR_GMAKE" && break 17433 done 17434 17435 17436 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 17437 DESCRIPTION="gmake in tools-dir" 17438 17439 # On Cygwin, we require a newer version of make than on other platforms 17440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17441 MAKE_VERSION_EXPR="-e 4\." 17442 MAKE_REQUIRED_VERSION="4.0" 17443 else 17444 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17445 MAKE_REQUIRED_VERSION="3.81" 17446 fi 17447 17448 if test "x$MAKE_CANDIDATE" != x; then 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17450 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17451 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17452 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17453 if test "x$IS_GNU_MAKE" = x; then 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17455 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17456 else 17457 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17458 if test "x$IS_MODERN_MAKE" = x; then 17459 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17460 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17461 else 17462 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17464 MAKE_EXPECTED_ENV='cygwin' 17465 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17466 MAKE_EXPECTED_ENV='msys' 17467 else 17468 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17469 fi 17470 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17471 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17472 else 17473 # Not relevant for non-Windows 17474 IS_MAKE_CORRECT_ENV=true 17475 fi 17476 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17477 { $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 17478 $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;} 17479 else 17480 FOUND_MAKE=$MAKE_CANDIDATE 17481 17482 # Only process if variable expands to non-empty 17483 17484 if test "x$FOUND_MAKE" != x; then 17485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17486 17487 # First separate the path from the arguments. This will split at the first 17488 # space. 17489 complete="$FOUND_MAKE" 17490 path="${complete%% *}" 17491 tmp="$complete EOL" 17492 arguments="${tmp#* }" 17493 17494 # Input might be given as Windows format, start by converting to 17495 # unix format. 17496 new_path=`$CYGPATH -u "$path"` 17497 17498 # Now try to locate executable using which 17499 new_path=`$WHICH "$new_path" 2> /dev/null` 17500 # bat and cmd files are not always considered executable in cygwin causing which 17501 # to not find them 17502 if test "x$new_path" = x \ 17503 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17504 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17505 new_path=`$CYGPATH -u "$path"` 17506 fi 17507 if test "x$new_path" = x; then 17508 # Oops. Which didn't find the executable. 17509 # The splitting of arguments from the executable at a space might have been incorrect, 17510 # since paths with space are more likely in Windows. Give it another try with the whole 17511 # argument. 17512 path="$complete" 17513 arguments="EOL" 17514 new_path=`$CYGPATH -u "$path"` 17515 new_path=`$WHICH "$new_path" 2> /dev/null` 17516 # bat and cmd files are not always considered executable in cygwin causing which 17517 # to not find them 17518 if test "x$new_path" = x \ 17519 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17520 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17521 new_path=`$CYGPATH -u "$path"` 17522 fi 17523 if test "x$new_path" = x; then 17524 # It's still not found. Now this is an unrecoverable error. 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17526 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17527 has_space=`$ECHO "$complete" | $GREP " "` 17528 if test "x$has_space" != x; then 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17530 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17531 fi 17532 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17533 fi 17534 fi 17535 17536 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17537 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17538 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17539 # "foo.exe" is OK but "foo" is an error. 17540 # 17541 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17542 # It is also a way to make sure we got the proper file name for the real test later on. 17543 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17544 if test "x$test_shortpath" = x; then 17545 # Short path failed, file does not exist as specified. 17546 # Try adding .exe or .cmd 17547 if test -f "${new_path}.exe"; then 17548 input_to_shortpath="${new_path}.exe" 17549 elif test -f "${new_path}.cmd"; then 17550 input_to_shortpath="${new_path}.cmd" 17551 else 17552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17553 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17555 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17556 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17557 fi 17558 else 17559 input_to_shortpath="$new_path" 17560 fi 17561 17562 # Call helper function which possibly converts this using DOS-style short mode. 17563 # If so, the updated path is stored in $new_path. 17564 new_path="$input_to_shortpath" 17565 17566 input_path="$input_to_shortpath" 17567 # Check if we need to convert this using DOS-style short mode. If the path 17568 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17569 # take no chances and rewrite it. 17570 # Note: m4 eats our [], so we need to use [ and ] instead. 17571 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17572 if test "x$has_forbidden_chars" != x; then 17573 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17574 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17575 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17576 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17577 # Going to short mode and back again did indeed matter. Since short mode is 17578 # case insensitive, let's make it lowercase to improve readability. 17579 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17580 # Now convert it back to Unix-style (cygpath) 17581 input_path=`$CYGPATH -u "$shortmode_path"` 17582 new_path="$input_path" 17583 fi 17584 fi 17585 17586 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17587 if test "x$test_cygdrive_prefix" = x; then 17588 # As a simple fix, exclude /usr/bin since it's not a real path. 17589 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17590 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17591 # a path prefixed by /cygdrive for fixpath to work. 17592 new_path="$CYGWIN_ROOT_PATH$input_path" 17593 fi 17594 fi 17595 17596 # remove trailing .exe if any 17597 new_path="${new_path/%.exe/}" 17598 17599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17600 17601 # First separate the path from the arguments. This will split at the first 17602 # space. 17603 complete="$FOUND_MAKE" 17604 path="${complete%% *}" 17605 tmp="$complete EOL" 17606 arguments="${tmp#* }" 17607 17608 # Input might be given as Windows format, start by converting to 17609 # unix format. 17610 new_path="$path" 17611 17612 windows_path="$new_path" 17613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17614 unix_path=`$CYGPATH -u "$windows_path"` 17615 new_path="$unix_path" 17616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17617 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17618 new_path="$unix_path" 17619 fi 17620 17621 17622 # Now try to locate executable using which 17623 new_path=`$WHICH "$new_path" 2> /dev/null` 17624 17625 if test "x$new_path" = x; then 17626 # Oops. Which didn't find the executable. 17627 # The splitting of arguments from the executable at a space might have been incorrect, 17628 # since paths with space are more likely in Windows. Give it another try with the whole 17629 # argument. 17630 path="$complete" 17631 arguments="EOL" 17632 new_path="$path" 17633 17634 windows_path="$new_path" 17635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17636 unix_path=`$CYGPATH -u "$windows_path"` 17637 new_path="$unix_path" 17638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17640 new_path="$unix_path" 17641 fi 17642 17643 17644 new_path=`$WHICH "$new_path" 2> /dev/null` 17645 # bat and cmd files are not always considered executable in MSYS causing which 17646 # to not find them 17647 if test "x$new_path" = x \ 17648 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17649 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17650 new_path="$path" 17651 17652 windows_path="$new_path" 17653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17654 unix_path=`$CYGPATH -u "$windows_path"` 17655 new_path="$unix_path" 17656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17658 new_path="$unix_path" 17659 fi 17660 17661 fi 17662 17663 if test "x$new_path" = x; then 17664 # It's still not found. Now this is an unrecoverable error. 17665 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17666 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17667 has_space=`$ECHO "$complete" | $GREP " "` 17668 if test "x$has_space" != x; then 17669 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17670 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17671 fi 17672 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17673 fi 17674 fi 17675 17676 # Now new_path has a complete unix path to the binary 17677 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17678 # Keep paths in /bin as-is, but remove trailing .exe if any 17679 new_path="${new_path/%.exe/}" 17680 # Do not save /bin paths to all_fixpath_prefixes! 17681 else 17682 # Not in mixed or Windows style, start by that. 17683 new_path=`cmd //c echo $new_path` 17684 17685 input_path="$new_path" 17686 # Check if we need to convert this using DOS-style short mode. If the path 17687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17688 # take no chances and rewrite it. 17689 # Note: m4 eats our [], so we need to use [ and ] instead. 17690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17691 if test "x$has_forbidden_chars" != x; then 17692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17693 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17694 fi 17695 17696 # Output is in $new_path 17697 17698 windows_path="$new_path" 17699 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17700 unix_path=`$CYGPATH -u "$windows_path"` 17701 new_path="$unix_path" 17702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17703 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17704 new_path="$unix_path" 17705 fi 17706 17707 # remove trailing .exe if any 17708 new_path="${new_path/%.exe/}" 17709 17710 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17711 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17712 fi 17713 17714 else 17715 # We're on a unix platform. Hooray! :) 17716 # First separate the path from the arguments. This will split at the first 17717 # space. 17718 complete="$FOUND_MAKE" 17719 path="${complete%% *}" 17720 tmp="$complete EOL" 17721 arguments="${tmp#* }" 17722 17723 # Cannot rely on the command "which" here since it doesn't always work. 17724 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17725 if test -z "$is_absolute_path"; then 17726 # Path to executable is not absolute. Find it. 17727 IFS_save="$IFS" 17728 IFS=: 17729 for p in $PATH; do 17730 if test -f "$p/$path" && test -x "$p/$path"; then 17731 new_path="$p/$path" 17732 break 17733 fi 17734 done 17735 IFS="$IFS_save" 17736 else 17737 # This is an absolute path, we can use it without further modifications. 17738 new_path="$path" 17739 fi 17740 17741 if test "x$new_path" = x; then 17742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17743 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17744 has_space=`$ECHO "$complete" | $GREP " "` 17745 if test "x$has_space" != x; then 17746 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17747 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17748 fi 17749 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17750 fi 17751 fi 17752 17753 # Now join together the path and the arguments once again 17754 if test "x$arguments" != xEOL; then 17755 new_complete="$new_path ${arguments% *}" 17756 else 17757 new_complete="$new_path" 17758 fi 17759 17760 if test "x$complete" != "x$new_complete"; then 17761 FOUND_MAKE="$new_complete" 17762 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17763 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17764 fi 17765 fi 17766 17767 fi 17768 fi 17769 fi 17770 fi 17771 17772 if test "x$FOUND_MAKE" = x; then 17773 for ac_prog in make 17774 do 17775 # Extract the first word of "$ac_prog", so it can be a program name with args. 17776 set dummy $ac_prog; ac_word=$2 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17778 $as_echo_n "checking for $ac_word... " >&6; } 17779 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 17780 $as_echo_n "(cached) " >&6 17781 else 17782 case $CHECK_TOOLSDIR_MAKE in 17783 [\\/]* | ?:[\\/]*) 17784 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 17785 ;; 17786 *) 17787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17788 for as_dir in $PATH 17789 do 17790 IFS=$as_save_IFS 17791 test -z "$as_dir" && as_dir=. 17792 for ac_exec_ext in '' $ac_executable_extensions; do 17793 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17794 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 17795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17796 break 2 17797 fi 17798 done 17799 done 17800 IFS=$as_save_IFS 17801 17802 ;; 17803 esac 17804 fi 17805 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 17806 if test -n "$CHECK_TOOLSDIR_MAKE"; then 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 17808 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 17809 else 17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17811 $as_echo "no" >&6; } 17812 fi 17813 17814 17815 test -n "$CHECK_TOOLSDIR_MAKE" && break 17816 done 17817 17818 17819 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 17820 DESCRIPTION="make in tools-dir" 17821 17822 # On Cygwin, we require a newer version of make than on other platforms 17823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17824 MAKE_VERSION_EXPR="-e 4\." 17825 MAKE_REQUIRED_VERSION="4.0" 17826 else 17827 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17828 MAKE_REQUIRED_VERSION="3.81" 17829 fi 17830 17831 if test "x$MAKE_CANDIDATE" != x; then 17832 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17833 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17834 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17835 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17836 if test "x$IS_GNU_MAKE" = x; then 17837 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17838 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17839 else 17840 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17841 if test "x$IS_MODERN_MAKE" = x; then 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 17843 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version $MAKE_REQUIRED_VERSION or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 17844 else 17845 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17847 MAKE_EXPECTED_ENV='cygwin' 17848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17849 MAKE_EXPECTED_ENV='msys' 17850 else 17851 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17852 fi 17853 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17854 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17855 else 17856 # Not relevant for non-Windows 17857 IS_MAKE_CORRECT_ENV=true 17858 fi 17859 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17860 { $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 17861 $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;} 17862 else 17863 FOUND_MAKE=$MAKE_CANDIDATE 17864 17865 # Only process if variable expands to non-empty 17866 17867 if test "x$FOUND_MAKE" != x; then 17868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17869 17870 # First separate the path from the arguments. This will split at the first 17871 # space. 17872 complete="$FOUND_MAKE" 17873 path="${complete%% *}" 17874 tmp="$complete EOL" 17875 arguments="${tmp#* }" 17876 17877 # Input might be given as Windows format, start by converting to 17878 # unix format. 17879 new_path=`$CYGPATH -u "$path"` 17880 17881 # Now try to locate executable using which 17882 new_path=`$WHICH "$new_path" 2> /dev/null` 17883 # bat and cmd files are not always considered executable in cygwin causing which 17884 # to not find them 17885 if test "x$new_path" = x \ 17886 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17887 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17888 new_path=`$CYGPATH -u "$path"` 17889 fi 17890 if test "x$new_path" = x; then 17891 # Oops. Which didn't find the executable. 17892 # The splitting of arguments from the executable at a space might have been incorrect, 17893 # since paths with space are more likely in Windows. Give it another try with the whole 17894 # argument. 17895 path="$complete" 17896 arguments="EOL" 17897 new_path=`$CYGPATH -u "$path"` 17898 new_path=`$WHICH "$new_path" 2> /dev/null` 17899 # bat and cmd files are not always considered executable in cygwin causing which 17900 # to not find them 17901 if test "x$new_path" = x \ 17902 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17903 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17904 new_path=`$CYGPATH -u "$path"` 17905 fi 17906 if test "x$new_path" = x; then 17907 # It's still not found. Now this is an unrecoverable error. 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17909 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17910 has_space=`$ECHO "$complete" | $GREP " "` 17911 if test "x$has_space" != x; then 17912 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17913 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17914 fi 17915 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17916 fi 17917 fi 17918 17919 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17920 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17921 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17922 # "foo.exe" is OK but "foo" is an error. 17923 # 17924 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17925 # It is also a way to make sure we got the proper file name for the real test later on. 17926 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17927 if test "x$test_shortpath" = x; then 17928 # Short path failed, file does not exist as specified. 17929 # Try adding .exe or .cmd 17930 if test -f "${new_path}.exe"; then 17931 input_to_shortpath="${new_path}.exe" 17932 elif test -f "${new_path}.cmd"; then 17933 input_to_shortpath="${new_path}.cmd" 17934 else 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17936 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17937 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17938 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17939 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17940 fi 17941 else 17942 input_to_shortpath="$new_path" 17943 fi 17944 17945 # Call helper function which possibly converts this using DOS-style short mode. 17946 # If so, the updated path is stored in $new_path. 17947 new_path="$input_to_shortpath" 17948 17949 input_path="$input_to_shortpath" 17950 # Check if we need to convert this using DOS-style short mode. If the path 17951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17952 # take no chances and rewrite it. 17953 # Note: m4 eats our [], so we need to use [ and ] instead. 17954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17955 if test "x$has_forbidden_chars" != x; then 17956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17957 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17958 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17959 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17960 # Going to short mode and back again did indeed matter. Since short mode is 17961 # case insensitive, let's make it lowercase to improve readability. 17962 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17963 # Now convert it back to Unix-style (cygpath) 17964 input_path=`$CYGPATH -u "$shortmode_path"` 17965 new_path="$input_path" 17966 fi 17967 fi 17968 17969 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17970 if test "x$test_cygdrive_prefix" = x; then 17971 # As a simple fix, exclude /usr/bin since it's not a real path. 17972 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17973 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17974 # a path prefixed by /cygdrive for fixpath to work. 17975 new_path="$CYGWIN_ROOT_PATH$input_path" 17976 fi 17977 fi 17978 17979 # remove trailing .exe if any 17980 new_path="${new_path/%.exe/}" 17981 17982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17983 17984 # First separate the path from the arguments. This will split at the first 17985 # space. 17986 complete="$FOUND_MAKE" 17987 path="${complete%% *}" 17988 tmp="$complete EOL" 17989 arguments="${tmp#* }" 17990 17991 # Input might be given as Windows format, start by converting to 17992 # unix format. 17993 new_path="$path" 17994 17995 windows_path="$new_path" 17996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17997 unix_path=`$CYGPATH -u "$windows_path"` 17998 new_path="$unix_path" 17999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18001 new_path="$unix_path" 18002 fi 18003 18004 18005 # Now try to locate executable using which 18006 new_path=`$WHICH "$new_path" 2> /dev/null` 18007 18008 if test "x$new_path" = x; then 18009 # Oops. Which didn't find the executable. 18010 # The splitting of arguments from the executable at a space might have been incorrect, 18011 # since paths with space are more likely in Windows. Give it another try with the whole 18012 # argument. 18013 path="$complete" 18014 arguments="EOL" 18015 new_path="$path" 18016 18017 windows_path="$new_path" 18018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18019 unix_path=`$CYGPATH -u "$windows_path"` 18020 new_path="$unix_path" 18021 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18022 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18023 new_path="$unix_path" 18024 fi 18025 18026 18027 new_path=`$WHICH "$new_path" 2> /dev/null` 18028 # bat and cmd files are not always considered executable in MSYS causing which 18029 # to not find them 18030 if test "x$new_path" = x \ 18031 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18032 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18033 new_path="$path" 18034 18035 windows_path="$new_path" 18036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18037 unix_path=`$CYGPATH -u "$windows_path"` 18038 new_path="$unix_path" 18039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18041 new_path="$unix_path" 18042 fi 18043 18044 fi 18045 18046 if test "x$new_path" = x; then 18047 # It's still not found. Now this is an unrecoverable error. 18048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18049 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18050 has_space=`$ECHO "$complete" | $GREP " "` 18051 if test "x$has_space" != x; then 18052 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18053 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18054 fi 18055 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18056 fi 18057 fi 18058 18059 # Now new_path has a complete unix path to the binary 18060 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18061 # Keep paths in /bin as-is, but remove trailing .exe if any 18062 new_path="${new_path/%.exe/}" 18063 # Do not save /bin paths to all_fixpath_prefixes! 18064 else 18065 # Not in mixed or Windows style, start by that. 18066 new_path=`cmd //c echo $new_path` 18067 18068 input_path="$new_path" 18069 # Check if we need to convert this using DOS-style short mode. If the path 18070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18071 # take no chances and rewrite it. 18072 # Note: m4 eats our [], so we need to use [ and ] instead. 18073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18074 if test "x$has_forbidden_chars" != x; then 18075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18076 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18077 fi 18078 18079 # Output is in $new_path 18080 18081 windows_path="$new_path" 18082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18083 unix_path=`$CYGPATH -u "$windows_path"` 18084 new_path="$unix_path" 18085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18087 new_path="$unix_path" 18088 fi 18089 18090 # remove trailing .exe if any 18091 new_path="${new_path/%.exe/}" 18092 18093 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18094 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18095 fi 18096 18097 else 18098 # We're on a unix platform. Hooray! :) 18099 # First separate the path from the arguments. This will split at the first 18100 # space. 18101 complete="$FOUND_MAKE" 18102 path="${complete%% *}" 18103 tmp="$complete EOL" 18104 arguments="${tmp#* }" 18105 18106 # Cannot rely on the command "which" here since it doesn't always work. 18107 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18108 if test -z "$is_absolute_path"; then 18109 # Path to executable is not absolute. Find it. 18110 IFS_save="$IFS" 18111 IFS=: 18112 for p in $PATH; do 18113 if test -f "$p/$path" && test -x "$p/$path"; then 18114 new_path="$p/$path" 18115 break 18116 fi 18117 done 18118 IFS="$IFS_save" 18119 else 18120 # This is an absolute path, we can use it without further modifications. 18121 new_path="$path" 18122 fi 18123 18124 if test "x$new_path" = x; then 18125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18126 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18127 has_space=`$ECHO "$complete" | $GREP " "` 18128 if test "x$has_space" != x; then 18129 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18130 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18131 fi 18132 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18133 fi 18134 fi 18135 18136 # Now join together the path and the arguments once again 18137 if test "x$arguments" != xEOL; then 18138 new_complete="$new_path ${arguments% *}" 18139 else 18140 new_complete="$new_path" 18141 fi 18142 18143 if test "x$complete" != "x$new_complete"; then 18144 FOUND_MAKE="$new_complete" 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18146 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18147 fi 18148 fi 18149 18150 fi 18151 fi 18152 fi 18153 fi 18154 18155 fi 18156 PATH=$OLD_PATH 18157 fi 18158 fi 18159 18160 if test "x$FOUND_MAKE" = x; then 18161 as_fn_error $? "Cannot find GNU make $MAKE_REQUIRED_VERSION or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 18162 fi 18163 fi 18164 18165 MAKE=$FOUND_MAKE 18166 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 18168 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 18169 18170 18171 # Check if make supports the output sync option and if so, setup using it. 18172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 18173 $as_echo_n "checking if make --output-sync is supported... " >&6; } 18174 if $MAKE --version -O > /dev/null 2>&1; then 18175 OUTPUT_SYNC_SUPPORTED=true 18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18177 $as_echo "yes" >&6; } 18178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 18179 $as_echo_n "checking for output-sync value... " >&6; } 18180 18181 # Check whether --with-output-sync was given. 18182 if test "${with_output_sync+set}" = set; then : 18183 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 18184 fi 18185 18186 if test "x$OUTPUT_SYNC" = "x"; then 18187 OUTPUT_SYNC=none 18188 fi 18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 18190 $as_echo "$OUTPUT_SYNC" >&6; } 18191 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 18192 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 18193 fi 18194 else 18195 OUTPUT_SYNC_SUPPORTED=false 18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18197 $as_echo "no" >&6; } 18198 fi 18199 18200 18201 18202 18203 18204 18205 # Test if find supports -delete 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 18207 $as_echo_n "checking if find supports -delete... " >&6; } 18208 FIND_DELETE="-delete" 18209 18210 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 18211 18212 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 18213 18214 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 18215 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 18216 # No, it does not. 18217 rm $DELETEDIR/TestIfFindSupportsDelete 18218 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 18219 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 18220 FIND_DELETE="-print | xargs rm" 18221 else 18222 FIND_DELETE="-exec rm \{\} \+" 18223 fi 18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18225 $as_echo "no" >&6; } 18226 else 18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18228 $as_echo "yes" >&6; } 18229 fi 18230 rmdir $DELETEDIR 18231 18232 18233 18234 # These tools might not be installed by default, 18235 # need hint on how to install them. 18236 18237 18238 18239 # Publish this variable in the help. 18240 18241 18242 if [ -z "${UNZIP+x}" ]; then 18243 # The variable is not set by user, try to locate tool using the code snippet 18244 for ac_prog in unzip 18245 do 18246 # Extract the first word of "$ac_prog", so it can be a program name with args. 18247 set dummy $ac_prog; ac_word=$2 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18249 $as_echo_n "checking for $ac_word... " >&6; } 18250 if ${ac_cv_path_UNZIP+:} false; then : 18251 $as_echo_n "(cached) " >&6 18252 else 18253 case $UNZIP in 18254 [\\/]* | ?:[\\/]*) 18255 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 18256 ;; 18257 *) 18258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18259 for as_dir in $PATH 18260 do 18261 IFS=$as_save_IFS 18262 test -z "$as_dir" && as_dir=. 18263 for ac_exec_ext in '' $ac_executable_extensions; do 18264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18265 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 18266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18267 break 2 18268 fi 18269 done 18270 done 18271 IFS=$as_save_IFS 18272 18273 ;; 18274 esac 18275 fi 18276 UNZIP=$ac_cv_path_UNZIP 18277 if test -n "$UNZIP"; then 18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 18279 $as_echo "$UNZIP" >&6; } 18280 else 18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18282 $as_echo "no" >&6; } 18283 fi 18284 18285 18286 test -n "$UNZIP" && break 18287 done 18288 18289 else 18290 # The variable is set, but is it from the command line or the environment? 18291 18292 # Try to remove the string !UNZIP! from our list. 18293 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 18294 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18295 # If it failed, the variable was not from the command line. Ignore it, 18296 # but warn the user (except for BASH, which is always set by the calling BASH). 18297 if test "xUNZIP" != xBASH; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 18299 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 18300 fi 18301 # Try to locate tool using the code snippet 18302 for ac_prog in unzip 18303 do 18304 # Extract the first word of "$ac_prog", so it can be a program name with args. 18305 set dummy $ac_prog; ac_word=$2 18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18307 $as_echo_n "checking for $ac_word... " >&6; } 18308 if ${ac_cv_path_UNZIP+:} false; then : 18309 $as_echo_n "(cached) " >&6 18310 else 18311 case $UNZIP in 18312 [\\/]* | ?:[\\/]*) 18313 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 18314 ;; 18315 *) 18316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18317 for as_dir in $PATH 18318 do 18319 IFS=$as_save_IFS 18320 test -z "$as_dir" && as_dir=. 18321 for ac_exec_ext in '' $ac_executable_extensions; do 18322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18323 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 18324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18325 break 2 18326 fi 18327 done 18328 done 18329 IFS=$as_save_IFS 18330 18331 ;; 18332 esac 18333 fi 18334 UNZIP=$ac_cv_path_UNZIP 18335 if test -n "$UNZIP"; then 18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 18337 $as_echo "$UNZIP" >&6; } 18338 else 18339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18340 $as_echo "no" >&6; } 18341 fi 18342 18343 18344 test -n "$UNZIP" && break 18345 done 18346 18347 else 18348 # If it succeeded, then it was overridden by the user. We will use it 18349 # for the tool. 18350 18351 # First remove it from the list of overridden variables, so we can test 18352 # for unknown variables in the end. 18353 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18354 18355 # Check if we try to supply an empty value 18356 if test "x$UNZIP" = x; then 18357 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 18358 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 18360 $as_echo_n "checking for UNZIP... " >&6; } 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18362 $as_echo "disabled" >&6; } 18363 else 18364 # Check if the provided tool contains a complete path. 18365 tool_specified="$UNZIP" 18366 tool_basename="${tool_specified##*/}" 18367 if test "x$tool_basename" = "x$tool_specified"; then 18368 # A command without a complete path is provided, search $PATH. 18369 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 18370 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 18371 # Extract the first word of "$tool_basename", so it can be a program name with args. 18372 set dummy $tool_basename; ac_word=$2 18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18374 $as_echo_n "checking for $ac_word... " >&6; } 18375 if ${ac_cv_path_UNZIP+:} false; then : 18376 $as_echo_n "(cached) " >&6 18377 else 18378 case $UNZIP in 18379 [\\/]* | ?:[\\/]*) 18380 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 18381 ;; 18382 *) 18383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18384 for as_dir in $PATH 18385 do 18386 IFS=$as_save_IFS 18387 test -z "$as_dir" && as_dir=. 18388 for ac_exec_ext in '' $ac_executable_extensions; do 18389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18390 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 18391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18392 break 2 18393 fi 18394 done 18395 done 18396 IFS=$as_save_IFS 18397 18398 ;; 18399 esac 18400 fi 18401 UNZIP=$ac_cv_path_UNZIP 18402 if test -n "$UNZIP"; then 18403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 18404 $as_echo "$UNZIP" >&6; } 18405 else 18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18407 $as_echo "no" >&6; } 18408 fi 18409 18410 18411 if test "x$UNZIP" = x; then 18412 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18413 fi 18414 else 18415 # Otherwise we believe it is a complete path. Use it as it is. 18416 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 18417 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 18419 $as_echo_n "checking for UNZIP... " >&6; } 18420 if test ! -x "$tool_specified"; then 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18422 $as_echo "not found" >&6; } 18423 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 18424 fi 18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18426 $as_echo "$tool_specified" >&6; } 18427 fi 18428 fi 18429 fi 18430 fi 18431 18432 18433 18434 if test "x$UNZIP" = x; then 18435 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 18436 fi 18437 18438 18439 18440 18441 18442 # Publish this variable in the help. 18443 18444 18445 if [ -z "${ZIP+x}" ]; then 18446 # The variable is not set by user, try to locate tool using the code snippet 18447 for ac_prog in zip 18448 do 18449 # Extract the first word of "$ac_prog", so it can be a program name with args. 18450 set dummy $ac_prog; ac_word=$2 18451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18452 $as_echo_n "checking for $ac_word... " >&6; } 18453 if ${ac_cv_path_ZIP+:} false; then : 18454 $as_echo_n "(cached) " >&6 18455 else 18456 case $ZIP in 18457 [\\/]* | ?:[\\/]*) 18458 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 18459 ;; 18460 *) 18461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18462 for as_dir in $PATH 18463 do 18464 IFS=$as_save_IFS 18465 test -z "$as_dir" && as_dir=. 18466 for ac_exec_ext in '' $ac_executable_extensions; do 18467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18468 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 18469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18470 break 2 18471 fi 18472 done 18473 done 18474 IFS=$as_save_IFS 18475 18476 ;; 18477 esac 18478 fi 18479 ZIP=$ac_cv_path_ZIP 18480 if test -n "$ZIP"; then 18481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 18482 $as_echo "$ZIP" >&6; } 18483 else 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18485 $as_echo "no" >&6; } 18486 fi 18487 18488 18489 test -n "$ZIP" && break 18490 done 18491 18492 else 18493 # The variable is set, but is it from the command line or the environment? 18494 18495 # Try to remove the string !ZIP! from our list. 18496 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 18497 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18498 # If it failed, the variable was not from the command line. Ignore it, 18499 # but warn the user (except for BASH, which is always set by the calling BASH). 18500 if test "xZIP" != xBASH; then 18501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 18502 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 18503 fi 18504 # Try to locate tool using the code snippet 18505 for ac_prog in zip 18506 do 18507 # Extract the first word of "$ac_prog", so it can be a program name with args. 18508 set dummy $ac_prog; ac_word=$2 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18510 $as_echo_n "checking for $ac_word... " >&6; } 18511 if ${ac_cv_path_ZIP+:} false; then : 18512 $as_echo_n "(cached) " >&6 18513 else 18514 case $ZIP in 18515 [\\/]* | ?:[\\/]*) 18516 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 18517 ;; 18518 *) 18519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18520 for as_dir in $PATH 18521 do 18522 IFS=$as_save_IFS 18523 test -z "$as_dir" && as_dir=. 18524 for ac_exec_ext in '' $ac_executable_extensions; do 18525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18526 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 18527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18528 break 2 18529 fi 18530 done 18531 done 18532 IFS=$as_save_IFS 18533 18534 ;; 18535 esac 18536 fi 18537 ZIP=$ac_cv_path_ZIP 18538 if test -n "$ZIP"; then 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 18540 $as_echo "$ZIP" >&6; } 18541 else 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18543 $as_echo "no" >&6; } 18544 fi 18545 18546 18547 test -n "$ZIP" && break 18548 done 18549 18550 else 18551 # If it succeeded, then it was overridden by the user. We will use it 18552 # for the tool. 18553 18554 # First remove it from the list of overridden variables, so we can test 18555 # for unknown variables in the end. 18556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18557 18558 # Check if we try to supply an empty value 18559 if test "x$ZIP" = x; then 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIP= (no value)" >&5 18561 $as_echo "$as_me: Setting user supplied tool ZIP= (no value)" >&6;} 18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 18563 $as_echo_n "checking for ZIP... " >&6; } 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18565 $as_echo "disabled" >&6; } 18566 else 18567 # Check if the provided tool contains a complete path. 18568 tool_specified="$ZIP" 18569 tool_basename="${tool_specified##*/}" 18570 if test "x$tool_basename" = "x$tool_specified"; then 18571 # A command without a complete path is provided, search $PATH. 18572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 18573 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 18574 # Extract the first word of "$tool_basename", so it can be a program name with args. 18575 set dummy $tool_basename; ac_word=$2 18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18577 $as_echo_n "checking for $ac_word... " >&6; } 18578 if ${ac_cv_path_ZIP+:} false; then : 18579 $as_echo_n "(cached) " >&6 18580 else 18581 case $ZIP in 18582 [\\/]* | ?:[\\/]*) 18583 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 18584 ;; 18585 *) 18586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18587 for as_dir in $PATH 18588 do 18589 IFS=$as_save_IFS 18590 test -z "$as_dir" && as_dir=. 18591 for ac_exec_ext in '' $ac_executable_extensions; do 18592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18593 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 18594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18595 break 2 18596 fi 18597 done 18598 done 18599 IFS=$as_save_IFS 18600 18601 ;; 18602 esac 18603 fi 18604 ZIP=$ac_cv_path_ZIP 18605 if test -n "$ZIP"; then 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 18607 $as_echo "$ZIP" >&6; } 18608 else 18609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18610 $as_echo "no" >&6; } 18611 fi 18612 18613 18614 if test "x$ZIP" = x; then 18615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18616 fi 18617 else 18618 # Otherwise we believe it is a complete path. Use it as it is. 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 18620 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 18621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 18622 $as_echo_n "checking for ZIP... " >&6; } 18623 if test ! -x "$tool_specified"; then 18624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18625 $as_echo "not found" >&6; } 18626 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 18627 fi 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18629 $as_echo "$tool_specified" >&6; } 18630 fi 18631 fi 18632 fi 18633 fi 18634 18635 18636 18637 if test "x$ZIP" = x; then 18638 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 18639 fi 18640 18641 18642 18643 # Non-required basic tools 18644 18645 18646 18647 # Publish this variable in the help. 18648 18649 18650 if [ -z "${LDD+x}" ]; then 18651 # The variable is not set by user, try to locate tool using the code snippet 18652 for ac_prog in ldd 18653 do 18654 # Extract the first word of "$ac_prog", so it can be a program name with args. 18655 set dummy $ac_prog; ac_word=$2 18656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18657 $as_echo_n "checking for $ac_word... " >&6; } 18658 if ${ac_cv_path_LDD+:} false; then : 18659 $as_echo_n "(cached) " >&6 18660 else 18661 case $LDD in 18662 [\\/]* | ?:[\\/]*) 18663 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18664 ;; 18665 *) 18666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18667 for as_dir in $PATH 18668 do 18669 IFS=$as_save_IFS 18670 test -z "$as_dir" && as_dir=. 18671 for ac_exec_ext in '' $ac_executable_extensions; do 18672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18673 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18675 break 2 18676 fi 18677 done 18678 done 18679 IFS=$as_save_IFS 18680 18681 ;; 18682 esac 18683 fi 18684 LDD=$ac_cv_path_LDD 18685 if test -n "$LDD"; then 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18687 $as_echo "$LDD" >&6; } 18688 else 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18690 $as_echo "no" >&6; } 18691 fi 18692 18693 18694 test -n "$LDD" && break 18695 done 18696 18697 else 18698 # The variable is set, but is it from the command line or the environment? 18699 18700 # Try to remove the string !LDD! from our list. 18701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 18702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18703 # If it failed, the variable was not from the command line. Ignore it, 18704 # but warn the user (except for BASH, which is always set by the calling BASH). 18705 if test "xLDD" != xBASH; then 18706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 18707 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 18708 fi 18709 # Try to locate tool using the code snippet 18710 for ac_prog in ldd 18711 do 18712 # Extract the first word of "$ac_prog", so it can be a program name with args. 18713 set dummy $ac_prog; ac_word=$2 18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18715 $as_echo_n "checking for $ac_word... " >&6; } 18716 if ${ac_cv_path_LDD+:} false; then : 18717 $as_echo_n "(cached) " >&6 18718 else 18719 case $LDD in 18720 [\\/]* | ?:[\\/]*) 18721 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18722 ;; 18723 *) 18724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18725 for as_dir in $PATH 18726 do 18727 IFS=$as_save_IFS 18728 test -z "$as_dir" && as_dir=. 18729 for ac_exec_ext in '' $ac_executable_extensions; do 18730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18731 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18733 break 2 18734 fi 18735 done 18736 done 18737 IFS=$as_save_IFS 18738 18739 ;; 18740 esac 18741 fi 18742 LDD=$ac_cv_path_LDD 18743 if test -n "$LDD"; then 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18745 $as_echo "$LDD" >&6; } 18746 else 18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18748 $as_echo "no" >&6; } 18749 fi 18750 18751 18752 test -n "$LDD" && break 18753 done 18754 18755 else 18756 # If it succeeded, then it was overridden by the user. We will use it 18757 # for the tool. 18758 18759 # First remove it from the list of overridden variables, so we can test 18760 # for unknown variables in the end. 18761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18762 18763 # Check if we try to supply an empty value 18764 if test "x$LDD" = x; then 18765 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 18766 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 18768 $as_echo_n "checking for LDD... " >&6; } 18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18770 $as_echo "disabled" >&6; } 18771 else 18772 # Check if the provided tool contains a complete path. 18773 tool_specified="$LDD" 18774 tool_basename="${tool_specified##*/}" 18775 if test "x$tool_basename" = "x$tool_specified"; then 18776 # A command without a complete path is provided, search $PATH. 18777 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 18778 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 18779 # Extract the first word of "$tool_basename", so it can be a program name with args. 18780 set dummy $tool_basename; ac_word=$2 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18782 $as_echo_n "checking for $ac_word... " >&6; } 18783 if ${ac_cv_path_LDD+:} false; then : 18784 $as_echo_n "(cached) " >&6 18785 else 18786 case $LDD in 18787 [\\/]* | ?:[\\/]*) 18788 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 18789 ;; 18790 *) 18791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18792 for as_dir in $PATH 18793 do 18794 IFS=$as_save_IFS 18795 test -z "$as_dir" && as_dir=. 18796 for ac_exec_ext in '' $ac_executable_extensions; do 18797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18798 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 18799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18800 break 2 18801 fi 18802 done 18803 done 18804 IFS=$as_save_IFS 18805 18806 ;; 18807 esac 18808 fi 18809 LDD=$ac_cv_path_LDD 18810 if test -n "$LDD"; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 18812 $as_echo "$LDD" >&6; } 18813 else 18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18815 $as_echo "no" >&6; } 18816 fi 18817 18818 18819 if test "x$LDD" = x; then 18820 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18821 fi 18822 else 18823 # Otherwise we believe it is a complete path. Use it as it is. 18824 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 18825 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 18826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 18827 $as_echo_n "checking for LDD... " >&6; } 18828 if test ! -x "$tool_specified"; then 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18830 $as_echo "not found" >&6; } 18831 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 18832 fi 18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18834 $as_echo "$tool_specified" >&6; } 18835 fi 18836 fi 18837 fi 18838 fi 18839 18840 18841 if test "x$LDD" = "x"; then 18842 # List shared lib dependencies is used for 18843 # debug output and checking for forbidden dependencies. 18844 # We can build without it. 18845 LDD="true" 18846 fi 18847 18848 18849 # Publish this variable in the help. 18850 18851 18852 if [ -z "${OTOOL+x}" ]; then 18853 # The variable is not set by user, try to locate tool using the code snippet 18854 for ac_prog in otool 18855 do 18856 # Extract the first word of "$ac_prog", so it can be a program name with args. 18857 set dummy $ac_prog; ac_word=$2 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18859 $as_echo_n "checking for $ac_word... " >&6; } 18860 if ${ac_cv_path_OTOOL+:} false; then : 18861 $as_echo_n "(cached) " >&6 18862 else 18863 case $OTOOL in 18864 [\\/]* | ?:[\\/]*) 18865 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18866 ;; 18867 *) 18868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18869 for as_dir in $PATH 18870 do 18871 IFS=$as_save_IFS 18872 test -z "$as_dir" && as_dir=. 18873 for ac_exec_ext in '' $ac_executable_extensions; do 18874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18875 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18877 break 2 18878 fi 18879 done 18880 done 18881 IFS=$as_save_IFS 18882 18883 ;; 18884 esac 18885 fi 18886 OTOOL=$ac_cv_path_OTOOL 18887 if test -n "$OTOOL"; then 18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18889 $as_echo "$OTOOL" >&6; } 18890 else 18891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18892 $as_echo "no" >&6; } 18893 fi 18894 18895 18896 test -n "$OTOOL" && break 18897 done 18898 18899 else 18900 # The variable is set, but is it from the command line or the environment? 18901 18902 # Try to remove the string !OTOOL! from our list. 18903 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 18904 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18905 # If it failed, the variable was not from the command line. Ignore it, 18906 # but warn the user (except for BASH, which is always set by the calling BASH). 18907 if test "xOTOOL" != xBASH; then 18908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 18909 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 18910 fi 18911 # Try to locate tool using the code snippet 18912 for ac_prog in otool 18913 do 18914 # Extract the first word of "$ac_prog", so it can be a program name with args. 18915 set dummy $ac_prog; ac_word=$2 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18917 $as_echo_n "checking for $ac_word... " >&6; } 18918 if ${ac_cv_path_OTOOL+:} false; then : 18919 $as_echo_n "(cached) " >&6 18920 else 18921 case $OTOOL in 18922 [\\/]* | ?:[\\/]*) 18923 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18924 ;; 18925 *) 18926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18927 for as_dir in $PATH 18928 do 18929 IFS=$as_save_IFS 18930 test -z "$as_dir" && as_dir=. 18931 for ac_exec_ext in '' $ac_executable_extensions; do 18932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18933 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18935 break 2 18936 fi 18937 done 18938 done 18939 IFS=$as_save_IFS 18940 18941 ;; 18942 esac 18943 fi 18944 OTOOL=$ac_cv_path_OTOOL 18945 if test -n "$OTOOL"; then 18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18947 $as_echo "$OTOOL" >&6; } 18948 else 18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18950 $as_echo "no" >&6; } 18951 fi 18952 18953 18954 test -n "$OTOOL" && break 18955 done 18956 18957 else 18958 # If it succeeded, then it was overridden by the user. We will use it 18959 # for the tool. 18960 18961 # First remove it from the list of overridden variables, so we can test 18962 # for unknown variables in the end. 18963 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18964 18965 # Check if we try to supply an empty value 18966 if test "x$OTOOL" = x; then 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 18968 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18970 $as_echo_n "checking for OTOOL... " >&6; } 18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 18972 $as_echo "disabled" >&6; } 18973 else 18974 # Check if the provided tool contains a complete path. 18975 tool_specified="$OTOOL" 18976 tool_basename="${tool_specified##*/}" 18977 if test "x$tool_basename" = "x$tool_specified"; then 18978 # A command without a complete path is provided, search $PATH. 18979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18980 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18981 # Extract the first word of "$tool_basename", so it can be a program name with args. 18982 set dummy $tool_basename; ac_word=$2 18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18984 $as_echo_n "checking for $ac_word... " >&6; } 18985 if ${ac_cv_path_OTOOL+:} false; then : 18986 $as_echo_n "(cached) " >&6 18987 else 18988 case $OTOOL in 18989 [\\/]* | ?:[\\/]*) 18990 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18991 ;; 18992 *) 18993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18994 for as_dir in $PATH 18995 do 18996 IFS=$as_save_IFS 18997 test -z "$as_dir" && as_dir=. 18998 for ac_exec_ext in '' $ac_executable_extensions; do 18999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19000 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 19001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19002 break 2 19003 fi 19004 done 19005 done 19006 IFS=$as_save_IFS 19007 19008 ;; 19009 esac 19010 fi 19011 OTOOL=$ac_cv_path_OTOOL 19012 if test -n "$OTOOL"; then 19013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 19014 $as_echo "$OTOOL" >&6; } 19015 else 19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19017 $as_echo "no" >&6; } 19018 fi 19019 19020 19021 if test "x$OTOOL" = x; then 19022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19023 fi 19024 else 19025 # Otherwise we believe it is a complete path. Use it as it is. 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 19027 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 19029 $as_echo_n "checking for OTOOL... " >&6; } 19030 if test ! -x "$tool_specified"; then 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19032 $as_echo "not found" >&6; } 19033 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 19034 fi 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19036 $as_echo "$tool_specified" >&6; } 19037 fi 19038 fi 19039 fi 19040 fi 19041 19042 19043 if test "x$OTOOL" = "x"; then 19044 OTOOL="true" 19045 fi 19046 19047 19048 # Publish this variable in the help. 19049 19050 19051 if [ -z "${READELF+x}" ]; then 19052 # The variable is not set by user, try to locate tool using the code snippet 19053 for ac_prog in greadelf readelf 19054 do 19055 # Extract the first word of "$ac_prog", so it can be a program name with args. 19056 set dummy $ac_prog; ac_word=$2 19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19058 $as_echo_n "checking for $ac_word... " >&6; } 19059 if ${ac_cv_path_READELF+:} false; then : 19060 $as_echo_n "(cached) " >&6 19061 else 19062 case $READELF in 19063 [\\/]* | ?:[\\/]*) 19064 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 19065 ;; 19066 *) 19067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19068 for as_dir in $PATH 19069 do 19070 IFS=$as_save_IFS 19071 test -z "$as_dir" && as_dir=. 19072 for ac_exec_ext in '' $ac_executable_extensions; do 19073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19074 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 19075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19076 break 2 19077 fi 19078 done 19079 done 19080 IFS=$as_save_IFS 19081 19082 ;; 19083 esac 19084 fi 19085 READELF=$ac_cv_path_READELF 19086 if test -n "$READELF"; then 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 19088 $as_echo "$READELF" >&6; } 19089 else 19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19091 $as_echo "no" >&6; } 19092 fi 19093 19094 19095 test -n "$READELF" && break 19096 done 19097 19098 else 19099 # The variable is set, but is it from the command line or the environment? 19100 19101 # Try to remove the string !READELF! from our list. 19102 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 19103 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19104 # If it failed, the variable was not from the command line. Ignore it, 19105 # but warn the user (except for BASH, which is always set by the calling BASH). 19106 if test "xREADELF" != xBASH; then 19107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 19108 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 19109 fi 19110 # Try to locate tool using the code snippet 19111 for ac_prog in greadelf readelf 19112 do 19113 # Extract the first word of "$ac_prog", so it can be a program name with args. 19114 set dummy $ac_prog; ac_word=$2 19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19116 $as_echo_n "checking for $ac_word... " >&6; } 19117 if ${ac_cv_path_READELF+:} false; then : 19118 $as_echo_n "(cached) " >&6 19119 else 19120 case $READELF in 19121 [\\/]* | ?:[\\/]*) 19122 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 19123 ;; 19124 *) 19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19126 for as_dir in $PATH 19127 do 19128 IFS=$as_save_IFS 19129 test -z "$as_dir" && as_dir=. 19130 for ac_exec_ext in '' $ac_executable_extensions; do 19131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19132 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 19133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19134 break 2 19135 fi 19136 done 19137 done 19138 IFS=$as_save_IFS 19139 19140 ;; 19141 esac 19142 fi 19143 READELF=$ac_cv_path_READELF 19144 if test -n "$READELF"; then 19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 19146 $as_echo "$READELF" >&6; } 19147 else 19148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19149 $as_echo "no" >&6; } 19150 fi 19151 19152 19153 test -n "$READELF" && break 19154 done 19155 19156 else 19157 # If it succeeded, then it was overridden by the user. We will use it 19158 # for the tool. 19159 19160 # First remove it from the list of overridden variables, so we can test 19161 # for unknown variables in the end. 19162 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19163 19164 # Check if we try to supply an empty value 19165 if test "x$READELF" = x; then 19166 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 19167 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 19168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 19169 $as_echo_n "checking for READELF... " >&6; } 19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19171 $as_echo "disabled" >&6; } 19172 else 19173 # Check if the provided tool contains a complete path. 19174 tool_specified="$READELF" 19175 tool_basename="${tool_specified##*/}" 19176 if test "x$tool_basename" = "x$tool_specified"; then 19177 # A command without a complete path is provided, search $PATH. 19178 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 19179 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 19180 # Extract the first word of "$tool_basename", so it can be a program name with args. 19181 set dummy $tool_basename; ac_word=$2 19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19183 $as_echo_n "checking for $ac_word... " >&6; } 19184 if ${ac_cv_path_READELF+:} false; then : 19185 $as_echo_n "(cached) " >&6 19186 else 19187 case $READELF in 19188 [\\/]* | ?:[\\/]*) 19189 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 19190 ;; 19191 *) 19192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19193 for as_dir in $PATH 19194 do 19195 IFS=$as_save_IFS 19196 test -z "$as_dir" && as_dir=. 19197 for ac_exec_ext in '' $ac_executable_extensions; do 19198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19199 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 19200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19201 break 2 19202 fi 19203 done 19204 done 19205 IFS=$as_save_IFS 19206 19207 ;; 19208 esac 19209 fi 19210 READELF=$ac_cv_path_READELF 19211 if test -n "$READELF"; then 19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 19213 $as_echo "$READELF" >&6; } 19214 else 19215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19216 $as_echo "no" >&6; } 19217 fi 19218 19219 19220 if test "x$READELF" = x; then 19221 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19222 fi 19223 else 19224 # Otherwise we believe it is a complete path. Use it as it is. 19225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 19226 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 19227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 19228 $as_echo_n "checking for READELF... " >&6; } 19229 if test ! -x "$tool_specified"; then 19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19231 $as_echo "not found" >&6; } 19232 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 19233 fi 19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19235 $as_echo "$tool_specified" >&6; } 19236 fi 19237 fi 19238 fi 19239 fi 19240 19241 19242 19243 19244 # Publish this variable in the help. 19245 19246 19247 if [ -z "${HG+x}" ]; then 19248 # The variable is not set by user, try to locate tool using the code snippet 19249 for ac_prog in hg 19250 do 19251 # Extract the first word of "$ac_prog", so it can be a program name with args. 19252 set dummy $ac_prog; ac_word=$2 19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19254 $as_echo_n "checking for $ac_word... " >&6; } 19255 if ${ac_cv_path_HG+:} false; then : 19256 $as_echo_n "(cached) " >&6 19257 else 19258 case $HG in 19259 [\\/]* | ?:[\\/]*) 19260 ac_cv_path_HG="$HG" # Let the user override the test with a path. 19261 ;; 19262 *) 19263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19264 for as_dir in $PATH 19265 do 19266 IFS=$as_save_IFS 19267 test -z "$as_dir" && as_dir=. 19268 for ac_exec_ext in '' $ac_executable_extensions; do 19269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19270 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 19271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19272 break 2 19273 fi 19274 done 19275 done 19276 IFS=$as_save_IFS 19277 19278 ;; 19279 esac 19280 fi 19281 HG=$ac_cv_path_HG 19282 if test -n "$HG"; then 19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 19284 $as_echo "$HG" >&6; } 19285 else 19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19287 $as_echo "no" >&6; } 19288 fi 19289 19290 19291 test -n "$HG" && break 19292 done 19293 19294 else 19295 # The variable is set, but is it from the command line or the environment? 19296 19297 # Try to remove the string !HG! from our list. 19298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 19299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19300 # If it failed, the variable was not from the command line. Ignore it, 19301 # but warn the user (except for BASH, which is always set by the calling BASH). 19302 if test "xHG" != xBASH; then 19303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 19304 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 19305 fi 19306 # Try to locate tool using the code snippet 19307 for ac_prog in hg 19308 do 19309 # Extract the first word of "$ac_prog", so it can be a program name with args. 19310 set dummy $ac_prog; ac_word=$2 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19312 $as_echo_n "checking for $ac_word... " >&6; } 19313 if ${ac_cv_path_HG+:} false; then : 19314 $as_echo_n "(cached) " >&6 19315 else 19316 case $HG in 19317 [\\/]* | ?:[\\/]*) 19318 ac_cv_path_HG="$HG" # Let the user override the test with a path. 19319 ;; 19320 *) 19321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19322 for as_dir in $PATH 19323 do 19324 IFS=$as_save_IFS 19325 test -z "$as_dir" && as_dir=. 19326 for ac_exec_ext in '' $ac_executable_extensions; do 19327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19328 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 19329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19330 break 2 19331 fi 19332 done 19333 done 19334 IFS=$as_save_IFS 19335 19336 ;; 19337 esac 19338 fi 19339 HG=$ac_cv_path_HG 19340 if test -n "$HG"; then 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 19342 $as_echo "$HG" >&6; } 19343 else 19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19345 $as_echo "no" >&6; } 19346 fi 19347 19348 19349 test -n "$HG" && break 19350 done 19351 19352 else 19353 # If it succeeded, then it was overridden by the user. We will use it 19354 # for the tool. 19355 19356 # First remove it from the list of overridden variables, so we can test 19357 # for unknown variables in the end. 19358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19359 19360 # Check if we try to supply an empty value 19361 if test "x$HG" = x; then 19362 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 19363 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 19364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 19365 $as_echo_n "checking for HG... " >&6; } 19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19367 $as_echo "disabled" >&6; } 19368 else 19369 # Check if the provided tool contains a complete path. 19370 tool_specified="$HG" 19371 tool_basename="${tool_specified##*/}" 19372 if test "x$tool_basename" = "x$tool_specified"; then 19373 # A command without a complete path is provided, search $PATH. 19374 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 19375 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 19376 # Extract the first word of "$tool_basename", so it can be a program name with args. 19377 set dummy $tool_basename; ac_word=$2 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19379 $as_echo_n "checking for $ac_word... " >&6; } 19380 if ${ac_cv_path_HG+:} false; then : 19381 $as_echo_n "(cached) " >&6 19382 else 19383 case $HG in 19384 [\\/]* | ?:[\\/]*) 19385 ac_cv_path_HG="$HG" # Let the user override the test with a path. 19386 ;; 19387 *) 19388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19389 for as_dir in $PATH 19390 do 19391 IFS=$as_save_IFS 19392 test -z "$as_dir" && as_dir=. 19393 for ac_exec_ext in '' $ac_executable_extensions; do 19394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19395 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 19396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19397 break 2 19398 fi 19399 done 19400 done 19401 IFS=$as_save_IFS 19402 19403 ;; 19404 esac 19405 fi 19406 HG=$ac_cv_path_HG 19407 if test -n "$HG"; then 19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 19409 $as_echo "$HG" >&6; } 19410 else 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19412 $as_echo "no" >&6; } 19413 fi 19414 19415 19416 if test "x$HG" = x; then 19417 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19418 fi 19419 else 19420 # Otherwise we believe it is a complete path. Use it as it is. 19421 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 19422 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 19424 $as_echo_n "checking for HG... " >&6; } 19425 if test ! -x "$tool_specified"; then 19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19427 $as_echo "not found" >&6; } 19428 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 19429 fi 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19431 $as_echo "$tool_specified" >&6; } 19432 fi 19433 fi 19434 fi 19435 fi 19436 19437 19438 19439 19440 # Publish this variable in the help. 19441 19442 19443 if [ -z "${STAT+x}" ]; then 19444 # The variable is not set by user, try to locate tool using the code snippet 19445 for ac_prog in stat 19446 do 19447 # Extract the first word of "$ac_prog", so it can be a program name with args. 19448 set dummy $ac_prog; ac_word=$2 19449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19450 $as_echo_n "checking for $ac_word... " >&6; } 19451 if ${ac_cv_path_STAT+:} false; then : 19452 $as_echo_n "(cached) " >&6 19453 else 19454 case $STAT in 19455 [\\/]* | ?:[\\/]*) 19456 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 19457 ;; 19458 *) 19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19460 for as_dir in $PATH 19461 do 19462 IFS=$as_save_IFS 19463 test -z "$as_dir" && as_dir=. 19464 for ac_exec_ext in '' $ac_executable_extensions; do 19465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19466 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 19467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19468 break 2 19469 fi 19470 done 19471 done 19472 IFS=$as_save_IFS 19473 19474 ;; 19475 esac 19476 fi 19477 STAT=$ac_cv_path_STAT 19478 if test -n "$STAT"; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 19480 $as_echo "$STAT" >&6; } 19481 else 19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19483 $as_echo "no" >&6; } 19484 fi 19485 19486 19487 test -n "$STAT" && break 19488 done 19489 19490 else 19491 # The variable is set, but is it from the command line or the environment? 19492 19493 # Try to remove the string !STAT! from our list. 19494 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 19495 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19496 # If it failed, the variable was not from the command line. Ignore it, 19497 # but warn the user (except for BASH, which is always set by the calling BASH). 19498 if test "xSTAT" != xBASH; then 19499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 19500 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 19501 fi 19502 # Try to locate tool using the code snippet 19503 for ac_prog in stat 19504 do 19505 # Extract the first word of "$ac_prog", so it can be a program name with args. 19506 set dummy $ac_prog; ac_word=$2 19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19508 $as_echo_n "checking for $ac_word... " >&6; } 19509 if ${ac_cv_path_STAT+:} false; then : 19510 $as_echo_n "(cached) " >&6 19511 else 19512 case $STAT in 19513 [\\/]* | ?:[\\/]*) 19514 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 19515 ;; 19516 *) 19517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19518 for as_dir in $PATH 19519 do 19520 IFS=$as_save_IFS 19521 test -z "$as_dir" && as_dir=. 19522 for ac_exec_ext in '' $ac_executable_extensions; do 19523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19524 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 19525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19526 break 2 19527 fi 19528 done 19529 done 19530 IFS=$as_save_IFS 19531 19532 ;; 19533 esac 19534 fi 19535 STAT=$ac_cv_path_STAT 19536 if test -n "$STAT"; then 19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 19538 $as_echo "$STAT" >&6; } 19539 else 19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19541 $as_echo "no" >&6; } 19542 fi 19543 19544 19545 test -n "$STAT" && break 19546 done 19547 19548 else 19549 # If it succeeded, then it was overridden by the user. We will use it 19550 # for the tool. 19551 19552 # First remove it from the list of overridden variables, so we can test 19553 # for unknown variables in the end. 19554 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19555 19556 # Check if we try to supply an empty value 19557 if test "x$STAT" = x; then 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 19559 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 19561 $as_echo_n "checking for STAT... " >&6; } 19562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19563 $as_echo "disabled" >&6; } 19564 else 19565 # Check if the provided tool contains a complete path. 19566 tool_specified="$STAT" 19567 tool_basename="${tool_specified##*/}" 19568 if test "x$tool_basename" = "x$tool_specified"; then 19569 # A command without a complete path is provided, search $PATH. 19570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 19571 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 19572 # Extract the first word of "$tool_basename", so it can be a program name with args. 19573 set dummy $tool_basename; ac_word=$2 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19575 $as_echo_n "checking for $ac_word... " >&6; } 19576 if ${ac_cv_path_STAT+:} false; then : 19577 $as_echo_n "(cached) " >&6 19578 else 19579 case $STAT in 19580 [\\/]* | ?:[\\/]*) 19581 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 19582 ;; 19583 *) 19584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19585 for as_dir in $PATH 19586 do 19587 IFS=$as_save_IFS 19588 test -z "$as_dir" && as_dir=. 19589 for ac_exec_ext in '' $ac_executable_extensions; do 19590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19591 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 19592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19593 break 2 19594 fi 19595 done 19596 done 19597 IFS=$as_save_IFS 19598 19599 ;; 19600 esac 19601 fi 19602 STAT=$ac_cv_path_STAT 19603 if test -n "$STAT"; then 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 19605 $as_echo "$STAT" >&6; } 19606 else 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19608 $as_echo "no" >&6; } 19609 fi 19610 19611 19612 if test "x$STAT" = x; then 19613 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19614 fi 19615 else 19616 # Otherwise we believe it is a complete path. Use it as it is. 19617 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 19618 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 19620 $as_echo_n "checking for STAT... " >&6; } 19621 if test ! -x "$tool_specified"; then 19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19623 $as_echo "not found" >&6; } 19624 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 19625 fi 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19627 $as_echo "$tool_specified" >&6; } 19628 fi 19629 fi 19630 fi 19631 fi 19632 19633 19634 19635 19636 # Publish this variable in the help. 19637 19638 19639 if [ -z "${TIME+x}" ]; then 19640 # The variable is not set by user, try to locate tool using the code snippet 19641 for ac_prog in time 19642 do 19643 # Extract the first word of "$ac_prog", so it can be a program name with args. 19644 set dummy $ac_prog; ac_word=$2 19645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19646 $as_echo_n "checking for $ac_word... " >&6; } 19647 if ${ac_cv_path_TIME+:} false; then : 19648 $as_echo_n "(cached) " >&6 19649 else 19650 case $TIME in 19651 [\\/]* | ?:[\\/]*) 19652 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 19653 ;; 19654 *) 19655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19656 for as_dir in $PATH 19657 do 19658 IFS=$as_save_IFS 19659 test -z "$as_dir" && as_dir=. 19660 for ac_exec_ext in '' $ac_executable_extensions; do 19661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19662 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 19663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19664 break 2 19665 fi 19666 done 19667 done 19668 IFS=$as_save_IFS 19669 19670 ;; 19671 esac 19672 fi 19673 TIME=$ac_cv_path_TIME 19674 if test -n "$TIME"; then 19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 19676 $as_echo "$TIME" >&6; } 19677 else 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19679 $as_echo "no" >&6; } 19680 fi 19681 19682 19683 test -n "$TIME" && break 19684 done 19685 19686 else 19687 # The variable is set, but is it from the command line or the environment? 19688 19689 # Try to remove the string !TIME! from our list. 19690 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 19691 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19692 # If it failed, the variable was not from the command line. Ignore it, 19693 # but warn the user (except for BASH, which is always set by the calling BASH). 19694 if test "xTIME" != xBASH; then 19695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 19696 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 19697 fi 19698 # Try to locate tool using the code snippet 19699 for ac_prog in time 19700 do 19701 # Extract the first word of "$ac_prog", so it can be a program name with args. 19702 set dummy $ac_prog; ac_word=$2 19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19704 $as_echo_n "checking for $ac_word... " >&6; } 19705 if ${ac_cv_path_TIME+:} false; then : 19706 $as_echo_n "(cached) " >&6 19707 else 19708 case $TIME in 19709 [\\/]* | ?:[\\/]*) 19710 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 19711 ;; 19712 *) 19713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19714 for as_dir in $PATH 19715 do 19716 IFS=$as_save_IFS 19717 test -z "$as_dir" && as_dir=. 19718 for ac_exec_ext in '' $ac_executable_extensions; do 19719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19720 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 19721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19722 break 2 19723 fi 19724 done 19725 done 19726 IFS=$as_save_IFS 19727 19728 ;; 19729 esac 19730 fi 19731 TIME=$ac_cv_path_TIME 19732 if test -n "$TIME"; then 19733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 19734 $as_echo "$TIME" >&6; } 19735 else 19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19737 $as_echo "no" >&6; } 19738 fi 19739 19740 19741 test -n "$TIME" && break 19742 done 19743 19744 else 19745 # If it succeeded, then it was overridden by the user. We will use it 19746 # for the tool. 19747 19748 # First remove it from the list of overridden variables, so we can test 19749 # for unknown variables in the end. 19750 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19751 19752 # Check if we try to supply an empty value 19753 if test "x$TIME" = x; then 19754 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 19755 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 19757 $as_echo_n "checking for TIME... " >&6; } 19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19759 $as_echo "disabled" >&6; } 19760 else 19761 # Check if the provided tool contains a complete path. 19762 tool_specified="$TIME" 19763 tool_basename="${tool_specified##*/}" 19764 if test "x$tool_basename" = "x$tool_specified"; then 19765 # A command without a complete path is provided, search $PATH. 19766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 19767 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 19768 # Extract the first word of "$tool_basename", so it can be a program name with args. 19769 set dummy $tool_basename; ac_word=$2 19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19771 $as_echo_n "checking for $ac_word... " >&6; } 19772 if ${ac_cv_path_TIME+:} false; then : 19773 $as_echo_n "(cached) " >&6 19774 else 19775 case $TIME in 19776 [\\/]* | ?:[\\/]*) 19777 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 19778 ;; 19779 *) 19780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19781 for as_dir in $PATH 19782 do 19783 IFS=$as_save_IFS 19784 test -z "$as_dir" && as_dir=. 19785 for ac_exec_ext in '' $ac_executable_extensions; do 19786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19787 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 19788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19789 break 2 19790 fi 19791 done 19792 done 19793 IFS=$as_save_IFS 19794 19795 ;; 19796 esac 19797 fi 19798 TIME=$ac_cv_path_TIME 19799 if test -n "$TIME"; then 19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 19801 $as_echo "$TIME" >&6; } 19802 else 19803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19804 $as_echo "no" >&6; } 19805 fi 19806 19807 19808 if test "x$TIME" = x; then 19809 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19810 fi 19811 else 19812 # Otherwise we believe it is a complete path. Use it as it is. 19813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 19814 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 19816 $as_echo_n "checking for TIME... " >&6; } 19817 if test ! -x "$tool_specified"; then 19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19819 $as_echo "not found" >&6; } 19820 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 19821 fi 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19823 $as_echo "$tool_specified" >&6; } 19824 fi 19825 fi 19826 fi 19827 fi 19828 19829 19830 19831 19832 # Publish this variable in the help. 19833 19834 19835 if [ -z "${PATCH+x}" ]; then 19836 # The variable is not set by user, try to locate tool using the code snippet 19837 for ac_prog in gpatch patch 19838 do 19839 # Extract the first word of "$ac_prog", so it can be a program name with args. 19840 set dummy $ac_prog; ac_word=$2 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19842 $as_echo_n "checking for $ac_word... " >&6; } 19843 if ${ac_cv_path_PATCH+:} false; then : 19844 $as_echo_n "(cached) " >&6 19845 else 19846 case $PATCH in 19847 [\\/]* | ?:[\\/]*) 19848 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 19849 ;; 19850 *) 19851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19852 for as_dir in $PATH 19853 do 19854 IFS=$as_save_IFS 19855 test -z "$as_dir" && as_dir=. 19856 for ac_exec_ext in '' $ac_executable_extensions; do 19857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19858 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 19859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19860 break 2 19861 fi 19862 done 19863 done 19864 IFS=$as_save_IFS 19865 19866 ;; 19867 esac 19868 fi 19869 PATCH=$ac_cv_path_PATCH 19870 if test -n "$PATCH"; then 19871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 19872 $as_echo "$PATCH" >&6; } 19873 else 19874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19875 $as_echo "no" >&6; } 19876 fi 19877 19878 19879 test -n "$PATCH" && break 19880 done 19881 19882 else 19883 # The variable is set, but is it from the command line or the environment? 19884 19885 # Try to remove the string !PATCH! from our list. 19886 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 19887 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19888 # If it failed, the variable was not from the command line. Ignore it, 19889 # but warn the user (except for BASH, which is always set by the calling BASH). 19890 if test "xPATCH" != xBASH; then 19891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 19892 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 19893 fi 19894 # Try to locate tool using the code snippet 19895 for ac_prog in gpatch patch 19896 do 19897 # Extract the first word of "$ac_prog", so it can be a program name with args. 19898 set dummy $ac_prog; ac_word=$2 19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19900 $as_echo_n "checking for $ac_word... " >&6; } 19901 if ${ac_cv_path_PATCH+:} false; then : 19902 $as_echo_n "(cached) " >&6 19903 else 19904 case $PATCH in 19905 [\\/]* | ?:[\\/]*) 19906 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 19907 ;; 19908 *) 19909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19910 for as_dir in $PATH 19911 do 19912 IFS=$as_save_IFS 19913 test -z "$as_dir" && as_dir=. 19914 for ac_exec_ext in '' $ac_executable_extensions; do 19915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19916 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 19917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19918 break 2 19919 fi 19920 done 19921 done 19922 IFS=$as_save_IFS 19923 19924 ;; 19925 esac 19926 fi 19927 PATCH=$ac_cv_path_PATCH 19928 if test -n "$PATCH"; then 19929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 19930 $as_echo "$PATCH" >&6; } 19931 else 19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19933 $as_echo "no" >&6; } 19934 fi 19935 19936 19937 test -n "$PATCH" && break 19938 done 19939 19940 else 19941 # If it succeeded, then it was overridden by the user. We will use it 19942 # for the tool. 19943 19944 # First remove it from the list of overridden variables, so we can test 19945 # for unknown variables in the end. 19946 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19947 19948 # Check if we try to supply an empty value 19949 if test "x$PATCH" = x; then 19950 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 19951 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 19953 $as_echo_n "checking for PATCH... " >&6; } 19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 19955 $as_echo "disabled" >&6; } 19956 else 19957 # Check if the provided tool contains a complete path. 19958 tool_specified="$PATCH" 19959 tool_basename="${tool_specified##*/}" 19960 if test "x$tool_basename" = "x$tool_specified"; then 19961 # A command without a complete path is provided, search $PATH. 19962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 19963 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 19964 # Extract the first word of "$tool_basename", so it can be a program name with args. 19965 set dummy $tool_basename; ac_word=$2 19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19967 $as_echo_n "checking for $ac_word... " >&6; } 19968 if ${ac_cv_path_PATCH+:} false; then : 19969 $as_echo_n "(cached) " >&6 19970 else 19971 case $PATCH in 19972 [\\/]* | ?:[\\/]*) 19973 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 19974 ;; 19975 *) 19976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19977 for as_dir in $PATH 19978 do 19979 IFS=$as_save_IFS 19980 test -z "$as_dir" && as_dir=. 19981 for ac_exec_ext in '' $ac_executable_extensions; do 19982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19983 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 19984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19985 break 2 19986 fi 19987 done 19988 done 19989 IFS=$as_save_IFS 19990 19991 ;; 19992 esac 19993 fi 19994 PATCH=$ac_cv_path_PATCH 19995 if test -n "$PATCH"; then 19996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 19997 $as_echo "$PATCH" >&6; } 19998 else 19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20000 $as_echo "no" >&6; } 20001 fi 20002 20003 20004 if test "x$PATCH" = x; then 20005 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20006 fi 20007 else 20008 # Otherwise we believe it is a complete path. Use it as it is. 20009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 20010 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 20011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 20012 $as_echo_n "checking for PATCH... " >&6; } 20013 if test ! -x "$tool_specified"; then 20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20015 $as_echo "not found" >&6; } 20016 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 20017 fi 20018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20019 $as_echo "$tool_specified" >&6; } 20020 fi 20021 fi 20022 fi 20023 fi 20024 20025 20026 # Check if it's GNU time 20027 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 20028 if test "x$IS_GNU_TIME" != x; then 20029 IS_GNU_TIME=yes 20030 else 20031 IS_GNU_TIME=no 20032 fi 20033 20034 20035 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 20036 20037 20038 20039 # Publish this variable in the help. 20040 20041 20042 if [ -z "${DSYMUTIL+x}" ]; then 20043 # The variable is not set by user, try to locate tool using the code snippet 20044 for ac_prog in dsymutil 20045 do 20046 # Extract the first word of "$ac_prog", so it can be a program name with args. 20047 set dummy $ac_prog; ac_word=$2 20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20049 $as_echo_n "checking for $ac_word... " >&6; } 20050 if ${ac_cv_path_DSYMUTIL+:} false; then : 20051 $as_echo_n "(cached) " >&6 20052 else 20053 case $DSYMUTIL in 20054 [\\/]* | ?:[\\/]*) 20055 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 20056 ;; 20057 *) 20058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20059 for as_dir in $PATH 20060 do 20061 IFS=$as_save_IFS 20062 test -z "$as_dir" && as_dir=. 20063 for ac_exec_ext in '' $ac_executable_extensions; do 20064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20065 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 20066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20067 break 2 20068 fi 20069 done 20070 done 20071 IFS=$as_save_IFS 20072 20073 ;; 20074 esac 20075 fi 20076 DSYMUTIL=$ac_cv_path_DSYMUTIL 20077 if test -n "$DSYMUTIL"; then 20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 20079 $as_echo "$DSYMUTIL" >&6; } 20080 else 20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20082 $as_echo "no" >&6; } 20083 fi 20084 20085 20086 test -n "$DSYMUTIL" && break 20087 done 20088 20089 else 20090 # The variable is set, but is it from the command line or the environment? 20091 20092 # Try to remove the string !DSYMUTIL! from our list. 20093 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 20094 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20095 # If it failed, the variable was not from the command line. Ignore it, 20096 # but warn the user (except for BASH, which is always set by the calling BASH). 20097 if test "xDSYMUTIL" != xBASH; then 20098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 20099 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 20100 fi 20101 # Try to locate tool using the code snippet 20102 for ac_prog in dsymutil 20103 do 20104 # Extract the first word of "$ac_prog", so it can be a program name with args. 20105 set dummy $ac_prog; ac_word=$2 20106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20107 $as_echo_n "checking for $ac_word... " >&6; } 20108 if ${ac_cv_path_DSYMUTIL+:} false; then : 20109 $as_echo_n "(cached) " >&6 20110 else 20111 case $DSYMUTIL in 20112 [\\/]* | ?:[\\/]*) 20113 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 20114 ;; 20115 *) 20116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20117 for as_dir in $PATH 20118 do 20119 IFS=$as_save_IFS 20120 test -z "$as_dir" && as_dir=. 20121 for ac_exec_ext in '' $ac_executable_extensions; do 20122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20123 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 20124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20125 break 2 20126 fi 20127 done 20128 done 20129 IFS=$as_save_IFS 20130 20131 ;; 20132 esac 20133 fi 20134 DSYMUTIL=$ac_cv_path_DSYMUTIL 20135 if test -n "$DSYMUTIL"; then 20136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 20137 $as_echo "$DSYMUTIL" >&6; } 20138 else 20139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20140 $as_echo "no" >&6; } 20141 fi 20142 20143 20144 test -n "$DSYMUTIL" && break 20145 done 20146 20147 else 20148 # If it succeeded, then it was overridden by the user. We will use it 20149 # for the tool. 20150 20151 # First remove it from the list of overridden variables, so we can test 20152 # for unknown variables in the end. 20153 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20154 20155 # Check if we try to supply an empty value 20156 if test "x$DSYMUTIL" = x; then 20157 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 20158 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 20160 $as_echo_n "checking for DSYMUTIL... " >&6; } 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20162 $as_echo "disabled" >&6; } 20163 else 20164 # Check if the provided tool contains a complete path. 20165 tool_specified="$DSYMUTIL" 20166 tool_basename="${tool_specified##*/}" 20167 if test "x$tool_basename" = "x$tool_specified"; then 20168 # A command without a complete path is provided, search $PATH. 20169 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 20170 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 20171 # Extract the first word of "$tool_basename", so it can be a program name with args. 20172 set dummy $tool_basename; ac_word=$2 20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20174 $as_echo_n "checking for $ac_word... " >&6; } 20175 if ${ac_cv_path_DSYMUTIL+:} false; then : 20176 $as_echo_n "(cached) " >&6 20177 else 20178 case $DSYMUTIL in 20179 [\\/]* | ?:[\\/]*) 20180 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 20181 ;; 20182 *) 20183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20184 for as_dir in $PATH 20185 do 20186 IFS=$as_save_IFS 20187 test -z "$as_dir" && as_dir=. 20188 for ac_exec_ext in '' $ac_executable_extensions; do 20189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20190 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 20191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20192 break 2 20193 fi 20194 done 20195 done 20196 IFS=$as_save_IFS 20197 20198 ;; 20199 esac 20200 fi 20201 DSYMUTIL=$ac_cv_path_DSYMUTIL 20202 if test -n "$DSYMUTIL"; then 20203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 20204 $as_echo "$DSYMUTIL" >&6; } 20205 else 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20207 $as_echo "no" >&6; } 20208 fi 20209 20210 20211 if test "x$DSYMUTIL" = x; then 20212 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20213 fi 20214 else 20215 # Otherwise we believe it is a complete path. Use it as it is. 20216 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 20217 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 20218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 20219 $as_echo_n "checking for DSYMUTIL... " >&6; } 20220 if test ! -x "$tool_specified"; then 20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20222 $as_echo "not found" >&6; } 20223 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 20224 fi 20225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20226 $as_echo "$tool_specified" >&6; } 20227 fi 20228 fi 20229 fi 20230 fi 20231 20232 20233 20234 if test "x$DSYMUTIL" = x; then 20235 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 20236 fi 20237 20238 20239 20240 20241 20242 # Publish this variable in the help. 20243 20244 20245 if [ -z "${XATTR+x}" ]; then 20246 # The variable is not set by user, try to locate tool using the code snippet 20247 for ac_prog in xattr 20248 do 20249 # Extract the first word of "$ac_prog", so it can be a program name with args. 20250 set dummy $ac_prog; ac_word=$2 20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20252 $as_echo_n "checking for $ac_word... " >&6; } 20253 if ${ac_cv_path_XATTR+:} false; then : 20254 $as_echo_n "(cached) " >&6 20255 else 20256 case $XATTR in 20257 [\\/]* | ?:[\\/]*) 20258 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 20259 ;; 20260 *) 20261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20262 for as_dir in $PATH 20263 do 20264 IFS=$as_save_IFS 20265 test -z "$as_dir" && as_dir=. 20266 for ac_exec_ext in '' $ac_executable_extensions; do 20267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20268 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 20269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20270 break 2 20271 fi 20272 done 20273 done 20274 IFS=$as_save_IFS 20275 20276 ;; 20277 esac 20278 fi 20279 XATTR=$ac_cv_path_XATTR 20280 if test -n "$XATTR"; then 20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 20282 $as_echo "$XATTR" >&6; } 20283 else 20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20285 $as_echo "no" >&6; } 20286 fi 20287 20288 20289 test -n "$XATTR" && break 20290 done 20291 20292 else 20293 # The variable is set, but is it from the command line or the environment? 20294 20295 # Try to remove the string !XATTR! from our list. 20296 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 20297 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20298 # If it failed, the variable was not from the command line. Ignore it, 20299 # but warn the user (except for BASH, which is always set by the calling BASH). 20300 if test "xXATTR" != xBASH; then 20301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 20302 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 20303 fi 20304 # Try to locate tool using the code snippet 20305 for ac_prog in xattr 20306 do 20307 # Extract the first word of "$ac_prog", so it can be a program name with args. 20308 set dummy $ac_prog; ac_word=$2 20309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20310 $as_echo_n "checking for $ac_word... " >&6; } 20311 if ${ac_cv_path_XATTR+:} false; then : 20312 $as_echo_n "(cached) " >&6 20313 else 20314 case $XATTR in 20315 [\\/]* | ?:[\\/]*) 20316 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 20317 ;; 20318 *) 20319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20320 for as_dir in $PATH 20321 do 20322 IFS=$as_save_IFS 20323 test -z "$as_dir" && as_dir=. 20324 for ac_exec_ext in '' $ac_executable_extensions; do 20325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20326 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 20327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20328 break 2 20329 fi 20330 done 20331 done 20332 IFS=$as_save_IFS 20333 20334 ;; 20335 esac 20336 fi 20337 XATTR=$ac_cv_path_XATTR 20338 if test -n "$XATTR"; then 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 20340 $as_echo "$XATTR" >&6; } 20341 else 20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20343 $as_echo "no" >&6; } 20344 fi 20345 20346 20347 test -n "$XATTR" && break 20348 done 20349 20350 else 20351 # If it succeeded, then it was overridden by the user. We will use it 20352 # for the tool. 20353 20354 # First remove it from the list of overridden variables, so we can test 20355 # for unknown variables in the end. 20356 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20357 20358 # Check if we try to supply an empty value 20359 if test "x$XATTR" = x; then 20360 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 20361 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 20363 $as_echo_n "checking for XATTR... " >&6; } 20364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20365 $as_echo "disabled" >&6; } 20366 else 20367 # Check if the provided tool contains a complete path. 20368 tool_specified="$XATTR" 20369 tool_basename="${tool_specified##*/}" 20370 if test "x$tool_basename" = "x$tool_specified"; then 20371 # A command without a complete path is provided, search $PATH. 20372 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 20373 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 20374 # Extract the first word of "$tool_basename", so it can be a program name with args. 20375 set dummy $tool_basename; ac_word=$2 20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20377 $as_echo_n "checking for $ac_word... " >&6; } 20378 if ${ac_cv_path_XATTR+:} false; then : 20379 $as_echo_n "(cached) " >&6 20380 else 20381 case $XATTR in 20382 [\\/]* | ?:[\\/]*) 20383 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 20384 ;; 20385 *) 20386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20387 for as_dir in $PATH 20388 do 20389 IFS=$as_save_IFS 20390 test -z "$as_dir" && as_dir=. 20391 for ac_exec_ext in '' $ac_executable_extensions; do 20392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20393 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 20394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20395 break 2 20396 fi 20397 done 20398 done 20399 IFS=$as_save_IFS 20400 20401 ;; 20402 esac 20403 fi 20404 XATTR=$ac_cv_path_XATTR 20405 if test -n "$XATTR"; then 20406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 20407 $as_echo "$XATTR" >&6; } 20408 else 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20410 $as_echo "no" >&6; } 20411 fi 20412 20413 20414 if test "x$XATTR" = x; then 20415 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20416 fi 20417 else 20418 # Otherwise we believe it is a complete path. Use it as it is. 20419 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 20420 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 20422 $as_echo_n "checking for XATTR... " >&6; } 20423 if test ! -x "$tool_specified"; then 20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20425 $as_echo "not found" >&6; } 20426 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 20427 fi 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20429 $as_echo "$tool_specified" >&6; } 20430 fi 20431 fi 20432 fi 20433 fi 20434 20435 20436 20437 if test "x$XATTR" = x; then 20438 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 20439 fi 20440 20441 20442 20443 20444 # Publish this variable in the help. 20445 20446 20447 if [ -z "${CODESIGN+x}" ]; then 20448 # The variable is not set by user, try to locate tool using the code snippet 20449 for ac_prog in codesign 20450 do 20451 # Extract the first word of "$ac_prog", so it can be a program name with args. 20452 set dummy $ac_prog; ac_word=$2 20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20454 $as_echo_n "checking for $ac_word... " >&6; } 20455 if ${ac_cv_path_CODESIGN+:} false; then : 20456 $as_echo_n "(cached) " >&6 20457 else 20458 case $CODESIGN in 20459 [\\/]* | ?:[\\/]*) 20460 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 20461 ;; 20462 *) 20463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20464 for as_dir in $PATH 20465 do 20466 IFS=$as_save_IFS 20467 test -z "$as_dir" && as_dir=. 20468 for ac_exec_ext in '' $ac_executable_extensions; do 20469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20470 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 20471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20472 break 2 20473 fi 20474 done 20475 done 20476 IFS=$as_save_IFS 20477 20478 ;; 20479 esac 20480 fi 20481 CODESIGN=$ac_cv_path_CODESIGN 20482 if test -n "$CODESIGN"; then 20483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 20484 $as_echo "$CODESIGN" >&6; } 20485 else 20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20487 $as_echo "no" >&6; } 20488 fi 20489 20490 20491 test -n "$CODESIGN" && break 20492 done 20493 20494 else 20495 # The variable is set, but is it from the command line or the environment? 20496 20497 # Try to remove the string !CODESIGN! from our list. 20498 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 20499 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20500 # If it failed, the variable was not from the command line. Ignore it, 20501 # but warn the user (except for BASH, which is always set by the calling BASH). 20502 if test "xCODESIGN" != xBASH; then 20503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 20504 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 20505 fi 20506 # Try to locate tool using the code snippet 20507 for ac_prog in codesign 20508 do 20509 # Extract the first word of "$ac_prog", so it can be a program name with args. 20510 set dummy $ac_prog; ac_word=$2 20511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20512 $as_echo_n "checking for $ac_word... " >&6; } 20513 if ${ac_cv_path_CODESIGN+:} false; then : 20514 $as_echo_n "(cached) " >&6 20515 else 20516 case $CODESIGN in 20517 [\\/]* | ?:[\\/]*) 20518 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 20519 ;; 20520 *) 20521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20522 for as_dir in $PATH 20523 do 20524 IFS=$as_save_IFS 20525 test -z "$as_dir" && as_dir=. 20526 for ac_exec_ext in '' $ac_executable_extensions; do 20527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20528 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 20529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20530 break 2 20531 fi 20532 done 20533 done 20534 IFS=$as_save_IFS 20535 20536 ;; 20537 esac 20538 fi 20539 CODESIGN=$ac_cv_path_CODESIGN 20540 if test -n "$CODESIGN"; then 20541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 20542 $as_echo "$CODESIGN" >&6; } 20543 else 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20545 $as_echo "no" >&6; } 20546 fi 20547 20548 20549 test -n "$CODESIGN" && break 20550 done 20551 20552 else 20553 # If it succeeded, then it was overridden by the user. We will use it 20554 # for the tool. 20555 20556 # First remove it from the list of overridden variables, so we can test 20557 # for unknown variables in the end. 20558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20559 20560 # Check if we try to supply an empty value 20561 if test "x$CODESIGN" = x; then 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 20563 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 20565 $as_echo_n "checking for CODESIGN... " >&6; } 20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20567 $as_echo "disabled" >&6; } 20568 else 20569 # Check if the provided tool contains a complete path. 20570 tool_specified="$CODESIGN" 20571 tool_basename="${tool_specified##*/}" 20572 if test "x$tool_basename" = "x$tool_specified"; then 20573 # A command without a complete path is provided, search $PATH. 20574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 20575 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 20576 # Extract the first word of "$tool_basename", so it can be a program name with args. 20577 set dummy $tool_basename; ac_word=$2 20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20579 $as_echo_n "checking for $ac_word... " >&6; } 20580 if ${ac_cv_path_CODESIGN+:} false; then : 20581 $as_echo_n "(cached) " >&6 20582 else 20583 case $CODESIGN in 20584 [\\/]* | ?:[\\/]*) 20585 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 20586 ;; 20587 *) 20588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20589 for as_dir in $PATH 20590 do 20591 IFS=$as_save_IFS 20592 test -z "$as_dir" && as_dir=. 20593 for ac_exec_ext in '' $ac_executable_extensions; do 20594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20595 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 20596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20597 break 2 20598 fi 20599 done 20600 done 20601 IFS=$as_save_IFS 20602 20603 ;; 20604 esac 20605 fi 20606 CODESIGN=$ac_cv_path_CODESIGN 20607 if test -n "$CODESIGN"; then 20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 20609 $as_echo "$CODESIGN" >&6; } 20610 else 20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20612 $as_echo "no" >&6; } 20613 fi 20614 20615 20616 if test "x$CODESIGN" = x; then 20617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20618 fi 20619 else 20620 # Otherwise we believe it is a complete path. Use it as it is. 20621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 20622 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 20623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 20624 $as_echo_n "checking for CODESIGN... " >&6; } 20625 if test ! -x "$tool_specified"; then 20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20627 $as_echo "not found" >&6; } 20628 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 20629 fi 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20631 $as_echo "$tool_specified" >&6; } 20632 fi 20633 fi 20634 fi 20635 fi 20636 20637 20638 if test "x$CODESIGN" != "x"; then 20639 # Verify that the openjdk_codesign certificate is present 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 20641 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 20642 rm -f codesign-testfile 20643 touch codesign-testfile 20644 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 20645 rm -f codesign-testfile 20646 if test "x$CODESIGN" = x; then 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20648 $as_echo "no" >&6; } 20649 else 20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20651 $as_echo "yes" >&6; } 20652 fi 20653 fi 20654 20655 20656 20657 # Publish this variable in the help. 20658 20659 20660 if [ -z "${SETFILE+x}" ]; then 20661 # The variable is not set by user, try to locate tool using the code snippet 20662 for ac_prog in SetFile 20663 do 20664 # Extract the first word of "$ac_prog", so it can be a program name with args. 20665 set dummy $ac_prog; ac_word=$2 20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20667 $as_echo_n "checking for $ac_word... " >&6; } 20668 if ${ac_cv_path_SETFILE+:} false; then : 20669 $as_echo_n "(cached) " >&6 20670 else 20671 case $SETFILE in 20672 [\\/]* | ?:[\\/]*) 20673 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 20674 ;; 20675 *) 20676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20677 for as_dir in $PATH 20678 do 20679 IFS=$as_save_IFS 20680 test -z "$as_dir" && as_dir=. 20681 for ac_exec_ext in '' $ac_executable_extensions; do 20682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20683 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 20684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20685 break 2 20686 fi 20687 done 20688 done 20689 IFS=$as_save_IFS 20690 20691 ;; 20692 esac 20693 fi 20694 SETFILE=$ac_cv_path_SETFILE 20695 if test -n "$SETFILE"; then 20696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 20697 $as_echo "$SETFILE" >&6; } 20698 else 20699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20700 $as_echo "no" >&6; } 20701 fi 20702 20703 20704 test -n "$SETFILE" && break 20705 done 20706 20707 else 20708 # The variable is set, but is it from the command line or the environment? 20709 20710 # Try to remove the string !SETFILE! from our list. 20711 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 20712 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 20713 # If it failed, the variable was not from the command line. Ignore it, 20714 # but warn the user (except for BASH, which is always set by the calling BASH). 20715 if test "xSETFILE" != xBASH; then 20716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 20717 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 20718 fi 20719 # Try to locate tool using the code snippet 20720 for ac_prog in SetFile 20721 do 20722 # Extract the first word of "$ac_prog", so it can be a program name with args. 20723 set dummy $ac_prog; ac_word=$2 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20725 $as_echo_n "checking for $ac_word... " >&6; } 20726 if ${ac_cv_path_SETFILE+:} false; then : 20727 $as_echo_n "(cached) " >&6 20728 else 20729 case $SETFILE in 20730 [\\/]* | ?:[\\/]*) 20731 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 20732 ;; 20733 *) 20734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20735 for as_dir in $PATH 20736 do 20737 IFS=$as_save_IFS 20738 test -z "$as_dir" && as_dir=. 20739 for ac_exec_ext in '' $ac_executable_extensions; do 20740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20741 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 20742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20743 break 2 20744 fi 20745 done 20746 done 20747 IFS=$as_save_IFS 20748 20749 ;; 20750 esac 20751 fi 20752 SETFILE=$ac_cv_path_SETFILE 20753 if test -n "$SETFILE"; then 20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 20755 $as_echo "$SETFILE" >&6; } 20756 else 20757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20758 $as_echo "no" >&6; } 20759 fi 20760 20761 20762 test -n "$SETFILE" && break 20763 done 20764 20765 else 20766 # If it succeeded, then it was overridden by the user. We will use it 20767 # for the tool. 20768 20769 # First remove it from the list of overridden variables, so we can test 20770 # for unknown variables in the end. 20771 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20772 20773 # Check if we try to supply an empty value 20774 if test "x$SETFILE" = x; then 20775 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 20776 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 20777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 20778 $as_echo_n "checking for SETFILE... " >&6; } 20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20780 $as_echo "disabled" >&6; } 20781 else 20782 # Check if the provided tool contains a complete path. 20783 tool_specified="$SETFILE" 20784 tool_basename="${tool_specified##*/}" 20785 if test "x$tool_basename" = "x$tool_specified"; then 20786 # A command without a complete path is provided, search $PATH. 20787 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 20788 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 20789 # Extract the first word of "$tool_basename", so it can be a program name with args. 20790 set dummy $tool_basename; ac_word=$2 20791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20792 $as_echo_n "checking for $ac_word... " >&6; } 20793 if ${ac_cv_path_SETFILE+:} false; then : 20794 $as_echo_n "(cached) " >&6 20795 else 20796 case $SETFILE in 20797 [\\/]* | ?:[\\/]*) 20798 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 20799 ;; 20800 *) 20801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20802 for as_dir in $PATH 20803 do 20804 IFS=$as_save_IFS 20805 test -z "$as_dir" && as_dir=. 20806 for ac_exec_ext in '' $ac_executable_extensions; do 20807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20808 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 20809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20810 break 2 20811 fi 20812 done 20813 done 20814 IFS=$as_save_IFS 20815 20816 ;; 20817 esac 20818 fi 20819 SETFILE=$ac_cv_path_SETFILE 20820 if test -n "$SETFILE"; then 20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 20822 $as_echo "$SETFILE" >&6; } 20823 else 20824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20825 $as_echo "no" >&6; } 20826 fi 20827 20828 20829 if test "x$SETFILE" = x; then 20830 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 20831 fi 20832 else 20833 # Otherwise we believe it is a complete path. Use it as it is. 20834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 20835 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 20837 $as_echo_n "checking for SETFILE... " >&6; } 20838 if test ! -x "$tool_specified"; then 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 20840 $as_echo "not found" >&6; } 20841 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 20842 fi 20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 20844 $as_echo "$tool_specified" >&6; } 20845 fi 20846 fi 20847 fi 20848 fi 20849 20850 20851 20852 if test "x$SETFILE" = x; then 20853 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 20854 fi 20855 20856 20857 fi 20858 20859 20860 # Test if bash supports pipefail. 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 20862 $as_echo_n "checking if bash supports pipefail... " >&6; } 20863 if ${BASH} -c 'set -o pipefail'; then 20864 BASH_ARGS="$BASH_ARGS -o pipefail" 20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20866 $as_echo "yes" >&6; } 20867 else 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20869 $as_echo "no" >&6; } 20870 fi 20871 20872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 20873 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 20874 if ${BASH} -e -c 'true'; then 20875 BASH_ARGS="$BASH_ARGS -e" 20876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20877 $as_echo "yes" >&6; } 20878 else 20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20880 $as_echo "no" >&6; } 20881 fi 20882 20883 20884 20885 20886 # Check if pkg-config is available. 20887 20888 20889 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20890 if test -n "$ac_tool_prefix"; then 20891 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20892 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20894 $as_echo_n "checking for $ac_word... " >&6; } 20895 if ${ac_cv_path_PKG_CONFIG+:} false; then : 20896 $as_echo_n "(cached) " >&6 20897 else 20898 case $PKG_CONFIG in 20899 [\\/]* | ?:[\\/]*) 20900 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20901 ;; 20902 *) 20903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20904 for as_dir in $PATH 20905 do 20906 IFS=$as_save_IFS 20907 test -z "$as_dir" && as_dir=. 20908 for ac_exec_ext in '' $ac_executable_extensions; do 20909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20910 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20912 break 2 20913 fi 20914 done 20915 done 20916 IFS=$as_save_IFS 20917 20918 ;; 20919 esac 20920 fi 20921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20922 if test -n "$PKG_CONFIG"; then 20923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20924 $as_echo "$PKG_CONFIG" >&6; } 20925 else 20926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20927 $as_echo "no" >&6; } 20928 fi 20929 20930 20931 fi 20932 if test -z "$ac_cv_path_PKG_CONFIG"; then 20933 ac_pt_PKG_CONFIG=$PKG_CONFIG 20934 # Extract the first word of "pkg-config", so it can be a program name with args. 20935 set dummy pkg-config; ac_word=$2 20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20937 $as_echo_n "checking for $ac_word... " >&6; } 20938 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 20939 $as_echo_n "(cached) " >&6 20940 else 20941 case $ac_pt_PKG_CONFIG in 20942 [\\/]* | ?:[\\/]*) 20943 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20944 ;; 20945 *) 20946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20947 for as_dir in $PATH 20948 do 20949 IFS=$as_save_IFS 20950 test -z "$as_dir" && as_dir=. 20951 for ac_exec_ext in '' $ac_executable_extensions; do 20952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20953 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20955 break 2 20956 fi 20957 done 20958 done 20959 IFS=$as_save_IFS 20960 20961 ;; 20962 esac 20963 fi 20964 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20965 if test -n "$ac_pt_PKG_CONFIG"; then 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20967 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 20968 else 20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20970 $as_echo "no" >&6; } 20971 fi 20972 20973 if test "x$ac_pt_PKG_CONFIG" = x; then 20974 PKG_CONFIG="" 20975 else 20976 case $cross_compiling:$ac_tool_warned in 20977 yes:) 20978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20980 ac_tool_warned=yes ;; 20981 esac 20982 PKG_CONFIG=$ac_pt_PKG_CONFIG 20983 fi 20984 else 20985 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20986 fi 20987 20988 fi 20989 if test -n "$PKG_CONFIG"; then 20990 _pkg_min_version=0.9.0 20991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20992 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20993 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20995 $as_echo "yes" >&6; } 20996 else 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20998 $as_echo "no" >&6; } 20999 PKG_CONFIG="" 21000 fi 21001 21002 fi 21003 21004 # After basic tools have been setup, we can check build os specific details. 21005 21006 ############################################################################### 21007 21008 # Note that this is the build platform OS version! 21009 21010 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 21011 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 21012 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 21013 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 21014 21015 21016 21017 21018 21019 ############################################################################### 21020 # 21021 # Determine OpenJDK variants, options and version numbers. 21022 # 21023 ############################################################################### 21024 21025 # We need build & target for this. 21026 21027 21028 ############################################################################### 21029 # 21030 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 21031 # We always build headless support. 21032 # 21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 21034 $as_echo_n "checking headful support... " >&6; } 21035 # Check whether --enable-headful was given. 21036 if test "${enable_headful+set}" = set; then : 21037 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 21038 else 21039 SUPPORT_HEADFUL=yes 21040 fi 21041 21042 21043 SUPPORT_HEADLESS=yes 21044 BUILD_HEADLESS="BUILD_HEADLESS:=true" 21045 21046 if test "x$SUPPORT_HEADFUL" = xyes; then 21047 # We are building both headful and headless. 21048 headful_msg="include support for both headful and headless" 21049 fi 21050 21051 if test "x$SUPPORT_HEADFUL" = xno; then 21052 # Thus we are building headless only. 21053 BUILD_HEADLESS="BUILD_HEADLESS:=true" 21054 headful_msg="headless only" 21055 fi 21056 21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 21058 $as_echo "$headful_msg" >&6; } 21059 21060 21061 21062 21063 21064 # Control wether Hotspot runs Queens test after build. 21065 # Check whether --enable-hotspot-test-in-build was given. 21066 if test "${enable_hotspot_test_in_build+set}" = set; then : 21067 enableval=$enable_hotspot_test_in_build; 21068 else 21069 enable_hotspot_test_in_build=no 21070 fi 21071 21072 if test "x$enable_hotspot_test_in_build" = "xyes"; then 21073 TEST_IN_BUILD=true 21074 else 21075 TEST_IN_BUILD=false 21076 fi 21077 21078 21079 ############################################################################### 21080 # 21081 # Choose cacerts source file 21082 # 21083 21084 # Check whether --with-cacerts-file was given. 21085 if test "${with_cacerts_file+set}" = set; then : 21086 withval=$with_cacerts_file; 21087 fi 21088 21089 if test "x$with_cacerts_file" != x; then 21090 CACERTS_FILE=$with_cacerts_file 21091 fi 21092 21093 21094 ############################################################################### 21095 # 21096 # Enable or disable unlimited crypto 21097 # 21098 # Check whether --enable-unlimited-crypto was given. 21099 if test "${enable_unlimited_crypto+set}" = set; then : 21100 enableval=$enable_unlimited_crypto; 21101 else 21102 enable_unlimited_crypto=no 21103 fi 21104 21105 if test "x$enable_unlimited_crypto" = "xyes"; then 21106 UNLIMITED_CRYPTO=true 21107 else 21108 UNLIMITED_CRYPTO=false 21109 fi 21110 21111 21112 ############################################################################### 21113 # 21114 # Enable or disable the elliptic curve crypto implementation 21115 # 21116 21117 21118 ############################################################################### 21119 # 21120 # Compress jars 21121 # 21122 COMPRESS_JARS=false 21123 21124 21125 21126 21127 # Source the version numbers 21128 . $AUTOCONF_DIR/version-numbers 21129 21130 # Get the settings from parameters 21131 21132 # Check whether --with-milestone was given. 21133 if test "${with_milestone+set}" = set; then : 21134 withval=$with_milestone; 21135 fi 21136 21137 if test "x$with_milestone" = xyes; then 21138 as_fn_error $? "Milestone must have a value" "$LINENO" 5 21139 elif test "x$with_milestone" != x; then 21140 MILESTONE="$with_milestone" 21141 fi 21142 if test "x$MILESTONE" = x; then 21143 MILESTONE=internal 21144 fi 21145 21146 21147 # Check whether --with-update-version was given. 21148 if test "${with_update_version+set}" = set; then : 21149 withval=$with_update_version; 21150 fi 21151 21152 if test "x$with_update_version" = xyes; then 21153 as_fn_error $? "Update version must have a value" "$LINENO" 5 21154 elif test "x$with_update_version" != x; then 21155 JDK_UPDATE_VERSION="$with_update_version" 21156 # On macosx 10.7, it's not possible to set --with-update-version=0X due 21157 # to a bug in expr (which reduces it to just X). To work around this, we 21158 # always add a 0 to one digit update versions. 21159 if test "${#JDK_UPDATE_VERSION}" = "1"; then 21160 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 21161 fi 21162 fi 21163 21164 21165 # Check whether --with-user-release-suffix was given. 21166 if test "${with_user_release_suffix+set}" = set; then : 21167 withval=$with_user_release_suffix; 21168 fi 21169 21170 if test "x$with_user_release_suffix" = xyes; then 21171 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 21172 elif test "x$with_user_release_suffix" != x; then 21173 USER_RELEASE_SUFFIX="$with_user_release_suffix" 21174 fi 21175 21176 21177 # Check whether --with-build-number was given. 21178 if test "${with_build_number+set}" = set; then : 21179 withval=$with_build_number; 21180 fi 21181 21182 if test "x$with_build_number" = xyes; then 21183 as_fn_error $? "Build number must have a value" "$LINENO" 5 21184 elif test "x$with_build_number" != x; then 21185 JDK_BUILD_NUMBER="$with_build_number" 21186 fi 21187 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 21188 if test "x$JDK_BUILD_NUMBER" = x; then 21189 JDK_BUILD_NUMBER=b00 21190 if test "x$USER_RELEASE_SUFFIX" = x; then 21191 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 21192 # Avoid [:alnum:] since it depends on the locale. 21193 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 21194 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21195 fi 21196 fi 21197 21198 # Now set the JDK version, milestone, build number etc. 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 # Check whether --with-copyright-year was given. 21216 if test "${with_copyright_year+set}" = set; then : 21217 withval=$with_copyright_year; 21218 fi 21219 21220 if test "x$with_copyright_year" = xyes; then 21221 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 21222 elif test "x$with_copyright_year" != x; then 21223 COPYRIGHT_YEAR="$with_copyright_year" 21224 else 21225 COPYRIGHT_YEAR=`date +'%Y'` 21226 fi 21227 21228 21229 if test "x$JDK_UPDATE_VERSION" != x; then 21230 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 21231 else 21232 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 21233 fi 21234 21235 21236 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 21237 21238 21239 21240 ############################################################################### 21241 # 21242 # Setup BootJDK, used to bootstrap the build. 21243 # 21244 ############################################################################### 21245 21246 21247 BOOT_JDK_FOUND=no 21248 21249 # Check whether --with-boot-jdk was given. 21250 if test "${with_boot_jdk+set}" = set; then : 21251 withval=$with_boot_jdk; 21252 fi 21253 21254 21255 # We look for the Boot JDK through various means, going from more certain to 21256 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 21257 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 21258 # must check if this is indeed valid; otherwise we'll continue looking. 21259 21260 # Test: Is bootjdk explicitely set by command line arguments? 21261 21262 if test "x$BOOT_JDK_FOUND" = xno; then 21263 # Now execute the test 21264 21265 if test "x$with_boot_jdk" != x; then 21266 BOOT_JDK=$with_boot_jdk 21267 BOOT_JDK_FOUND=maybe 21268 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 21269 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 21270 fi 21271 21272 21273 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21274 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21275 # Do we have a bin/java? 21276 if test ! -x "$BOOT_JDK/bin/java"; then 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21278 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21279 BOOT_JDK_FOUND=no 21280 else 21281 # Do we have a bin/javac? 21282 if test ! -x "$BOOT_JDK/bin/javac"; then 21283 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21284 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21285 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21286 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21287 BOOT_JDK_FOUND=no 21288 else 21289 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21290 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21291 21292 # Extra M4 quote needed to protect [] in grep expression. 21293 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21294 if test "x$FOUND_CORRECT_VERSION" = x; then 21295 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21296 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21297 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21298 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21299 BOOT_JDK_FOUND=no 21300 else 21301 # We're done! :-) 21302 BOOT_JDK_FOUND=yes 21303 21304 # Only process if variable expands to non-empty 21305 21306 if test "x$BOOT_JDK" != x; then 21307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21308 21309 # Input might be given as Windows format, start by converting to 21310 # unix format. 21311 path="$BOOT_JDK" 21312 new_path=`$CYGPATH -u "$path"` 21313 21314 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21315 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21316 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21317 # "foo.exe" is OK but "foo" is an error. 21318 # 21319 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21320 # It is also a way to make sure we got the proper file name for the real test later on. 21321 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21322 if test "x$test_shortpath" = x; then 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21325 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21326 fi 21327 21328 # Call helper function which possibly converts this using DOS-style short mode. 21329 # If so, the updated path is stored in $new_path. 21330 21331 input_path="$new_path" 21332 # Check if we need to convert this using DOS-style short mode. If the path 21333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21334 # take no chances and rewrite it. 21335 # Note: m4 eats our [], so we need to use [ and ] instead. 21336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21337 if test "x$has_forbidden_chars" != x; then 21338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21339 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21340 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21341 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21342 # Going to short mode and back again did indeed matter. Since short mode is 21343 # case insensitive, let's make it lowercase to improve readability. 21344 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21345 # Now convert it back to Unix-style (cygpath) 21346 input_path=`$CYGPATH -u "$shortmode_path"` 21347 new_path="$input_path" 21348 fi 21349 fi 21350 21351 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21352 if test "x$test_cygdrive_prefix" = x; then 21353 # As a simple fix, exclude /usr/bin since it's not a real path. 21354 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21355 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21356 # a path prefixed by /cygdrive for fixpath to work. 21357 new_path="$CYGWIN_ROOT_PATH$input_path" 21358 fi 21359 fi 21360 21361 21362 if test "x$path" != "x$new_path"; then 21363 BOOT_JDK="$new_path" 21364 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21365 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21366 fi 21367 21368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21369 21370 path="$BOOT_JDK" 21371 has_colon=`$ECHO $path | $GREP ^.:` 21372 new_path="$path" 21373 if test "x$has_colon" = x; then 21374 # Not in mixed or Windows style, start by that. 21375 new_path=`cmd //c echo $path` 21376 fi 21377 21378 21379 input_path="$new_path" 21380 # Check if we need to convert this using DOS-style short mode. If the path 21381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21382 # take no chances and rewrite it. 21383 # Note: m4 eats our [], so we need to use [ and ] instead. 21384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21385 if test "x$has_forbidden_chars" != x; then 21386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21387 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21388 fi 21389 21390 21391 windows_path="$new_path" 21392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21393 unix_path=`$CYGPATH -u "$windows_path"` 21394 new_path="$unix_path" 21395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21397 new_path="$unix_path" 21398 fi 21399 21400 if test "x$path" != "x$new_path"; then 21401 BOOT_JDK="$new_path" 21402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21403 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21404 fi 21405 21406 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21407 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21408 21409 else 21410 # We're on a unix platform. Hooray! :) 21411 path="$BOOT_JDK" 21412 has_space=`$ECHO "$path" | $GREP " "` 21413 if test "x$has_space" != x; then 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21415 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21416 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21417 fi 21418 21419 # Use eval to expand a potential ~ 21420 eval path="$path" 21421 if test ! -f "$path" && test ! -d "$path"; then 21422 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21423 fi 21424 21425 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21426 fi 21427 fi 21428 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21430 $as_echo_n "checking for Boot JDK... " >&6; } 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21432 $as_echo "$BOOT_JDK" >&6; } 21433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21434 $as_echo_n "checking Boot JDK version... " >&6; } 21435 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21437 $as_echo "$BOOT_JDK_VERSION" >&6; } 21438 fi # end check jdk version 21439 fi # end check javac 21440 fi # end check java 21441 fi # end check boot jdk found 21442 fi 21443 21444 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 21445 # Having specified an argument which is incorrect will produce an instant failure; 21446 # we should not go on looking 21447 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 21448 fi 21449 21450 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 21451 21452 if test "x$BOOT_JDK_FOUND" = xno; then 21453 # Now execute the test 21454 21455 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 21456 # First check at user selected default 21457 21458 if test "x$BOOT_JDK_FOUND" = xno; then 21459 # Now execute the test 21460 21461 if test -x /usr/libexec/java_home; then 21462 BOOT_JDK=`/usr/libexec/java_home ` 21463 BOOT_JDK_FOUND=maybe 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 21465 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 21466 fi 21467 21468 21469 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21470 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21471 # Do we have a bin/java? 21472 if test ! -x "$BOOT_JDK/bin/java"; then 21473 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21474 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21475 BOOT_JDK_FOUND=no 21476 else 21477 # Do we have a bin/javac? 21478 if test ! -x "$BOOT_JDK/bin/javac"; then 21479 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21480 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21481 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21482 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21483 BOOT_JDK_FOUND=no 21484 else 21485 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21486 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21487 21488 # Extra M4 quote needed to protect [] in grep expression. 21489 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21490 if test "x$FOUND_CORRECT_VERSION" = x; then 21491 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21492 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21494 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21495 BOOT_JDK_FOUND=no 21496 else 21497 # We're done! :-) 21498 BOOT_JDK_FOUND=yes 21499 21500 # Only process if variable expands to non-empty 21501 21502 if test "x$BOOT_JDK" != x; then 21503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21504 21505 # Input might be given as Windows format, start by converting to 21506 # unix format. 21507 path="$BOOT_JDK" 21508 new_path=`$CYGPATH -u "$path"` 21509 21510 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21511 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21512 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21513 # "foo.exe" is OK but "foo" is an error. 21514 # 21515 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21516 # It is also a way to make sure we got the proper file name for the real test later on. 21517 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21518 if test "x$test_shortpath" = x; then 21519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21521 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21522 fi 21523 21524 # Call helper function which possibly converts this using DOS-style short mode. 21525 # If so, the updated path is stored in $new_path. 21526 21527 input_path="$new_path" 21528 # Check if we need to convert this using DOS-style short mode. If the path 21529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21530 # take no chances and rewrite it. 21531 # Note: m4 eats our [], so we need to use [ and ] instead. 21532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21533 if test "x$has_forbidden_chars" != x; then 21534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21535 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21536 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21537 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21538 # Going to short mode and back again did indeed matter. Since short mode is 21539 # case insensitive, let's make it lowercase to improve readability. 21540 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21541 # Now convert it back to Unix-style (cygpath) 21542 input_path=`$CYGPATH -u "$shortmode_path"` 21543 new_path="$input_path" 21544 fi 21545 fi 21546 21547 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21548 if test "x$test_cygdrive_prefix" = x; then 21549 # As a simple fix, exclude /usr/bin since it's not a real path. 21550 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21551 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21552 # a path prefixed by /cygdrive for fixpath to work. 21553 new_path="$CYGWIN_ROOT_PATH$input_path" 21554 fi 21555 fi 21556 21557 21558 if test "x$path" != "x$new_path"; then 21559 BOOT_JDK="$new_path" 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21562 fi 21563 21564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21565 21566 path="$BOOT_JDK" 21567 has_colon=`$ECHO $path | $GREP ^.:` 21568 new_path="$path" 21569 if test "x$has_colon" = x; then 21570 # Not in mixed or Windows style, start by that. 21571 new_path=`cmd //c echo $path` 21572 fi 21573 21574 21575 input_path="$new_path" 21576 # Check if we need to convert this using DOS-style short mode. If the path 21577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21578 # take no chances and rewrite it. 21579 # Note: m4 eats our [], so we need to use [ and ] instead. 21580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21581 if test "x$has_forbidden_chars" != x; then 21582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21583 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21584 fi 21585 21586 21587 windows_path="$new_path" 21588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21589 unix_path=`$CYGPATH -u "$windows_path"` 21590 new_path="$unix_path" 21591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21593 new_path="$unix_path" 21594 fi 21595 21596 if test "x$path" != "x$new_path"; then 21597 BOOT_JDK="$new_path" 21598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21599 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21600 fi 21601 21602 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21603 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21604 21605 else 21606 # We're on a unix platform. Hooray! :) 21607 path="$BOOT_JDK" 21608 has_space=`$ECHO "$path" | $GREP " "` 21609 if test "x$has_space" != x; then 21610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21611 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21612 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21613 fi 21614 21615 # Use eval to expand a potential ~ 21616 eval path="$path" 21617 if test ! -f "$path" && test ! -d "$path"; then 21618 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21619 fi 21620 21621 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21622 fi 21623 fi 21624 21625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21626 $as_echo_n "checking for Boot JDK... " >&6; } 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21628 $as_echo "$BOOT_JDK" >&6; } 21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21630 $as_echo_n "checking Boot JDK version... " >&6; } 21631 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21633 $as_echo "$BOOT_JDK_VERSION" >&6; } 21634 fi # end check jdk version 21635 fi # end check javac 21636 fi # end check java 21637 fi # end check boot jdk found 21638 fi 21639 21640 # If that did not work out (e.g. too old), try explicit versions instead 21641 21642 if test "x$BOOT_JDK_FOUND" = xno; then 21643 # Now execute the test 21644 21645 if test -x /usr/libexec/java_home; then 21646 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 21647 BOOT_JDK_FOUND=maybe 21648 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 21649 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 21650 fi 21651 21652 21653 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21654 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21655 # Do we have a bin/java? 21656 if test ! -x "$BOOT_JDK/bin/java"; then 21657 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21659 BOOT_JDK_FOUND=no 21660 else 21661 # Do we have a bin/javac? 21662 if test ! -x "$BOOT_JDK/bin/javac"; then 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21664 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21665 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21666 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21667 BOOT_JDK_FOUND=no 21668 else 21669 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21670 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21671 21672 # Extra M4 quote needed to protect [] in grep expression. 21673 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21674 if test "x$FOUND_CORRECT_VERSION" = x; then 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21676 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21678 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21679 BOOT_JDK_FOUND=no 21680 else 21681 # We're done! :-) 21682 BOOT_JDK_FOUND=yes 21683 21684 # Only process if variable expands to non-empty 21685 21686 if test "x$BOOT_JDK" != x; then 21687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21688 21689 # Input might be given as Windows format, start by converting to 21690 # unix format. 21691 path="$BOOT_JDK" 21692 new_path=`$CYGPATH -u "$path"` 21693 21694 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21695 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21696 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21697 # "foo.exe" is OK but "foo" is an error. 21698 # 21699 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21700 # It is also a way to make sure we got the proper file name for the real test later on. 21701 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21702 if test "x$test_shortpath" = x; then 21703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21704 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21705 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21706 fi 21707 21708 # Call helper function which possibly converts this using DOS-style short mode. 21709 # If so, the updated path is stored in $new_path. 21710 21711 input_path="$new_path" 21712 # Check if we need to convert this using DOS-style short mode. If the path 21713 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21714 # take no chances and rewrite it. 21715 # Note: m4 eats our [], so we need to use [ and ] instead. 21716 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21717 if test "x$has_forbidden_chars" != x; then 21718 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21719 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21720 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21721 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21722 # Going to short mode and back again did indeed matter. Since short mode is 21723 # case insensitive, let's make it lowercase to improve readability. 21724 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21725 # Now convert it back to Unix-style (cygpath) 21726 input_path=`$CYGPATH -u "$shortmode_path"` 21727 new_path="$input_path" 21728 fi 21729 fi 21730 21731 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21732 if test "x$test_cygdrive_prefix" = x; then 21733 # As a simple fix, exclude /usr/bin since it's not a real path. 21734 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21735 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21736 # a path prefixed by /cygdrive for fixpath to work. 21737 new_path="$CYGWIN_ROOT_PATH$input_path" 21738 fi 21739 fi 21740 21741 21742 if test "x$path" != "x$new_path"; then 21743 BOOT_JDK="$new_path" 21744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21745 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21746 fi 21747 21748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21749 21750 path="$BOOT_JDK" 21751 has_colon=`$ECHO $path | $GREP ^.:` 21752 new_path="$path" 21753 if test "x$has_colon" = x; then 21754 # Not in mixed or Windows style, start by that. 21755 new_path=`cmd //c echo $path` 21756 fi 21757 21758 21759 input_path="$new_path" 21760 # Check if we need to convert this using DOS-style short mode. If the path 21761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21762 # take no chances and rewrite it. 21763 # Note: m4 eats our [], so we need to use [ and ] instead. 21764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21765 if test "x$has_forbidden_chars" != x; then 21766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21767 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21768 fi 21769 21770 21771 windows_path="$new_path" 21772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21773 unix_path=`$CYGPATH -u "$windows_path"` 21774 new_path="$unix_path" 21775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21777 new_path="$unix_path" 21778 fi 21779 21780 if test "x$path" != "x$new_path"; then 21781 BOOT_JDK="$new_path" 21782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21783 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21784 fi 21785 21786 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21787 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21788 21789 else 21790 # We're on a unix platform. Hooray! :) 21791 path="$BOOT_JDK" 21792 has_space=`$ECHO "$path" | $GREP " "` 21793 if test "x$has_space" != x; then 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21795 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21796 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21797 fi 21798 21799 # Use eval to expand a potential ~ 21800 eval path="$path" 21801 if test ! -f "$path" && test ! -d "$path"; then 21802 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21803 fi 21804 21805 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21806 fi 21807 fi 21808 21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21810 $as_echo_n "checking for Boot JDK... " >&6; } 21811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21812 $as_echo "$BOOT_JDK" >&6; } 21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21814 $as_echo_n "checking Boot JDK version... " >&6; } 21815 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21817 $as_echo "$BOOT_JDK_VERSION" >&6; } 21818 fi # end check jdk version 21819 fi # end check javac 21820 fi # end check java 21821 fi # end check boot jdk found 21822 fi 21823 21824 21825 if test "x$BOOT_JDK_FOUND" = xno; then 21826 # Now execute the test 21827 21828 if test -x /usr/libexec/java_home; then 21829 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 21830 BOOT_JDK_FOUND=maybe 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 21832 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 21833 fi 21834 21835 21836 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21837 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21838 # Do we have a bin/java? 21839 if test ! -x "$BOOT_JDK/bin/java"; then 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21841 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21842 BOOT_JDK_FOUND=no 21843 else 21844 # Do we have a bin/javac? 21845 if test ! -x "$BOOT_JDK/bin/javac"; then 21846 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21847 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21849 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21850 BOOT_JDK_FOUND=no 21851 else 21852 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21853 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21854 21855 # Extra M4 quote needed to protect [] in grep expression. 21856 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21857 if test "x$FOUND_CORRECT_VERSION" = x; then 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21861 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21862 BOOT_JDK_FOUND=no 21863 else 21864 # We're done! :-) 21865 BOOT_JDK_FOUND=yes 21866 21867 # Only process if variable expands to non-empty 21868 21869 if test "x$BOOT_JDK" != x; then 21870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21871 21872 # Input might be given as Windows format, start by converting to 21873 # unix format. 21874 path="$BOOT_JDK" 21875 new_path=`$CYGPATH -u "$path"` 21876 21877 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21878 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21879 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21880 # "foo.exe" is OK but "foo" is an error. 21881 # 21882 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21883 # It is also a way to make sure we got the proper file name for the real test later on. 21884 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21885 if test "x$test_shortpath" = x; then 21886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21887 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21888 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21889 fi 21890 21891 # Call helper function which possibly converts this using DOS-style short mode. 21892 # If so, the updated path is stored in $new_path. 21893 21894 input_path="$new_path" 21895 # Check if we need to convert this using DOS-style short mode. If the path 21896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21897 # take no chances and rewrite it. 21898 # Note: m4 eats our [], so we need to use [ and ] instead. 21899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21900 if test "x$has_forbidden_chars" != x; then 21901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21902 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21903 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21904 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21905 # Going to short mode and back again did indeed matter. Since short mode is 21906 # case insensitive, let's make it lowercase to improve readability. 21907 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21908 # Now convert it back to Unix-style (cygpath) 21909 input_path=`$CYGPATH -u "$shortmode_path"` 21910 new_path="$input_path" 21911 fi 21912 fi 21913 21914 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21915 if test "x$test_cygdrive_prefix" = x; then 21916 # As a simple fix, exclude /usr/bin since it's not a real path. 21917 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21918 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21919 # a path prefixed by /cygdrive for fixpath to work. 21920 new_path="$CYGWIN_ROOT_PATH$input_path" 21921 fi 21922 fi 21923 21924 21925 if test "x$path" != "x$new_path"; then 21926 BOOT_JDK="$new_path" 21927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21929 fi 21930 21931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21932 21933 path="$BOOT_JDK" 21934 has_colon=`$ECHO $path | $GREP ^.:` 21935 new_path="$path" 21936 if test "x$has_colon" = x; then 21937 # Not in mixed or Windows style, start by that. 21938 new_path=`cmd //c echo $path` 21939 fi 21940 21941 21942 input_path="$new_path" 21943 # Check if we need to convert this using DOS-style short mode. If the path 21944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21945 # take no chances and rewrite it. 21946 # Note: m4 eats our [], so we need to use [ and ] instead. 21947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21948 if test "x$has_forbidden_chars" != x; then 21949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21950 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21951 fi 21952 21953 21954 windows_path="$new_path" 21955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21956 unix_path=`$CYGPATH -u "$windows_path"` 21957 new_path="$unix_path" 21958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21960 new_path="$unix_path" 21961 fi 21962 21963 if test "x$path" != "x$new_path"; then 21964 BOOT_JDK="$new_path" 21965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21966 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21967 fi 21968 21969 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21970 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21971 21972 else 21973 # We're on a unix platform. Hooray! :) 21974 path="$BOOT_JDK" 21975 has_space=`$ECHO "$path" | $GREP " "` 21976 if test "x$has_space" != x; then 21977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21978 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21979 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21980 fi 21981 21982 # Use eval to expand a potential ~ 21983 eval path="$path" 21984 if test ! -f "$path" && test ! -d "$path"; then 21985 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21986 fi 21987 21988 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21989 fi 21990 fi 21991 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21993 $as_echo_n "checking for Boot JDK... " >&6; } 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21995 $as_echo "$BOOT_JDK" >&6; } 21996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21997 $as_echo_n "checking Boot JDK version... " >&6; } 21998 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22000 $as_echo "$BOOT_JDK_VERSION" >&6; } 22001 fi # end check jdk version 22002 fi # end check javac 22003 fi # end check java 22004 fi # end check boot jdk found 22005 fi 22006 22007 22008 if test "x$BOOT_JDK_FOUND" = xno; then 22009 # Now execute the test 22010 22011 if test -x /usr/libexec/java_home; then 22012 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 22013 BOOT_JDK_FOUND=maybe 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 22015 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 22016 fi 22017 22018 22019 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22020 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22021 # Do we have a bin/java? 22022 if test ! -x "$BOOT_JDK/bin/java"; then 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22025 BOOT_JDK_FOUND=no 22026 else 22027 # Do we have a bin/javac? 22028 if test ! -x "$BOOT_JDK/bin/javac"; then 22029 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22030 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22031 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22032 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22033 BOOT_JDK_FOUND=no 22034 else 22035 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22036 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22037 22038 # Extra M4 quote needed to protect [] in grep expression. 22039 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22040 if test "x$FOUND_CORRECT_VERSION" = x; then 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22042 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22044 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22045 BOOT_JDK_FOUND=no 22046 else 22047 # We're done! :-) 22048 BOOT_JDK_FOUND=yes 22049 22050 # Only process if variable expands to non-empty 22051 22052 if test "x$BOOT_JDK" != x; then 22053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22054 22055 # Input might be given as Windows format, start by converting to 22056 # unix format. 22057 path="$BOOT_JDK" 22058 new_path=`$CYGPATH -u "$path"` 22059 22060 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22061 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22062 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22063 # "foo.exe" is OK but "foo" is an error. 22064 # 22065 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22066 # It is also a way to make sure we got the proper file name for the real test later on. 22067 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22068 if test "x$test_shortpath" = x; then 22069 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22070 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22071 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22072 fi 22073 22074 # Call helper function which possibly converts this using DOS-style short mode. 22075 # If so, the updated path is stored in $new_path. 22076 22077 input_path="$new_path" 22078 # Check if we need to convert this using DOS-style short mode. If the path 22079 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22080 # take no chances and rewrite it. 22081 # Note: m4 eats our [], so we need to use [ and ] instead. 22082 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22083 if test "x$has_forbidden_chars" != x; then 22084 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22085 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22086 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22087 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22088 # Going to short mode and back again did indeed matter. Since short mode is 22089 # case insensitive, let's make it lowercase to improve readability. 22090 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22091 # Now convert it back to Unix-style (cygpath) 22092 input_path=`$CYGPATH -u "$shortmode_path"` 22093 new_path="$input_path" 22094 fi 22095 fi 22096 22097 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22098 if test "x$test_cygdrive_prefix" = x; then 22099 # As a simple fix, exclude /usr/bin since it's not a real path. 22100 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22101 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22102 # a path prefixed by /cygdrive for fixpath to work. 22103 new_path="$CYGWIN_ROOT_PATH$input_path" 22104 fi 22105 fi 22106 22107 22108 if test "x$path" != "x$new_path"; then 22109 BOOT_JDK="$new_path" 22110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22111 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22112 fi 22113 22114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22115 22116 path="$BOOT_JDK" 22117 has_colon=`$ECHO $path | $GREP ^.:` 22118 new_path="$path" 22119 if test "x$has_colon" = x; then 22120 # Not in mixed or Windows style, start by that. 22121 new_path=`cmd //c echo $path` 22122 fi 22123 22124 22125 input_path="$new_path" 22126 # Check if we need to convert this using DOS-style short mode. If the path 22127 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22128 # take no chances and rewrite it. 22129 # Note: m4 eats our [], so we need to use [ and ] instead. 22130 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22131 if test "x$has_forbidden_chars" != x; then 22132 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22133 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22134 fi 22135 22136 22137 windows_path="$new_path" 22138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22139 unix_path=`$CYGPATH -u "$windows_path"` 22140 new_path="$unix_path" 22141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22143 new_path="$unix_path" 22144 fi 22145 22146 if test "x$path" != "x$new_path"; then 22147 BOOT_JDK="$new_path" 22148 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22149 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22150 fi 22151 22152 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22153 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22154 22155 else 22156 # We're on a unix platform. Hooray! :) 22157 path="$BOOT_JDK" 22158 has_space=`$ECHO "$path" | $GREP " "` 22159 if test "x$has_space" != x; then 22160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22161 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22162 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22163 fi 22164 22165 # Use eval to expand a potential ~ 22166 eval path="$path" 22167 if test ! -f "$path" && test ! -d "$path"; then 22168 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22169 fi 22170 22171 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22172 fi 22173 fi 22174 22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22176 $as_echo_n "checking for Boot JDK... " >&6; } 22177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22178 $as_echo "$BOOT_JDK" >&6; } 22179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22180 $as_echo_n "checking Boot JDK version... " >&6; } 22181 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22183 $as_echo "$BOOT_JDK_VERSION" >&6; } 22184 fi # end check jdk version 22185 fi # end check javac 22186 fi # end check java 22187 fi # end check boot jdk found 22188 fi 22189 22190 fi 22191 22192 22193 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22194 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22195 # Do we have a bin/java? 22196 if test ! -x "$BOOT_JDK/bin/java"; then 22197 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22198 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22199 BOOT_JDK_FOUND=no 22200 else 22201 # Do we have a bin/javac? 22202 if test ! -x "$BOOT_JDK/bin/javac"; then 22203 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22204 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22206 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22207 BOOT_JDK_FOUND=no 22208 else 22209 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22210 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22211 22212 # Extra M4 quote needed to protect [] in grep expression. 22213 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22214 if test "x$FOUND_CORRECT_VERSION" = x; then 22215 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22216 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22217 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22218 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22219 BOOT_JDK_FOUND=no 22220 else 22221 # We're done! :-) 22222 BOOT_JDK_FOUND=yes 22223 22224 # Only process if variable expands to non-empty 22225 22226 if test "x$BOOT_JDK" != x; then 22227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22228 22229 # Input might be given as Windows format, start by converting to 22230 # unix format. 22231 path="$BOOT_JDK" 22232 new_path=`$CYGPATH -u "$path"` 22233 22234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22237 # "foo.exe" is OK but "foo" is an error. 22238 # 22239 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22240 # It is also a way to make sure we got the proper file name for the real test later on. 22241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22242 if test "x$test_shortpath" = x; then 22243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22244 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22245 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22246 fi 22247 22248 # Call helper function which possibly converts this using DOS-style short mode. 22249 # If so, the updated path is stored in $new_path. 22250 22251 input_path="$new_path" 22252 # Check if we need to convert this using DOS-style short mode. If the path 22253 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22254 # take no chances and rewrite it. 22255 # Note: m4 eats our [], so we need to use [ and ] instead. 22256 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22257 if test "x$has_forbidden_chars" != x; then 22258 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22259 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22260 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22261 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22262 # Going to short mode and back again did indeed matter. Since short mode is 22263 # case insensitive, let's make it lowercase to improve readability. 22264 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22265 # Now convert it back to Unix-style (cygpath) 22266 input_path=`$CYGPATH -u "$shortmode_path"` 22267 new_path="$input_path" 22268 fi 22269 fi 22270 22271 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22272 if test "x$test_cygdrive_prefix" = x; then 22273 # As a simple fix, exclude /usr/bin since it's not a real path. 22274 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22275 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22276 # a path prefixed by /cygdrive for fixpath to work. 22277 new_path="$CYGWIN_ROOT_PATH$input_path" 22278 fi 22279 fi 22280 22281 22282 if test "x$path" != "x$new_path"; then 22283 BOOT_JDK="$new_path" 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22285 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22286 fi 22287 22288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22289 22290 path="$BOOT_JDK" 22291 has_colon=`$ECHO $path | $GREP ^.:` 22292 new_path="$path" 22293 if test "x$has_colon" = x; then 22294 # Not in mixed or Windows style, start by that. 22295 new_path=`cmd //c echo $path` 22296 fi 22297 22298 22299 input_path="$new_path" 22300 # Check if we need to convert this using DOS-style short mode. If the path 22301 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22302 # take no chances and rewrite it. 22303 # Note: m4 eats our [], so we need to use [ and ] instead. 22304 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22305 if test "x$has_forbidden_chars" != x; then 22306 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22307 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22308 fi 22309 22310 22311 windows_path="$new_path" 22312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22313 unix_path=`$CYGPATH -u "$windows_path"` 22314 new_path="$unix_path" 22315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22317 new_path="$unix_path" 22318 fi 22319 22320 if test "x$path" != "x$new_path"; then 22321 BOOT_JDK="$new_path" 22322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22323 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22324 fi 22325 22326 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22327 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22328 22329 else 22330 # We're on a unix platform. Hooray! :) 22331 path="$BOOT_JDK" 22332 has_space=`$ECHO "$path" | $GREP " "` 22333 if test "x$has_space" != x; then 22334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22335 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22336 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22337 fi 22338 22339 # Use eval to expand a potential ~ 22340 eval path="$path" 22341 if test ! -f "$path" && test ! -d "$path"; then 22342 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22343 fi 22344 22345 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22346 fi 22347 fi 22348 22349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22350 $as_echo_n "checking for Boot JDK... " >&6; } 22351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22352 $as_echo "$BOOT_JDK" >&6; } 22353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22354 $as_echo_n "checking Boot JDK version... " >&6; } 22355 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22357 $as_echo "$BOOT_JDK_VERSION" >&6; } 22358 fi # end check jdk version 22359 fi # end check javac 22360 fi # end check java 22361 fi # end check boot jdk found 22362 fi 22363 22364 22365 # Test: Is $JAVA_HOME set? 22366 22367 if test "x$BOOT_JDK_FOUND" = xno; then 22368 # Now execute the test 22369 22370 if test "x$JAVA_HOME" != x; then 22371 JAVA_HOME_PROCESSED="$JAVA_HOME" 22372 22373 # Only process if variable expands to non-empty 22374 22375 if test "x$JAVA_HOME_PROCESSED" != x; then 22376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22377 22378 # Input might be given as Windows format, start by converting to 22379 # unix format. 22380 path="$JAVA_HOME_PROCESSED" 22381 new_path=`$CYGPATH -u "$path"` 22382 22383 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22384 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22385 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22386 # "foo.exe" is OK but "foo" is an error. 22387 # 22388 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22389 # It is also a way to make sure we got the proper file name for the real test later on. 22390 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22391 if test "x$test_shortpath" = x; then 22392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 22393 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 22394 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 22395 fi 22396 22397 # Call helper function which possibly converts this using DOS-style short mode. 22398 # If so, the updated path is stored in $new_path. 22399 22400 input_path="$new_path" 22401 # Check if we need to convert this using DOS-style short mode. If the path 22402 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22403 # take no chances and rewrite it. 22404 # Note: m4 eats our [], so we need to use [ and ] instead. 22405 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22406 if test "x$has_forbidden_chars" != x; then 22407 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22408 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22409 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22410 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22411 # Going to short mode and back again did indeed matter. Since short mode is 22412 # case insensitive, let's make it lowercase to improve readability. 22413 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22414 # Now convert it back to Unix-style (cygpath) 22415 input_path=`$CYGPATH -u "$shortmode_path"` 22416 new_path="$input_path" 22417 fi 22418 fi 22419 22420 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22421 if test "x$test_cygdrive_prefix" = x; then 22422 # As a simple fix, exclude /usr/bin since it's not a real path. 22423 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22424 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22425 # a path prefixed by /cygdrive for fixpath to work. 22426 new_path="$CYGWIN_ROOT_PATH$input_path" 22427 fi 22428 fi 22429 22430 22431 if test "x$path" != "x$new_path"; then 22432 JAVA_HOME_PROCESSED="$new_path" 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 22434 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 22435 fi 22436 22437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22438 22439 path="$JAVA_HOME_PROCESSED" 22440 has_colon=`$ECHO $path | $GREP ^.:` 22441 new_path="$path" 22442 if test "x$has_colon" = x; then 22443 # Not in mixed or Windows style, start by that. 22444 new_path=`cmd //c echo $path` 22445 fi 22446 22447 22448 input_path="$new_path" 22449 # Check if we need to convert this using DOS-style short mode. If the path 22450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22451 # take no chances and rewrite it. 22452 # Note: m4 eats our [], so we need to use [ and ] instead. 22453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22454 if test "x$has_forbidden_chars" != x; then 22455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22456 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22457 fi 22458 22459 22460 windows_path="$new_path" 22461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22462 unix_path=`$CYGPATH -u "$windows_path"` 22463 new_path="$unix_path" 22464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22466 new_path="$unix_path" 22467 fi 22468 22469 if test "x$path" != "x$new_path"; then 22470 JAVA_HOME_PROCESSED="$new_path" 22471 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 22472 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 22473 fi 22474 22475 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22476 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22477 22478 else 22479 # We're on a unix platform. Hooray! :) 22480 path="$JAVA_HOME_PROCESSED" 22481 has_space=`$ECHO "$path" | $GREP " "` 22482 if test "x$has_space" != x; then 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 22484 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 22485 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22486 fi 22487 22488 # Use eval to expand a potential ~ 22489 eval path="$path" 22490 if test ! -f "$path" && test ! -d "$path"; then 22491 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 22492 fi 22493 22494 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 22495 fi 22496 fi 22497 22498 if test ! -d "$JAVA_HOME_PROCESSED"; then 22499 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 22500 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 22501 else 22502 # Aha, the user has set a JAVA_HOME 22503 # let us use that as the Boot JDK. 22504 BOOT_JDK="$JAVA_HOME_PROCESSED" 22505 BOOT_JDK_FOUND=maybe 22506 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 22507 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 22508 fi 22509 fi 22510 22511 22512 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22513 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22514 # Do we have a bin/java? 22515 if test ! -x "$BOOT_JDK/bin/java"; then 22516 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22517 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22518 BOOT_JDK_FOUND=no 22519 else 22520 # Do we have a bin/javac? 22521 if test ! -x "$BOOT_JDK/bin/javac"; then 22522 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22523 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22525 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22526 BOOT_JDK_FOUND=no 22527 else 22528 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22529 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22530 22531 # Extra M4 quote needed to protect [] in grep expression. 22532 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22533 if test "x$FOUND_CORRECT_VERSION" = x; then 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22535 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22536 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22537 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22538 BOOT_JDK_FOUND=no 22539 else 22540 # We're done! :-) 22541 BOOT_JDK_FOUND=yes 22542 22543 # Only process if variable expands to non-empty 22544 22545 if test "x$BOOT_JDK" != x; then 22546 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22547 22548 # Input might be given as Windows format, start by converting to 22549 # unix format. 22550 path="$BOOT_JDK" 22551 new_path=`$CYGPATH -u "$path"` 22552 22553 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22554 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22555 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22556 # "foo.exe" is OK but "foo" is an error. 22557 # 22558 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22559 # It is also a way to make sure we got the proper file name for the real test later on. 22560 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22561 if test "x$test_shortpath" = x; then 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22563 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22564 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22565 fi 22566 22567 # Call helper function which possibly converts this using DOS-style short mode. 22568 # If so, the updated path is stored in $new_path. 22569 22570 input_path="$new_path" 22571 # Check if we need to convert this using DOS-style short mode. If the path 22572 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22573 # take no chances and rewrite it. 22574 # Note: m4 eats our [], so we need to use [ and ] instead. 22575 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22576 if test "x$has_forbidden_chars" != x; then 22577 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22578 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22579 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22580 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22581 # Going to short mode and back again did indeed matter. Since short mode is 22582 # case insensitive, let's make it lowercase to improve readability. 22583 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22584 # Now convert it back to Unix-style (cygpath) 22585 input_path=`$CYGPATH -u "$shortmode_path"` 22586 new_path="$input_path" 22587 fi 22588 fi 22589 22590 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22591 if test "x$test_cygdrive_prefix" = x; then 22592 # As a simple fix, exclude /usr/bin since it's not a real path. 22593 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22594 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22595 # a path prefixed by /cygdrive for fixpath to work. 22596 new_path="$CYGWIN_ROOT_PATH$input_path" 22597 fi 22598 fi 22599 22600 22601 if test "x$path" != "x$new_path"; then 22602 BOOT_JDK="$new_path" 22603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22604 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22605 fi 22606 22607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22608 22609 path="$BOOT_JDK" 22610 has_colon=`$ECHO $path | $GREP ^.:` 22611 new_path="$path" 22612 if test "x$has_colon" = x; then 22613 # Not in mixed or Windows style, start by that. 22614 new_path=`cmd //c echo $path` 22615 fi 22616 22617 22618 input_path="$new_path" 22619 # Check if we need to convert this using DOS-style short mode. If the path 22620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22621 # take no chances and rewrite it. 22622 # Note: m4 eats our [], so we need to use [ and ] instead. 22623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22624 if test "x$has_forbidden_chars" != x; then 22625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22626 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22627 fi 22628 22629 22630 windows_path="$new_path" 22631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22632 unix_path=`$CYGPATH -u "$windows_path"` 22633 new_path="$unix_path" 22634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22636 new_path="$unix_path" 22637 fi 22638 22639 if test "x$path" != "x$new_path"; then 22640 BOOT_JDK="$new_path" 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22642 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22643 fi 22644 22645 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22646 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22647 22648 else 22649 # We're on a unix platform. Hooray! :) 22650 path="$BOOT_JDK" 22651 has_space=`$ECHO "$path" | $GREP " "` 22652 if test "x$has_space" != x; then 22653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22654 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22655 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22656 fi 22657 22658 # Use eval to expand a potential ~ 22659 eval path="$path" 22660 if test ! -f "$path" && test ! -d "$path"; then 22661 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22662 fi 22663 22664 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22665 fi 22666 fi 22667 22668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22669 $as_echo_n "checking for Boot JDK... " >&6; } 22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22671 $as_echo "$BOOT_JDK" >&6; } 22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22673 $as_echo_n "checking Boot JDK version... " >&6; } 22674 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22676 $as_echo "$BOOT_JDK_VERSION" >&6; } 22677 fi # end check jdk version 22678 fi # end check javac 22679 fi # end check java 22680 fi # end check boot jdk found 22681 fi 22682 22683 22684 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 22685 22686 if test "x$BOOT_JDK_FOUND" = xno; then 22687 # Now execute the test 22688 22689 # Extract the first word of "javac", so it can be a program name with args. 22690 set dummy javac; ac_word=$2 22691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22692 $as_echo_n "checking for $ac_word... " >&6; } 22693 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 22694 $as_echo_n "(cached) " >&6 22695 else 22696 case $JAVAC_CHECK in 22697 [\\/]* | ?:[\\/]*) 22698 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 22699 ;; 22700 *) 22701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22702 for as_dir in $PATH 22703 do 22704 IFS=$as_save_IFS 22705 test -z "$as_dir" && as_dir=. 22706 for ac_exec_ext in '' $ac_executable_extensions; do 22707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22708 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 22709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22710 break 2 22711 fi 22712 done 22713 done 22714 IFS=$as_save_IFS 22715 22716 ;; 22717 esac 22718 fi 22719 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 22720 if test -n "$JAVAC_CHECK"; then 22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 22722 $as_echo "$JAVAC_CHECK" >&6; } 22723 else 22724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22725 $as_echo "no" >&6; } 22726 fi 22727 22728 22729 # Extract the first word of "java", so it can be a program name with args. 22730 set dummy java; ac_word=$2 22731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22732 $as_echo_n "checking for $ac_word... " >&6; } 22733 if ${ac_cv_path_JAVA_CHECK+:} false; then : 22734 $as_echo_n "(cached) " >&6 22735 else 22736 case $JAVA_CHECK in 22737 [\\/]* | ?:[\\/]*) 22738 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 22739 ;; 22740 *) 22741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22742 for as_dir in $PATH 22743 do 22744 IFS=$as_save_IFS 22745 test -z "$as_dir" && as_dir=. 22746 for ac_exec_ext in '' $ac_executable_extensions; do 22747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22748 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 22749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22750 break 2 22751 fi 22752 done 22753 done 22754 IFS=$as_save_IFS 22755 22756 ;; 22757 esac 22758 fi 22759 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 22760 if test -n "$JAVA_CHECK"; then 22761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 22762 $as_echo "$JAVA_CHECK" >&6; } 22763 else 22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22765 $as_echo "no" >&6; } 22766 fi 22767 22768 22769 BINARY="$JAVAC_CHECK" 22770 if test "x$JAVAC_CHECK" = x; then 22771 BINARY="$JAVA_CHECK" 22772 fi 22773 if test "x$BINARY" != x; then 22774 # So there is a java(c) binary, it might be part of a JDK. 22775 # Lets find the JDK/JRE directory by following symbolic links. 22776 # Linux/GNU systems often have links from /usr/bin/java to 22777 # /etc/alternatives/java to the real JDK binary. 22778 22779 if test "x$OPENJDK_BUILD_OS" != xwindows; then 22780 # Follow a chain of symbolic links. Use readlink 22781 # where it exists, else fall back to horribly 22782 # complicated shell code. 22783 if test "x$READLINK_TESTED" != yes; then 22784 # On MacOSX there is a readlink tool with a different 22785 # purpose than the GNU readlink tool. Check the found readlink. 22786 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 22787 if test "x$ISGNU" = x; then 22788 # A readlink that we do not know how to use. 22789 # Are there other non-GNU readlinks out there? 22790 READLINK_TESTED=yes 22791 READLINK= 22792 fi 22793 fi 22794 22795 if test "x$READLINK" != x; then 22796 BINARY=`$READLINK -f $BINARY` 22797 else 22798 # Save the current directory for restoring afterwards 22799 STARTDIR=$PWD 22800 COUNTER=0 22801 sym_link_dir=`$DIRNAME $BINARY` 22802 sym_link_file=`$BASENAME $BINARY` 22803 cd $sym_link_dir 22804 # Use -P flag to resolve symlinks in directories. 22805 cd `$THEPWDCMD -P` 22806 sym_link_dir=`$THEPWDCMD -P` 22807 # Resolve file symlinks 22808 while test $COUNTER -lt 20; do 22809 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 22810 if test "x$ISLINK" == x; then 22811 # This is not a symbolic link! We are done! 22812 break 22813 fi 22814 # Again resolve directory symlinks since the target of the just found 22815 # link could be in a different directory 22816 cd `$DIRNAME $ISLINK` 22817 sym_link_dir=`$THEPWDCMD -P` 22818 sym_link_file=`$BASENAME $ISLINK` 22819 let COUNTER=COUNTER+1 22820 done 22821 cd $STARTDIR 22822 BINARY=$sym_link_dir/$sym_link_file 22823 fi 22824 fi 22825 22826 BOOT_JDK=`dirname "$BINARY"` 22827 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 22828 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 22829 # Looks like we found ourselves an JDK 22830 BOOT_JDK_FOUND=maybe 22831 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 22832 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 22833 fi 22834 fi 22835 22836 22837 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22838 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22839 # Do we have a bin/java? 22840 if test ! -x "$BOOT_JDK/bin/java"; then 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22843 BOOT_JDK_FOUND=no 22844 else 22845 # Do we have a bin/javac? 22846 if test ! -x "$BOOT_JDK/bin/javac"; then 22847 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22850 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22851 BOOT_JDK_FOUND=no 22852 else 22853 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22854 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22855 22856 # Extra M4 quote needed to protect [] in grep expression. 22857 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22858 if test "x$FOUND_CORRECT_VERSION" = x; then 22859 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22860 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22861 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22862 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22863 BOOT_JDK_FOUND=no 22864 else 22865 # We're done! :-) 22866 BOOT_JDK_FOUND=yes 22867 22868 # Only process if variable expands to non-empty 22869 22870 if test "x$BOOT_JDK" != x; then 22871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22872 22873 # Input might be given as Windows format, start by converting to 22874 # unix format. 22875 path="$BOOT_JDK" 22876 new_path=`$CYGPATH -u "$path"` 22877 22878 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22879 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22880 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22881 # "foo.exe" is OK but "foo" is an error. 22882 # 22883 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22884 # It is also a way to make sure we got the proper file name for the real test later on. 22885 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22886 if test "x$test_shortpath" = x; then 22887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22888 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22889 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22890 fi 22891 22892 # Call helper function which possibly converts this using DOS-style short mode. 22893 # If so, the updated path is stored in $new_path. 22894 22895 input_path="$new_path" 22896 # Check if we need to convert this using DOS-style short mode. If the path 22897 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22898 # take no chances and rewrite it. 22899 # Note: m4 eats our [], so we need to use [ and ] instead. 22900 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22901 if test "x$has_forbidden_chars" != x; then 22902 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22903 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22904 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22905 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22906 # Going to short mode and back again did indeed matter. Since short mode is 22907 # case insensitive, let's make it lowercase to improve readability. 22908 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22909 # Now convert it back to Unix-style (cygpath) 22910 input_path=`$CYGPATH -u "$shortmode_path"` 22911 new_path="$input_path" 22912 fi 22913 fi 22914 22915 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22916 if test "x$test_cygdrive_prefix" = x; then 22917 # As a simple fix, exclude /usr/bin since it's not a real path. 22918 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22919 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22920 # a path prefixed by /cygdrive for fixpath to work. 22921 new_path="$CYGWIN_ROOT_PATH$input_path" 22922 fi 22923 fi 22924 22925 22926 if test "x$path" != "x$new_path"; then 22927 BOOT_JDK="$new_path" 22928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22929 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22930 fi 22931 22932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22933 22934 path="$BOOT_JDK" 22935 has_colon=`$ECHO $path | $GREP ^.:` 22936 new_path="$path" 22937 if test "x$has_colon" = x; then 22938 # Not in mixed or Windows style, start by that. 22939 new_path=`cmd //c echo $path` 22940 fi 22941 22942 22943 input_path="$new_path" 22944 # Check if we need to convert this using DOS-style short mode. If the path 22945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22946 # take no chances and rewrite it. 22947 # Note: m4 eats our [], so we need to use [ and ] instead. 22948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22949 if test "x$has_forbidden_chars" != x; then 22950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22951 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22952 fi 22953 22954 22955 windows_path="$new_path" 22956 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22957 unix_path=`$CYGPATH -u "$windows_path"` 22958 new_path="$unix_path" 22959 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22960 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22961 new_path="$unix_path" 22962 fi 22963 22964 if test "x$path" != "x$new_path"; then 22965 BOOT_JDK="$new_path" 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22967 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22968 fi 22969 22970 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22971 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22972 22973 else 22974 # We're on a unix platform. Hooray! :) 22975 path="$BOOT_JDK" 22976 has_space=`$ECHO "$path" | $GREP " "` 22977 if test "x$has_space" != x; then 22978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22979 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22980 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22981 fi 22982 22983 # Use eval to expand a potential ~ 22984 eval path="$path" 22985 if test ! -f "$path" && test ! -d "$path"; then 22986 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22987 fi 22988 22989 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22990 fi 22991 fi 22992 22993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22994 $as_echo_n "checking for Boot JDK... " >&6; } 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22996 $as_echo "$BOOT_JDK" >&6; } 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22998 $as_echo_n "checking Boot JDK version... " >&6; } 22999 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23001 $as_echo "$BOOT_JDK_VERSION" >&6; } 23002 fi # end check jdk version 23003 fi # end check javac 23004 fi # end check java 23005 fi # end check boot jdk found 23006 fi 23007 23008 23009 # Test: Is there a JDK installed in default, well-known locations? 23010 23011 if test "x$BOOT_JDK_FOUND" = xno; then 23012 # Now execute the test 23013 23014 if test "x$OPENJDK_TARGET_OS" = xwindows; then 23015 23016 if test "x$BOOT_JDK_FOUND" = xno; then 23017 # Now execute the test 23018 23019 if test "x$ProgramW6432" != x; then 23020 VIRTUAL_DIR="$ProgramW6432/Java" 23021 23022 windows_path="$VIRTUAL_DIR" 23023 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23024 unix_path=`$CYGPATH -u "$windows_path"` 23025 VIRTUAL_DIR="$unix_path" 23026 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23027 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23028 VIRTUAL_DIR="$unix_path" 23029 fi 23030 23031 23032 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23033 BOOT_JDK_SUFFIX="" 23034 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23035 if test "x$ALL_JDKS_FOUND" != x; then 23036 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23037 23038 if test "x$BOOT_JDK_FOUND" = xno; then 23039 # Now execute the test 23040 23041 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23042 if test -d "$BOOT_JDK"; then 23043 BOOT_JDK_FOUND=maybe 23044 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23045 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23046 fi 23047 23048 23049 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23050 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23051 # Do we have a bin/java? 23052 if test ! -x "$BOOT_JDK/bin/java"; then 23053 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23054 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23055 BOOT_JDK_FOUND=no 23056 else 23057 # Do we have a bin/javac? 23058 if test ! -x "$BOOT_JDK/bin/javac"; then 23059 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23060 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23061 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23062 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23063 BOOT_JDK_FOUND=no 23064 else 23065 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23066 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23067 23068 # Extra M4 quote needed to protect [] in grep expression. 23069 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23070 if test "x$FOUND_CORRECT_VERSION" = x; then 23071 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23072 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23073 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23074 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23075 BOOT_JDK_FOUND=no 23076 else 23077 # We're done! :-) 23078 BOOT_JDK_FOUND=yes 23079 23080 # Only process if variable expands to non-empty 23081 23082 if test "x$BOOT_JDK" != x; then 23083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23084 23085 # Input might be given as Windows format, start by converting to 23086 # unix format. 23087 path="$BOOT_JDK" 23088 new_path=`$CYGPATH -u "$path"` 23089 23090 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23091 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23092 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23093 # "foo.exe" is OK but "foo" is an error. 23094 # 23095 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23096 # It is also a way to make sure we got the proper file name for the real test later on. 23097 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23098 if test "x$test_shortpath" = x; then 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23100 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23101 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23102 fi 23103 23104 # Call helper function which possibly converts this using DOS-style short mode. 23105 # If so, the updated path is stored in $new_path. 23106 23107 input_path="$new_path" 23108 # Check if we need to convert this using DOS-style short mode. If the path 23109 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23110 # take no chances and rewrite it. 23111 # Note: m4 eats our [], so we need to use [ and ] instead. 23112 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23113 if test "x$has_forbidden_chars" != x; then 23114 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23115 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23116 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23117 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23118 # Going to short mode and back again did indeed matter. Since short mode is 23119 # case insensitive, let's make it lowercase to improve readability. 23120 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23121 # Now convert it back to Unix-style (cygpath) 23122 input_path=`$CYGPATH -u "$shortmode_path"` 23123 new_path="$input_path" 23124 fi 23125 fi 23126 23127 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23128 if test "x$test_cygdrive_prefix" = x; then 23129 # As a simple fix, exclude /usr/bin since it's not a real path. 23130 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23131 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23132 # a path prefixed by /cygdrive for fixpath to work. 23133 new_path="$CYGWIN_ROOT_PATH$input_path" 23134 fi 23135 fi 23136 23137 23138 if test "x$path" != "x$new_path"; then 23139 BOOT_JDK="$new_path" 23140 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23141 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23142 fi 23143 23144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23145 23146 path="$BOOT_JDK" 23147 has_colon=`$ECHO $path | $GREP ^.:` 23148 new_path="$path" 23149 if test "x$has_colon" = x; then 23150 # Not in mixed or Windows style, start by that. 23151 new_path=`cmd //c echo $path` 23152 fi 23153 23154 23155 input_path="$new_path" 23156 # Check if we need to convert this using DOS-style short mode. If the path 23157 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23158 # take no chances and rewrite it. 23159 # Note: m4 eats our [], so we need to use [ and ] instead. 23160 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23161 if test "x$has_forbidden_chars" != x; then 23162 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23163 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23164 fi 23165 23166 23167 windows_path="$new_path" 23168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23169 unix_path=`$CYGPATH -u "$windows_path"` 23170 new_path="$unix_path" 23171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23173 new_path="$unix_path" 23174 fi 23175 23176 if test "x$path" != "x$new_path"; then 23177 BOOT_JDK="$new_path" 23178 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23179 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23180 fi 23181 23182 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23183 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23184 23185 else 23186 # We're on a unix platform. Hooray! :) 23187 path="$BOOT_JDK" 23188 has_space=`$ECHO "$path" | $GREP " "` 23189 if test "x$has_space" != x; then 23190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23191 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23192 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23193 fi 23194 23195 # Use eval to expand a potential ~ 23196 eval path="$path" 23197 if test ! -f "$path" && test ! -d "$path"; then 23198 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23199 fi 23200 23201 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23202 fi 23203 fi 23204 23205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23206 $as_echo_n "checking for Boot JDK... " >&6; } 23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23208 $as_echo "$BOOT_JDK" >&6; } 23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23210 $as_echo_n "checking Boot JDK version... " >&6; } 23211 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23213 $as_echo "$BOOT_JDK_VERSION" >&6; } 23214 fi # end check jdk version 23215 fi # end check javac 23216 fi # end check java 23217 fi # end check boot jdk found 23218 fi 23219 23220 done 23221 fi 23222 23223 fi 23224 23225 23226 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23227 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23228 # Do we have a bin/java? 23229 if test ! -x "$BOOT_JDK/bin/java"; then 23230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23232 BOOT_JDK_FOUND=no 23233 else 23234 # Do we have a bin/javac? 23235 if test ! -x "$BOOT_JDK/bin/javac"; then 23236 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23237 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23238 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23239 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23240 BOOT_JDK_FOUND=no 23241 else 23242 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23243 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23244 23245 # Extra M4 quote needed to protect [] in grep expression. 23246 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23247 if test "x$FOUND_CORRECT_VERSION" = x; then 23248 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23250 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23251 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23252 BOOT_JDK_FOUND=no 23253 else 23254 # We're done! :-) 23255 BOOT_JDK_FOUND=yes 23256 23257 # Only process if variable expands to non-empty 23258 23259 if test "x$BOOT_JDK" != x; then 23260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23261 23262 # Input might be given as Windows format, start by converting to 23263 # unix format. 23264 path="$BOOT_JDK" 23265 new_path=`$CYGPATH -u "$path"` 23266 23267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23270 # "foo.exe" is OK but "foo" is an error. 23271 # 23272 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23273 # It is also a way to make sure we got the proper file name for the real test later on. 23274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23275 if test "x$test_shortpath" = x; then 23276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23277 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23278 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23279 fi 23280 23281 # Call helper function which possibly converts this using DOS-style short mode. 23282 # If so, the updated path is stored in $new_path. 23283 23284 input_path="$new_path" 23285 # Check if we need to convert this using DOS-style short mode. If the path 23286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23287 # take no chances and rewrite it. 23288 # Note: m4 eats our [], so we need to use [ and ] instead. 23289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23290 if test "x$has_forbidden_chars" != x; then 23291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23292 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23293 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23294 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23295 # Going to short mode and back again did indeed matter. Since short mode is 23296 # case insensitive, let's make it lowercase to improve readability. 23297 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23298 # Now convert it back to Unix-style (cygpath) 23299 input_path=`$CYGPATH -u "$shortmode_path"` 23300 new_path="$input_path" 23301 fi 23302 fi 23303 23304 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23305 if test "x$test_cygdrive_prefix" = x; then 23306 # As a simple fix, exclude /usr/bin since it's not a real path. 23307 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23308 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23309 # a path prefixed by /cygdrive for fixpath to work. 23310 new_path="$CYGWIN_ROOT_PATH$input_path" 23311 fi 23312 fi 23313 23314 23315 if test "x$path" != "x$new_path"; then 23316 BOOT_JDK="$new_path" 23317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23318 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23319 fi 23320 23321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23322 23323 path="$BOOT_JDK" 23324 has_colon=`$ECHO $path | $GREP ^.:` 23325 new_path="$path" 23326 if test "x$has_colon" = x; then 23327 # Not in mixed or Windows style, start by that. 23328 new_path=`cmd //c echo $path` 23329 fi 23330 23331 23332 input_path="$new_path" 23333 # Check if we need to convert this using DOS-style short mode. If the path 23334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23335 # take no chances and rewrite it. 23336 # Note: m4 eats our [], so we need to use [ and ] instead. 23337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23338 if test "x$has_forbidden_chars" != x; then 23339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23340 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23341 fi 23342 23343 23344 windows_path="$new_path" 23345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23346 unix_path=`$CYGPATH -u "$windows_path"` 23347 new_path="$unix_path" 23348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23350 new_path="$unix_path" 23351 fi 23352 23353 if test "x$path" != "x$new_path"; then 23354 BOOT_JDK="$new_path" 23355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23356 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23357 fi 23358 23359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23361 23362 else 23363 # We're on a unix platform. Hooray! :) 23364 path="$BOOT_JDK" 23365 has_space=`$ECHO "$path" | $GREP " "` 23366 if test "x$has_space" != x; then 23367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23368 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23369 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23370 fi 23371 23372 # Use eval to expand a potential ~ 23373 eval path="$path" 23374 if test ! -f "$path" && test ! -d "$path"; then 23375 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23376 fi 23377 23378 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23379 fi 23380 fi 23381 23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23383 $as_echo_n "checking for Boot JDK... " >&6; } 23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23385 $as_echo "$BOOT_JDK" >&6; } 23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23387 $as_echo_n "checking Boot JDK version... " >&6; } 23388 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23390 $as_echo "$BOOT_JDK_VERSION" >&6; } 23391 fi # end check jdk version 23392 fi # end check javac 23393 fi # end check java 23394 fi # end check boot jdk found 23395 fi 23396 23397 23398 if test "x$BOOT_JDK_FOUND" = xno; then 23399 # Now execute the test 23400 23401 if test "x$PROGRAMW6432" != x; then 23402 VIRTUAL_DIR="$PROGRAMW6432/Java" 23403 23404 windows_path="$VIRTUAL_DIR" 23405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23406 unix_path=`$CYGPATH -u "$windows_path"` 23407 VIRTUAL_DIR="$unix_path" 23408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23410 VIRTUAL_DIR="$unix_path" 23411 fi 23412 23413 23414 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23415 BOOT_JDK_SUFFIX="" 23416 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23417 if test "x$ALL_JDKS_FOUND" != x; then 23418 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23419 23420 if test "x$BOOT_JDK_FOUND" = xno; then 23421 # Now execute the test 23422 23423 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23424 if test -d "$BOOT_JDK"; then 23425 BOOT_JDK_FOUND=maybe 23426 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23427 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23428 fi 23429 23430 23431 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23432 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23433 # Do we have a bin/java? 23434 if test ! -x "$BOOT_JDK/bin/java"; then 23435 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23436 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23437 BOOT_JDK_FOUND=no 23438 else 23439 # Do we have a bin/javac? 23440 if test ! -x "$BOOT_JDK/bin/javac"; then 23441 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23442 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23444 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23445 BOOT_JDK_FOUND=no 23446 else 23447 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23448 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23449 23450 # Extra M4 quote needed to protect [] in grep expression. 23451 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23452 if test "x$FOUND_CORRECT_VERSION" = x; then 23453 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23455 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23456 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23457 BOOT_JDK_FOUND=no 23458 else 23459 # We're done! :-) 23460 BOOT_JDK_FOUND=yes 23461 23462 # Only process if variable expands to non-empty 23463 23464 if test "x$BOOT_JDK" != x; then 23465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23466 23467 # Input might be given as Windows format, start by converting to 23468 # unix format. 23469 path="$BOOT_JDK" 23470 new_path=`$CYGPATH -u "$path"` 23471 23472 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23473 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23474 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23475 # "foo.exe" is OK but "foo" is an error. 23476 # 23477 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23478 # It is also a way to make sure we got the proper file name for the real test later on. 23479 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23480 if test "x$test_shortpath" = x; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23482 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23483 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23484 fi 23485 23486 # Call helper function which possibly converts this using DOS-style short mode. 23487 # If so, the updated path is stored in $new_path. 23488 23489 input_path="$new_path" 23490 # Check if we need to convert this using DOS-style short mode. If the path 23491 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23492 # take no chances and rewrite it. 23493 # Note: m4 eats our [], so we need to use [ and ] instead. 23494 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23495 if test "x$has_forbidden_chars" != x; then 23496 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23497 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23498 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23499 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23500 # Going to short mode and back again did indeed matter. Since short mode is 23501 # case insensitive, let's make it lowercase to improve readability. 23502 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23503 # Now convert it back to Unix-style (cygpath) 23504 input_path=`$CYGPATH -u "$shortmode_path"` 23505 new_path="$input_path" 23506 fi 23507 fi 23508 23509 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23510 if test "x$test_cygdrive_prefix" = x; then 23511 # As a simple fix, exclude /usr/bin since it's not a real path. 23512 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23513 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23514 # a path prefixed by /cygdrive for fixpath to work. 23515 new_path="$CYGWIN_ROOT_PATH$input_path" 23516 fi 23517 fi 23518 23519 23520 if test "x$path" != "x$new_path"; then 23521 BOOT_JDK="$new_path" 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23524 fi 23525 23526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23527 23528 path="$BOOT_JDK" 23529 has_colon=`$ECHO $path | $GREP ^.:` 23530 new_path="$path" 23531 if test "x$has_colon" = x; then 23532 # Not in mixed or Windows style, start by that. 23533 new_path=`cmd //c echo $path` 23534 fi 23535 23536 23537 input_path="$new_path" 23538 # Check if we need to convert this using DOS-style short mode. If the path 23539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23540 # take no chances and rewrite it. 23541 # Note: m4 eats our [], so we need to use [ and ] instead. 23542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23543 if test "x$has_forbidden_chars" != x; then 23544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23545 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23546 fi 23547 23548 23549 windows_path="$new_path" 23550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23551 unix_path=`$CYGPATH -u "$windows_path"` 23552 new_path="$unix_path" 23553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23555 new_path="$unix_path" 23556 fi 23557 23558 if test "x$path" != "x$new_path"; then 23559 BOOT_JDK="$new_path" 23560 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23562 fi 23563 23564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23566 23567 else 23568 # We're on a unix platform. Hooray! :) 23569 path="$BOOT_JDK" 23570 has_space=`$ECHO "$path" | $GREP " "` 23571 if test "x$has_space" != x; then 23572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23573 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23574 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23575 fi 23576 23577 # Use eval to expand a potential ~ 23578 eval path="$path" 23579 if test ! -f "$path" && test ! -d "$path"; then 23580 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23581 fi 23582 23583 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23584 fi 23585 fi 23586 23587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23588 $as_echo_n "checking for Boot JDK... " >&6; } 23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23590 $as_echo "$BOOT_JDK" >&6; } 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23592 $as_echo_n "checking Boot JDK version... " >&6; } 23593 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23595 $as_echo "$BOOT_JDK_VERSION" >&6; } 23596 fi # end check jdk version 23597 fi # end check javac 23598 fi # end check java 23599 fi # end check boot jdk found 23600 fi 23601 23602 done 23603 fi 23604 23605 fi 23606 23607 23608 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23609 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23610 # Do we have a bin/java? 23611 if test ! -x "$BOOT_JDK/bin/java"; then 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23614 BOOT_JDK_FOUND=no 23615 else 23616 # Do we have a bin/javac? 23617 if test ! -x "$BOOT_JDK/bin/javac"; then 23618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23620 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23621 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23622 BOOT_JDK_FOUND=no 23623 else 23624 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23625 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23626 23627 # Extra M4 quote needed to protect [] in grep expression. 23628 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23629 if test "x$FOUND_CORRECT_VERSION" = x; then 23630 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23632 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23633 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23634 BOOT_JDK_FOUND=no 23635 else 23636 # We're done! :-) 23637 BOOT_JDK_FOUND=yes 23638 23639 # Only process if variable expands to non-empty 23640 23641 if test "x$BOOT_JDK" != x; then 23642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23643 23644 # Input might be given as Windows format, start by converting to 23645 # unix format. 23646 path="$BOOT_JDK" 23647 new_path=`$CYGPATH -u "$path"` 23648 23649 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23650 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23651 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23652 # "foo.exe" is OK but "foo" is an error. 23653 # 23654 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23655 # It is also a way to make sure we got the proper file name for the real test later on. 23656 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23657 if test "x$test_shortpath" = x; then 23658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23659 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23660 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23661 fi 23662 23663 # Call helper function which possibly converts this using DOS-style short mode. 23664 # If so, the updated path is stored in $new_path. 23665 23666 input_path="$new_path" 23667 # Check if we need to convert this using DOS-style short mode. If the path 23668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23669 # take no chances and rewrite it. 23670 # Note: m4 eats our [], so we need to use [ and ] instead. 23671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23672 if test "x$has_forbidden_chars" != x; then 23673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23674 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23675 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23676 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23677 # Going to short mode and back again did indeed matter. Since short mode is 23678 # case insensitive, let's make it lowercase to improve readability. 23679 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23680 # Now convert it back to Unix-style (cygpath) 23681 input_path=`$CYGPATH -u "$shortmode_path"` 23682 new_path="$input_path" 23683 fi 23684 fi 23685 23686 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23687 if test "x$test_cygdrive_prefix" = x; then 23688 # As a simple fix, exclude /usr/bin since it's not a real path. 23689 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23690 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23691 # a path prefixed by /cygdrive for fixpath to work. 23692 new_path="$CYGWIN_ROOT_PATH$input_path" 23693 fi 23694 fi 23695 23696 23697 if test "x$path" != "x$new_path"; then 23698 BOOT_JDK="$new_path" 23699 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23700 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23701 fi 23702 23703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23704 23705 path="$BOOT_JDK" 23706 has_colon=`$ECHO $path | $GREP ^.:` 23707 new_path="$path" 23708 if test "x$has_colon" = x; then 23709 # Not in mixed or Windows style, start by that. 23710 new_path=`cmd //c echo $path` 23711 fi 23712 23713 23714 input_path="$new_path" 23715 # Check if we need to convert this using DOS-style short mode. If the path 23716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23717 # take no chances and rewrite it. 23718 # Note: m4 eats our [], so we need to use [ and ] instead. 23719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23720 if test "x$has_forbidden_chars" != x; then 23721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23722 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23723 fi 23724 23725 23726 windows_path="$new_path" 23727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23728 unix_path=`$CYGPATH -u "$windows_path"` 23729 new_path="$unix_path" 23730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23732 new_path="$unix_path" 23733 fi 23734 23735 if test "x$path" != "x$new_path"; then 23736 BOOT_JDK="$new_path" 23737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23738 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23739 fi 23740 23741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23743 23744 else 23745 # We're on a unix platform. Hooray! :) 23746 path="$BOOT_JDK" 23747 has_space=`$ECHO "$path" | $GREP " "` 23748 if test "x$has_space" != x; then 23749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23750 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23751 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23752 fi 23753 23754 # Use eval to expand a potential ~ 23755 eval path="$path" 23756 if test ! -f "$path" && test ! -d "$path"; then 23757 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23758 fi 23759 23760 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23761 fi 23762 fi 23763 23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23765 $as_echo_n "checking for Boot JDK... " >&6; } 23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23767 $as_echo "$BOOT_JDK" >&6; } 23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23769 $as_echo_n "checking Boot JDK version... " >&6; } 23770 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23772 $as_echo "$BOOT_JDK_VERSION" >&6; } 23773 fi # end check jdk version 23774 fi # end check javac 23775 fi # end check java 23776 fi # end check boot jdk found 23777 fi 23778 23779 23780 if test "x$BOOT_JDK_FOUND" = xno; then 23781 # Now execute the test 23782 23783 if test "x$PROGRAMFILES" != x; then 23784 VIRTUAL_DIR="$PROGRAMFILES/Java" 23785 23786 windows_path="$VIRTUAL_DIR" 23787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23788 unix_path=`$CYGPATH -u "$windows_path"` 23789 VIRTUAL_DIR="$unix_path" 23790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23792 VIRTUAL_DIR="$unix_path" 23793 fi 23794 23795 23796 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23797 BOOT_JDK_SUFFIX="" 23798 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23799 if test "x$ALL_JDKS_FOUND" != x; then 23800 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23801 23802 if test "x$BOOT_JDK_FOUND" = xno; then 23803 # Now execute the test 23804 23805 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23806 if test -d "$BOOT_JDK"; then 23807 BOOT_JDK_FOUND=maybe 23808 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23809 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23810 fi 23811 23812 23813 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23814 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23815 # Do we have a bin/java? 23816 if test ! -x "$BOOT_JDK/bin/java"; then 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23819 BOOT_JDK_FOUND=no 23820 else 23821 # Do we have a bin/javac? 23822 if test ! -x "$BOOT_JDK/bin/javac"; then 23823 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23824 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23825 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23826 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23827 BOOT_JDK_FOUND=no 23828 else 23829 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23830 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23831 23832 # Extra M4 quote needed to protect [] in grep expression. 23833 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23834 if test "x$FOUND_CORRECT_VERSION" = x; then 23835 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23836 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23837 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23838 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23839 BOOT_JDK_FOUND=no 23840 else 23841 # We're done! :-) 23842 BOOT_JDK_FOUND=yes 23843 23844 # Only process if variable expands to non-empty 23845 23846 if test "x$BOOT_JDK" != x; then 23847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23848 23849 # Input might be given as Windows format, start by converting to 23850 # unix format. 23851 path="$BOOT_JDK" 23852 new_path=`$CYGPATH -u "$path"` 23853 23854 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23855 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23856 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23857 # "foo.exe" is OK but "foo" is an error. 23858 # 23859 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23860 # It is also a way to make sure we got the proper file name for the real test later on. 23861 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23862 if test "x$test_shortpath" = x; then 23863 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23864 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23865 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23866 fi 23867 23868 # Call helper function which possibly converts this using DOS-style short mode. 23869 # If so, the updated path is stored in $new_path. 23870 23871 input_path="$new_path" 23872 # Check if we need to convert this using DOS-style short mode. If the path 23873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23874 # take no chances and rewrite it. 23875 # Note: m4 eats our [], so we need to use [ and ] instead. 23876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23877 if test "x$has_forbidden_chars" != x; then 23878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23879 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23880 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23881 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23882 # Going to short mode and back again did indeed matter. Since short mode is 23883 # case insensitive, let's make it lowercase to improve readability. 23884 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23885 # Now convert it back to Unix-style (cygpath) 23886 input_path=`$CYGPATH -u "$shortmode_path"` 23887 new_path="$input_path" 23888 fi 23889 fi 23890 23891 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23892 if test "x$test_cygdrive_prefix" = x; then 23893 # As a simple fix, exclude /usr/bin since it's not a real path. 23894 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23895 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23896 # a path prefixed by /cygdrive for fixpath to work. 23897 new_path="$CYGWIN_ROOT_PATH$input_path" 23898 fi 23899 fi 23900 23901 23902 if test "x$path" != "x$new_path"; then 23903 BOOT_JDK="$new_path" 23904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23905 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23906 fi 23907 23908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23909 23910 path="$BOOT_JDK" 23911 has_colon=`$ECHO $path | $GREP ^.:` 23912 new_path="$path" 23913 if test "x$has_colon" = x; then 23914 # Not in mixed or Windows style, start by that. 23915 new_path=`cmd //c echo $path` 23916 fi 23917 23918 23919 input_path="$new_path" 23920 # Check if we need to convert this using DOS-style short mode. If the path 23921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23922 # take no chances and rewrite it. 23923 # Note: m4 eats our [], so we need to use [ and ] instead. 23924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23925 if test "x$has_forbidden_chars" != x; then 23926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23927 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23928 fi 23929 23930 23931 windows_path="$new_path" 23932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23933 unix_path=`$CYGPATH -u "$windows_path"` 23934 new_path="$unix_path" 23935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23937 new_path="$unix_path" 23938 fi 23939 23940 if test "x$path" != "x$new_path"; then 23941 BOOT_JDK="$new_path" 23942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23944 fi 23945 23946 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23947 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23948 23949 else 23950 # We're on a unix platform. Hooray! :) 23951 path="$BOOT_JDK" 23952 has_space=`$ECHO "$path" | $GREP " "` 23953 if test "x$has_space" != x; then 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23955 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23956 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23957 fi 23958 23959 # Use eval to expand a potential ~ 23960 eval path="$path" 23961 if test ! -f "$path" && test ! -d "$path"; then 23962 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23963 fi 23964 23965 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23966 fi 23967 fi 23968 23969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23970 $as_echo_n "checking for Boot JDK... " >&6; } 23971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23972 $as_echo "$BOOT_JDK" >&6; } 23973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23974 $as_echo_n "checking Boot JDK version... " >&6; } 23975 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23977 $as_echo "$BOOT_JDK_VERSION" >&6; } 23978 fi # end check jdk version 23979 fi # end check javac 23980 fi # end check java 23981 fi # end check boot jdk found 23982 fi 23983 23984 done 23985 fi 23986 23987 fi 23988 23989 23990 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23991 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23992 # Do we have a bin/java? 23993 if test ! -x "$BOOT_JDK/bin/java"; then 23994 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23995 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23996 BOOT_JDK_FOUND=no 23997 else 23998 # Do we have a bin/javac? 23999 if test ! -x "$BOOT_JDK/bin/javac"; then 24000 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24001 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24002 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24003 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24004 BOOT_JDK_FOUND=no 24005 else 24006 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24007 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24008 24009 # Extra M4 quote needed to protect [] in grep expression. 24010 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24011 if test "x$FOUND_CORRECT_VERSION" = x; then 24012 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24014 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24015 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24016 BOOT_JDK_FOUND=no 24017 else 24018 # We're done! :-) 24019 BOOT_JDK_FOUND=yes 24020 24021 # Only process if variable expands to non-empty 24022 24023 if test "x$BOOT_JDK" != x; then 24024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24025 24026 # Input might be given as Windows format, start by converting to 24027 # unix format. 24028 path="$BOOT_JDK" 24029 new_path=`$CYGPATH -u "$path"` 24030 24031 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24032 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24033 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24034 # "foo.exe" is OK but "foo" is an error. 24035 # 24036 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24037 # It is also a way to make sure we got the proper file name for the real test later on. 24038 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24039 if test "x$test_shortpath" = x; then 24040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24041 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24042 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24043 fi 24044 24045 # Call helper function which possibly converts this using DOS-style short mode. 24046 # If so, the updated path is stored in $new_path. 24047 24048 input_path="$new_path" 24049 # Check if we need to convert this using DOS-style short mode. If the path 24050 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24051 # take no chances and rewrite it. 24052 # Note: m4 eats our [], so we need to use [ and ] instead. 24053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24054 if test "x$has_forbidden_chars" != x; then 24055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24056 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24057 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24058 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24059 # Going to short mode and back again did indeed matter. Since short mode is 24060 # case insensitive, let's make it lowercase to improve readability. 24061 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24062 # Now convert it back to Unix-style (cygpath) 24063 input_path=`$CYGPATH -u "$shortmode_path"` 24064 new_path="$input_path" 24065 fi 24066 fi 24067 24068 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24069 if test "x$test_cygdrive_prefix" = x; then 24070 # As a simple fix, exclude /usr/bin since it's not a real path. 24071 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24072 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24073 # a path prefixed by /cygdrive for fixpath to work. 24074 new_path="$CYGWIN_ROOT_PATH$input_path" 24075 fi 24076 fi 24077 24078 24079 if test "x$path" != "x$new_path"; then 24080 BOOT_JDK="$new_path" 24081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24082 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24083 fi 24084 24085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24086 24087 path="$BOOT_JDK" 24088 has_colon=`$ECHO $path | $GREP ^.:` 24089 new_path="$path" 24090 if test "x$has_colon" = x; then 24091 # Not in mixed or Windows style, start by that. 24092 new_path=`cmd //c echo $path` 24093 fi 24094 24095 24096 input_path="$new_path" 24097 # Check if we need to convert this using DOS-style short mode. If the path 24098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24099 # take no chances and rewrite it. 24100 # Note: m4 eats our [], so we need to use [ and ] instead. 24101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24102 if test "x$has_forbidden_chars" != x; then 24103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24104 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24105 fi 24106 24107 24108 windows_path="$new_path" 24109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24110 unix_path=`$CYGPATH -u "$windows_path"` 24111 new_path="$unix_path" 24112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24114 new_path="$unix_path" 24115 fi 24116 24117 if test "x$path" != "x$new_path"; then 24118 BOOT_JDK="$new_path" 24119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24120 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24121 fi 24122 24123 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24124 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24125 24126 else 24127 # We're on a unix platform. Hooray! :) 24128 path="$BOOT_JDK" 24129 has_space=`$ECHO "$path" | $GREP " "` 24130 if test "x$has_space" != x; then 24131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24132 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24133 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24134 fi 24135 24136 # Use eval to expand a potential ~ 24137 eval path="$path" 24138 if test ! -f "$path" && test ! -d "$path"; then 24139 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24140 fi 24141 24142 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24143 fi 24144 fi 24145 24146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24147 $as_echo_n "checking for Boot JDK... " >&6; } 24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24149 $as_echo "$BOOT_JDK" >&6; } 24150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24151 $as_echo_n "checking Boot JDK version... " >&6; } 24152 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24154 $as_echo "$BOOT_JDK_VERSION" >&6; } 24155 fi # end check jdk version 24156 fi # end check javac 24157 fi # end check java 24158 fi # end check boot jdk found 24159 fi 24160 24161 24162 if test "x$BOOT_JDK_FOUND" = xno; then 24163 # Now execute the test 24164 24165 if test "x$ProgramFiles" != x; then 24166 VIRTUAL_DIR="$ProgramFiles/Java" 24167 24168 windows_path="$VIRTUAL_DIR" 24169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24170 unix_path=`$CYGPATH -u "$windows_path"` 24171 VIRTUAL_DIR="$unix_path" 24172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24174 VIRTUAL_DIR="$unix_path" 24175 fi 24176 24177 24178 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 24179 BOOT_JDK_SUFFIX="" 24180 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24181 if test "x$ALL_JDKS_FOUND" != x; then 24182 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24183 24184 if test "x$BOOT_JDK_FOUND" = xno; then 24185 # Now execute the test 24186 24187 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24188 if test -d "$BOOT_JDK"; then 24189 BOOT_JDK_FOUND=maybe 24190 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24191 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24192 fi 24193 24194 24195 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24196 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24197 # Do we have a bin/java? 24198 if test ! -x "$BOOT_JDK/bin/java"; then 24199 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24201 BOOT_JDK_FOUND=no 24202 else 24203 # Do we have a bin/javac? 24204 if test ! -x "$BOOT_JDK/bin/javac"; then 24205 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24206 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24207 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24208 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24209 BOOT_JDK_FOUND=no 24210 else 24211 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24212 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24213 24214 # Extra M4 quote needed to protect [] in grep expression. 24215 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24216 if test "x$FOUND_CORRECT_VERSION" = x; then 24217 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24219 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24220 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24221 BOOT_JDK_FOUND=no 24222 else 24223 # We're done! :-) 24224 BOOT_JDK_FOUND=yes 24225 24226 # Only process if variable expands to non-empty 24227 24228 if test "x$BOOT_JDK" != x; then 24229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24230 24231 # Input might be given as Windows format, start by converting to 24232 # unix format. 24233 path="$BOOT_JDK" 24234 new_path=`$CYGPATH -u "$path"` 24235 24236 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24237 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24238 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24239 # "foo.exe" is OK but "foo" is an error. 24240 # 24241 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24242 # It is also a way to make sure we got the proper file name for the real test later on. 24243 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24244 if test "x$test_shortpath" = x; then 24245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24246 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24247 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24248 fi 24249 24250 # Call helper function which possibly converts this using DOS-style short mode. 24251 # If so, the updated path is stored in $new_path. 24252 24253 input_path="$new_path" 24254 # Check if we need to convert this using DOS-style short mode. If the path 24255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24256 # take no chances and rewrite it. 24257 # Note: m4 eats our [], so we need to use [ and ] instead. 24258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24259 if test "x$has_forbidden_chars" != x; then 24260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24261 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24262 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24263 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24264 # Going to short mode and back again did indeed matter. Since short mode is 24265 # case insensitive, let's make it lowercase to improve readability. 24266 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24267 # Now convert it back to Unix-style (cygpath) 24268 input_path=`$CYGPATH -u "$shortmode_path"` 24269 new_path="$input_path" 24270 fi 24271 fi 24272 24273 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24274 if test "x$test_cygdrive_prefix" = x; then 24275 # As a simple fix, exclude /usr/bin since it's not a real path. 24276 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24277 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24278 # a path prefixed by /cygdrive for fixpath to work. 24279 new_path="$CYGWIN_ROOT_PATH$input_path" 24280 fi 24281 fi 24282 24283 24284 if test "x$path" != "x$new_path"; then 24285 BOOT_JDK="$new_path" 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24287 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24288 fi 24289 24290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24291 24292 path="$BOOT_JDK" 24293 has_colon=`$ECHO $path | $GREP ^.:` 24294 new_path="$path" 24295 if test "x$has_colon" = x; then 24296 # Not in mixed or Windows style, start by that. 24297 new_path=`cmd //c echo $path` 24298 fi 24299 24300 24301 input_path="$new_path" 24302 # Check if we need to convert this using DOS-style short mode. If the path 24303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24304 # take no chances and rewrite it. 24305 # Note: m4 eats our [], so we need to use [ and ] instead. 24306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24307 if test "x$has_forbidden_chars" != x; then 24308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24309 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24310 fi 24311 24312 24313 windows_path="$new_path" 24314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24315 unix_path=`$CYGPATH -u "$windows_path"` 24316 new_path="$unix_path" 24317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24318 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24319 new_path="$unix_path" 24320 fi 24321 24322 if test "x$path" != "x$new_path"; then 24323 BOOT_JDK="$new_path" 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24325 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24326 fi 24327 24328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24330 24331 else 24332 # We're on a unix platform. Hooray! :) 24333 path="$BOOT_JDK" 24334 has_space=`$ECHO "$path" | $GREP " "` 24335 if test "x$has_space" != x; then 24336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24338 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24339 fi 24340 24341 # Use eval to expand a potential ~ 24342 eval path="$path" 24343 if test ! -f "$path" && test ! -d "$path"; then 24344 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24345 fi 24346 24347 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24348 fi 24349 fi 24350 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24352 $as_echo_n "checking for Boot JDK... " >&6; } 24353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24354 $as_echo "$BOOT_JDK" >&6; } 24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24356 $as_echo_n "checking Boot JDK version... " >&6; } 24357 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24359 $as_echo "$BOOT_JDK_VERSION" >&6; } 24360 fi # end check jdk version 24361 fi # end check javac 24362 fi # end check java 24363 fi # end check boot jdk found 24364 fi 24365 24366 done 24367 fi 24368 24369 fi 24370 24371 24372 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24373 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24374 # Do we have a bin/java? 24375 if test ! -x "$BOOT_JDK/bin/java"; then 24376 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24377 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24378 BOOT_JDK_FOUND=no 24379 else 24380 # Do we have a bin/javac? 24381 if test ! -x "$BOOT_JDK/bin/javac"; then 24382 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24384 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24385 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24386 BOOT_JDK_FOUND=no 24387 else 24388 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24389 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24390 24391 # Extra M4 quote needed to protect [] in grep expression. 24392 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24393 if test "x$FOUND_CORRECT_VERSION" = x; then 24394 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24395 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24396 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24397 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24398 BOOT_JDK_FOUND=no 24399 else 24400 # We're done! :-) 24401 BOOT_JDK_FOUND=yes 24402 24403 # Only process if variable expands to non-empty 24404 24405 if test "x$BOOT_JDK" != x; then 24406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24407 24408 # Input might be given as Windows format, start by converting to 24409 # unix format. 24410 path="$BOOT_JDK" 24411 new_path=`$CYGPATH -u "$path"` 24412 24413 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24414 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24415 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24416 # "foo.exe" is OK but "foo" is an error. 24417 # 24418 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24419 # It is also a way to make sure we got the proper file name for the real test later on. 24420 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24421 if test "x$test_shortpath" = x; then 24422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24423 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24424 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24425 fi 24426 24427 # Call helper function which possibly converts this using DOS-style short mode. 24428 # If so, the updated path is stored in $new_path. 24429 24430 input_path="$new_path" 24431 # Check if we need to convert this using DOS-style short mode. If the path 24432 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24433 # take no chances and rewrite it. 24434 # Note: m4 eats our [], so we need to use [ and ] instead. 24435 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24436 if test "x$has_forbidden_chars" != x; then 24437 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24438 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24439 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24440 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24441 # Going to short mode and back again did indeed matter. Since short mode is 24442 # case insensitive, let's make it lowercase to improve readability. 24443 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24444 # Now convert it back to Unix-style (cygpath) 24445 input_path=`$CYGPATH -u "$shortmode_path"` 24446 new_path="$input_path" 24447 fi 24448 fi 24449 24450 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24451 if test "x$test_cygdrive_prefix" = x; then 24452 # As a simple fix, exclude /usr/bin since it's not a real path. 24453 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24454 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24455 # a path prefixed by /cygdrive for fixpath to work. 24456 new_path="$CYGWIN_ROOT_PATH$input_path" 24457 fi 24458 fi 24459 24460 24461 if test "x$path" != "x$new_path"; then 24462 BOOT_JDK="$new_path" 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24464 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24465 fi 24466 24467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24468 24469 path="$BOOT_JDK" 24470 has_colon=`$ECHO $path | $GREP ^.:` 24471 new_path="$path" 24472 if test "x$has_colon" = x; then 24473 # Not in mixed or Windows style, start by that. 24474 new_path=`cmd //c echo $path` 24475 fi 24476 24477 24478 input_path="$new_path" 24479 # Check if we need to convert this using DOS-style short mode. If the path 24480 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24481 # take no chances and rewrite it. 24482 # Note: m4 eats our [], so we need to use [ and ] instead. 24483 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24484 if test "x$has_forbidden_chars" != x; then 24485 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24486 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24487 fi 24488 24489 24490 windows_path="$new_path" 24491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24492 unix_path=`$CYGPATH -u "$windows_path"` 24493 new_path="$unix_path" 24494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24495 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24496 new_path="$unix_path" 24497 fi 24498 24499 if test "x$path" != "x$new_path"; then 24500 BOOT_JDK="$new_path" 24501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24502 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24503 fi 24504 24505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24507 24508 else 24509 # We're on a unix platform. Hooray! :) 24510 path="$BOOT_JDK" 24511 has_space=`$ECHO "$path" | $GREP " "` 24512 if test "x$has_space" != x; then 24513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24514 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24515 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24516 fi 24517 24518 # Use eval to expand a potential ~ 24519 eval path="$path" 24520 if test ! -f "$path" && test ! -d "$path"; then 24521 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24522 fi 24523 24524 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24525 fi 24526 fi 24527 24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24529 $as_echo_n "checking for Boot JDK... " >&6; } 24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24531 $as_echo "$BOOT_JDK" >&6; } 24532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24533 $as_echo_n "checking Boot JDK version... " >&6; } 24534 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24536 $as_echo "$BOOT_JDK_VERSION" >&6; } 24537 fi # end check jdk version 24538 fi # end check javac 24539 fi # end check java 24540 fi # end check boot jdk found 24541 fi 24542 24543 24544 if test "x$BOOT_JDK_FOUND" = xno; then 24545 # Now execute the test 24546 24547 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 24548 BOOT_JDK_SUFFIX="" 24549 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24550 if test "x$ALL_JDKS_FOUND" != x; then 24551 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24552 24553 if test "x$BOOT_JDK_FOUND" = xno; then 24554 # Now execute the test 24555 24556 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24557 if test -d "$BOOT_JDK"; then 24558 BOOT_JDK_FOUND=maybe 24559 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24560 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24561 fi 24562 24563 24564 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24565 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24566 # Do we have a bin/java? 24567 if test ! -x "$BOOT_JDK/bin/java"; then 24568 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24569 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24570 BOOT_JDK_FOUND=no 24571 else 24572 # Do we have a bin/javac? 24573 if test ! -x "$BOOT_JDK/bin/javac"; then 24574 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24575 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24576 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24577 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24578 BOOT_JDK_FOUND=no 24579 else 24580 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24581 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24582 24583 # Extra M4 quote needed to protect [] in grep expression. 24584 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24585 if test "x$FOUND_CORRECT_VERSION" = x; then 24586 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24588 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24589 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24590 BOOT_JDK_FOUND=no 24591 else 24592 # We're done! :-) 24593 BOOT_JDK_FOUND=yes 24594 24595 # Only process if variable expands to non-empty 24596 24597 if test "x$BOOT_JDK" != x; then 24598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24599 24600 # Input might be given as Windows format, start by converting to 24601 # unix format. 24602 path="$BOOT_JDK" 24603 new_path=`$CYGPATH -u "$path"` 24604 24605 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24606 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24607 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24608 # "foo.exe" is OK but "foo" is an error. 24609 # 24610 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24611 # It is also a way to make sure we got the proper file name for the real test later on. 24612 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24613 if test "x$test_shortpath" = x; then 24614 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24615 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24616 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24617 fi 24618 24619 # Call helper function which possibly converts this using DOS-style short mode. 24620 # If so, the updated path is stored in $new_path. 24621 24622 input_path="$new_path" 24623 # Check if we need to convert this using DOS-style short mode. If the path 24624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24625 # take no chances and rewrite it. 24626 # Note: m4 eats our [], so we need to use [ and ] instead. 24627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24628 if test "x$has_forbidden_chars" != x; then 24629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24630 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24631 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24632 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24633 # Going to short mode and back again did indeed matter. Since short mode is 24634 # case insensitive, let's make it lowercase to improve readability. 24635 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24636 # Now convert it back to Unix-style (cygpath) 24637 input_path=`$CYGPATH -u "$shortmode_path"` 24638 new_path="$input_path" 24639 fi 24640 fi 24641 24642 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24643 if test "x$test_cygdrive_prefix" = x; then 24644 # As a simple fix, exclude /usr/bin since it's not a real path. 24645 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24646 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24647 # a path prefixed by /cygdrive for fixpath to work. 24648 new_path="$CYGWIN_ROOT_PATH$input_path" 24649 fi 24650 fi 24651 24652 24653 if test "x$path" != "x$new_path"; then 24654 BOOT_JDK="$new_path" 24655 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24656 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24657 fi 24658 24659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24660 24661 path="$BOOT_JDK" 24662 has_colon=`$ECHO $path | $GREP ^.:` 24663 new_path="$path" 24664 if test "x$has_colon" = x; then 24665 # Not in mixed or Windows style, start by that. 24666 new_path=`cmd //c echo $path` 24667 fi 24668 24669 24670 input_path="$new_path" 24671 # Check if we need to convert this using DOS-style short mode. If the path 24672 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24673 # take no chances and rewrite it. 24674 # Note: m4 eats our [], so we need to use [ and ] instead. 24675 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24676 if test "x$has_forbidden_chars" != x; then 24677 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24678 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24679 fi 24680 24681 24682 windows_path="$new_path" 24683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24684 unix_path=`$CYGPATH -u "$windows_path"` 24685 new_path="$unix_path" 24686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24688 new_path="$unix_path" 24689 fi 24690 24691 if test "x$path" != "x$new_path"; then 24692 BOOT_JDK="$new_path" 24693 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24694 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24695 fi 24696 24697 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24698 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24699 24700 else 24701 # We're on a unix platform. Hooray! :) 24702 path="$BOOT_JDK" 24703 has_space=`$ECHO "$path" | $GREP " "` 24704 if test "x$has_space" != x; then 24705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24706 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24707 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24708 fi 24709 24710 # Use eval to expand a potential ~ 24711 eval path="$path" 24712 if test ! -f "$path" && test ! -d "$path"; then 24713 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24714 fi 24715 24716 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24717 fi 24718 fi 24719 24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24721 $as_echo_n "checking for Boot JDK... " >&6; } 24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24723 $as_echo "$BOOT_JDK" >&6; } 24724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24725 $as_echo_n "checking Boot JDK version... " >&6; } 24726 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24728 $as_echo "$BOOT_JDK_VERSION" >&6; } 24729 fi # end check jdk version 24730 fi # end check javac 24731 fi # end check java 24732 fi # end check boot jdk found 24733 fi 24734 24735 done 24736 fi 24737 24738 24739 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24740 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24741 # Do we have a bin/java? 24742 if test ! -x "$BOOT_JDK/bin/java"; then 24743 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24745 BOOT_JDK_FOUND=no 24746 else 24747 # Do we have a bin/javac? 24748 if test ! -x "$BOOT_JDK/bin/javac"; then 24749 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24750 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24751 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24752 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24753 BOOT_JDK_FOUND=no 24754 else 24755 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24756 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24757 24758 # Extra M4 quote needed to protect [] in grep expression. 24759 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24760 if test "x$FOUND_CORRECT_VERSION" = x; then 24761 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24762 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24763 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24764 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24765 BOOT_JDK_FOUND=no 24766 else 24767 # We're done! :-) 24768 BOOT_JDK_FOUND=yes 24769 24770 # Only process if variable expands to non-empty 24771 24772 if test "x$BOOT_JDK" != x; then 24773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24774 24775 # Input might be given as Windows format, start by converting to 24776 # unix format. 24777 path="$BOOT_JDK" 24778 new_path=`$CYGPATH -u "$path"` 24779 24780 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24781 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24782 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24783 # "foo.exe" is OK but "foo" is an error. 24784 # 24785 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24786 # It is also a way to make sure we got the proper file name for the real test later on. 24787 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24788 if test "x$test_shortpath" = x; then 24789 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24790 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24791 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24792 fi 24793 24794 # Call helper function which possibly converts this using DOS-style short mode. 24795 # If so, the updated path is stored in $new_path. 24796 24797 input_path="$new_path" 24798 # Check if we need to convert this using DOS-style short mode. If the path 24799 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24800 # take no chances and rewrite it. 24801 # Note: m4 eats our [], so we need to use [ and ] instead. 24802 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24803 if test "x$has_forbidden_chars" != x; then 24804 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24805 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24806 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24807 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24808 # Going to short mode and back again did indeed matter. Since short mode is 24809 # case insensitive, let's make it lowercase to improve readability. 24810 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24811 # Now convert it back to Unix-style (cygpath) 24812 input_path=`$CYGPATH -u "$shortmode_path"` 24813 new_path="$input_path" 24814 fi 24815 fi 24816 24817 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24818 if test "x$test_cygdrive_prefix" = x; then 24819 # As a simple fix, exclude /usr/bin since it's not a real path. 24820 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24821 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24822 # a path prefixed by /cygdrive for fixpath to work. 24823 new_path="$CYGWIN_ROOT_PATH$input_path" 24824 fi 24825 fi 24826 24827 24828 if test "x$path" != "x$new_path"; then 24829 BOOT_JDK="$new_path" 24830 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24831 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24832 fi 24833 24834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24835 24836 path="$BOOT_JDK" 24837 has_colon=`$ECHO $path | $GREP ^.:` 24838 new_path="$path" 24839 if test "x$has_colon" = x; then 24840 # Not in mixed or Windows style, start by that. 24841 new_path=`cmd //c echo $path` 24842 fi 24843 24844 24845 input_path="$new_path" 24846 # Check if we need to convert this using DOS-style short mode. If the path 24847 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24848 # take no chances and rewrite it. 24849 # Note: m4 eats our [], so we need to use [ and ] instead. 24850 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24851 if test "x$has_forbidden_chars" != x; then 24852 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24853 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24854 fi 24855 24856 24857 windows_path="$new_path" 24858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24859 unix_path=`$CYGPATH -u "$windows_path"` 24860 new_path="$unix_path" 24861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24862 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24863 new_path="$unix_path" 24864 fi 24865 24866 if test "x$path" != "x$new_path"; then 24867 BOOT_JDK="$new_path" 24868 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24869 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24870 fi 24871 24872 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24873 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24874 24875 else 24876 # We're on a unix platform. Hooray! :) 24877 path="$BOOT_JDK" 24878 has_space=`$ECHO "$path" | $GREP " "` 24879 if test "x$has_space" != x; then 24880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24881 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24882 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24883 fi 24884 24885 # Use eval to expand a potential ~ 24886 eval path="$path" 24887 if test ! -f "$path" && test ! -d "$path"; then 24888 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24889 fi 24890 24891 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24892 fi 24893 fi 24894 24895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24896 $as_echo_n "checking for Boot JDK... " >&6; } 24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24898 $as_echo "$BOOT_JDK" >&6; } 24899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24900 $as_echo_n "checking Boot JDK version... " >&6; } 24901 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24903 $as_echo "$BOOT_JDK_VERSION" >&6; } 24904 fi # end check jdk version 24905 fi # end check javac 24906 fi # end check java 24907 fi # end check boot jdk found 24908 fi 24909 24910 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24911 24912 if test "x$BOOT_JDK_FOUND" = xno; then 24913 # Now execute the test 24914 24915 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24916 BOOT_JDK_SUFFIX="/Contents/Home" 24917 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24918 if test "x$ALL_JDKS_FOUND" != x; then 24919 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24920 24921 if test "x$BOOT_JDK_FOUND" = xno; then 24922 # Now execute the test 24923 24924 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24925 if test -d "$BOOT_JDK"; then 24926 BOOT_JDK_FOUND=maybe 24927 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24928 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24929 fi 24930 24931 24932 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24933 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24934 # Do we have a bin/java? 24935 if test ! -x "$BOOT_JDK/bin/java"; then 24936 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24937 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24938 BOOT_JDK_FOUND=no 24939 else 24940 # Do we have a bin/javac? 24941 if test ! -x "$BOOT_JDK/bin/javac"; then 24942 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24943 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24944 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24945 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24946 BOOT_JDK_FOUND=no 24947 else 24948 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24949 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24950 24951 # Extra M4 quote needed to protect [] in grep expression. 24952 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24953 if test "x$FOUND_CORRECT_VERSION" = x; then 24954 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24955 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24956 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24957 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24958 BOOT_JDK_FOUND=no 24959 else 24960 # We're done! :-) 24961 BOOT_JDK_FOUND=yes 24962 24963 # Only process if variable expands to non-empty 24964 24965 if test "x$BOOT_JDK" != x; then 24966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24967 24968 # Input might be given as Windows format, start by converting to 24969 # unix format. 24970 path="$BOOT_JDK" 24971 new_path=`$CYGPATH -u "$path"` 24972 24973 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24974 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24975 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24976 # "foo.exe" is OK but "foo" is an error. 24977 # 24978 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24979 # It is also a way to make sure we got the proper file name for the real test later on. 24980 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24981 if test "x$test_shortpath" = x; then 24982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24983 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24984 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24985 fi 24986 24987 # Call helper function which possibly converts this using DOS-style short mode. 24988 # If so, the updated path is stored in $new_path. 24989 24990 input_path="$new_path" 24991 # Check if we need to convert this using DOS-style short mode. If the path 24992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24993 # take no chances and rewrite it. 24994 # Note: m4 eats our [], so we need to use [ and ] instead. 24995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24996 if test "x$has_forbidden_chars" != x; then 24997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24998 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24999 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25000 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25001 # Going to short mode and back again did indeed matter. Since short mode is 25002 # case insensitive, let's make it lowercase to improve readability. 25003 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25004 # Now convert it back to Unix-style (cygpath) 25005 input_path=`$CYGPATH -u "$shortmode_path"` 25006 new_path="$input_path" 25007 fi 25008 fi 25009 25010 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25011 if test "x$test_cygdrive_prefix" = x; then 25012 # As a simple fix, exclude /usr/bin since it's not a real path. 25013 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25014 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25015 # a path prefixed by /cygdrive for fixpath to work. 25016 new_path="$CYGWIN_ROOT_PATH$input_path" 25017 fi 25018 fi 25019 25020 25021 if test "x$path" != "x$new_path"; then 25022 BOOT_JDK="$new_path" 25023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25024 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25025 fi 25026 25027 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25028 25029 path="$BOOT_JDK" 25030 has_colon=`$ECHO $path | $GREP ^.:` 25031 new_path="$path" 25032 if test "x$has_colon" = x; then 25033 # Not in mixed or Windows style, start by that. 25034 new_path=`cmd //c echo $path` 25035 fi 25036 25037 25038 input_path="$new_path" 25039 # Check if we need to convert this using DOS-style short mode. If the path 25040 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25041 # take no chances and rewrite it. 25042 # Note: m4 eats our [], so we need to use [ and ] instead. 25043 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25044 if test "x$has_forbidden_chars" != x; then 25045 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25046 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25047 fi 25048 25049 25050 windows_path="$new_path" 25051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25052 unix_path=`$CYGPATH -u "$windows_path"` 25053 new_path="$unix_path" 25054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25056 new_path="$unix_path" 25057 fi 25058 25059 if test "x$path" != "x$new_path"; then 25060 BOOT_JDK="$new_path" 25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25062 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25063 fi 25064 25065 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25066 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25067 25068 else 25069 # We're on a unix platform. Hooray! :) 25070 path="$BOOT_JDK" 25071 has_space=`$ECHO "$path" | $GREP " "` 25072 if test "x$has_space" != x; then 25073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25074 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25075 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25076 fi 25077 25078 # Use eval to expand a potential ~ 25079 eval path="$path" 25080 if test ! -f "$path" && test ! -d "$path"; then 25081 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25082 fi 25083 25084 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25085 fi 25086 fi 25087 25088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25089 $as_echo_n "checking for Boot JDK... " >&6; } 25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25091 $as_echo "$BOOT_JDK" >&6; } 25092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25093 $as_echo_n "checking Boot JDK version... " >&6; } 25094 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25096 $as_echo "$BOOT_JDK_VERSION" >&6; } 25097 fi # end check jdk version 25098 fi # end check javac 25099 fi # end check java 25100 fi # end check boot jdk found 25101 fi 25102 25103 done 25104 fi 25105 25106 25107 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25108 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25109 # Do we have a bin/java? 25110 if test ! -x "$BOOT_JDK/bin/java"; then 25111 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25113 BOOT_JDK_FOUND=no 25114 else 25115 # Do we have a bin/javac? 25116 if test ! -x "$BOOT_JDK/bin/javac"; then 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25119 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25120 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25121 BOOT_JDK_FOUND=no 25122 else 25123 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25124 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25125 25126 # Extra M4 quote needed to protect [] in grep expression. 25127 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25128 if test "x$FOUND_CORRECT_VERSION" = x; then 25129 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25130 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25131 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25132 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25133 BOOT_JDK_FOUND=no 25134 else 25135 # We're done! :-) 25136 BOOT_JDK_FOUND=yes 25137 25138 # Only process if variable expands to non-empty 25139 25140 if test "x$BOOT_JDK" != x; then 25141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25142 25143 # Input might be given as Windows format, start by converting to 25144 # unix format. 25145 path="$BOOT_JDK" 25146 new_path=`$CYGPATH -u "$path"` 25147 25148 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25149 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25150 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25151 # "foo.exe" is OK but "foo" is an error. 25152 # 25153 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25154 # It is also a way to make sure we got the proper file name for the real test later on. 25155 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25156 if test "x$test_shortpath" = x; then 25157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25158 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25159 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25160 fi 25161 25162 # Call helper function which possibly converts this using DOS-style short mode. 25163 # If so, the updated path is stored in $new_path. 25164 25165 input_path="$new_path" 25166 # Check if we need to convert this using DOS-style short mode. If the path 25167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25168 # take no chances and rewrite it. 25169 # Note: m4 eats our [], so we need to use [ and ] instead. 25170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25171 if test "x$has_forbidden_chars" != x; then 25172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25173 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25174 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25175 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25176 # Going to short mode and back again did indeed matter. Since short mode is 25177 # case insensitive, let's make it lowercase to improve readability. 25178 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25179 # Now convert it back to Unix-style (cygpath) 25180 input_path=`$CYGPATH -u "$shortmode_path"` 25181 new_path="$input_path" 25182 fi 25183 fi 25184 25185 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25186 if test "x$test_cygdrive_prefix" = x; then 25187 # As a simple fix, exclude /usr/bin since it's not a real path. 25188 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25189 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25190 # a path prefixed by /cygdrive for fixpath to work. 25191 new_path="$CYGWIN_ROOT_PATH$input_path" 25192 fi 25193 fi 25194 25195 25196 if test "x$path" != "x$new_path"; then 25197 BOOT_JDK="$new_path" 25198 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25199 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25200 fi 25201 25202 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25203 25204 path="$BOOT_JDK" 25205 has_colon=`$ECHO $path | $GREP ^.:` 25206 new_path="$path" 25207 if test "x$has_colon" = x; then 25208 # Not in mixed or Windows style, start by that. 25209 new_path=`cmd //c echo $path` 25210 fi 25211 25212 25213 input_path="$new_path" 25214 # Check if we need to convert this using DOS-style short mode. If the path 25215 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25216 # take no chances and rewrite it. 25217 # Note: m4 eats our [], so we need to use [ and ] instead. 25218 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25219 if test "x$has_forbidden_chars" != x; then 25220 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25221 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25222 fi 25223 25224 25225 windows_path="$new_path" 25226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25227 unix_path=`$CYGPATH -u "$windows_path"` 25228 new_path="$unix_path" 25229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25231 new_path="$unix_path" 25232 fi 25233 25234 if test "x$path" != "x$new_path"; then 25235 BOOT_JDK="$new_path" 25236 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25237 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25238 fi 25239 25240 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25241 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25242 25243 else 25244 # We're on a unix platform. Hooray! :) 25245 path="$BOOT_JDK" 25246 has_space=`$ECHO "$path" | $GREP " "` 25247 if test "x$has_space" != x; then 25248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25249 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25250 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25251 fi 25252 25253 # Use eval to expand a potential ~ 25254 eval path="$path" 25255 if test ! -f "$path" && test ! -d "$path"; then 25256 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25257 fi 25258 25259 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25260 fi 25261 fi 25262 25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25264 $as_echo_n "checking for Boot JDK... " >&6; } 25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25266 $as_echo "$BOOT_JDK" >&6; } 25267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25268 $as_echo_n "checking Boot JDK version... " >&6; } 25269 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25271 $as_echo "$BOOT_JDK_VERSION" >&6; } 25272 fi # end check jdk version 25273 fi # end check javac 25274 fi # end check java 25275 fi # end check boot jdk found 25276 fi 25277 25278 25279 if test "x$BOOT_JDK_FOUND" = xno; then 25280 # Now execute the test 25281 25282 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 25283 BOOT_JDK_SUFFIX="/Contents/Home" 25284 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25285 if test "x$ALL_JDKS_FOUND" != x; then 25286 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25287 25288 if test "x$BOOT_JDK_FOUND" = xno; then 25289 # Now execute the test 25290 25291 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25292 if test -d "$BOOT_JDK"; then 25293 BOOT_JDK_FOUND=maybe 25294 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25295 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25296 fi 25297 25298 25299 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25300 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25301 # Do we have a bin/java? 25302 if test ! -x "$BOOT_JDK/bin/java"; then 25303 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25304 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25305 BOOT_JDK_FOUND=no 25306 else 25307 # Do we have a bin/javac? 25308 if test ! -x "$BOOT_JDK/bin/javac"; then 25309 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25310 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25311 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25312 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25313 BOOT_JDK_FOUND=no 25314 else 25315 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25316 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25317 25318 # Extra M4 quote needed to protect [] in grep expression. 25319 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25320 if test "x$FOUND_CORRECT_VERSION" = x; then 25321 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25323 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25324 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25325 BOOT_JDK_FOUND=no 25326 else 25327 # We're done! :-) 25328 BOOT_JDK_FOUND=yes 25329 25330 # Only process if variable expands to non-empty 25331 25332 if test "x$BOOT_JDK" != x; then 25333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25334 25335 # Input might be given as Windows format, start by converting to 25336 # unix format. 25337 path="$BOOT_JDK" 25338 new_path=`$CYGPATH -u "$path"` 25339 25340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25343 # "foo.exe" is OK but "foo" is an error. 25344 # 25345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25346 # It is also a way to make sure we got the proper file name for the real test later on. 25347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25348 if test "x$test_shortpath" = x; then 25349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25350 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25351 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25352 fi 25353 25354 # Call helper function which possibly converts this using DOS-style short mode. 25355 # If so, the updated path is stored in $new_path. 25356 25357 input_path="$new_path" 25358 # Check if we need to convert this using DOS-style short mode. If the path 25359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25360 # take no chances and rewrite it. 25361 # Note: m4 eats our [], so we need to use [ and ] instead. 25362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25363 if test "x$has_forbidden_chars" != x; then 25364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25368 # Going to short mode and back again did indeed matter. Since short mode is 25369 # case insensitive, let's make it lowercase to improve readability. 25370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25371 # Now convert it back to Unix-style (cygpath) 25372 input_path=`$CYGPATH -u "$shortmode_path"` 25373 new_path="$input_path" 25374 fi 25375 fi 25376 25377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25378 if test "x$test_cygdrive_prefix" = x; then 25379 # As a simple fix, exclude /usr/bin since it's not a real path. 25380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25382 # a path prefixed by /cygdrive for fixpath to work. 25383 new_path="$CYGWIN_ROOT_PATH$input_path" 25384 fi 25385 fi 25386 25387 25388 if test "x$path" != "x$new_path"; then 25389 BOOT_JDK="$new_path" 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25391 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25392 fi 25393 25394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25395 25396 path="$BOOT_JDK" 25397 has_colon=`$ECHO $path | $GREP ^.:` 25398 new_path="$path" 25399 if test "x$has_colon" = x; then 25400 # Not in mixed or Windows style, start by that. 25401 new_path=`cmd //c echo $path` 25402 fi 25403 25404 25405 input_path="$new_path" 25406 # Check if we need to convert this using DOS-style short mode. If the path 25407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25408 # take no chances and rewrite it. 25409 # Note: m4 eats our [], so we need to use [ and ] instead. 25410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25411 if test "x$has_forbidden_chars" != x; then 25412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25414 fi 25415 25416 25417 windows_path="$new_path" 25418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25419 unix_path=`$CYGPATH -u "$windows_path"` 25420 new_path="$unix_path" 25421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25423 new_path="$unix_path" 25424 fi 25425 25426 if test "x$path" != "x$new_path"; then 25427 BOOT_JDK="$new_path" 25428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25429 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25430 fi 25431 25432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25434 25435 else 25436 # We're on a unix platform. Hooray! :) 25437 path="$BOOT_JDK" 25438 has_space=`$ECHO "$path" | $GREP " "` 25439 if test "x$has_space" != x; then 25440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25441 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25442 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25443 fi 25444 25445 # Use eval to expand a potential ~ 25446 eval path="$path" 25447 if test ! -f "$path" && test ! -d "$path"; then 25448 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25449 fi 25450 25451 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25452 fi 25453 fi 25454 25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25456 $as_echo_n "checking for Boot JDK... " >&6; } 25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25458 $as_echo "$BOOT_JDK" >&6; } 25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25460 $as_echo_n "checking Boot JDK version... " >&6; } 25461 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25463 $as_echo "$BOOT_JDK_VERSION" >&6; } 25464 fi # end check jdk version 25465 fi # end check javac 25466 fi # end check java 25467 fi # end check boot jdk found 25468 fi 25469 25470 done 25471 fi 25472 25473 25474 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25475 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25476 # Do we have a bin/java? 25477 if test ! -x "$BOOT_JDK/bin/java"; then 25478 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25479 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25480 BOOT_JDK_FOUND=no 25481 else 25482 # Do we have a bin/javac? 25483 if test ! -x "$BOOT_JDK/bin/javac"; then 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25486 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25487 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25488 BOOT_JDK_FOUND=no 25489 else 25490 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25491 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25492 25493 # Extra M4 quote needed to protect [] in grep expression. 25494 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25495 if test "x$FOUND_CORRECT_VERSION" = x; then 25496 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25497 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25498 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25499 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25500 BOOT_JDK_FOUND=no 25501 else 25502 # We're done! :-) 25503 BOOT_JDK_FOUND=yes 25504 25505 # Only process if variable expands to non-empty 25506 25507 if test "x$BOOT_JDK" != x; then 25508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25509 25510 # Input might be given as Windows format, start by converting to 25511 # unix format. 25512 path="$BOOT_JDK" 25513 new_path=`$CYGPATH -u "$path"` 25514 25515 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25516 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25517 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25518 # "foo.exe" is OK but "foo" is an error. 25519 # 25520 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25521 # It is also a way to make sure we got the proper file name for the real test later on. 25522 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25523 if test "x$test_shortpath" = x; then 25524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25525 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25526 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25527 fi 25528 25529 # Call helper function which possibly converts this using DOS-style short mode. 25530 # If so, the updated path is stored in $new_path. 25531 25532 input_path="$new_path" 25533 # Check if we need to convert this using DOS-style short mode. If the path 25534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25535 # take no chances and rewrite it. 25536 # Note: m4 eats our [], so we need to use [ and ] instead. 25537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25538 if test "x$has_forbidden_chars" != x; then 25539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25543 # Going to short mode and back again did indeed matter. Since short mode is 25544 # case insensitive, let's make it lowercase to improve readability. 25545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25546 # Now convert it back to Unix-style (cygpath) 25547 input_path=`$CYGPATH -u "$shortmode_path"` 25548 new_path="$input_path" 25549 fi 25550 fi 25551 25552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25553 if test "x$test_cygdrive_prefix" = x; then 25554 # As a simple fix, exclude /usr/bin since it's not a real path. 25555 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25557 # a path prefixed by /cygdrive for fixpath to work. 25558 new_path="$CYGWIN_ROOT_PATH$input_path" 25559 fi 25560 fi 25561 25562 25563 if test "x$path" != "x$new_path"; then 25564 BOOT_JDK="$new_path" 25565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25566 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25567 fi 25568 25569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25570 25571 path="$BOOT_JDK" 25572 has_colon=`$ECHO $path | $GREP ^.:` 25573 new_path="$path" 25574 if test "x$has_colon" = x; then 25575 # Not in mixed or Windows style, start by that. 25576 new_path=`cmd //c echo $path` 25577 fi 25578 25579 25580 input_path="$new_path" 25581 # Check if we need to convert this using DOS-style short mode. If the path 25582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25583 # take no chances and rewrite it. 25584 # Note: m4 eats our [], so we need to use [ and ] instead. 25585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25586 if test "x$has_forbidden_chars" != x; then 25587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25588 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25589 fi 25590 25591 25592 windows_path="$new_path" 25593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25594 unix_path=`$CYGPATH -u "$windows_path"` 25595 new_path="$unix_path" 25596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25598 new_path="$unix_path" 25599 fi 25600 25601 if test "x$path" != "x$new_path"; then 25602 BOOT_JDK="$new_path" 25603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25604 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25605 fi 25606 25607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25609 25610 else 25611 # We're on a unix platform. Hooray! :) 25612 path="$BOOT_JDK" 25613 has_space=`$ECHO "$path" | $GREP " "` 25614 if test "x$has_space" != x; then 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25616 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25617 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25618 fi 25619 25620 # Use eval to expand a potential ~ 25621 eval path="$path" 25622 if test ! -f "$path" && test ! -d "$path"; then 25623 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25624 fi 25625 25626 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25627 fi 25628 fi 25629 25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25631 $as_echo_n "checking for Boot JDK... " >&6; } 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25633 $as_echo "$BOOT_JDK" >&6; } 25634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25635 $as_echo_n "checking Boot JDK version... " >&6; } 25636 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25638 $as_echo "$BOOT_JDK_VERSION" >&6; } 25639 fi # end check jdk version 25640 fi # end check javac 25641 fi # end check java 25642 fi # end check boot jdk found 25643 fi 25644 25645 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 25646 25647 if test "x$BOOT_JDK_FOUND" = xno; then 25648 # Now execute the test 25649 25650 BOOT_JDK_PREFIX="/usr/lib/jvm" 25651 BOOT_JDK_SUFFIX="" 25652 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 25653 if test "x$ALL_JDKS_FOUND" != x; then 25654 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 25655 25656 if test "x$BOOT_JDK_FOUND" = xno; then 25657 # Now execute the test 25658 25659 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 25660 if test -d "$BOOT_JDK"; then 25661 BOOT_JDK_FOUND=maybe 25662 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 25663 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 25664 fi 25665 25666 25667 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25668 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25669 # Do we have a bin/java? 25670 if test ! -x "$BOOT_JDK/bin/java"; then 25671 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25672 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25673 BOOT_JDK_FOUND=no 25674 else 25675 # Do we have a bin/javac? 25676 if test ! -x "$BOOT_JDK/bin/javac"; then 25677 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25679 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25680 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25681 BOOT_JDK_FOUND=no 25682 else 25683 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25684 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25685 25686 # Extra M4 quote needed to protect [] in grep expression. 25687 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25688 if test "x$FOUND_CORRECT_VERSION" = x; then 25689 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25690 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25691 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25692 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25693 BOOT_JDK_FOUND=no 25694 else 25695 # We're done! :-) 25696 BOOT_JDK_FOUND=yes 25697 25698 # Only process if variable expands to non-empty 25699 25700 if test "x$BOOT_JDK" != x; then 25701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25702 25703 # Input might be given as Windows format, start by converting to 25704 # unix format. 25705 path="$BOOT_JDK" 25706 new_path=`$CYGPATH -u "$path"` 25707 25708 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25709 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25710 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25711 # "foo.exe" is OK but "foo" is an error. 25712 # 25713 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25714 # It is also a way to make sure we got the proper file name for the real test later on. 25715 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25716 if test "x$test_shortpath" = x; then 25717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25718 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25719 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25720 fi 25721 25722 # Call helper function which possibly converts this using DOS-style short mode. 25723 # If so, the updated path is stored in $new_path. 25724 25725 input_path="$new_path" 25726 # Check if we need to convert this using DOS-style short mode. If the path 25727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25728 # take no chances and rewrite it. 25729 # Note: m4 eats our [], so we need to use [ and ] instead. 25730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25731 if test "x$has_forbidden_chars" != x; then 25732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25733 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25734 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25735 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25736 # Going to short mode and back again did indeed matter. Since short mode is 25737 # case insensitive, let's make it lowercase to improve readability. 25738 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25739 # Now convert it back to Unix-style (cygpath) 25740 input_path=`$CYGPATH -u "$shortmode_path"` 25741 new_path="$input_path" 25742 fi 25743 fi 25744 25745 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25746 if test "x$test_cygdrive_prefix" = x; then 25747 # As a simple fix, exclude /usr/bin since it's not a real path. 25748 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25749 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25750 # a path prefixed by /cygdrive for fixpath to work. 25751 new_path="$CYGWIN_ROOT_PATH$input_path" 25752 fi 25753 fi 25754 25755 25756 if test "x$path" != "x$new_path"; then 25757 BOOT_JDK="$new_path" 25758 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25759 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25760 fi 25761 25762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25763 25764 path="$BOOT_JDK" 25765 has_colon=`$ECHO $path | $GREP ^.:` 25766 new_path="$path" 25767 if test "x$has_colon" = x; then 25768 # Not in mixed or Windows style, start by that. 25769 new_path=`cmd //c echo $path` 25770 fi 25771 25772 25773 input_path="$new_path" 25774 # Check if we need to convert this using DOS-style short mode. If the path 25775 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25776 # take no chances and rewrite it. 25777 # Note: m4 eats our [], so we need to use [ and ] instead. 25778 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25779 if test "x$has_forbidden_chars" != x; then 25780 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25781 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25782 fi 25783 25784 25785 windows_path="$new_path" 25786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25787 unix_path=`$CYGPATH -u "$windows_path"` 25788 new_path="$unix_path" 25789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25791 new_path="$unix_path" 25792 fi 25793 25794 if test "x$path" != "x$new_path"; then 25795 BOOT_JDK="$new_path" 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25797 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25798 fi 25799 25800 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25801 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25802 25803 else 25804 # We're on a unix platform. Hooray! :) 25805 path="$BOOT_JDK" 25806 has_space=`$ECHO "$path" | $GREP " "` 25807 if test "x$has_space" != x; then 25808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25809 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25810 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25811 fi 25812 25813 # Use eval to expand a potential ~ 25814 eval path="$path" 25815 if test ! -f "$path" && test ! -d "$path"; then 25816 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25817 fi 25818 25819 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25820 fi 25821 fi 25822 25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25824 $as_echo_n "checking for Boot JDK... " >&6; } 25825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25826 $as_echo "$BOOT_JDK" >&6; } 25827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25828 $as_echo_n "checking Boot JDK version... " >&6; } 25829 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25831 $as_echo "$BOOT_JDK_VERSION" >&6; } 25832 fi # end check jdk version 25833 fi # end check javac 25834 fi # end check java 25835 fi # end check boot jdk found 25836 fi 25837 25838 done 25839 fi 25840 25841 25842 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25843 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25844 # Do we have a bin/java? 25845 if test ! -x "$BOOT_JDK/bin/java"; then 25846 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25847 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25848 BOOT_JDK_FOUND=no 25849 else 25850 # Do we have a bin/javac? 25851 if test ! -x "$BOOT_JDK/bin/javac"; then 25852 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25855 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25856 BOOT_JDK_FOUND=no 25857 else 25858 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25859 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25860 25861 # Extra M4 quote needed to protect [] in grep expression. 25862 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25863 if test "x$FOUND_CORRECT_VERSION" = x; then 25864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25866 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25867 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25868 BOOT_JDK_FOUND=no 25869 else 25870 # We're done! :-) 25871 BOOT_JDK_FOUND=yes 25872 25873 # Only process if variable expands to non-empty 25874 25875 if test "x$BOOT_JDK" != x; then 25876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25877 25878 # Input might be given as Windows format, start by converting to 25879 # unix format. 25880 path="$BOOT_JDK" 25881 new_path=`$CYGPATH -u "$path"` 25882 25883 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25884 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25885 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25886 # "foo.exe" is OK but "foo" is an error. 25887 # 25888 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25889 # It is also a way to make sure we got the proper file name for the real test later on. 25890 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25891 if test "x$test_shortpath" = x; then 25892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25893 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25894 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25895 fi 25896 25897 # Call helper function which possibly converts this using DOS-style short mode. 25898 # If so, the updated path is stored in $new_path. 25899 25900 input_path="$new_path" 25901 # Check if we need to convert this using DOS-style short mode. If the path 25902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25903 # take no chances and rewrite it. 25904 # Note: m4 eats our [], so we need to use [ and ] instead. 25905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25906 if test "x$has_forbidden_chars" != x; then 25907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25908 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25909 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25910 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25911 # Going to short mode and back again did indeed matter. Since short mode is 25912 # case insensitive, let's make it lowercase to improve readability. 25913 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25914 # Now convert it back to Unix-style (cygpath) 25915 input_path=`$CYGPATH -u "$shortmode_path"` 25916 new_path="$input_path" 25917 fi 25918 fi 25919 25920 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25921 if test "x$test_cygdrive_prefix" = x; then 25922 # As a simple fix, exclude /usr/bin since it's not a real path. 25923 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25924 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25925 # a path prefixed by /cygdrive for fixpath to work. 25926 new_path="$CYGWIN_ROOT_PATH$input_path" 25927 fi 25928 fi 25929 25930 25931 if test "x$path" != "x$new_path"; then 25932 BOOT_JDK="$new_path" 25933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25934 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25935 fi 25936 25937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25938 25939 path="$BOOT_JDK" 25940 has_colon=`$ECHO $path | $GREP ^.:` 25941 new_path="$path" 25942 if test "x$has_colon" = x; then 25943 # Not in mixed or Windows style, start by that. 25944 new_path=`cmd //c echo $path` 25945 fi 25946 25947 25948 input_path="$new_path" 25949 # Check if we need to convert this using DOS-style short mode. If the path 25950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25951 # take no chances and rewrite it. 25952 # Note: m4 eats our [], so we need to use [ and ] instead. 25953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25954 if test "x$has_forbidden_chars" != x; then 25955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25957 fi 25958 25959 25960 windows_path="$new_path" 25961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25962 unix_path=`$CYGPATH -u "$windows_path"` 25963 new_path="$unix_path" 25964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25966 new_path="$unix_path" 25967 fi 25968 25969 if test "x$path" != "x$new_path"; then 25970 BOOT_JDK="$new_path" 25971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25972 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25973 fi 25974 25975 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25976 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25977 25978 else 25979 # We're on a unix platform. Hooray! :) 25980 path="$BOOT_JDK" 25981 has_space=`$ECHO "$path" | $GREP " "` 25982 if test "x$has_space" != x; then 25983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25984 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25985 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25986 fi 25987 25988 # Use eval to expand a potential ~ 25989 eval path="$path" 25990 if test ! -f "$path" && test ! -d "$path"; then 25991 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25992 fi 25993 25994 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25995 fi 25996 fi 25997 25998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25999 $as_echo_n "checking for Boot JDK... " >&6; } 26000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26001 $as_echo "$BOOT_JDK" >&6; } 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26003 $as_echo_n "checking Boot JDK version... " >&6; } 26004 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26006 $as_echo "$BOOT_JDK_VERSION" >&6; } 26007 fi # end check jdk version 26008 fi # end check javac 26009 fi # end check java 26010 fi # end check boot jdk found 26011 fi 26012 26013 fi 26014 26015 26016 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26017 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26018 # Do we have a bin/java? 26019 if test ! -x "$BOOT_JDK/bin/java"; then 26020 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26021 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26022 BOOT_JDK_FOUND=no 26023 else 26024 # Do we have a bin/javac? 26025 if test ! -x "$BOOT_JDK/bin/javac"; then 26026 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26027 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26028 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26029 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26030 BOOT_JDK_FOUND=no 26031 else 26032 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26033 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 26034 26035 # Extra M4 quote needed to protect [] in grep expression. 26036 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 26037 if test "x$FOUND_CORRECT_VERSION" = x; then 26038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26040 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 26041 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 26042 BOOT_JDK_FOUND=no 26043 else 26044 # We're done! :-) 26045 BOOT_JDK_FOUND=yes 26046 26047 # Only process if variable expands to non-empty 26048 26049 if test "x$BOOT_JDK" != x; then 26050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26051 26052 # Input might be given as Windows format, start by converting to 26053 # unix format. 26054 path="$BOOT_JDK" 26055 new_path=`$CYGPATH -u "$path"` 26056 26057 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26058 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26059 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26060 # "foo.exe" is OK but "foo" is an error. 26061 # 26062 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26063 # It is also a way to make sure we got the proper file name for the real test later on. 26064 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26065 if test "x$test_shortpath" = x; then 26066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26067 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26068 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26069 fi 26070 26071 # Call helper function which possibly converts this using DOS-style short mode. 26072 # If so, the updated path is stored in $new_path. 26073 26074 input_path="$new_path" 26075 # Check if we need to convert this using DOS-style short mode. If the path 26076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26077 # take no chances and rewrite it. 26078 # Note: m4 eats our [], so we need to use [ and ] instead. 26079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26080 if test "x$has_forbidden_chars" != x; then 26081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26082 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26083 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26084 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26085 # Going to short mode and back again did indeed matter. Since short mode is 26086 # case insensitive, let's make it lowercase to improve readability. 26087 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26088 # Now convert it back to Unix-style (cygpath) 26089 input_path=`$CYGPATH -u "$shortmode_path"` 26090 new_path="$input_path" 26091 fi 26092 fi 26093 26094 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26095 if test "x$test_cygdrive_prefix" = x; then 26096 # As a simple fix, exclude /usr/bin since it's not a real path. 26097 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26098 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26099 # a path prefixed by /cygdrive for fixpath to work. 26100 new_path="$CYGWIN_ROOT_PATH$input_path" 26101 fi 26102 fi 26103 26104 26105 if test "x$path" != "x$new_path"; then 26106 BOOT_JDK="$new_path" 26107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26108 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26109 fi 26110 26111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26112 26113 path="$BOOT_JDK" 26114 has_colon=`$ECHO $path | $GREP ^.:` 26115 new_path="$path" 26116 if test "x$has_colon" = x; then 26117 # Not in mixed or Windows style, start by that. 26118 new_path=`cmd //c echo $path` 26119 fi 26120 26121 26122 input_path="$new_path" 26123 # Check if we need to convert this using DOS-style short mode. If the path 26124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26125 # take no chances and rewrite it. 26126 # Note: m4 eats our [], so we need to use [ and ] instead. 26127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26128 if test "x$has_forbidden_chars" != x; then 26129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26130 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26131 fi 26132 26133 26134 windows_path="$new_path" 26135 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26136 unix_path=`$CYGPATH -u "$windows_path"` 26137 new_path="$unix_path" 26138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26139 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26140 new_path="$unix_path" 26141 fi 26142 26143 if test "x$path" != "x$new_path"; then 26144 BOOT_JDK="$new_path" 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26146 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26147 fi 26148 26149 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26150 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26151 26152 else 26153 # We're on a unix platform. Hooray! :) 26154 path="$BOOT_JDK" 26155 has_space=`$ECHO "$path" | $GREP " "` 26156 if test "x$has_space" != x; then 26157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26158 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26159 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26160 fi 26161 26162 # Use eval to expand a potential ~ 26163 eval path="$path" 26164 if test ! -f "$path" && test ! -d "$path"; then 26165 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26166 fi 26167 26168 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26169 fi 26170 fi 26171 26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26173 $as_echo_n "checking for Boot JDK... " >&6; } 26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26175 $as_echo "$BOOT_JDK" >&6; } 26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26177 $as_echo_n "checking Boot JDK version... " >&6; } 26178 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26180 $as_echo "$BOOT_JDK_VERSION" >&6; } 26181 fi # end check jdk version 26182 fi # end check javac 26183 fi # end check java 26184 fi # end check boot jdk found 26185 fi 26186 26187 26188 # If we haven't found anything yet, we've truly lost. Give up. 26189 if test "x$BOOT_JDK_FOUND" = xno; then 26190 26191 # Print a helpful message on how to acquire the necessary build dependency. 26192 # openjdk is the help tag: freetype, cups, alsa etc 26193 MISSING_DEPENDENCY=openjdk 26194 26195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26196 cygwin_help $MISSING_DEPENDENCY 26197 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26198 msys_help $MISSING_DEPENDENCY 26199 else 26200 PKGHANDLER_COMMAND= 26201 26202 case $PKGHANDLER in 26203 apt-get) 26204 apt_help $MISSING_DEPENDENCY ;; 26205 yum) 26206 yum_help $MISSING_DEPENDENCY ;; 26207 port) 26208 port_help $MISSING_DEPENDENCY ;; 26209 pkgutil) 26210 pkgutil_help $MISSING_DEPENDENCY ;; 26211 pkgadd) 26212 pkgadd_help $MISSING_DEPENDENCY ;; 26213 esac 26214 26215 if test "x$PKGHANDLER_COMMAND" != x; then 26216 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 26217 fi 26218 fi 26219 26220 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 26221 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 26222 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 26223 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26224 as_fn_error $? "Cannot continue" "$LINENO" 5 26225 fi 26226 26227 26228 26229 # Setup tools from the Boot JDK. 26230 26231 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26232 26233 # Publish this variable in the help. 26234 26235 26236 if [ -z "${JAVA+x}" ]; then 26237 # The variable is not set by user, try to locate tool using the code snippet 26238 26239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 26240 $as_echo_n "checking for java in Boot JDK... " >&6; } 26241 JAVA=$BOOT_JDK/bin/java 26242 if test ! -x $JAVA; then 26243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26244 $as_echo "not found" >&6; } 26245 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26246 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26247 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 26248 fi 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26250 $as_echo "ok" >&6; } 26251 26252 26253 else 26254 # The variable is set, but is it from the command line or the environment? 26255 26256 # Try to remove the string !JAVA! from our list. 26257 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 26258 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26259 # If it failed, the variable was not from the command line. Ignore it, 26260 # but warn the user (except for BASH, which is always set by the calling BASH). 26261 if test "xJAVA" != xBASH; then 26262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 26263 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 26264 fi 26265 # Try to locate tool using the code snippet 26266 26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 26268 $as_echo_n "checking for java in Boot JDK... " >&6; } 26269 JAVA=$BOOT_JDK/bin/java 26270 if test ! -x $JAVA; then 26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26272 $as_echo "not found" >&6; } 26273 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26274 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26275 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 26276 fi 26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26278 $as_echo "ok" >&6; } 26279 26280 26281 else 26282 # If it succeeded, then it was overridden by the user. We will use it 26283 # for the tool. 26284 26285 # First remove it from the list of overridden variables, so we can test 26286 # for unknown variables in the end. 26287 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26288 26289 # Check if we try to supply an empty value 26290 if test "x$JAVA" = x; then 26291 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 26292 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 26293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 26294 $as_echo_n "checking for JAVA... " >&6; } 26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 26296 $as_echo "disabled" >&6; } 26297 else 26298 # Check if the provided tool contains a complete path. 26299 tool_specified="$JAVA" 26300 tool_basename="${tool_specified##*/}" 26301 if test "x$tool_basename" = "x$tool_specified"; then 26302 # A command without a complete path is provided, search $PATH. 26303 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 26304 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 26305 # Extract the first word of "$tool_basename", so it can be a program name with args. 26306 set dummy $tool_basename; ac_word=$2 26307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26308 $as_echo_n "checking for $ac_word... " >&6; } 26309 if ${ac_cv_path_JAVA+:} false; then : 26310 $as_echo_n "(cached) " >&6 26311 else 26312 case $JAVA in 26313 [\\/]* | ?:[\\/]*) 26314 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 26315 ;; 26316 *) 26317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26318 for as_dir in $PATH 26319 do 26320 IFS=$as_save_IFS 26321 test -z "$as_dir" && as_dir=. 26322 for ac_exec_ext in '' $ac_executable_extensions; do 26323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26324 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 26325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26326 break 2 26327 fi 26328 done 26329 done 26330 IFS=$as_save_IFS 26331 26332 ;; 26333 esac 26334 fi 26335 JAVA=$ac_cv_path_JAVA 26336 if test -n "$JAVA"; then 26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 26338 $as_echo "$JAVA" >&6; } 26339 else 26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26341 $as_echo "no" >&6; } 26342 fi 26343 26344 26345 if test "x$JAVA" = x; then 26346 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26347 fi 26348 else 26349 # Otherwise we believe it is a complete path. Use it as it is. 26350 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 26351 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 26352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 26353 $as_echo_n "checking for JAVA... " >&6; } 26354 if test ! -x "$tool_specified"; then 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26356 $as_echo "not found" >&6; } 26357 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 26358 fi 26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26360 $as_echo "$tool_specified" >&6; } 26361 fi 26362 fi 26363 fi 26364 fi 26365 26366 26367 26368 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26369 26370 # Publish this variable in the help. 26371 26372 26373 if [ -z "${JAVAC+x}" ]; then 26374 # The variable is not set by user, try to locate tool using the code snippet 26375 26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 26377 $as_echo_n "checking for javac in Boot JDK... " >&6; } 26378 JAVAC=$BOOT_JDK/bin/javac 26379 if test ! -x $JAVAC; then 26380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26381 $as_echo "not found" >&6; } 26382 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26383 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26384 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 26385 fi 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26387 $as_echo "ok" >&6; } 26388 26389 26390 else 26391 # The variable is set, but is it from the command line or the environment? 26392 26393 # Try to remove the string !JAVAC! from our list. 26394 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 26395 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26396 # If it failed, the variable was not from the command line. Ignore it, 26397 # but warn the user (except for BASH, which is always set by the calling BASH). 26398 if test "xJAVAC" != xBASH; then 26399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 26400 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 26401 fi 26402 # Try to locate tool using the code snippet 26403 26404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 26405 $as_echo_n "checking for javac in Boot JDK... " >&6; } 26406 JAVAC=$BOOT_JDK/bin/javac 26407 if test ! -x $JAVAC; then 26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26409 $as_echo "not found" >&6; } 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26411 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26412 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 26413 fi 26414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26415 $as_echo "ok" >&6; } 26416 26417 26418 else 26419 # If it succeeded, then it was overridden by the user. We will use it 26420 # for the tool. 26421 26422 # First remove it from the list of overridden variables, so we can test 26423 # for unknown variables in the end. 26424 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26425 26426 # Check if we try to supply an empty value 26427 if test "x$JAVAC" = x; then 26428 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 26429 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 26430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 26431 $as_echo_n "checking for JAVAC... " >&6; } 26432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 26433 $as_echo "disabled" >&6; } 26434 else 26435 # Check if the provided tool contains a complete path. 26436 tool_specified="$JAVAC" 26437 tool_basename="${tool_specified##*/}" 26438 if test "x$tool_basename" = "x$tool_specified"; then 26439 # A command without a complete path is provided, search $PATH. 26440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 26441 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 26442 # Extract the first word of "$tool_basename", so it can be a program name with args. 26443 set dummy $tool_basename; ac_word=$2 26444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26445 $as_echo_n "checking for $ac_word... " >&6; } 26446 if ${ac_cv_path_JAVAC+:} false; then : 26447 $as_echo_n "(cached) " >&6 26448 else 26449 case $JAVAC in 26450 [\\/]* | ?:[\\/]*) 26451 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 26452 ;; 26453 *) 26454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26455 for as_dir in $PATH 26456 do 26457 IFS=$as_save_IFS 26458 test -z "$as_dir" && as_dir=. 26459 for ac_exec_ext in '' $ac_executable_extensions; do 26460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26461 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 26462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26463 break 2 26464 fi 26465 done 26466 done 26467 IFS=$as_save_IFS 26468 26469 ;; 26470 esac 26471 fi 26472 JAVAC=$ac_cv_path_JAVAC 26473 if test -n "$JAVAC"; then 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 26475 $as_echo "$JAVAC" >&6; } 26476 else 26477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26478 $as_echo "no" >&6; } 26479 fi 26480 26481 26482 if test "x$JAVAC" = x; then 26483 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26484 fi 26485 else 26486 # Otherwise we believe it is a complete path. Use it as it is. 26487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 26488 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 26490 $as_echo_n "checking for JAVAC... " >&6; } 26491 if test ! -x "$tool_specified"; then 26492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26493 $as_echo "not found" >&6; } 26494 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 26495 fi 26496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26497 $as_echo "$tool_specified" >&6; } 26498 fi 26499 fi 26500 fi 26501 fi 26502 26503 26504 26505 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26506 26507 # Publish this variable in the help. 26508 26509 26510 if [ -z "${JAVAH+x}" ]; then 26511 # The variable is not set by user, try to locate tool using the code snippet 26512 26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 26514 $as_echo_n "checking for javah in Boot JDK... " >&6; } 26515 JAVAH=$BOOT_JDK/bin/javah 26516 if test ! -x $JAVAH; then 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26518 $as_echo "not found" >&6; } 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26520 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26521 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 26522 fi 26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26524 $as_echo "ok" >&6; } 26525 26526 26527 else 26528 # The variable is set, but is it from the command line or the environment? 26529 26530 # Try to remove the string !JAVAH! from our list. 26531 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 26532 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26533 # If it failed, the variable was not from the command line. Ignore it, 26534 # but warn the user (except for BASH, which is always set by the calling BASH). 26535 if test "xJAVAH" != xBASH; then 26536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 26537 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 26538 fi 26539 # Try to locate tool using the code snippet 26540 26541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 26542 $as_echo_n "checking for javah in Boot JDK... " >&6; } 26543 JAVAH=$BOOT_JDK/bin/javah 26544 if test ! -x $JAVAH; then 26545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26546 $as_echo "not found" >&6; } 26547 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26548 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26549 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 26550 fi 26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26552 $as_echo "ok" >&6; } 26553 26554 26555 else 26556 # If it succeeded, then it was overridden by the user. We will use it 26557 # for the tool. 26558 26559 # First remove it from the list of overridden variables, so we can test 26560 # for unknown variables in the end. 26561 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26562 26563 # Check if we try to supply an empty value 26564 if test "x$JAVAH" = x; then 26565 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAH= (no value)" >&5 26566 $as_echo "$as_me: Setting user supplied tool JAVAH= (no value)" >&6;} 26567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 26568 $as_echo_n "checking for JAVAH... " >&6; } 26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 26570 $as_echo "disabled" >&6; } 26571 else 26572 # Check if the provided tool contains a complete path. 26573 tool_specified="$JAVAH" 26574 tool_basename="${tool_specified##*/}" 26575 if test "x$tool_basename" = "x$tool_specified"; then 26576 # A command without a complete path is provided, search $PATH. 26577 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 26578 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 26579 # Extract the first word of "$tool_basename", so it can be a program name with args. 26580 set dummy $tool_basename; ac_word=$2 26581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26582 $as_echo_n "checking for $ac_word... " >&6; } 26583 if ${ac_cv_path_JAVAH+:} false; then : 26584 $as_echo_n "(cached) " >&6 26585 else 26586 case $JAVAH in 26587 [\\/]* | ?:[\\/]*) 26588 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 26589 ;; 26590 *) 26591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26592 for as_dir in $PATH 26593 do 26594 IFS=$as_save_IFS 26595 test -z "$as_dir" && as_dir=. 26596 for ac_exec_ext in '' $ac_executable_extensions; do 26597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26598 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 26599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26600 break 2 26601 fi 26602 done 26603 done 26604 IFS=$as_save_IFS 26605 26606 ;; 26607 esac 26608 fi 26609 JAVAH=$ac_cv_path_JAVAH 26610 if test -n "$JAVAH"; then 26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 26612 $as_echo "$JAVAH" >&6; } 26613 else 26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26615 $as_echo "no" >&6; } 26616 fi 26617 26618 26619 if test "x$JAVAH" = x; then 26620 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26621 fi 26622 else 26623 # Otherwise we believe it is a complete path. Use it as it is. 26624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 26625 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 26626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 26627 $as_echo_n "checking for JAVAH... " >&6; } 26628 if test ! -x "$tool_specified"; then 26629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26630 $as_echo "not found" >&6; } 26631 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 26632 fi 26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26634 $as_echo "$tool_specified" >&6; } 26635 fi 26636 fi 26637 fi 26638 fi 26639 26640 26641 26642 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26643 26644 # Publish this variable in the help. 26645 26646 26647 if [ -z "${JAR+x}" ]; then 26648 # The variable is not set by user, try to locate tool using the code snippet 26649 26650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 26651 $as_echo_n "checking for jar in Boot JDK... " >&6; } 26652 JAR=$BOOT_JDK/bin/jar 26653 if test ! -x $JAR; then 26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26655 $as_echo "not found" >&6; } 26656 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26657 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26658 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 26659 fi 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26661 $as_echo "ok" >&6; } 26662 26663 26664 else 26665 # The variable is set, but is it from the command line or the environment? 26666 26667 # Try to remove the string !JAR! from our list. 26668 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 26669 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26670 # If it failed, the variable was not from the command line. Ignore it, 26671 # but warn the user (except for BASH, which is always set by the calling BASH). 26672 if test "xJAR" != xBASH; then 26673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 26674 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 26675 fi 26676 # Try to locate tool using the code snippet 26677 26678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 26679 $as_echo_n "checking for jar in Boot JDK... " >&6; } 26680 JAR=$BOOT_JDK/bin/jar 26681 if test ! -x $JAR; then 26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26683 $as_echo "not found" >&6; } 26684 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26685 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26686 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 26687 fi 26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26689 $as_echo "ok" >&6; } 26690 26691 26692 else 26693 # If it succeeded, then it was overridden by the user. We will use it 26694 # for the tool. 26695 26696 # First remove it from the list of overridden variables, so we can test 26697 # for unknown variables in the end. 26698 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26699 26700 # Check if we try to supply an empty value 26701 if test "x$JAR" = x; then 26702 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 26703 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 26705 $as_echo_n "checking for JAR... " >&6; } 26706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 26707 $as_echo "disabled" >&6; } 26708 else 26709 # Check if the provided tool contains a complete path. 26710 tool_specified="$JAR" 26711 tool_basename="${tool_specified##*/}" 26712 if test "x$tool_basename" = "x$tool_specified"; then 26713 # A command without a complete path is provided, search $PATH. 26714 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 26715 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 26716 # Extract the first word of "$tool_basename", so it can be a program name with args. 26717 set dummy $tool_basename; ac_word=$2 26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26719 $as_echo_n "checking for $ac_word... " >&6; } 26720 if ${ac_cv_path_JAR+:} false; then : 26721 $as_echo_n "(cached) " >&6 26722 else 26723 case $JAR in 26724 [\\/]* | ?:[\\/]*) 26725 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 26726 ;; 26727 *) 26728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26729 for as_dir in $PATH 26730 do 26731 IFS=$as_save_IFS 26732 test -z "$as_dir" && as_dir=. 26733 for ac_exec_ext in '' $ac_executable_extensions; do 26734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26735 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 26736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26737 break 2 26738 fi 26739 done 26740 done 26741 IFS=$as_save_IFS 26742 26743 ;; 26744 esac 26745 fi 26746 JAR=$ac_cv_path_JAR 26747 if test -n "$JAR"; then 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 26749 $as_echo "$JAR" >&6; } 26750 else 26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26752 $as_echo "no" >&6; } 26753 fi 26754 26755 26756 if test "x$JAR" = x; then 26757 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26758 fi 26759 else 26760 # Otherwise we believe it is a complete path. Use it as it is. 26761 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 26762 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 26764 $as_echo_n "checking for JAR... " >&6; } 26765 if test ! -x "$tool_specified"; then 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26767 $as_echo "not found" >&6; } 26768 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 26769 fi 26770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26771 $as_echo "$tool_specified" >&6; } 26772 fi 26773 fi 26774 fi 26775 fi 26776 26777 26778 26779 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26780 26781 # Publish this variable in the help. 26782 26783 26784 if [ -z "${JARSIGNER+x}" ]; then 26785 # The variable is not set by user, try to locate tool using the code snippet 26786 26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26788 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26789 JARSIGNER=$BOOT_JDK/bin/jarsigner 26790 if test ! -x $JARSIGNER; then 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26792 $as_echo "not found" >&6; } 26793 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26794 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26795 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26796 fi 26797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26798 $as_echo "ok" >&6; } 26799 26800 26801 else 26802 # The variable is set, but is it from the command line or the environment? 26803 26804 # Try to remove the string !JARSIGNER! from our list. 26805 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26806 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26807 # If it failed, the variable was not from the command line. Ignore it, 26808 # but warn the user (except for BASH, which is always set by the calling BASH). 26809 if test "xJARSIGNER" != xBASH; then 26810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26811 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26812 fi 26813 # Try to locate tool using the code snippet 26814 26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26816 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26817 JARSIGNER=$BOOT_JDK/bin/jarsigner 26818 if test ! -x $JARSIGNER; then 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26820 $as_echo "not found" >&6; } 26821 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26822 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26823 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26824 fi 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26826 $as_echo "ok" >&6; } 26827 26828 26829 else 26830 # If it succeeded, then it was overridden by the user. We will use it 26831 # for the tool. 26832 26833 # First remove it from the list of overridden variables, so we can test 26834 # for unknown variables in the end. 26835 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26836 26837 # Check if we try to supply an empty value 26838 if test "x$JARSIGNER" = x; then 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 26840 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26842 $as_echo_n "checking for JARSIGNER... " >&6; } 26843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 26844 $as_echo "disabled" >&6; } 26845 else 26846 # Check if the provided tool contains a complete path. 26847 tool_specified="$JARSIGNER" 26848 tool_basename="${tool_specified##*/}" 26849 if test "x$tool_basename" = "x$tool_specified"; then 26850 # A command without a complete path is provided, search $PATH. 26851 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26852 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26853 # Extract the first word of "$tool_basename", so it can be a program name with args. 26854 set dummy $tool_basename; ac_word=$2 26855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26856 $as_echo_n "checking for $ac_word... " >&6; } 26857 if ${ac_cv_path_JARSIGNER+:} false; then : 26858 $as_echo_n "(cached) " >&6 26859 else 26860 case $JARSIGNER in 26861 [\\/]* | ?:[\\/]*) 26862 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26863 ;; 26864 *) 26865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26866 for as_dir in $PATH 26867 do 26868 IFS=$as_save_IFS 26869 test -z "$as_dir" && as_dir=. 26870 for ac_exec_ext in '' $ac_executable_extensions; do 26871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26872 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26874 break 2 26875 fi 26876 done 26877 done 26878 IFS=$as_save_IFS 26879 26880 ;; 26881 esac 26882 fi 26883 JARSIGNER=$ac_cv_path_JARSIGNER 26884 if test -n "$JARSIGNER"; then 26885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26886 $as_echo "$JARSIGNER" >&6; } 26887 else 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26889 $as_echo "no" >&6; } 26890 fi 26891 26892 26893 if test "x$JARSIGNER" = x; then 26894 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26895 fi 26896 else 26897 # Otherwise we believe it is a complete path. Use it as it is. 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26899 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26901 $as_echo_n "checking for JARSIGNER... " >&6; } 26902 if test ! -x "$tool_specified"; then 26903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26904 $as_echo "not found" >&6; } 26905 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26906 fi 26907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26908 $as_echo "$tool_specified" >&6; } 26909 fi 26910 fi 26911 fi 26912 fi 26913 26914 26915 26916 # Finally, set some other options... 26917 26918 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26919 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26920 26921 26922 26923 26924 ############################################################################### 26925 # 26926 # Configure the sources to use. We can add or override individual directories. 26927 # 26928 ############################################################################### 26929 26930 26931 # Where are the sources. Any of these can be overridden 26932 # using --with-override-corba and the likes. 26933 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26934 CORBA_TOPDIR="$SRC_ROOT/corba" 26935 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26936 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26937 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26938 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26939 JDK_TOPDIR="$SRC_ROOT/jdk" 26940 26941 26942 26943 26944 26945 26946 26947 26948 26949 26950 ############################################################################### 26951 # 26952 # Pickup additional source for a component from outside of the source root 26953 # or override source for a component. 26954 # 26955 26956 # Check whether --with-add-source-root was given. 26957 if test "${with_add_source_root+set}" = set; then : 26958 withval=$with_add_source_root; 26959 fi 26960 26961 26962 26963 # Check whether --with-override-source-root was given. 26964 if test "${with_override_source_root+set}" = set; then : 26965 withval=$with_override_source_root; 26966 fi 26967 26968 26969 26970 # Check whether --with-adds-and-overrides was given. 26971 if test "${with_adds_and_overrides+set}" = set; then : 26972 withval=$with_adds_and_overrides; 26973 fi 26974 26975 26976 if test "x$with_adds_and_overrides" != x; then 26977 with_add_source_root="$with_adds_and_overrides/adds" 26978 with_override_source_root="$with_adds_and_overrides/overrides" 26979 fi 26980 26981 if test "x$with_add_source_root" != x; then 26982 if ! test -d $with_add_source_root; then 26983 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26984 fi 26985 CURDIR="$PWD" 26986 cd "$with_add_source_root" 26987 ADD_SRC_ROOT="`pwd`" 26988 cd "$CURDIR" 26989 # Verify that the addon source root does not have any root makefiles. 26990 # If it does, then it is usually an error, prevent this. 26991 if test -f $with_add_source_root/langtools/make/Makefile; then 26992 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 26993 fi 26994 if test -f $with_add_source_root/corba/make/Makefile; then 26995 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 26996 fi 26997 if test -f $with_add_source_root/jaxp/make/Makefile; then 26998 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 26999 fi 27000 if test -f $with_add_source_root/jaxws/make/Makefile; then 27001 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 27002 fi 27003 if test -f $with_add_source_root/hotspot/make/Makefile; then 27004 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 27005 fi 27006 if test -f $with_add_source_root/nashorn/make/Makefile; then 27007 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 27008 fi 27009 if test -f $with_add_source_root/jdk/make/Makefile; then 27010 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 27011 fi 27012 fi 27013 27014 27015 if test "x$with_override_source_root" != x; then 27016 if ! test -d $with_override_source_root; then 27017 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 27018 fi 27019 CURDIR="$PWD" 27020 cd "$with_override_source_root" 27021 OVERRIDE_SRC_ROOT="`pwd`" 27022 cd "$CURDIR" 27023 if test -f $with_override_source_root/langtools/make/Makefile; then 27024 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 27025 fi 27026 if test -f $with_override_source_root/corba/make/Makefile; then 27027 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 27028 fi 27029 if test -f $with_override_source_root/jaxp/make/Makefile; then 27030 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 27031 fi 27032 if test -f $with_override_source_root/jaxws/make/Makefile; then 27033 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 27034 fi 27035 if test -f $with_override_source_root/hotspot/make/Makefile; then 27036 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 27037 fi 27038 if test -f $with_override_source_root/nashorn/make/Makefile; then 27039 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 27040 fi 27041 if test -f $with_override_source_root/jdk/make/Makefile; then 27042 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 27043 fi 27044 fi 27045 27046 27047 ############################################################################### 27048 # 27049 # Override a repo completely, this is used for example when you have 3 small 27050 # development sandboxes of the langtools sources and want to avoid having 3 full 27051 # OpenJDK sources checked out on disk. 27052 # 27053 # Assuming that the 3 langtools sandboxes are located here: 27054 # /home/fredrik/sandbox1/langtools 27055 # /home/fredrik/sandbox2/langtools 27056 # /home/fredrik/sandbox3/langtools 27057 # 27058 # From the source root you create build subdirs manually: 27059 # mkdir -p build1 build2 build3 27060 # in each build directory run: 27061 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 27062 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 27063 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 27064 # 27065 27066 27067 # Check whether --with-override-langtools was given. 27068 if test "${with_override_langtools+set}" = set; then : 27069 withval=$with_override_langtools; 27070 fi 27071 27072 27073 27074 # Check whether --with-override-corba was given. 27075 if test "${with_override_corba+set}" = set; then : 27076 withval=$with_override_corba; 27077 fi 27078 27079 27080 27081 # Check whether --with-override-jaxp was given. 27082 if test "${with_override_jaxp+set}" = set; then : 27083 withval=$with_override_jaxp; 27084 fi 27085 27086 27087 27088 # Check whether --with-override-jaxws was given. 27089 if test "${with_override_jaxws+set}" = set; then : 27090 withval=$with_override_jaxws; 27091 fi 27092 27093 27094 27095 # Check whether --with-override-hotspot was given. 27096 if test "${with_override_hotspot+set}" = set; then : 27097 withval=$with_override_hotspot; 27098 fi 27099 27100 27101 27102 # Check whether --with-override-nashorn was given. 27103 if test "${with_override_nashorn+set}" = set; then : 27104 withval=$with_override_nashorn; 27105 fi 27106 27107 27108 27109 # Check whether --with-override-jdk was given. 27110 if test "${with_override_jdk+set}" = set; then : 27111 withval=$with_override_jdk; 27112 fi 27113 27114 27115 if test "x$with_override_langtools" != x; then 27116 CURDIR="$PWD" 27117 cd "$with_override_langtools" 27118 LANGTOOLS_TOPDIR="`pwd`" 27119 cd "$CURDIR" 27120 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 27121 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 27122 fi 27123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 27124 $as_echo_n "checking if langtools should be overridden... " >&6; } 27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 27126 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 27127 fi 27128 if test "x$with_override_corba" != x; then 27129 CURDIR="$PWD" 27130 cd "$with_override_corba" 27131 CORBA_TOPDIR="`pwd`" 27132 cd "$CURDIR" 27133 if ! test -f $CORBA_TOPDIR/make/Makefile; then 27134 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 27135 fi 27136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 27137 $as_echo_n "checking if corba should be overridden... " >&6; } 27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 27139 $as_echo "yes with $CORBA_TOPDIR" >&6; } 27140 fi 27141 if test "x$with_override_jaxp" != x; then 27142 CURDIR="$PWD" 27143 cd "$with_override_jaxp" 27144 JAXP_TOPDIR="`pwd`" 27145 cd "$CURDIR" 27146 if ! test -f $JAXP_TOPDIR/make/Makefile; then 27147 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 27148 fi 27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 27150 $as_echo_n "checking if jaxp should be overridden... " >&6; } 27151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 27152 $as_echo "yes with $JAXP_TOPDIR" >&6; } 27153 fi 27154 if test "x$with_override_jaxws" != x; then 27155 CURDIR="$PWD" 27156 cd "$with_override_jaxws" 27157 JAXWS_TOPDIR="`pwd`" 27158 cd "$CURDIR" 27159 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 27160 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 27161 fi 27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 27163 $as_echo_n "checking if jaxws should be overridden... " >&6; } 27164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 27165 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 27166 fi 27167 if test "x$with_override_hotspot" != x; then 27168 CURDIR="$PWD" 27169 cd "$with_override_hotspot" 27170 HOTSPOT_TOPDIR="`pwd`" 27171 cd "$CURDIR" 27172 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 27173 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 27174 fi 27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 27176 $as_echo_n "checking if hotspot should be overridden... " >&6; } 27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 27178 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 27179 fi 27180 if test "x$with_override_nashorn" != x; then 27181 CURDIR="$PWD" 27182 cd "$with_override_nashorn" 27183 NASHORN_TOPDIR="`pwd`" 27184 cd "$CURDIR" 27185 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 27186 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 27187 fi 27188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 27189 $as_echo_n "checking if nashorn should be overridden... " >&6; } 27190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 27191 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 27192 fi 27193 if test "x$with_override_jdk" != x; then 27194 CURDIR="$PWD" 27195 cd "$with_override_jdk" 27196 JDK_TOPDIR="`pwd`" 27197 cd "$CURDIR" 27198 if ! test -f $JDK_TOPDIR/make/Makefile; then 27199 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 27200 fi 27201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 27202 $as_echo_n "checking if JDK should be overridden... " >&6; } 27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 27204 $as_echo "yes with $JDK_TOPDIR" >&6; } 27205 fi 27206 27207 27208 BUILD_OUTPUT="$OUTPUT_ROOT" 27209 27210 27211 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 27212 BUILD_HOTSPOT=true 27213 27214 27215 27216 # Check whether --with-import-hotspot was given. 27217 if test "${with_import_hotspot+set}" = set; then : 27218 withval=$with_import_hotspot; 27219 fi 27220 27221 if test "x$with_import_hotspot" != x; then 27222 CURDIR="$PWD" 27223 cd "$with_import_hotspot" 27224 HOTSPOT_DIST="`pwd`" 27225 cd "$CURDIR" 27226 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 27227 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 27228 fi 27229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 27230 $as_echo_n "checking if hotspot should be imported... " >&6; } 27231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 27232 $as_echo "yes from $HOTSPOT_DIST" >&6; } 27233 BUILD_HOTSPOT=false 27234 fi 27235 27236 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 27237 27238 27239 ############################################################################### 27240 # 27241 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 27242 # native code. 27243 # 27244 ############################################################################### 27245 27246 # First determine the toolchain type (compiler family) 27247 27248 27249 # Check whether --with-toolchain-type was given. 27250 if test "${with_toolchain_type+set}" = set; then : 27251 withval=$with_toolchain_type; 27252 fi 27253 27254 27255 # Use indirect variable referencing 27256 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 27257 VALID_TOOLCHAINS=${!toolchain_var_name} 27258 27259 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 27260 if test -n "$XCODEBUILD"; then 27261 # On Mac OS X, default toolchain to clang after Xcode 5 27262 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 27263 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 27264 if test $? -ne 0; then 27265 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 27266 fi 27267 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 27268 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 27269 $CUT -f 1 -d .` 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 27271 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 27272 if test $XCODE_MAJOR_VERSION -ge 5; then 27273 DEFAULT_TOOLCHAIN="clang" 27274 else 27275 DEFAULT_TOOLCHAIN="gcc" 27276 fi 27277 else 27278 # If Xcode is not installed, but the command line tools are 27279 # then we can't run xcodebuild. On these systems we should 27280 # default to clang 27281 DEFAULT_TOOLCHAIN="clang" 27282 fi 27283 else 27284 # First toolchain type in the list is the default 27285 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 27286 fi 27287 27288 if test "x$with_toolchain_type" = xlist; then 27289 # List all toolchains 27290 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 27291 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 27292 for toolchain in $VALID_TOOLCHAINS; do 27293 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 27294 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 27295 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 27296 done 27297 27298 exit 0 27299 elif test "x$with_toolchain_type" != x; then 27300 # User override; check that it is valid 27301 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 27302 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 27303 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 27305 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 27306 as_fn_error $? "Cannot continue." "$LINENO" 5 27307 fi 27308 TOOLCHAIN_TYPE=$with_toolchain_type 27309 else 27310 # No flag given, use default 27311 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 27312 fi 27313 27314 27315 TOOLCHAIN_CC_BINARY_clang="clang" 27316 TOOLCHAIN_CC_BINARY_gcc="gcc" 27317 TOOLCHAIN_CC_BINARY_microsoft="cl" 27318 TOOLCHAIN_CC_BINARY_solstudio="cc" 27319 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 27320 27321 TOOLCHAIN_CXX_BINARY_clang="clang++" 27322 TOOLCHAIN_CXX_BINARY_gcc="g++" 27323 TOOLCHAIN_CXX_BINARY_microsoft="cl" 27324 TOOLCHAIN_CXX_BINARY_solstudio="CC" 27325 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 27326 27327 # Use indirect variable referencing 27328 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 27329 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 27330 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 27331 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 27332 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 27333 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 27334 27335 27336 # Define filename patterns 27337 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27338 LIBRARY_PREFIX= 27339 SHARED_LIBRARY_SUFFIX='.dll' 27340 STATIC_LIBRARY_SUFFIX='.lib' 27341 SHARED_LIBRARY='$1.dll' 27342 STATIC_LIBRARY='$1.lib' 27343 OBJ_SUFFIX='.obj' 27344 EXE_SUFFIX='.exe' 27345 else 27346 LIBRARY_PREFIX=lib 27347 SHARED_LIBRARY_SUFFIX='.so' 27348 STATIC_LIBRARY_SUFFIX='.a' 27349 SHARED_LIBRARY='lib$1.so' 27350 STATIC_LIBRARY='lib$1.a' 27351 OBJ_SUFFIX='.o' 27352 EXE_SUFFIX='' 27353 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 27354 SHARED_LIBRARY='lib$1.dylib' 27355 SHARED_LIBRARY_SUFFIX='.dylib' 27356 fi 27357 fi 27358 27359 27360 27361 27362 27363 27364 27365 27366 27367 27368 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 27369 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 27370 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 27371 else 27372 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 27373 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 27374 fi 27375 27376 27377 # User supplied flags should be used when configure detects compilers 27378 27379 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 27380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 27381 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 27382 fi 27383 27384 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 27385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 27386 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 27387 fi 27388 27389 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 27390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 27391 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 27392 fi 27393 27394 27395 # Check whether --with-extra-cflags was given. 27396 if test "${with_extra_cflags+set}" = set; then : 27397 withval=$with_extra_cflags; 27398 fi 27399 27400 27401 27402 # Check whether --with-extra-cxxflags was given. 27403 if test "${with_extra_cxxflags+set}" = set; then : 27404 withval=$with_extra_cxxflags; 27405 fi 27406 27407 27408 27409 # Check whether --with-extra-ldflags was given. 27410 if test "${with_extra_ldflags+set}" = set; then : 27411 withval=$with_extra_ldflags; 27412 fi 27413 27414 27415 EXTRA_CFLAGS="$with_extra_cflags" 27416 EXTRA_CXXFLAGS="$with_extra_cxxflags" 27417 EXTRA_LDFLAGS="$with_extra_ldflags" 27418 27419 # Hotspot needs these set in their legacy form 27420 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $EXTRA_CFLAGS" 27421 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $EXTRA_CXXFLAGS" 27422 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $EXTRA_LDFLAGS" 27423 27424 27425 27426 27427 27428 # The global CFLAGS and LDLAGS variables are used by configure tests and 27429 # should include the extra parameters 27430 CFLAGS="$EXTRA_CFLAGS" 27431 CXXFLAGS="$EXTRA_CXXFLAGS" 27432 LDFLAGS="$EXTRA_LDFLAGS" 27433 CPPFLAGS="" 27434 27435 # The sysroot cflags are needed for configure to be able to run the compilers 27436 27437 if test "x$SYSROOT" != "x"; then 27438 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27439 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 27440 # Solaris Studio does not have a concept of sysroot. Instead we must 27441 # make sure the default include and lib dirs are appended to each 27442 # compile and link command line. 27443 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 27444 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 27445 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 27446 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 27447 fi 27448 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 27449 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 27450 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 27451 elif test "x$TOOLCHAIN_TYPE" = xclang; then 27452 SYSROOT_CFLAGS="-isysroot $SYSROOT" 27453 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 27454 fi 27455 # Propagate the sysroot args to hotspot 27456 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 27457 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 27458 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 27459 # The global CFLAGS and LDFLAGS variables need these for configure to function 27460 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 27461 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 27462 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 27463 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 27464 fi 27465 27466 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 27467 # We also need -iframework<path>/System/Library/Frameworks 27468 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 27469 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 27470 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 27471 # set this here so it doesn't have to be peppered throughout the forest 27472 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 27473 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 27474 fi 27475 27476 27477 27478 27479 27480 # Then detect the actual binaries needed 27481 27482 # FIXME: Is this needed? 27483 ac_ext=cpp 27484 ac_cpp='$CXXCPP $CPPFLAGS' 27485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27488 27489 27490 # Store the CFLAGS etc passed to the configure script. 27491 ORG_CFLAGS="$CFLAGS" 27492 ORG_CXXFLAGS="$CXXFLAGS" 27493 27494 # autoconf magic only relies on PATH, so update it if tools dir is specified 27495 OLD_PATH="$PATH" 27496 27497 # On Windows, we need to detect the visual studio installation first. 27498 # This will change the PATH, but we need to keep that new PATH even 27499 # after toolchain detection is done, since the compiler (on x86) uses 27500 # it for DLL resolution in runtime. 27501 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 27502 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 27503 27504 # Store path to cygwin link.exe to help excluding it when searching for 27505 # VS linker. This must be done before changing the PATH when looking for VS. 27506 # Extract the first word of "link", so it can be a program name with args. 27507 set dummy link; ac_word=$2 27508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27509 $as_echo_n "checking for $ac_word... " >&6; } 27510 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 27511 $as_echo_n "(cached) " >&6 27512 else 27513 case $CYGWIN_LINK in 27514 [\\/]* | ?:[\\/]*) 27515 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 27516 ;; 27517 *) 27518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27519 for as_dir in $PATH 27520 do 27521 IFS=$as_save_IFS 27522 test -z "$as_dir" && as_dir=. 27523 for ac_exec_ext in '' $ac_executable_extensions; do 27524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27525 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 27526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27527 break 2 27528 fi 27529 done 27530 done 27531 IFS=$as_save_IFS 27532 27533 ;; 27534 esac 27535 fi 27536 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 27537 if test -n "$CYGWIN_LINK"; then 27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 27539 $as_echo "$CYGWIN_LINK" >&6; } 27540 else 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27542 $as_echo "no" >&6; } 27543 fi 27544 27545 27546 if test "x$CYGWIN_LINK" != x; then 27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 27548 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 27549 "$CYGWIN_LINK" --version > /dev/null 27550 if test $? -eq 0 ; then 27551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27552 $as_echo "yes" >&6; } 27553 else 27554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27555 $as_echo "no" >&6; } 27556 # This might be the VS linker. Don't exclude it later on. 27557 CYGWIN_LINK="" 27558 fi 27559 fi 27560 27561 # First-hand choice is to locate and run the vsvars bat file. 27562 27563 27564 # Check whether --with-toolchain-version was given. 27565 if test "${with_toolchain_version+set}" = set; then : 27566 withval=$with_toolchain_version; 27567 fi 27568 27569 27570 if test "x$with_toolchain_version" = xlist; then 27571 # List all toolchains 27572 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 27573 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 27574 for version in $VALID_VS_VERSIONS; do 27575 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 27576 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 27577 done 27578 27579 exit 0 27580 elif test "x$DEVKIT_VS_VERSION" != x; then 27581 VS_VERSION=$DEVKIT_VS_VERSION 27582 TOOLCHAIN_VERSION=$VS_VERSION 27583 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27584 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27585 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27586 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27587 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27588 VS_PATH="$TOOLCHAIN_PATH:$PATH" 27589 27590 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 27591 # can still be exported as INCLUDE for compiler invocations without 27592 # SYSROOT_CFLAGS 27593 OLDIFS="$IFS" 27594 IFS=";" 27595 for i in $DEVKIT_VS_INCLUDE; do 27596 ipath=$i 27597 27598 unix_path="$ipath" 27599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27600 windows_path=`$CYGPATH -m "$unix_path"` 27601 ipath="$windows_path" 27602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27603 windows_path=`cmd //c echo $unix_path` 27604 ipath="$windows_path" 27605 fi 27606 27607 VS_INCLUDE="$VS_INCLUDE;$ipath" 27608 done 27609 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 27610 # as LIB for compiler invocations without SYSROOT_LDFLAGS 27611 for i in $DEVKIT_VS_LIB; do 27612 libpath=$i 27613 27614 unix_path="$libpath" 27615 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27616 windows_path=`$CYGPATH -m "$unix_path"` 27617 libpath="$windows_path" 27618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27619 windows_path=`cmd //c echo $unix_path` 27620 libpath="$windows_path" 27621 fi 27622 27623 VS_LIB="$VS_LIB;$libpath" 27624 done 27625 IFS="$OLDIFS" 27626 27627 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 27628 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 27629 27630 elif test "x$with_toolchain_version" != x; then 27631 # User override; check that it is valid 27632 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 27633 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 27634 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 27636 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 27637 as_fn_error $? "Cannot continue." "$LINENO" 5 27638 fi 27639 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 27640 else 27641 # No flag given, use default 27642 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 27643 fi 27644 27645 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 27646 27647 VS_VERSION="$VS_VERSION" 27648 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 27649 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 27650 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 27651 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 27652 27653 # When using --with-tools-dir, assume it points to the correct and default 27654 # version of Visual Studio or that --with-toolchain-version was also set. 27655 if test "x$with_tools_dir" != x; then 27656 27657 if test "x$VS_ENV_CMD" = x; then 27658 VS_VERSION="${VS_VERSION}" 27659 VS_BASE="$with_tools_dir/../.." 27660 METHOD="--with-tools-dir" 27661 27662 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27663 VCVARSFILE="vc/bin/vcvars32.bat" 27664 else 27665 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27666 fi 27667 27668 27669 windows_path="$VS_BASE" 27670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27671 unix_path=`$CYGPATH -u "$windows_path"` 27672 VS_BASE="$unix_path" 27673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27675 VS_BASE="$unix_path" 27676 fi 27677 27678 if test -d "$VS_BASE"; then 27679 if test -f "$VS_BASE/$VCVARSFILE"; then 27680 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27681 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27682 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27683 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27684 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27685 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27686 else 27687 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27688 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27689 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27690 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27691 fi 27692 fi 27693 fi 27694 27695 27696 if test "x$VS_ENV_CMD" = x; then 27697 VS_VERSION="${VS_VERSION}" 27698 VS_BASE="$with_tools_dir/../../.." 27699 METHOD="--with-tools-dir" 27700 27701 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27702 VCVARSFILE="vc/bin/vcvars32.bat" 27703 else 27704 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27705 fi 27706 27707 27708 windows_path="$VS_BASE" 27709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27710 unix_path=`$CYGPATH -u "$windows_path"` 27711 VS_BASE="$unix_path" 27712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27714 VS_BASE="$unix_path" 27715 fi 27716 27717 if test -d "$VS_BASE"; then 27718 if test -f "$VS_BASE/$VCVARSFILE"; then 27719 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27720 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27721 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27722 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27723 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27724 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27725 else 27726 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27727 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27728 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27729 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27730 fi 27731 fi 27732 fi 27733 27734 if test "x$VS_ENV_CMD" = x; then 27735 # Having specified an argument which is incorrect will produce an instant failure; 27736 # we should not go on looking 27737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 27738 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 27739 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 27740 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 27741 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 27742 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 27743 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 27744 fi 27745 fi 27746 27747 VS_ENV_CMD="" 27748 VS_ENV_ARGS="" 27749 27750 if test "x$VS_COMNTOOLS" != x; then 27751 27752 if test "x$VS_ENV_CMD" = x; then 27753 VS_VERSION="${VS_VERSION}" 27754 VS_BASE="$VS_COMNTOOLS/../.." 27755 METHOD="$VS_COMNTOOLS_VAR variable" 27756 27757 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27758 VCVARSFILE="vc/bin/vcvars32.bat" 27759 else 27760 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27761 fi 27762 27763 27764 windows_path="$VS_BASE" 27765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27766 unix_path=`$CYGPATH -u "$windows_path"` 27767 VS_BASE="$unix_path" 27768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27769 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27770 VS_BASE="$unix_path" 27771 fi 27772 27773 if test -d "$VS_BASE"; then 27774 if test -f "$VS_BASE/$VCVARSFILE"; then 27775 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27776 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27777 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27778 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27779 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27780 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27781 else 27782 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27783 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27784 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27785 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27786 fi 27787 fi 27788 fi 27789 27790 fi 27791 if test "x$PROGRAMFILES" != x; then 27792 27793 if test "x$VS_ENV_CMD" = x; then 27794 VS_VERSION="${VS_VERSION}" 27795 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 27796 METHOD="well-known name" 27797 27798 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27799 VCVARSFILE="vc/bin/vcvars32.bat" 27800 else 27801 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27802 fi 27803 27804 27805 windows_path="$VS_BASE" 27806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27807 unix_path=`$CYGPATH -u "$windows_path"` 27808 VS_BASE="$unix_path" 27809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27810 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27811 VS_BASE="$unix_path" 27812 fi 27813 27814 if test -d "$VS_BASE"; then 27815 if test -f "$VS_BASE/$VCVARSFILE"; then 27816 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27817 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27818 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27819 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27820 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27821 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27822 else 27823 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27824 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27825 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27826 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27827 fi 27828 fi 27829 fi 27830 27831 fi 27832 # Work around the insanely named ProgramFiles(x86) env variable 27833 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 27834 if test "x$PROGRAMFILES_X86" != x; then 27835 27836 if test "x$VS_ENV_CMD" = x; then 27837 VS_VERSION="${VS_VERSION}" 27838 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 27839 METHOD="well-known name" 27840 27841 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27842 VCVARSFILE="vc/bin/vcvars32.bat" 27843 else 27844 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27845 fi 27846 27847 27848 windows_path="$VS_BASE" 27849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27850 unix_path=`$CYGPATH -u "$windows_path"` 27851 VS_BASE="$unix_path" 27852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27854 VS_BASE="$unix_path" 27855 fi 27856 27857 if test -d "$VS_BASE"; then 27858 if test -f "$VS_BASE/$VCVARSFILE"; then 27859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27860 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27861 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27862 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27863 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27864 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27865 else 27866 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27867 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27868 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27869 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27870 fi 27871 fi 27872 fi 27873 27874 fi 27875 27876 if test "x$VS_ENV_CMD" = x; then 27877 VS_VERSION="${VS_VERSION}" 27878 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 27879 METHOD="well-known name" 27880 27881 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27882 VCVARSFILE="vc/bin/vcvars32.bat" 27883 else 27884 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27885 fi 27886 27887 27888 windows_path="$VS_BASE" 27889 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27890 unix_path=`$CYGPATH -u "$windows_path"` 27891 VS_BASE="$unix_path" 27892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27893 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27894 VS_BASE="$unix_path" 27895 fi 27896 27897 if test -d "$VS_BASE"; then 27898 if test -f "$VS_BASE/$VCVARSFILE"; then 27899 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27900 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27901 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27902 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27903 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27904 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27905 else 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27907 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27908 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27909 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27910 fi 27911 fi 27912 fi 27913 27914 27915 if test "x$VS_ENV_CMD" = x; then 27916 VS_VERSION="${VS_VERSION}" 27917 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 27918 METHOD="well-known name" 27919 27920 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27921 VCVARSFILE="vc/bin/vcvars32.bat" 27922 else 27923 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 27924 fi 27925 27926 27927 windows_path="$VS_BASE" 27928 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27929 unix_path=`$CYGPATH -u "$windows_path"` 27930 VS_BASE="$unix_path" 27931 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27932 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27933 VS_BASE="$unix_path" 27934 fi 27935 27936 if test -d "$VS_BASE"; then 27937 if test -f "$VS_BASE/$VCVARSFILE"; then 27938 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27939 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27940 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27941 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27942 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27943 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27944 else 27945 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27946 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27947 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27948 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27949 fi 27950 fi 27951 fi 27952 27953 27954 if test "x$SDK_INSTALL_DIR" != x; then 27955 if test "x$ProgramW6432" != x; then 27956 27957 if test "x$VS_ENV_CMD" = x; then 27958 VS_VERSION="${VS_VERSION}" 27959 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 27960 METHOD="well-known name" 27961 27962 windows_path="$WIN_SDK_BASE" 27963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27964 unix_path=`$CYGPATH -u "$windows_path"` 27965 WIN_SDK_BASE="$unix_path" 27966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27968 WIN_SDK_BASE="$unix_path" 27969 fi 27970 27971 if test -d "$WIN_SDK_BASE"; then 27972 # There have been cases of partial or broken SDK installations. A missing 27973 # lib dir is not going to work. 27974 if test ! -d "$WIN_SDK_BASE/lib"; then 27975 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27976 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27977 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27978 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27979 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27980 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27981 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27982 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27983 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27984 VS_ENV_ARGS="/x86" 27985 else 27986 VS_ENV_ARGS="/x64" 27987 fi 27988 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27989 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27990 # TODO: improve detection for other versions of SDK 27991 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27992 else 27993 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27994 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27995 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27996 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27997 fi 27998 fi 27999 fi 28000 28001 fi 28002 if test "x$PROGRAMW6432" != x; then 28003 28004 if test "x$VS_ENV_CMD" = x; then 28005 VS_VERSION="${VS_VERSION}" 28006 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 28007 METHOD="well-known name" 28008 28009 windows_path="$WIN_SDK_BASE" 28010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28011 unix_path=`$CYGPATH -u "$windows_path"` 28012 WIN_SDK_BASE="$unix_path" 28013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28015 WIN_SDK_BASE="$unix_path" 28016 fi 28017 28018 if test -d "$WIN_SDK_BASE"; then 28019 # There have been cases of partial or broken SDK installations. A missing 28020 # lib dir is not going to work. 28021 if test ! -d "$WIN_SDK_BASE/lib"; then 28022 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28023 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28024 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 28025 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 28026 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 28027 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28028 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28029 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 28030 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 28031 VS_ENV_ARGS="/x86" 28032 else 28033 VS_ENV_ARGS="/x64" 28034 fi 28035 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 28036 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 28037 # TODO: improve detection for other versions of SDK 28038 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 28039 else 28040 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28041 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28042 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 28043 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 28044 fi 28045 fi 28046 fi 28047 28048 fi 28049 if test "x$PROGRAMFILES" != x; then 28050 28051 if test "x$VS_ENV_CMD" = x; then 28052 VS_VERSION="${VS_VERSION}" 28053 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 28054 METHOD="well-known name" 28055 28056 windows_path="$WIN_SDK_BASE" 28057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28058 unix_path=`$CYGPATH -u "$windows_path"` 28059 WIN_SDK_BASE="$unix_path" 28060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28062 WIN_SDK_BASE="$unix_path" 28063 fi 28064 28065 if test -d "$WIN_SDK_BASE"; then 28066 # There have been cases of partial or broken SDK installations. A missing 28067 # lib dir is not going to work. 28068 if test ! -d "$WIN_SDK_BASE/lib"; then 28069 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28070 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28071 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 28072 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 28073 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 28074 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28075 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28076 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 28077 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 28078 VS_ENV_ARGS="/x86" 28079 else 28080 VS_ENV_ARGS="/x64" 28081 fi 28082 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 28083 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 28084 # TODO: improve detection for other versions of SDK 28085 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 28086 else 28087 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28088 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28089 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 28090 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 28091 fi 28092 fi 28093 fi 28094 28095 fi 28096 28097 if test "x$VS_ENV_CMD" = x; then 28098 VS_VERSION="${VS_VERSION}" 28099 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 28100 METHOD="well-known name" 28101 28102 windows_path="$WIN_SDK_BASE" 28103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28104 unix_path=`$CYGPATH -u "$windows_path"` 28105 WIN_SDK_BASE="$unix_path" 28106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28108 WIN_SDK_BASE="$unix_path" 28109 fi 28110 28111 if test -d "$WIN_SDK_BASE"; then 28112 # There have been cases of partial or broken SDK installations. A missing 28113 # lib dir is not going to work. 28114 if test ! -d "$WIN_SDK_BASE/lib"; then 28115 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28116 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28117 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 28118 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 28119 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 28120 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28121 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28122 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 28123 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 28124 VS_ENV_ARGS="/x86" 28125 else 28126 VS_ENV_ARGS="/x64" 28127 fi 28128 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 28129 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 28130 # TODO: improve detection for other versions of SDK 28131 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 28132 else 28133 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28134 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28135 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 28136 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 28137 fi 28138 fi 28139 fi 28140 28141 28142 if test "x$VS_ENV_CMD" = x; then 28143 VS_VERSION="${VS_VERSION}" 28144 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 28145 METHOD="well-known name" 28146 28147 windows_path="$WIN_SDK_BASE" 28148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28149 unix_path=`$CYGPATH -u "$windows_path"` 28150 WIN_SDK_BASE="$unix_path" 28151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28153 WIN_SDK_BASE="$unix_path" 28154 fi 28155 28156 if test -d "$WIN_SDK_BASE"; then 28157 # There have been cases of partial or broken SDK installations. A missing 28158 # lib dir is not going to work. 28159 if test ! -d "$WIN_SDK_BASE/lib"; then 28160 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28161 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28162 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 28163 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 28164 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 28165 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28166 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28167 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 28168 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 28169 VS_ENV_ARGS="/x86" 28170 else 28171 VS_ENV_ARGS="/x64" 28172 fi 28173 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 28174 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 28175 # TODO: improve detection for other versions of SDK 28176 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 28177 else 28178 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 28179 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 28180 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 28181 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 28182 fi 28183 fi 28184 fi 28185 28186 fi 28187 28188 if test "x$VS_ENV_CMD" != x; then 28189 TOOLCHAIN_VERSION=$VS_VERSION 28190 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 28191 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 28192 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 28193 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 28194 # The rest of the variables are already evaled while probing 28195 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 28196 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 28197 break 28198 fi 28199 done 28200 28201 28202 # If we have a devkit, skip all of the below. 28203 if test "x$DEVKIT_VS_VERSION" = x; then 28204 if test "x$VS_ENV_CMD" != x; then 28205 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 28206 28207 # Only process if variable expands to non-empty 28208 28209 if test "x$VS_ENV_CMD" != x; then 28210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28211 28212 # First separate the path from the arguments. This will split at the first 28213 # space. 28214 complete="$VS_ENV_CMD" 28215 path="${complete%% *}" 28216 tmp="$complete EOL" 28217 arguments="${tmp#* }" 28218 28219 # Input might be given as Windows format, start by converting to 28220 # unix format. 28221 new_path=`$CYGPATH -u "$path"` 28222 28223 # Now try to locate executable using which 28224 new_path=`$WHICH "$new_path" 2> /dev/null` 28225 # bat and cmd files are not always considered executable in cygwin causing which 28226 # to not find them 28227 if test "x$new_path" = x \ 28228 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28229 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28230 new_path=`$CYGPATH -u "$path"` 28231 fi 28232 if test "x$new_path" = x; then 28233 # Oops. Which didn't find the executable. 28234 # The splitting of arguments from the executable at a space might have been incorrect, 28235 # since paths with space are more likely in Windows. Give it another try with the whole 28236 # argument. 28237 path="$complete" 28238 arguments="EOL" 28239 new_path=`$CYGPATH -u "$path"` 28240 new_path=`$WHICH "$new_path" 2> /dev/null` 28241 # bat and cmd files are not always considered executable in cygwin causing which 28242 # to not find them 28243 if test "x$new_path" = x \ 28244 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28245 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28246 new_path=`$CYGPATH -u "$path"` 28247 fi 28248 if test "x$new_path" = x; then 28249 # It's still not found. Now this is an unrecoverable error. 28250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 28251 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 28252 has_space=`$ECHO "$complete" | $GREP " "` 28253 if test "x$has_space" != x; then 28254 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28255 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28256 fi 28257 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 28258 fi 28259 fi 28260 28261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28264 # "foo.exe" is OK but "foo" is an error. 28265 # 28266 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28267 # It is also a way to make sure we got the proper file name for the real test later on. 28268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28269 if test "x$test_shortpath" = x; then 28270 # Short path failed, file does not exist as specified. 28271 # Try adding .exe or .cmd 28272 if test -f "${new_path}.exe"; then 28273 input_to_shortpath="${new_path}.exe" 28274 elif test -f "${new_path}.cmd"; then 28275 input_to_shortpath="${new_path}.cmd" 28276 else 28277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 28278 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 28279 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28280 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28281 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 28282 fi 28283 else 28284 input_to_shortpath="$new_path" 28285 fi 28286 28287 # Call helper function which possibly converts this using DOS-style short mode. 28288 # If so, the updated path is stored in $new_path. 28289 new_path="$input_to_shortpath" 28290 28291 input_path="$input_to_shortpath" 28292 # Check if we need to convert this using DOS-style short mode. If the path 28293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28294 # take no chances and rewrite it. 28295 # Note: m4 eats our [], so we need to use [ and ] instead. 28296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28297 if test "x$has_forbidden_chars" != x; then 28298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28299 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28300 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28301 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28302 # Going to short mode and back again did indeed matter. Since short mode is 28303 # case insensitive, let's make it lowercase to improve readability. 28304 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28305 # Now convert it back to Unix-style (cygpath) 28306 input_path=`$CYGPATH -u "$shortmode_path"` 28307 new_path="$input_path" 28308 fi 28309 fi 28310 28311 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28312 if test "x$test_cygdrive_prefix" = x; then 28313 # As a simple fix, exclude /usr/bin since it's not a real path. 28314 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28315 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28316 # a path prefixed by /cygdrive for fixpath to work. 28317 new_path="$CYGWIN_ROOT_PATH$input_path" 28318 fi 28319 fi 28320 28321 # remove trailing .exe if any 28322 new_path="${new_path/%.exe/}" 28323 28324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28325 28326 # First separate the path from the arguments. This will split at the first 28327 # space. 28328 complete="$VS_ENV_CMD" 28329 path="${complete%% *}" 28330 tmp="$complete EOL" 28331 arguments="${tmp#* }" 28332 28333 # Input might be given as Windows format, start by converting to 28334 # unix format. 28335 new_path="$path" 28336 28337 windows_path="$new_path" 28338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28339 unix_path=`$CYGPATH -u "$windows_path"` 28340 new_path="$unix_path" 28341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28343 new_path="$unix_path" 28344 fi 28345 28346 28347 # Now try to locate executable using which 28348 new_path=`$WHICH "$new_path" 2> /dev/null` 28349 28350 if test "x$new_path" = x; then 28351 # Oops. Which didn't find the executable. 28352 # The splitting of arguments from the executable at a space might have been incorrect, 28353 # since paths with space are more likely in Windows. Give it another try with the whole 28354 # argument. 28355 path="$complete" 28356 arguments="EOL" 28357 new_path="$path" 28358 28359 windows_path="$new_path" 28360 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28361 unix_path=`$CYGPATH -u "$windows_path"` 28362 new_path="$unix_path" 28363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28364 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28365 new_path="$unix_path" 28366 fi 28367 28368 28369 new_path=`$WHICH "$new_path" 2> /dev/null` 28370 # bat and cmd files are not always considered executable in MSYS causing which 28371 # to not find them 28372 if test "x$new_path" = x \ 28373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28375 new_path="$path" 28376 28377 windows_path="$new_path" 28378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28379 unix_path=`$CYGPATH -u "$windows_path"` 28380 new_path="$unix_path" 28381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28383 new_path="$unix_path" 28384 fi 28385 28386 fi 28387 28388 if test "x$new_path" = x; then 28389 # It's still not found. Now this is an unrecoverable error. 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 28391 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 28392 has_space=`$ECHO "$complete" | $GREP " "` 28393 if test "x$has_space" != x; then 28394 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28395 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28396 fi 28397 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 28398 fi 28399 fi 28400 28401 # Now new_path has a complete unix path to the binary 28402 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28403 # Keep paths in /bin as-is, but remove trailing .exe if any 28404 new_path="${new_path/%.exe/}" 28405 # Do not save /bin paths to all_fixpath_prefixes! 28406 else 28407 # Not in mixed or Windows style, start by that. 28408 new_path=`cmd //c echo $new_path` 28409 28410 input_path="$new_path" 28411 # Check if we need to convert this using DOS-style short mode. If the path 28412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28413 # take no chances and rewrite it. 28414 # Note: m4 eats our [], so we need to use [ and ] instead. 28415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28416 if test "x$has_forbidden_chars" != x; then 28417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28418 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28419 fi 28420 28421 # Output is in $new_path 28422 28423 windows_path="$new_path" 28424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28425 unix_path=`$CYGPATH -u "$windows_path"` 28426 new_path="$unix_path" 28427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28428 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28429 new_path="$unix_path" 28430 fi 28431 28432 # remove trailing .exe if any 28433 new_path="${new_path/%.exe/}" 28434 28435 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28436 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28437 fi 28438 28439 else 28440 # We're on a unix platform. Hooray! :) 28441 # First separate the path from the arguments. This will split at the first 28442 # space. 28443 complete="$VS_ENV_CMD" 28444 path="${complete%% *}" 28445 tmp="$complete EOL" 28446 arguments="${tmp#* }" 28447 28448 # Cannot rely on the command "which" here since it doesn't always work. 28449 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28450 if test -z "$is_absolute_path"; then 28451 # Path to executable is not absolute. Find it. 28452 IFS_save="$IFS" 28453 IFS=: 28454 for p in $PATH; do 28455 if test -f "$p/$path" && test -x "$p/$path"; then 28456 new_path="$p/$path" 28457 break 28458 fi 28459 done 28460 IFS="$IFS_save" 28461 else 28462 # This is an absolute path, we can use it without further modifications. 28463 new_path="$path" 28464 fi 28465 28466 if test "x$new_path" = x; then 28467 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 28468 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 28469 has_space=`$ECHO "$complete" | $GREP " "` 28470 if test "x$has_space" != x; then 28471 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28472 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28473 fi 28474 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 28475 fi 28476 fi 28477 28478 # Now join together the path and the arguments once again 28479 if test "x$arguments" != xEOL; then 28480 new_complete="$new_path ${arguments% *}" 28481 else 28482 new_complete="$new_path" 28483 fi 28484 28485 if test "x$complete" != "x$new_complete"; then 28486 VS_ENV_CMD="$new_complete" 28487 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 28488 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 28489 fi 28490 fi 28491 28492 28493 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 28494 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 28495 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 28496 28497 # We need to create a couple of temporary files. 28498 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 28499 $MKDIR -p $VS_ENV_TMP_DIR 28500 28501 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 28502 # Instead create a shell script which will set the relevant variables when run. 28503 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 28504 28505 unix_path="$WINPATH_VS_ENV_CMD" 28506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28507 windows_path=`$CYGPATH -m "$unix_path"` 28508 WINPATH_VS_ENV_CMD="$windows_path" 28509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28510 windows_path=`cmd //c echo $unix_path` 28511 WINPATH_VS_ENV_CMD="$windows_path" 28512 fi 28513 28514 WINPATH_BASH="$BASH" 28515 28516 unix_path="$WINPATH_BASH" 28517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28518 windows_path=`$CYGPATH -m "$unix_path"` 28519 WINPATH_BASH="$windows_path" 28520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28521 windows_path=`cmd //c echo $unix_path` 28522 WINPATH_BASH="$windows_path" 28523 fi 28524 28525 28526 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 28527 # script (executable by bash) that will setup the important variables. 28528 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 28529 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 28530 # This will end up something like: 28531 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 28532 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 28533 # These will end up something like: 28534 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 28535 # The trailing space for everyone except PATH is no typo, but is needed due 28536 # to trailing \ in the Windows paths. These will be stripped later. 28537 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 28538 >> $EXTRACT_VC_ENV_BAT_FILE 28539 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 28540 >> $EXTRACT_VC_ENV_BAT_FILE 28541 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 28542 >> $EXTRACT_VC_ENV_BAT_FILE 28543 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 28544 >> $EXTRACT_VC_ENV_BAT_FILE 28545 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 28546 >> $EXTRACT_VC_ENV_BAT_FILE 28547 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 28548 >> $EXTRACT_VC_ENV_BAT_FILE 28549 28550 # Now execute the newly created bat file. 28551 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 28552 # Change directory so we don't need to mess with Windows paths in redirects. 28553 cd $VS_ENV_TMP_DIR 28554 cmd /c extract-vs-env.bat | $CAT 28555 cd $CURDIR 28556 28557 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 28558 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 28559 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 28560 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28561 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28562 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28563 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28564 as_fn_error $? "Cannot continue" "$LINENO" 5 28565 fi 28566 28567 # Now set all paths and other env variables. This will allow the rest of 28568 # the configure script to find and run the compiler in the proper way. 28569 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 28570 $as_echo "$as_me: Setting extracted environment variables" >&6;} 28571 . $VS_ENV_TMP_DIR/set-vs-env.sh 28572 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 28573 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 28574 else 28575 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 28576 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 28577 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 28578 fi 28579 fi 28580 28581 # At this point, we should have correct variables in the environment, or we can't continue. 28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 28583 $as_echo_n "checking for Visual Studio variables... " >&6; } 28584 28585 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 28586 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 28587 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 28588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 28589 $as_echo "present but broken" >&6; } 28590 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 28591 else 28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 28593 $as_echo "ok" >&6; } 28594 # Remove any trailing "\" ";" and " " from the variables. 28595 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 28596 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 28597 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 28598 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 28599 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 28600 # Remove any paths containing # (typically F#) as that messes up make. This 28601 # is needed if visual studio was installed with F# support. 28602 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 28603 28604 28605 28606 28607 28608 # Convert VS_INCLUDE into SYSROOT_CFLAGS 28609 OLDIFS="$IFS" 28610 IFS=";" 28611 for i in $VS_INCLUDE; do 28612 ipath=$i 28613 # Only process non-empty elements 28614 if test "x$ipath" != x; then 28615 IFS="$OLDIFS" 28616 # Check that directory exists before calling fixup_path 28617 testpath=$ipath 28618 28619 windows_path="$testpath" 28620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28621 unix_path=`$CYGPATH -u "$windows_path"` 28622 testpath="$unix_path" 28623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28625 testpath="$unix_path" 28626 fi 28627 28628 if test -d "$testpath"; then 28629 28630 # Only process if variable expands to non-empty 28631 28632 if test "x$ipath" != x; then 28633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28634 28635 # Input might be given as Windows format, start by converting to 28636 # unix format. 28637 path="$ipath" 28638 new_path=`$CYGPATH -u "$path"` 28639 28640 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28641 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28642 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28643 # "foo.exe" is OK but "foo" is an error. 28644 # 28645 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28646 # It is also a way to make sure we got the proper file name for the real test later on. 28647 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28648 if test "x$test_shortpath" = x; then 28649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 28650 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 28651 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 28652 fi 28653 28654 # Call helper function which possibly converts this using DOS-style short mode. 28655 # If so, the updated path is stored in $new_path. 28656 28657 input_path="$new_path" 28658 # Check if we need to convert this using DOS-style short mode. If the path 28659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28660 # take no chances and rewrite it. 28661 # Note: m4 eats our [], so we need to use [ and ] instead. 28662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28663 if test "x$has_forbidden_chars" != x; then 28664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28668 # Going to short mode and back again did indeed matter. Since short mode is 28669 # case insensitive, let's make it lowercase to improve readability. 28670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28671 # Now convert it back to Unix-style (cygpath) 28672 input_path=`$CYGPATH -u "$shortmode_path"` 28673 new_path="$input_path" 28674 fi 28675 fi 28676 28677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28678 if test "x$test_cygdrive_prefix" = x; then 28679 # As a simple fix, exclude /usr/bin since it's not a real path. 28680 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28682 # a path prefixed by /cygdrive for fixpath to work. 28683 new_path="$CYGWIN_ROOT_PATH$input_path" 28684 fi 28685 fi 28686 28687 28688 if test "x$path" != "x$new_path"; then 28689 ipath="$new_path" 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 28691 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 28692 fi 28693 28694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28695 28696 path="$ipath" 28697 has_colon=`$ECHO $path | $GREP ^.:` 28698 new_path="$path" 28699 if test "x$has_colon" = x; then 28700 # Not in mixed or Windows style, start by that. 28701 new_path=`cmd //c echo $path` 28702 fi 28703 28704 28705 input_path="$new_path" 28706 # Check if we need to convert this using DOS-style short mode. If the path 28707 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28708 # take no chances and rewrite it. 28709 # Note: m4 eats our [], so we need to use [ and ] instead. 28710 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28711 if test "x$has_forbidden_chars" != x; then 28712 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28713 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28714 fi 28715 28716 28717 windows_path="$new_path" 28718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28719 unix_path=`$CYGPATH -u "$windows_path"` 28720 new_path="$unix_path" 28721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28723 new_path="$unix_path" 28724 fi 28725 28726 if test "x$path" != "x$new_path"; then 28727 ipath="$new_path" 28728 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 28729 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 28730 fi 28731 28732 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28733 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28734 28735 else 28736 # We're on a unix platform. Hooray! :) 28737 path="$ipath" 28738 has_space=`$ECHO "$path" | $GREP " "` 28739 if test "x$has_space" != x; then 28740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 28741 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 28742 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28743 fi 28744 28745 # Use eval to expand a potential ~ 28746 eval path="$path" 28747 if test ! -f "$path" && test ! -d "$path"; then 28748 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 28749 fi 28750 28751 ipath="`cd "$path"; $THEPWDCMD -L`" 28752 fi 28753 fi 28754 28755 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 28756 fi 28757 IFS=";" 28758 fi 28759 done 28760 # Convert VS_LIB into SYSROOT_LDFLAGS 28761 for i in $VS_LIB; do 28762 libpath=$i 28763 # Only process non-empty elements 28764 if test "x$libpath" != x; then 28765 IFS="$OLDIFS" 28766 # Check that directory exists before calling fixup_path 28767 testpath=$libpath 28768 28769 windows_path="$testpath" 28770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28771 unix_path=`$CYGPATH -u "$windows_path"` 28772 testpath="$unix_path" 28773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28775 testpath="$unix_path" 28776 fi 28777 28778 if test -d "$testpath"; then 28779 28780 # Only process if variable expands to non-empty 28781 28782 if test "x$libpath" != x; then 28783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28784 28785 # Input might be given as Windows format, start by converting to 28786 # unix format. 28787 path="$libpath" 28788 new_path=`$CYGPATH -u "$path"` 28789 28790 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28791 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28792 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28793 # "foo.exe" is OK but "foo" is an error. 28794 # 28795 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28796 # It is also a way to make sure we got the proper file name for the real test later on. 28797 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28798 if test "x$test_shortpath" = x; then 28799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28800 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28801 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 28802 fi 28803 28804 # Call helper function which possibly converts this using DOS-style short mode. 28805 # If so, the updated path is stored in $new_path. 28806 28807 input_path="$new_path" 28808 # Check if we need to convert this using DOS-style short mode. If the path 28809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28810 # take no chances and rewrite it. 28811 # Note: m4 eats our [], so we need to use [ and ] instead. 28812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28813 if test "x$has_forbidden_chars" != x; then 28814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28815 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28816 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28817 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28818 # Going to short mode and back again did indeed matter. Since short mode is 28819 # case insensitive, let's make it lowercase to improve readability. 28820 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28821 # Now convert it back to Unix-style (cygpath) 28822 input_path=`$CYGPATH -u "$shortmode_path"` 28823 new_path="$input_path" 28824 fi 28825 fi 28826 28827 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28828 if test "x$test_cygdrive_prefix" = x; then 28829 # As a simple fix, exclude /usr/bin since it's not a real path. 28830 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28831 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28832 # a path prefixed by /cygdrive for fixpath to work. 28833 new_path="$CYGWIN_ROOT_PATH$input_path" 28834 fi 28835 fi 28836 28837 28838 if test "x$path" != "x$new_path"; then 28839 libpath="$new_path" 28840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28841 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28842 fi 28843 28844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28845 28846 path="$libpath" 28847 has_colon=`$ECHO $path | $GREP ^.:` 28848 new_path="$path" 28849 if test "x$has_colon" = x; then 28850 # Not in mixed or Windows style, start by that. 28851 new_path=`cmd //c echo $path` 28852 fi 28853 28854 28855 input_path="$new_path" 28856 # Check if we need to convert this using DOS-style short mode. If the path 28857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28858 # take no chances and rewrite it. 28859 # Note: m4 eats our [], so we need to use [ and ] instead. 28860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28861 if test "x$has_forbidden_chars" != x; then 28862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28863 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28864 fi 28865 28866 28867 windows_path="$new_path" 28868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28869 unix_path=`$CYGPATH -u "$windows_path"` 28870 new_path="$unix_path" 28871 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28872 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28873 new_path="$unix_path" 28874 fi 28875 28876 if test "x$path" != "x$new_path"; then 28877 libpath="$new_path" 28878 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 28879 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 28880 fi 28881 28882 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28883 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28884 28885 else 28886 # We're on a unix platform. Hooray! :) 28887 path="$libpath" 28888 has_space=`$ECHO "$path" | $GREP " "` 28889 if test "x$has_space" != x; then 28890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 28891 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 28892 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28893 fi 28894 28895 # Use eval to expand a potential ~ 28896 eval path="$path" 28897 if test ! -f "$path" && test ! -d "$path"; then 28898 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 28899 fi 28900 28901 libpath="`cd "$path"; $THEPWDCMD -L`" 28902 fi 28903 fi 28904 28905 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 28906 fi 28907 IFS=";" 28908 fi 28909 done 28910 IFS="$OLDIFS" 28911 fi 28912 else 28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28914 $as_echo "not found" >&6; } 28915 28916 if test "x$VS_ENV_CMD" = x; then 28917 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 28918 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 28919 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 28920 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 28921 else 28922 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 28923 $as_echo "$as_me: Running the extraction script failed." >&6;} 28924 fi 28925 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 28926 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 28927 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 28928 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 28929 as_fn_error $? "Cannot continue" "$LINENO" 5 28930 fi 28931 28932 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 28933 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 28934 PATH="$VS_PATH" 28935 # The microsoft toolchain also requires INCLUDE and LIB to be set. 28936 export INCLUDE="$VS_INCLUDE" 28937 export LIB="$VS_LIB" 28938 fi 28939 28940 # For solaris we really need solaris tools, and not the GNU equivalent. 28941 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 28942 # so add that to path before starting to probe. 28943 # FIXME: This was originally only done for AS,NM,GNM,STRIP,OBJCOPY,OBJDUMP. 28944 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 28945 PATH="/usr/ccs/bin:$PATH" 28946 fi 28947 28948 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 28949 # override all other locations. 28950 if test "x$TOOLCHAIN_PATH" != x; then 28951 PATH=$TOOLCHAIN_PATH:$PATH 28952 fi 28953 28954 28955 # 28956 # Setup the compilers (CC and CXX) 28957 # 28958 28959 COMPILER_NAME=C 28960 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 28961 28962 if test "x$CC" != x; then 28963 # User has supplied compiler name already, always let that override. 28964 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 28965 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 28966 if test "x`basename $CC`" = "x$CC"; then 28967 # A command without a complete path is provided, search $PATH. 28968 28969 for ac_prog in $CC 28970 do 28971 # Extract the first word of "$ac_prog", so it can be a program name with args. 28972 set dummy $ac_prog; ac_word=$2 28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28974 $as_echo_n "checking for $ac_word... " >&6; } 28975 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28976 $as_echo_n "(cached) " >&6 28977 else 28978 case $POTENTIAL_CC in 28979 [\\/]* | ?:[\\/]*) 28980 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28981 ;; 28982 *) 28983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28984 for as_dir in $PATH 28985 do 28986 IFS=$as_save_IFS 28987 test -z "$as_dir" && as_dir=. 28988 for ac_exec_ext in '' $ac_executable_extensions; do 28989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28990 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28992 break 2 28993 fi 28994 done 28995 done 28996 IFS=$as_save_IFS 28997 28998 ;; 28999 esac 29000 fi 29001 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 29002 if test -n "$POTENTIAL_CC"; then 29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 29004 $as_echo "$POTENTIAL_CC" >&6; } 29005 else 29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29007 $as_echo "no" >&6; } 29008 fi 29009 29010 29011 test -n "$POTENTIAL_CC" && break 29012 done 29013 29014 if test "x$POTENTIAL_CC" != x; then 29015 CC=$POTENTIAL_CC 29016 else 29017 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 29018 fi 29019 else 29020 # Otherwise it might already be a complete path 29021 if test ! -x "$CC"; then 29022 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 29023 fi 29024 fi 29025 else 29026 # No user supplied value. Locate compiler ourselves. 29027 29028 # If we are cross compiling, assume cross compilation tools follows the 29029 # cross compilation standard where they are prefixed with the autoconf 29030 # standard name for the target. For example the binary 29031 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29032 # If we are not cross compiling, then the default compiler name will be 29033 # used. 29034 29035 CC= 29036 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29037 # before checking the rest of the PATH. 29038 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29039 # step, this should not be necessary. 29040 if test -n "$TOOLCHAIN_PATH"; then 29041 PATH_save="$PATH" 29042 PATH="$TOOLCHAIN_PATH" 29043 for ac_prog in $SEARCH_LIST 29044 do 29045 # Extract the first word of "$ac_prog", so it can be a program name with args. 29046 set dummy $ac_prog; ac_word=$2 29047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29048 $as_echo_n "checking for $ac_word... " >&6; } 29049 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 29050 $as_echo_n "(cached) " >&6 29051 else 29052 case $TOOLCHAIN_PATH_CC in 29053 [\\/]* | ?:[\\/]*) 29054 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 29055 ;; 29056 *) 29057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29058 for as_dir in $PATH 29059 do 29060 IFS=$as_save_IFS 29061 test -z "$as_dir" && as_dir=. 29062 for ac_exec_ext in '' $ac_executable_extensions; do 29063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29064 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 29065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29066 break 2 29067 fi 29068 done 29069 done 29070 IFS=$as_save_IFS 29071 29072 ;; 29073 esac 29074 fi 29075 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 29076 if test -n "$TOOLCHAIN_PATH_CC"; then 29077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 29078 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 29079 else 29080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29081 $as_echo "no" >&6; } 29082 fi 29083 29084 29085 test -n "$TOOLCHAIN_PATH_CC" && break 29086 done 29087 29088 CC=$TOOLCHAIN_PATH_CC 29089 PATH="$PATH_save" 29090 fi 29091 29092 # AC_PATH_PROGS can't be run multiple times with the same variable, 29093 # so create a new name for this run. 29094 if test "x$CC" = x; then 29095 for ac_prog in $SEARCH_LIST 29096 do 29097 # Extract the first word of "$ac_prog", so it can be a program name with args. 29098 set dummy $ac_prog; ac_word=$2 29099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29100 $as_echo_n "checking for $ac_word... " >&6; } 29101 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 29102 $as_echo_n "(cached) " >&6 29103 else 29104 case $POTENTIAL_CC in 29105 [\\/]* | ?:[\\/]*) 29106 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 29107 ;; 29108 *) 29109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29110 for as_dir in $PATH 29111 do 29112 IFS=$as_save_IFS 29113 test -z "$as_dir" && as_dir=. 29114 for ac_exec_ext in '' $ac_executable_extensions; do 29115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29116 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 29117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29118 break 2 29119 fi 29120 done 29121 done 29122 IFS=$as_save_IFS 29123 29124 ;; 29125 esac 29126 fi 29127 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 29128 if test -n "$POTENTIAL_CC"; then 29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 29130 $as_echo "$POTENTIAL_CC" >&6; } 29131 else 29132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29133 $as_echo "no" >&6; } 29134 fi 29135 29136 29137 test -n "$POTENTIAL_CC" && break 29138 done 29139 29140 CC=$POTENTIAL_CC 29141 fi 29142 29143 if test "x$CC" = x; then 29144 29145 # Print a helpful message on how to acquire the necessary build dependency. 29146 # devkit is the help tag: freetype, cups, alsa etc 29147 MISSING_DEPENDENCY=devkit 29148 29149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29150 cygwin_help $MISSING_DEPENDENCY 29151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29152 msys_help $MISSING_DEPENDENCY 29153 else 29154 PKGHANDLER_COMMAND= 29155 29156 case $PKGHANDLER in 29157 apt-get) 29158 apt_help $MISSING_DEPENDENCY ;; 29159 yum) 29160 yum_help $MISSING_DEPENDENCY ;; 29161 port) 29162 port_help $MISSING_DEPENDENCY ;; 29163 pkgutil) 29164 pkgutil_help $MISSING_DEPENDENCY ;; 29165 pkgadd) 29166 pkgadd_help $MISSING_DEPENDENCY ;; 29167 esac 29168 29169 if test "x$PKGHANDLER_COMMAND" != x; then 29170 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29171 fi 29172 fi 29173 29174 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29175 fi 29176 fi 29177 29178 # Now we have a compiler binary in CC. Make sure it's okay. 29179 29180 # Only process if variable expands to non-empty 29181 29182 if test "x$CC" != x; then 29183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29184 29185 # First separate the path from the arguments. This will split at the first 29186 # space. 29187 complete="$CC" 29188 path="${complete%% *}" 29189 tmp="$complete EOL" 29190 arguments="${tmp#* }" 29191 29192 # Input might be given as Windows format, start by converting to 29193 # unix format. 29194 new_path=`$CYGPATH -u "$path"` 29195 29196 # Now try to locate executable using which 29197 new_path=`$WHICH "$new_path" 2> /dev/null` 29198 # bat and cmd files are not always considered executable in cygwin causing which 29199 # to not find them 29200 if test "x$new_path" = x \ 29201 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29202 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29203 new_path=`$CYGPATH -u "$path"` 29204 fi 29205 if test "x$new_path" = x; then 29206 # Oops. Which didn't find the executable. 29207 # The splitting of arguments from the executable at a space might have been incorrect, 29208 # since paths with space are more likely in Windows. Give it another try with the whole 29209 # argument. 29210 path="$complete" 29211 arguments="EOL" 29212 new_path=`$CYGPATH -u "$path"` 29213 new_path=`$WHICH "$new_path" 2> /dev/null` 29214 # bat and cmd files are not always considered executable in cygwin causing which 29215 # to not find them 29216 if test "x$new_path" = x \ 29217 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29218 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29219 new_path=`$CYGPATH -u "$path"` 29220 fi 29221 if test "x$new_path" = x; then 29222 # It's still not found. Now this is an unrecoverable error. 29223 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 29224 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 29225 has_space=`$ECHO "$complete" | $GREP " "` 29226 if test "x$has_space" != x; then 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29228 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29229 fi 29230 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29231 fi 29232 fi 29233 29234 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29235 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29236 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29237 # "foo.exe" is OK but "foo" is an error. 29238 # 29239 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29240 # It is also a way to make sure we got the proper file name for the real test later on. 29241 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29242 if test "x$test_shortpath" = x; then 29243 # Short path failed, file does not exist as specified. 29244 # Try adding .exe or .cmd 29245 if test -f "${new_path}.exe"; then 29246 input_to_shortpath="${new_path}.exe" 29247 elif test -f "${new_path}.cmd"; then 29248 input_to_shortpath="${new_path}.cmd" 29249 else 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 29251 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29253 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29254 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29255 fi 29256 else 29257 input_to_shortpath="$new_path" 29258 fi 29259 29260 # Call helper function which possibly converts this using DOS-style short mode. 29261 # If so, the updated path is stored in $new_path. 29262 new_path="$input_to_shortpath" 29263 29264 input_path="$input_to_shortpath" 29265 # Check if we need to convert this using DOS-style short mode. If the path 29266 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29267 # take no chances and rewrite it. 29268 # Note: m4 eats our [], so we need to use [ and ] instead. 29269 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29270 if test "x$has_forbidden_chars" != x; then 29271 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29272 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29273 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29274 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29275 # Going to short mode and back again did indeed matter. Since short mode is 29276 # case insensitive, let's make it lowercase to improve readability. 29277 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29278 # Now convert it back to Unix-style (cygpath) 29279 input_path=`$CYGPATH -u "$shortmode_path"` 29280 new_path="$input_path" 29281 fi 29282 fi 29283 29284 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29285 if test "x$test_cygdrive_prefix" = x; then 29286 # As a simple fix, exclude /usr/bin since it's not a real path. 29287 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29288 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29289 # a path prefixed by /cygdrive for fixpath to work. 29290 new_path="$CYGWIN_ROOT_PATH$input_path" 29291 fi 29292 fi 29293 29294 # remove trailing .exe if any 29295 new_path="${new_path/%.exe/}" 29296 29297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29298 29299 # First separate the path from the arguments. This will split at the first 29300 # space. 29301 complete="$CC" 29302 path="${complete%% *}" 29303 tmp="$complete EOL" 29304 arguments="${tmp#* }" 29305 29306 # Input might be given as Windows format, start by converting to 29307 # unix format. 29308 new_path="$path" 29309 29310 windows_path="$new_path" 29311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29312 unix_path=`$CYGPATH -u "$windows_path"` 29313 new_path="$unix_path" 29314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29316 new_path="$unix_path" 29317 fi 29318 29319 29320 # Now try to locate executable using which 29321 new_path=`$WHICH "$new_path" 2> /dev/null` 29322 29323 if test "x$new_path" = x; then 29324 # Oops. Which didn't find the executable. 29325 # The splitting of arguments from the executable at a space might have been incorrect, 29326 # since paths with space are more likely in Windows. Give it another try with the whole 29327 # argument. 29328 path="$complete" 29329 arguments="EOL" 29330 new_path="$path" 29331 29332 windows_path="$new_path" 29333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29334 unix_path=`$CYGPATH -u "$windows_path"` 29335 new_path="$unix_path" 29336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29338 new_path="$unix_path" 29339 fi 29340 29341 29342 new_path=`$WHICH "$new_path" 2> /dev/null` 29343 # bat and cmd files are not always considered executable in MSYS causing which 29344 # to not find them 29345 if test "x$new_path" = x \ 29346 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29347 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29348 new_path="$path" 29349 29350 windows_path="$new_path" 29351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29352 unix_path=`$CYGPATH -u "$windows_path"` 29353 new_path="$unix_path" 29354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29356 new_path="$unix_path" 29357 fi 29358 29359 fi 29360 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 CC, which resolves as \"$complete\", is not found." >&5 29364 $as_echo "$as_me: The path of CC, 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 CC" "$LINENO" 5 29371 fi 29372 fi 29373 29374 # Now new_path has a complete unix path to the binary 29375 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29376 # Keep paths in /bin as-is, but remove trailing .exe if any 29377 new_path="${new_path/%.exe/}" 29378 # Do not save /bin paths to all_fixpath_prefixes! 29379 else 29380 # Not in mixed or Windows style, start by that. 29381 new_path=`cmd //c echo $new_path` 29382 29383 input_path="$new_path" 29384 # Check if we need to convert this using DOS-style short mode. If the path 29385 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29386 # take no chances and rewrite it. 29387 # Note: m4 eats our [], so we need to use [ and ] instead. 29388 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29389 if test "x$has_forbidden_chars" != x; then 29390 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29391 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29392 fi 29393 29394 # Output is in $new_path 29395 29396 windows_path="$new_path" 29397 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29398 unix_path=`$CYGPATH -u "$windows_path"` 29399 new_path="$unix_path" 29400 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29401 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29402 new_path="$unix_path" 29403 fi 29404 29405 # remove trailing .exe if any 29406 new_path="${new_path/%.exe/}" 29407 29408 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29409 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29410 fi 29411 29412 else 29413 # We're on a unix platform. Hooray! :) 29414 # First separate the path from the arguments. This will split at the first 29415 # space. 29416 complete="$CC" 29417 path="${complete%% *}" 29418 tmp="$complete EOL" 29419 arguments="${tmp#* }" 29420 29421 # Cannot rely on the command "which" here since it doesn't always work. 29422 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29423 if test -z "$is_absolute_path"; then 29424 # Path to executable is not absolute. Find it. 29425 IFS_save="$IFS" 29426 IFS=: 29427 for p in $PATH; do 29428 if test -f "$p/$path" && test -x "$p/$path"; then 29429 new_path="$p/$path" 29430 break 29431 fi 29432 done 29433 IFS="$IFS_save" 29434 else 29435 # This is an absolute path, we can use it without further modifications. 29436 new_path="$path" 29437 fi 29438 29439 if test "x$new_path" = x; then 29440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 29441 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 29442 has_space=`$ECHO "$complete" | $GREP " "` 29443 if test "x$has_space" != x; then 29444 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29445 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29446 fi 29447 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29448 fi 29449 fi 29450 29451 # Now join together the path and the arguments once again 29452 if test "x$arguments" != xEOL; then 29453 new_complete="$new_path ${arguments% *}" 29454 else 29455 new_complete="$new_path" 29456 fi 29457 29458 if test "x$complete" != "x$new_complete"; then 29459 CC="$new_complete" 29460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 29461 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 29462 fi 29463 fi 29464 29465 TEST_COMPILER="$CC" 29466 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29467 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29468 if test "x$OPENJDK_BUILD_OS" != xaix; then 29469 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 29471 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 29472 29473 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29474 # Follow a chain of symbolic links. Use readlink 29475 # where it exists, else fall back to horribly 29476 # complicated shell code. 29477 if test "x$READLINK_TESTED" != yes; then 29478 # On MacOSX there is a readlink tool with a different 29479 # purpose than the GNU readlink tool. Check the found readlink. 29480 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29481 if test "x$ISGNU" = x; then 29482 # A readlink that we do not know how to use. 29483 # Are there other non-GNU readlinks out there? 29484 READLINK_TESTED=yes 29485 READLINK= 29486 fi 29487 fi 29488 29489 if test "x$READLINK" != x; then 29490 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29491 else 29492 # Save the current directory for restoring afterwards 29493 STARTDIR=$PWD 29494 COUNTER=0 29495 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29496 sym_link_file=`$BASENAME $TEST_COMPILER` 29497 cd $sym_link_dir 29498 # Use -P flag to resolve symlinks in directories. 29499 cd `$THEPWDCMD -P` 29500 sym_link_dir=`$THEPWDCMD -P` 29501 # Resolve file symlinks 29502 while test $COUNTER -lt 20; do 29503 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29504 if test "x$ISLINK" == x; then 29505 # This is not a symbolic link! We are done! 29506 break 29507 fi 29508 # Again resolve directory symlinks since the target of the just found 29509 # link could be in a different directory 29510 cd `$DIRNAME $ISLINK` 29511 sym_link_dir=`$THEPWDCMD -P` 29512 sym_link_file=`$BASENAME $ISLINK` 29513 let COUNTER=COUNTER+1 29514 done 29515 cd $STARTDIR 29516 TEST_COMPILER=$sym_link_dir/$sym_link_file 29517 fi 29518 fi 29519 29520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29521 $as_echo "$TEST_COMPILER" >&6; } 29522 fi 29523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 29524 $as_echo_n "checking if CC is disguised ccache... " >&6; } 29525 29526 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29527 if test "x$COMPILER_BASENAME" = "xccache"; then 29528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29529 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29530 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29531 # We want to control ccache invocation ourselves, so ignore this cc and try 29532 # searching again. 29533 29534 # Remove the path to the fake ccache cc from the PATH 29535 RETRY_COMPILER_SAVED_PATH="$PATH" 29536 COMPILER_DIRNAME=`$DIRNAME $CC` 29537 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29538 29539 # Try again looking for our compiler 29540 if test -n "$ac_tool_prefix"; then 29541 for ac_prog in $TOOLCHAIN_CC_BINARY 29542 do 29543 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29544 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29546 $as_echo_n "checking for $ac_word... " >&6; } 29547 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 29548 $as_echo_n "(cached) " >&6 29549 else 29550 if test -n "$PROPER_COMPILER_CC"; then 29551 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 29552 else 29553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29554 for as_dir in $PATH 29555 do 29556 IFS=$as_save_IFS 29557 test -z "$as_dir" && as_dir=. 29558 for ac_exec_ext in '' $ac_executable_extensions; do 29559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29560 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 29561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29562 break 2 29563 fi 29564 done 29565 done 29566 IFS=$as_save_IFS 29567 29568 fi 29569 fi 29570 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 29571 if test -n "$PROPER_COMPILER_CC"; then 29572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29573 $as_echo "$PROPER_COMPILER_CC" >&6; } 29574 else 29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29576 $as_echo "no" >&6; } 29577 fi 29578 29579 29580 test -n "$PROPER_COMPILER_CC" && break 29581 done 29582 fi 29583 if test -z "$PROPER_COMPILER_CC"; then 29584 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 29585 for ac_prog in $TOOLCHAIN_CC_BINARY 29586 do 29587 # Extract the first word of "$ac_prog", so it can be a program name with args. 29588 set dummy $ac_prog; ac_word=$2 29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29590 $as_echo_n "checking for $ac_word... " >&6; } 29591 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 29592 $as_echo_n "(cached) " >&6 29593 else 29594 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 29595 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 29596 else 29597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29598 for as_dir in $PATH 29599 do 29600 IFS=$as_save_IFS 29601 test -z "$as_dir" && as_dir=. 29602 for ac_exec_ext in '' $ac_executable_extensions; do 29603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29604 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 29605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29606 break 2 29607 fi 29608 done 29609 done 29610 IFS=$as_save_IFS 29611 29612 fi 29613 fi 29614 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 29615 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 29616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 29617 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 29618 else 29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29620 $as_echo "no" >&6; } 29621 fi 29622 29623 29624 test -n "$ac_ct_PROPER_COMPILER_CC" && break 29625 done 29626 29627 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 29628 PROPER_COMPILER_CC="" 29629 else 29630 case $cross_compiling:$ac_tool_warned in 29631 yes:) 29632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29634 ac_tool_warned=yes ;; 29635 esac 29636 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 29637 fi 29638 fi 29639 29640 29641 # Only process if variable expands to non-empty 29642 29643 if test "x$PROPER_COMPILER_CC" != x; then 29644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29645 29646 # First separate the path from the arguments. This will split at the first 29647 # space. 29648 complete="$PROPER_COMPILER_CC" 29649 path="${complete%% *}" 29650 tmp="$complete EOL" 29651 arguments="${tmp#* }" 29652 29653 # Input might be given as Windows format, start by converting to 29654 # unix format. 29655 new_path=`$CYGPATH -u "$path"` 29656 29657 # Now try to locate executable using which 29658 new_path=`$WHICH "$new_path" 2> /dev/null` 29659 # bat and cmd files are not always considered executable in cygwin causing which 29660 # to not find them 29661 if test "x$new_path" = x \ 29662 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29663 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29664 new_path=`$CYGPATH -u "$path"` 29665 fi 29666 if test "x$new_path" = x; then 29667 # Oops. Which didn't find the executable. 29668 # The splitting of arguments from the executable at a space might have been incorrect, 29669 # since paths with space are more likely in Windows. Give it another try with the whole 29670 # argument. 29671 path="$complete" 29672 arguments="EOL" 29673 new_path=`$CYGPATH -u "$path"` 29674 new_path=`$WHICH "$new_path" 2> /dev/null` 29675 # bat and cmd files are not always considered executable in cygwin causing which 29676 # to not find them 29677 if test "x$new_path" = x \ 29678 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29679 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29680 new_path=`$CYGPATH -u "$path"` 29681 fi 29682 if test "x$new_path" = x; then 29683 # It's still not found. Now this is an unrecoverable error. 29684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29685 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29686 has_space=`$ECHO "$complete" | $GREP " "` 29687 if test "x$has_space" != x; then 29688 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29689 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29690 fi 29691 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29692 fi 29693 fi 29694 29695 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29696 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29697 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29698 # "foo.exe" is OK but "foo" is an error. 29699 # 29700 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29701 # It is also a way to make sure we got the proper file name for the real test later on. 29702 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29703 if test "x$test_shortpath" = x; then 29704 # Short path failed, file does not exist as specified. 29705 # Try adding .exe or .cmd 29706 if test -f "${new_path}.exe"; then 29707 input_to_shortpath="${new_path}.exe" 29708 elif test -f "${new_path}.cmd"; then 29709 input_to_shortpath="${new_path}.cmd" 29710 else 29711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 29712 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 29713 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29714 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29715 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29716 fi 29717 else 29718 input_to_shortpath="$new_path" 29719 fi 29720 29721 # Call helper function which possibly converts this using DOS-style short mode. 29722 # If so, the updated path is stored in $new_path. 29723 new_path="$input_to_shortpath" 29724 29725 input_path="$input_to_shortpath" 29726 # Check if we need to convert this using DOS-style short mode. If the path 29727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29728 # take no chances and rewrite it. 29729 # Note: m4 eats our [], so we need to use [ and ] instead. 29730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29731 if test "x$has_forbidden_chars" != x; then 29732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29733 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29734 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29735 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29736 # Going to short mode and back again did indeed matter. Since short mode is 29737 # case insensitive, let's make it lowercase to improve readability. 29738 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29739 # Now convert it back to Unix-style (cygpath) 29740 input_path=`$CYGPATH -u "$shortmode_path"` 29741 new_path="$input_path" 29742 fi 29743 fi 29744 29745 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29746 if test "x$test_cygdrive_prefix" = x; then 29747 # As a simple fix, exclude /usr/bin since it's not a real path. 29748 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29749 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29750 # a path prefixed by /cygdrive for fixpath to work. 29751 new_path="$CYGWIN_ROOT_PATH$input_path" 29752 fi 29753 fi 29754 29755 # remove trailing .exe if any 29756 new_path="${new_path/%.exe/}" 29757 29758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29759 29760 # First separate the path from the arguments. This will split at the first 29761 # space. 29762 complete="$PROPER_COMPILER_CC" 29763 path="${complete%% *}" 29764 tmp="$complete EOL" 29765 arguments="${tmp#* }" 29766 29767 # Input might be given as Windows format, start by converting to 29768 # unix format. 29769 new_path="$path" 29770 29771 windows_path="$new_path" 29772 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29773 unix_path=`$CYGPATH -u "$windows_path"` 29774 new_path="$unix_path" 29775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29776 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29777 new_path="$unix_path" 29778 fi 29779 29780 29781 # Now try to locate executable using which 29782 new_path=`$WHICH "$new_path" 2> /dev/null` 29783 29784 if test "x$new_path" = x; then 29785 # Oops. Which didn't find the executable. 29786 # The splitting of arguments from the executable at a space might have been incorrect, 29787 # since paths with space are more likely in Windows. Give it another try with the whole 29788 # argument. 29789 path="$complete" 29790 arguments="EOL" 29791 new_path="$path" 29792 29793 windows_path="$new_path" 29794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29795 unix_path=`$CYGPATH -u "$windows_path"` 29796 new_path="$unix_path" 29797 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29798 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29799 new_path="$unix_path" 29800 fi 29801 29802 29803 new_path=`$WHICH "$new_path" 2> /dev/null` 29804 # bat and cmd files are not always considered executable in MSYS causing which 29805 # to not find them 29806 if test "x$new_path" = x \ 29807 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29808 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29809 new_path="$path" 29810 29811 windows_path="$new_path" 29812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29813 unix_path=`$CYGPATH -u "$windows_path"` 29814 new_path="$unix_path" 29815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29816 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29817 new_path="$unix_path" 29818 fi 29819 29820 fi 29821 29822 if test "x$new_path" = x; then 29823 # It's still not found. Now this is an unrecoverable error. 29824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29825 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29826 has_space=`$ECHO "$complete" | $GREP " "` 29827 if test "x$has_space" != x; then 29828 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29829 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29830 fi 29831 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29832 fi 29833 fi 29834 29835 # Now new_path has a complete unix path to the binary 29836 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29837 # Keep paths in /bin as-is, but remove trailing .exe if any 29838 new_path="${new_path/%.exe/}" 29839 # Do not save /bin paths to all_fixpath_prefixes! 29840 else 29841 # Not in mixed or Windows style, start by that. 29842 new_path=`cmd //c echo $new_path` 29843 29844 input_path="$new_path" 29845 # Check if we need to convert this using DOS-style short mode. If the path 29846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29847 # take no chances and rewrite it. 29848 # Note: m4 eats our [], so we need to use [ and ] instead. 29849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29850 if test "x$has_forbidden_chars" != x; then 29851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29852 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29853 fi 29854 29855 # Output is in $new_path 29856 29857 windows_path="$new_path" 29858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29859 unix_path=`$CYGPATH -u "$windows_path"` 29860 new_path="$unix_path" 29861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29862 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29863 new_path="$unix_path" 29864 fi 29865 29866 # remove trailing .exe if any 29867 new_path="${new_path/%.exe/}" 29868 29869 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29870 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29871 fi 29872 29873 else 29874 # We're on a unix platform. Hooray! :) 29875 # First separate the path from the arguments. This will split at the first 29876 # space. 29877 complete="$PROPER_COMPILER_CC" 29878 path="${complete%% *}" 29879 tmp="$complete EOL" 29880 arguments="${tmp#* }" 29881 29882 # Cannot rely on the command "which" here since it doesn't always work. 29883 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29884 if test -z "$is_absolute_path"; then 29885 # Path to executable is not absolute. Find it. 29886 IFS_save="$IFS" 29887 IFS=: 29888 for p in $PATH; do 29889 if test -f "$p/$path" && test -x "$p/$path"; then 29890 new_path="$p/$path" 29891 break 29892 fi 29893 done 29894 IFS="$IFS_save" 29895 else 29896 # This is an absolute path, we can use it without further modifications. 29897 new_path="$path" 29898 fi 29899 29900 if test "x$new_path" = x; then 29901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 29902 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 29903 has_space=`$ECHO "$complete" | $GREP " "` 29904 if test "x$has_space" != x; then 29905 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29906 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29907 fi 29908 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 29909 fi 29910 fi 29911 29912 # Now join together the path and the arguments once again 29913 if test "x$arguments" != xEOL; then 29914 new_complete="$new_path ${arguments% *}" 29915 else 29916 new_complete="$new_path" 29917 fi 29918 29919 if test "x$complete" != "x$new_complete"; then 29920 PROPER_COMPILER_CC="$new_complete" 29921 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 29922 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 29923 fi 29924 fi 29925 29926 PATH="$RETRY_COMPILER_SAVED_PATH" 29927 29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 29929 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 29930 29931 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29932 # Follow a chain of symbolic links. Use readlink 29933 # where it exists, else fall back to horribly 29934 # complicated shell code. 29935 if test "x$READLINK_TESTED" != yes; then 29936 # On MacOSX there is a readlink tool with a different 29937 # purpose than the GNU readlink tool. Check the found readlink. 29938 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29939 if test "x$ISGNU" = x; then 29940 # A readlink that we do not know how to use. 29941 # Are there other non-GNU readlinks out there? 29942 READLINK_TESTED=yes 29943 READLINK= 29944 fi 29945 fi 29946 29947 if test "x$READLINK" != x; then 29948 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 29949 else 29950 # Save the current directory for restoring afterwards 29951 STARTDIR=$PWD 29952 COUNTER=0 29953 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 29954 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 29955 cd $sym_link_dir 29956 # Use -P flag to resolve symlinks in directories. 29957 cd `$THEPWDCMD -P` 29958 sym_link_dir=`$THEPWDCMD -P` 29959 # Resolve file symlinks 29960 while test $COUNTER -lt 20; do 29961 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29962 if test "x$ISLINK" == x; then 29963 # This is not a symbolic link! We are done! 29964 break 29965 fi 29966 # Again resolve directory symlinks since the target of the just found 29967 # link could be in a different directory 29968 cd `$DIRNAME $ISLINK` 29969 sym_link_dir=`$THEPWDCMD -P` 29970 sym_link_file=`$BASENAME $ISLINK` 29971 let COUNTER=COUNTER+1 29972 done 29973 cd $STARTDIR 29974 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 29975 fi 29976 fi 29977 29978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29979 $as_echo "$PROPER_COMPILER_CC" >&6; } 29980 CC="$PROPER_COMPILER_CC" 29981 else 29982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 29983 $as_echo "no, keeping CC" >&6; } 29984 fi 29985 29986 29987 COMPILER=$CC 29988 COMPILER_NAME=$COMPILER_NAME 29989 29990 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29991 # cc -V output typically looks like 29992 # cc: Sun C 5.12 Linux_i386 2011/11/16 29993 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29994 # Check that this is likely to be the Solaris Studio cc. 29995 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29996 if test $? -ne 0; then 29997 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29998 { $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 29999 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30000 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30001 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30002 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30003 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30004 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30005 fi 30006 # Remove usage instructions (if present), and 30007 # collapse compiler output into a single line 30008 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30009 $SED -e 's/ *[Uu]sage:.*//'` 30010 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30011 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30012 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30013 # xlc -qversion output typically looks like 30014 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30015 # Version: 11.01.0000.0015 30016 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30017 # Check that this is likely to be the IBM XL C compiler. 30018 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30019 if test $? -ne 0; then 30020 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30021 { $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 30022 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30023 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30024 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30025 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30026 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30027 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30028 fi 30029 # Collapse compiler output into a single line 30030 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30031 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30032 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30033 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30034 # There is no specific version flag, but all output starts with a version string. 30035 # First line typically looks something like: 30036 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30037 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30038 # Check that this is likely to be Microsoft CL.EXE. 30039 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30040 if test $? -ne 0; then 30041 { $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 30042 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30043 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30044 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30045 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30046 fi 30047 # Collapse compiler output into a single line 30048 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30049 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30050 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30051 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30052 # gcc --version output typically looks like 30053 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30054 # Copyright (C) 2013 Free Software Foundation, Inc. 30055 # This is free software; see the source for copying conditions. There is NO 30056 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30057 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30058 # Check that this is likely to be GCC. 30059 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30060 if test $? -ne 0; then 30061 { $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 30062 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30063 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30064 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30065 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30066 fi 30067 # Remove Copyright and legalese from version string, and 30068 # collapse into a single line 30069 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30070 $SED -e 's/ *Copyright .*//'` 30071 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30072 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30073 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30074 # clang --version output typically looks like 30075 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30076 # clang version 3.3 (tags/RELEASE_33/final) 30077 # or 30078 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30079 # Target: x86_64-pc-linux-gnu 30080 # Thread model: posix 30081 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30082 # Check that this is likely to be clang 30083 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30084 if test $? -ne 0; then 30085 { $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 30086 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30087 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30088 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30089 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30090 fi 30091 # Collapse compiler output into a single line 30092 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30093 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30094 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30095 else 30096 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30097 fi 30098 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30099 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30100 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30101 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 30102 30103 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30104 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30105 30106 30107 # Now that we have resolved CC ourself, let autoconf have its go at it 30108 ac_ext=c 30109 ac_cpp='$CPP $CPPFLAGS' 30110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30112 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30113 if test -n "$ac_tool_prefix"; then 30114 for ac_prog in $CC 30115 do 30116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30117 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30119 $as_echo_n "checking for $ac_word... " >&6; } 30120 if ${ac_cv_prog_CC+:} false; then : 30121 $as_echo_n "(cached) " >&6 30122 else 30123 if test -n "$CC"; then 30124 ac_cv_prog_CC="$CC" # Let the user override the test. 30125 else 30126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30127 for as_dir in $PATH 30128 do 30129 IFS=$as_save_IFS 30130 test -z "$as_dir" && as_dir=. 30131 for ac_exec_ext in '' $ac_executable_extensions; do 30132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30133 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 30134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30135 break 2 30136 fi 30137 done 30138 done 30139 IFS=$as_save_IFS 30140 30141 fi 30142 fi 30143 CC=$ac_cv_prog_CC 30144 if test -n "$CC"; then 30145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30146 $as_echo "$CC" >&6; } 30147 else 30148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30149 $as_echo "no" >&6; } 30150 fi 30151 30152 30153 test -n "$CC" && break 30154 done 30155 fi 30156 if test -z "$CC"; then 30157 ac_ct_CC=$CC 30158 for ac_prog in $CC 30159 do 30160 # Extract the first word of "$ac_prog", so it can be a program name with args. 30161 set dummy $ac_prog; ac_word=$2 30162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30163 $as_echo_n "checking for $ac_word... " >&6; } 30164 if ${ac_cv_prog_ac_ct_CC+:} false; then : 30165 $as_echo_n "(cached) " >&6 30166 else 30167 if test -n "$ac_ct_CC"; then 30168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30169 else 30170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30171 for as_dir in $PATH 30172 do 30173 IFS=$as_save_IFS 30174 test -z "$as_dir" && as_dir=. 30175 for ac_exec_ext in '' $ac_executable_extensions; do 30176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30177 ac_cv_prog_ac_ct_CC="$ac_prog" 30178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30179 break 2 30180 fi 30181 done 30182 done 30183 IFS=$as_save_IFS 30184 30185 fi 30186 fi 30187 ac_ct_CC=$ac_cv_prog_ac_ct_CC 30188 if test -n "$ac_ct_CC"; then 30189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30190 $as_echo "$ac_ct_CC" >&6; } 30191 else 30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30193 $as_echo "no" >&6; } 30194 fi 30195 30196 30197 test -n "$ac_ct_CC" && break 30198 done 30199 30200 if test "x$ac_ct_CC" = x; then 30201 CC="" 30202 else 30203 case $cross_compiling:$ac_tool_warned in 30204 yes:) 30205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30207 ac_tool_warned=yes ;; 30208 esac 30209 CC=$ac_ct_CC 30210 fi 30211 fi 30212 30213 30214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30216 as_fn_error $? "no acceptable C compiler found in \$PATH 30217 See \`config.log' for more details" "$LINENO" 5; } 30218 30219 # Provide some information about the compiler. 30220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 30221 set X $ac_compile 30222 ac_compiler=$2 30223 for ac_option in --version -v -V -qversion; do 30224 { { ac_try="$ac_compiler $ac_option >&5" 30225 case "(($ac_try" in 30226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30227 *) ac_try_echo=$ac_try;; 30228 esac 30229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30230 $as_echo "$ac_try_echo"; } >&5 30231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30232 ac_status=$? 30233 if test -s conftest.err; then 30234 sed '10a\ 30235 ... rest of stderr output deleted ... 30236 10q' conftest.err >conftest.er1 30237 cat conftest.er1 >&5 30238 fi 30239 rm -f conftest.er1 conftest.err 30240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30241 test $ac_status = 0; } 30242 done 30243 30244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30245 /* end confdefs.h. */ 30246 30247 int 30248 main () 30249 { 30250 30251 ; 30252 return 0; 30253 } 30254 _ACEOF 30255 ac_clean_files_save=$ac_clean_files 30256 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 30257 # Try to create an executable without -o first, disregard a.out. 30258 # It will help us diagnose broken compilers, and finding out an intuition 30259 # of exeext. 30260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30261 $as_echo_n "checking whether the C compiler works... " >&6; } 30262 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 30263 30264 # The possible output files: 30265 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 30266 30267 ac_rmfiles= 30268 for ac_file in $ac_files 30269 do 30270 case $ac_file in 30271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 30272 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 30273 esac 30274 done 30275 rm -f $ac_rmfiles 30276 30277 if { { ac_try="$ac_link_default" 30278 case "(($ac_try" in 30279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30280 *) ac_try_echo=$ac_try;; 30281 esac 30282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30283 $as_echo "$ac_try_echo"; } >&5 30284 (eval "$ac_link_default") 2>&5 30285 ac_status=$? 30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30287 test $ac_status = 0; }; then : 30288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 30289 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 30290 # in a Makefile. We should not override ac_cv_exeext if it was cached, 30291 # so that the user can short-circuit this test for compilers unknown to 30292 # Autoconf. 30293 for ac_file in $ac_files '' 30294 do 30295 test -f "$ac_file" || continue 30296 case $ac_file in 30297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 30298 ;; 30299 [ab].out ) 30300 # We found the default executable, but exeext='' is most 30301 # certainly right. 30302 break;; 30303 *.* ) 30304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 30305 then :; else 30306 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 30307 fi 30308 # We set ac_cv_exeext here because the later test for it is not 30309 # safe: cross compilers may not add the suffix if given an `-o' 30310 # argument, so we may need to know it at that point already. 30311 # Even if this section looks crufty: it has the advantage of 30312 # actually working. 30313 break;; 30314 * ) 30315 break;; 30316 esac 30317 done 30318 test "$ac_cv_exeext" = no && ac_cv_exeext= 30319 30320 else 30321 ac_file='' 30322 fi 30323 if test -z "$ac_file"; then : 30324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30325 $as_echo "no" >&6; } 30326 $as_echo "$as_me: failed program was:" >&5 30327 sed 's/^/| /' conftest.$ac_ext >&5 30328 30329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30331 as_fn_error 77 "C compiler cannot create executables 30332 See \`config.log' for more details" "$LINENO" 5; } 30333 else 30334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30335 $as_echo "yes" >&6; } 30336 fi 30337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 30338 $as_echo_n "checking for C compiler default output file name... " >&6; } 30339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 30340 $as_echo "$ac_file" >&6; } 30341 ac_exeext=$ac_cv_exeext 30342 30343 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 30344 ac_clean_files=$ac_clean_files_save 30345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 30346 $as_echo_n "checking for suffix of executables... " >&6; } 30347 if { { ac_try="$ac_link" 30348 case "(($ac_try" in 30349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30350 *) ac_try_echo=$ac_try;; 30351 esac 30352 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30353 $as_echo "$ac_try_echo"; } >&5 30354 (eval "$ac_link") 2>&5 30355 ac_status=$? 30356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30357 test $ac_status = 0; }; then : 30358 # If both `conftest.exe' and `conftest' are `present' (well, observable) 30359 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 30360 # work properly (i.e., refer to `conftest.exe'), while it won't with 30361 # `rm'. 30362 for ac_file in conftest.exe conftest conftest.*; do 30363 test -f "$ac_file" || continue 30364 case $ac_file in 30365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 30366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 30367 break;; 30368 * ) break;; 30369 esac 30370 done 30371 else 30372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30374 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 30375 See \`config.log' for more details" "$LINENO" 5; } 30376 fi 30377 rm -f conftest conftest$ac_cv_exeext 30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 30379 $as_echo "$ac_cv_exeext" >&6; } 30380 30381 rm -f conftest.$ac_ext 30382 EXEEXT=$ac_cv_exeext 30383 ac_exeext=$EXEEXT 30384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30385 /* end confdefs.h. */ 30386 #include <stdio.h> 30387 int 30388 main () 30389 { 30390 FILE *f = fopen ("conftest.out", "w"); 30391 return ferror (f) || fclose (f) != 0; 30392 30393 ; 30394 return 0; 30395 } 30396 _ACEOF 30397 ac_clean_files="$ac_clean_files conftest.out" 30398 # Check that the compiler produces executables we can run. If not, either 30399 # the compiler is broken, or we cross compile. 30400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 30401 $as_echo_n "checking whether we are cross compiling... " >&6; } 30402 if test "$cross_compiling" != yes; then 30403 { { ac_try="$ac_link" 30404 case "(($ac_try" in 30405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30406 *) ac_try_echo=$ac_try;; 30407 esac 30408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30409 $as_echo "$ac_try_echo"; } >&5 30410 (eval "$ac_link") 2>&5 30411 ac_status=$? 30412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30413 test $ac_status = 0; } 30414 if { ac_try='./conftest$ac_cv_exeext' 30415 { { case "(($ac_try" in 30416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30417 *) ac_try_echo=$ac_try;; 30418 esac 30419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30420 $as_echo "$ac_try_echo"; } >&5 30421 (eval "$ac_try") 2>&5 30422 ac_status=$? 30423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30424 test $ac_status = 0; }; }; then 30425 cross_compiling=no 30426 else 30427 if test "$cross_compiling" = maybe; then 30428 cross_compiling=yes 30429 else 30430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30432 as_fn_error $? "cannot run C compiled programs. 30433 If you meant to cross compile, use \`--host'. 30434 See \`config.log' for more details" "$LINENO" 5; } 30435 fi 30436 fi 30437 fi 30438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 30439 $as_echo "$cross_compiling" >&6; } 30440 30441 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 30442 ac_clean_files=$ac_clean_files_save 30443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 30444 $as_echo_n "checking for suffix of object files... " >&6; } 30445 if ${ac_cv_objext+:} false; then : 30446 $as_echo_n "(cached) " >&6 30447 else 30448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30449 /* end confdefs.h. */ 30450 30451 int 30452 main () 30453 { 30454 30455 ; 30456 return 0; 30457 } 30458 _ACEOF 30459 rm -f conftest.o conftest.obj 30460 if { { ac_try="$ac_compile" 30461 case "(($ac_try" in 30462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30463 *) ac_try_echo=$ac_try;; 30464 esac 30465 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30466 $as_echo "$ac_try_echo"; } >&5 30467 (eval "$ac_compile") 2>&5 30468 ac_status=$? 30469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30470 test $ac_status = 0; }; then : 30471 for ac_file in conftest.o conftest.obj conftest.*; do 30472 test -f "$ac_file" || continue; 30473 case $ac_file in 30474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 30475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 30476 break;; 30477 esac 30478 done 30479 else 30480 $as_echo "$as_me: failed program was:" >&5 30481 sed 's/^/| /' conftest.$ac_ext >&5 30482 30483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30485 as_fn_error $? "cannot compute suffix of object files: cannot compile 30486 See \`config.log' for more details" "$LINENO" 5; } 30487 fi 30488 rm -f conftest.$ac_cv_objext conftest.$ac_ext 30489 fi 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 30491 $as_echo "$ac_cv_objext" >&6; } 30492 OBJEXT=$ac_cv_objext 30493 ac_objext=$OBJEXT 30494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 30495 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 30496 if ${ac_cv_c_compiler_gnu+:} false; then : 30497 $as_echo_n "(cached) " >&6 30498 else 30499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30500 /* end confdefs.h. */ 30501 30502 int 30503 main () 30504 { 30505 #ifndef __GNUC__ 30506 choke me 30507 #endif 30508 30509 ; 30510 return 0; 30511 } 30512 _ACEOF 30513 if ac_fn_c_try_compile "$LINENO"; then : 30514 ac_compiler_gnu=yes 30515 else 30516 ac_compiler_gnu=no 30517 fi 30518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30519 ac_cv_c_compiler_gnu=$ac_compiler_gnu 30520 30521 fi 30522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 30523 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 30524 if test $ac_compiler_gnu = yes; then 30525 GCC=yes 30526 else 30527 GCC= 30528 fi 30529 ac_test_CFLAGS=${CFLAGS+set} 30530 ac_save_CFLAGS=$CFLAGS 30531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 30532 $as_echo_n "checking whether $CC accepts -g... " >&6; } 30533 if ${ac_cv_prog_cc_g+:} false; then : 30534 $as_echo_n "(cached) " >&6 30535 else 30536 ac_save_c_werror_flag=$ac_c_werror_flag 30537 ac_c_werror_flag=yes 30538 ac_cv_prog_cc_g=no 30539 CFLAGS="-g" 30540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30541 /* end confdefs.h. */ 30542 30543 int 30544 main () 30545 { 30546 30547 ; 30548 return 0; 30549 } 30550 _ACEOF 30551 if ac_fn_c_try_compile "$LINENO"; then : 30552 ac_cv_prog_cc_g=yes 30553 else 30554 CFLAGS="" 30555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30556 /* end confdefs.h. */ 30557 30558 int 30559 main () 30560 { 30561 30562 ; 30563 return 0; 30564 } 30565 _ACEOF 30566 if ac_fn_c_try_compile "$LINENO"; then : 30567 30568 else 30569 ac_c_werror_flag=$ac_save_c_werror_flag 30570 CFLAGS="-g" 30571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30572 /* end confdefs.h. */ 30573 30574 int 30575 main () 30576 { 30577 30578 ; 30579 return 0; 30580 } 30581 _ACEOF 30582 if ac_fn_c_try_compile "$LINENO"; then : 30583 ac_cv_prog_cc_g=yes 30584 fi 30585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30586 fi 30587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30588 fi 30589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30590 ac_c_werror_flag=$ac_save_c_werror_flag 30591 fi 30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 30593 $as_echo "$ac_cv_prog_cc_g" >&6; } 30594 if test "$ac_test_CFLAGS" = set; then 30595 CFLAGS=$ac_save_CFLAGS 30596 elif test $ac_cv_prog_cc_g = yes; then 30597 if test "$GCC" = yes; then 30598 CFLAGS="-g -O2" 30599 else 30600 CFLAGS="-g" 30601 fi 30602 else 30603 if test "$GCC" = yes; then 30604 CFLAGS="-O2" 30605 else 30606 CFLAGS= 30607 fi 30608 fi 30609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 30610 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 30611 if ${ac_cv_prog_cc_c89+:} false; then : 30612 $as_echo_n "(cached) " >&6 30613 else 30614 ac_cv_prog_cc_c89=no 30615 ac_save_CC=$CC 30616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30617 /* end confdefs.h. */ 30618 #include <stdarg.h> 30619 #include <stdio.h> 30620 struct stat; 30621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 30622 struct buf { int x; }; 30623 FILE * (*rcsopen) (struct buf *, struct stat *, int); 30624 static char *e (p, i) 30625 char **p; 30626 int i; 30627 { 30628 return p[i]; 30629 } 30630 static char *f (char * (*g) (char **, int), char **p, ...) 30631 { 30632 char *s; 30633 va_list v; 30634 va_start (v,p); 30635 s = g (p, va_arg (v,int)); 30636 va_end (v); 30637 return s; 30638 } 30639 30640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 30641 function prototypes and stuff, but not '\xHH' hex character constants. 30642 These don't provoke an error unfortunately, instead are silently treated 30643 as 'x'. The following induces an error, until -std is added to get 30644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 30645 array size at least. It's necessary to write '\x00'==0 to get something 30646 that's true only with -std. */ 30647 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 30648 30649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 30650 inside strings and character constants. */ 30651 #define FOO(x) 'x' 30652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 30653 30654 int test (int i, double x); 30655 struct s1 {int (*f) (int a);}; 30656 struct s2 {int (*f) (double a);}; 30657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 30658 int argc; 30659 char **argv; 30660 int 30661 main () 30662 { 30663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 30664 ; 30665 return 0; 30666 } 30667 _ACEOF 30668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 30669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 30670 do 30671 CC="$ac_save_CC $ac_arg" 30672 if ac_fn_c_try_compile "$LINENO"; then : 30673 ac_cv_prog_cc_c89=$ac_arg 30674 fi 30675 rm -f core conftest.err conftest.$ac_objext 30676 test "x$ac_cv_prog_cc_c89" != "xno" && break 30677 done 30678 rm -f conftest.$ac_ext 30679 CC=$ac_save_CC 30680 30681 fi 30682 # AC_CACHE_VAL 30683 case "x$ac_cv_prog_cc_c89" in 30684 x) 30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 30686 $as_echo "none needed" >&6; } ;; 30687 xno) 30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 30689 $as_echo "unsupported" >&6; } ;; 30690 *) 30691 CC="$CC $ac_cv_prog_cc_c89" 30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 30693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 30694 esac 30695 if test "x$ac_cv_prog_cc_c89" != xno; then : 30696 30697 fi 30698 30699 ac_ext=cpp 30700 ac_cpp='$CXXCPP $CPPFLAGS' 30701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30704 30705 30706 30707 COMPILER_NAME=C++ 30708 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 30709 30710 if test "x$CXX" != x; then 30711 # User has supplied compiler name already, always let that override. 30712 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 30713 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 30714 if test "x`basename $CXX`" = "x$CXX"; then 30715 # A command without a complete path is provided, search $PATH. 30716 30717 for ac_prog in $CXX 30718 do 30719 # Extract the first word of "$ac_prog", so it can be a program name with args. 30720 set dummy $ac_prog; ac_word=$2 30721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30722 $as_echo_n "checking for $ac_word... " >&6; } 30723 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 30724 $as_echo_n "(cached) " >&6 30725 else 30726 case $POTENTIAL_CXX in 30727 [\\/]* | ?:[\\/]*) 30728 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 30729 ;; 30730 *) 30731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30732 for as_dir in $PATH 30733 do 30734 IFS=$as_save_IFS 30735 test -z "$as_dir" && as_dir=. 30736 for ac_exec_ext in '' $ac_executable_extensions; do 30737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30738 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 30739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30740 break 2 30741 fi 30742 done 30743 done 30744 IFS=$as_save_IFS 30745 30746 ;; 30747 esac 30748 fi 30749 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30750 if test -n "$POTENTIAL_CXX"; then 30751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30752 $as_echo "$POTENTIAL_CXX" >&6; } 30753 else 30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30755 $as_echo "no" >&6; } 30756 fi 30757 30758 30759 test -n "$POTENTIAL_CXX" && break 30760 done 30761 30762 if test "x$POTENTIAL_CXX" != x; then 30763 CXX=$POTENTIAL_CXX 30764 else 30765 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 30766 fi 30767 else 30768 # Otherwise it might already be a complete path 30769 if test ! -x "$CXX"; then 30770 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 30771 fi 30772 fi 30773 else 30774 # No user supplied value. Locate compiler ourselves. 30775 30776 # If we are cross compiling, assume cross compilation tools follows the 30777 # cross compilation standard where they are prefixed with the autoconf 30778 # standard name for the target. For example the binary 30779 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 30780 # If we are not cross compiling, then the default compiler name will be 30781 # used. 30782 30783 CXX= 30784 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 30785 # before checking the rest of the PATH. 30786 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 30787 # step, this should not be necessary. 30788 if test -n "$TOOLCHAIN_PATH"; then 30789 PATH_save="$PATH" 30790 PATH="$TOOLCHAIN_PATH" 30791 for ac_prog in $SEARCH_LIST 30792 do 30793 # Extract the first word of "$ac_prog", so it can be a program name with args. 30794 set dummy $ac_prog; ac_word=$2 30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30796 $as_echo_n "checking for $ac_word... " >&6; } 30797 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 30798 $as_echo_n "(cached) " >&6 30799 else 30800 case $TOOLCHAIN_PATH_CXX in 30801 [\\/]* | ?:[\\/]*) 30802 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 30803 ;; 30804 *) 30805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30806 for as_dir in $PATH 30807 do 30808 IFS=$as_save_IFS 30809 test -z "$as_dir" && as_dir=. 30810 for ac_exec_ext in '' $ac_executable_extensions; do 30811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30812 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 30813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30814 break 2 30815 fi 30816 done 30817 done 30818 IFS=$as_save_IFS 30819 30820 ;; 30821 esac 30822 fi 30823 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 30824 if test -n "$TOOLCHAIN_PATH_CXX"; then 30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 30826 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 30827 else 30828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30829 $as_echo "no" >&6; } 30830 fi 30831 30832 30833 test -n "$TOOLCHAIN_PATH_CXX" && break 30834 done 30835 30836 CXX=$TOOLCHAIN_PATH_CXX 30837 PATH="$PATH_save" 30838 fi 30839 30840 # AC_PATH_PROGS can't be run multiple times with the same variable, 30841 # so create a new name for this run. 30842 if test "x$CXX" = x; then 30843 for ac_prog in $SEARCH_LIST 30844 do 30845 # Extract the first word of "$ac_prog", so it can be a program name with args. 30846 set dummy $ac_prog; ac_word=$2 30847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30848 $as_echo_n "checking for $ac_word... " >&6; } 30849 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 30850 $as_echo_n "(cached) " >&6 30851 else 30852 case $POTENTIAL_CXX in 30853 [\\/]* | ?:[\\/]*) 30854 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 30855 ;; 30856 *) 30857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30858 for as_dir in $PATH 30859 do 30860 IFS=$as_save_IFS 30861 test -z "$as_dir" && as_dir=. 30862 for ac_exec_ext in '' $ac_executable_extensions; do 30863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30864 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 30865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30866 break 2 30867 fi 30868 done 30869 done 30870 IFS=$as_save_IFS 30871 30872 ;; 30873 esac 30874 fi 30875 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 30876 if test -n "$POTENTIAL_CXX"; then 30877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 30878 $as_echo "$POTENTIAL_CXX" >&6; } 30879 else 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30881 $as_echo "no" >&6; } 30882 fi 30883 30884 30885 test -n "$POTENTIAL_CXX" && break 30886 done 30887 30888 CXX=$POTENTIAL_CXX 30889 fi 30890 30891 if test "x$CXX" = x; then 30892 30893 # Print a helpful message on how to acquire the necessary build dependency. 30894 # devkit is the help tag: freetype, cups, alsa etc 30895 MISSING_DEPENDENCY=devkit 30896 30897 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30898 cygwin_help $MISSING_DEPENDENCY 30899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30900 msys_help $MISSING_DEPENDENCY 30901 else 30902 PKGHANDLER_COMMAND= 30903 30904 case $PKGHANDLER in 30905 apt-get) 30906 apt_help $MISSING_DEPENDENCY ;; 30907 yum) 30908 yum_help $MISSING_DEPENDENCY ;; 30909 port) 30910 port_help $MISSING_DEPENDENCY ;; 30911 pkgutil) 30912 pkgutil_help $MISSING_DEPENDENCY ;; 30913 pkgadd) 30914 pkgadd_help $MISSING_DEPENDENCY ;; 30915 esac 30916 30917 if test "x$PKGHANDLER_COMMAND" != x; then 30918 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30919 fi 30920 fi 30921 30922 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 30923 fi 30924 fi 30925 30926 # Now we have a compiler binary in CXX. Make sure it's okay. 30927 30928 # Only process if variable expands to non-empty 30929 30930 if test "x$CXX" != x; then 30931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30932 30933 # First separate the path from the arguments. This will split at the first 30934 # space. 30935 complete="$CXX" 30936 path="${complete%% *}" 30937 tmp="$complete EOL" 30938 arguments="${tmp#* }" 30939 30940 # Input might be given as Windows format, start by converting to 30941 # unix format. 30942 new_path=`$CYGPATH -u "$path"` 30943 30944 # Now try to locate executable using which 30945 new_path=`$WHICH "$new_path" 2> /dev/null` 30946 # bat and cmd files are not always considered executable in cygwin causing which 30947 # to not find them 30948 if test "x$new_path" = x \ 30949 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30950 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30951 new_path=`$CYGPATH -u "$path"` 30952 fi 30953 if test "x$new_path" = x; then 30954 # Oops. Which didn't find the executable. 30955 # The splitting of arguments from the executable at a space might have been incorrect, 30956 # since paths with space are more likely in Windows. Give it another try with the whole 30957 # argument. 30958 path="$complete" 30959 arguments="EOL" 30960 new_path=`$CYGPATH -u "$path"` 30961 new_path=`$WHICH "$new_path" 2> /dev/null` 30962 # bat and cmd files are not always considered executable in cygwin causing which 30963 # to not find them 30964 if test "x$new_path" = x \ 30965 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30966 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30967 new_path=`$CYGPATH -u "$path"` 30968 fi 30969 if test "x$new_path" = x; then 30970 # It's still not found. Now this is an unrecoverable error. 30971 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30972 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30973 has_space=`$ECHO "$complete" | $GREP " "` 30974 if test "x$has_space" != x; then 30975 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30976 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30977 fi 30978 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30979 fi 30980 fi 30981 30982 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30983 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30984 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30985 # "foo.exe" is OK but "foo" is an error. 30986 # 30987 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30988 # It is also a way to make sure we got the proper file name for the real test later on. 30989 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30990 if test "x$test_shortpath" = x; then 30991 # Short path failed, file does not exist as specified. 30992 # Try adding .exe or .cmd 30993 if test -f "${new_path}.exe"; then 30994 input_to_shortpath="${new_path}.exe" 30995 elif test -f "${new_path}.cmd"; then 30996 input_to_shortpath="${new_path}.cmd" 30997 else 30998 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 30999 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 31000 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31001 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31002 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31003 fi 31004 else 31005 input_to_shortpath="$new_path" 31006 fi 31007 31008 # Call helper function which possibly converts this using DOS-style short mode. 31009 # If so, the updated path is stored in $new_path. 31010 new_path="$input_to_shortpath" 31011 31012 input_path="$input_to_shortpath" 31013 # Check if we need to convert this using DOS-style short mode. If the path 31014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31015 # take no chances and rewrite it. 31016 # Note: m4 eats our [], so we need to use [ and ] instead. 31017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31018 if test "x$has_forbidden_chars" != x; then 31019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31020 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31021 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31022 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31023 # Going to short mode and back again did indeed matter. Since short mode is 31024 # case insensitive, let's make it lowercase to improve readability. 31025 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31026 # Now convert it back to Unix-style (cygpath) 31027 input_path=`$CYGPATH -u "$shortmode_path"` 31028 new_path="$input_path" 31029 fi 31030 fi 31031 31032 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31033 if test "x$test_cygdrive_prefix" = x; then 31034 # As a simple fix, exclude /usr/bin since it's not a real path. 31035 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31036 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31037 # a path prefixed by /cygdrive for fixpath to work. 31038 new_path="$CYGWIN_ROOT_PATH$input_path" 31039 fi 31040 fi 31041 31042 # remove trailing .exe if any 31043 new_path="${new_path/%.exe/}" 31044 31045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31046 31047 # First separate the path from the arguments. This will split at the first 31048 # space. 31049 complete="$CXX" 31050 path="${complete%% *}" 31051 tmp="$complete EOL" 31052 arguments="${tmp#* }" 31053 31054 # Input might be given as Windows format, start by converting to 31055 # unix format. 31056 new_path="$path" 31057 31058 windows_path="$new_path" 31059 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31060 unix_path=`$CYGPATH -u "$windows_path"` 31061 new_path="$unix_path" 31062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31063 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31064 new_path="$unix_path" 31065 fi 31066 31067 31068 # Now try to locate executable using which 31069 new_path=`$WHICH "$new_path" 2> /dev/null` 31070 31071 if test "x$new_path" = x; then 31072 # Oops. Which didn't find the executable. 31073 # The splitting of arguments from the executable at a space might have been incorrect, 31074 # since paths with space are more likely in Windows. Give it another try with the whole 31075 # argument. 31076 path="$complete" 31077 arguments="EOL" 31078 new_path="$path" 31079 31080 windows_path="$new_path" 31081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31082 unix_path=`$CYGPATH -u "$windows_path"` 31083 new_path="$unix_path" 31084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31086 new_path="$unix_path" 31087 fi 31088 31089 31090 new_path=`$WHICH "$new_path" 2> /dev/null` 31091 # bat and cmd files are not always considered executable in MSYS causing which 31092 # to not find them 31093 if test "x$new_path" = x \ 31094 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31095 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31096 new_path="$path" 31097 31098 windows_path="$new_path" 31099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31100 unix_path=`$CYGPATH -u "$windows_path"` 31101 new_path="$unix_path" 31102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31104 new_path="$unix_path" 31105 fi 31106 31107 fi 31108 31109 if test "x$new_path" = x; then 31110 # It's still not found. Now this is an unrecoverable error. 31111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 31112 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 31113 has_space=`$ECHO "$complete" | $GREP " "` 31114 if test "x$has_space" != x; then 31115 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31116 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31117 fi 31118 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31119 fi 31120 fi 31121 31122 # Now new_path has a complete unix path to the binary 31123 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31124 # Keep paths in /bin as-is, but remove trailing .exe if any 31125 new_path="${new_path/%.exe/}" 31126 # Do not save /bin paths to all_fixpath_prefixes! 31127 else 31128 # Not in mixed or Windows style, start by that. 31129 new_path=`cmd //c echo $new_path` 31130 31131 input_path="$new_path" 31132 # Check if we need to convert this using DOS-style short mode. If the path 31133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31134 # take no chances and rewrite it. 31135 # Note: m4 eats our [], so we need to use [ and ] instead. 31136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31137 if test "x$has_forbidden_chars" != x; then 31138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31139 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31140 fi 31141 31142 # Output is in $new_path 31143 31144 windows_path="$new_path" 31145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31146 unix_path=`$CYGPATH -u "$windows_path"` 31147 new_path="$unix_path" 31148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31150 new_path="$unix_path" 31151 fi 31152 31153 # remove trailing .exe if any 31154 new_path="${new_path/%.exe/}" 31155 31156 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31157 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31158 fi 31159 31160 else 31161 # We're on a unix platform. Hooray! :) 31162 # First separate the path from the arguments. This will split at the first 31163 # space. 31164 complete="$CXX" 31165 path="${complete%% *}" 31166 tmp="$complete EOL" 31167 arguments="${tmp#* }" 31168 31169 # Cannot rely on the command "which" here since it doesn't always work. 31170 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31171 if test -z "$is_absolute_path"; then 31172 # Path to executable is not absolute. Find it. 31173 IFS_save="$IFS" 31174 IFS=: 31175 for p in $PATH; do 31176 if test -f "$p/$path" && test -x "$p/$path"; then 31177 new_path="$p/$path" 31178 break 31179 fi 31180 done 31181 IFS="$IFS_save" 31182 else 31183 # This is an absolute path, we can use it without further modifications. 31184 new_path="$path" 31185 fi 31186 31187 if test "x$new_path" = x; then 31188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 31189 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 31190 has_space=`$ECHO "$complete" | $GREP " "` 31191 if test "x$has_space" != x; then 31192 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31193 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31194 fi 31195 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31196 fi 31197 fi 31198 31199 # Now join together the path and the arguments once again 31200 if test "x$arguments" != xEOL; then 31201 new_complete="$new_path ${arguments% *}" 31202 else 31203 new_complete="$new_path" 31204 fi 31205 31206 if test "x$complete" != "x$new_complete"; then 31207 CXX="$new_complete" 31208 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 31209 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 31210 fi 31211 fi 31212 31213 TEST_COMPILER="$CXX" 31214 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 31215 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 31216 if test "x$OPENJDK_BUILD_OS" != xaix; then 31217 # FIXME: This test should not be needed anymore; we don't do that for any platform. 31218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 31219 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 31220 31221 if test "x$OPENJDK_BUILD_OS" != xwindows; then 31222 # Follow a chain of symbolic links. Use readlink 31223 # where it exists, else fall back to horribly 31224 # complicated shell code. 31225 if test "x$READLINK_TESTED" != yes; then 31226 # On MacOSX there is a readlink tool with a different 31227 # purpose than the GNU readlink tool. Check the found readlink. 31228 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 31229 if test "x$ISGNU" = x; then 31230 # A readlink that we do not know how to use. 31231 # Are there other non-GNU readlinks out there? 31232 READLINK_TESTED=yes 31233 READLINK= 31234 fi 31235 fi 31236 31237 if test "x$READLINK" != x; then 31238 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 31239 else 31240 # Save the current directory for restoring afterwards 31241 STARTDIR=$PWD 31242 COUNTER=0 31243 sym_link_dir=`$DIRNAME $TEST_COMPILER` 31244 sym_link_file=`$BASENAME $TEST_COMPILER` 31245 cd $sym_link_dir 31246 # Use -P flag to resolve symlinks in directories. 31247 cd `$THEPWDCMD -P` 31248 sym_link_dir=`$THEPWDCMD -P` 31249 # Resolve file symlinks 31250 while test $COUNTER -lt 20; do 31251 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 31252 if test "x$ISLINK" == x; then 31253 # This is not a symbolic link! We are done! 31254 break 31255 fi 31256 # Again resolve directory symlinks since the target of the just found 31257 # link could be in a different directory 31258 cd `$DIRNAME $ISLINK` 31259 sym_link_dir=`$THEPWDCMD -P` 31260 sym_link_file=`$BASENAME $ISLINK` 31261 let COUNTER=COUNTER+1 31262 done 31263 cd $STARTDIR 31264 TEST_COMPILER=$sym_link_dir/$sym_link_file 31265 fi 31266 fi 31267 31268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 31269 $as_echo "$TEST_COMPILER" >&6; } 31270 fi 31271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 31272 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 31273 31274 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 31275 if test "x$COMPILER_BASENAME" = "xccache"; then 31276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 31277 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 31278 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 31279 # We want to control ccache invocation ourselves, so ignore this cc and try 31280 # searching again. 31281 31282 # Remove the path to the fake ccache cc from the PATH 31283 RETRY_COMPILER_SAVED_PATH="$PATH" 31284 COMPILER_DIRNAME=`$DIRNAME $CXX` 31285 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 31286 31287 # Try again looking for our compiler 31288 if test -n "$ac_tool_prefix"; then 31289 for ac_prog in $TOOLCHAIN_CXX_BINARY 31290 do 31291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31294 $as_echo_n "checking for $ac_word... " >&6; } 31295 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 31296 $as_echo_n "(cached) " >&6 31297 else 31298 if test -n "$PROPER_COMPILER_CXX"; then 31299 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 31300 else 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_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 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 fi 31317 fi 31318 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 31319 if test -n "$PROPER_COMPILER_CXX"; then 31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 31321 $as_echo "$PROPER_COMPILER_CXX" >&6; } 31322 else 31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31324 $as_echo "no" >&6; } 31325 fi 31326 31327 31328 test -n "$PROPER_COMPILER_CXX" && break 31329 done 31330 fi 31331 if test -z "$PROPER_COMPILER_CXX"; then 31332 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 31333 for ac_prog in $TOOLCHAIN_CXX_BINARY 31334 do 31335 # Extract the first word of "$ac_prog", so it can be a program name with args. 31336 set dummy $ac_prog; ac_word=$2 31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31338 $as_echo_n "checking for $ac_word... " >&6; } 31339 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 31340 $as_echo_n "(cached) " >&6 31341 else 31342 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 31343 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 31344 else 31345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31346 for as_dir in $PATH 31347 do 31348 IFS=$as_save_IFS 31349 test -z "$as_dir" && as_dir=. 31350 for ac_exec_ext in '' $ac_executable_extensions; do 31351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31352 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 31353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31354 break 2 31355 fi 31356 done 31357 done 31358 IFS=$as_save_IFS 31359 31360 fi 31361 fi 31362 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 31363 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 31364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 31365 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 31366 else 31367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31368 $as_echo "no" >&6; } 31369 fi 31370 31371 31372 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 31373 done 31374 31375 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 31376 PROPER_COMPILER_CXX="" 31377 else 31378 case $cross_compiling:$ac_tool_warned in 31379 yes:) 31380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31382 ac_tool_warned=yes ;; 31383 esac 31384 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 31385 fi 31386 fi 31387 31388 31389 # Only process if variable expands to non-empty 31390 31391 if test "x$PROPER_COMPILER_CXX" != x; then 31392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31393 31394 # First separate the path from the arguments. This will split at the first 31395 # space. 31396 complete="$PROPER_COMPILER_CXX" 31397 path="${complete%% *}" 31398 tmp="$complete EOL" 31399 arguments="${tmp#* }" 31400 31401 # Input might be given as Windows format, start by converting to 31402 # unix format. 31403 new_path=`$CYGPATH -u "$path"` 31404 31405 # Now try to locate executable using which 31406 new_path=`$WHICH "$new_path" 2> /dev/null` 31407 # bat and cmd files are not always considered executable in cygwin causing which 31408 # to not find them 31409 if test "x$new_path" = x \ 31410 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31411 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31412 new_path=`$CYGPATH -u "$path"` 31413 fi 31414 if test "x$new_path" = x; then 31415 # Oops. Which didn't find the executable. 31416 # The splitting of arguments from the executable at a space might have been incorrect, 31417 # since paths with space are more likely in Windows. Give it another try with the whole 31418 # argument. 31419 path="$complete" 31420 arguments="EOL" 31421 new_path=`$CYGPATH -u "$path"` 31422 new_path=`$WHICH "$new_path" 2> /dev/null` 31423 # bat and cmd files are not always considered executable in cygwin causing which 31424 # to not find them 31425 if test "x$new_path" = x \ 31426 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31427 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31428 new_path=`$CYGPATH -u "$path"` 31429 fi 31430 if test "x$new_path" = x; then 31431 # It's still not found. Now this is an unrecoverable error. 31432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31433 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31434 has_space=`$ECHO "$complete" | $GREP " "` 31435 if test "x$has_space" != x; then 31436 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31437 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31438 fi 31439 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31440 fi 31441 fi 31442 31443 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31444 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31445 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31446 # "foo.exe" is OK but "foo" is an error. 31447 # 31448 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31449 # It is also a way to make sure we got the proper file name for the real test later on. 31450 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31451 if test "x$test_shortpath" = x; then 31452 # Short path failed, file does not exist as specified. 31453 # Try adding .exe or .cmd 31454 if test -f "${new_path}.exe"; then 31455 input_to_shortpath="${new_path}.exe" 31456 elif test -f "${new_path}.cmd"; then 31457 input_to_shortpath="${new_path}.cmd" 31458 else 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 31460 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 31461 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31462 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31463 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31464 fi 31465 else 31466 input_to_shortpath="$new_path" 31467 fi 31468 31469 # Call helper function which possibly converts this using DOS-style short mode. 31470 # If so, the updated path is stored in $new_path. 31471 new_path="$input_to_shortpath" 31472 31473 input_path="$input_to_shortpath" 31474 # Check if we need to convert this using DOS-style short mode. If the path 31475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31476 # take no chances and rewrite it. 31477 # Note: m4 eats our [], so we need to use [ and ] instead. 31478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31479 if test "x$has_forbidden_chars" != x; then 31480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31481 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31482 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31483 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31484 # Going to short mode and back again did indeed matter. Since short mode is 31485 # case insensitive, let's make it lowercase to improve readability. 31486 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31487 # Now convert it back to Unix-style (cygpath) 31488 input_path=`$CYGPATH -u "$shortmode_path"` 31489 new_path="$input_path" 31490 fi 31491 fi 31492 31493 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31494 if test "x$test_cygdrive_prefix" = x; then 31495 # As a simple fix, exclude /usr/bin since it's not a real path. 31496 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31497 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31498 # a path prefixed by /cygdrive for fixpath to work. 31499 new_path="$CYGWIN_ROOT_PATH$input_path" 31500 fi 31501 fi 31502 31503 # remove trailing .exe if any 31504 new_path="${new_path/%.exe/}" 31505 31506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31507 31508 # First separate the path from the arguments. This will split at the first 31509 # space. 31510 complete="$PROPER_COMPILER_CXX" 31511 path="${complete%% *}" 31512 tmp="$complete EOL" 31513 arguments="${tmp#* }" 31514 31515 # Input might be given as Windows format, start by converting to 31516 # unix format. 31517 new_path="$path" 31518 31519 windows_path="$new_path" 31520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31521 unix_path=`$CYGPATH -u "$windows_path"` 31522 new_path="$unix_path" 31523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31524 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31525 new_path="$unix_path" 31526 fi 31527 31528 31529 # Now try to locate executable using which 31530 new_path=`$WHICH "$new_path" 2> /dev/null` 31531 31532 if test "x$new_path" = x; then 31533 # Oops. Which didn't find the executable. 31534 # The splitting of arguments from the executable at a space might have been incorrect, 31535 # since paths with space are more likely in Windows. Give it another try with the whole 31536 # argument. 31537 path="$complete" 31538 arguments="EOL" 31539 new_path="$path" 31540 31541 windows_path="$new_path" 31542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31543 unix_path=`$CYGPATH -u "$windows_path"` 31544 new_path="$unix_path" 31545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31547 new_path="$unix_path" 31548 fi 31549 31550 31551 new_path=`$WHICH "$new_path" 2> /dev/null` 31552 # bat and cmd files are not always considered executable in MSYS causing which 31553 # to not find them 31554 if test "x$new_path" = x \ 31555 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31556 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31557 new_path="$path" 31558 31559 windows_path="$new_path" 31560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31561 unix_path=`$CYGPATH -u "$windows_path"` 31562 new_path="$unix_path" 31563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31565 new_path="$unix_path" 31566 fi 31567 31568 fi 31569 31570 if test "x$new_path" = x; then 31571 # It's still not found. Now this is an unrecoverable error. 31572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31573 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31574 has_space=`$ECHO "$complete" | $GREP " "` 31575 if test "x$has_space" != x; then 31576 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31577 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31578 fi 31579 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31580 fi 31581 fi 31582 31583 # Now new_path has a complete unix path to the binary 31584 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31585 # Keep paths in /bin as-is, but remove trailing .exe if any 31586 new_path="${new_path/%.exe/}" 31587 # Do not save /bin paths to all_fixpath_prefixes! 31588 else 31589 # Not in mixed or Windows style, start by that. 31590 new_path=`cmd //c echo $new_path` 31591 31592 input_path="$new_path" 31593 # Check if we need to convert this using DOS-style short mode. If the path 31594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31595 # take no chances and rewrite it. 31596 # Note: m4 eats our [], so we need to use [ and ] instead. 31597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31598 if test "x$has_forbidden_chars" != x; then 31599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31600 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31601 fi 31602 31603 # Output is in $new_path 31604 31605 windows_path="$new_path" 31606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31607 unix_path=`$CYGPATH -u "$windows_path"` 31608 new_path="$unix_path" 31609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31611 new_path="$unix_path" 31612 fi 31613 31614 # remove trailing .exe if any 31615 new_path="${new_path/%.exe/}" 31616 31617 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31618 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31619 fi 31620 31621 else 31622 # We're on a unix platform. Hooray! :) 31623 # First separate the path from the arguments. This will split at the first 31624 # space. 31625 complete="$PROPER_COMPILER_CXX" 31626 path="${complete%% *}" 31627 tmp="$complete EOL" 31628 arguments="${tmp#* }" 31629 31630 # Cannot rely on the command "which" here since it doesn't always work. 31631 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31632 if test -z "$is_absolute_path"; then 31633 # Path to executable is not absolute. Find it. 31634 IFS_save="$IFS" 31635 IFS=: 31636 for p in $PATH; do 31637 if test -f "$p/$path" && test -x "$p/$path"; then 31638 new_path="$p/$path" 31639 break 31640 fi 31641 done 31642 IFS="$IFS_save" 31643 else 31644 # This is an absolute path, we can use it without further modifications. 31645 new_path="$path" 31646 fi 31647 31648 if test "x$new_path" = x; then 31649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31650 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31651 has_space=`$ECHO "$complete" | $GREP " "` 31652 if test "x$has_space" != x; then 31653 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31654 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31655 fi 31656 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31657 fi 31658 fi 31659 31660 # Now join together the path and the arguments once again 31661 if test "x$arguments" != xEOL; then 31662 new_complete="$new_path ${arguments% *}" 31663 else 31664 new_complete="$new_path" 31665 fi 31666 31667 if test "x$complete" != "x$new_complete"; then 31668 PROPER_COMPILER_CXX="$new_complete" 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 31670 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 31671 fi 31672 fi 31673 31674 PATH="$RETRY_COMPILER_SAVED_PATH" 31675 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 31677 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 31678 31679 if test "x$OPENJDK_BUILD_OS" != xwindows; then 31680 # Follow a chain of symbolic links. Use readlink 31681 # where it exists, else fall back to horribly 31682 # complicated shell code. 31683 if test "x$READLINK_TESTED" != yes; then 31684 # On MacOSX there is a readlink tool with a different 31685 # purpose than the GNU readlink tool. Check the found readlink. 31686 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 31687 if test "x$ISGNU" = x; then 31688 # A readlink that we do not know how to use. 31689 # Are there other non-GNU readlinks out there? 31690 READLINK_TESTED=yes 31691 READLINK= 31692 fi 31693 fi 31694 31695 if test "x$READLINK" != x; then 31696 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 31697 else 31698 # Save the current directory for restoring afterwards 31699 STARTDIR=$PWD 31700 COUNTER=0 31701 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 31702 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 31703 cd $sym_link_dir 31704 # Use -P flag to resolve symlinks in directories. 31705 cd `$THEPWDCMD -P` 31706 sym_link_dir=`$THEPWDCMD -P` 31707 # Resolve file symlinks 31708 while test $COUNTER -lt 20; do 31709 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 31710 if test "x$ISLINK" == x; then 31711 # This is not a symbolic link! We are done! 31712 break 31713 fi 31714 # Again resolve directory symlinks since the target of the just found 31715 # link could be in a different directory 31716 cd `$DIRNAME $ISLINK` 31717 sym_link_dir=`$THEPWDCMD -P` 31718 sym_link_file=`$BASENAME $ISLINK` 31719 let COUNTER=COUNTER+1 31720 done 31721 cd $STARTDIR 31722 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 31723 fi 31724 fi 31725 31726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 31727 $as_echo "$PROPER_COMPILER_CXX" >&6; } 31728 CXX="$PROPER_COMPILER_CXX" 31729 else 31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 31731 $as_echo "no, keeping CXX" >&6; } 31732 fi 31733 31734 31735 COMPILER=$CXX 31736 COMPILER_NAME=$COMPILER_NAME 31737 31738 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 31739 # cc -V output typically looks like 31740 # cc: Sun C 5.12 Linux_i386 2011/11/16 31741 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 31742 # Check that this is likely to be the Solaris Studio cc. 31743 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 31744 if test $? -ne 0; then 31745 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31746 { $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 31747 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31748 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31749 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31750 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 31751 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 31752 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31753 fi 31754 # Remove usage instructions (if present), and 31755 # collapse compiler output into a single line 31756 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31757 $SED -e 's/ *[Uu]sage:.*//'` 31758 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31759 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 31760 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 31761 # xlc -qversion output typically looks like 31762 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 31763 # Version: 11.01.0000.0015 31764 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 31765 # Check that this is likely to be the IBM XL C compiler. 31766 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 31767 if test $? -ne 0; then 31768 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31769 { $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 31770 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31771 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31772 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31773 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 31774 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 31775 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31776 fi 31777 # Collapse compiler output into a single line 31778 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31779 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31780 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 31781 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31782 # There is no specific version flag, but all output starts with a version string. 31783 # First line typically looks something like: 31784 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 31785 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 31786 # Check that this is likely to be Microsoft CL.EXE. 31787 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 31788 if test $? -ne 0; then 31789 { $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 31790 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31791 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31792 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31793 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31794 fi 31795 # Collapse compiler output into a single line 31796 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31797 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31798 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 31799 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 31800 # gcc --version output typically looks like 31801 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 31802 # Copyright (C) 2013 Free Software Foundation, Inc. 31803 # This is free software; see the source for copying conditions. There is NO 31804 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 31805 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31806 # Check that this is likely to be GCC. 31807 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 31808 if test $? -ne 0; then 31809 { $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 31810 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31811 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 31812 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 31813 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31814 fi 31815 # Remove Copyright and legalese from version string, and 31816 # collapse into a single line 31817 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31818 $SED -e 's/ *Copyright .*//'` 31819 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31820 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 31821 elif test "x$TOOLCHAIN_TYPE" = xclang; then 31822 # clang --version output typically looks like 31823 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 31824 # clang version 3.3 (tags/RELEASE_33/final) 31825 # or 31826 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 31827 # Target: x86_64-pc-linux-gnu 31828 # Thread model: posix 31829 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 31830 # Check that this is likely to be clang 31831 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 31832 if test $? -ne 0; then 31833 { $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 31834 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 31836 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 31837 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 31838 fi 31839 # Collapse compiler output into a single line 31840 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 31841 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 31842 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 31843 else 31844 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 31845 fi 31846 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 31847 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 31848 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 31849 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 31850 31851 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 31852 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 31853 31854 31855 # Now that we have resolved CXX ourself, let autoconf have its go at it 31856 ac_ext=cpp 31857 ac_cpp='$CXXCPP $CPPFLAGS' 31858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31861 if test -z "$CXX"; then 31862 if test -n "$CCC"; then 31863 CXX=$CCC 31864 else 31865 if test -n "$ac_tool_prefix"; then 31866 for ac_prog in $CXX 31867 do 31868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31871 $as_echo_n "checking for $ac_word... " >&6; } 31872 if ${ac_cv_prog_CXX+:} false; then : 31873 $as_echo_n "(cached) " >&6 31874 else 31875 if test -n "$CXX"; then 31876 ac_cv_prog_CXX="$CXX" # Let the user override the test. 31877 else 31878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31879 for as_dir in $PATH 31880 do 31881 IFS=$as_save_IFS 31882 test -z "$as_dir" && as_dir=. 31883 for ac_exec_ext in '' $ac_executable_extensions; do 31884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31885 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 31886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31887 break 2 31888 fi 31889 done 31890 done 31891 IFS=$as_save_IFS 31892 31893 fi 31894 fi 31895 CXX=$ac_cv_prog_CXX 31896 if test -n "$CXX"; then 31897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 31898 $as_echo "$CXX" >&6; } 31899 else 31900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31901 $as_echo "no" >&6; } 31902 fi 31903 31904 31905 test -n "$CXX" && break 31906 done 31907 fi 31908 if test -z "$CXX"; then 31909 ac_ct_CXX=$CXX 31910 for ac_prog in $CXX 31911 do 31912 # Extract the first word of "$ac_prog", so it can be a program name with args. 31913 set dummy $ac_prog; ac_word=$2 31914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31915 $as_echo_n "checking for $ac_word... " >&6; } 31916 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 31917 $as_echo_n "(cached) " >&6 31918 else 31919 if test -n "$ac_ct_CXX"; then 31920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 31921 else 31922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31923 for as_dir in $PATH 31924 do 31925 IFS=$as_save_IFS 31926 test -z "$as_dir" && as_dir=. 31927 for ac_exec_ext in '' $ac_executable_extensions; do 31928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31929 ac_cv_prog_ac_ct_CXX="$ac_prog" 31930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31931 break 2 31932 fi 31933 done 31934 done 31935 IFS=$as_save_IFS 31936 31937 fi 31938 fi 31939 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 31940 if test -n "$ac_ct_CXX"; then 31941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 31942 $as_echo "$ac_ct_CXX" >&6; } 31943 else 31944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31945 $as_echo "no" >&6; } 31946 fi 31947 31948 31949 test -n "$ac_ct_CXX" && break 31950 done 31951 31952 if test "x$ac_ct_CXX" = x; then 31953 CXX="g++" 31954 else 31955 case $cross_compiling:$ac_tool_warned in 31956 yes:) 31957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31959 ac_tool_warned=yes ;; 31960 esac 31961 CXX=$ac_ct_CXX 31962 fi 31963 fi 31964 31965 fi 31966 fi 31967 # Provide some information about the compiler. 31968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 31969 set X $ac_compile 31970 ac_compiler=$2 31971 for ac_option in --version -v -V -qversion; do 31972 { { ac_try="$ac_compiler $ac_option >&5" 31973 case "(($ac_try" in 31974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31975 *) ac_try_echo=$ac_try;; 31976 esac 31977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31978 $as_echo "$ac_try_echo"; } >&5 31979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31980 ac_status=$? 31981 if test -s conftest.err; then 31982 sed '10a\ 31983 ... rest of stderr output deleted ... 31984 10q' conftest.err >conftest.er1 31985 cat conftest.er1 >&5 31986 fi 31987 rm -f conftest.er1 conftest.err 31988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31989 test $ac_status = 0; } 31990 done 31991 31992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 31993 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 31994 if ${ac_cv_cxx_compiler_gnu+:} false; then : 31995 $as_echo_n "(cached) " >&6 31996 else 31997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31998 /* end confdefs.h. */ 31999 32000 int 32001 main () 32002 { 32003 #ifndef __GNUC__ 32004 choke me 32005 #endif 32006 32007 ; 32008 return 0; 32009 } 32010 _ACEOF 32011 if ac_fn_cxx_try_compile "$LINENO"; then : 32012 ac_compiler_gnu=yes 32013 else 32014 ac_compiler_gnu=no 32015 fi 32016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 32018 32019 fi 32020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 32021 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 32022 if test $ac_compiler_gnu = yes; then 32023 GXX=yes 32024 else 32025 GXX= 32026 fi 32027 ac_test_CXXFLAGS=${CXXFLAGS+set} 32028 ac_save_CXXFLAGS=$CXXFLAGS 32029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 32030 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 32031 if ${ac_cv_prog_cxx_g+:} false; then : 32032 $as_echo_n "(cached) " >&6 32033 else 32034 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 32035 ac_cxx_werror_flag=yes 32036 ac_cv_prog_cxx_g=no 32037 CXXFLAGS="-g" 32038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32039 /* end confdefs.h. */ 32040 32041 int 32042 main () 32043 { 32044 32045 ; 32046 return 0; 32047 } 32048 _ACEOF 32049 if ac_fn_cxx_try_compile "$LINENO"; then : 32050 ac_cv_prog_cxx_g=yes 32051 else 32052 CXXFLAGS="" 32053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32054 /* end confdefs.h. */ 32055 32056 int 32057 main () 32058 { 32059 32060 ; 32061 return 0; 32062 } 32063 _ACEOF 32064 if ac_fn_cxx_try_compile "$LINENO"; then : 32065 32066 else 32067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 32068 CXXFLAGS="-g" 32069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32070 /* end confdefs.h. */ 32071 32072 int 32073 main () 32074 { 32075 32076 ; 32077 return 0; 32078 } 32079 _ACEOF 32080 if ac_fn_cxx_try_compile "$LINENO"; then : 32081 ac_cv_prog_cxx_g=yes 32082 fi 32083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32084 fi 32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32086 fi 32087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32088 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 32089 fi 32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 32091 $as_echo "$ac_cv_prog_cxx_g" >&6; } 32092 if test "$ac_test_CXXFLAGS" = set; then 32093 CXXFLAGS=$ac_save_CXXFLAGS 32094 elif test $ac_cv_prog_cxx_g = yes; then 32095 if test "$GXX" = yes; then 32096 CXXFLAGS="-g -O2" 32097 else 32098 CXXFLAGS="-g" 32099 fi 32100 else 32101 if test "$GXX" = yes; then 32102 CXXFLAGS="-O2" 32103 else 32104 CXXFLAGS= 32105 fi 32106 fi 32107 ac_ext=cpp 32108 ac_cpp='$CXXCPP $CPPFLAGS' 32109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32112 32113 32114 # 32115 # Setup the preprocessor (CPP and CXXCPP) 32116 # 32117 ac_ext=c 32118 ac_cpp='$CPP $CPPFLAGS' 32119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32121 ac_compiler_gnu=$ac_cv_c_compiler_gnu 32122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 32123 $as_echo_n "checking how to run the C preprocessor... " >&6; } 32124 # On Suns, sometimes $CPP names a directory. 32125 if test -n "$CPP" && test -d "$CPP"; then 32126 CPP= 32127 fi 32128 if test -z "$CPP"; then 32129 if ${ac_cv_prog_CPP+:} false; then : 32130 $as_echo_n "(cached) " >&6 32131 else 32132 # Double quotes because CPP needs to be expanded 32133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 32134 do 32135 ac_preproc_ok=false 32136 for ac_c_preproc_warn_flag in '' yes 32137 do 32138 # Use a header file that comes with gcc, so configuring glibc 32139 # with a fresh cross-compiler works. 32140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32141 # <limits.h> exists even on freestanding compilers. 32142 # On the NeXT, cc -E runs the code through the compiler's parser, 32143 # not just through cpp. "Syntax error" is here to catch this case. 32144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32145 /* end confdefs.h. */ 32146 #ifdef __STDC__ 32147 # include <limits.h> 32148 #else 32149 # include <assert.h> 32150 #endif 32151 Syntax error 32152 _ACEOF 32153 if ac_fn_c_try_cpp "$LINENO"; then : 32154 32155 else 32156 # Broken: fails on valid input. 32157 continue 32158 fi 32159 rm -f conftest.err conftest.i conftest.$ac_ext 32160 32161 # OK, works on sane cases. Now check whether nonexistent headers 32162 # can be detected and how. 32163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32164 /* end confdefs.h. */ 32165 #include <ac_nonexistent.h> 32166 _ACEOF 32167 if ac_fn_c_try_cpp "$LINENO"; then : 32168 # Broken: success on invalid input. 32169 continue 32170 else 32171 # Passes both tests. 32172 ac_preproc_ok=: 32173 break 32174 fi 32175 rm -f conftest.err conftest.i conftest.$ac_ext 32176 32177 done 32178 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 32179 rm -f conftest.i conftest.err conftest.$ac_ext 32180 if $ac_preproc_ok; then : 32181 break 32182 fi 32183 32184 done 32185 ac_cv_prog_CPP=$CPP 32186 32187 fi 32188 CPP=$ac_cv_prog_CPP 32189 else 32190 ac_cv_prog_CPP=$CPP 32191 fi 32192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 32193 $as_echo "$CPP" >&6; } 32194 ac_preproc_ok=false 32195 for ac_c_preproc_warn_flag in '' yes 32196 do 32197 # Use a header file that comes with gcc, so configuring glibc 32198 # with a fresh cross-compiler works. 32199 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32200 # <limits.h> exists even on freestanding compilers. 32201 # On the NeXT, cc -E runs the code through the compiler's parser, 32202 # not just through cpp. "Syntax error" is here to catch this case. 32203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32204 /* end confdefs.h. */ 32205 #ifdef __STDC__ 32206 # include <limits.h> 32207 #else 32208 # include <assert.h> 32209 #endif 32210 Syntax error 32211 _ACEOF 32212 if ac_fn_c_try_cpp "$LINENO"; then : 32213 32214 else 32215 # Broken: fails on valid input. 32216 continue 32217 fi 32218 rm -f conftest.err conftest.i conftest.$ac_ext 32219 32220 # OK, works on sane cases. Now check whether nonexistent headers 32221 # can be detected and how. 32222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32223 /* end confdefs.h. */ 32224 #include <ac_nonexistent.h> 32225 _ACEOF 32226 if ac_fn_c_try_cpp "$LINENO"; then : 32227 # Broken: success on invalid input. 32228 continue 32229 else 32230 # Passes both tests. 32231 ac_preproc_ok=: 32232 break 32233 fi 32234 rm -f conftest.err conftest.i conftest.$ac_ext 32235 32236 done 32237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 32238 rm -f conftest.i conftest.err conftest.$ac_ext 32239 if $ac_preproc_ok; then : 32240 32241 else 32242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32244 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 32245 See \`config.log' for more details" "$LINENO" 5; } 32246 fi 32247 32248 ac_ext=cpp 32249 ac_cpp='$CXXCPP $CPPFLAGS' 32250 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32251 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32252 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32253 32254 32255 # Only process if variable expands to non-empty 32256 32257 if test "x$CPP" != x; then 32258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32259 32260 # First separate the path from the arguments. This will split at the first 32261 # space. 32262 complete="$CPP" 32263 path="${complete%% *}" 32264 tmp="$complete EOL" 32265 arguments="${tmp#* }" 32266 32267 # Input might be given as Windows format, start by converting to 32268 # unix format. 32269 new_path=`$CYGPATH -u "$path"` 32270 32271 # Now try to locate executable using which 32272 new_path=`$WHICH "$new_path" 2> /dev/null` 32273 # bat and cmd files are not always considered executable in cygwin causing which 32274 # to not find them 32275 if test "x$new_path" = x \ 32276 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32277 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32278 new_path=`$CYGPATH -u "$path"` 32279 fi 32280 if test "x$new_path" = x; then 32281 # Oops. Which didn't find the executable. 32282 # The splitting of arguments from the executable at a space might have been incorrect, 32283 # since paths with space are more likely in Windows. Give it another try with the whole 32284 # argument. 32285 path="$complete" 32286 arguments="EOL" 32287 new_path=`$CYGPATH -u "$path"` 32288 new_path=`$WHICH "$new_path" 2> /dev/null` 32289 # bat and cmd files are not always considered executable in cygwin causing which 32290 # to not find them 32291 if test "x$new_path" = x \ 32292 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32293 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32294 new_path=`$CYGPATH -u "$path"` 32295 fi 32296 if test "x$new_path" = x; then 32297 # It's still not found. Now this is an unrecoverable error. 32298 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 32299 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 32300 has_space=`$ECHO "$complete" | $GREP " "` 32301 if test "x$has_space" != x; then 32302 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32303 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32304 fi 32305 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 32306 fi 32307 fi 32308 32309 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32310 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32311 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32312 # "foo.exe" is OK but "foo" is an error. 32313 # 32314 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32315 # It is also a way to make sure we got the proper file name for the real test later on. 32316 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32317 if test "x$test_shortpath" = x; then 32318 # Short path failed, file does not exist as specified. 32319 # Try adding .exe or .cmd 32320 if test -f "${new_path}.exe"; then 32321 input_to_shortpath="${new_path}.exe" 32322 elif test -f "${new_path}.cmd"; then 32323 input_to_shortpath="${new_path}.cmd" 32324 else 32325 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 32326 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32328 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32329 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 32330 fi 32331 else 32332 input_to_shortpath="$new_path" 32333 fi 32334 32335 # Call helper function which possibly converts this using DOS-style short mode. 32336 # If so, the updated path is stored in $new_path. 32337 new_path="$input_to_shortpath" 32338 32339 input_path="$input_to_shortpath" 32340 # Check if we need to convert this using DOS-style short mode. If the path 32341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32342 # take no chances and rewrite it. 32343 # Note: m4 eats our [], so we need to use [ and ] instead. 32344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32345 if test "x$has_forbidden_chars" != x; then 32346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32350 # Going to short mode and back again did indeed matter. Since short mode is 32351 # case insensitive, let's make it lowercase to improve readability. 32352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32353 # Now convert it back to Unix-style (cygpath) 32354 input_path=`$CYGPATH -u "$shortmode_path"` 32355 new_path="$input_path" 32356 fi 32357 fi 32358 32359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32360 if test "x$test_cygdrive_prefix" = x; then 32361 # As a simple fix, exclude /usr/bin since it's not a real path. 32362 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32364 # a path prefixed by /cygdrive for fixpath to work. 32365 new_path="$CYGWIN_ROOT_PATH$input_path" 32366 fi 32367 fi 32368 32369 # remove trailing .exe if any 32370 new_path="${new_path/%.exe/}" 32371 32372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32373 32374 # First separate the path from the arguments. This will split at the first 32375 # space. 32376 complete="$CPP" 32377 path="${complete%% *}" 32378 tmp="$complete EOL" 32379 arguments="${tmp#* }" 32380 32381 # Input might be given as Windows format, start by converting to 32382 # unix format. 32383 new_path="$path" 32384 32385 windows_path="$new_path" 32386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32387 unix_path=`$CYGPATH -u "$windows_path"` 32388 new_path="$unix_path" 32389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32391 new_path="$unix_path" 32392 fi 32393 32394 32395 # Now try to locate executable using which 32396 new_path=`$WHICH "$new_path" 2> /dev/null` 32397 32398 if test "x$new_path" = x; then 32399 # Oops. Which didn't find the executable. 32400 # The splitting of arguments from the executable at a space might have been incorrect, 32401 # since paths with space are more likely in Windows. Give it another try with the whole 32402 # argument. 32403 path="$complete" 32404 arguments="EOL" 32405 new_path="$path" 32406 32407 windows_path="$new_path" 32408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32409 unix_path=`$CYGPATH -u "$windows_path"` 32410 new_path="$unix_path" 32411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32413 new_path="$unix_path" 32414 fi 32415 32416 32417 new_path=`$WHICH "$new_path" 2> /dev/null` 32418 # bat and cmd files are not always considered executable in MSYS causing which 32419 # to not find them 32420 if test "x$new_path" = x \ 32421 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32422 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32423 new_path="$path" 32424 32425 windows_path="$new_path" 32426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32427 unix_path=`$CYGPATH -u "$windows_path"` 32428 new_path="$unix_path" 32429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32431 new_path="$unix_path" 32432 fi 32433 32434 fi 32435 32436 if test "x$new_path" = x; then 32437 # It's still not found. Now this is an unrecoverable error. 32438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 32439 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 32440 has_space=`$ECHO "$complete" | $GREP " "` 32441 if test "x$has_space" != x; then 32442 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32443 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32444 fi 32445 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 32446 fi 32447 fi 32448 32449 # Now new_path has a complete unix path to the binary 32450 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32451 # Keep paths in /bin as-is, but remove trailing .exe if any 32452 new_path="${new_path/%.exe/}" 32453 # Do not save /bin paths to all_fixpath_prefixes! 32454 else 32455 # Not in mixed or Windows style, start by that. 32456 new_path=`cmd //c echo $new_path` 32457 32458 input_path="$new_path" 32459 # Check if we need to convert this using DOS-style short mode. If the path 32460 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32461 # take no chances and rewrite it. 32462 # Note: m4 eats our [], so we need to use [ and ] instead. 32463 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32464 if test "x$has_forbidden_chars" != x; then 32465 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32466 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32467 fi 32468 32469 # Output is in $new_path 32470 32471 windows_path="$new_path" 32472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32473 unix_path=`$CYGPATH -u "$windows_path"` 32474 new_path="$unix_path" 32475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32477 new_path="$unix_path" 32478 fi 32479 32480 # remove trailing .exe if any 32481 new_path="${new_path/%.exe/}" 32482 32483 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32484 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32485 fi 32486 32487 else 32488 # We're on a unix platform. Hooray! :) 32489 # First separate the path from the arguments. This will split at the first 32490 # space. 32491 complete="$CPP" 32492 path="${complete%% *}" 32493 tmp="$complete EOL" 32494 arguments="${tmp#* }" 32495 32496 # Cannot rely on the command "which" here since it doesn't always work. 32497 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32498 if test -z "$is_absolute_path"; then 32499 # Path to executable is not absolute. Find it. 32500 IFS_save="$IFS" 32501 IFS=: 32502 for p in $PATH; do 32503 if test -f "$p/$path" && test -x "$p/$path"; then 32504 new_path="$p/$path" 32505 break 32506 fi 32507 done 32508 IFS="$IFS_save" 32509 else 32510 # This is an absolute path, we can use it without further modifications. 32511 new_path="$path" 32512 fi 32513 32514 if test "x$new_path" = x; then 32515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 32516 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 32517 has_space=`$ECHO "$complete" | $GREP " "` 32518 if test "x$has_space" != x; then 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32520 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32521 fi 32522 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 32523 fi 32524 fi 32525 32526 # Now join together the path and the arguments once again 32527 if test "x$arguments" != xEOL; then 32528 new_complete="$new_path ${arguments% *}" 32529 else 32530 new_complete="$new_path" 32531 fi 32532 32533 if test "x$complete" != "x$new_complete"; then 32534 CPP="$new_complete" 32535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 32536 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 32537 fi 32538 fi 32539 32540 ac_ext=cpp 32541 ac_cpp='$CXXCPP $CPPFLAGS' 32542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 32546 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 32547 if test -z "$CXXCPP"; then 32548 if ${ac_cv_prog_CXXCPP+:} false; then : 32549 $as_echo_n "(cached) " >&6 32550 else 32551 # Double quotes because CXXCPP needs to be expanded 32552 for CXXCPP in "$CXX -E" "/lib/cpp" 32553 do 32554 ac_preproc_ok=false 32555 for ac_cxx_preproc_warn_flag in '' yes 32556 do 32557 # Use a header file that comes with gcc, so configuring glibc 32558 # with a fresh cross-compiler works. 32559 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32560 # <limits.h> exists even on freestanding compilers. 32561 # On the NeXT, cc -E runs the code through the compiler's parser, 32562 # not just through cpp. "Syntax error" is here to catch this case. 32563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32564 /* end confdefs.h. */ 32565 #ifdef __STDC__ 32566 # include <limits.h> 32567 #else 32568 # include <assert.h> 32569 #endif 32570 Syntax error 32571 _ACEOF 32572 if ac_fn_cxx_try_cpp "$LINENO"; then : 32573 32574 else 32575 # Broken: fails on valid input. 32576 continue 32577 fi 32578 rm -f conftest.err conftest.i conftest.$ac_ext 32579 32580 # OK, works on sane cases. Now check whether nonexistent headers 32581 # can be detected and how. 32582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32583 /* end confdefs.h. */ 32584 #include <ac_nonexistent.h> 32585 _ACEOF 32586 if ac_fn_cxx_try_cpp "$LINENO"; then : 32587 # Broken: success on invalid input. 32588 continue 32589 else 32590 # Passes both tests. 32591 ac_preproc_ok=: 32592 break 32593 fi 32594 rm -f conftest.err conftest.i conftest.$ac_ext 32595 32596 done 32597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 32598 rm -f conftest.i conftest.err conftest.$ac_ext 32599 if $ac_preproc_ok; then : 32600 break 32601 fi 32602 32603 done 32604 ac_cv_prog_CXXCPP=$CXXCPP 32605 32606 fi 32607 CXXCPP=$ac_cv_prog_CXXCPP 32608 else 32609 ac_cv_prog_CXXCPP=$CXXCPP 32610 fi 32611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 32612 $as_echo "$CXXCPP" >&6; } 32613 ac_preproc_ok=false 32614 for ac_cxx_preproc_warn_flag in '' yes 32615 do 32616 # Use a header file that comes with gcc, so configuring glibc 32617 # with a fresh cross-compiler works. 32618 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 32619 # <limits.h> exists even on freestanding compilers. 32620 # On the NeXT, cc -E runs the code through the compiler's parser, 32621 # not just through cpp. "Syntax error" is here to catch this case. 32622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32623 /* end confdefs.h. */ 32624 #ifdef __STDC__ 32625 # include <limits.h> 32626 #else 32627 # include <assert.h> 32628 #endif 32629 Syntax error 32630 _ACEOF 32631 if ac_fn_cxx_try_cpp "$LINENO"; then : 32632 32633 else 32634 # Broken: fails on valid input. 32635 continue 32636 fi 32637 rm -f conftest.err conftest.i conftest.$ac_ext 32638 32639 # OK, works on sane cases. Now check whether nonexistent headers 32640 # can be detected and how. 32641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32642 /* end confdefs.h. */ 32643 #include <ac_nonexistent.h> 32644 _ACEOF 32645 if ac_fn_cxx_try_cpp "$LINENO"; then : 32646 # Broken: success on invalid input. 32647 continue 32648 else 32649 # Passes both tests. 32650 ac_preproc_ok=: 32651 break 32652 fi 32653 rm -f conftest.err conftest.i conftest.$ac_ext 32654 32655 done 32656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 32657 rm -f conftest.i conftest.err conftest.$ac_ext 32658 if $ac_preproc_ok; then : 32659 32660 else 32661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 32662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 32663 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 32664 See \`config.log' for more details" "$LINENO" 5; } 32665 fi 32666 32667 ac_ext=cpp 32668 ac_cpp='$CXXCPP $CPPFLAGS' 32669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32672 32673 32674 # Only process if variable expands to non-empty 32675 32676 if test "x$CXXCPP" != x; then 32677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32678 32679 # First separate the path from the arguments. This will split at the first 32680 # space. 32681 complete="$CXXCPP" 32682 path="${complete%% *}" 32683 tmp="$complete EOL" 32684 arguments="${tmp#* }" 32685 32686 # Input might be given as Windows format, start by converting to 32687 # unix format. 32688 new_path=`$CYGPATH -u "$path"` 32689 32690 # Now try to locate executable using which 32691 new_path=`$WHICH "$new_path" 2> /dev/null` 32692 # bat and cmd files are not always considered executable in cygwin causing which 32693 # to not find them 32694 if test "x$new_path" = x \ 32695 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32696 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32697 new_path=`$CYGPATH -u "$path"` 32698 fi 32699 if test "x$new_path" = x; then 32700 # Oops. Which didn't find the executable. 32701 # The splitting of arguments from the executable at a space might have been incorrect, 32702 # since paths with space are more likely in Windows. Give it another try with the whole 32703 # argument. 32704 path="$complete" 32705 arguments="EOL" 32706 new_path=`$CYGPATH -u "$path"` 32707 new_path=`$WHICH "$new_path" 2> /dev/null` 32708 # bat and cmd files are not always considered executable in cygwin causing which 32709 # to not find them 32710 if test "x$new_path" = x \ 32711 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32712 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32713 new_path=`$CYGPATH -u "$path"` 32714 fi 32715 if test "x$new_path" = x; then 32716 # It's still not found. Now this is an unrecoverable error. 32717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32718 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32719 has_space=`$ECHO "$complete" | $GREP " "` 32720 if test "x$has_space" != x; then 32721 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32722 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32723 fi 32724 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32725 fi 32726 fi 32727 32728 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32729 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32730 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32731 # "foo.exe" is OK but "foo" is an error. 32732 # 32733 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32734 # It is also a way to make sure we got the proper file name for the real test later on. 32735 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32736 if test "x$test_shortpath" = x; then 32737 # Short path failed, file does not exist as specified. 32738 # Try adding .exe or .cmd 32739 if test -f "${new_path}.exe"; then 32740 input_to_shortpath="${new_path}.exe" 32741 elif test -f "${new_path}.cmd"; then 32742 input_to_shortpath="${new_path}.cmd" 32743 else 32744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 32745 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 32746 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32747 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32748 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32749 fi 32750 else 32751 input_to_shortpath="$new_path" 32752 fi 32753 32754 # Call helper function which possibly converts this using DOS-style short mode. 32755 # If so, the updated path is stored in $new_path. 32756 new_path="$input_to_shortpath" 32757 32758 input_path="$input_to_shortpath" 32759 # Check if we need to convert this using DOS-style short mode. If the path 32760 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32761 # take no chances and rewrite it. 32762 # Note: m4 eats our [], so we need to use [ and ] instead. 32763 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32764 if test "x$has_forbidden_chars" != x; then 32765 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32766 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32767 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32768 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32769 # Going to short mode and back again did indeed matter. Since short mode is 32770 # case insensitive, let's make it lowercase to improve readability. 32771 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32772 # Now convert it back to Unix-style (cygpath) 32773 input_path=`$CYGPATH -u "$shortmode_path"` 32774 new_path="$input_path" 32775 fi 32776 fi 32777 32778 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32779 if test "x$test_cygdrive_prefix" = x; then 32780 # As a simple fix, exclude /usr/bin since it's not a real path. 32781 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32782 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32783 # a path prefixed by /cygdrive for fixpath to work. 32784 new_path="$CYGWIN_ROOT_PATH$input_path" 32785 fi 32786 fi 32787 32788 # remove trailing .exe if any 32789 new_path="${new_path/%.exe/}" 32790 32791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32792 32793 # First separate the path from the arguments. This will split at the first 32794 # space. 32795 complete="$CXXCPP" 32796 path="${complete%% *}" 32797 tmp="$complete EOL" 32798 arguments="${tmp#* }" 32799 32800 # Input might be given as Windows format, start by converting to 32801 # unix format. 32802 new_path="$path" 32803 32804 windows_path="$new_path" 32805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32806 unix_path=`$CYGPATH -u "$windows_path"` 32807 new_path="$unix_path" 32808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32809 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32810 new_path="$unix_path" 32811 fi 32812 32813 32814 # Now try to locate executable using which 32815 new_path=`$WHICH "$new_path" 2> /dev/null` 32816 32817 if test "x$new_path" = x; then 32818 # Oops. Which didn't find the executable. 32819 # The splitting of arguments from the executable at a space might have been incorrect, 32820 # since paths with space are more likely in Windows. Give it another try with the whole 32821 # argument. 32822 path="$complete" 32823 arguments="EOL" 32824 new_path="$path" 32825 32826 windows_path="$new_path" 32827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32828 unix_path=`$CYGPATH -u "$windows_path"` 32829 new_path="$unix_path" 32830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32831 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32832 new_path="$unix_path" 32833 fi 32834 32835 32836 new_path=`$WHICH "$new_path" 2> /dev/null` 32837 # bat and cmd files are not always considered executable in MSYS causing which 32838 # to not find them 32839 if test "x$new_path" = x \ 32840 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32841 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32842 new_path="$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 fi 32854 32855 if test "x$new_path" = x; then 32856 # It's still not found. Now this is an unrecoverable error. 32857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32858 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32859 has_space=`$ECHO "$complete" | $GREP " "` 32860 if test "x$has_space" != x; then 32861 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32862 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32863 fi 32864 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32865 fi 32866 fi 32867 32868 # Now new_path has a complete unix path to the binary 32869 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32870 # Keep paths in /bin as-is, but remove trailing .exe if any 32871 new_path="${new_path/%.exe/}" 32872 # Do not save /bin paths to all_fixpath_prefixes! 32873 else 32874 # Not in mixed or Windows style, start by that. 32875 new_path=`cmd //c echo $new_path` 32876 32877 input_path="$new_path" 32878 # Check if we need to convert this using DOS-style short mode. If the path 32879 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32880 # take no chances and rewrite it. 32881 # Note: m4 eats our [], so we need to use [ and ] instead. 32882 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32883 if test "x$has_forbidden_chars" != x; then 32884 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32885 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32886 fi 32887 32888 # Output is in $new_path 32889 32890 windows_path="$new_path" 32891 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32892 unix_path=`$CYGPATH -u "$windows_path"` 32893 new_path="$unix_path" 32894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32895 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32896 new_path="$unix_path" 32897 fi 32898 32899 # remove trailing .exe if any 32900 new_path="${new_path/%.exe/}" 32901 32902 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32903 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32904 fi 32905 32906 else 32907 # We're on a unix platform. Hooray! :) 32908 # First separate the path from the arguments. This will split at the first 32909 # space. 32910 complete="$CXXCPP" 32911 path="${complete%% *}" 32912 tmp="$complete EOL" 32913 arguments="${tmp#* }" 32914 32915 # Cannot rely on the command "which" here since it doesn't always work. 32916 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32917 if test -z "$is_absolute_path"; then 32918 # Path to executable is not absolute. Find it. 32919 IFS_save="$IFS" 32920 IFS=: 32921 for p in $PATH; do 32922 if test -f "$p/$path" && test -x "$p/$path"; then 32923 new_path="$p/$path" 32924 break 32925 fi 32926 done 32927 IFS="$IFS_save" 32928 else 32929 # This is an absolute path, we can use it without further modifications. 32930 new_path="$path" 32931 fi 32932 32933 if test "x$new_path" = x; then 32934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 32935 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 32936 has_space=`$ECHO "$complete" | $GREP " "` 32937 if test "x$has_space" != x; then 32938 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32939 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32940 fi 32941 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32942 fi 32943 fi 32944 32945 # Now join together the path and the arguments once again 32946 if test "x$arguments" != xEOL; then 32947 new_complete="$new_path ${arguments% *}" 32948 else 32949 new_complete="$new_path" 32950 fi 32951 32952 if test "x$complete" != "x$new_complete"; then 32953 CXXCPP="$new_complete" 32954 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 32955 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 32956 fi 32957 fi 32958 32959 32960 # 32961 # Setup the linker (LD) 32962 # 32963 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32964 # In the Microsoft toolchain we have a separate LD command "link". 32965 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 32966 # a cygwin program for something completely different. 32967 # Extract the first word of "link", so it can be a program name with args. 32968 set dummy link; ac_word=$2 32969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32970 $as_echo_n "checking for $ac_word... " >&6; } 32971 if ${ac_cv_prog_LD+:} false; then : 32972 $as_echo_n "(cached) " >&6 32973 else 32974 if test -n "$LD"; then 32975 ac_cv_prog_LD="$LD" # Let the user override the test. 32976 else 32977 ac_prog_rejected=no 32978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32979 for as_dir in $PATH 32980 do 32981 IFS=$as_save_IFS 32982 test -z "$as_dir" && as_dir=. 32983 for ac_exec_ext in '' $ac_executable_extensions; do 32984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32985 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 32986 ac_prog_rejected=yes 32987 continue 32988 fi 32989 ac_cv_prog_LD="link" 32990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32991 break 2 32992 fi 32993 done 32994 done 32995 IFS=$as_save_IFS 32996 32997 if test $ac_prog_rejected = yes; then 32998 # We found a bogon in the path, so make sure we never use it. 32999 set dummy $ac_cv_prog_LD 33000 shift 33001 if test $# != 0; then 33002 # We chose a different compiler from the bogus one. 33003 # However, it has the same basename, so the bogon will be chosen 33004 # first if we set LD to just the basename; use the full file name. 33005 shift 33006 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 33007 fi 33008 fi 33009 fi 33010 fi 33011 LD=$ac_cv_prog_LD 33012 if test -n "$LD"; then 33013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 33014 $as_echo "$LD" >&6; } 33015 else 33016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33017 $as_echo "no" >&6; } 33018 fi 33019 33020 33021 33022 # Only process if variable expands to non-empty 33023 33024 if test "x$LD" != x; then 33025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33026 33027 # First separate the path from the arguments. This will split at the first 33028 # space. 33029 complete="$LD" 33030 path="${complete%% *}" 33031 tmp="$complete EOL" 33032 arguments="${tmp#* }" 33033 33034 # Input might be given as Windows format, start by converting to 33035 # unix format. 33036 new_path=`$CYGPATH -u "$path"` 33037 33038 # Now try to locate executable using which 33039 new_path=`$WHICH "$new_path" 2> /dev/null` 33040 # bat and cmd files are not always considered executable in cygwin causing which 33041 # to not find them 33042 if test "x$new_path" = x \ 33043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33045 new_path=`$CYGPATH -u "$path"` 33046 fi 33047 if test "x$new_path" = x; then 33048 # Oops. Which didn't find the executable. 33049 # The splitting of arguments from the executable at a space might have been incorrect, 33050 # since paths with space are more likely in Windows. Give it another try with the whole 33051 # argument. 33052 path="$complete" 33053 arguments="EOL" 33054 new_path=`$CYGPATH -u "$path"` 33055 new_path=`$WHICH "$new_path" 2> /dev/null` 33056 # bat and cmd files are not always considered executable in cygwin causing which 33057 # to not find them 33058 if test "x$new_path" = x \ 33059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33061 new_path=`$CYGPATH -u "$path"` 33062 fi 33063 if test "x$new_path" = x; then 33064 # It's still not found. Now this is an unrecoverable error. 33065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 33066 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 33067 has_space=`$ECHO "$complete" | $GREP " "` 33068 if test "x$has_space" != x; then 33069 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33071 fi 33072 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 33073 fi 33074 fi 33075 33076 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33077 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33078 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33079 # "foo.exe" is OK but "foo" is an error. 33080 # 33081 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33082 # It is also a way to make sure we got the proper file name for the real test later on. 33083 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33084 if test "x$test_shortpath" = x; then 33085 # Short path failed, file does not exist as specified. 33086 # Try adding .exe or .cmd 33087 if test -f "${new_path}.exe"; then 33088 input_to_shortpath="${new_path}.exe" 33089 elif test -f "${new_path}.cmd"; then 33090 input_to_shortpath="${new_path}.cmd" 33091 else 33092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 33093 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33095 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33096 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 33097 fi 33098 else 33099 input_to_shortpath="$new_path" 33100 fi 33101 33102 # Call helper function which possibly converts this using DOS-style short mode. 33103 # If so, the updated path is stored in $new_path. 33104 new_path="$input_to_shortpath" 33105 33106 input_path="$input_to_shortpath" 33107 # Check if we need to convert this using DOS-style short mode. If the path 33108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33109 # take no chances and rewrite it. 33110 # Note: m4 eats our [], so we need to use [ and ] instead. 33111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33112 if test "x$has_forbidden_chars" != x; then 33113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33117 # Going to short mode and back again did indeed matter. Since short mode is 33118 # case insensitive, let's make it lowercase to improve readability. 33119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33120 # Now convert it back to Unix-style (cygpath) 33121 input_path=`$CYGPATH -u "$shortmode_path"` 33122 new_path="$input_path" 33123 fi 33124 fi 33125 33126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33127 if test "x$test_cygdrive_prefix" = x; then 33128 # As a simple fix, exclude /usr/bin since it's not a real path. 33129 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33131 # a path prefixed by /cygdrive for fixpath to work. 33132 new_path="$CYGWIN_ROOT_PATH$input_path" 33133 fi 33134 fi 33135 33136 # remove trailing .exe if any 33137 new_path="${new_path/%.exe/}" 33138 33139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33140 33141 # First separate the path from the arguments. This will split at the first 33142 # space. 33143 complete="$LD" 33144 path="${complete%% *}" 33145 tmp="$complete EOL" 33146 arguments="${tmp#* }" 33147 33148 # Input might be given as Windows format, start by converting to 33149 # unix format. 33150 new_path="$path" 33151 33152 windows_path="$new_path" 33153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33154 unix_path=`$CYGPATH -u "$windows_path"` 33155 new_path="$unix_path" 33156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33158 new_path="$unix_path" 33159 fi 33160 33161 33162 # Now try to locate executable using which 33163 new_path=`$WHICH "$new_path" 2> /dev/null` 33164 33165 if test "x$new_path" = x; then 33166 # Oops. Which didn't find the executable. 33167 # The splitting of arguments from the executable at a space might have been incorrect, 33168 # since paths with space are more likely in Windows. Give it another try with the whole 33169 # argument. 33170 path="$complete" 33171 arguments="EOL" 33172 new_path="$path" 33173 33174 windows_path="$new_path" 33175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33176 unix_path=`$CYGPATH -u "$windows_path"` 33177 new_path="$unix_path" 33178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33180 new_path="$unix_path" 33181 fi 33182 33183 33184 new_path=`$WHICH "$new_path" 2> /dev/null` 33185 # bat and cmd files are not always considered executable in MSYS causing which 33186 # to not find them 33187 if test "x$new_path" = x \ 33188 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33189 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33190 new_path="$path" 33191 33192 windows_path="$new_path" 33193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33194 unix_path=`$CYGPATH -u "$windows_path"` 33195 new_path="$unix_path" 33196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33198 new_path="$unix_path" 33199 fi 33200 33201 fi 33202 33203 if test "x$new_path" = x; then 33204 # It's still not found. Now this is an unrecoverable error. 33205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 33206 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 33207 has_space=`$ECHO "$complete" | $GREP " "` 33208 if test "x$has_space" != x; then 33209 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33211 fi 33212 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 33213 fi 33214 fi 33215 33216 # Now new_path has a complete unix path to the binary 33217 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33218 # Keep paths in /bin as-is, but remove trailing .exe if any 33219 new_path="${new_path/%.exe/}" 33220 # Do not save /bin paths to all_fixpath_prefixes! 33221 else 33222 # Not in mixed or Windows style, start by that. 33223 new_path=`cmd //c echo $new_path` 33224 33225 input_path="$new_path" 33226 # Check if we need to convert this using DOS-style short mode. If the path 33227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33228 # take no chances and rewrite it. 33229 # Note: m4 eats our [], so we need to use [ and ] instead. 33230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33231 if test "x$has_forbidden_chars" != x; then 33232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33234 fi 33235 33236 # Output is in $new_path 33237 33238 windows_path="$new_path" 33239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33240 unix_path=`$CYGPATH -u "$windows_path"` 33241 new_path="$unix_path" 33242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33244 new_path="$unix_path" 33245 fi 33246 33247 # remove trailing .exe if any 33248 new_path="${new_path/%.exe/}" 33249 33250 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33251 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33252 fi 33253 33254 else 33255 # We're on a unix platform. Hooray! :) 33256 # First separate the path from the arguments. This will split at the first 33257 # space. 33258 complete="$LD" 33259 path="${complete%% *}" 33260 tmp="$complete EOL" 33261 arguments="${tmp#* }" 33262 33263 # Cannot rely on the command "which" here since it doesn't always work. 33264 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33265 if test -z "$is_absolute_path"; then 33266 # Path to executable is not absolute. Find it. 33267 IFS_save="$IFS" 33268 IFS=: 33269 for p in $PATH; do 33270 if test -f "$p/$path" && test -x "$p/$path"; then 33271 new_path="$p/$path" 33272 break 33273 fi 33274 done 33275 IFS="$IFS_save" 33276 else 33277 # This is an absolute path, we can use it without further modifications. 33278 new_path="$path" 33279 fi 33280 33281 if test "x$new_path" = x; then 33282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 33283 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 33284 has_space=`$ECHO "$complete" | $GREP " "` 33285 if test "x$has_space" != x; then 33286 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33287 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33288 fi 33289 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 33290 fi 33291 fi 33292 33293 # Now join together the path and the arguments once again 33294 if test "x$arguments" != xEOL; then 33295 new_complete="$new_path ${arguments% *}" 33296 else 33297 new_complete="$new_path" 33298 fi 33299 33300 if test "x$complete" != "x$new_complete"; then 33301 LD="$new_complete" 33302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 33303 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 33304 fi 33305 fi 33306 33307 # Verify that we indeed succeeded with this trick. 33308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 33309 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 33310 "$LD" --version > /dev/null 33311 if test $? -eq 0 ; then 33312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33313 $as_echo "no" >&6; } 33314 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 33315 else 33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33317 $as_echo "yes" >&6; } 33318 fi 33319 LDCXX="$LD" 33320 else 33321 # All other toolchains use the compiler to link. 33322 LD="$CC" 33323 LDCXX="$CXX" 33324 fi 33325 33326 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 33327 33328 33329 # 33330 # Setup the assembler (AS) 33331 # 33332 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 33333 # FIXME: should this really be solaris, or solstudio? 33334 33335 33336 # Publish this variable in the help. 33337 33338 33339 if [ -z "${AS+x}" ]; then 33340 # The variable is not set by user, try to locate tool using the code snippet 33341 for ac_prog in as 33342 do 33343 # Extract the first word of "$ac_prog", so it can be a program name with args. 33344 set dummy $ac_prog; ac_word=$2 33345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33346 $as_echo_n "checking for $ac_word... " >&6; } 33347 if ${ac_cv_path_AS+:} false; then : 33348 $as_echo_n "(cached) " >&6 33349 else 33350 case $AS in 33351 [\\/]* | ?:[\\/]*) 33352 ac_cv_path_AS="$AS" # Let the user override the test with a path. 33353 ;; 33354 *) 33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33356 for as_dir in $PATH 33357 do 33358 IFS=$as_save_IFS 33359 test -z "$as_dir" && as_dir=. 33360 for ac_exec_ext in '' $ac_executable_extensions; do 33361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33362 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 33363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33364 break 2 33365 fi 33366 done 33367 done 33368 IFS=$as_save_IFS 33369 33370 ;; 33371 esac 33372 fi 33373 AS=$ac_cv_path_AS 33374 if test -n "$AS"; then 33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 33376 $as_echo "$AS" >&6; } 33377 else 33378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33379 $as_echo "no" >&6; } 33380 fi 33381 33382 33383 test -n "$AS" && break 33384 done 33385 33386 else 33387 # The variable is set, but is it from the command line or the environment? 33388 33389 # Try to remove the string !AS! from our list. 33390 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 33391 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33392 # If it failed, the variable was not from the command line. Ignore it, 33393 # but warn the user (except for BASH, which is always set by the calling BASH). 33394 if test "xAS" != xBASH; then 33395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 33396 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 33397 fi 33398 # Try to locate tool using the code snippet 33399 for ac_prog in as 33400 do 33401 # Extract the first word of "$ac_prog", so it can be a program name with args. 33402 set dummy $ac_prog; ac_word=$2 33403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33404 $as_echo_n "checking for $ac_word... " >&6; } 33405 if ${ac_cv_path_AS+:} false; then : 33406 $as_echo_n "(cached) " >&6 33407 else 33408 case $AS in 33409 [\\/]* | ?:[\\/]*) 33410 ac_cv_path_AS="$AS" # Let the user override the test with a path. 33411 ;; 33412 *) 33413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33414 for as_dir in $PATH 33415 do 33416 IFS=$as_save_IFS 33417 test -z "$as_dir" && as_dir=. 33418 for ac_exec_ext in '' $ac_executable_extensions; do 33419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33420 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 33421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33422 break 2 33423 fi 33424 done 33425 done 33426 IFS=$as_save_IFS 33427 33428 ;; 33429 esac 33430 fi 33431 AS=$ac_cv_path_AS 33432 if test -n "$AS"; then 33433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 33434 $as_echo "$AS" >&6; } 33435 else 33436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33437 $as_echo "no" >&6; } 33438 fi 33439 33440 33441 test -n "$AS" && break 33442 done 33443 33444 else 33445 # If it succeeded, then it was overridden by the user. We will use it 33446 # for the tool. 33447 33448 # First remove it from the list of overridden variables, so we can test 33449 # for unknown variables in the end. 33450 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33451 33452 # Check if we try to supply an empty value 33453 if test "x$AS" = x; then 33454 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 33455 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 33456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 33457 $as_echo_n "checking for AS... " >&6; } 33458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 33459 $as_echo "disabled" >&6; } 33460 else 33461 # Check if the provided tool contains a complete path. 33462 tool_specified="$AS" 33463 tool_basename="${tool_specified##*/}" 33464 if test "x$tool_basename" = "x$tool_specified"; then 33465 # A command without a complete path is provided, search $PATH. 33466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 33467 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 33468 # Extract the first word of "$tool_basename", so it can be a program name with args. 33469 set dummy $tool_basename; ac_word=$2 33470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33471 $as_echo_n "checking for $ac_word... " >&6; } 33472 if ${ac_cv_path_AS+:} false; then : 33473 $as_echo_n "(cached) " >&6 33474 else 33475 case $AS in 33476 [\\/]* | ?:[\\/]*) 33477 ac_cv_path_AS="$AS" # Let the user override the test with a path. 33478 ;; 33479 *) 33480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33481 for as_dir in $PATH 33482 do 33483 IFS=$as_save_IFS 33484 test -z "$as_dir" && as_dir=. 33485 for ac_exec_ext in '' $ac_executable_extensions; do 33486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33487 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 33488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33489 break 2 33490 fi 33491 done 33492 done 33493 IFS=$as_save_IFS 33494 33495 ;; 33496 esac 33497 fi 33498 AS=$ac_cv_path_AS 33499 if test -n "$AS"; then 33500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 33501 $as_echo "$AS" >&6; } 33502 else 33503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33504 $as_echo "no" >&6; } 33505 fi 33506 33507 33508 if test "x$AS" = x; then 33509 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33510 fi 33511 else 33512 # Otherwise we believe it is a complete path. Use it as it is. 33513 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 33514 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 33515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 33516 $as_echo_n "checking for AS... " >&6; } 33517 if test ! -x "$tool_specified"; then 33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33519 $as_echo "not found" >&6; } 33520 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 33521 fi 33522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33523 $as_echo "$tool_specified" >&6; } 33524 fi 33525 fi 33526 fi 33527 fi 33528 33529 33530 33531 # Only process if variable expands to non-empty 33532 33533 if test "x$AS" != x; then 33534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33535 33536 # First separate the path from the arguments. This will split at the first 33537 # space. 33538 complete="$AS" 33539 path="${complete%% *}" 33540 tmp="$complete EOL" 33541 arguments="${tmp#* }" 33542 33543 # Input might be given as Windows format, start by converting to 33544 # unix format. 33545 new_path=`$CYGPATH -u "$path"` 33546 33547 # Now try to locate executable using which 33548 new_path=`$WHICH "$new_path" 2> /dev/null` 33549 # bat and cmd files are not always considered executable in cygwin causing which 33550 # to not find them 33551 if test "x$new_path" = x \ 33552 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33553 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33554 new_path=`$CYGPATH -u "$path"` 33555 fi 33556 if test "x$new_path" = x; then 33557 # Oops. Which didn't find the executable. 33558 # The splitting of arguments from the executable at a space might have been incorrect, 33559 # since paths with space are more likely in Windows. Give it another try with the whole 33560 # argument. 33561 path="$complete" 33562 arguments="EOL" 33563 new_path=`$CYGPATH -u "$path"` 33564 new_path=`$WHICH "$new_path" 2> /dev/null` 33565 # bat and cmd files are not always considered executable in cygwin causing which 33566 # to not find them 33567 if test "x$new_path" = x \ 33568 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33569 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33570 new_path=`$CYGPATH -u "$path"` 33571 fi 33572 if test "x$new_path" = x; then 33573 # It's still not found. Now this is an unrecoverable error. 33574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 33575 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 33576 has_space=`$ECHO "$complete" | $GREP " "` 33577 if test "x$has_space" != x; then 33578 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33579 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33580 fi 33581 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33582 fi 33583 fi 33584 33585 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33586 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33587 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33588 # "foo.exe" is OK but "foo" is an error. 33589 # 33590 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33591 # It is also a way to make sure we got the proper file name for the real test later on. 33592 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33593 if test "x$test_shortpath" = x; then 33594 # Short path failed, file does not exist as specified. 33595 # Try adding .exe or .cmd 33596 if test -f "${new_path}.exe"; then 33597 input_to_shortpath="${new_path}.exe" 33598 elif test -f "${new_path}.cmd"; then 33599 input_to_shortpath="${new_path}.cmd" 33600 else 33601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 33602 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 33603 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33604 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33605 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33606 fi 33607 else 33608 input_to_shortpath="$new_path" 33609 fi 33610 33611 # Call helper function which possibly converts this using DOS-style short mode. 33612 # If so, the updated path is stored in $new_path. 33613 new_path="$input_to_shortpath" 33614 33615 input_path="$input_to_shortpath" 33616 # Check if we need to convert this using DOS-style short mode. If the path 33617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33618 # take no chances and rewrite it. 33619 # Note: m4 eats our [], so we need to use [ and ] instead. 33620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33621 if test "x$has_forbidden_chars" != x; then 33622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33623 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33624 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33625 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33626 # Going to short mode and back again did indeed matter. Since short mode is 33627 # case insensitive, let's make it lowercase to improve readability. 33628 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33629 # Now convert it back to Unix-style (cygpath) 33630 input_path=`$CYGPATH -u "$shortmode_path"` 33631 new_path="$input_path" 33632 fi 33633 fi 33634 33635 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33636 if test "x$test_cygdrive_prefix" = x; then 33637 # As a simple fix, exclude /usr/bin since it's not a real path. 33638 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33639 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33640 # a path prefixed by /cygdrive for fixpath to work. 33641 new_path="$CYGWIN_ROOT_PATH$input_path" 33642 fi 33643 fi 33644 33645 # remove trailing .exe if any 33646 new_path="${new_path/%.exe/}" 33647 33648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33649 33650 # First separate the path from the arguments. This will split at the first 33651 # space. 33652 complete="$AS" 33653 path="${complete%% *}" 33654 tmp="$complete EOL" 33655 arguments="${tmp#* }" 33656 33657 # Input might be given as Windows format, start by converting to 33658 # unix format. 33659 new_path="$path" 33660 33661 windows_path="$new_path" 33662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33663 unix_path=`$CYGPATH -u "$windows_path"` 33664 new_path="$unix_path" 33665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33667 new_path="$unix_path" 33668 fi 33669 33670 33671 # Now try to locate executable using which 33672 new_path=`$WHICH "$new_path" 2> /dev/null` 33673 33674 if test "x$new_path" = x; then 33675 # Oops. Which didn't find the executable. 33676 # The splitting of arguments from the executable at a space might have been incorrect, 33677 # since paths with space are more likely in Windows. Give it another try with the whole 33678 # argument. 33679 path="$complete" 33680 arguments="EOL" 33681 new_path="$path" 33682 33683 windows_path="$new_path" 33684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33685 unix_path=`$CYGPATH -u "$windows_path"` 33686 new_path="$unix_path" 33687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33689 new_path="$unix_path" 33690 fi 33691 33692 33693 new_path=`$WHICH "$new_path" 2> /dev/null` 33694 # bat and cmd files are not always considered executable in MSYS causing which 33695 # to not find them 33696 if test "x$new_path" = x \ 33697 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33698 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33699 new_path="$path" 33700 33701 windows_path="$new_path" 33702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33703 unix_path=`$CYGPATH -u "$windows_path"` 33704 new_path="$unix_path" 33705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33707 new_path="$unix_path" 33708 fi 33709 33710 fi 33711 33712 if test "x$new_path" = x; then 33713 # It's still not found. Now this is an unrecoverable error. 33714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 33715 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 33716 has_space=`$ECHO "$complete" | $GREP " "` 33717 if test "x$has_space" != x; then 33718 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33719 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33720 fi 33721 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33722 fi 33723 fi 33724 33725 # Now new_path has a complete unix path to the binary 33726 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33727 # Keep paths in /bin as-is, but remove trailing .exe if any 33728 new_path="${new_path/%.exe/}" 33729 # Do not save /bin paths to all_fixpath_prefixes! 33730 else 33731 # Not in mixed or Windows style, start by that. 33732 new_path=`cmd //c echo $new_path` 33733 33734 input_path="$new_path" 33735 # Check if we need to convert this using DOS-style short mode. If the path 33736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33737 # take no chances and rewrite it. 33738 # Note: m4 eats our [], so we need to use [ and ] instead. 33739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33740 if test "x$has_forbidden_chars" != x; then 33741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33742 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33743 fi 33744 33745 # Output is in $new_path 33746 33747 windows_path="$new_path" 33748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33749 unix_path=`$CYGPATH -u "$windows_path"` 33750 new_path="$unix_path" 33751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33753 new_path="$unix_path" 33754 fi 33755 33756 # remove trailing .exe if any 33757 new_path="${new_path/%.exe/}" 33758 33759 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33760 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33761 fi 33762 33763 else 33764 # We're on a unix platform. Hooray! :) 33765 # First separate the path from the arguments. This will split at the first 33766 # space. 33767 complete="$AS" 33768 path="${complete%% *}" 33769 tmp="$complete EOL" 33770 arguments="${tmp#* }" 33771 33772 # Cannot rely on the command "which" here since it doesn't always work. 33773 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33774 if test -z "$is_absolute_path"; then 33775 # Path to executable is not absolute. Find it. 33776 IFS_save="$IFS" 33777 IFS=: 33778 for p in $PATH; do 33779 if test -f "$p/$path" && test -x "$p/$path"; then 33780 new_path="$p/$path" 33781 break 33782 fi 33783 done 33784 IFS="$IFS_save" 33785 else 33786 # This is an absolute path, we can use it without further modifications. 33787 new_path="$path" 33788 fi 33789 33790 if test "x$new_path" = x; then 33791 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 33792 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 33793 has_space=`$ECHO "$complete" | $GREP " "` 33794 if test "x$has_space" != x; then 33795 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33796 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33797 fi 33798 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 33799 fi 33800 fi 33801 33802 # Now join together the path and the arguments once again 33803 if test "x$arguments" != xEOL; then 33804 new_complete="$new_path ${arguments% *}" 33805 else 33806 new_complete="$new_path" 33807 fi 33808 33809 if test "x$complete" != "x$new_complete"; then 33810 AS="$new_complete" 33811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 33812 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 33813 fi 33814 fi 33815 33816 else 33817 # FIXME: is this correct for microsoft? 33818 AS="$CC -c" 33819 fi 33820 33821 33822 # 33823 # Setup the archiver (AR) 33824 # 33825 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33826 # The corresponding ar tool is lib.exe (used to create static libraries) 33827 # Extract the first word of "lib", so it can be a program name with args. 33828 set dummy lib; ac_word=$2 33829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33830 $as_echo_n "checking for $ac_word... " >&6; } 33831 if ${ac_cv_prog_AR+:} false; then : 33832 $as_echo_n "(cached) " >&6 33833 else 33834 if test -n "$AR"; then 33835 ac_cv_prog_AR="$AR" # Let the user override the test. 33836 else 33837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33838 for as_dir in $PATH 33839 do 33840 IFS=$as_save_IFS 33841 test -z "$as_dir" && as_dir=. 33842 for ac_exec_ext in '' $ac_executable_extensions; do 33843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33844 ac_cv_prog_AR="lib" 33845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33846 break 2 33847 fi 33848 done 33849 done 33850 IFS=$as_save_IFS 33851 33852 fi 33853 fi 33854 AR=$ac_cv_prog_AR 33855 if test -n "$AR"; then 33856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33857 $as_echo "$AR" >&6; } 33858 else 33859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33860 $as_echo "no" >&6; } 33861 fi 33862 33863 33864 else 33865 33866 33867 # Publish this variable in the help. 33868 33869 33870 if [ -z "${AR+x}" ]; then 33871 # The variable is not set by user, try to locate tool using the code snippet 33872 if test -n "$ac_tool_prefix"; then 33873 for ac_prog in ar 33874 do 33875 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33876 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33878 $as_echo_n "checking for $ac_word... " >&6; } 33879 if ${ac_cv_prog_AR+:} false; then : 33880 $as_echo_n "(cached) " >&6 33881 else 33882 if test -n "$AR"; then 33883 ac_cv_prog_AR="$AR" # Let the user override the test. 33884 else 33885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33886 for as_dir in $PATH 33887 do 33888 IFS=$as_save_IFS 33889 test -z "$as_dir" && as_dir=. 33890 for ac_exec_ext in '' $ac_executable_extensions; do 33891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33892 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33894 break 2 33895 fi 33896 done 33897 done 33898 IFS=$as_save_IFS 33899 33900 fi 33901 fi 33902 AR=$ac_cv_prog_AR 33903 if test -n "$AR"; then 33904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33905 $as_echo "$AR" >&6; } 33906 else 33907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33908 $as_echo "no" >&6; } 33909 fi 33910 33911 33912 test -n "$AR" && break 33913 done 33914 fi 33915 if test -z "$AR"; then 33916 ac_ct_AR=$AR 33917 for ac_prog in ar 33918 do 33919 # Extract the first word of "$ac_prog", so it can be a program name with args. 33920 set dummy $ac_prog; ac_word=$2 33921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33922 $as_echo_n "checking for $ac_word... " >&6; } 33923 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33924 $as_echo_n "(cached) " >&6 33925 else 33926 if test -n "$ac_ct_AR"; then 33927 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33928 else 33929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33930 for as_dir in $PATH 33931 do 33932 IFS=$as_save_IFS 33933 test -z "$as_dir" && as_dir=. 33934 for ac_exec_ext in '' $ac_executable_extensions; do 33935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33936 ac_cv_prog_ac_ct_AR="$ac_prog" 33937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33938 break 2 33939 fi 33940 done 33941 done 33942 IFS=$as_save_IFS 33943 33944 fi 33945 fi 33946 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33947 if test -n "$ac_ct_AR"; then 33948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33949 $as_echo "$ac_ct_AR" >&6; } 33950 else 33951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33952 $as_echo "no" >&6; } 33953 fi 33954 33955 33956 test -n "$ac_ct_AR" && break 33957 done 33958 33959 if test "x$ac_ct_AR" = x; then 33960 AR="" 33961 else 33962 case $cross_compiling:$ac_tool_warned in 33963 yes:) 33964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33966 ac_tool_warned=yes ;; 33967 esac 33968 AR=$ac_ct_AR 33969 fi 33970 fi 33971 33972 else 33973 # The variable is set, but is it from the command line or the environment? 33974 33975 # Try to remove the string !AR! from our list. 33976 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 33977 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33978 # If it failed, the variable was not from the command line. Ignore it, 33979 # but warn the user (except for BASH, which is always set by the calling BASH). 33980 if test "xAR" != xBASH; then 33981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 33982 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 33983 fi 33984 # Try to locate tool using the code snippet 33985 if test -n "$ac_tool_prefix"; then 33986 for ac_prog in ar 33987 do 33988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33991 $as_echo_n "checking for $ac_word... " >&6; } 33992 if ${ac_cv_prog_AR+:} false; then : 33993 $as_echo_n "(cached) " >&6 33994 else 33995 if test -n "$AR"; then 33996 ac_cv_prog_AR="$AR" # Let the user override the test. 33997 else 33998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33999 for as_dir in $PATH 34000 do 34001 IFS=$as_save_IFS 34002 test -z "$as_dir" && as_dir=. 34003 for ac_exec_ext in '' $ac_executable_extensions; do 34004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34005 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 34006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34007 break 2 34008 fi 34009 done 34010 done 34011 IFS=$as_save_IFS 34012 34013 fi 34014 fi 34015 AR=$ac_cv_prog_AR 34016 if test -n "$AR"; then 34017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 34018 $as_echo "$AR" >&6; } 34019 else 34020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34021 $as_echo "no" >&6; } 34022 fi 34023 34024 34025 test -n "$AR" && break 34026 done 34027 fi 34028 if test -z "$AR"; then 34029 ac_ct_AR=$AR 34030 for ac_prog in ar 34031 do 34032 # Extract the first word of "$ac_prog", so it can be a program name with args. 34033 set dummy $ac_prog; ac_word=$2 34034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34035 $as_echo_n "checking for $ac_word... " >&6; } 34036 if ${ac_cv_prog_ac_ct_AR+:} false; then : 34037 $as_echo_n "(cached) " >&6 34038 else 34039 if test -n "$ac_ct_AR"; then 34040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 34041 else 34042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34043 for as_dir in $PATH 34044 do 34045 IFS=$as_save_IFS 34046 test -z "$as_dir" && as_dir=. 34047 for ac_exec_ext in '' $ac_executable_extensions; do 34048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34049 ac_cv_prog_ac_ct_AR="$ac_prog" 34050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34051 break 2 34052 fi 34053 done 34054 done 34055 IFS=$as_save_IFS 34056 34057 fi 34058 fi 34059 ac_ct_AR=$ac_cv_prog_ac_ct_AR 34060 if test -n "$ac_ct_AR"; then 34061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 34062 $as_echo "$ac_ct_AR" >&6; } 34063 else 34064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34065 $as_echo "no" >&6; } 34066 fi 34067 34068 34069 test -n "$ac_ct_AR" && break 34070 done 34071 34072 if test "x$ac_ct_AR" = x; then 34073 AR="" 34074 else 34075 case $cross_compiling:$ac_tool_warned in 34076 yes:) 34077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34079 ac_tool_warned=yes ;; 34080 esac 34081 AR=$ac_ct_AR 34082 fi 34083 fi 34084 34085 else 34086 # If it succeeded, then it was overridden by the user. We will use it 34087 # for the tool. 34088 34089 # First remove it from the list of overridden variables, so we can test 34090 # for unknown variables in the end. 34091 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34092 34093 # Check if we try to supply an empty value 34094 if test "x$AR" = x; then 34095 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 34096 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 34097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 34098 $as_echo_n "checking for AR... " >&6; } 34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 34100 $as_echo "disabled" >&6; } 34101 else 34102 # Check if the provided tool contains a complete path. 34103 tool_specified="$AR" 34104 tool_basename="${tool_specified##*/}" 34105 if test "x$tool_basename" = "x$tool_specified"; then 34106 # A command without a complete path is provided, search $PATH. 34107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 34108 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 34109 # Extract the first word of "$tool_basename", so it can be a program name with args. 34110 set dummy $tool_basename; ac_word=$2 34111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34112 $as_echo_n "checking for $ac_word... " >&6; } 34113 if ${ac_cv_path_AR+:} false; then : 34114 $as_echo_n "(cached) " >&6 34115 else 34116 case $AR in 34117 [\\/]* | ?:[\\/]*) 34118 ac_cv_path_AR="$AR" # Let the user override the test with a path. 34119 ;; 34120 *) 34121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34122 for as_dir in $PATH 34123 do 34124 IFS=$as_save_IFS 34125 test -z "$as_dir" && as_dir=. 34126 for ac_exec_ext in '' $ac_executable_extensions; do 34127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34128 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 34129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34130 break 2 34131 fi 34132 done 34133 done 34134 IFS=$as_save_IFS 34135 34136 ;; 34137 esac 34138 fi 34139 AR=$ac_cv_path_AR 34140 if test -n "$AR"; then 34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 34142 $as_echo "$AR" >&6; } 34143 else 34144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34145 $as_echo "no" >&6; } 34146 fi 34147 34148 34149 if test "x$AR" = x; then 34150 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34151 fi 34152 else 34153 # Otherwise we believe it is a complete path. Use it as it is. 34154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 34155 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 34156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 34157 $as_echo_n "checking for AR... " >&6; } 34158 if test ! -x "$tool_specified"; then 34159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34160 $as_echo "not found" >&6; } 34161 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 34162 fi 34163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34164 $as_echo "$tool_specified" >&6; } 34165 fi 34166 fi 34167 fi 34168 fi 34169 34170 34171 fi 34172 34173 # Only process if variable expands to non-empty 34174 34175 if test "x$AR" != x; then 34176 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34177 34178 # First separate the path from the arguments. This will split at the first 34179 # space. 34180 complete="$AR" 34181 path="${complete%% *}" 34182 tmp="$complete EOL" 34183 arguments="${tmp#* }" 34184 34185 # Input might be given as Windows format, start by converting to 34186 # unix format. 34187 new_path=`$CYGPATH -u "$path"` 34188 34189 # Now try to locate executable using which 34190 new_path=`$WHICH "$new_path" 2> /dev/null` 34191 # bat and cmd files are not always considered executable in cygwin causing which 34192 # to not find them 34193 if test "x$new_path" = x \ 34194 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34195 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34196 new_path=`$CYGPATH -u "$path"` 34197 fi 34198 if test "x$new_path" = x; then 34199 # Oops. Which didn't find the executable. 34200 # The splitting of arguments from the executable at a space might have been incorrect, 34201 # since paths with space are more likely in Windows. Give it another try with the whole 34202 # argument. 34203 path="$complete" 34204 arguments="EOL" 34205 new_path=`$CYGPATH -u "$path"` 34206 new_path=`$WHICH "$new_path" 2> /dev/null` 34207 # bat and cmd files are not always considered executable in cygwin causing which 34208 # to not find them 34209 if test "x$new_path" = x \ 34210 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34211 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34212 new_path=`$CYGPATH -u "$path"` 34213 fi 34214 if test "x$new_path" = x; then 34215 # It's still not found. Now this is an unrecoverable error. 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 34217 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 34218 has_space=`$ECHO "$complete" | $GREP " "` 34219 if test "x$has_space" != x; then 34220 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34221 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34222 fi 34223 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 34224 fi 34225 fi 34226 34227 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34228 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34229 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34230 # "foo.exe" is OK but "foo" is an error. 34231 # 34232 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34233 # It is also a way to make sure we got the proper file name for the real test later on. 34234 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34235 if test "x$test_shortpath" = x; then 34236 # Short path failed, file does not exist as specified. 34237 # Try adding .exe or .cmd 34238 if test -f "${new_path}.exe"; then 34239 input_to_shortpath="${new_path}.exe" 34240 elif test -f "${new_path}.cmd"; then 34241 input_to_shortpath="${new_path}.cmd" 34242 else 34243 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 34244 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 34245 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34246 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34247 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 34248 fi 34249 else 34250 input_to_shortpath="$new_path" 34251 fi 34252 34253 # Call helper function which possibly converts this using DOS-style short mode. 34254 # If so, the updated path is stored in $new_path. 34255 new_path="$input_to_shortpath" 34256 34257 input_path="$input_to_shortpath" 34258 # Check if we need to convert this using DOS-style short mode. If the path 34259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34260 # take no chances and rewrite it. 34261 # Note: m4 eats our [], so we need to use [ and ] instead. 34262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34263 if test "x$has_forbidden_chars" != x; then 34264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34265 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34266 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34267 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34268 # Going to short mode and back again did indeed matter. Since short mode is 34269 # case insensitive, let's make it lowercase to improve readability. 34270 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34271 # Now convert it back to Unix-style (cygpath) 34272 input_path=`$CYGPATH -u "$shortmode_path"` 34273 new_path="$input_path" 34274 fi 34275 fi 34276 34277 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34278 if test "x$test_cygdrive_prefix" = x; then 34279 # As a simple fix, exclude /usr/bin since it's not a real path. 34280 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34281 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34282 # a path prefixed by /cygdrive for fixpath to work. 34283 new_path="$CYGWIN_ROOT_PATH$input_path" 34284 fi 34285 fi 34286 34287 # remove trailing .exe if any 34288 new_path="${new_path/%.exe/}" 34289 34290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34291 34292 # First separate the path from the arguments. This will split at the first 34293 # space. 34294 complete="$AR" 34295 path="${complete%% *}" 34296 tmp="$complete EOL" 34297 arguments="${tmp#* }" 34298 34299 # Input might be given as Windows format, start by converting to 34300 # unix format. 34301 new_path="$path" 34302 34303 windows_path="$new_path" 34304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34305 unix_path=`$CYGPATH -u "$windows_path"` 34306 new_path="$unix_path" 34307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34309 new_path="$unix_path" 34310 fi 34311 34312 34313 # Now try to locate executable using which 34314 new_path=`$WHICH "$new_path" 2> /dev/null` 34315 34316 if test "x$new_path" = x; then 34317 # Oops. Which didn't find the executable. 34318 # The splitting of arguments from the executable at a space might have been incorrect, 34319 # since paths with space are more likely in Windows. Give it another try with the whole 34320 # argument. 34321 path="$complete" 34322 arguments="EOL" 34323 new_path="$path" 34324 34325 windows_path="$new_path" 34326 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34327 unix_path=`$CYGPATH -u "$windows_path"` 34328 new_path="$unix_path" 34329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34330 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34331 new_path="$unix_path" 34332 fi 34333 34334 34335 new_path=`$WHICH "$new_path" 2> /dev/null` 34336 # bat and cmd files are not always considered executable in MSYS causing which 34337 # to not find them 34338 if test "x$new_path" = x \ 34339 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34340 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34341 new_path="$path" 34342 34343 windows_path="$new_path" 34344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34345 unix_path=`$CYGPATH -u "$windows_path"` 34346 new_path="$unix_path" 34347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34349 new_path="$unix_path" 34350 fi 34351 34352 fi 34353 34354 if test "x$new_path" = x; then 34355 # It's still not found. Now this is an unrecoverable error. 34356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 34357 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 34358 has_space=`$ECHO "$complete" | $GREP " "` 34359 if test "x$has_space" != x; then 34360 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34362 fi 34363 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 34364 fi 34365 fi 34366 34367 # Now new_path has a complete unix path to the binary 34368 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34369 # Keep paths in /bin as-is, but remove trailing .exe if any 34370 new_path="${new_path/%.exe/}" 34371 # Do not save /bin paths to all_fixpath_prefixes! 34372 else 34373 # Not in mixed or Windows style, start by that. 34374 new_path=`cmd //c echo $new_path` 34375 34376 input_path="$new_path" 34377 # Check if we need to convert this using DOS-style short mode. If the path 34378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34379 # take no chances and rewrite it. 34380 # Note: m4 eats our [], so we need to use [ and ] instead. 34381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34382 if test "x$has_forbidden_chars" != x; then 34383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34384 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34385 fi 34386 34387 # Output is in $new_path 34388 34389 windows_path="$new_path" 34390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34391 unix_path=`$CYGPATH -u "$windows_path"` 34392 new_path="$unix_path" 34393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34395 new_path="$unix_path" 34396 fi 34397 34398 # remove trailing .exe if any 34399 new_path="${new_path/%.exe/}" 34400 34401 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34402 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34403 fi 34404 34405 else 34406 # We're on a unix platform. Hooray! :) 34407 # First separate the path from the arguments. This will split at the first 34408 # space. 34409 complete="$AR" 34410 path="${complete%% *}" 34411 tmp="$complete EOL" 34412 arguments="${tmp#* }" 34413 34414 # Cannot rely on the command "which" here since it doesn't always work. 34415 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34416 if test -z "$is_absolute_path"; then 34417 # Path to executable is not absolute. Find it. 34418 IFS_save="$IFS" 34419 IFS=: 34420 for p in $PATH; do 34421 if test -f "$p/$path" && test -x "$p/$path"; then 34422 new_path="$p/$path" 34423 break 34424 fi 34425 done 34426 IFS="$IFS_save" 34427 else 34428 # This is an absolute path, we can use it without further modifications. 34429 new_path="$path" 34430 fi 34431 34432 if test "x$new_path" = x; then 34433 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 34434 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 34435 has_space=`$ECHO "$complete" | $GREP " "` 34436 if test "x$has_space" != x; then 34437 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34438 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34439 fi 34440 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 34441 fi 34442 fi 34443 34444 # Now join together the path and the arguments once again 34445 if test "x$arguments" != xEOL; then 34446 new_complete="$new_path ${arguments% *}" 34447 else 34448 new_complete="$new_path" 34449 fi 34450 34451 if test "x$complete" != "x$new_complete"; then 34452 AR="$new_complete" 34453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 34454 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 34455 fi 34456 fi 34457 34458 34459 34460 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 34461 34462 34463 # Publish this variable in the help. 34464 34465 34466 if [ -z "${LIPO+x}" ]; then 34467 # The variable is not set by user, try to locate tool using the code snippet 34468 for ac_prog in lipo 34469 do 34470 # Extract the first word of "$ac_prog", so it can be a program name with args. 34471 set dummy $ac_prog; ac_word=$2 34472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34473 $as_echo_n "checking for $ac_word... " >&6; } 34474 if ${ac_cv_path_LIPO+:} false; then : 34475 $as_echo_n "(cached) " >&6 34476 else 34477 case $LIPO in 34478 [\\/]* | ?:[\\/]*) 34479 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 34480 ;; 34481 *) 34482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34483 for as_dir in $PATH 34484 do 34485 IFS=$as_save_IFS 34486 test -z "$as_dir" && as_dir=. 34487 for ac_exec_ext in '' $ac_executable_extensions; do 34488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34489 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 34490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34491 break 2 34492 fi 34493 done 34494 done 34495 IFS=$as_save_IFS 34496 34497 ;; 34498 esac 34499 fi 34500 LIPO=$ac_cv_path_LIPO 34501 if test -n "$LIPO"; then 34502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 34503 $as_echo "$LIPO" >&6; } 34504 else 34505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34506 $as_echo "no" >&6; } 34507 fi 34508 34509 34510 test -n "$LIPO" && break 34511 done 34512 34513 else 34514 # The variable is set, but is it from the command line or the environment? 34515 34516 # Try to remove the string !LIPO! from our list. 34517 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 34518 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34519 # If it failed, the variable was not from the command line. Ignore it, 34520 # but warn the user (except for BASH, which is always set by the calling BASH). 34521 if test "xLIPO" != xBASH; then 34522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 34523 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 34524 fi 34525 # Try to locate tool using the code snippet 34526 for ac_prog in lipo 34527 do 34528 # Extract the first word of "$ac_prog", so it can be a program name with args. 34529 set dummy $ac_prog; ac_word=$2 34530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34531 $as_echo_n "checking for $ac_word... " >&6; } 34532 if ${ac_cv_path_LIPO+:} false; then : 34533 $as_echo_n "(cached) " >&6 34534 else 34535 case $LIPO in 34536 [\\/]* | ?:[\\/]*) 34537 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 34538 ;; 34539 *) 34540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34541 for as_dir in $PATH 34542 do 34543 IFS=$as_save_IFS 34544 test -z "$as_dir" && as_dir=. 34545 for ac_exec_ext in '' $ac_executable_extensions; do 34546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34547 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 34548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34549 break 2 34550 fi 34551 done 34552 done 34553 IFS=$as_save_IFS 34554 34555 ;; 34556 esac 34557 fi 34558 LIPO=$ac_cv_path_LIPO 34559 if test -n "$LIPO"; then 34560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 34561 $as_echo "$LIPO" >&6; } 34562 else 34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34564 $as_echo "no" >&6; } 34565 fi 34566 34567 34568 test -n "$LIPO" && break 34569 done 34570 34571 else 34572 # If it succeeded, then it was overridden by the user. We will use it 34573 # for the tool. 34574 34575 # First remove it from the list of overridden variables, so we can test 34576 # for unknown variables in the end. 34577 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34578 34579 # Check if we try to supply an empty value 34580 if test "x$LIPO" = x; then 34581 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 34582 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 34584 $as_echo_n "checking for LIPO... " >&6; } 34585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 34586 $as_echo "disabled" >&6; } 34587 else 34588 # Check if the provided tool contains a complete path. 34589 tool_specified="$LIPO" 34590 tool_basename="${tool_specified##*/}" 34591 if test "x$tool_basename" = "x$tool_specified"; then 34592 # A command without a complete path is provided, search $PATH. 34593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 34594 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 34595 # Extract the first word of "$tool_basename", so it can be a program name with args. 34596 set dummy $tool_basename; ac_word=$2 34597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34598 $as_echo_n "checking for $ac_word... " >&6; } 34599 if ${ac_cv_path_LIPO+:} false; then : 34600 $as_echo_n "(cached) " >&6 34601 else 34602 case $LIPO in 34603 [\\/]* | ?:[\\/]*) 34604 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 34605 ;; 34606 *) 34607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34608 for as_dir in $PATH 34609 do 34610 IFS=$as_save_IFS 34611 test -z "$as_dir" && as_dir=. 34612 for ac_exec_ext in '' $ac_executable_extensions; do 34613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34614 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 34615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34616 break 2 34617 fi 34618 done 34619 done 34620 IFS=$as_save_IFS 34621 34622 ;; 34623 esac 34624 fi 34625 LIPO=$ac_cv_path_LIPO 34626 if test -n "$LIPO"; then 34627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 34628 $as_echo "$LIPO" >&6; } 34629 else 34630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34631 $as_echo "no" >&6; } 34632 fi 34633 34634 34635 if test "x$LIPO" = x; then 34636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34637 fi 34638 else 34639 # Otherwise we believe it is a complete path. Use it as it is. 34640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 34641 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 34642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 34643 $as_echo_n "checking for LIPO... " >&6; } 34644 if test ! -x "$tool_specified"; then 34645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34646 $as_echo "not found" >&6; } 34647 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 34648 fi 34649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34650 $as_echo "$tool_specified" >&6; } 34651 fi 34652 fi 34653 fi 34654 fi 34655 34656 34657 34658 # Only process if variable expands to non-empty 34659 34660 if test "x$LIPO" != x; then 34661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34662 34663 # First separate the path from the arguments. This will split at the first 34664 # space. 34665 complete="$LIPO" 34666 path="${complete%% *}" 34667 tmp="$complete EOL" 34668 arguments="${tmp#* }" 34669 34670 # Input might be given as Windows format, start by converting to 34671 # unix format. 34672 new_path=`$CYGPATH -u "$path"` 34673 34674 # Now try to locate executable using which 34675 new_path=`$WHICH "$new_path" 2> /dev/null` 34676 # bat and cmd files are not always considered executable in cygwin causing which 34677 # to not find them 34678 if test "x$new_path" = x \ 34679 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34680 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34681 new_path=`$CYGPATH -u "$path"` 34682 fi 34683 if test "x$new_path" = x; then 34684 # Oops. Which didn't find the executable. 34685 # The splitting of arguments from the executable at a space might have been incorrect, 34686 # since paths with space are more likely in Windows. Give it another try with the whole 34687 # argument. 34688 path="$complete" 34689 arguments="EOL" 34690 new_path=`$CYGPATH -u "$path"` 34691 new_path=`$WHICH "$new_path" 2> /dev/null` 34692 # bat and cmd files are not always considered executable in cygwin causing which 34693 # to not find them 34694 if test "x$new_path" = x \ 34695 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34696 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34697 new_path=`$CYGPATH -u "$path"` 34698 fi 34699 if test "x$new_path" = x; then 34700 # It's still not found. Now this is an unrecoverable error. 34701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34702 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34703 has_space=`$ECHO "$complete" | $GREP " "` 34704 if test "x$has_space" != x; then 34705 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34706 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34707 fi 34708 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34709 fi 34710 fi 34711 34712 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34713 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34714 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34715 # "foo.exe" is OK but "foo" is an error. 34716 # 34717 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34718 # It is also a way to make sure we got the proper file name for the real test later on. 34719 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34720 if test "x$test_shortpath" = x; then 34721 # Short path failed, file does not exist as specified. 34722 # Try adding .exe or .cmd 34723 if test -f "${new_path}.exe"; then 34724 input_to_shortpath="${new_path}.exe" 34725 elif test -f "${new_path}.cmd"; then 34726 input_to_shortpath="${new_path}.cmd" 34727 else 34728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 34729 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 34730 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34731 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34732 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34733 fi 34734 else 34735 input_to_shortpath="$new_path" 34736 fi 34737 34738 # Call helper function which possibly converts this using DOS-style short mode. 34739 # If so, the updated path is stored in $new_path. 34740 new_path="$input_to_shortpath" 34741 34742 input_path="$input_to_shortpath" 34743 # Check if we need to convert this using DOS-style short mode. If the path 34744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34745 # take no chances and rewrite it. 34746 # Note: m4 eats our [], so we need to use [ and ] instead. 34747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34748 if test "x$has_forbidden_chars" != x; then 34749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34750 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34751 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34752 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34753 # Going to short mode and back again did indeed matter. Since short mode is 34754 # case insensitive, let's make it lowercase to improve readability. 34755 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34756 # Now convert it back to Unix-style (cygpath) 34757 input_path=`$CYGPATH -u "$shortmode_path"` 34758 new_path="$input_path" 34759 fi 34760 fi 34761 34762 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34763 if test "x$test_cygdrive_prefix" = x; then 34764 # As a simple fix, exclude /usr/bin since it's not a real path. 34765 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34766 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34767 # a path prefixed by /cygdrive for fixpath to work. 34768 new_path="$CYGWIN_ROOT_PATH$input_path" 34769 fi 34770 fi 34771 34772 # remove trailing .exe if any 34773 new_path="${new_path/%.exe/}" 34774 34775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34776 34777 # First separate the path from the arguments. This will split at the first 34778 # space. 34779 complete="$LIPO" 34780 path="${complete%% *}" 34781 tmp="$complete EOL" 34782 arguments="${tmp#* }" 34783 34784 # Input might be given as Windows format, start by converting to 34785 # unix format. 34786 new_path="$path" 34787 34788 windows_path="$new_path" 34789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34790 unix_path=`$CYGPATH -u "$windows_path"` 34791 new_path="$unix_path" 34792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34794 new_path="$unix_path" 34795 fi 34796 34797 34798 # Now try to locate executable using which 34799 new_path=`$WHICH "$new_path" 2> /dev/null` 34800 34801 if test "x$new_path" = x; then 34802 # Oops. Which didn't find the executable. 34803 # The splitting of arguments from the executable at a space might have been incorrect, 34804 # since paths with space are more likely in Windows. Give it another try with the whole 34805 # argument. 34806 path="$complete" 34807 arguments="EOL" 34808 new_path="$path" 34809 34810 windows_path="$new_path" 34811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34812 unix_path=`$CYGPATH -u "$windows_path"` 34813 new_path="$unix_path" 34814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34815 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34816 new_path="$unix_path" 34817 fi 34818 34819 34820 new_path=`$WHICH "$new_path" 2> /dev/null` 34821 # bat and cmd files are not always considered executable in MSYS causing which 34822 # to not find them 34823 if test "x$new_path" = x \ 34824 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34825 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34826 new_path="$path" 34827 34828 windows_path="$new_path" 34829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34830 unix_path=`$CYGPATH -u "$windows_path"` 34831 new_path="$unix_path" 34832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34834 new_path="$unix_path" 34835 fi 34836 34837 fi 34838 34839 if test "x$new_path" = x; then 34840 # It's still not found. Now this is an unrecoverable error. 34841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34842 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34843 has_space=`$ECHO "$complete" | $GREP " "` 34844 if test "x$has_space" != x; then 34845 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34847 fi 34848 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34849 fi 34850 fi 34851 34852 # Now new_path has a complete unix path to the binary 34853 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34854 # Keep paths in /bin as-is, but remove trailing .exe if any 34855 new_path="${new_path/%.exe/}" 34856 # Do not save /bin paths to all_fixpath_prefixes! 34857 else 34858 # Not in mixed or Windows style, start by that. 34859 new_path=`cmd //c echo $new_path` 34860 34861 input_path="$new_path" 34862 # Check if we need to convert this using DOS-style short mode. If the path 34863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34864 # take no chances and rewrite it. 34865 # Note: m4 eats our [], so we need to use [ and ] instead. 34866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34867 if test "x$has_forbidden_chars" != x; then 34868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34870 fi 34871 34872 # Output is in $new_path 34873 34874 windows_path="$new_path" 34875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34876 unix_path=`$CYGPATH -u "$windows_path"` 34877 new_path="$unix_path" 34878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34879 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34880 new_path="$unix_path" 34881 fi 34882 34883 # remove trailing .exe if any 34884 new_path="${new_path/%.exe/}" 34885 34886 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34887 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34888 fi 34889 34890 else 34891 # We're on a unix platform. Hooray! :) 34892 # First separate the path from the arguments. This will split at the first 34893 # space. 34894 complete="$LIPO" 34895 path="${complete%% *}" 34896 tmp="$complete EOL" 34897 arguments="${tmp#* }" 34898 34899 # Cannot rely on the command "which" here since it doesn't always work. 34900 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34901 if test -z "$is_absolute_path"; then 34902 # Path to executable is not absolute. Find it. 34903 IFS_save="$IFS" 34904 IFS=: 34905 for p in $PATH; do 34906 if test -f "$p/$path" && test -x "$p/$path"; then 34907 new_path="$p/$path" 34908 break 34909 fi 34910 done 34911 IFS="$IFS_save" 34912 else 34913 # This is an absolute path, we can use it without further modifications. 34914 new_path="$path" 34915 fi 34916 34917 if test "x$new_path" = x; then 34918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 34919 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 34920 has_space=`$ECHO "$complete" | $GREP " "` 34921 if test "x$has_space" != x; then 34922 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34923 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34924 fi 34925 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 34926 fi 34927 fi 34928 34929 # Now join together the path and the arguments once again 34930 if test "x$arguments" != xEOL; then 34931 new_complete="$new_path ${arguments% *}" 34932 else 34933 new_complete="$new_path" 34934 fi 34935 34936 if test "x$complete" != "x$new_complete"; then 34937 LIPO="$new_complete" 34938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 34939 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 34940 fi 34941 fi 34942 34943 fi 34944 34945 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34946 # Extract the first word of "mt", so it can be a program name with args. 34947 set dummy mt; ac_word=$2 34948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34949 $as_echo_n "checking for $ac_word... " >&6; } 34950 if ${ac_cv_prog_MT+:} false; then : 34951 $as_echo_n "(cached) " >&6 34952 else 34953 if test -n "$MT"; then 34954 ac_cv_prog_MT="$MT" # Let the user override the test. 34955 else 34956 ac_prog_rejected=no 34957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34958 for as_dir in $PATH 34959 do 34960 IFS=$as_save_IFS 34961 test -z "$as_dir" && as_dir=. 34962 for ac_exec_ext in '' $ac_executable_extensions; do 34963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34964 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 34965 ac_prog_rejected=yes 34966 continue 34967 fi 34968 ac_cv_prog_MT="mt" 34969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34970 break 2 34971 fi 34972 done 34973 done 34974 IFS=$as_save_IFS 34975 34976 if test $ac_prog_rejected = yes; then 34977 # We found a bogon in the path, so make sure we never use it. 34978 set dummy $ac_cv_prog_MT 34979 shift 34980 if test $# != 0; then 34981 # We chose a different compiler from the bogus one. 34982 # However, it has the same basename, so the bogon will be chosen 34983 # first if we set MT to just the basename; use the full file name. 34984 shift 34985 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34986 fi 34987 fi 34988 fi 34989 fi 34990 MT=$ac_cv_prog_MT 34991 if test -n "$MT"; then 34992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34993 $as_echo "$MT" >&6; } 34994 else 34995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34996 $as_echo "no" >&6; } 34997 fi 34998 34999 35000 35001 # Only process if variable expands to non-empty 35002 35003 if test "x$MT" != x; then 35004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35005 35006 # First separate the path from the arguments. This will split at the first 35007 # space. 35008 complete="$MT" 35009 path="${complete%% *}" 35010 tmp="$complete EOL" 35011 arguments="${tmp#* }" 35012 35013 # Input might be given as Windows format, start by converting to 35014 # unix format. 35015 new_path=`$CYGPATH -u "$path"` 35016 35017 # Now try to locate executable using which 35018 new_path=`$WHICH "$new_path" 2> /dev/null` 35019 # bat and cmd files are not always considered executable in cygwin causing which 35020 # to not find them 35021 if test "x$new_path" = x \ 35022 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35023 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35024 new_path=`$CYGPATH -u "$path"` 35025 fi 35026 if test "x$new_path" = x; then 35027 # Oops. Which didn't find the executable. 35028 # The splitting of arguments from the executable at a space might have been incorrect, 35029 # since paths with space are more likely in Windows. Give it another try with the whole 35030 # argument. 35031 path="$complete" 35032 arguments="EOL" 35033 new_path=`$CYGPATH -u "$path"` 35034 new_path=`$WHICH "$new_path" 2> /dev/null` 35035 # bat and cmd files are not always considered executable in cygwin causing which 35036 # to not find them 35037 if test "x$new_path" = x \ 35038 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35039 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35040 new_path=`$CYGPATH -u "$path"` 35041 fi 35042 if test "x$new_path" = x; then 35043 # It's still not found. Now this is an unrecoverable error. 35044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 35045 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 35046 has_space=`$ECHO "$complete" | $GREP " "` 35047 if test "x$has_space" != x; then 35048 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35050 fi 35051 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 35052 fi 35053 fi 35054 35055 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35056 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35057 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35058 # "foo.exe" is OK but "foo" is an error. 35059 # 35060 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35061 # It is also a way to make sure we got the proper file name for the real test later on. 35062 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35063 if test "x$test_shortpath" = x; then 35064 # Short path failed, file does not exist as specified. 35065 # Try adding .exe or .cmd 35066 if test -f "${new_path}.exe"; then 35067 input_to_shortpath="${new_path}.exe" 35068 elif test -f "${new_path}.cmd"; then 35069 input_to_shortpath="${new_path}.cmd" 35070 else 35071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 35072 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 35073 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35074 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35075 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 35076 fi 35077 else 35078 input_to_shortpath="$new_path" 35079 fi 35080 35081 # Call helper function which possibly converts this using DOS-style short mode. 35082 # If so, the updated path is stored in $new_path. 35083 new_path="$input_to_shortpath" 35084 35085 input_path="$input_to_shortpath" 35086 # Check if we need to convert this using DOS-style short mode. If the path 35087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35088 # take no chances and rewrite it. 35089 # Note: m4 eats our [], so we need to use [ and ] instead. 35090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35091 if test "x$has_forbidden_chars" != x; then 35092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35093 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35094 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35095 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35096 # Going to short mode and back again did indeed matter. Since short mode is 35097 # case insensitive, let's make it lowercase to improve readability. 35098 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35099 # Now convert it back to Unix-style (cygpath) 35100 input_path=`$CYGPATH -u "$shortmode_path"` 35101 new_path="$input_path" 35102 fi 35103 fi 35104 35105 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35106 if test "x$test_cygdrive_prefix" = x; then 35107 # As a simple fix, exclude /usr/bin since it's not a real path. 35108 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35109 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35110 # a path prefixed by /cygdrive for fixpath to work. 35111 new_path="$CYGWIN_ROOT_PATH$input_path" 35112 fi 35113 fi 35114 35115 # remove trailing .exe if any 35116 new_path="${new_path/%.exe/}" 35117 35118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35119 35120 # First separate the path from the arguments. This will split at the first 35121 # space. 35122 complete="$MT" 35123 path="${complete%% *}" 35124 tmp="$complete EOL" 35125 arguments="${tmp#* }" 35126 35127 # Input might be given as Windows format, start by converting to 35128 # unix format. 35129 new_path="$path" 35130 35131 windows_path="$new_path" 35132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35133 unix_path=`$CYGPATH -u "$windows_path"` 35134 new_path="$unix_path" 35135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35137 new_path="$unix_path" 35138 fi 35139 35140 35141 # Now try to locate executable using which 35142 new_path=`$WHICH "$new_path" 2> /dev/null` 35143 35144 if test "x$new_path" = x; then 35145 # Oops. Which didn't find the executable. 35146 # The splitting of arguments from the executable at a space might have been incorrect, 35147 # since paths with space are more likely in Windows. Give it another try with the whole 35148 # argument. 35149 path="$complete" 35150 arguments="EOL" 35151 new_path="$path" 35152 35153 windows_path="$new_path" 35154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35155 unix_path=`$CYGPATH -u "$windows_path"` 35156 new_path="$unix_path" 35157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35158 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35159 new_path="$unix_path" 35160 fi 35161 35162 35163 new_path=`$WHICH "$new_path" 2> /dev/null` 35164 # bat and cmd files are not always considered executable in MSYS causing which 35165 # to not find them 35166 if test "x$new_path" = x \ 35167 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35168 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35169 new_path="$path" 35170 35171 windows_path="$new_path" 35172 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35173 unix_path=`$CYGPATH -u "$windows_path"` 35174 new_path="$unix_path" 35175 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35176 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35177 new_path="$unix_path" 35178 fi 35179 35180 fi 35181 35182 if test "x$new_path" = x; then 35183 # It's still not found. Now this is an unrecoverable error. 35184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 35185 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 35186 has_space=`$ECHO "$complete" | $GREP " "` 35187 if test "x$has_space" != x; then 35188 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35189 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35190 fi 35191 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 35192 fi 35193 fi 35194 35195 # Now new_path has a complete unix path to the binary 35196 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35197 # Keep paths in /bin as-is, but remove trailing .exe if any 35198 new_path="${new_path/%.exe/}" 35199 # Do not save /bin paths to all_fixpath_prefixes! 35200 else 35201 # Not in mixed or Windows style, start by that. 35202 new_path=`cmd //c echo $new_path` 35203 35204 input_path="$new_path" 35205 # Check if we need to convert this using DOS-style short mode. If the path 35206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35207 # take no chances and rewrite it. 35208 # Note: m4 eats our [], so we need to use [ and ] instead. 35209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35210 if test "x$has_forbidden_chars" != x; then 35211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35212 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35213 fi 35214 35215 # Output is in $new_path 35216 35217 windows_path="$new_path" 35218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35219 unix_path=`$CYGPATH -u "$windows_path"` 35220 new_path="$unix_path" 35221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35223 new_path="$unix_path" 35224 fi 35225 35226 # remove trailing .exe if any 35227 new_path="${new_path/%.exe/}" 35228 35229 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35230 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35231 fi 35232 35233 else 35234 # We're on a unix platform. Hooray! :) 35235 # First separate the path from the arguments. This will split at the first 35236 # space. 35237 complete="$MT" 35238 path="${complete%% *}" 35239 tmp="$complete EOL" 35240 arguments="${tmp#* }" 35241 35242 # Cannot rely on the command "which" here since it doesn't always work. 35243 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35244 if test -z "$is_absolute_path"; then 35245 # Path to executable is not absolute. Find it. 35246 IFS_save="$IFS" 35247 IFS=: 35248 for p in $PATH; do 35249 if test -f "$p/$path" && test -x "$p/$path"; then 35250 new_path="$p/$path" 35251 break 35252 fi 35253 done 35254 IFS="$IFS_save" 35255 else 35256 # This is an absolute path, we can use it without further modifications. 35257 new_path="$path" 35258 fi 35259 35260 if test "x$new_path" = x; then 35261 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 35262 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 35263 has_space=`$ECHO "$complete" | $GREP " "` 35264 if test "x$has_space" != x; then 35265 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35266 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35267 fi 35268 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 35269 fi 35270 fi 35271 35272 # Now join together the path and the arguments once again 35273 if test "x$arguments" != xEOL; then 35274 new_complete="$new_path ${arguments% *}" 35275 else 35276 new_complete="$new_path" 35277 fi 35278 35279 if test "x$complete" != "x$new_complete"; then 35280 MT="$new_complete" 35281 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 35282 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 35283 fi 35284 fi 35285 35286 # Setup the resource compiler (RC) 35287 # Extract the first word of "rc", so it can be a program name with args. 35288 set dummy rc; ac_word=$2 35289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35290 $as_echo_n "checking for $ac_word... " >&6; } 35291 if ${ac_cv_prog_RC+:} false; then : 35292 $as_echo_n "(cached) " >&6 35293 else 35294 if test -n "$RC"; then 35295 ac_cv_prog_RC="$RC" # Let the user override the test. 35296 else 35297 ac_prog_rejected=no 35298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35299 for as_dir in $PATH 35300 do 35301 IFS=$as_save_IFS 35302 test -z "$as_dir" && as_dir=. 35303 for ac_exec_ext in '' $ac_executable_extensions; do 35304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35305 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 35306 ac_prog_rejected=yes 35307 continue 35308 fi 35309 ac_cv_prog_RC="rc" 35310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35311 break 2 35312 fi 35313 done 35314 done 35315 IFS=$as_save_IFS 35316 35317 if test $ac_prog_rejected = yes; then 35318 # We found a bogon in the path, so make sure we never use it. 35319 set dummy $ac_cv_prog_RC 35320 shift 35321 if test $# != 0; then 35322 # We chose a different compiler from the bogus one. 35323 # However, it has the same basename, so the bogon will be chosen 35324 # first if we set RC to just the basename; use the full file name. 35325 shift 35326 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 35327 fi 35328 fi 35329 fi 35330 fi 35331 RC=$ac_cv_prog_RC 35332 if test -n "$RC"; then 35333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 35334 $as_echo "$RC" >&6; } 35335 else 35336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35337 $as_echo "no" >&6; } 35338 fi 35339 35340 35341 35342 # Only process if variable expands to non-empty 35343 35344 if test "x$RC" != x; then 35345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35346 35347 # First separate the path from the arguments. This will split at the first 35348 # space. 35349 complete="$RC" 35350 path="${complete%% *}" 35351 tmp="$complete EOL" 35352 arguments="${tmp#* }" 35353 35354 # Input might be given as Windows format, start by converting to 35355 # unix format. 35356 new_path=`$CYGPATH -u "$path"` 35357 35358 # Now try to locate executable using which 35359 new_path=`$WHICH "$new_path" 2> /dev/null` 35360 # bat and cmd files are not always considered executable in cygwin causing which 35361 # to not find them 35362 if test "x$new_path" = x \ 35363 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35364 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35365 new_path=`$CYGPATH -u "$path"` 35366 fi 35367 if test "x$new_path" = x; then 35368 # Oops. Which didn't find the executable. 35369 # The splitting of arguments from the executable at a space might have been incorrect, 35370 # since paths with space are more likely in Windows. Give it another try with the whole 35371 # argument. 35372 path="$complete" 35373 arguments="EOL" 35374 new_path=`$CYGPATH -u "$path"` 35375 new_path=`$WHICH "$new_path" 2> /dev/null` 35376 # bat and cmd files are not always considered executable in cygwin causing which 35377 # to not find them 35378 if test "x$new_path" = x \ 35379 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35380 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35381 new_path=`$CYGPATH -u "$path"` 35382 fi 35383 if test "x$new_path" = x; then 35384 # It's still not found. Now this is an unrecoverable error. 35385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 35386 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 35387 has_space=`$ECHO "$complete" | $GREP " "` 35388 if test "x$has_space" != x; then 35389 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35390 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35391 fi 35392 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 35393 fi 35394 fi 35395 35396 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35397 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35398 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35399 # "foo.exe" is OK but "foo" is an error. 35400 # 35401 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35402 # It is also a way to make sure we got the proper file name for the real test later on. 35403 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35404 if test "x$test_shortpath" = x; then 35405 # Short path failed, file does not exist as specified. 35406 # Try adding .exe or .cmd 35407 if test -f "${new_path}.exe"; then 35408 input_to_shortpath="${new_path}.exe" 35409 elif test -f "${new_path}.cmd"; then 35410 input_to_shortpath="${new_path}.cmd" 35411 else 35412 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 35413 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 35414 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35415 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35416 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 35417 fi 35418 else 35419 input_to_shortpath="$new_path" 35420 fi 35421 35422 # Call helper function which possibly converts this using DOS-style short mode. 35423 # If so, the updated path is stored in $new_path. 35424 new_path="$input_to_shortpath" 35425 35426 input_path="$input_to_shortpath" 35427 # Check if we need to convert this using DOS-style short mode. If the path 35428 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35429 # take no chances and rewrite it. 35430 # Note: m4 eats our [], so we need to use [ and ] instead. 35431 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35432 if test "x$has_forbidden_chars" != x; then 35433 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35434 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35435 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35436 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35437 # Going to short mode and back again did indeed matter. Since short mode is 35438 # case insensitive, let's make it lowercase to improve readability. 35439 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35440 # Now convert it back to Unix-style (cygpath) 35441 input_path=`$CYGPATH -u "$shortmode_path"` 35442 new_path="$input_path" 35443 fi 35444 fi 35445 35446 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35447 if test "x$test_cygdrive_prefix" = x; then 35448 # As a simple fix, exclude /usr/bin since it's not a real path. 35449 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35450 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35451 # a path prefixed by /cygdrive for fixpath to work. 35452 new_path="$CYGWIN_ROOT_PATH$input_path" 35453 fi 35454 fi 35455 35456 # remove trailing .exe if any 35457 new_path="${new_path/%.exe/}" 35458 35459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35460 35461 # First separate the path from the arguments. This will split at the first 35462 # space. 35463 complete="$RC" 35464 path="${complete%% *}" 35465 tmp="$complete EOL" 35466 arguments="${tmp#* }" 35467 35468 # Input might be given as Windows format, start by converting to 35469 # unix format. 35470 new_path="$path" 35471 35472 windows_path="$new_path" 35473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35474 unix_path=`$CYGPATH -u "$windows_path"` 35475 new_path="$unix_path" 35476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35478 new_path="$unix_path" 35479 fi 35480 35481 35482 # Now try to locate executable using which 35483 new_path=`$WHICH "$new_path" 2> /dev/null` 35484 35485 if test "x$new_path" = x; then 35486 # Oops. Which didn't find the executable. 35487 # The splitting of arguments from the executable at a space might have been incorrect, 35488 # since paths with space are more likely in Windows. Give it another try with the whole 35489 # argument. 35490 path="$complete" 35491 arguments="EOL" 35492 new_path="$path" 35493 35494 windows_path="$new_path" 35495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35496 unix_path=`$CYGPATH -u "$windows_path"` 35497 new_path="$unix_path" 35498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35500 new_path="$unix_path" 35501 fi 35502 35503 35504 new_path=`$WHICH "$new_path" 2> /dev/null` 35505 # bat and cmd files are not always considered executable in MSYS causing which 35506 # to not find them 35507 if test "x$new_path" = x \ 35508 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35509 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35510 new_path="$path" 35511 35512 windows_path="$new_path" 35513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35514 unix_path=`$CYGPATH -u "$windows_path"` 35515 new_path="$unix_path" 35516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35518 new_path="$unix_path" 35519 fi 35520 35521 fi 35522 35523 if test "x$new_path" = x; then 35524 # It's still not found. Now this is an unrecoverable error. 35525 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 35526 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 35527 has_space=`$ECHO "$complete" | $GREP " "` 35528 if test "x$has_space" != x; then 35529 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35530 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35531 fi 35532 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 35533 fi 35534 fi 35535 35536 # Now new_path has a complete unix path to the binary 35537 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35538 # Keep paths in /bin as-is, but remove trailing .exe if any 35539 new_path="${new_path/%.exe/}" 35540 # Do not save /bin paths to all_fixpath_prefixes! 35541 else 35542 # Not in mixed or Windows style, start by that. 35543 new_path=`cmd //c echo $new_path` 35544 35545 input_path="$new_path" 35546 # Check if we need to convert this using DOS-style short mode. If the path 35547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35548 # take no chances and rewrite it. 35549 # Note: m4 eats our [], so we need to use [ and ] instead. 35550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35551 if test "x$has_forbidden_chars" != x; then 35552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35553 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35554 fi 35555 35556 # Output is in $new_path 35557 35558 windows_path="$new_path" 35559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35560 unix_path=`$CYGPATH -u "$windows_path"` 35561 new_path="$unix_path" 35562 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35563 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35564 new_path="$unix_path" 35565 fi 35566 35567 # remove trailing .exe if any 35568 new_path="${new_path/%.exe/}" 35569 35570 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35571 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35572 fi 35573 35574 else 35575 # We're on a unix platform. Hooray! :) 35576 # First separate the path from the arguments. This will split at the first 35577 # space. 35578 complete="$RC" 35579 path="${complete%% *}" 35580 tmp="$complete EOL" 35581 arguments="${tmp#* }" 35582 35583 # Cannot rely on the command "which" here since it doesn't always work. 35584 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35585 if test -z "$is_absolute_path"; then 35586 # Path to executable is not absolute. Find it. 35587 IFS_save="$IFS" 35588 IFS=: 35589 for p in $PATH; do 35590 if test -f "$p/$path" && test -x "$p/$path"; then 35591 new_path="$p/$path" 35592 break 35593 fi 35594 done 35595 IFS="$IFS_save" 35596 else 35597 # This is an absolute path, we can use it without further modifications. 35598 new_path="$path" 35599 fi 35600 35601 if test "x$new_path" = x; then 35602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 35603 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 35604 has_space=`$ECHO "$complete" | $GREP " "` 35605 if test "x$has_space" != x; then 35606 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35607 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35608 fi 35609 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 35610 fi 35611 fi 35612 35613 # Now join together the path and the arguments once again 35614 if test "x$arguments" != xEOL; then 35615 new_complete="$new_path ${arguments% *}" 35616 else 35617 new_complete="$new_path" 35618 fi 35619 35620 if test "x$complete" != "x$new_complete"; then 35621 RC="$new_complete" 35622 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 35623 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 35624 fi 35625 fi 35626 35627 # Extract the first word of "dumpbin", so it can be a program name with args. 35628 set dummy dumpbin; ac_word=$2 35629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35630 $as_echo_n "checking for $ac_word... " >&6; } 35631 if ${ac_cv_prog_DUMPBIN+:} false; then : 35632 $as_echo_n "(cached) " >&6 35633 else 35634 if test -n "$DUMPBIN"; then 35635 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 35636 else 35637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35638 for as_dir in $PATH 35639 do 35640 IFS=$as_save_IFS 35641 test -z "$as_dir" && as_dir=. 35642 for ac_exec_ext in '' $ac_executable_extensions; do 35643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35644 ac_cv_prog_DUMPBIN="dumpbin" 35645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35646 break 2 35647 fi 35648 done 35649 done 35650 IFS=$as_save_IFS 35651 35652 fi 35653 fi 35654 DUMPBIN=$ac_cv_prog_DUMPBIN 35655 if test -n "$DUMPBIN"; then 35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 35657 $as_echo "$DUMPBIN" >&6; } 35658 else 35659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35660 $as_echo "no" >&6; } 35661 fi 35662 35663 35664 35665 # Only process if variable expands to non-empty 35666 35667 if test "x$DUMPBIN" != x; then 35668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35669 35670 # First separate the path from the arguments. This will split at the first 35671 # space. 35672 complete="$DUMPBIN" 35673 path="${complete%% *}" 35674 tmp="$complete EOL" 35675 arguments="${tmp#* }" 35676 35677 # Input might be given as Windows format, start by converting to 35678 # unix format. 35679 new_path=`$CYGPATH -u "$path"` 35680 35681 # Now try to locate executable using which 35682 new_path=`$WHICH "$new_path" 2> /dev/null` 35683 # bat and cmd files are not always considered executable in cygwin causing which 35684 # to not find them 35685 if test "x$new_path" = x \ 35686 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35687 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35688 new_path=`$CYGPATH -u "$path"` 35689 fi 35690 if test "x$new_path" = x; then 35691 # Oops. Which didn't find the executable. 35692 # The splitting of arguments from the executable at a space might have been incorrect, 35693 # since paths with space are more likely in Windows. Give it another try with the whole 35694 # argument. 35695 path="$complete" 35696 arguments="EOL" 35697 new_path=`$CYGPATH -u "$path"` 35698 new_path=`$WHICH "$new_path" 2> /dev/null` 35699 # bat and cmd files are not always considered executable in cygwin causing which 35700 # to not find them 35701 if test "x$new_path" = x \ 35702 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35703 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35704 new_path=`$CYGPATH -u "$path"` 35705 fi 35706 if test "x$new_path" = x; then 35707 # It's still not found. Now this is an unrecoverable error. 35708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35709 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35710 has_space=`$ECHO "$complete" | $GREP " "` 35711 if test "x$has_space" != x; then 35712 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35713 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35714 fi 35715 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35716 fi 35717 fi 35718 35719 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35720 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35721 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35722 # "foo.exe" is OK but "foo" is an error. 35723 # 35724 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35725 # It is also a way to make sure we got the proper file name for the real test later on. 35726 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35727 if test "x$test_shortpath" = x; then 35728 # Short path failed, file does not exist as specified. 35729 # Try adding .exe or .cmd 35730 if test -f "${new_path}.exe"; then 35731 input_to_shortpath="${new_path}.exe" 35732 elif test -f "${new_path}.cmd"; then 35733 input_to_shortpath="${new_path}.cmd" 35734 else 35735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 35736 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 35737 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35738 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35739 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35740 fi 35741 else 35742 input_to_shortpath="$new_path" 35743 fi 35744 35745 # Call helper function which possibly converts this using DOS-style short mode. 35746 # If so, the updated path is stored in $new_path. 35747 new_path="$input_to_shortpath" 35748 35749 input_path="$input_to_shortpath" 35750 # Check if we need to convert this using DOS-style short mode. If the path 35751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35752 # take no chances and rewrite it. 35753 # Note: m4 eats our [], so we need to use [ and ] instead. 35754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35755 if test "x$has_forbidden_chars" != x; then 35756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35757 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35758 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35759 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35760 # Going to short mode and back again did indeed matter. Since short mode is 35761 # case insensitive, let's make it lowercase to improve readability. 35762 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35763 # Now convert it back to Unix-style (cygpath) 35764 input_path=`$CYGPATH -u "$shortmode_path"` 35765 new_path="$input_path" 35766 fi 35767 fi 35768 35769 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35770 if test "x$test_cygdrive_prefix" = x; then 35771 # As a simple fix, exclude /usr/bin since it's not a real path. 35772 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35773 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35774 # a path prefixed by /cygdrive for fixpath to work. 35775 new_path="$CYGWIN_ROOT_PATH$input_path" 35776 fi 35777 fi 35778 35779 # remove trailing .exe if any 35780 new_path="${new_path/%.exe/}" 35781 35782 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35783 35784 # First separate the path from the arguments. This will split at the first 35785 # space. 35786 complete="$DUMPBIN" 35787 path="${complete%% *}" 35788 tmp="$complete EOL" 35789 arguments="${tmp#* }" 35790 35791 # Input might be given as Windows format, start by converting to 35792 # unix format. 35793 new_path="$path" 35794 35795 windows_path="$new_path" 35796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35797 unix_path=`$CYGPATH -u "$windows_path"` 35798 new_path="$unix_path" 35799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35801 new_path="$unix_path" 35802 fi 35803 35804 35805 # Now try to locate executable using which 35806 new_path=`$WHICH "$new_path" 2> /dev/null` 35807 35808 if test "x$new_path" = x; then 35809 # Oops. Which didn't find the executable. 35810 # The splitting of arguments from the executable at a space might have been incorrect, 35811 # since paths with space are more likely in Windows. Give it another try with the whole 35812 # argument. 35813 path="$complete" 35814 arguments="EOL" 35815 new_path="$path" 35816 35817 windows_path="$new_path" 35818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35819 unix_path=`$CYGPATH -u "$windows_path"` 35820 new_path="$unix_path" 35821 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35822 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35823 new_path="$unix_path" 35824 fi 35825 35826 35827 new_path=`$WHICH "$new_path" 2> /dev/null` 35828 # bat and cmd files are not always considered executable in MSYS causing which 35829 # to not find them 35830 if test "x$new_path" = x \ 35831 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35832 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35833 new_path="$path" 35834 35835 windows_path="$new_path" 35836 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35837 unix_path=`$CYGPATH -u "$windows_path"` 35838 new_path="$unix_path" 35839 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35840 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35841 new_path="$unix_path" 35842 fi 35843 35844 fi 35845 35846 if test "x$new_path" = x; then 35847 # It's still not found. Now this is an unrecoverable error. 35848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35849 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35850 has_space=`$ECHO "$complete" | $GREP " "` 35851 if test "x$has_space" != x; then 35852 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35853 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35854 fi 35855 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35856 fi 35857 fi 35858 35859 # Now new_path has a complete unix path to the binary 35860 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35861 # Keep paths in /bin as-is, but remove trailing .exe if any 35862 new_path="${new_path/%.exe/}" 35863 # Do not save /bin paths to all_fixpath_prefixes! 35864 else 35865 # Not in mixed or Windows style, start by that. 35866 new_path=`cmd //c echo $new_path` 35867 35868 input_path="$new_path" 35869 # Check if we need to convert this using DOS-style short mode. If the path 35870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35871 # take no chances and rewrite it. 35872 # Note: m4 eats our [], so we need to use [ and ] instead. 35873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35874 if test "x$has_forbidden_chars" != x; then 35875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35877 fi 35878 35879 # Output is in $new_path 35880 35881 windows_path="$new_path" 35882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35883 unix_path=`$CYGPATH -u "$windows_path"` 35884 new_path="$unix_path" 35885 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35886 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35887 new_path="$unix_path" 35888 fi 35889 35890 # remove trailing .exe if any 35891 new_path="${new_path/%.exe/}" 35892 35893 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35894 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35895 fi 35896 35897 else 35898 # We're on a unix platform. Hooray! :) 35899 # First separate the path from the arguments. This will split at the first 35900 # space. 35901 complete="$DUMPBIN" 35902 path="${complete%% *}" 35903 tmp="$complete EOL" 35904 arguments="${tmp#* }" 35905 35906 # Cannot rely on the command "which" here since it doesn't always work. 35907 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35908 if test -z "$is_absolute_path"; then 35909 # Path to executable is not absolute. Find it. 35910 IFS_save="$IFS" 35911 IFS=: 35912 for p in $PATH; do 35913 if test -f "$p/$path" && test -x "$p/$path"; then 35914 new_path="$p/$path" 35915 break 35916 fi 35917 done 35918 IFS="$IFS_save" 35919 else 35920 # This is an absolute path, we can use it without further modifications. 35921 new_path="$path" 35922 fi 35923 35924 if test "x$new_path" = x; then 35925 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35926 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35927 has_space=`$ECHO "$complete" | $GREP " "` 35928 if test "x$has_space" != x; then 35929 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35930 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35931 fi 35932 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35933 fi 35934 fi 35935 35936 # Now join together the path and the arguments once again 35937 if test "x$arguments" != xEOL; then 35938 new_complete="$new_path ${arguments% *}" 35939 else 35940 new_complete="$new_path" 35941 fi 35942 35943 if test "x$complete" != "x$new_complete"; then 35944 DUMPBIN="$new_complete" 35945 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35946 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35947 fi 35948 fi 35949 35950 # We need to check for 'msbuild.exe' because at the place where we expect to 35951 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 35952 # won't find the 'msbuild.exe' executable in that case (and the 35953 # 'ac_executable_extensions' is unusable due to performance reasons). 35954 # Notice that we intentionally don't fix up the path to MSBUILD because we 35955 # will call it in a DOS shell during freetype detection on Windows (see 35956 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 35957 # Extract the first word of "msbuild.exe", so it can be a program name with args. 35958 set dummy msbuild.exe; ac_word=$2 35959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35960 $as_echo_n "checking for $ac_word... " >&6; } 35961 if ${ac_cv_prog_MSBUILD+:} false; then : 35962 $as_echo_n "(cached) " >&6 35963 else 35964 if test -n "$MSBUILD"; then 35965 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 35966 else 35967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35968 for as_dir in $PATH 35969 do 35970 IFS=$as_save_IFS 35971 test -z "$as_dir" && as_dir=. 35972 for ac_exec_ext in '' $ac_executable_extensions; do 35973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35974 ac_cv_prog_MSBUILD="msbuild.exe" 35975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35976 break 2 35977 fi 35978 done 35979 done 35980 IFS=$as_save_IFS 35981 35982 fi 35983 fi 35984 MSBUILD=$ac_cv_prog_MSBUILD 35985 if test -n "$MSBUILD"; then 35986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35987 $as_echo "$MSBUILD" >&6; } 35988 else 35989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35990 $as_echo "no" >&6; } 35991 fi 35992 35993 35994 fi 35995 35996 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35997 35998 35999 # Publish this variable in the help. 36000 36001 36002 if [ -z "${STRIP+x}" ]; then 36003 # The variable is not set by user, try to locate tool using the code snippet 36004 for ac_prog in strip 36005 do 36006 # Extract the first word of "$ac_prog", so it can be a program name with args. 36007 set dummy $ac_prog; ac_word=$2 36008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36009 $as_echo_n "checking for $ac_word... " >&6; } 36010 if ${ac_cv_path_STRIP+:} false; then : 36011 $as_echo_n "(cached) " >&6 36012 else 36013 case $STRIP in 36014 [\\/]* | ?:[\\/]*) 36015 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36016 ;; 36017 *) 36018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36019 for as_dir in $PATH 36020 do 36021 IFS=$as_save_IFS 36022 test -z "$as_dir" && as_dir=. 36023 for ac_exec_ext in '' $ac_executable_extensions; do 36024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36025 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36027 break 2 36028 fi 36029 done 36030 done 36031 IFS=$as_save_IFS 36032 36033 ;; 36034 esac 36035 fi 36036 STRIP=$ac_cv_path_STRIP 36037 if test -n "$STRIP"; then 36038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36039 $as_echo "$STRIP" >&6; } 36040 else 36041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36042 $as_echo "no" >&6; } 36043 fi 36044 36045 36046 test -n "$STRIP" && break 36047 done 36048 36049 else 36050 # The variable is set, but is it from the command line or the environment? 36051 36052 # Try to remove the string !STRIP! from our list. 36053 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36054 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36055 # If it failed, the variable was not from the command line. Ignore it, 36056 # but warn the user (except for BASH, which is always set by the calling BASH). 36057 if test "xSTRIP" != xBASH; then 36058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36059 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36060 fi 36061 # Try to locate tool using the code snippet 36062 for ac_prog in strip 36063 do 36064 # Extract the first word of "$ac_prog", so it can be a program name with args. 36065 set dummy $ac_prog; ac_word=$2 36066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36067 $as_echo_n "checking for $ac_word... " >&6; } 36068 if ${ac_cv_path_STRIP+:} false; then : 36069 $as_echo_n "(cached) " >&6 36070 else 36071 case $STRIP in 36072 [\\/]* | ?:[\\/]*) 36073 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36074 ;; 36075 *) 36076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36077 for as_dir in $PATH 36078 do 36079 IFS=$as_save_IFS 36080 test -z "$as_dir" && as_dir=. 36081 for ac_exec_ext in '' $ac_executable_extensions; do 36082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36083 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36085 break 2 36086 fi 36087 done 36088 done 36089 IFS=$as_save_IFS 36090 36091 ;; 36092 esac 36093 fi 36094 STRIP=$ac_cv_path_STRIP 36095 if test -n "$STRIP"; then 36096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36097 $as_echo "$STRIP" >&6; } 36098 else 36099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36100 $as_echo "no" >&6; } 36101 fi 36102 36103 36104 test -n "$STRIP" && break 36105 done 36106 36107 else 36108 # If it succeeded, then it was overridden by the user. We will use it 36109 # for the tool. 36110 36111 # First remove it from the list of overridden variables, so we can test 36112 # for unknown variables in the end. 36113 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36114 36115 # Check if we try to supply an empty value 36116 if test "x$STRIP" = x; then 36117 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 36118 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 36119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36120 $as_echo_n "checking for STRIP... " >&6; } 36121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36122 $as_echo "disabled" >&6; } 36123 else 36124 # Check if the provided tool contains a complete path. 36125 tool_specified="$STRIP" 36126 tool_basename="${tool_specified##*/}" 36127 if test "x$tool_basename" = "x$tool_specified"; then 36128 # A command without a complete path is provided, search $PATH. 36129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36130 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36131 # Extract the first word of "$tool_basename", so it can be a program name with args. 36132 set dummy $tool_basename; ac_word=$2 36133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36134 $as_echo_n "checking for $ac_word... " >&6; } 36135 if ${ac_cv_path_STRIP+:} false; then : 36136 $as_echo_n "(cached) " >&6 36137 else 36138 case $STRIP in 36139 [\\/]* | ?:[\\/]*) 36140 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36141 ;; 36142 *) 36143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36144 for as_dir in $PATH 36145 do 36146 IFS=$as_save_IFS 36147 test -z "$as_dir" && as_dir=. 36148 for ac_exec_ext in '' $ac_executable_extensions; do 36149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36150 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36152 break 2 36153 fi 36154 done 36155 done 36156 IFS=$as_save_IFS 36157 36158 ;; 36159 esac 36160 fi 36161 STRIP=$ac_cv_path_STRIP 36162 if test -n "$STRIP"; then 36163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36164 $as_echo "$STRIP" >&6; } 36165 else 36166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36167 $as_echo "no" >&6; } 36168 fi 36169 36170 36171 if test "x$STRIP" = x; then 36172 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36173 fi 36174 else 36175 # Otherwise we believe it is a complete path. Use it as it is. 36176 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36177 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36179 $as_echo_n "checking for STRIP... " >&6; } 36180 if test ! -x "$tool_specified"; then 36181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36182 $as_echo "not found" >&6; } 36183 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36184 fi 36185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36186 $as_echo "$tool_specified" >&6; } 36187 fi 36188 fi 36189 fi 36190 fi 36191 36192 36193 36194 # Only process if variable expands to non-empty 36195 36196 if test "x$STRIP" != x; then 36197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36198 36199 # First separate the path from the arguments. This will split at the first 36200 # space. 36201 complete="$STRIP" 36202 path="${complete%% *}" 36203 tmp="$complete EOL" 36204 arguments="${tmp#* }" 36205 36206 # Input might be given as Windows format, start by converting to 36207 # unix format. 36208 new_path=`$CYGPATH -u "$path"` 36209 36210 # Now try to locate executable using which 36211 new_path=`$WHICH "$new_path" 2> /dev/null` 36212 # bat and cmd files are not always considered executable in cygwin causing which 36213 # to not find them 36214 if test "x$new_path" = x \ 36215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36217 new_path=`$CYGPATH -u "$path"` 36218 fi 36219 if test "x$new_path" = x; then 36220 # Oops. Which didn't find the executable. 36221 # The splitting of arguments from the executable at a space might have been incorrect, 36222 # since paths with space are more likely in Windows. Give it another try with the whole 36223 # argument. 36224 path="$complete" 36225 arguments="EOL" 36226 new_path=`$CYGPATH -u "$path"` 36227 new_path=`$WHICH "$new_path" 2> /dev/null` 36228 # bat and cmd files are not always considered executable in cygwin causing which 36229 # to not find them 36230 if test "x$new_path" = x \ 36231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36233 new_path=`$CYGPATH -u "$path"` 36234 fi 36235 if test "x$new_path" = x; then 36236 # It's still not found. Now this is an unrecoverable error. 36237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36238 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36239 has_space=`$ECHO "$complete" | $GREP " "` 36240 if test "x$has_space" != x; then 36241 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36242 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36243 fi 36244 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36245 fi 36246 fi 36247 36248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36251 # "foo.exe" is OK but "foo" is an error. 36252 # 36253 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36254 # It is also a way to make sure we got the proper file name for the real test later on. 36255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36256 if test "x$test_shortpath" = x; then 36257 # Short path failed, file does not exist as specified. 36258 # Try adding .exe or .cmd 36259 if test -f "${new_path}.exe"; then 36260 input_to_shortpath="${new_path}.exe" 36261 elif test -f "${new_path}.cmd"; then 36262 input_to_shortpath="${new_path}.cmd" 36263 else 36264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36265 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36266 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36267 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36268 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36269 fi 36270 else 36271 input_to_shortpath="$new_path" 36272 fi 36273 36274 # Call helper function which possibly converts this using DOS-style short mode. 36275 # If so, the updated path is stored in $new_path. 36276 new_path="$input_to_shortpath" 36277 36278 input_path="$input_to_shortpath" 36279 # Check if we need to convert this using DOS-style short mode. If the path 36280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36281 # take no chances and rewrite it. 36282 # Note: m4 eats our [], so we need to use [ and ] instead. 36283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36284 if test "x$has_forbidden_chars" != x; then 36285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36289 # Going to short mode and back again did indeed matter. Since short mode is 36290 # case insensitive, let's make it lowercase to improve readability. 36291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36292 # Now convert it back to Unix-style (cygpath) 36293 input_path=`$CYGPATH -u "$shortmode_path"` 36294 new_path="$input_path" 36295 fi 36296 fi 36297 36298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36299 if test "x$test_cygdrive_prefix" = x; then 36300 # As a simple fix, exclude /usr/bin since it's not a real path. 36301 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36303 # a path prefixed by /cygdrive for fixpath to work. 36304 new_path="$CYGWIN_ROOT_PATH$input_path" 36305 fi 36306 fi 36307 36308 # remove trailing .exe if any 36309 new_path="${new_path/%.exe/}" 36310 36311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36312 36313 # First separate the path from the arguments. This will split at the first 36314 # space. 36315 complete="$STRIP" 36316 path="${complete%% *}" 36317 tmp="$complete EOL" 36318 arguments="${tmp#* }" 36319 36320 # Input might be given as Windows format, start by converting to 36321 # unix format. 36322 new_path="$path" 36323 36324 windows_path="$new_path" 36325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36326 unix_path=`$CYGPATH -u "$windows_path"` 36327 new_path="$unix_path" 36328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36330 new_path="$unix_path" 36331 fi 36332 36333 36334 # Now try to locate executable using which 36335 new_path=`$WHICH "$new_path" 2> /dev/null` 36336 36337 if test "x$new_path" = x; then 36338 # Oops. Which didn't find the executable. 36339 # The splitting of arguments from the executable at a space might have been incorrect, 36340 # since paths with space are more likely in Windows. Give it another try with the whole 36341 # argument. 36342 path="$complete" 36343 arguments="EOL" 36344 new_path="$path" 36345 36346 windows_path="$new_path" 36347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36348 unix_path=`$CYGPATH -u "$windows_path"` 36349 new_path="$unix_path" 36350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36352 new_path="$unix_path" 36353 fi 36354 36355 36356 new_path=`$WHICH "$new_path" 2> /dev/null` 36357 # bat and cmd files are not always considered executable in MSYS causing which 36358 # to not find them 36359 if test "x$new_path" = x \ 36360 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36361 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36362 new_path="$path" 36363 36364 windows_path="$new_path" 36365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36366 unix_path=`$CYGPATH -u "$windows_path"` 36367 new_path="$unix_path" 36368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36370 new_path="$unix_path" 36371 fi 36372 36373 fi 36374 36375 if test "x$new_path" = x; then 36376 # It's still not found. Now this is an unrecoverable error. 36377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36378 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36379 has_space=`$ECHO "$complete" | $GREP " "` 36380 if test "x$has_space" != x; then 36381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36383 fi 36384 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36385 fi 36386 fi 36387 36388 # Now new_path has a complete unix path to the binary 36389 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36390 # Keep paths in /bin as-is, but remove trailing .exe if any 36391 new_path="${new_path/%.exe/}" 36392 # Do not save /bin paths to all_fixpath_prefixes! 36393 else 36394 # Not in mixed or Windows style, start by that. 36395 new_path=`cmd //c echo $new_path` 36396 36397 input_path="$new_path" 36398 # Check if we need to convert this using DOS-style short mode. If the path 36399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36400 # take no chances and rewrite it. 36401 # Note: m4 eats our [], so we need to use [ and ] instead. 36402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36403 if test "x$has_forbidden_chars" != x; then 36404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36405 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36406 fi 36407 36408 # Output is in $new_path 36409 36410 windows_path="$new_path" 36411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36412 unix_path=`$CYGPATH -u "$windows_path"` 36413 new_path="$unix_path" 36414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36415 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36416 new_path="$unix_path" 36417 fi 36418 36419 # remove trailing .exe if any 36420 new_path="${new_path/%.exe/}" 36421 36422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36424 fi 36425 36426 else 36427 # We're on a unix platform. Hooray! :) 36428 # First separate the path from the arguments. This will split at the first 36429 # space. 36430 complete="$STRIP" 36431 path="${complete%% *}" 36432 tmp="$complete EOL" 36433 arguments="${tmp#* }" 36434 36435 # Cannot rely on the command "which" here since it doesn't always work. 36436 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36437 if test -z "$is_absolute_path"; then 36438 # Path to executable is not absolute. Find it. 36439 IFS_save="$IFS" 36440 IFS=: 36441 for p in $PATH; do 36442 if test -f "$p/$path" && test -x "$p/$path"; then 36443 new_path="$p/$path" 36444 break 36445 fi 36446 done 36447 IFS="$IFS_save" 36448 else 36449 # This is an absolute path, we can use it without further modifications. 36450 new_path="$path" 36451 fi 36452 36453 if test "x$new_path" = x; then 36454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36455 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36456 has_space=`$ECHO "$complete" | $GREP " "` 36457 if test "x$has_space" != x; then 36458 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36459 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36460 fi 36461 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36462 fi 36463 fi 36464 36465 # Now join together the path and the arguments once again 36466 if test "x$arguments" != xEOL; then 36467 new_complete="$new_path ${arguments% *}" 36468 else 36469 new_complete="$new_path" 36470 fi 36471 36472 if test "x$complete" != "x$new_complete"; then 36473 STRIP="$new_complete" 36474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 36475 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 36476 fi 36477 fi 36478 36479 36480 36481 # Publish this variable in the help. 36482 36483 36484 if [ -z "${NM+x}" ]; then 36485 # The variable is not set by user, try to locate tool using the code snippet 36486 for ac_prog in nm 36487 do 36488 # Extract the first word of "$ac_prog", so it can be a program name with args. 36489 set dummy $ac_prog; ac_word=$2 36490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36491 $as_echo_n "checking for $ac_word... " >&6; } 36492 if ${ac_cv_path_NM+:} false; then : 36493 $as_echo_n "(cached) " >&6 36494 else 36495 case $NM in 36496 [\\/]* | ?:[\\/]*) 36497 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36498 ;; 36499 *) 36500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36501 for as_dir in $PATH 36502 do 36503 IFS=$as_save_IFS 36504 test -z "$as_dir" && as_dir=. 36505 for ac_exec_ext in '' $ac_executable_extensions; do 36506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36507 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36509 break 2 36510 fi 36511 done 36512 done 36513 IFS=$as_save_IFS 36514 36515 ;; 36516 esac 36517 fi 36518 NM=$ac_cv_path_NM 36519 if test -n "$NM"; then 36520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36521 $as_echo "$NM" >&6; } 36522 else 36523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36524 $as_echo "no" >&6; } 36525 fi 36526 36527 36528 test -n "$NM" && break 36529 done 36530 36531 else 36532 # The variable is set, but is it from the command line or the environment? 36533 36534 # Try to remove the string !NM! from our list. 36535 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 36536 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36537 # If it failed, the variable was not from the command line. Ignore it, 36538 # but warn the user (except for BASH, which is always set by the calling BASH). 36539 if test "xNM" != xBASH; then 36540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 36541 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 36542 fi 36543 # Try to locate tool using the code snippet 36544 for ac_prog in nm 36545 do 36546 # Extract the first word of "$ac_prog", so it can be a program name with args. 36547 set dummy $ac_prog; ac_word=$2 36548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36549 $as_echo_n "checking for $ac_word... " >&6; } 36550 if ${ac_cv_path_NM+:} false; then : 36551 $as_echo_n "(cached) " >&6 36552 else 36553 case $NM in 36554 [\\/]* | ?:[\\/]*) 36555 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36556 ;; 36557 *) 36558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36559 for as_dir in $PATH 36560 do 36561 IFS=$as_save_IFS 36562 test -z "$as_dir" && as_dir=. 36563 for ac_exec_ext in '' $ac_executable_extensions; do 36564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36565 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36567 break 2 36568 fi 36569 done 36570 done 36571 IFS=$as_save_IFS 36572 36573 ;; 36574 esac 36575 fi 36576 NM=$ac_cv_path_NM 36577 if test -n "$NM"; then 36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36579 $as_echo "$NM" >&6; } 36580 else 36581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36582 $as_echo "no" >&6; } 36583 fi 36584 36585 36586 test -n "$NM" && break 36587 done 36588 36589 else 36590 # If it succeeded, then it was overridden by the user. We will use it 36591 # for the tool. 36592 36593 # First remove it from the list of overridden variables, so we can test 36594 # for unknown variables in the end. 36595 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36596 36597 # Check if we try to supply an empty value 36598 if test "x$NM" = x; then 36599 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 36600 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 36601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 36602 $as_echo_n "checking for NM... " >&6; } 36603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 36604 $as_echo "disabled" >&6; } 36605 else 36606 # Check if the provided tool contains a complete path. 36607 tool_specified="$NM" 36608 tool_basename="${tool_specified##*/}" 36609 if test "x$tool_basename" = "x$tool_specified"; then 36610 # A command without a complete path is provided, search $PATH. 36611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 36612 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 36613 # Extract the first word of "$tool_basename", so it can be a program name with args. 36614 set dummy $tool_basename; ac_word=$2 36615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36616 $as_echo_n "checking for $ac_word... " >&6; } 36617 if ${ac_cv_path_NM+:} false; then : 36618 $as_echo_n "(cached) " >&6 36619 else 36620 case $NM in 36621 [\\/]* | ?:[\\/]*) 36622 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36623 ;; 36624 *) 36625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36626 for as_dir in $PATH 36627 do 36628 IFS=$as_save_IFS 36629 test -z "$as_dir" && as_dir=. 36630 for ac_exec_ext in '' $ac_executable_extensions; do 36631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36632 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36634 break 2 36635 fi 36636 done 36637 done 36638 IFS=$as_save_IFS 36639 36640 ;; 36641 esac 36642 fi 36643 NM=$ac_cv_path_NM 36644 if test -n "$NM"; then 36645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36646 $as_echo "$NM" >&6; } 36647 else 36648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36649 $as_echo "no" >&6; } 36650 fi 36651 36652 36653 if test "x$NM" = x; then 36654 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36655 fi 36656 else 36657 # Otherwise we believe it is a complete path. Use it as it is. 36658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 36659 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 36660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 36661 $as_echo_n "checking for NM... " >&6; } 36662 if test ! -x "$tool_specified"; then 36663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36664 $as_echo "not found" >&6; } 36665 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 36666 fi 36667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36668 $as_echo "$tool_specified" >&6; } 36669 fi 36670 fi 36671 fi 36672 fi 36673 36674 36675 36676 # Only process if variable expands to non-empty 36677 36678 if test "x$NM" != x; then 36679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36680 36681 # First separate the path from the arguments. This will split at the first 36682 # space. 36683 complete="$NM" 36684 path="${complete%% *}" 36685 tmp="$complete EOL" 36686 arguments="${tmp#* }" 36687 36688 # Input might be given as Windows format, start by converting to 36689 # unix format. 36690 new_path=`$CYGPATH -u "$path"` 36691 36692 # Now try to locate executable using which 36693 new_path=`$WHICH "$new_path" 2> /dev/null` 36694 # bat and cmd files are not always considered executable in cygwin causing which 36695 # to not find them 36696 if test "x$new_path" = x \ 36697 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36698 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36699 new_path=`$CYGPATH -u "$path"` 36700 fi 36701 if test "x$new_path" = x; then 36702 # Oops. Which didn't find the executable. 36703 # The splitting of arguments from the executable at a space might have been incorrect, 36704 # since paths with space are more likely in Windows. Give it another try with the whole 36705 # argument. 36706 path="$complete" 36707 arguments="EOL" 36708 new_path=`$CYGPATH -u "$path"` 36709 new_path=`$WHICH "$new_path" 2> /dev/null` 36710 # bat and cmd files are not always considered executable in cygwin causing which 36711 # to not find them 36712 if test "x$new_path" = x \ 36713 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36714 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36715 new_path=`$CYGPATH -u "$path"` 36716 fi 36717 if test "x$new_path" = x; then 36718 # It's still not found. Now this is an unrecoverable error. 36719 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36720 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36721 has_space=`$ECHO "$complete" | $GREP " "` 36722 if test "x$has_space" != x; then 36723 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36724 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36725 fi 36726 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36727 fi 36728 fi 36729 36730 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36731 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36732 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36733 # "foo.exe" is OK but "foo" is an error. 36734 # 36735 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36736 # It is also a way to make sure we got the proper file name for the real test later on. 36737 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36738 if test "x$test_shortpath" = x; then 36739 # Short path failed, file does not exist as specified. 36740 # Try adding .exe or .cmd 36741 if test -f "${new_path}.exe"; then 36742 input_to_shortpath="${new_path}.exe" 36743 elif test -f "${new_path}.cmd"; then 36744 input_to_shortpath="${new_path}.cmd" 36745 else 36746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 36747 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 36748 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36749 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36750 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36751 fi 36752 else 36753 input_to_shortpath="$new_path" 36754 fi 36755 36756 # Call helper function which possibly converts this using DOS-style short mode. 36757 # If so, the updated path is stored in $new_path. 36758 new_path="$input_to_shortpath" 36759 36760 input_path="$input_to_shortpath" 36761 # Check if we need to convert this using DOS-style short mode. If the path 36762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36763 # take no chances and rewrite it. 36764 # Note: m4 eats our [], so we need to use [ and ] instead. 36765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36766 if test "x$has_forbidden_chars" != x; then 36767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36768 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36769 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36770 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36771 # Going to short mode and back again did indeed matter. Since short mode is 36772 # case insensitive, let's make it lowercase to improve readability. 36773 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36774 # Now convert it back to Unix-style (cygpath) 36775 input_path=`$CYGPATH -u "$shortmode_path"` 36776 new_path="$input_path" 36777 fi 36778 fi 36779 36780 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36781 if test "x$test_cygdrive_prefix" = x; then 36782 # As a simple fix, exclude /usr/bin since it's not a real path. 36783 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36784 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36785 # a path prefixed by /cygdrive for fixpath to work. 36786 new_path="$CYGWIN_ROOT_PATH$input_path" 36787 fi 36788 fi 36789 36790 # remove trailing .exe if any 36791 new_path="${new_path/%.exe/}" 36792 36793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36794 36795 # First separate the path from the arguments. This will split at the first 36796 # space. 36797 complete="$NM" 36798 path="${complete%% *}" 36799 tmp="$complete EOL" 36800 arguments="${tmp#* }" 36801 36802 # Input might be given as Windows format, start by converting to 36803 # unix format. 36804 new_path="$path" 36805 36806 windows_path="$new_path" 36807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36808 unix_path=`$CYGPATH -u "$windows_path"` 36809 new_path="$unix_path" 36810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36812 new_path="$unix_path" 36813 fi 36814 36815 36816 # Now try to locate executable using which 36817 new_path=`$WHICH "$new_path" 2> /dev/null` 36818 36819 if test "x$new_path" = x; then 36820 # Oops. Which didn't find the executable. 36821 # The splitting of arguments from the executable at a space might have been incorrect, 36822 # since paths with space are more likely in Windows. Give it another try with the whole 36823 # argument. 36824 path="$complete" 36825 arguments="EOL" 36826 new_path="$path" 36827 36828 windows_path="$new_path" 36829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36830 unix_path=`$CYGPATH -u "$windows_path"` 36831 new_path="$unix_path" 36832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36834 new_path="$unix_path" 36835 fi 36836 36837 36838 new_path=`$WHICH "$new_path" 2> /dev/null` 36839 # bat and cmd files are not always considered executable in MSYS causing which 36840 # to not find them 36841 if test "x$new_path" = x \ 36842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36844 new_path="$path" 36845 36846 windows_path="$new_path" 36847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36848 unix_path=`$CYGPATH -u "$windows_path"` 36849 new_path="$unix_path" 36850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36852 new_path="$unix_path" 36853 fi 36854 36855 fi 36856 36857 if test "x$new_path" = x; then 36858 # It's still not found. Now this is an unrecoverable error. 36859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36860 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36861 has_space=`$ECHO "$complete" | $GREP " "` 36862 if test "x$has_space" != x; then 36863 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36864 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36865 fi 36866 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36867 fi 36868 fi 36869 36870 # Now new_path has a complete unix path to the binary 36871 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36872 # Keep paths in /bin as-is, but remove trailing .exe if any 36873 new_path="${new_path/%.exe/}" 36874 # Do not save /bin paths to all_fixpath_prefixes! 36875 else 36876 # Not in mixed or Windows style, start by that. 36877 new_path=`cmd //c echo $new_path` 36878 36879 input_path="$new_path" 36880 # Check if we need to convert this using DOS-style short mode. If the path 36881 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36882 # take no chances and rewrite it. 36883 # Note: m4 eats our [], so we need to use [ and ] instead. 36884 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36885 if test "x$has_forbidden_chars" != x; then 36886 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36887 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36888 fi 36889 36890 # Output is in $new_path 36891 36892 windows_path="$new_path" 36893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36894 unix_path=`$CYGPATH -u "$windows_path"` 36895 new_path="$unix_path" 36896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36898 new_path="$unix_path" 36899 fi 36900 36901 # remove trailing .exe if any 36902 new_path="${new_path/%.exe/}" 36903 36904 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36905 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36906 fi 36907 36908 else 36909 # We're on a unix platform. Hooray! :) 36910 # First separate the path from the arguments. This will split at the first 36911 # space. 36912 complete="$NM" 36913 path="${complete%% *}" 36914 tmp="$complete EOL" 36915 arguments="${tmp#* }" 36916 36917 # Cannot rely on the command "which" here since it doesn't always work. 36918 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36919 if test -z "$is_absolute_path"; then 36920 # Path to executable is not absolute. Find it. 36921 IFS_save="$IFS" 36922 IFS=: 36923 for p in $PATH; do 36924 if test -f "$p/$path" && test -x "$p/$path"; then 36925 new_path="$p/$path" 36926 break 36927 fi 36928 done 36929 IFS="$IFS_save" 36930 else 36931 # This is an absolute path, we can use it without further modifications. 36932 new_path="$path" 36933 fi 36934 36935 if test "x$new_path" = x; then 36936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36937 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36938 has_space=`$ECHO "$complete" | $GREP " "` 36939 if test "x$has_space" != x; then 36940 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36941 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36942 fi 36943 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36944 fi 36945 fi 36946 36947 # Now join together the path and the arguments once again 36948 if test "x$arguments" != xEOL; then 36949 new_complete="$new_path ${arguments% *}" 36950 else 36951 new_complete="$new_path" 36952 fi 36953 36954 if test "x$complete" != "x$new_complete"; then 36955 NM="$new_complete" 36956 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36957 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36958 fi 36959 fi 36960 36961 36962 36963 # Publish this variable in the help. 36964 36965 36966 if [ -z "${GNM+x}" ]; then 36967 # The variable is not set by user, try to locate tool using the code snippet 36968 for ac_prog in gnm 36969 do 36970 # Extract the first word of "$ac_prog", so it can be a program name with args. 36971 set dummy $ac_prog; ac_word=$2 36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36973 $as_echo_n "checking for $ac_word... " >&6; } 36974 if ${ac_cv_path_GNM+:} false; then : 36975 $as_echo_n "(cached) " >&6 36976 else 36977 case $GNM in 36978 [\\/]* | ?:[\\/]*) 36979 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36980 ;; 36981 *) 36982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36983 for as_dir in $PATH 36984 do 36985 IFS=$as_save_IFS 36986 test -z "$as_dir" && as_dir=. 36987 for ac_exec_ext in '' $ac_executable_extensions; do 36988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36989 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36991 break 2 36992 fi 36993 done 36994 done 36995 IFS=$as_save_IFS 36996 36997 ;; 36998 esac 36999 fi 37000 GNM=$ac_cv_path_GNM 37001 if test -n "$GNM"; then 37002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 37003 $as_echo "$GNM" >&6; } 37004 else 37005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37006 $as_echo "no" >&6; } 37007 fi 37008 37009 37010 test -n "$GNM" && break 37011 done 37012 37013 else 37014 # The variable is set, but is it from the command line or the environment? 37015 37016 # Try to remove the string !GNM! from our list. 37017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 37018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37019 # If it failed, the variable was not from the command line. Ignore it, 37020 # but warn the user (except for BASH, which is always set by the calling BASH). 37021 if test "xGNM" != xBASH; then 37022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 37023 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 37024 fi 37025 # Try to locate tool using the code snippet 37026 for ac_prog in gnm 37027 do 37028 # Extract the first word of "$ac_prog", so it can be a program name with args. 37029 set dummy $ac_prog; ac_word=$2 37030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37031 $as_echo_n "checking for $ac_word... " >&6; } 37032 if ${ac_cv_path_GNM+:} false; then : 37033 $as_echo_n "(cached) " >&6 37034 else 37035 case $GNM in 37036 [\\/]* | ?:[\\/]*) 37037 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 37038 ;; 37039 *) 37040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37041 for as_dir in $PATH 37042 do 37043 IFS=$as_save_IFS 37044 test -z "$as_dir" && as_dir=. 37045 for ac_exec_ext in '' $ac_executable_extensions; do 37046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37047 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 37048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37049 break 2 37050 fi 37051 done 37052 done 37053 IFS=$as_save_IFS 37054 37055 ;; 37056 esac 37057 fi 37058 GNM=$ac_cv_path_GNM 37059 if test -n "$GNM"; then 37060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 37061 $as_echo "$GNM" >&6; } 37062 else 37063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37064 $as_echo "no" >&6; } 37065 fi 37066 37067 37068 test -n "$GNM" && break 37069 done 37070 37071 else 37072 # If it succeeded, then it was overridden by the user. We will use it 37073 # for the tool. 37074 37075 # First remove it from the list of overridden variables, so we can test 37076 # for unknown variables in the end. 37077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37078 37079 # Check if we try to supply an empty value 37080 if test "x$GNM" = x; then 37081 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 37082 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 37083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 37084 $as_echo_n "checking for GNM... " >&6; } 37085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37086 $as_echo "disabled" >&6; } 37087 else 37088 # Check if the provided tool contains a complete path. 37089 tool_specified="$GNM" 37090 tool_basename="${tool_specified##*/}" 37091 if test "x$tool_basename" = "x$tool_specified"; then 37092 # A command without a complete path is provided, search $PATH. 37093 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 37094 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 37095 # Extract the first word of "$tool_basename", so it can be a program name with args. 37096 set dummy $tool_basename; ac_word=$2 37097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37098 $as_echo_n "checking for $ac_word... " >&6; } 37099 if ${ac_cv_path_GNM+:} false; then : 37100 $as_echo_n "(cached) " >&6 37101 else 37102 case $GNM in 37103 [\\/]* | ?:[\\/]*) 37104 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 37105 ;; 37106 *) 37107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37108 for as_dir in $PATH 37109 do 37110 IFS=$as_save_IFS 37111 test -z "$as_dir" && as_dir=. 37112 for ac_exec_ext in '' $ac_executable_extensions; do 37113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37114 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 37115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37116 break 2 37117 fi 37118 done 37119 done 37120 IFS=$as_save_IFS 37121 37122 ;; 37123 esac 37124 fi 37125 GNM=$ac_cv_path_GNM 37126 if test -n "$GNM"; then 37127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 37128 $as_echo "$GNM" >&6; } 37129 else 37130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37131 $as_echo "no" >&6; } 37132 fi 37133 37134 37135 if test "x$GNM" = x; then 37136 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37137 fi 37138 else 37139 # Otherwise we believe it is a complete path. Use it as it is. 37140 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 37141 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 37142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 37143 $as_echo_n "checking for GNM... " >&6; } 37144 if test ! -x "$tool_specified"; then 37145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37146 $as_echo "not found" >&6; } 37147 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 37148 fi 37149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37150 $as_echo "$tool_specified" >&6; } 37151 fi 37152 fi 37153 fi 37154 fi 37155 37156 37157 37158 # Only process if variable expands to non-empty 37159 37160 if test "x$GNM" != x; then 37161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37162 37163 # First separate the path from the arguments. This will split at the first 37164 # space. 37165 complete="$GNM" 37166 path="${complete%% *}" 37167 tmp="$complete EOL" 37168 arguments="${tmp#* }" 37169 37170 # Input might be given as Windows format, start by converting to 37171 # unix format. 37172 new_path=`$CYGPATH -u "$path"` 37173 37174 # Now try to locate executable using which 37175 new_path=`$WHICH "$new_path" 2> /dev/null` 37176 # bat and cmd files are not always considered executable in cygwin causing which 37177 # to not find them 37178 if test "x$new_path" = x \ 37179 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37180 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37181 new_path=`$CYGPATH -u "$path"` 37182 fi 37183 if test "x$new_path" = x; then 37184 # Oops. Which didn't find the executable. 37185 # The splitting of arguments from the executable at a space might have been incorrect, 37186 # since paths with space are more likely in Windows. Give it another try with the whole 37187 # argument. 37188 path="$complete" 37189 arguments="EOL" 37190 new_path=`$CYGPATH -u "$path"` 37191 new_path=`$WHICH "$new_path" 2> /dev/null` 37192 # bat and cmd files are not always considered executable in cygwin causing which 37193 # to not find them 37194 if test "x$new_path" = x \ 37195 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37196 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37197 new_path=`$CYGPATH -u "$path"` 37198 fi 37199 if test "x$new_path" = x; then 37200 # It's still not found. Now this is an unrecoverable error. 37201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 37202 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 37203 has_space=`$ECHO "$complete" | $GREP " "` 37204 if test "x$has_space" != x; then 37205 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37206 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37207 fi 37208 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37209 fi 37210 fi 37211 37212 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37213 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37214 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37215 # "foo.exe" is OK but "foo" is an error. 37216 # 37217 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37218 # It is also a way to make sure we got the proper file name for the real test later on. 37219 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37220 if test "x$test_shortpath" = x; then 37221 # Short path failed, file does not exist as specified. 37222 # Try adding .exe or .cmd 37223 if test -f "${new_path}.exe"; then 37224 input_to_shortpath="${new_path}.exe" 37225 elif test -f "${new_path}.cmd"; then 37226 input_to_shortpath="${new_path}.cmd" 37227 else 37228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 37229 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 37230 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37231 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37232 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37233 fi 37234 else 37235 input_to_shortpath="$new_path" 37236 fi 37237 37238 # Call helper function which possibly converts this using DOS-style short mode. 37239 # If so, the updated path is stored in $new_path. 37240 new_path="$input_to_shortpath" 37241 37242 input_path="$input_to_shortpath" 37243 # Check if we need to convert this using DOS-style short mode. If the path 37244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37245 # take no chances and rewrite it. 37246 # Note: m4 eats our [], so we need to use [ and ] instead. 37247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37248 if test "x$has_forbidden_chars" != x; then 37249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37250 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37251 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37252 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37253 # Going to short mode and back again did indeed matter. Since short mode is 37254 # case insensitive, let's make it lowercase to improve readability. 37255 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37256 # Now convert it back to Unix-style (cygpath) 37257 input_path=`$CYGPATH -u "$shortmode_path"` 37258 new_path="$input_path" 37259 fi 37260 fi 37261 37262 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37263 if test "x$test_cygdrive_prefix" = x; then 37264 # As a simple fix, exclude /usr/bin since it's not a real path. 37265 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37266 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37267 # a path prefixed by /cygdrive for fixpath to work. 37268 new_path="$CYGWIN_ROOT_PATH$input_path" 37269 fi 37270 fi 37271 37272 # remove trailing .exe if any 37273 new_path="${new_path/%.exe/}" 37274 37275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37276 37277 # First separate the path from the arguments. This will split at the first 37278 # space. 37279 complete="$GNM" 37280 path="${complete%% *}" 37281 tmp="$complete EOL" 37282 arguments="${tmp#* }" 37283 37284 # Input might be given as Windows format, start by converting to 37285 # unix format. 37286 new_path="$path" 37287 37288 windows_path="$new_path" 37289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37290 unix_path=`$CYGPATH -u "$windows_path"` 37291 new_path="$unix_path" 37292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37294 new_path="$unix_path" 37295 fi 37296 37297 37298 # Now try to locate executable using which 37299 new_path=`$WHICH "$new_path" 2> /dev/null` 37300 37301 if test "x$new_path" = x; then 37302 # Oops. Which didn't find the executable. 37303 # The splitting of arguments from the executable at a space might have been incorrect, 37304 # since paths with space are more likely in Windows. Give it another try with the whole 37305 # argument. 37306 path="$complete" 37307 arguments="EOL" 37308 new_path="$path" 37309 37310 windows_path="$new_path" 37311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37312 unix_path=`$CYGPATH -u "$windows_path"` 37313 new_path="$unix_path" 37314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37316 new_path="$unix_path" 37317 fi 37318 37319 37320 new_path=`$WHICH "$new_path" 2> /dev/null` 37321 # bat and cmd files are not always considered executable in MSYS causing which 37322 # to not find them 37323 if test "x$new_path" = x \ 37324 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37325 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37326 new_path="$path" 37327 37328 windows_path="$new_path" 37329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37330 unix_path=`$CYGPATH -u "$windows_path"` 37331 new_path="$unix_path" 37332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37334 new_path="$unix_path" 37335 fi 37336 37337 fi 37338 37339 if test "x$new_path" = x; then 37340 # It's still not found. Now this is an unrecoverable error. 37341 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 37342 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 37343 has_space=`$ECHO "$complete" | $GREP " "` 37344 if test "x$has_space" != x; then 37345 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37346 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37347 fi 37348 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37349 fi 37350 fi 37351 37352 # Now new_path has a complete unix path to the binary 37353 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37354 # Keep paths in /bin as-is, but remove trailing .exe if any 37355 new_path="${new_path/%.exe/}" 37356 # Do not save /bin paths to all_fixpath_prefixes! 37357 else 37358 # Not in mixed or Windows style, start by that. 37359 new_path=`cmd //c echo $new_path` 37360 37361 input_path="$new_path" 37362 # Check if we need to convert this using DOS-style short mode. If the path 37363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37364 # take no chances and rewrite it. 37365 # Note: m4 eats our [], so we need to use [ and ] instead. 37366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37367 if test "x$has_forbidden_chars" != x; then 37368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37369 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37370 fi 37371 37372 # Output is in $new_path 37373 37374 windows_path="$new_path" 37375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37376 unix_path=`$CYGPATH -u "$windows_path"` 37377 new_path="$unix_path" 37378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37379 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37380 new_path="$unix_path" 37381 fi 37382 37383 # remove trailing .exe if any 37384 new_path="${new_path/%.exe/}" 37385 37386 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37387 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37388 fi 37389 37390 else 37391 # We're on a unix platform. Hooray! :) 37392 # First separate the path from the arguments. This will split at the first 37393 # space. 37394 complete="$GNM" 37395 path="${complete%% *}" 37396 tmp="$complete EOL" 37397 arguments="${tmp#* }" 37398 37399 # Cannot rely on the command "which" here since it doesn't always work. 37400 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37401 if test -z "$is_absolute_path"; then 37402 # Path to executable is not absolute. Find it. 37403 IFS_save="$IFS" 37404 IFS=: 37405 for p in $PATH; do 37406 if test -f "$p/$path" && test -x "$p/$path"; then 37407 new_path="$p/$path" 37408 break 37409 fi 37410 done 37411 IFS="$IFS_save" 37412 else 37413 # This is an absolute path, we can use it without further modifications. 37414 new_path="$path" 37415 fi 37416 37417 if test "x$new_path" = x; then 37418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 37419 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 37420 has_space=`$ECHO "$complete" | $GREP " "` 37421 if test "x$has_space" != x; then 37422 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37423 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37424 fi 37425 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37426 fi 37427 fi 37428 37429 # Now join together the path and the arguments once again 37430 if test "x$arguments" != xEOL; then 37431 new_complete="$new_path ${arguments% *}" 37432 else 37433 new_complete="$new_path" 37434 fi 37435 37436 if test "x$complete" != "x$new_complete"; then 37437 GNM="$new_complete" 37438 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 37439 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 37440 fi 37441 fi 37442 37443 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 37444 # FIXME: we should unify this with the solaris case above. 37445 37446 37447 # Publish this variable in the help. 37448 37449 37450 if [ -z "${STRIP+x}" ]; then 37451 # The variable is not set by user, try to locate tool using the code snippet 37452 if test -n "$ac_tool_prefix"; then 37453 for ac_prog in strip 37454 do 37455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37458 $as_echo_n "checking for $ac_word... " >&6; } 37459 if ${ac_cv_prog_STRIP+:} false; then : 37460 $as_echo_n "(cached) " >&6 37461 else 37462 if test -n "$STRIP"; then 37463 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37464 else 37465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37466 for as_dir in $PATH 37467 do 37468 IFS=$as_save_IFS 37469 test -z "$as_dir" && as_dir=. 37470 for ac_exec_ext in '' $ac_executable_extensions; do 37471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37472 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37474 break 2 37475 fi 37476 done 37477 done 37478 IFS=$as_save_IFS 37479 37480 fi 37481 fi 37482 STRIP=$ac_cv_prog_STRIP 37483 if test -n "$STRIP"; then 37484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37485 $as_echo "$STRIP" >&6; } 37486 else 37487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37488 $as_echo "no" >&6; } 37489 fi 37490 37491 37492 test -n "$STRIP" && break 37493 done 37494 fi 37495 if test -z "$STRIP"; then 37496 ac_ct_STRIP=$STRIP 37497 for ac_prog in strip 37498 do 37499 # Extract the first word of "$ac_prog", so it can be a program name with args. 37500 set dummy $ac_prog; ac_word=$2 37501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37502 $as_echo_n "checking for $ac_word... " >&6; } 37503 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37504 $as_echo_n "(cached) " >&6 37505 else 37506 if test -n "$ac_ct_STRIP"; then 37507 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37508 else 37509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37510 for as_dir in $PATH 37511 do 37512 IFS=$as_save_IFS 37513 test -z "$as_dir" && as_dir=. 37514 for ac_exec_ext in '' $ac_executable_extensions; do 37515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37516 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37518 break 2 37519 fi 37520 done 37521 done 37522 IFS=$as_save_IFS 37523 37524 fi 37525 fi 37526 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37527 if test -n "$ac_ct_STRIP"; then 37528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37529 $as_echo "$ac_ct_STRIP" >&6; } 37530 else 37531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37532 $as_echo "no" >&6; } 37533 fi 37534 37535 37536 test -n "$ac_ct_STRIP" && break 37537 done 37538 37539 if test "x$ac_ct_STRIP" = x; then 37540 STRIP="" 37541 else 37542 case $cross_compiling:$ac_tool_warned in 37543 yes:) 37544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37546 ac_tool_warned=yes ;; 37547 esac 37548 STRIP=$ac_ct_STRIP 37549 fi 37550 fi 37551 37552 else 37553 # The variable is set, but is it from the command line or the environment? 37554 37555 # Try to remove the string !STRIP! from our list. 37556 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37557 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37558 # If it failed, the variable was not from the command line. Ignore it, 37559 # but warn the user (except for BASH, which is always set by the calling BASH). 37560 if test "xSTRIP" != xBASH; then 37561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37562 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37563 fi 37564 # Try to locate tool using the code snippet 37565 if test -n "$ac_tool_prefix"; then 37566 for ac_prog in strip 37567 do 37568 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37569 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37571 $as_echo_n "checking for $ac_word... " >&6; } 37572 if ${ac_cv_prog_STRIP+:} false; then : 37573 $as_echo_n "(cached) " >&6 37574 else 37575 if test -n "$STRIP"; then 37576 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37577 else 37578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37579 for as_dir in $PATH 37580 do 37581 IFS=$as_save_IFS 37582 test -z "$as_dir" && as_dir=. 37583 for ac_exec_ext in '' $ac_executable_extensions; do 37584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37585 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37587 break 2 37588 fi 37589 done 37590 done 37591 IFS=$as_save_IFS 37592 37593 fi 37594 fi 37595 STRIP=$ac_cv_prog_STRIP 37596 if test -n "$STRIP"; then 37597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37598 $as_echo "$STRIP" >&6; } 37599 else 37600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37601 $as_echo "no" >&6; } 37602 fi 37603 37604 37605 test -n "$STRIP" && break 37606 done 37607 fi 37608 if test -z "$STRIP"; then 37609 ac_ct_STRIP=$STRIP 37610 for ac_prog in strip 37611 do 37612 # Extract the first word of "$ac_prog", so it can be a program name with args. 37613 set dummy $ac_prog; ac_word=$2 37614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37615 $as_echo_n "checking for $ac_word... " >&6; } 37616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37617 $as_echo_n "(cached) " >&6 37618 else 37619 if test -n "$ac_ct_STRIP"; then 37620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37621 else 37622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37623 for as_dir in $PATH 37624 do 37625 IFS=$as_save_IFS 37626 test -z "$as_dir" && as_dir=. 37627 for ac_exec_ext in '' $ac_executable_extensions; do 37628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37629 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37631 break 2 37632 fi 37633 done 37634 done 37635 IFS=$as_save_IFS 37636 37637 fi 37638 fi 37639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37640 if test -n "$ac_ct_STRIP"; then 37641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37642 $as_echo "$ac_ct_STRIP" >&6; } 37643 else 37644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37645 $as_echo "no" >&6; } 37646 fi 37647 37648 37649 test -n "$ac_ct_STRIP" && break 37650 done 37651 37652 if test "x$ac_ct_STRIP" = x; then 37653 STRIP="" 37654 else 37655 case $cross_compiling:$ac_tool_warned in 37656 yes:) 37657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37659 ac_tool_warned=yes ;; 37660 esac 37661 STRIP=$ac_ct_STRIP 37662 fi 37663 fi 37664 37665 else 37666 # If it succeeded, then it was overridden by the user. We will use it 37667 # for the tool. 37668 37669 # First remove it from the list of overridden variables, so we can test 37670 # for unknown variables in the end. 37671 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37672 37673 # Check if we try to supply an empty value 37674 if test "x$STRIP" = x; then 37675 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 37676 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 37677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37678 $as_echo_n "checking for STRIP... " >&6; } 37679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37680 $as_echo "disabled" >&6; } 37681 else 37682 # Check if the provided tool contains a complete path. 37683 tool_specified="$STRIP" 37684 tool_basename="${tool_specified##*/}" 37685 if test "x$tool_basename" = "x$tool_specified"; then 37686 # A command without a complete path is provided, search $PATH. 37687 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37688 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37689 # Extract the first word of "$tool_basename", so it can be a program name with args. 37690 set dummy $tool_basename; ac_word=$2 37691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37692 $as_echo_n "checking for $ac_word... " >&6; } 37693 if ${ac_cv_path_STRIP+:} false; then : 37694 $as_echo_n "(cached) " >&6 37695 else 37696 case $STRIP in 37697 [\\/]* | ?:[\\/]*) 37698 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37699 ;; 37700 *) 37701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37702 for as_dir in $PATH 37703 do 37704 IFS=$as_save_IFS 37705 test -z "$as_dir" && as_dir=. 37706 for ac_exec_ext in '' $ac_executable_extensions; do 37707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37708 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37710 break 2 37711 fi 37712 done 37713 done 37714 IFS=$as_save_IFS 37715 37716 ;; 37717 esac 37718 fi 37719 STRIP=$ac_cv_path_STRIP 37720 if test -n "$STRIP"; then 37721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37722 $as_echo "$STRIP" >&6; } 37723 else 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37725 $as_echo "no" >&6; } 37726 fi 37727 37728 37729 if test "x$STRIP" = x; then 37730 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37731 fi 37732 else 37733 # Otherwise we believe it is a complete path. Use it as it is. 37734 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37735 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37737 $as_echo_n "checking for STRIP... " >&6; } 37738 if test ! -x "$tool_specified"; then 37739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37740 $as_echo "not found" >&6; } 37741 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37742 fi 37743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37744 $as_echo "$tool_specified" >&6; } 37745 fi 37746 fi 37747 fi 37748 fi 37749 37750 37751 37752 # Only process if variable expands to non-empty 37753 37754 if test "x$STRIP" != x; then 37755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37756 37757 # First separate the path from the arguments. This will split at the first 37758 # space. 37759 complete="$STRIP" 37760 path="${complete%% *}" 37761 tmp="$complete EOL" 37762 arguments="${tmp#* }" 37763 37764 # Input might be given as Windows format, start by converting to 37765 # unix format. 37766 new_path=`$CYGPATH -u "$path"` 37767 37768 # Now try to locate executable using which 37769 new_path=`$WHICH "$new_path" 2> /dev/null` 37770 # bat and cmd files are not always considered executable in cygwin causing which 37771 # to not find them 37772 if test "x$new_path" = x \ 37773 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37774 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37775 new_path=`$CYGPATH -u "$path"` 37776 fi 37777 if test "x$new_path" = x; then 37778 # Oops. Which didn't find the executable. 37779 # The splitting of arguments from the executable at a space might have been incorrect, 37780 # since paths with space are more likely in Windows. Give it another try with the whole 37781 # argument. 37782 path="$complete" 37783 arguments="EOL" 37784 new_path=`$CYGPATH -u "$path"` 37785 new_path=`$WHICH "$new_path" 2> /dev/null` 37786 # bat and cmd files are not always considered executable in cygwin causing which 37787 # to not find them 37788 if test "x$new_path" = x \ 37789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37791 new_path=`$CYGPATH -u "$path"` 37792 fi 37793 if test "x$new_path" = x; then 37794 # It's still not found. Now this is an unrecoverable error. 37795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37796 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37797 has_space=`$ECHO "$complete" | $GREP " "` 37798 if test "x$has_space" != x; then 37799 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37800 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37801 fi 37802 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37803 fi 37804 fi 37805 37806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37809 # "foo.exe" is OK but "foo" is an error. 37810 # 37811 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37812 # It is also a way to make sure we got the proper file name for the real test later on. 37813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37814 if test "x$test_shortpath" = x; then 37815 # Short path failed, file does not exist as specified. 37816 # Try adding .exe or .cmd 37817 if test -f "${new_path}.exe"; then 37818 input_to_shortpath="${new_path}.exe" 37819 elif test -f "${new_path}.cmd"; then 37820 input_to_shortpath="${new_path}.cmd" 37821 else 37822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37823 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37824 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37825 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37826 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37827 fi 37828 else 37829 input_to_shortpath="$new_path" 37830 fi 37831 37832 # Call helper function which possibly converts this using DOS-style short mode. 37833 # If so, the updated path is stored in $new_path. 37834 new_path="$input_to_shortpath" 37835 37836 input_path="$input_to_shortpath" 37837 # Check if we need to convert this using DOS-style short mode. If the path 37838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37839 # take no chances and rewrite it. 37840 # Note: m4 eats our [], so we need to use [ and ] instead. 37841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37842 if test "x$has_forbidden_chars" != x; then 37843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37844 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37845 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37846 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37847 # Going to short mode and back again did indeed matter. Since short mode is 37848 # case insensitive, let's make it lowercase to improve readability. 37849 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37850 # Now convert it back to Unix-style (cygpath) 37851 input_path=`$CYGPATH -u "$shortmode_path"` 37852 new_path="$input_path" 37853 fi 37854 fi 37855 37856 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37857 if test "x$test_cygdrive_prefix" = x; then 37858 # As a simple fix, exclude /usr/bin since it's not a real path. 37859 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37860 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37861 # a path prefixed by /cygdrive for fixpath to work. 37862 new_path="$CYGWIN_ROOT_PATH$input_path" 37863 fi 37864 fi 37865 37866 # remove trailing .exe if any 37867 new_path="${new_path/%.exe/}" 37868 37869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37870 37871 # First separate the path from the arguments. This will split at the first 37872 # space. 37873 complete="$STRIP" 37874 path="${complete%% *}" 37875 tmp="$complete EOL" 37876 arguments="${tmp#* }" 37877 37878 # Input might be given as Windows format, start by converting to 37879 # unix format. 37880 new_path="$path" 37881 37882 windows_path="$new_path" 37883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37884 unix_path=`$CYGPATH -u "$windows_path"` 37885 new_path="$unix_path" 37886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37888 new_path="$unix_path" 37889 fi 37890 37891 37892 # Now try to locate executable using which 37893 new_path=`$WHICH "$new_path" 2> /dev/null` 37894 37895 if test "x$new_path" = x; then 37896 # Oops. Which didn't find the executable. 37897 # The splitting of arguments from the executable at a space might have been incorrect, 37898 # since paths with space are more likely in Windows. Give it another try with the whole 37899 # argument. 37900 path="$complete" 37901 arguments="EOL" 37902 new_path="$path" 37903 37904 windows_path="$new_path" 37905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37906 unix_path=`$CYGPATH -u "$windows_path"` 37907 new_path="$unix_path" 37908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37910 new_path="$unix_path" 37911 fi 37912 37913 37914 new_path=`$WHICH "$new_path" 2> /dev/null` 37915 # bat and cmd files are not always considered executable in MSYS causing which 37916 # to not find them 37917 if test "x$new_path" = x \ 37918 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37919 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37920 new_path="$path" 37921 37922 windows_path="$new_path" 37923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37924 unix_path=`$CYGPATH -u "$windows_path"` 37925 new_path="$unix_path" 37926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37928 new_path="$unix_path" 37929 fi 37930 37931 fi 37932 37933 if test "x$new_path" = x; then 37934 # It's still not found. Now this is an unrecoverable error. 37935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37936 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37937 has_space=`$ECHO "$complete" | $GREP " "` 37938 if test "x$has_space" != x; then 37939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37941 fi 37942 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37943 fi 37944 fi 37945 37946 # Now new_path has a complete unix path to the binary 37947 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37948 # Keep paths in /bin as-is, but remove trailing .exe if any 37949 new_path="${new_path/%.exe/}" 37950 # Do not save /bin paths to all_fixpath_prefixes! 37951 else 37952 # Not in mixed or Windows style, start by that. 37953 new_path=`cmd //c echo $new_path` 37954 37955 input_path="$new_path" 37956 # Check if we need to convert this using DOS-style short mode. If the path 37957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37958 # take no chances and rewrite it. 37959 # Note: m4 eats our [], so we need to use [ and ] instead. 37960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37961 if test "x$has_forbidden_chars" != x; then 37962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37964 fi 37965 37966 # Output is in $new_path 37967 37968 windows_path="$new_path" 37969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37970 unix_path=`$CYGPATH -u "$windows_path"` 37971 new_path="$unix_path" 37972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37974 new_path="$unix_path" 37975 fi 37976 37977 # remove trailing .exe if any 37978 new_path="${new_path/%.exe/}" 37979 37980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37982 fi 37983 37984 else 37985 # We're on a unix platform. Hooray! :) 37986 # First separate the path from the arguments. This will split at the first 37987 # space. 37988 complete="$STRIP" 37989 path="${complete%% *}" 37990 tmp="$complete EOL" 37991 arguments="${tmp#* }" 37992 37993 # Cannot rely on the command "which" here since it doesn't always work. 37994 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37995 if test -z "$is_absolute_path"; then 37996 # Path to executable is not absolute. Find it. 37997 IFS_save="$IFS" 37998 IFS=: 37999 for p in $PATH; do 38000 if test -f "$p/$path" && test -x "$p/$path"; then 38001 new_path="$p/$path" 38002 break 38003 fi 38004 done 38005 IFS="$IFS_save" 38006 else 38007 # This is an absolute path, we can use it without further modifications. 38008 new_path="$path" 38009 fi 38010 38011 if test "x$new_path" = x; then 38012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 38013 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 38014 has_space=`$ECHO "$complete" | $GREP " "` 38015 if test "x$has_space" != x; then 38016 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38017 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38018 fi 38019 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 38020 fi 38021 fi 38022 38023 # Now join together the path and the arguments once again 38024 if test "x$arguments" != xEOL; then 38025 new_complete="$new_path ${arguments% *}" 38026 else 38027 new_complete="$new_path" 38028 fi 38029 38030 if test "x$complete" != "x$new_complete"; then 38031 STRIP="$new_complete" 38032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 38033 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 38034 fi 38035 fi 38036 38037 38038 38039 # Publish this variable in the help. 38040 38041 38042 if [ -z "${NM+x}" ]; then 38043 # The variable is not set by user, try to locate tool using the code snippet 38044 if test -n "$ac_tool_prefix"; then 38045 for ac_prog in nm 38046 do 38047 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38050 $as_echo_n "checking for $ac_word... " >&6; } 38051 if ${ac_cv_prog_NM+:} false; then : 38052 $as_echo_n "(cached) " >&6 38053 else 38054 if test -n "$NM"; then 38055 ac_cv_prog_NM="$NM" # Let the user override the test. 38056 else 38057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38058 for as_dir in $PATH 38059 do 38060 IFS=$as_save_IFS 38061 test -z "$as_dir" && as_dir=. 38062 for ac_exec_ext in '' $ac_executable_extensions; do 38063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38064 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 38065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38066 break 2 38067 fi 38068 done 38069 done 38070 IFS=$as_save_IFS 38071 38072 fi 38073 fi 38074 NM=$ac_cv_prog_NM 38075 if test -n "$NM"; then 38076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38077 $as_echo "$NM" >&6; } 38078 else 38079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38080 $as_echo "no" >&6; } 38081 fi 38082 38083 38084 test -n "$NM" && break 38085 done 38086 fi 38087 if test -z "$NM"; then 38088 ac_ct_NM=$NM 38089 for ac_prog in nm 38090 do 38091 # Extract the first word of "$ac_prog", so it can be a program name with args. 38092 set dummy $ac_prog; ac_word=$2 38093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38094 $as_echo_n "checking for $ac_word... " >&6; } 38095 if ${ac_cv_prog_ac_ct_NM+:} false; then : 38096 $as_echo_n "(cached) " >&6 38097 else 38098 if test -n "$ac_ct_NM"; then 38099 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 38100 else 38101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38102 for as_dir in $PATH 38103 do 38104 IFS=$as_save_IFS 38105 test -z "$as_dir" && as_dir=. 38106 for ac_exec_ext in '' $ac_executable_extensions; do 38107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38108 ac_cv_prog_ac_ct_NM="$ac_prog" 38109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38110 break 2 38111 fi 38112 done 38113 done 38114 IFS=$as_save_IFS 38115 38116 fi 38117 fi 38118 ac_ct_NM=$ac_cv_prog_ac_ct_NM 38119 if test -n "$ac_ct_NM"; then 38120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 38121 $as_echo "$ac_ct_NM" >&6; } 38122 else 38123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38124 $as_echo "no" >&6; } 38125 fi 38126 38127 38128 test -n "$ac_ct_NM" && break 38129 done 38130 38131 if test "x$ac_ct_NM" = x; then 38132 NM="" 38133 else 38134 case $cross_compiling:$ac_tool_warned in 38135 yes:) 38136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38138 ac_tool_warned=yes ;; 38139 esac 38140 NM=$ac_ct_NM 38141 fi 38142 fi 38143 38144 else 38145 # The variable is set, but is it from the command line or the environment? 38146 38147 # Try to remove the string !NM! from our list. 38148 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 38149 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38150 # If it failed, the variable was not from the command line. Ignore it, 38151 # but warn the user (except for BASH, which is always set by the calling BASH). 38152 if test "xNM" != xBASH; then 38153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 38154 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 38155 fi 38156 # Try to locate tool using the code snippet 38157 if test -n "$ac_tool_prefix"; then 38158 for ac_prog in nm 38159 do 38160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38163 $as_echo_n "checking for $ac_word... " >&6; } 38164 if ${ac_cv_prog_NM+:} false; then : 38165 $as_echo_n "(cached) " >&6 38166 else 38167 if test -n "$NM"; then 38168 ac_cv_prog_NM="$NM" # Let the user override the test. 38169 else 38170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38171 for as_dir in $PATH 38172 do 38173 IFS=$as_save_IFS 38174 test -z "$as_dir" && as_dir=. 38175 for ac_exec_ext in '' $ac_executable_extensions; do 38176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38177 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 38178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38179 break 2 38180 fi 38181 done 38182 done 38183 IFS=$as_save_IFS 38184 38185 fi 38186 fi 38187 NM=$ac_cv_prog_NM 38188 if test -n "$NM"; then 38189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38190 $as_echo "$NM" >&6; } 38191 else 38192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38193 $as_echo "no" >&6; } 38194 fi 38195 38196 38197 test -n "$NM" && break 38198 done 38199 fi 38200 if test -z "$NM"; then 38201 ac_ct_NM=$NM 38202 for ac_prog in nm 38203 do 38204 # Extract the first word of "$ac_prog", so it can be a program name with args. 38205 set dummy $ac_prog; ac_word=$2 38206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38207 $as_echo_n "checking for $ac_word... " >&6; } 38208 if ${ac_cv_prog_ac_ct_NM+:} false; then : 38209 $as_echo_n "(cached) " >&6 38210 else 38211 if test -n "$ac_ct_NM"; then 38212 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 38213 else 38214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38215 for as_dir in $PATH 38216 do 38217 IFS=$as_save_IFS 38218 test -z "$as_dir" && as_dir=. 38219 for ac_exec_ext in '' $ac_executable_extensions; do 38220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38221 ac_cv_prog_ac_ct_NM="$ac_prog" 38222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38223 break 2 38224 fi 38225 done 38226 done 38227 IFS=$as_save_IFS 38228 38229 fi 38230 fi 38231 ac_ct_NM=$ac_cv_prog_ac_ct_NM 38232 if test -n "$ac_ct_NM"; then 38233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 38234 $as_echo "$ac_ct_NM" >&6; } 38235 else 38236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38237 $as_echo "no" >&6; } 38238 fi 38239 38240 38241 test -n "$ac_ct_NM" && break 38242 done 38243 38244 if test "x$ac_ct_NM" = x; then 38245 NM="" 38246 else 38247 case $cross_compiling:$ac_tool_warned in 38248 yes:) 38249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38251 ac_tool_warned=yes ;; 38252 esac 38253 NM=$ac_ct_NM 38254 fi 38255 fi 38256 38257 else 38258 # If it succeeded, then it was overridden by the user. We will use it 38259 # for the tool. 38260 38261 # First remove it from the list of overridden variables, so we can test 38262 # for unknown variables in the end. 38263 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38264 38265 # Check if we try to supply an empty value 38266 if test "x$NM" = x; then 38267 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 38268 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 38269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 38270 $as_echo_n "checking for NM... " >&6; } 38271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38272 $as_echo "disabled" >&6; } 38273 else 38274 # Check if the provided tool contains a complete path. 38275 tool_specified="$NM" 38276 tool_basename="${tool_specified##*/}" 38277 if test "x$tool_basename" = "x$tool_specified"; then 38278 # A command without a complete path is provided, search $PATH. 38279 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 38280 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 38281 # Extract the first word of "$tool_basename", so it can be a program name with args. 38282 set dummy $tool_basename; ac_word=$2 38283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38284 $as_echo_n "checking for $ac_word... " >&6; } 38285 if ${ac_cv_path_NM+:} false; then : 38286 $as_echo_n "(cached) " >&6 38287 else 38288 case $NM in 38289 [\\/]* | ?:[\\/]*) 38290 ac_cv_path_NM="$NM" # Let the user override the test with a path. 38291 ;; 38292 *) 38293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38294 for as_dir in $PATH 38295 do 38296 IFS=$as_save_IFS 38297 test -z "$as_dir" && as_dir=. 38298 for ac_exec_ext in '' $ac_executable_extensions; do 38299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38300 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 38301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38302 break 2 38303 fi 38304 done 38305 done 38306 IFS=$as_save_IFS 38307 38308 ;; 38309 esac 38310 fi 38311 NM=$ac_cv_path_NM 38312 if test -n "$NM"; then 38313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38314 $as_echo "$NM" >&6; } 38315 else 38316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38317 $as_echo "no" >&6; } 38318 fi 38319 38320 38321 if test "x$NM" = x; then 38322 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38323 fi 38324 else 38325 # Otherwise we believe it is a complete path. Use it as it is. 38326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 38327 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 38328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 38329 $as_echo_n "checking for NM... " >&6; } 38330 if test ! -x "$tool_specified"; then 38331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38332 $as_echo "not found" >&6; } 38333 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 38334 fi 38335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38336 $as_echo "$tool_specified" >&6; } 38337 fi 38338 fi 38339 fi 38340 fi 38341 38342 38343 38344 # Only process if variable expands to non-empty 38345 38346 if test "x$NM" != x; then 38347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38348 38349 # First separate the path from the arguments. This will split at the first 38350 # space. 38351 complete="$NM" 38352 path="${complete%% *}" 38353 tmp="$complete EOL" 38354 arguments="${tmp#* }" 38355 38356 # Input might be given as Windows format, start by converting to 38357 # unix format. 38358 new_path=`$CYGPATH -u "$path"` 38359 38360 # Now try to locate executable using which 38361 new_path=`$WHICH "$new_path" 2> /dev/null` 38362 # bat and cmd files are not always considered executable in cygwin causing which 38363 # to not find them 38364 if test "x$new_path" = x \ 38365 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38366 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38367 new_path=`$CYGPATH -u "$path"` 38368 fi 38369 if test "x$new_path" = x; then 38370 # Oops. Which didn't find the executable. 38371 # The splitting of arguments from the executable at a space might have been incorrect, 38372 # since paths with space are more likely in Windows. Give it another try with the whole 38373 # argument. 38374 path="$complete" 38375 arguments="EOL" 38376 new_path=`$CYGPATH -u "$path"` 38377 new_path=`$WHICH "$new_path" 2> /dev/null` 38378 # bat and cmd files are not always considered executable in cygwin causing which 38379 # to not find them 38380 if test "x$new_path" = x \ 38381 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38382 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38383 new_path=`$CYGPATH -u "$path"` 38384 fi 38385 if test "x$new_path" = x; then 38386 # It's still not found. Now this is an unrecoverable error. 38387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38388 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38389 has_space=`$ECHO "$complete" | $GREP " "` 38390 if test "x$has_space" != x; then 38391 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38392 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38393 fi 38394 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38395 fi 38396 fi 38397 38398 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38399 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38400 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38401 # "foo.exe" is OK but "foo" is an error. 38402 # 38403 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38404 # It is also a way to make sure we got the proper file name for the real test later on. 38405 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38406 if test "x$test_shortpath" = x; then 38407 # Short path failed, file does not exist as specified. 38408 # Try adding .exe or .cmd 38409 if test -f "${new_path}.exe"; then 38410 input_to_shortpath="${new_path}.exe" 38411 elif test -f "${new_path}.cmd"; then 38412 input_to_shortpath="${new_path}.cmd" 38413 else 38414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38415 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38416 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38417 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38418 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38419 fi 38420 else 38421 input_to_shortpath="$new_path" 38422 fi 38423 38424 # Call helper function which possibly converts this using DOS-style short mode. 38425 # If so, the updated path is stored in $new_path. 38426 new_path="$input_to_shortpath" 38427 38428 input_path="$input_to_shortpath" 38429 # Check if we need to convert this using DOS-style short mode. If the path 38430 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38431 # take no chances and rewrite it. 38432 # Note: m4 eats our [], so we need to use [ and ] instead. 38433 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38434 if test "x$has_forbidden_chars" != x; then 38435 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38436 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38437 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38438 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38439 # Going to short mode and back again did indeed matter. Since short mode is 38440 # case insensitive, let's make it lowercase to improve readability. 38441 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38442 # Now convert it back to Unix-style (cygpath) 38443 input_path=`$CYGPATH -u "$shortmode_path"` 38444 new_path="$input_path" 38445 fi 38446 fi 38447 38448 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38449 if test "x$test_cygdrive_prefix" = x; then 38450 # As a simple fix, exclude /usr/bin since it's not a real path. 38451 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38452 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38453 # a path prefixed by /cygdrive for fixpath to work. 38454 new_path="$CYGWIN_ROOT_PATH$input_path" 38455 fi 38456 fi 38457 38458 # remove trailing .exe if any 38459 new_path="${new_path/%.exe/}" 38460 38461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38462 38463 # First separate the path from the arguments. This will split at the first 38464 # space. 38465 complete="$NM" 38466 path="${complete%% *}" 38467 tmp="$complete EOL" 38468 arguments="${tmp#* }" 38469 38470 # Input might be given as Windows format, start by converting to 38471 # unix format. 38472 new_path="$path" 38473 38474 windows_path="$new_path" 38475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38476 unix_path=`$CYGPATH -u "$windows_path"` 38477 new_path="$unix_path" 38478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38480 new_path="$unix_path" 38481 fi 38482 38483 38484 # Now try to locate executable using which 38485 new_path=`$WHICH "$new_path" 2> /dev/null` 38486 38487 if test "x$new_path" = x; then 38488 # Oops. Which didn't find the executable. 38489 # The splitting of arguments from the executable at a space might have been incorrect, 38490 # since paths with space are more likely in Windows. Give it another try with the whole 38491 # argument. 38492 path="$complete" 38493 arguments="EOL" 38494 new_path="$path" 38495 38496 windows_path="$new_path" 38497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38498 unix_path=`$CYGPATH -u "$windows_path"` 38499 new_path="$unix_path" 38500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38502 new_path="$unix_path" 38503 fi 38504 38505 38506 new_path=`$WHICH "$new_path" 2> /dev/null` 38507 # bat and cmd files are not always considered executable in MSYS causing which 38508 # to not find them 38509 if test "x$new_path" = x \ 38510 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38511 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38512 new_path="$path" 38513 38514 windows_path="$new_path" 38515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38516 unix_path=`$CYGPATH -u "$windows_path"` 38517 new_path="$unix_path" 38518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38520 new_path="$unix_path" 38521 fi 38522 38523 fi 38524 38525 if test "x$new_path" = x; then 38526 # It's still not found. Now this is an unrecoverable error. 38527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38528 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38529 has_space=`$ECHO "$complete" | $GREP " "` 38530 if test "x$has_space" != x; then 38531 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38532 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38533 fi 38534 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38535 fi 38536 fi 38537 38538 # Now new_path has a complete unix path to the binary 38539 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38540 # Keep paths in /bin as-is, but remove trailing .exe if any 38541 new_path="${new_path/%.exe/}" 38542 # Do not save /bin paths to all_fixpath_prefixes! 38543 else 38544 # Not in mixed or Windows style, start by that. 38545 new_path=`cmd //c echo $new_path` 38546 38547 input_path="$new_path" 38548 # Check if we need to convert this using DOS-style short mode. If the path 38549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38550 # take no chances and rewrite it. 38551 # Note: m4 eats our [], so we need to use [ and ] instead. 38552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38553 if test "x$has_forbidden_chars" != x; then 38554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38556 fi 38557 38558 # Output is in $new_path 38559 38560 windows_path="$new_path" 38561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38562 unix_path=`$CYGPATH -u "$windows_path"` 38563 new_path="$unix_path" 38564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38565 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38566 new_path="$unix_path" 38567 fi 38568 38569 # remove trailing .exe if any 38570 new_path="${new_path/%.exe/}" 38571 38572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38574 fi 38575 38576 else 38577 # We're on a unix platform. Hooray! :) 38578 # First separate the path from the arguments. This will split at the first 38579 # space. 38580 complete="$NM" 38581 path="${complete%% *}" 38582 tmp="$complete EOL" 38583 arguments="${tmp#* }" 38584 38585 # Cannot rely on the command "which" here since it doesn't always work. 38586 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38587 if test -z "$is_absolute_path"; then 38588 # Path to executable is not absolute. Find it. 38589 IFS_save="$IFS" 38590 IFS=: 38591 for p in $PATH; do 38592 if test -f "$p/$path" && test -x "$p/$path"; then 38593 new_path="$p/$path" 38594 break 38595 fi 38596 done 38597 IFS="$IFS_save" 38598 else 38599 # This is an absolute path, we can use it without further modifications. 38600 new_path="$path" 38601 fi 38602 38603 if test "x$new_path" = x; then 38604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38605 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38606 has_space=`$ECHO "$complete" | $GREP " "` 38607 if test "x$has_space" != x; then 38608 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38609 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38610 fi 38611 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38612 fi 38613 fi 38614 38615 # Now join together the path and the arguments once again 38616 if test "x$arguments" != xEOL; then 38617 new_complete="$new_path ${arguments% *}" 38618 else 38619 new_complete="$new_path" 38620 fi 38621 38622 if test "x$complete" != "x$new_complete"; then 38623 NM="$new_complete" 38624 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38625 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38626 fi 38627 fi 38628 38629 GNM="$NM" 38630 38631 fi 38632 38633 # objcopy is used for moving debug symbols to separate files when 38634 # full debug symbols are enabled. 38635 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38636 38637 38638 # Publish this variable in the help. 38639 38640 38641 if [ -z "${OBJCOPY+x}" ]; then 38642 # The variable is not set by user, try to locate tool using the code snippet 38643 if test -n "$ac_tool_prefix"; then 38644 for ac_prog in gobjcopy objcopy 38645 do 38646 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38647 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38649 $as_echo_n "checking for $ac_word... " >&6; } 38650 if ${ac_cv_prog_OBJCOPY+:} false; then : 38651 $as_echo_n "(cached) " >&6 38652 else 38653 if test -n "$OBJCOPY"; then 38654 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38655 else 38656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38657 for as_dir in $PATH 38658 do 38659 IFS=$as_save_IFS 38660 test -z "$as_dir" && as_dir=. 38661 for ac_exec_ext in '' $ac_executable_extensions; do 38662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38663 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38665 break 2 38666 fi 38667 done 38668 done 38669 IFS=$as_save_IFS 38670 38671 fi 38672 fi 38673 OBJCOPY=$ac_cv_prog_OBJCOPY 38674 if test -n "$OBJCOPY"; then 38675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38676 $as_echo "$OBJCOPY" >&6; } 38677 else 38678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38679 $as_echo "no" >&6; } 38680 fi 38681 38682 38683 test -n "$OBJCOPY" && break 38684 done 38685 fi 38686 if test -z "$OBJCOPY"; then 38687 ac_ct_OBJCOPY=$OBJCOPY 38688 for ac_prog in gobjcopy objcopy 38689 do 38690 # Extract the first word of "$ac_prog", so it can be a program name with args. 38691 set dummy $ac_prog; ac_word=$2 38692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38693 $as_echo_n "checking for $ac_word... " >&6; } 38694 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38695 $as_echo_n "(cached) " >&6 38696 else 38697 if test -n "$ac_ct_OBJCOPY"; then 38698 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38699 else 38700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38701 for as_dir in $PATH 38702 do 38703 IFS=$as_save_IFS 38704 test -z "$as_dir" && as_dir=. 38705 for ac_exec_ext in '' $ac_executable_extensions; do 38706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38707 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38709 break 2 38710 fi 38711 done 38712 done 38713 IFS=$as_save_IFS 38714 38715 fi 38716 fi 38717 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38718 if test -n "$ac_ct_OBJCOPY"; then 38719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38720 $as_echo "$ac_ct_OBJCOPY" >&6; } 38721 else 38722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38723 $as_echo "no" >&6; } 38724 fi 38725 38726 38727 test -n "$ac_ct_OBJCOPY" && break 38728 done 38729 38730 if test "x$ac_ct_OBJCOPY" = x; then 38731 OBJCOPY="" 38732 else 38733 case $cross_compiling:$ac_tool_warned in 38734 yes:) 38735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38737 ac_tool_warned=yes ;; 38738 esac 38739 OBJCOPY=$ac_ct_OBJCOPY 38740 fi 38741 fi 38742 38743 else 38744 # The variable is set, but is it from the command line or the environment? 38745 38746 # Try to remove the string !OBJCOPY! from our list. 38747 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38748 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38749 # If it failed, the variable was not from the command line. Ignore it, 38750 # but warn the user (except for BASH, which is always set by the calling BASH). 38751 if test "xOBJCOPY" != xBASH; then 38752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38753 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38754 fi 38755 # Try to locate tool using the code snippet 38756 if test -n "$ac_tool_prefix"; then 38757 for ac_prog in gobjcopy objcopy 38758 do 38759 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38760 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38762 $as_echo_n "checking for $ac_word... " >&6; } 38763 if ${ac_cv_prog_OBJCOPY+:} false; then : 38764 $as_echo_n "(cached) " >&6 38765 else 38766 if test -n "$OBJCOPY"; then 38767 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38768 else 38769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38770 for as_dir in $PATH 38771 do 38772 IFS=$as_save_IFS 38773 test -z "$as_dir" && as_dir=. 38774 for ac_exec_ext in '' $ac_executable_extensions; do 38775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38776 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38778 break 2 38779 fi 38780 done 38781 done 38782 IFS=$as_save_IFS 38783 38784 fi 38785 fi 38786 OBJCOPY=$ac_cv_prog_OBJCOPY 38787 if test -n "$OBJCOPY"; then 38788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38789 $as_echo "$OBJCOPY" >&6; } 38790 else 38791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38792 $as_echo "no" >&6; } 38793 fi 38794 38795 38796 test -n "$OBJCOPY" && break 38797 done 38798 fi 38799 if test -z "$OBJCOPY"; then 38800 ac_ct_OBJCOPY=$OBJCOPY 38801 for ac_prog in gobjcopy objcopy 38802 do 38803 # Extract the first word of "$ac_prog", so it can be a program name with args. 38804 set dummy $ac_prog; ac_word=$2 38805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38806 $as_echo_n "checking for $ac_word... " >&6; } 38807 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38808 $as_echo_n "(cached) " >&6 38809 else 38810 if test -n "$ac_ct_OBJCOPY"; then 38811 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38812 else 38813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38814 for as_dir in $PATH 38815 do 38816 IFS=$as_save_IFS 38817 test -z "$as_dir" && as_dir=. 38818 for ac_exec_ext in '' $ac_executable_extensions; do 38819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38820 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38822 break 2 38823 fi 38824 done 38825 done 38826 IFS=$as_save_IFS 38827 38828 fi 38829 fi 38830 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38831 if test -n "$ac_ct_OBJCOPY"; then 38832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38833 $as_echo "$ac_ct_OBJCOPY" >&6; } 38834 else 38835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38836 $as_echo "no" >&6; } 38837 fi 38838 38839 38840 test -n "$ac_ct_OBJCOPY" && break 38841 done 38842 38843 if test "x$ac_ct_OBJCOPY" = x; then 38844 OBJCOPY="" 38845 else 38846 case $cross_compiling:$ac_tool_warned in 38847 yes:) 38848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38850 ac_tool_warned=yes ;; 38851 esac 38852 OBJCOPY=$ac_ct_OBJCOPY 38853 fi 38854 fi 38855 38856 else 38857 # If it succeeded, then it was overridden by the user. We will use it 38858 # for the tool. 38859 38860 # First remove it from the list of overridden variables, so we can test 38861 # for unknown variables in the end. 38862 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38863 38864 # Check if we try to supply an empty value 38865 if test "x$OBJCOPY" = x; then 38866 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 38867 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 38868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38869 $as_echo_n "checking for OBJCOPY... " >&6; } 38870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38871 $as_echo "disabled" >&6; } 38872 else 38873 # Check if the provided tool contains a complete path. 38874 tool_specified="$OBJCOPY" 38875 tool_basename="${tool_specified##*/}" 38876 if test "x$tool_basename" = "x$tool_specified"; then 38877 # A command without a complete path is provided, search $PATH. 38878 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38879 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38880 # Extract the first word of "$tool_basename", so it can be a program name with args. 38881 set dummy $tool_basename; ac_word=$2 38882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38883 $as_echo_n "checking for $ac_word... " >&6; } 38884 if ${ac_cv_path_OBJCOPY+:} false; then : 38885 $as_echo_n "(cached) " >&6 38886 else 38887 case $OBJCOPY in 38888 [\\/]* | ?:[\\/]*) 38889 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38890 ;; 38891 *) 38892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38893 for as_dir in $PATH 38894 do 38895 IFS=$as_save_IFS 38896 test -z "$as_dir" && as_dir=. 38897 for ac_exec_ext in '' $ac_executable_extensions; do 38898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38899 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38901 break 2 38902 fi 38903 done 38904 done 38905 IFS=$as_save_IFS 38906 38907 ;; 38908 esac 38909 fi 38910 OBJCOPY=$ac_cv_path_OBJCOPY 38911 if test -n "$OBJCOPY"; then 38912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38913 $as_echo "$OBJCOPY" >&6; } 38914 else 38915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38916 $as_echo "no" >&6; } 38917 fi 38918 38919 38920 if test "x$OBJCOPY" = x; then 38921 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38922 fi 38923 else 38924 # Otherwise we believe it is a complete path. Use it as it is. 38925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38926 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38928 $as_echo_n "checking for OBJCOPY... " >&6; } 38929 if test ! -x "$tool_specified"; then 38930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38931 $as_echo "not found" >&6; } 38932 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38933 fi 38934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38935 $as_echo "$tool_specified" >&6; } 38936 fi 38937 fi 38938 fi 38939 fi 38940 38941 38942 # Only call fixup if objcopy was found. 38943 if test -n "$OBJCOPY"; then 38944 38945 # Only process if variable expands to non-empty 38946 38947 if test "x$OBJCOPY" != x; then 38948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38949 38950 # First separate the path from the arguments. This will split at the first 38951 # space. 38952 complete="$OBJCOPY" 38953 path="${complete%% *}" 38954 tmp="$complete EOL" 38955 arguments="${tmp#* }" 38956 38957 # Input might be given as Windows format, start by converting to 38958 # unix format. 38959 new_path=`$CYGPATH -u "$path"` 38960 38961 # Now try to locate executable using which 38962 new_path=`$WHICH "$new_path" 2> /dev/null` 38963 # bat and cmd files are not always considered executable in cygwin causing which 38964 # to not find them 38965 if test "x$new_path" = x \ 38966 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38967 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38968 new_path=`$CYGPATH -u "$path"` 38969 fi 38970 if test "x$new_path" = x; then 38971 # Oops. Which didn't find the executable. 38972 # The splitting of arguments from the executable at a space might have been incorrect, 38973 # since paths with space are more likely in Windows. Give it another try with the whole 38974 # argument. 38975 path="$complete" 38976 arguments="EOL" 38977 new_path=`$CYGPATH -u "$path"` 38978 new_path=`$WHICH "$new_path" 2> /dev/null` 38979 # bat and cmd files are not always considered executable in cygwin causing which 38980 # to not find them 38981 if test "x$new_path" = x \ 38982 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38983 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38984 new_path=`$CYGPATH -u "$path"` 38985 fi 38986 if test "x$new_path" = x; then 38987 # It's still not found. Now this is an unrecoverable error. 38988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38989 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38990 has_space=`$ECHO "$complete" | $GREP " "` 38991 if test "x$has_space" != x; then 38992 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38994 fi 38995 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38996 fi 38997 fi 38998 38999 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39000 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39001 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39002 # "foo.exe" is OK but "foo" is an error. 39003 # 39004 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39005 # It is also a way to make sure we got the proper file name for the real test later on. 39006 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39007 if test "x$test_shortpath" = x; then 39008 # Short path failed, file does not exist as specified. 39009 # Try adding .exe or .cmd 39010 if test -f "${new_path}.exe"; then 39011 input_to_shortpath="${new_path}.exe" 39012 elif test -f "${new_path}.cmd"; then 39013 input_to_shortpath="${new_path}.cmd" 39014 else 39015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 39016 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 39017 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39018 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39019 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39020 fi 39021 else 39022 input_to_shortpath="$new_path" 39023 fi 39024 39025 # Call helper function which possibly converts this using DOS-style short mode. 39026 # If so, the updated path is stored in $new_path. 39027 new_path="$input_to_shortpath" 39028 39029 input_path="$input_to_shortpath" 39030 # Check if we need to convert this using DOS-style short mode. If the path 39031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39032 # take no chances and rewrite it. 39033 # Note: m4 eats our [], so we need to use [ and ] instead. 39034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39035 if test "x$has_forbidden_chars" != x; then 39036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39037 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39038 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39039 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39040 # Going to short mode and back again did indeed matter. Since short mode is 39041 # case insensitive, let's make it lowercase to improve readability. 39042 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39043 # Now convert it back to Unix-style (cygpath) 39044 input_path=`$CYGPATH -u "$shortmode_path"` 39045 new_path="$input_path" 39046 fi 39047 fi 39048 39049 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39050 if test "x$test_cygdrive_prefix" = x; then 39051 # As a simple fix, exclude /usr/bin since it's not a real path. 39052 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39053 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39054 # a path prefixed by /cygdrive for fixpath to work. 39055 new_path="$CYGWIN_ROOT_PATH$input_path" 39056 fi 39057 fi 39058 39059 # remove trailing .exe if any 39060 new_path="${new_path/%.exe/}" 39061 39062 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39063 39064 # First separate the path from the arguments. This will split at the first 39065 # space. 39066 complete="$OBJCOPY" 39067 path="${complete%% *}" 39068 tmp="$complete EOL" 39069 arguments="${tmp#* }" 39070 39071 # Input might be given as Windows format, start by converting to 39072 # unix format. 39073 new_path="$path" 39074 39075 windows_path="$new_path" 39076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39077 unix_path=`$CYGPATH -u "$windows_path"` 39078 new_path="$unix_path" 39079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39081 new_path="$unix_path" 39082 fi 39083 39084 39085 # Now try to locate executable using which 39086 new_path=`$WHICH "$new_path" 2> /dev/null` 39087 39088 if test "x$new_path" = x; then 39089 # Oops. Which didn't find the executable. 39090 # The splitting of arguments from the executable at a space might have been incorrect, 39091 # since paths with space are more likely in Windows. Give it another try with the whole 39092 # argument. 39093 path="$complete" 39094 arguments="EOL" 39095 new_path="$path" 39096 39097 windows_path="$new_path" 39098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39099 unix_path=`$CYGPATH -u "$windows_path"` 39100 new_path="$unix_path" 39101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39103 new_path="$unix_path" 39104 fi 39105 39106 39107 new_path=`$WHICH "$new_path" 2> /dev/null` 39108 # bat and cmd files are not always considered executable in MSYS causing which 39109 # to not find them 39110 if test "x$new_path" = x \ 39111 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39112 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39113 new_path="$path" 39114 39115 windows_path="$new_path" 39116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39117 unix_path=`$CYGPATH -u "$windows_path"` 39118 new_path="$unix_path" 39119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39121 new_path="$unix_path" 39122 fi 39123 39124 fi 39125 39126 if test "x$new_path" = x; then 39127 # It's still not found. Now this is an unrecoverable error. 39128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 39129 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 39130 has_space=`$ECHO "$complete" | $GREP " "` 39131 if test "x$has_space" != x; then 39132 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39133 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39134 fi 39135 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39136 fi 39137 fi 39138 39139 # Now new_path has a complete unix path to the binary 39140 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39141 # Keep paths in /bin as-is, but remove trailing .exe if any 39142 new_path="${new_path/%.exe/}" 39143 # Do not save /bin paths to all_fixpath_prefixes! 39144 else 39145 # Not in mixed or Windows style, start by that. 39146 new_path=`cmd //c echo $new_path` 39147 39148 input_path="$new_path" 39149 # Check if we need to convert this using DOS-style short mode. If the path 39150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39151 # take no chances and rewrite it. 39152 # Note: m4 eats our [], so we need to use [ and ] instead. 39153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39154 if test "x$has_forbidden_chars" != x; then 39155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39156 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39157 fi 39158 39159 # Output is in $new_path 39160 39161 windows_path="$new_path" 39162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39163 unix_path=`$CYGPATH -u "$windows_path"` 39164 new_path="$unix_path" 39165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39166 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39167 new_path="$unix_path" 39168 fi 39169 39170 # remove trailing .exe if any 39171 new_path="${new_path/%.exe/}" 39172 39173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39175 fi 39176 39177 else 39178 # We're on a unix platform. Hooray! :) 39179 # First separate the path from the arguments. This will split at the first 39180 # space. 39181 complete="$OBJCOPY" 39182 path="${complete%% *}" 39183 tmp="$complete EOL" 39184 arguments="${tmp#* }" 39185 39186 # Cannot rely on the command "which" here since it doesn't always work. 39187 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39188 if test -z "$is_absolute_path"; then 39189 # Path to executable is not absolute. Find it. 39190 IFS_save="$IFS" 39191 IFS=: 39192 for p in $PATH; do 39193 if test -f "$p/$path" && test -x "$p/$path"; then 39194 new_path="$p/$path" 39195 break 39196 fi 39197 done 39198 IFS="$IFS_save" 39199 else 39200 # This is an absolute path, we can use it without further modifications. 39201 new_path="$path" 39202 fi 39203 39204 if test "x$new_path" = x; then 39205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 39206 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 39207 has_space=`$ECHO "$complete" | $GREP " "` 39208 if test "x$has_space" != x; then 39209 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39210 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39211 fi 39212 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39213 fi 39214 fi 39215 39216 # Now join together the path and the arguments once again 39217 if test "x$arguments" != xEOL; then 39218 new_complete="$new_path ${arguments% *}" 39219 else 39220 new_complete="$new_path" 39221 fi 39222 39223 if test "x$complete" != "x$new_complete"; then 39224 OBJCOPY="$new_complete" 39225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 39226 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 39227 fi 39228 fi 39229 39230 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 39231 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 39232 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 39233 # - version number is last blank separate word on first line 39234 # - version number formats that have been seen: 39235 # - <major>.<minor> 39236 # - <major>.<minor>.<micro> 39237 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 39238 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 39239 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 39240 -e 's/.* //' \ 39241 -e '/^[01]\./b bad' \ 39242 -e '/^2\./{' \ 39243 -e ' s/^2\.//' \ 39244 -e ' /^[0-9]$/b bad' \ 39245 -e ' /^[0-9]\./b bad' \ 39246 -e ' /^1[0-9]$/b bad' \ 39247 -e ' /^1[0-9]\./b bad' \ 39248 -e ' /^20\./b bad' \ 39249 -e ' /^21\.0$/b bad' \ 39250 -e ' /^21\.0\./b bad' \ 39251 -e '}' \ 39252 -e ':good' \ 39253 -e 's/.*/VALID_VERSION/p' \ 39254 -e 'q' \ 39255 -e ':bad' \ 39256 -e 's/.*/BAD_VERSION/p' \ 39257 -e 'q'` 39258 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 39259 OBJCOPY= 39260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&5 39261 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 39262 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 39263 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 39264 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 39265 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 39266 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 39267 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 39269 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 39270 fi 39271 fi 39272 fi 39273 fi 39274 39275 39276 39277 # Publish this variable in the help. 39278 39279 39280 if [ -z "${OBJDUMP+x}" ]; then 39281 # The variable is not set by user, try to locate tool using the code snippet 39282 if test -n "$ac_tool_prefix"; then 39283 for ac_prog in gobjdump objdump 39284 do 39285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39288 $as_echo_n "checking for $ac_word... " >&6; } 39289 if ${ac_cv_prog_OBJDUMP+:} false; then : 39290 $as_echo_n "(cached) " >&6 39291 else 39292 if test -n "$OBJDUMP"; then 39293 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 39294 else 39295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39296 for as_dir in $PATH 39297 do 39298 IFS=$as_save_IFS 39299 test -z "$as_dir" && as_dir=. 39300 for ac_exec_ext in '' $ac_executable_extensions; do 39301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39302 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 39303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39304 break 2 39305 fi 39306 done 39307 done 39308 IFS=$as_save_IFS 39309 39310 fi 39311 fi 39312 OBJDUMP=$ac_cv_prog_OBJDUMP 39313 if test -n "$OBJDUMP"; then 39314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39315 $as_echo "$OBJDUMP" >&6; } 39316 else 39317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39318 $as_echo "no" >&6; } 39319 fi 39320 39321 39322 test -n "$OBJDUMP" && break 39323 done 39324 fi 39325 if test -z "$OBJDUMP"; then 39326 ac_ct_OBJDUMP=$OBJDUMP 39327 for ac_prog in gobjdump objdump 39328 do 39329 # Extract the first word of "$ac_prog", so it can be a program name with args. 39330 set dummy $ac_prog; ac_word=$2 39331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39332 $as_echo_n "checking for $ac_word... " >&6; } 39333 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39334 $as_echo_n "(cached) " >&6 39335 else 39336 if test -n "$ac_ct_OBJDUMP"; then 39337 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39338 else 39339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39340 for as_dir in $PATH 39341 do 39342 IFS=$as_save_IFS 39343 test -z "$as_dir" && as_dir=. 39344 for ac_exec_ext in '' $ac_executable_extensions; do 39345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39346 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39348 break 2 39349 fi 39350 done 39351 done 39352 IFS=$as_save_IFS 39353 39354 fi 39355 fi 39356 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39357 if test -n "$ac_ct_OBJDUMP"; then 39358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39359 $as_echo "$ac_ct_OBJDUMP" >&6; } 39360 else 39361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39362 $as_echo "no" >&6; } 39363 fi 39364 39365 39366 test -n "$ac_ct_OBJDUMP" && break 39367 done 39368 39369 if test "x$ac_ct_OBJDUMP" = x; then 39370 OBJDUMP="" 39371 else 39372 case $cross_compiling:$ac_tool_warned in 39373 yes:) 39374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39376 ac_tool_warned=yes ;; 39377 esac 39378 OBJDUMP=$ac_ct_OBJDUMP 39379 fi 39380 fi 39381 39382 else 39383 # The variable is set, but is it from the command line or the environment? 39384 39385 # Try to remove the string !OBJDUMP! from our list. 39386 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 39387 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39388 # If it failed, the variable was not from the command line. Ignore it, 39389 # but warn the user (except for BASH, which is always set by the calling BASH). 39390 if test "xOBJDUMP" != xBASH; then 39391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 39392 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 39393 fi 39394 # Try to locate tool using the code snippet 39395 if test -n "$ac_tool_prefix"; then 39396 for ac_prog in gobjdump objdump 39397 do 39398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39401 $as_echo_n "checking for $ac_word... " >&6; } 39402 if ${ac_cv_prog_OBJDUMP+:} false; then : 39403 $as_echo_n "(cached) " >&6 39404 else 39405 if test -n "$OBJDUMP"; then 39406 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 39407 else 39408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39409 for as_dir in $PATH 39410 do 39411 IFS=$as_save_IFS 39412 test -z "$as_dir" && as_dir=. 39413 for ac_exec_ext in '' $ac_executable_extensions; do 39414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39415 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 39416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39417 break 2 39418 fi 39419 done 39420 done 39421 IFS=$as_save_IFS 39422 39423 fi 39424 fi 39425 OBJDUMP=$ac_cv_prog_OBJDUMP 39426 if test -n "$OBJDUMP"; then 39427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39428 $as_echo "$OBJDUMP" >&6; } 39429 else 39430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39431 $as_echo "no" >&6; } 39432 fi 39433 39434 39435 test -n "$OBJDUMP" && break 39436 done 39437 fi 39438 if test -z "$OBJDUMP"; then 39439 ac_ct_OBJDUMP=$OBJDUMP 39440 for ac_prog in gobjdump objdump 39441 do 39442 # Extract the first word of "$ac_prog", so it can be a program name with args. 39443 set dummy $ac_prog; ac_word=$2 39444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39445 $as_echo_n "checking for $ac_word... " >&6; } 39446 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39447 $as_echo_n "(cached) " >&6 39448 else 39449 if test -n "$ac_ct_OBJDUMP"; then 39450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39451 else 39452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39453 for as_dir in $PATH 39454 do 39455 IFS=$as_save_IFS 39456 test -z "$as_dir" && as_dir=. 39457 for ac_exec_ext in '' $ac_executable_extensions; do 39458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39459 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39461 break 2 39462 fi 39463 done 39464 done 39465 IFS=$as_save_IFS 39466 39467 fi 39468 fi 39469 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39470 if test -n "$ac_ct_OBJDUMP"; then 39471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39472 $as_echo "$ac_ct_OBJDUMP" >&6; } 39473 else 39474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39475 $as_echo "no" >&6; } 39476 fi 39477 39478 39479 test -n "$ac_ct_OBJDUMP" && break 39480 done 39481 39482 if test "x$ac_ct_OBJDUMP" = x; then 39483 OBJDUMP="" 39484 else 39485 case $cross_compiling:$ac_tool_warned in 39486 yes:) 39487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39489 ac_tool_warned=yes ;; 39490 esac 39491 OBJDUMP=$ac_ct_OBJDUMP 39492 fi 39493 fi 39494 39495 else 39496 # If it succeeded, then it was overridden by the user. We will use it 39497 # for the tool. 39498 39499 # First remove it from the list of overridden variables, so we can test 39500 # for unknown variables in the end. 39501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39502 39503 # Check if we try to supply an empty value 39504 if test "x$OBJDUMP" = x; then 39505 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 39506 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 39507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39508 $as_echo_n "checking for OBJDUMP... " >&6; } 39509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39510 $as_echo "disabled" >&6; } 39511 else 39512 # Check if the provided tool contains a complete path. 39513 tool_specified="$OBJDUMP" 39514 tool_basename="${tool_specified##*/}" 39515 if test "x$tool_basename" = "x$tool_specified"; then 39516 # A command without a complete path is provided, search $PATH. 39517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 39518 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 39519 # Extract the first word of "$tool_basename", so it can be a program name with args. 39520 set dummy $tool_basename; ac_word=$2 39521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39522 $as_echo_n "checking for $ac_word... " >&6; } 39523 if ${ac_cv_path_OBJDUMP+:} false; then : 39524 $as_echo_n "(cached) " >&6 39525 else 39526 case $OBJDUMP in 39527 [\\/]* | ?:[\\/]*) 39528 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 39529 ;; 39530 *) 39531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39532 for as_dir in $PATH 39533 do 39534 IFS=$as_save_IFS 39535 test -z "$as_dir" && as_dir=. 39536 for ac_exec_ext in '' $ac_executable_extensions; do 39537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39538 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 39539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39540 break 2 39541 fi 39542 done 39543 done 39544 IFS=$as_save_IFS 39545 39546 ;; 39547 esac 39548 fi 39549 OBJDUMP=$ac_cv_path_OBJDUMP 39550 if test -n "$OBJDUMP"; then 39551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39552 $as_echo "$OBJDUMP" >&6; } 39553 else 39554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39555 $as_echo "no" >&6; } 39556 fi 39557 39558 39559 if test "x$OBJDUMP" = x; then 39560 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39561 fi 39562 else 39563 # Otherwise we believe it is a complete path. Use it as it is. 39564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 39565 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 39566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 39567 $as_echo_n "checking for OBJDUMP... " >&6; } 39568 if test ! -x "$tool_specified"; then 39569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39570 $as_echo "not found" >&6; } 39571 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 39572 fi 39573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39574 $as_echo "$tool_specified" >&6; } 39575 fi 39576 fi 39577 fi 39578 fi 39579 39580 39581 if test "x$OBJDUMP" != x; then 39582 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 39583 # bails if argument is missing. 39584 39585 # Only process if variable expands to non-empty 39586 39587 if test "x$OBJDUMP" != x; then 39588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39589 39590 # First separate the path from the arguments. This will split at the first 39591 # space. 39592 complete="$OBJDUMP" 39593 path="${complete%% *}" 39594 tmp="$complete EOL" 39595 arguments="${tmp#* }" 39596 39597 # Input might be given as Windows format, start by converting to 39598 # unix format. 39599 new_path=`$CYGPATH -u "$path"` 39600 39601 # Now try to locate executable using which 39602 new_path=`$WHICH "$new_path" 2> /dev/null` 39603 # bat and cmd files are not always considered executable in cygwin causing which 39604 # to not find them 39605 if test "x$new_path" = x \ 39606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39608 new_path=`$CYGPATH -u "$path"` 39609 fi 39610 if test "x$new_path" = x; then 39611 # Oops. Which didn't find the executable. 39612 # The splitting of arguments from the executable at a space might have been incorrect, 39613 # since paths with space are more likely in Windows. Give it another try with the whole 39614 # argument. 39615 path="$complete" 39616 arguments="EOL" 39617 new_path=`$CYGPATH -u "$path"` 39618 new_path=`$WHICH "$new_path" 2> /dev/null` 39619 # bat and cmd files are not always considered executable in cygwin causing which 39620 # to not find them 39621 if test "x$new_path" = x \ 39622 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39623 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39624 new_path=`$CYGPATH -u "$path"` 39625 fi 39626 if test "x$new_path" = x; then 39627 # It's still not found. Now this is an unrecoverable error. 39628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39629 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39630 has_space=`$ECHO "$complete" | $GREP " "` 39631 if test "x$has_space" != x; then 39632 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39633 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39634 fi 39635 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39636 fi 39637 fi 39638 39639 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39640 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39641 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39642 # "foo.exe" is OK but "foo" is an error. 39643 # 39644 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39645 # It is also a way to make sure we got the proper file name for the real test later on. 39646 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39647 if test "x$test_shortpath" = x; then 39648 # Short path failed, file does not exist as specified. 39649 # Try adding .exe or .cmd 39650 if test -f "${new_path}.exe"; then 39651 input_to_shortpath="${new_path}.exe" 39652 elif test -f "${new_path}.cmd"; then 39653 input_to_shortpath="${new_path}.cmd" 39654 else 39655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39656 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39657 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39658 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39659 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39660 fi 39661 else 39662 input_to_shortpath="$new_path" 39663 fi 39664 39665 # Call helper function which possibly converts this using DOS-style short mode. 39666 # If so, the updated path is stored in $new_path. 39667 new_path="$input_to_shortpath" 39668 39669 input_path="$input_to_shortpath" 39670 # Check if we need to convert this using DOS-style short mode. If the path 39671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39672 # take no chances and rewrite it. 39673 # Note: m4 eats our [], so we need to use [ and ] instead. 39674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39675 if test "x$has_forbidden_chars" != x; then 39676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39677 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39678 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39679 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39680 # Going to short mode and back again did indeed matter. Since short mode is 39681 # case insensitive, let's make it lowercase to improve readability. 39682 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39683 # Now convert it back to Unix-style (cygpath) 39684 input_path=`$CYGPATH -u "$shortmode_path"` 39685 new_path="$input_path" 39686 fi 39687 fi 39688 39689 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39690 if test "x$test_cygdrive_prefix" = x; then 39691 # As a simple fix, exclude /usr/bin since it's not a real path. 39692 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39693 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39694 # a path prefixed by /cygdrive for fixpath to work. 39695 new_path="$CYGWIN_ROOT_PATH$input_path" 39696 fi 39697 fi 39698 39699 # remove trailing .exe if any 39700 new_path="${new_path/%.exe/}" 39701 39702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39703 39704 # First separate the path from the arguments. This will split at the first 39705 # space. 39706 complete="$OBJDUMP" 39707 path="${complete%% *}" 39708 tmp="$complete EOL" 39709 arguments="${tmp#* }" 39710 39711 # Input might be given as Windows format, start by converting to 39712 # unix format. 39713 new_path="$path" 39714 39715 windows_path="$new_path" 39716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39717 unix_path=`$CYGPATH -u "$windows_path"` 39718 new_path="$unix_path" 39719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39721 new_path="$unix_path" 39722 fi 39723 39724 39725 # Now try to locate executable using which 39726 new_path=`$WHICH "$new_path" 2> /dev/null` 39727 39728 if test "x$new_path" = x; then 39729 # Oops. Which didn't find the executable. 39730 # The splitting of arguments from the executable at a space might have been incorrect, 39731 # since paths with space are more likely in Windows. Give it another try with the whole 39732 # argument. 39733 path="$complete" 39734 arguments="EOL" 39735 new_path="$path" 39736 39737 windows_path="$new_path" 39738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39739 unix_path=`$CYGPATH -u "$windows_path"` 39740 new_path="$unix_path" 39741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39743 new_path="$unix_path" 39744 fi 39745 39746 39747 new_path=`$WHICH "$new_path" 2> /dev/null` 39748 # bat and cmd files are not always considered executable in MSYS causing which 39749 # to not find them 39750 if test "x$new_path" = x \ 39751 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39752 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39753 new_path="$path" 39754 39755 windows_path="$new_path" 39756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39757 unix_path=`$CYGPATH -u "$windows_path"` 39758 new_path="$unix_path" 39759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39761 new_path="$unix_path" 39762 fi 39763 39764 fi 39765 39766 if test "x$new_path" = x; then 39767 # It's still not found. Now this is an unrecoverable error. 39768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39769 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39770 has_space=`$ECHO "$complete" | $GREP " "` 39771 if test "x$has_space" != x; then 39772 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39773 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39774 fi 39775 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39776 fi 39777 fi 39778 39779 # Now new_path has a complete unix path to the binary 39780 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39781 # Keep paths in /bin as-is, but remove trailing .exe if any 39782 new_path="${new_path/%.exe/}" 39783 # Do not save /bin paths to all_fixpath_prefixes! 39784 else 39785 # Not in mixed or Windows style, start by that. 39786 new_path=`cmd //c echo $new_path` 39787 39788 input_path="$new_path" 39789 # Check if we need to convert this using DOS-style short mode. If the path 39790 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39791 # take no chances and rewrite it. 39792 # Note: m4 eats our [], so we need to use [ and ] instead. 39793 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39794 if test "x$has_forbidden_chars" != x; then 39795 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39796 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39797 fi 39798 39799 # Output is in $new_path 39800 39801 windows_path="$new_path" 39802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39803 unix_path=`$CYGPATH -u "$windows_path"` 39804 new_path="$unix_path" 39805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39807 new_path="$unix_path" 39808 fi 39809 39810 # remove trailing .exe if any 39811 new_path="${new_path/%.exe/}" 39812 39813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39815 fi 39816 39817 else 39818 # We're on a unix platform. Hooray! :) 39819 # First separate the path from the arguments. This will split at the first 39820 # space. 39821 complete="$OBJDUMP" 39822 path="${complete%% *}" 39823 tmp="$complete EOL" 39824 arguments="${tmp#* }" 39825 39826 # Cannot rely on the command "which" here since it doesn't always work. 39827 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39828 if test -z "$is_absolute_path"; then 39829 # Path to executable is not absolute. Find it. 39830 IFS_save="$IFS" 39831 IFS=: 39832 for p in $PATH; do 39833 if test -f "$p/$path" && test -x "$p/$path"; then 39834 new_path="$p/$path" 39835 break 39836 fi 39837 done 39838 IFS="$IFS_save" 39839 else 39840 # This is an absolute path, we can use it without further modifications. 39841 new_path="$path" 39842 fi 39843 39844 if test "x$new_path" = x; then 39845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39846 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39847 has_space=`$ECHO "$complete" | $GREP " "` 39848 if test "x$has_space" != x; then 39849 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39850 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39851 fi 39852 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39853 fi 39854 fi 39855 39856 # Now join together the path and the arguments once again 39857 if test "x$arguments" != xEOL; then 39858 new_complete="$new_path ${arguments% *}" 39859 else 39860 new_complete="$new_path" 39861 fi 39862 39863 if test "x$complete" != "x$new_complete"; then 39864 OBJDUMP="$new_complete" 39865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39866 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39867 fi 39868 fi 39869 39870 fi 39871 39872 39873 # Restore old path. 39874 PATH="$OLD_PATH" 39875 39876 # Restore the flags to the user specified values. 39877 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39878 CFLAGS="$ORG_CFLAGS" 39879 CXXFLAGS="$ORG_CXXFLAGS" 39880 39881 39882 # Finally do some processing after the detection phase 39883 39884 if test "x$COMPILE_TYPE" = "xcross"; then 39885 # Now we need to find a C/C++ compiler that can build executables for the 39886 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39887 # used once. Also, we need to do this without adding a tools dir to the 39888 # path, otherwise we might pick up cross-compilers which don't use standard 39889 # naming. 39890 39891 # FIXME: we should list the discovered compilers as an exclude pattern! 39892 # If we do that, we can do this detection before POST_DETECTION, and still 39893 # find the build compilers in the tools dir, if needed. 39894 39895 39896 # Publish this variable in the help. 39897 39898 39899 if [ -z "${BUILD_CC+x}" ]; then 39900 # The variable is not set by user, try to locate tool using the code snippet 39901 for ac_prog in cl cc gcc 39902 do 39903 # Extract the first word of "$ac_prog", so it can be a program name with args. 39904 set dummy $ac_prog; ac_word=$2 39905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39906 $as_echo_n "checking for $ac_word... " >&6; } 39907 if ${ac_cv_path_BUILD_CC+:} false; then : 39908 $as_echo_n "(cached) " >&6 39909 else 39910 case $BUILD_CC in 39911 [\\/]* | ?:[\\/]*) 39912 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39913 ;; 39914 *) 39915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39916 for as_dir in $PATH 39917 do 39918 IFS=$as_save_IFS 39919 test -z "$as_dir" && as_dir=. 39920 for ac_exec_ext in '' $ac_executable_extensions; do 39921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39922 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39924 break 2 39925 fi 39926 done 39927 done 39928 IFS=$as_save_IFS 39929 39930 ;; 39931 esac 39932 fi 39933 BUILD_CC=$ac_cv_path_BUILD_CC 39934 if test -n "$BUILD_CC"; then 39935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39936 $as_echo "$BUILD_CC" >&6; } 39937 else 39938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39939 $as_echo "no" >&6; } 39940 fi 39941 39942 39943 test -n "$BUILD_CC" && break 39944 done 39945 39946 else 39947 # The variable is set, but is it from the command line or the environment? 39948 39949 # Try to remove the string !BUILD_CC! from our list. 39950 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39951 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39952 # If it failed, the variable was not from the command line. Ignore it, 39953 # but warn the user (except for BASH, which is always set by the calling BASH). 39954 if test "xBUILD_CC" != xBASH; then 39955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39956 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39957 fi 39958 # Try to locate tool using the code snippet 39959 for ac_prog in cl cc gcc 39960 do 39961 # Extract the first word of "$ac_prog", so it can be a program name with args. 39962 set dummy $ac_prog; ac_word=$2 39963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39964 $as_echo_n "checking for $ac_word... " >&6; } 39965 if ${ac_cv_path_BUILD_CC+:} false; then : 39966 $as_echo_n "(cached) " >&6 39967 else 39968 case $BUILD_CC in 39969 [\\/]* | ?:[\\/]*) 39970 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39971 ;; 39972 *) 39973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39974 for as_dir in $PATH 39975 do 39976 IFS=$as_save_IFS 39977 test -z "$as_dir" && as_dir=. 39978 for ac_exec_ext in '' $ac_executable_extensions; do 39979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39980 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39982 break 2 39983 fi 39984 done 39985 done 39986 IFS=$as_save_IFS 39987 39988 ;; 39989 esac 39990 fi 39991 BUILD_CC=$ac_cv_path_BUILD_CC 39992 if test -n "$BUILD_CC"; then 39993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39994 $as_echo "$BUILD_CC" >&6; } 39995 else 39996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39997 $as_echo "no" >&6; } 39998 fi 39999 40000 40001 test -n "$BUILD_CC" && break 40002 done 40003 40004 else 40005 # If it succeeded, then it was overridden by the user. We will use it 40006 # for the tool. 40007 40008 # First remove it from the list of overridden variables, so we can test 40009 # for unknown variables in the end. 40010 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40011 40012 # Check if we try to supply an empty value 40013 if test "x$BUILD_CC" = x; then 40014 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 40015 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 40016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 40017 $as_echo_n "checking for BUILD_CC... " >&6; } 40018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40019 $as_echo "disabled" >&6; } 40020 else 40021 # Check if the provided tool contains a complete path. 40022 tool_specified="$BUILD_CC" 40023 tool_basename="${tool_specified##*/}" 40024 if test "x$tool_basename" = "x$tool_specified"; then 40025 # A command without a complete path is provided, search $PATH. 40026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 40027 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 40028 # Extract the first word of "$tool_basename", so it can be a program name with args. 40029 set dummy $tool_basename; ac_word=$2 40030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40031 $as_echo_n "checking for $ac_word... " >&6; } 40032 if ${ac_cv_path_BUILD_CC+:} false; then : 40033 $as_echo_n "(cached) " >&6 40034 else 40035 case $BUILD_CC in 40036 [\\/]* | ?:[\\/]*) 40037 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 40038 ;; 40039 *) 40040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40041 for as_dir in $PATH 40042 do 40043 IFS=$as_save_IFS 40044 test -z "$as_dir" && as_dir=. 40045 for ac_exec_ext in '' $ac_executable_extensions; do 40046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40047 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 40048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40049 break 2 40050 fi 40051 done 40052 done 40053 IFS=$as_save_IFS 40054 40055 ;; 40056 esac 40057 fi 40058 BUILD_CC=$ac_cv_path_BUILD_CC 40059 if test -n "$BUILD_CC"; then 40060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 40061 $as_echo "$BUILD_CC" >&6; } 40062 else 40063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40064 $as_echo "no" >&6; } 40065 fi 40066 40067 40068 if test "x$BUILD_CC" = x; then 40069 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40070 fi 40071 else 40072 # Otherwise we believe it is a complete path. Use it as it is. 40073 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 40074 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 40075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 40076 $as_echo_n "checking for BUILD_CC... " >&6; } 40077 if test ! -x "$tool_specified"; then 40078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40079 $as_echo "not found" >&6; } 40080 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 40081 fi 40082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40083 $as_echo "$tool_specified" >&6; } 40084 fi 40085 fi 40086 fi 40087 fi 40088 40089 40090 40091 # Only process if variable expands to non-empty 40092 40093 if test "x$BUILD_CC" != x; then 40094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40095 40096 # First separate the path from the arguments. This will split at the first 40097 # space. 40098 complete="$BUILD_CC" 40099 path="${complete%% *}" 40100 tmp="$complete EOL" 40101 arguments="${tmp#* }" 40102 40103 # Input might be given as Windows format, start by converting to 40104 # unix format. 40105 new_path=`$CYGPATH -u "$path"` 40106 40107 # Now try to locate executable using which 40108 new_path=`$WHICH "$new_path" 2> /dev/null` 40109 # bat and cmd files are not always considered executable in cygwin causing which 40110 # to not find them 40111 if test "x$new_path" = x \ 40112 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40113 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40114 new_path=`$CYGPATH -u "$path"` 40115 fi 40116 if test "x$new_path" = x; then 40117 # Oops. Which didn't find the executable. 40118 # The splitting of arguments from the executable at a space might have been incorrect, 40119 # since paths with space are more likely in Windows. Give it another try with the whole 40120 # argument. 40121 path="$complete" 40122 arguments="EOL" 40123 new_path=`$CYGPATH -u "$path"` 40124 new_path=`$WHICH "$new_path" 2> /dev/null` 40125 # bat and cmd files are not always considered executable in cygwin causing which 40126 # to not find them 40127 if test "x$new_path" = x \ 40128 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40129 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40130 new_path=`$CYGPATH -u "$path"` 40131 fi 40132 if test "x$new_path" = x; then 40133 # It's still not found. Now this is an unrecoverable error. 40134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 40135 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 40136 has_space=`$ECHO "$complete" | $GREP " "` 40137 if test "x$has_space" != x; then 40138 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40139 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40140 fi 40141 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 40142 fi 40143 fi 40144 40145 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40146 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40147 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40148 # "foo.exe" is OK but "foo" is an error. 40149 # 40150 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40151 # It is also a way to make sure we got the proper file name for the real test later on. 40152 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40153 if test "x$test_shortpath" = x; then 40154 # Short path failed, file does not exist as specified. 40155 # Try adding .exe or .cmd 40156 if test -f "${new_path}.exe"; then 40157 input_to_shortpath="${new_path}.exe" 40158 elif test -f "${new_path}.cmd"; then 40159 input_to_shortpath="${new_path}.cmd" 40160 else 40161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 40162 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 40163 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40164 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40165 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 40166 fi 40167 else 40168 input_to_shortpath="$new_path" 40169 fi 40170 40171 # Call helper function which possibly converts this using DOS-style short mode. 40172 # If so, the updated path is stored in $new_path. 40173 new_path="$input_to_shortpath" 40174 40175 input_path="$input_to_shortpath" 40176 # Check if we need to convert this using DOS-style short mode. If the path 40177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40178 # take no chances and rewrite it. 40179 # Note: m4 eats our [], so we need to use [ and ] instead. 40180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40181 if test "x$has_forbidden_chars" != x; then 40182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40183 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40184 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40185 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40186 # Going to short mode and back again did indeed matter. Since short mode is 40187 # case insensitive, let's make it lowercase to improve readability. 40188 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40189 # Now convert it back to Unix-style (cygpath) 40190 input_path=`$CYGPATH -u "$shortmode_path"` 40191 new_path="$input_path" 40192 fi 40193 fi 40194 40195 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40196 if test "x$test_cygdrive_prefix" = x; then 40197 # As a simple fix, exclude /usr/bin since it's not a real path. 40198 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40199 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40200 # a path prefixed by /cygdrive for fixpath to work. 40201 new_path="$CYGWIN_ROOT_PATH$input_path" 40202 fi 40203 fi 40204 40205 # remove trailing .exe if any 40206 new_path="${new_path/%.exe/}" 40207 40208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40209 40210 # First separate the path from the arguments. This will split at the first 40211 # space. 40212 complete="$BUILD_CC" 40213 path="${complete%% *}" 40214 tmp="$complete EOL" 40215 arguments="${tmp#* }" 40216 40217 # Input might be given as Windows format, start by converting to 40218 # unix format. 40219 new_path="$path" 40220 40221 windows_path="$new_path" 40222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40223 unix_path=`$CYGPATH -u "$windows_path"` 40224 new_path="$unix_path" 40225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40226 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40227 new_path="$unix_path" 40228 fi 40229 40230 40231 # Now try to locate executable using which 40232 new_path=`$WHICH "$new_path" 2> /dev/null` 40233 40234 if test "x$new_path" = x; then 40235 # Oops. Which didn't find the executable. 40236 # The splitting of arguments from the executable at a space might have been incorrect, 40237 # since paths with space are more likely in Windows. Give it another try with the whole 40238 # argument. 40239 path="$complete" 40240 arguments="EOL" 40241 new_path="$path" 40242 40243 windows_path="$new_path" 40244 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40245 unix_path=`$CYGPATH -u "$windows_path"` 40246 new_path="$unix_path" 40247 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40248 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40249 new_path="$unix_path" 40250 fi 40251 40252 40253 new_path=`$WHICH "$new_path" 2> /dev/null` 40254 # bat and cmd files are not always considered executable in MSYS causing which 40255 # to not find them 40256 if test "x$new_path" = x \ 40257 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40258 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40259 new_path="$path" 40260 40261 windows_path="$new_path" 40262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40263 unix_path=`$CYGPATH -u "$windows_path"` 40264 new_path="$unix_path" 40265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40266 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40267 new_path="$unix_path" 40268 fi 40269 40270 fi 40271 40272 if test "x$new_path" = x; then 40273 # It's still not found. Now this is an unrecoverable error. 40274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 40275 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 40276 has_space=`$ECHO "$complete" | $GREP " "` 40277 if test "x$has_space" != x; then 40278 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40279 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40280 fi 40281 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 40282 fi 40283 fi 40284 40285 # Now new_path has a complete unix path to the binary 40286 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40287 # Keep paths in /bin as-is, but remove trailing .exe if any 40288 new_path="${new_path/%.exe/}" 40289 # Do not save /bin paths to all_fixpath_prefixes! 40290 else 40291 # Not in mixed or Windows style, start by that. 40292 new_path=`cmd //c echo $new_path` 40293 40294 input_path="$new_path" 40295 # Check if we need to convert this using DOS-style short mode. If the path 40296 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40297 # take no chances and rewrite it. 40298 # Note: m4 eats our [], so we need to use [ and ] instead. 40299 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40300 if test "x$has_forbidden_chars" != x; then 40301 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40302 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40303 fi 40304 40305 # Output is in $new_path 40306 40307 windows_path="$new_path" 40308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40309 unix_path=`$CYGPATH -u "$windows_path"` 40310 new_path="$unix_path" 40311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40313 new_path="$unix_path" 40314 fi 40315 40316 # remove trailing .exe if any 40317 new_path="${new_path/%.exe/}" 40318 40319 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40320 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40321 fi 40322 40323 else 40324 # We're on a unix platform. Hooray! :) 40325 # First separate the path from the arguments. This will split at the first 40326 # space. 40327 complete="$BUILD_CC" 40328 path="${complete%% *}" 40329 tmp="$complete EOL" 40330 arguments="${tmp#* }" 40331 40332 # Cannot rely on the command "which" here since it doesn't always work. 40333 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40334 if test -z "$is_absolute_path"; then 40335 # Path to executable is not absolute. Find it. 40336 IFS_save="$IFS" 40337 IFS=: 40338 for p in $PATH; do 40339 if test -f "$p/$path" && test -x "$p/$path"; then 40340 new_path="$p/$path" 40341 break 40342 fi 40343 done 40344 IFS="$IFS_save" 40345 else 40346 # This is an absolute path, we can use it without further modifications. 40347 new_path="$path" 40348 fi 40349 40350 if test "x$new_path" = x; then 40351 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 40352 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 40353 has_space=`$ECHO "$complete" | $GREP " "` 40354 if test "x$has_space" != x; then 40355 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40356 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40357 fi 40358 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 40359 fi 40360 fi 40361 40362 # Now join together the path and the arguments once again 40363 if test "x$arguments" != xEOL; then 40364 new_complete="$new_path ${arguments% *}" 40365 else 40366 new_complete="$new_path" 40367 fi 40368 40369 if test "x$complete" != "x$new_complete"; then 40370 BUILD_CC="$new_complete" 40371 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 40372 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 40373 fi 40374 fi 40375 40376 40377 40378 # Publish this variable in the help. 40379 40380 40381 if [ -z "${BUILD_CXX+x}" ]; then 40382 # The variable is not set by user, try to locate tool using the code snippet 40383 for ac_prog in cl CC g++ 40384 do 40385 # Extract the first word of "$ac_prog", so it can be a program name with args. 40386 set dummy $ac_prog; ac_word=$2 40387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40388 $as_echo_n "checking for $ac_word... " >&6; } 40389 if ${ac_cv_path_BUILD_CXX+:} false; then : 40390 $as_echo_n "(cached) " >&6 40391 else 40392 case $BUILD_CXX in 40393 [\\/]* | ?:[\\/]*) 40394 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40395 ;; 40396 *) 40397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40398 for as_dir in $PATH 40399 do 40400 IFS=$as_save_IFS 40401 test -z "$as_dir" && as_dir=. 40402 for ac_exec_ext in '' $ac_executable_extensions; do 40403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40404 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40406 break 2 40407 fi 40408 done 40409 done 40410 IFS=$as_save_IFS 40411 40412 ;; 40413 esac 40414 fi 40415 BUILD_CXX=$ac_cv_path_BUILD_CXX 40416 if test -n "$BUILD_CXX"; then 40417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40418 $as_echo "$BUILD_CXX" >&6; } 40419 else 40420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40421 $as_echo "no" >&6; } 40422 fi 40423 40424 40425 test -n "$BUILD_CXX" && break 40426 done 40427 40428 else 40429 # The variable is set, but is it from the command line or the environment? 40430 40431 # Try to remove the string !BUILD_CXX! from our list. 40432 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 40433 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40434 # If it failed, the variable was not from the command line. Ignore it, 40435 # but warn the user (except for BASH, which is always set by the calling BASH). 40436 if test "xBUILD_CXX" != xBASH; then 40437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 40438 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 40439 fi 40440 # Try to locate tool using the code snippet 40441 for ac_prog in cl CC g++ 40442 do 40443 # Extract the first word of "$ac_prog", so it can be a program name with args. 40444 set dummy $ac_prog; ac_word=$2 40445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40446 $as_echo_n "checking for $ac_word... " >&6; } 40447 if ${ac_cv_path_BUILD_CXX+:} false; then : 40448 $as_echo_n "(cached) " >&6 40449 else 40450 case $BUILD_CXX in 40451 [\\/]* | ?:[\\/]*) 40452 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40453 ;; 40454 *) 40455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40456 for as_dir in $PATH 40457 do 40458 IFS=$as_save_IFS 40459 test -z "$as_dir" && as_dir=. 40460 for ac_exec_ext in '' $ac_executable_extensions; do 40461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40462 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40464 break 2 40465 fi 40466 done 40467 done 40468 IFS=$as_save_IFS 40469 40470 ;; 40471 esac 40472 fi 40473 BUILD_CXX=$ac_cv_path_BUILD_CXX 40474 if test -n "$BUILD_CXX"; then 40475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40476 $as_echo "$BUILD_CXX" >&6; } 40477 else 40478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40479 $as_echo "no" >&6; } 40480 fi 40481 40482 40483 test -n "$BUILD_CXX" && break 40484 done 40485 40486 else 40487 # If it succeeded, then it was overridden by the user. We will use it 40488 # for the tool. 40489 40490 # First remove it from the list of overridden variables, so we can test 40491 # for unknown variables in the end. 40492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40493 40494 # Check if we try to supply an empty value 40495 if test "x$BUILD_CXX" = x; then 40496 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 40497 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 40498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40499 $as_echo_n "checking for BUILD_CXX... " >&6; } 40500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40501 $as_echo "disabled" >&6; } 40502 else 40503 # Check if the provided tool contains a complete path. 40504 tool_specified="$BUILD_CXX" 40505 tool_basename="${tool_specified##*/}" 40506 if test "x$tool_basename" = "x$tool_specified"; then 40507 # A command without a complete path is provided, search $PATH. 40508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 40509 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 40510 # Extract the first word of "$tool_basename", so it can be a program name with args. 40511 set dummy $tool_basename; ac_word=$2 40512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40513 $as_echo_n "checking for $ac_word... " >&6; } 40514 if ${ac_cv_path_BUILD_CXX+:} false; then : 40515 $as_echo_n "(cached) " >&6 40516 else 40517 case $BUILD_CXX in 40518 [\\/]* | ?:[\\/]*) 40519 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 40520 ;; 40521 *) 40522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40523 for as_dir in $PATH 40524 do 40525 IFS=$as_save_IFS 40526 test -z "$as_dir" && as_dir=. 40527 for ac_exec_ext in '' $ac_executable_extensions; do 40528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40529 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 40530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40531 break 2 40532 fi 40533 done 40534 done 40535 IFS=$as_save_IFS 40536 40537 ;; 40538 esac 40539 fi 40540 BUILD_CXX=$ac_cv_path_BUILD_CXX 40541 if test -n "$BUILD_CXX"; then 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 40543 $as_echo "$BUILD_CXX" >&6; } 40544 else 40545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40546 $as_echo "no" >&6; } 40547 fi 40548 40549 40550 if test "x$BUILD_CXX" = x; then 40551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40552 fi 40553 else 40554 # Otherwise we believe it is a complete path. Use it as it is. 40555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 40556 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 40557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 40558 $as_echo_n "checking for BUILD_CXX... " >&6; } 40559 if test ! -x "$tool_specified"; then 40560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40561 $as_echo "not found" >&6; } 40562 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 40563 fi 40564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40565 $as_echo "$tool_specified" >&6; } 40566 fi 40567 fi 40568 fi 40569 fi 40570 40571 40572 40573 # Only process if variable expands to non-empty 40574 40575 if test "x$BUILD_CXX" != x; then 40576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40577 40578 # First separate the path from the arguments. This will split at the first 40579 # space. 40580 complete="$BUILD_CXX" 40581 path="${complete%% *}" 40582 tmp="$complete EOL" 40583 arguments="${tmp#* }" 40584 40585 # Input might be given as Windows format, start by converting to 40586 # unix format. 40587 new_path=`$CYGPATH -u "$path"` 40588 40589 # Now try to locate executable using which 40590 new_path=`$WHICH "$new_path" 2> /dev/null` 40591 # bat and cmd files are not always considered executable in cygwin causing which 40592 # to not find them 40593 if test "x$new_path" = x \ 40594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40596 new_path=`$CYGPATH -u "$path"` 40597 fi 40598 if test "x$new_path" = x; then 40599 # Oops. Which didn't find the executable. 40600 # The splitting of arguments from the executable at a space might have been incorrect, 40601 # since paths with space are more likely in Windows. Give it another try with the whole 40602 # argument. 40603 path="$complete" 40604 arguments="EOL" 40605 new_path=`$CYGPATH -u "$path"` 40606 new_path=`$WHICH "$new_path" 2> /dev/null` 40607 # bat and cmd files are not always considered executable in cygwin causing which 40608 # to not find them 40609 if test "x$new_path" = x \ 40610 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40611 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40612 new_path=`$CYGPATH -u "$path"` 40613 fi 40614 if test "x$new_path" = x; then 40615 # It's still not found. Now this is an unrecoverable error. 40616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40617 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40618 has_space=`$ECHO "$complete" | $GREP " "` 40619 if test "x$has_space" != x; then 40620 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40621 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40622 fi 40623 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40624 fi 40625 fi 40626 40627 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40628 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40629 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40630 # "foo.exe" is OK but "foo" is an error. 40631 # 40632 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40633 # It is also a way to make sure we got the proper file name for the real test later on. 40634 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40635 if test "x$test_shortpath" = x; then 40636 # Short path failed, file does not exist as specified. 40637 # Try adding .exe or .cmd 40638 if test -f "${new_path}.exe"; then 40639 input_to_shortpath="${new_path}.exe" 40640 elif test -f "${new_path}.cmd"; then 40641 input_to_shortpath="${new_path}.cmd" 40642 else 40643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40644 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40645 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40646 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40647 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40648 fi 40649 else 40650 input_to_shortpath="$new_path" 40651 fi 40652 40653 # Call helper function which possibly converts this using DOS-style short mode. 40654 # If so, the updated path is stored in $new_path. 40655 new_path="$input_to_shortpath" 40656 40657 input_path="$input_to_shortpath" 40658 # Check if we need to convert this using DOS-style short mode. If the path 40659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40660 # take no chances and rewrite it. 40661 # Note: m4 eats our [], so we need to use [ and ] instead. 40662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40663 if test "x$has_forbidden_chars" != x; then 40664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40668 # Going to short mode and back again did indeed matter. Since short mode is 40669 # case insensitive, let's make it lowercase to improve readability. 40670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40671 # Now convert it back to Unix-style (cygpath) 40672 input_path=`$CYGPATH -u "$shortmode_path"` 40673 new_path="$input_path" 40674 fi 40675 fi 40676 40677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40678 if test "x$test_cygdrive_prefix" = x; then 40679 # As a simple fix, exclude /usr/bin since it's not a real path. 40680 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40682 # a path prefixed by /cygdrive for fixpath to work. 40683 new_path="$CYGWIN_ROOT_PATH$input_path" 40684 fi 40685 fi 40686 40687 # remove trailing .exe if any 40688 new_path="${new_path/%.exe/}" 40689 40690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40691 40692 # First separate the path from the arguments. This will split at the first 40693 # space. 40694 complete="$BUILD_CXX" 40695 path="${complete%% *}" 40696 tmp="$complete EOL" 40697 arguments="${tmp#* }" 40698 40699 # Input might be given as Windows format, start by converting to 40700 # unix format. 40701 new_path="$path" 40702 40703 windows_path="$new_path" 40704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40705 unix_path=`$CYGPATH -u "$windows_path"` 40706 new_path="$unix_path" 40707 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40708 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40709 new_path="$unix_path" 40710 fi 40711 40712 40713 # Now try to locate executable using which 40714 new_path=`$WHICH "$new_path" 2> /dev/null` 40715 40716 if test "x$new_path" = x; then 40717 # Oops. Which didn't find the executable. 40718 # The splitting of arguments from the executable at a space might have been incorrect, 40719 # since paths with space are more likely in Windows. Give it another try with the whole 40720 # argument. 40721 path="$complete" 40722 arguments="EOL" 40723 new_path="$path" 40724 40725 windows_path="$new_path" 40726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40727 unix_path=`$CYGPATH -u "$windows_path"` 40728 new_path="$unix_path" 40729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40731 new_path="$unix_path" 40732 fi 40733 40734 40735 new_path=`$WHICH "$new_path" 2> /dev/null` 40736 # bat and cmd files are not always considered executable in MSYS causing which 40737 # to not find them 40738 if test "x$new_path" = x \ 40739 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40740 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40741 new_path="$path" 40742 40743 windows_path="$new_path" 40744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40745 unix_path=`$CYGPATH -u "$windows_path"` 40746 new_path="$unix_path" 40747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40748 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40749 new_path="$unix_path" 40750 fi 40751 40752 fi 40753 40754 if test "x$new_path" = x; then 40755 # It's still not found. Now this is an unrecoverable error. 40756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40757 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40758 has_space=`$ECHO "$complete" | $GREP " "` 40759 if test "x$has_space" != x; then 40760 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40761 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40762 fi 40763 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40764 fi 40765 fi 40766 40767 # Now new_path has a complete unix path to the binary 40768 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40769 # Keep paths in /bin as-is, but remove trailing .exe if any 40770 new_path="${new_path/%.exe/}" 40771 # Do not save /bin paths to all_fixpath_prefixes! 40772 else 40773 # Not in mixed or Windows style, start by that. 40774 new_path=`cmd //c echo $new_path` 40775 40776 input_path="$new_path" 40777 # Check if we need to convert this using DOS-style short mode. If the path 40778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40779 # take no chances and rewrite it. 40780 # Note: m4 eats our [], so we need to use [ and ] instead. 40781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40782 if test "x$has_forbidden_chars" != x; then 40783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40784 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40785 fi 40786 40787 # Output is in $new_path 40788 40789 windows_path="$new_path" 40790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40791 unix_path=`$CYGPATH -u "$windows_path"` 40792 new_path="$unix_path" 40793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40795 new_path="$unix_path" 40796 fi 40797 40798 # remove trailing .exe if any 40799 new_path="${new_path/%.exe/}" 40800 40801 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40802 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40803 fi 40804 40805 else 40806 # We're on a unix platform. Hooray! :) 40807 # First separate the path from the arguments. This will split at the first 40808 # space. 40809 complete="$BUILD_CXX" 40810 path="${complete%% *}" 40811 tmp="$complete EOL" 40812 arguments="${tmp#* }" 40813 40814 # Cannot rely on the command "which" here since it doesn't always work. 40815 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40816 if test -z "$is_absolute_path"; then 40817 # Path to executable is not absolute. Find it. 40818 IFS_save="$IFS" 40819 IFS=: 40820 for p in $PATH; do 40821 if test -f "$p/$path" && test -x "$p/$path"; then 40822 new_path="$p/$path" 40823 break 40824 fi 40825 done 40826 IFS="$IFS_save" 40827 else 40828 # This is an absolute path, we can use it without further modifications. 40829 new_path="$path" 40830 fi 40831 40832 if test "x$new_path" = x; then 40833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40834 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40835 has_space=`$ECHO "$complete" | $GREP " "` 40836 if test "x$has_space" != x; then 40837 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40838 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40839 fi 40840 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40841 fi 40842 fi 40843 40844 # Now join together the path and the arguments once again 40845 if test "x$arguments" != xEOL; then 40846 new_complete="$new_path ${arguments% *}" 40847 else 40848 new_complete="$new_path" 40849 fi 40850 40851 if test "x$complete" != "x$new_complete"; then 40852 BUILD_CXX="$new_complete" 40853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40854 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40855 fi 40856 fi 40857 40858 40859 40860 # Publish this variable in the help. 40861 40862 40863 if [ -z "${BUILD_LD+x}" ]; then 40864 # The variable is not set by user, try to locate tool using the code snippet 40865 for ac_prog in ld 40866 do 40867 # Extract the first word of "$ac_prog", so it can be a program name with args. 40868 set dummy $ac_prog; ac_word=$2 40869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40870 $as_echo_n "checking for $ac_word... " >&6; } 40871 if ${ac_cv_path_BUILD_LD+:} false; then : 40872 $as_echo_n "(cached) " >&6 40873 else 40874 case $BUILD_LD in 40875 [\\/]* | ?:[\\/]*) 40876 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40877 ;; 40878 *) 40879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40880 for as_dir in $PATH 40881 do 40882 IFS=$as_save_IFS 40883 test -z "$as_dir" && as_dir=. 40884 for ac_exec_ext in '' $ac_executable_extensions; do 40885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40886 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40888 break 2 40889 fi 40890 done 40891 done 40892 IFS=$as_save_IFS 40893 40894 ;; 40895 esac 40896 fi 40897 BUILD_LD=$ac_cv_path_BUILD_LD 40898 if test -n "$BUILD_LD"; then 40899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40900 $as_echo "$BUILD_LD" >&6; } 40901 else 40902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40903 $as_echo "no" >&6; } 40904 fi 40905 40906 40907 test -n "$BUILD_LD" && break 40908 done 40909 40910 else 40911 # The variable is set, but is it from the command line or the environment? 40912 40913 # Try to remove the string !BUILD_LD! from our list. 40914 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40915 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40916 # If it failed, the variable was not from the command line. Ignore it, 40917 # but warn the user (except for BASH, which is always set by the calling BASH). 40918 if test "xBUILD_LD" != xBASH; then 40919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40920 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40921 fi 40922 # Try to locate tool using the code snippet 40923 for ac_prog in ld 40924 do 40925 # Extract the first word of "$ac_prog", so it can be a program name with args. 40926 set dummy $ac_prog; ac_word=$2 40927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40928 $as_echo_n "checking for $ac_word... " >&6; } 40929 if ${ac_cv_path_BUILD_LD+:} false; then : 40930 $as_echo_n "(cached) " >&6 40931 else 40932 case $BUILD_LD in 40933 [\\/]* | ?:[\\/]*) 40934 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40935 ;; 40936 *) 40937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40938 for as_dir in $PATH 40939 do 40940 IFS=$as_save_IFS 40941 test -z "$as_dir" && as_dir=. 40942 for ac_exec_ext in '' $ac_executable_extensions; do 40943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40944 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40946 break 2 40947 fi 40948 done 40949 done 40950 IFS=$as_save_IFS 40951 40952 ;; 40953 esac 40954 fi 40955 BUILD_LD=$ac_cv_path_BUILD_LD 40956 if test -n "$BUILD_LD"; then 40957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40958 $as_echo "$BUILD_LD" >&6; } 40959 else 40960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40961 $as_echo "no" >&6; } 40962 fi 40963 40964 40965 test -n "$BUILD_LD" && break 40966 done 40967 40968 else 40969 # If it succeeded, then it was overridden by the user. We will use it 40970 # for the tool. 40971 40972 # First remove it from the list of overridden variables, so we can test 40973 # for unknown variables in the end. 40974 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40975 40976 # Check if we try to supply an empty value 40977 if test "x$BUILD_LD" = x; then 40978 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_LD= (no value)" >&5 40979 $as_echo "$as_me: Setting user supplied tool BUILD_LD= (no value)" >&6;} 40980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40981 $as_echo_n "checking for BUILD_LD... " >&6; } 40982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40983 $as_echo "disabled" >&6; } 40984 else 40985 # Check if the provided tool contains a complete path. 40986 tool_specified="$BUILD_LD" 40987 tool_basename="${tool_specified##*/}" 40988 if test "x$tool_basename" = "x$tool_specified"; then 40989 # A command without a complete path is provided, search $PATH. 40990 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40991 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40992 # Extract the first word of "$tool_basename", so it can be a program name with args. 40993 set dummy $tool_basename; ac_word=$2 40994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40995 $as_echo_n "checking for $ac_word... " >&6; } 40996 if ${ac_cv_path_BUILD_LD+:} false; then : 40997 $as_echo_n "(cached) " >&6 40998 else 40999 case $BUILD_LD in 41000 [\\/]* | ?:[\\/]*) 41001 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 41002 ;; 41003 *) 41004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41005 for as_dir in $PATH 41006 do 41007 IFS=$as_save_IFS 41008 test -z "$as_dir" && as_dir=. 41009 for ac_exec_ext in '' $ac_executable_extensions; do 41010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41011 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 41012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41013 break 2 41014 fi 41015 done 41016 done 41017 IFS=$as_save_IFS 41018 41019 ;; 41020 esac 41021 fi 41022 BUILD_LD=$ac_cv_path_BUILD_LD 41023 if test -n "$BUILD_LD"; then 41024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 41025 $as_echo "$BUILD_LD" >&6; } 41026 else 41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41028 $as_echo "no" >&6; } 41029 fi 41030 41031 41032 if test "x$BUILD_LD" = x; then 41033 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41034 fi 41035 else 41036 # Otherwise we believe it is a complete path. Use it as it is. 41037 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 41038 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 41039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 41040 $as_echo_n "checking for BUILD_LD... " >&6; } 41041 if test ! -x "$tool_specified"; then 41042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41043 $as_echo "not found" >&6; } 41044 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 41045 fi 41046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41047 $as_echo "$tool_specified" >&6; } 41048 fi 41049 fi 41050 fi 41051 fi 41052 41053 41054 41055 # Only process if variable expands to non-empty 41056 41057 if test "x$BUILD_LD" != x; then 41058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41059 41060 # First separate the path from the arguments. This will split at the first 41061 # space. 41062 complete="$BUILD_LD" 41063 path="${complete%% *}" 41064 tmp="$complete EOL" 41065 arguments="${tmp#* }" 41066 41067 # Input might be given as Windows format, start by converting to 41068 # unix format. 41069 new_path=`$CYGPATH -u "$path"` 41070 41071 # Now try to locate executable using which 41072 new_path=`$WHICH "$new_path" 2> /dev/null` 41073 # bat and cmd files are not always considered executable in cygwin causing which 41074 # to not find them 41075 if test "x$new_path" = x \ 41076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41078 new_path=`$CYGPATH -u "$path"` 41079 fi 41080 if test "x$new_path" = x; then 41081 # Oops. Which didn't find the executable. 41082 # The splitting of arguments from the executable at a space might have been incorrect, 41083 # since paths with space are more likely in Windows. Give it another try with the whole 41084 # argument. 41085 path="$complete" 41086 arguments="EOL" 41087 new_path=`$CYGPATH -u "$path"` 41088 new_path=`$WHICH "$new_path" 2> /dev/null` 41089 # bat and cmd files are not always considered executable in cygwin causing which 41090 # to not find them 41091 if test "x$new_path" = x \ 41092 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41093 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41094 new_path=`$CYGPATH -u "$path"` 41095 fi 41096 if test "x$new_path" = x; then 41097 # It's still not found. Now this is an unrecoverable error. 41098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 41099 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 41100 has_space=`$ECHO "$complete" | $GREP " "` 41101 if test "x$has_space" != x; then 41102 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41103 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41104 fi 41105 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 41106 fi 41107 fi 41108 41109 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41110 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41111 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41112 # "foo.exe" is OK but "foo" is an error. 41113 # 41114 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41115 # It is also a way to make sure we got the proper file name for the real test later on. 41116 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41117 if test "x$test_shortpath" = x; then 41118 # Short path failed, file does not exist as specified. 41119 # Try adding .exe or .cmd 41120 if test -f "${new_path}.exe"; then 41121 input_to_shortpath="${new_path}.exe" 41122 elif test -f "${new_path}.cmd"; then 41123 input_to_shortpath="${new_path}.cmd" 41124 else 41125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 41126 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 41127 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41128 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41129 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 41130 fi 41131 else 41132 input_to_shortpath="$new_path" 41133 fi 41134 41135 # Call helper function which possibly converts this using DOS-style short mode. 41136 # If so, the updated path is stored in $new_path. 41137 new_path="$input_to_shortpath" 41138 41139 input_path="$input_to_shortpath" 41140 # Check if we need to convert this using DOS-style short mode. If the path 41141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41142 # take no chances and rewrite it. 41143 # Note: m4 eats our [], so we need to use [ and ] instead. 41144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41145 if test "x$has_forbidden_chars" != x; then 41146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41147 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41148 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41149 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41150 # Going to short mode and back again did indeed matter. Since short mode is 41151 # case insensitive, let's make it lowercase to improve readability. 41152 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41153 # Now convert it back to Unix-style (cygpath) 41154 input_path=`$CYGPATH -u "$shortmode_path"` 41155 new_path="$input_path" 41156 fi 41157 fi 41158 41159 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41160 if test "x$test_cygdrive_prefix" = x; then 41161 # As a simple fix, exclude /usr/bin since it's not a real path. 41162 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41163 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41164 # a path prefixed by /cygdrive for fixpath to work. 41165 new_path="$CYGWIN_ROOT_PATH$input_path" 41166 fi 41167 fi 41168 41169 # remove trailing .exe if any 41170 new_path="${new_path/%.exe/}" 41171 41172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41173 41174 # First separate the path from the arguments. This will split at the first 41175 # space. 41176 complete="$BUILD_LD" 41177 path="${complete%% *}" 41178 tmp="$complete EOL" 41179 arguments="${tmp#* }" 41180 41181 # Input might be given as Windows format, start by converting to 41182 # unix format. 41183 new_path="$path" 41184 41185 windows_path="$new_path" 41186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41187 unix_path=`$CYGPATH -u "$windows_path"` 41188 new_path="$unix_path" 41189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41191 new_path="$unix_path" 41192 fi 41193 41194 41195 # Now try to locate executable using which 41196 new_path=`$WHICH "$new_path" 2> /dev/null` 41197 41198 if test "x$new_path" = x; then 41199 # Oops. Which didn't find the executable. 41200 # The splitting of arguments from the executable at a space might have been incorrect, 41201 # since paths with space are more likely in Windows. Give it another try with the whole 41202 # argument. 41203 path="$complete" 41204 arguments="EOL" 41205 new_path="$path" 41206 41207 windows_path="$new_path" 41208 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41209 unix_path=`$CYGPATH -u "$windows_path"` 41210 new_path="$unix_path" 41211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41212 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41213 new_path="$unix_path" 41214 fi 41215 41216 41217 new_path=`$WHICH "$new_path" 2> /dev/null` 41218 # bat and cmd files are not always considered executable in MSYS causing which 41219 # to not find them 41220 if test "x$new_path" = x \ 41221 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41222 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41223 new_path="$path" 41224 41225 windows_path="$new_path" 41226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41227 unix_path=`$CYGPATH -u "$windows_path"` 41228 new_path="$unix_path" 41229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41230 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41231 new_path="$unix_path" 41232 fi 41233 41234 fi 41235 41236 if test "x$new_path" = x; then 41237 # It's still not found. Now this is an unrecoverable error. 41238 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 41239 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 41240 has_space=`$ECHO "$complete" | $GREP " "` 41241 if test "x$has_space" != x; then 41242 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41243 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41244 fi 41245 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 41246 fi 41247 fi 41248 41249 # Now new_path has a complete unix path to the binary 41250 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41251 # Keep paths in /bin as-is, but remove trailing .exe if any 41252 new_path="${new_path/%.exe/}" 41253 # Do not save /bin paths to all_fixpath_prefixes! 41254 else 41255 # Not in mixed or Windows style, start by that. 41256 new_path=`cmd //c echo $new_path` 41257 41258 input_path="$new_path" 41259 # Check if we need to convert this using DOS-style short mode. If the path 41260 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41261 # take no chances and rewrite it. 41262 # Note: m4 eats our [], so we need to use [ and ] instead. 41263 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41264 if test "x$has_forbidden_chars" != x; then 41265 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41266 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41267 fi 41268 41269 # Output is in $new_path 41270 41271 windows_path="$new_path" 41272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41273 unix_path=`$CYGPATH -u "$windows_path"` 41274 new_path="$unix_path" 41275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41277 new_path="$unix_path" 41278 fi 41279 41280 # remove trailing .exe if any 41281 new_path="${new_path/%.exe/}" 41282 41283 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41284 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41285 fi 41286 41287 else 41288 # We're on a unix platform. Hooray! :) 41289 # First separate the path from the arguments. This will split at the first 41290 # space. 41291 complete="$BUILD_LD" 41292 path="${complete%% *}" 41293 tmp="$complete EOL" 41294 arguments="${tmp#* }" 41295 41296 # Cannot rely on the command "which" here since it doesn't always work. 41297 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41298 if test -z "$is_absolute_path"; then 41299 # Path to executable is not absolute. Find it. 41300 IFS_save="$IFS" 41301 IFS=: 41302 for p in $PATH; do 41303 if test -f "$p/$path" && test -x "$p/$path"; then 41304 new_path="$p/$path" 41305 break 41306 fi 41307 done 41308 IFS="$IFS_save" 41309 else 41310 # This is an absolute path, we can use it without further modifications. 41311 new_path="$path" 41312 fi 41313 41314 if test "x$new_path" = x; then 41315 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 41316 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 41317 has_space=`$ECHO "$complete" | $GREP " "` 41318 if test "x$has_space" != x; then 41319 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41320 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41321 fi 41322 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 41323 fi 41324 fi 41325 41326 # Now join together the path and the arguments once again 41327 if test "x$arguments" != xEOL; then 41328 new_complete="$new_path ${arguments% *}" 41329 else 41330 new_complete="$new_path" 41331 fi 41332 41333 if test "x$complete" != "x$new_complete"; then 41334 BUILD_LD="$new_complete" 41335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 41336 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 41337 fi 41338 fi 41339 41340 BUILD_SYSROOT_CFLAGS="" 41341 BUILD_SYSROOT_LDFLAGS="" 41342 else 41343 # If we are not cross compiling, use the normal target compilers for 41344 # building the build platform executables. 41345 BUILD_CC="$CC" 41346 BUILD_CXX="$CXX" 41347 BUILD_LD="$LD" 41348 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 41349 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 41350 fi 41351 41352 41353 41354 41355 41356 41357 41358 41359 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41360 # For hotspot, we need these in Windows mixed path, 41361 # so rewrite them all. Need added .exe suffix. 41362 HOTSPOT_CXX="$CXX.exe" 41363 HOTSPOT_LD="$LD.exe" 41364 HOTSPOT_MT="$MT.exe" 41365 HOTSPOT_RC="$RC.exe" 41366 41367 unix_path="$HOTSPOT_CXX" 41368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41369 windows_path=`$CYGPATH -m "$unix_path"` 41370 HOTSPOT_CXX="$windows_path" 41371 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41372 windows_path=`cmd //c echo $unix_path` 41373 HOTSPOT_CXX="$windows_path" 41374 fi 41375 41376 41377 unix_path="$HOTSPOT_LD" 41378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41379 windows_path=`$CYGPATH -m "$unix_path"` 41380 HOTSPOT_LD="$windows_path" 41381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41382 windows_path=`cmd //c echo $unix_path` 41383 HOTSPOT_LD="$windows_path" 41384 fi 41385 41386 41387 unix_path="$HOTSPOT_MT" 41388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41389 windows_path=`$CYGPATH -m "$unix_path"` 41390 HOTSPOT_MT="$windows_path" 41391 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41392 windows_path=`cmd //c echo $unix_path` 41393 HOTSPOT_MT="$windows_path" 41394 fi 41395 41396 41397 unix_path="$HOTSPOT_RC" 41398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41399 windows_path=`$CYGPATH -m "$unix_path"` 41400 HOTSPOT_RC="$windows_path" 41401 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41402 windows_path=`cmd //c echo $unix_path` 41403 HOTSPOT_RC="$windows_path" 41404 fi 41405 41406 41407 41408 else 41409 HOTSPOT_CXX="$CXX" 41410 HOTSPOT_LD="$LD" 41411 fi 41412 41413 41414 41415 if test "x$TOOLCHAIN_TYPE" = xclang; then 41416 USE_CLANG=true 41417 fi 41418 41419 41420 41421 41422 41423 # The package path is used only on macosx? 41424 # FIXME: clean this up, and/or move it elsewhere. 41425 PACKAGE_PATH=/opt/local 41426 41427 41428 # Check for extra potential brokenness. 41429 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41430 # On Windows, double-check that we got the right compiler. 41431 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 41432 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 41433 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 41434 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 41435 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 41436 fi 41437 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 41438 if test "x$COMPILER_CPU_TEST" != "xx64"; then 41439 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 41440 fi 41441 fi 41442 fi 41443 41444 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41445 # If this is a --hash-style=gnu system, use --hash-style=both, why? 41446 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 41447 # This is later checked when setting flags. 41448 41449 # "-Og" suppported for GCC 4.8 and later 41450 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 41451 41452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 41453 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 41454 supports=yes 41455 41456 saved_cflags="$CFLAGS" 41457 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 41458 ac_ext=c 41459 ac_cpp='$CPP $CPPFLAGS' 41460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41462 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41463 41464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41465 /* end confdefs.h. */ 41466 int i; 41467 _ACEOF 41468 if ac_fn_c_try_compile "$LINENO"; then : 41469 41470 else 41471 supports=no 41472 fi 41473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41474 ac_ext=cpp 41475 ac_cpp='$CXXCPP $CPPFLAGS' 41476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41479 41480 CFLAGS="$saved_cflags" 41481 41482 saved_cxxflags="$CXXFLAGS" 41483 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 41484 ac_ext=cpp 41485 ac_cpp='$CXXCPP $CPPFLAGS' 41486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41489 41490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41491 /* end confdefs.h. */ 41492 int i; 41493 _ACEOF 41494 if ac_fn_cxx_try_compile "$LINENO"; then : 41495 41496 else 41497 supports=no 41498 fi 41499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41500 ac_ext=cpp 41501 ac_cpp='$CXXCPP $CPPFLAGS' 41502 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41503 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41504 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41505 41506 CXXFLAGS="$saved_cxxflags" 41507 41508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41509 $as_echo "$supports" >&6; } 41510 if test "x$supports" = "xyes" ; then 41511 HAS_CFLAG_OPTIMIZE_DEBUG=true 41512 else 41513 HAS_CFLAG_OPTIMIZE_DEBUG=false 41514 fi 41515 41516 41517 # "-z relro" supported in GNU binutils 2.17 and later 41518 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 41519 41520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 41521 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 41522 supports=yes 41523 41524 saved_ldflags="$LDFLAGS" 41525 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 41526 ac_ext=c 41527 ac_cpp='$CPP $CPPFLAGS' 41528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41530 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41531 41532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41533 /* end confdefs.h. */ 41534 41535 int 41536 main () 41537 { 41538 41539 ; 41540 return 0; 41541 } 41542 _ACEOF 41543 if ac_fn_c_try_link "$LINENO"; then : 41544 41545 else 41546 supports=no 41547 fi 41548 rm -f core conftest.err conftest.$ac_objext \ 41549 conftest$ac_exeext conftest.$ac_ext 41550 ac_ext=cpp 41551 ac_cpp='$CXXCPP $CPPFLAGS' 41552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41555 41556 LDFLAGS="$saved_ldflags" 41557 41558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41559 $as_echo "$supports" >&6; } 41560 if test "x$supports" = "xyes" ; then 41561 HAS_LINKER_RELRO=true 41562 else 41563 HAS_LINKER_RELRO=false 41564 fi 41565 41566 41567 # "-z now" supported in GNU binutils 2.11 and later 41568 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 41569 41570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 41571 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 41572 supports=yes 41573 41574 saved_ldflags="$LDFLAGS" 41575 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 41576 ac_ext=c 41577 ac_cpp='$CPP $CPPFLAGS' 41578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41580 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41581 41582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41583 /* end confdefs.h. */ 41584 41585 int 41586 main () 41587 { 41588 41589 ; 41590 return 0; 41591 } 41592 _ACEOF 41593 if ac_fn_c_try_link "$LINENO"; then : 41594 41595 else 41596 supports=no 41597 fi 41598 rm -f core conftest.err conftest.$ac_objext \ 41599 conftest$ac_exeext conftest.$ac_ext 41600 ac_ext=cpp 41601 ac_cpp='$CXXCPP $CPPFLAGS' 41602 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41603 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41604 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41605 41606 LDFLAGS="$saved_ldflags" 41607 41608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41609 $as_echo "$supports" >&6; } 41610 if test "x$supports" = "xyes" ; then 41611 HAS_LINKER_NOW=true 41612 else 41613 HAS_LINKER_NOW=false 41614 fi 41615 41616 fi 41617 41618 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 41619 # in executable.' 41620 USING_BROKEN_SUSE_LD=no 41621 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 41622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 41623 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 41624 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 41625 $ECHO "int main() { }" > main.c 41626 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 41627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41628 $as_echo "no" >&6; } 41629 USING_BROKEN_SUSE_LD=no 41630 else 41631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41632 $as_echo "yes" >&6; } 41633 USING_BROKEN_SUSE_LD=yes 41634 fi 41635 rm -rf version-script.map main.c a.out 41636 fi 41637 41638 41639 41640 # Setup the JTReg Regression Test Harness. 41641 41642 41643 # Check whether --with-jtreg was given. 41644 if test "${with_jtreg+set}" = set; then : 41645 withval=$with_jtreg; 41646 else 41647 with_jtreg=no 41648 fi 41649 41650 41651 if test "x$with_jtreg" = xno; then 41652 # jtreg disabled 41653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41654 $as_echo_n "checking for jtreg... " >&6; } 41655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41656 $as_echo "no" >&6; } 41657 else 41658 if test "x$with_jtreg" != xyes; then 41659 # with path specified. 41660 JT_HOME="$with_jtreg" 41661 fi 41662 41663 if test "x$JT_HOME" != x; then 41664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41665 $as_echo_n "checking for jtreg... " >&6; } 41666 41667 # use JT_HOME enviroment var. 41668 41669 # Only process if variable expands to non-empty 41670 41671 if test "x$JT_HOME" != x; then 41672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41673 41674 # Input might be given as Windows format, start by converting to 41675 # unix format. 41676 path="$JT_HOME" 41677 new_path=`$CYGPATH -u "$path"` 41678 41679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41682 # "foo.exe" is OK but "foo" is an error. 41683 # 41684 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41685 # It is also a way to make sure we got the proper file name for the real test later on. 41686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41687 if test "x$test_shortpath" = x; then 41688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41689 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41690 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41691 fi 41692 41693 # Call helper function which possibly converts this using DOS-style short mode. 41694 # If so, the updated path is stored in $new_path. 41695 41696 input_path="$new_path" 41697 # Check if we need to convert this using DOS-style short mode. If the path 41698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41699 # take no chances and rewrite it. 41700 # Note: m4 eats our [], so we need to use [ and ] instead. 41701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41702 if test "x$has_forbidden_chars" != x; then 41703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41704 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41705 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41706 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41707 # Going to short mode and back again did indeed matter. Since short mode is 41708 # case insensitive, let's make it lowercase to improve readability. 41709 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41710 # Now convert it back to Unix-style (cygpath) 41711 input_path=`$CYGPATH -u "$shortmode_path"` 41712 new_path="$input_path" 41713 fi 41714 fi 41715 41716 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41717 if test "x$test_cygdrive_prefix" = x; then 41718 # As a simple fix, exclude /usr/bin since it's not a real path. 41719 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41720 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41721 # a path prefixed by /cygdrive for fixpath to work. 41722 new_path="$CYGWIN_ROOT_PATH$input_path" 41723 fi 41724 fi 41725 41726 41727 if test "x$path" != "x$new_path"; then 41728 JT_HOME="$new_path" 41729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41730 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41731 fi 41732 41733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41734 41735 path="$JT_HOME" 41736 has_colon=`$ECHO $path | $GREP ^.:` 41737 new_path="$path" 41738 if test "x$has_colon" = x; then 41739 # Not in mixed or Windows style, start by that. 41740 new_path=`cmd //c echo $path` 41741 fi 41742 41743 41744 input_path="$new_path" 41745 # Check if we need to convert this using DOS-style short mode. If the path 41746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41747 # take no chances and rewrite it. 41748 # Note: m4 eats our [], so we need to use [ and ] instead. 41749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41750 if test "x$has_forbidden_chars" != x; then 41751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41752 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41753 fi 41754 41755 41756 windows_path="$new_path" 41757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41758 unix_path=`$CYGPATH -u "$windows_path"` 41759 new_path="$unix_path" 41760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41762 new_path="$unix_path" 41763 fi 41764 41765 if test "x$path" != "x$new_path"; then 41766 JT_HOME="$new_path" 41767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41768 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41769 fi 41770 41771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41773 41774 else 41775 # We're on a unix platform. Hooray! :) 41776 path="$JT_HOME" 41777 has_space=`$ECHO "$path" | $GREP " "` 41778 if test "x$has_space" != x; then 41779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41780 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41781 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41782 fi 41783 41784 # Use eval to expand a potential ~ 41785 eval path="$path" 41786 if test ! -f "$path" && test ! -d "$path"; then 41787 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41788 fi 41789 41790 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41791 fi 41792 fi 41793 41794 41795 # jtreg win32 script works for everybody 41796 JTREGEXE="$JT_HOME/bin/jtreg" 41797 41798 if test ! -f "$JTREGEXE"; then 41799 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41800 fi 41801 41802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41803 $as_echo "$JTREGEXE" >&6; } 41804 else 41805 # try to find jtreg on path 41806 41807 41808 41809 # Publish this variable in the help. 41810 41811 41812 if [ -z "${JTREGEXE+x}" ]; then 41813 # The variable is not set by user, try to locate tool using the code snippet 41814 for ac_prog in jtreg 41815 do 41816 # Extract the first word of "$ac_prog", so it can be a program name with args. 41817 set dummy $ac_prog; ac_word=$2 41818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41819 $as_echo_n "checking for $ac_word... " >&6; } 41820 if ${ac_cv_path_JTREGEXE+:} false; then : 41821 $as_echo_n "(cached) " >&6 41822 else 41823 case $JTREGEXE in 41824 [\\/]* | ?:[\\/]*) 41825 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41826 ;; 41827 *) 41828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41829 for as_dir in $PATH 41830 do 41831 IFS=$as_save_IFS 41832 test -z "$as_dir" && as_dir=. 41833 for ac_exec_ext in '' $ac_executable_extensions; do 41834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41835 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41837 break 2 41838 fi 41839 done 41840 done 41841 IFS=$as_save_IFS 41842 41843 ;; 41844 esac 41845 fi 41846 JTREGEXE=$ac_cv_path_JTREGEXE 41847 if test -n "$JTREGEXE"; then 41848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41849 $as_echo "$JTREGEXE" >&6; } 41850 else 41851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41852 $as_echo "no" >&6; } 41853 fi 41854 41855 41856 test -n "$JTREGEXE" && break 41857 done 41858 41859 else 41860 # The variable is set, but is it from the command line or the environment? 41861 41862 # Try to remove the string !JTREGEXE! from our list. 41863 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41864 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41865 # If it failed, the variable was not from the command line. Ignore it, 41866 # but warn the user (except for BASH, which is always set by the calling BASH). 41867 if test "xJTREGEXE" != xBASH; then 41868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41869 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41870 fi 41871 # Try to locate tool using the code snippet 41872 for ac_prog in jtreg 41873 do 41874 # Extract the first word of "$ac_prog", so it can be a program name with args. 41875 set dummy $ac_prog; ac_word=$2 41876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41877 $as_echo_n "checking for $ac_word... " >&6; } 41878 if ${ac_cv_path_JTREGEXE+:} false; then : 41879 $as_echo_n "(cached) " >&6 41880 else 41881 case $JTREGEXE in 41882 [\\/]* | ?:[\\/]*) 41883 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41884 ;; 41885 *) 41886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41887 for as_dir in $PATH 41888 do 41889 IFS=$as_save_IFS 41890 test -z "$as_dir" && as_dir=. 41891 for ac_exec_ext in '' $ac_executable_extensions; do 41892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41893 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41895 break 2 41896 fi 41897 done 41898 done 41899 IFS=$as_save_IFS 41900 41901 ;; 41902 esac 41903 fi 41904 JTREGEXE=$ac_cv_path_JTREGEXE 41905 if test -n "$JTREGEXE"; then 41906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41907 $as_echo "$JTREGEXE" >&6; } 41908 else 41909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41910 $as_echo "no" >&6; } 41911 fi 41912 41913 41914 test -n "$JTREGEXE" && break 41915 done 41916 41917 else 41918 # If it succeeded, then it was overridden by the user. We will use it 41919 # for the tool. 41920 41921 # First remove it from the list of overridden variables, so we can test 41922 # for unknown variables in the end. 41923 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41924 41925 # Check if we try to supply an empty value 41926 if test "x$JTREGEXE" = x; then 41927 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 41928 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 41929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41930 $as_echo_n "checking for JTREGEXE... " >&6; } 41931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41932 $as_echo "disabled" >&6; } 41933 else 41934 # Check if the provided tool contains a complete path. 41935 tool_specified="$JTREGEXE" 41936 tool_basename="${tool_specified##*/}" 41937 if test "x$tool_basename" = "x$tool_specified"; then 41938 # A command without a complete path is provided, search $PATH. 41939 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41940 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41941 # Extract the first word of "$tool_basename", so it can be a program name with args. 41942 set dummy $tool_basename; ac_word=$2 41943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41944 $as_echo_n "checking for $ac_word... " >&6; } 41945 if ${ac_cv_path_JTREGEXE+:} false; then : 41946 $as_echo_n "(cached) " >&6 41947 else 41948 case $JTREGEXE in 41949 [\\/]* | ?:[\\/]*) 41950 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41951 ;; 41952 *) 41953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41954 for as_dir in $PATH 41955 do 41956 IFS=$as_save_IFS 41957 test -z "$as_dir" && as_dir=. 41958 for ac_exec_ext in '' $ac_executable_extensions; do 41959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41960 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41962 break 2 41963 fi 41964 done 41965 done 41966 IFS=$as_save_IFS 41967 41968 ;; 41969 esac 41970 fi 41971 JTREGEXE=$ac_cv_path_JTREGEXE 41972 if test -n "$JTREGEXE"; then 41973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41974 $as_echo "$JTREGEXE" >&6; } 41975 else 41976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41977 $as_echo "no" >&6; } 41978 fi 41979 41980 41981 if test "x$JTREGEXE" = x; then 41982 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41983 fi 41984 else 41985 # Otherwise we believe it is a complete path. Use it as it is. 41986 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41987 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41989 $as_echo_n "checking for JTREGEXE... " >&6; } 41990 if test ! -x "$tool_specified"; then 41991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41992 $as_echo "not found" >&6; } 41993 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41994 fi 41995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41996 $as_echo "$tool_specified" >&6; } 41997 fi 41998 fi 41999 fi 42000 fi 42001 42002 42003 42004 if test "x$JTREGEXE" = x; then 42005 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 42006 fi 42007 42008 42009 JT_HOME="`$DIRNAME $JTREGEXE`" 42010 fi 42011 fi 42012 42013 42014 42015 42016 42017 42018 # Option used to tell the compiler whether to create 32- or 64-bit executables 42019 if test "x$TOOLCHAIN_TYPE" = xxlc; then 42020 COMPILER_TARGET_BITS_FLAG="-q" 42021 else 42022 COMPILER_TARGET_BITS_FLAG="-m" 42023 fi 42024 42025 42026 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 42027 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42028 ARFLAGS="-r" 42029 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42030 ARFLAGS="-X64" 42031 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 42032 # lib.exe is used as AR to create static libraries. 42033 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 42034 else 42035 ARFLAGS="" 42036 fi 42037 42038 42039 ## Setup strip. 42040 # FIXME: should this really be per platform, or should it be per toolchain type? 42041 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 42042 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 42043 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42044 STRIPFLAGS="-g" 42045 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 42046 STRIPFLAGS="-x" 42047 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 42048 STRIPFLAGS="-S" 42049 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42050 STRIPFLAGS="-X32_64" 42051 fi 42052 42053 42054 42055 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42056 CC_OUT_OPTION=-Fo 42057 EXE_OUT_OPTION=-out: 42058 LD_OUT_OPTION=-out: 42059 AR_OUT_OPTION=-out: 42060 else 42061 # The option used to specify the target .o,.a or .so file. 42062 # When compiling, how to specify the to be created object file. 42063 CC_OUT_OPTION='-o$(SPACE)' 42064 # When linking, how to specify the to be created executable. 42065 EXE_OUT_OPTION='-o$(SPACE)' 42066 # When linking, how to specify the to be created dynamically linkable library. 42067 LD_OUT_OPTION='-o$(SPACE)' 42068 # When archiving, how to specify the to be create static archive for object files. 42069 AR_OUT_OPTION='rcs$(SPACE)' 42070 fi 42071 42072 42073 42074 42075 42076 # On Windows, we need to set RC flags. 42077 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42078 RC_FLAGS="-nologo -l0x409" 42079 if test "x$VARIANT" = xOPT; then 42080 RC_FLAGS="$RC_FLAGS -DNDEBUG" 42081 fi 42082 42083 # The version variables used to create RC_FLAGS may be overridden 42084 # in a custom configure script, or possibly the command line. 42085 # Let those variables be expanded at make time in spec.gmk. 42086 # The \$ are escaped to the shell, and the $(...) variables 42087 # are evaluated by make. 42088 RC_FLAGS="$RC_FLAGS \ 42089 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 42090 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 42091 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 42092 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 42093 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 42094 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 42095 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 42096 fi 42097 42098 42099 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42100 # silence copyright notice and other headers. 42101 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 42102 fi 42103 42104 42105 # FIXME: Currently we must test this after toolchain but before flags. Fix! 42106 42107 # Now we can test some aspects on the target using configure macros. 42108 42109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 42110 $as_echo_n "checking for ANSI C header files... " >&6; } 42111 if ${ac_cv_header_stdc+:} false; then : 42112 $as_echo_n "(cached) " >&6 42113 else 42114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42115 /* end confdefs.h. */ 42116 #include <stdlib.h> 42117 #include <stdarg.h> 42118 #include <string.h> 42119 #include <float.h> 42120 42121 int 42122 main () 42123 { 42124 42125 ; 42126 return 0; 42127 } 42128 _ACEOF 42129 if ac_fn_cxx_try_compile "$LINENO"; then : 42130 ac_cv_header_stdc=yes 42131 else 42132 ac_cv_header_stdc=no 42133 fi 42134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42135 42136 if test $ac_cv_header_stdc = yes; then 42137 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 42138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42139 /* end confdefs.h. */ 42140 #include <string.h> 42141 42142 _ACEOF 42143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42144 $EGREP "memchr" >/dev/null 2>&1; then : 42145 42146 else 42147 ac_cv_header_stdc=no 42148 fi 42149 rm -f conftest* 42150 42151 fi 42152 42153 if test $ac_cv_header_stdc = yes; then 42154 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 42155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42156 /* end confdefs.h. */ 42157 #include <stdlib.h> 42158 42159 _ACEOF 42160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 42161 $EGREP "free" >/dev/null 2>&1; then : 42162 42163 else 42164 ac_cv_header_stdc=no 42165 fi 42166 rm -f conftest* 42167 42168 fi 42169 42170 if test $ac_cv_header_stdc = yes; then 42171 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 42172 if test "$cross_compiling" = yes; then : 42173 : 42174 else 42175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42176 /* end confdefs.h. */ 42177 #include <ctype.h> 42178 #include <stdlib.h> 42179 #if ((' ' & 0x0FF) == 0x020) 42180 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 42181 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 42182 #else 42183 # define ISLOWER(c) \ 42184 (('a' <= (c) && (c) <= 'i') \ 42185 || ('j' <= (c) && (c) <= 'r') \ 42186 || ('s' <= (c) && (c) <= 'z')) 42187 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 42188 #endif 42189 42190 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 42191 int 42192 main () 42193 { 42194 int i; 42195 for (i = 0; i < 256; i++) 42196 if (XOR (islower (i), ISLOWER (i)) 42197 || toupper (i) != TOUPPER (i)) 42198 return 2; 42199 return 0; 42200 } 42201 _ACEOF 42202 if ac_fn_cxx_try_run "$LINENO"; then : 42203 42204 else 42205 ac_cv_header_stdc=no 42206 fi 42207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42208 conftest.$ac_objext conftest.beam conftest.$ac_ext 42209 fi 42210 42211 fi 42212 fi 42213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 42214 $as_echo "$ac_cv_header_stdc" >&6; } 42215 if test $ac_cv_header_stdc = yes; then 42216 42217 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 42218 42219 fi 42220 42221 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 42222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 42223 inttypes.h stdint.h unistd.h 42224 do : 42225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 42226 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 42227 " 42228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 42229 cat >>confdefs.h <<_ACEOF 42230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 42231 _ACEOF 42232 42233 fi 42234 42235 done 42236 42237 42238 42239 ############################################################################### 42240 # 42241 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 42242 # (The JVM can use 32 or 64 bit Java pointers but that decision 42243 # is made at runtime.) 42244 # 42245 42246 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 42247 # Always specify -m flag on Solaris 42248 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 42249 42250 # When we add flags to the "official" CFLAGS etc, we need to 42251 # keep track of these additions in ADDED_CFLAGS etc. These 42252 # will later be checked to make sure only controlled additions 42253 # have been made to CFLAGS etc. 42254 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42255 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42256 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42257 42258 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 42259 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 42260 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 42261 42262 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 42263 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 42264 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 42265 42266 elif test "x$COMPILE_TYPE" = xreduced; then 42267 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 42268 # Specify -m if running reduced on unix platforms 42269 42270 # When we add flags to the "official" CFLAGS etc, we need to 42271 # keep track of these additions in ADDED_CFLAGS etc. These 42272 # will later be checked to make sure only controlled additions 42273 # have been made to CFLAGS etc. 42274 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42275 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42276 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42277 42278 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 42279 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 42280 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 42281 42282 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 42283 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 42284 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 42285 42286 fi 42287 fi 42288 42289 # Make compilation sanity check 42290 for ac_header in stdio.h 42291 do : 42292 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 42293 if test "x$ac_cv_header_stdio_h" = xyes; then : 42294 cat >>confdefs.h <<_ACEOF 42295 #define HAVE_STDIO_H 1 42296 _ACEOF 42297 42298 else 42299 42300 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 42301 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 42302 if test "x$COMPILE_TYPE" = xreduced; then 42303 42304 # Print a helpful message on how to acquire the necessary build dependency. 42305 # reduced is the help tag: freetype, cups, alsa etc 42306 MISSING_DEPENDENCY=reduced 42307 42308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42309 cygwin_help $MISSING_DEPENDENCY 42310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42311 msys_help $MISSING_DEPENDENCY 42312 else 42313 PKGHANDLER_COMMAND= 42314 42315 case $PKGHANDLER in 42316 apt-get) 42317 apt_help $MISSING_DEPENDENCY ;; 42318 yum) 42319 yum_help $MISSING_DEPENDENCY ;; 42320 port) 42321 port_help $MISSING_DEPENDENCY ;; 42322 pkgutil) 42323 pkgutil_help $MISSING_DEPENDENCY ;; 42324 pkgadd) 42325 pkgadd_help $MISSING_DEPENDENCY ;; 42326 esac 42327 42328 if test "x$PKGHANDLER_COMMAND" != x; then 42329 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 42330 fi 42331 fi 42332 42333 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 42334 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 42335 elif test "x$COMPILE_TYPE" = xcross; then 42336 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 42337 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 42338 fi 42339 as_fn_error $? "Cannot continue." "$LINENO" 5 42340 42341 fi 42342 42343 done 42344 42345 42346 # The cast to long int works around a bug in the HP C Compiler 42347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42349 # This bug is HP SR number 8606223364. 42350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 42351 $as_echo_n "checking size of int *... " >&6; } 42352 if ${ac_cv_sizeof_int_p+:} false; then : 42353 $as_echo_n "(cached) " >&6 42354 else 42355 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 42356 42357 else 42358 if test "$ac_cv_type_int_p" = yes; then 42359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42361 as_fn_error 77 "cannot compute sizeof (int *) 42362 See \`config.log' for more details" "$LINENO" 5; } 42363 else 42364 ac_cv_sizeof_int_p=0 42365 fi 42366 fi 42367 42368 fi 42369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42370 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42371 42372 42373 42374 cat >>confdefs.h <<_ACEOF 42375 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42376 _ACEOF 42377 42378 42379 42380 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 42381 if test "x$ac_cv_sizeof_int_p" = x; then 42382 # The test failed, lets stick to the assumed value. 42383 { $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 42384 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 42385 else 42386 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42387 42388 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42389 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 42390 # Let's try to implicitely set the compilers target architecture and retry the test 42391 { $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 42392 $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;} 42393 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 42394 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 42395 42396 # When we add flags to the "official" CFLAGS etc, we need to 42397 # keep track of these additions in ADDED_CFLAGS etc. These 42398 # will later be checked to make sure only controlled additions 42399 # have been made to CFLAGS etc. 42400 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42401 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42402 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42403 42404 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 42405 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 42406 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 42407 42408 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 42409 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 42410 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 42411 42412 42413 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 42414 unset ac_cv_sizeof_int_p 42415 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 42416 cat >>confdefs.h <<_ACEOF 42417 #undef SIZEOF_INT_P 42418 _ACEOF 42419 42420 # The cast to long int works around a bug in the HP C Compiler 42421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 42422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 42423 # This bug is HP SR number 8606223364. 42424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 42425 $as_echo_n "checking size of int *... " >&6; } 42426 if ${ac_cv_sizeof_int_p+:} false; then : 42427 $as_echo_n "(cached) " >&6 42428 else 42429 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 42430 42431 else 42432 if test "$ac_cv_type_int_p" = yes; then 42433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 42434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 42435 as_fn_error 77 "cannot compute sizeof (int *) 42436 See \`config.log' for more details" "$LINENO" 5; } 42437 else 42438 ac_cv_sizeof_int_p=0 42439 fi 42440 fi 42441 42442 fi 42443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 42444 $as_echo "$ac_cv_sizeof_int_p" >&6; } 42445 42446 42447 42448 cat >>confdefs.h <<_ACEOF 42449 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 42450 _ACEOF 42451 42452 42453 42454 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 42455 42456 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 42457 { $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 42458 $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;} 42459 if test "x$COMPILE_TYPE" = xreduced; then 42460 42461 # Print a helpful message on how to acquire the necessary build dependency. 42462 # reduced is the help tag: freetype, cups, alsa etc 42463 MISSING_DEPENDENCY=reduced 42464 42465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42466 cygwin_help $MISSING_DEPENDENCY 42467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42468 msys_help $MISSING_DEPENDENCY 42469 else 42470 PKGHANDLER_COMMAND= 42471 42472 case $PKGHANDLER in 42473 apt-get) 42474 apt_help $MISSING_DEPENDENCY ;; 42475 yum) 42476 yum_help $MISSING_DEPENDENCY ;; 42477 port) 42478 port_help $MISSING_DEPENDENCY ;; 42479 pkgutil) 42480 pkgutil_help $MISSING_DEPENDENCY ;; 42481 pkgadd) 42482 pkgadd_help $MISSING_DEPENDENCY ;; 42483 esac 42484 42485 if test "x$PKGHANDLER_COMMAND" != x; then 42486 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 42487 fi 42488 fi 42489 42490 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 42491 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 42492 elif test "x$COMPILE_TYPE" = xcross; then 42493 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 42494 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 42495 fi 42496 as_fn_error $? "Cannot continue." "$LINENO" 5 42497 fi 42498 fi 42499 fi 42500 42501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 42502 $as_echo_n "checking for target address size... " >&6; } 42503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 42504 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 42505 42506 42507 ############################################################################### 42508 # 42509 # Is the target little of big endian? 42510 # 42511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 42512 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 42513 if ${ac_cv_c_bigendian+:} false; then : 42514 $as_echo_n "(cached) " >&6 42515 else 42516 ac_cv_c_bigendian=unknown 42517 # See if we're dealing with a universal compiler. 42518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42519 /* end confdefs.h. */ 42520 #ifndef __APPLE_CC__ 42521 not a universal capable compiler 42522 #endif 42523 typedef int dummy; 42524 42525 _ACEOF 42526 if ac_fn_cxx_try_compile "$LINENO"; then : 42527 42528 # Check for potential -arch flags. It is not universal unless 42529 # there are at least two -arch flags with different values. 42530 ac_arch= 42531 ac_prev= 42532 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 42533 if test -n "$ac_prev"; then 42534 case $ac_word in 42535 i?86 | x86_64 | ppc | ppc64) 42536 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 42537 ac_arch=$ac_word 42538 else 42539 ac_cv_c_bigendian=universal 42540 break 42541 fi 42542 ;; 42543 esac 42544 ac_prev= 42545 elif test "x$ac_word" = "x-arch"; then 42546 ac_prev=arch 42547 fi 42548 done 42549 fi 42550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42551 if test $ac_cv_c_bigendian = unknown; then 42552 # See if sys/param.h defines the BYTE_ORDER macro. 42553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42554 /* end confdefs.h. */ 42555 #include <sys/types.h> 42556 #include <sys/param.h> 42557 42558 int 42559 main () 42560 { 42561 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 42562 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 42563 && LITTLE_ENDIAN) 42564 bogus endian macros 42565 #endif 42566 42567 ; 42568 return 0; 42569 } 42570 _ACEOF 42571 if ac_fn_cxx_try_compile "$LINENO"; then : 42572 # It does; now see whether it defined to BIG_ENDIAN or not. 42573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42574 /* end confdefs.h. */ 42575 #include <sys/types.h> 42576 #include <sys/param.h> 42577 42578 int 42579 main () 42580 { 42581 #if BYTE_ORDER != BIG_ENDIAN 42582 not big endian 42583 #endif 42584 42585 ; 42586 return 0; 42587 } 42588 _ACEOF 42589 if ac_fn_cxx_try_compile "$LINENO"; then : 42590 ac_cv_c_bigendian=yes 42591 else 42592 ac_cv_c_bigendian=no 42593 fi 42594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42595 fi 42596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42597 fi 42598 if test $ac_cv_c_bigendian = unknown; then 42599 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 42600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42601 /* end confdefs.h. */ 42602 #include <limits.h> 42603 42604 int 42605 main () 42606 { 42607 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 42608 bogus endian macros 42609 #endif 42610 42611 ; 42612 return 0; 42613 } 42614 _ACEOF 42615 if ac_fn_cxx_try_compile "$LINENO"; then : 42616 # It does; now see whether it defined to _BIG_ENDIAN or not. 42617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42618 /* end confdefs.h. */ 42619 #include <limits.h> 42620 42621 int 42622 main () 42623 { 42624 #ifndef _BIG_ENDIAN 42625 not big endian 42626 #endif 42627 42628 ; 42629 return 0; 42630 } 42631 _ACEOF 42632 if ac_fn_cxx_try_compile "$LINENO"; then : 42633 ac_cv_c_bigendian=yes 42634 else 42635 ac_cv_c_bigendian=no 42636 fi 42637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42638 fi 42639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42640 fi 42641 if test $ac_cv_c_bigendian = unknown; then 42642 # Compile a test program. 42643 if test "$cross_compiling" = yes; then : 42644 # Try to guess by grepping values from an object file. 42645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42646 /* end confdefs.h. */ 42647 short int ascii_mm[] = 42648 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 42649 short int ascii_ii[] = 42650 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 42651 int use_ascii (int i) { 42652 return ascii_mm[i] + ascii_ii[i]; 42653 } 42654 short int ebcdic_ii[] = 42655 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 42656 short int ebcdic_mm[] = 42657 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 42658 int use_ebcdic (int i) { 42659 return ebcdic_mm[i] + ebcdic_ii[i]; 42660 } 42661 extern int foo; 42662 42663 int 42664 main () 42665 { 42666 return use_ascii (foo) == use_ebcdic (foo); 42667 ; 42668 return 0; 42669 } 42670 _ACEOF 42671 if ac_fn_cxx_try_compile "$LINENO"; then : 42672 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42673 ac_cv_c_bigendian=yes 42674 fi 42675 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42676 if test "$ac_cv_c_bigendian" = unknown; then 42677 ac_cv_c_bigendian=no 42678 else 42679 # finding both strings is unlikely to happen, but who knows? 42680 ac_cv_c_bigendian=unknown 42681 fi 42682 fi 42683 fi 42684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42685 else 42686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42687 /* end confdefs.h. */ 42688 $ac_includes_default 42689 int 42690 main () 42691 { 42692 42693 /* Are we little or big endian? From Harbison&Steele. */ 42694 union 42695 { 42696 long int l; 42697 char c[sizeof (long int)]; 42698 } u; 42699 u.l = 1; 42700 return u.c[sizeof (long int) - 1] == 1; 42701 42702 ; 42703 return 0; 42704 } 42705 _ACEOF 42706 if ac_fn_cxx_try_run "$LINENO"; then : 42707 ac_cv_c_bigendian=no 42708 else 42709 ac_cv_c_bigendian=yes 42710 fi 42711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42712 conftest.$ac_objext conftest.beam conftest.$ac_ext 42713 fi 42714 42715 fi 42716 fi 42717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42718 $as_echo "$ac_cv_c_bigendian" >&6; } 42719 case $ac_cv_c_bigendian in #( 42720 yes) 42721 ENDIAN="big";; #( 42722 no) 42723 ENDIAN="little" ;; #( 42724 universal) 42725 ENDIAN="universal_endianness" 42726 ;; #( 42727 *) 42728 ENDIAN="unknown" ;; 42729 esac 42730 42731 42732 if test "x$ENDIAN" = xuniversal_endianness; then 42733 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42734 fi 42735 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42736 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 42737 fi 42738 42739 42740 # Configure flags for the tools 42741 42742 ############################################################################### 42743 # 42744 # How to compile shared libraries. 42745 # 42746 42747 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42748 PICFLAG="-fPIC" 42749 C_FLAG_REORDER='' 42750 CXX_FLAG_REORDER='' 42751 42752 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42753 # Linking is different on MacOSX 42754 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42755 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42756 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42757 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42758 SET_SHARED_LIBRARY_MAPFILE='' 42759 else 42760 # Default works for linux, might work on other platforms as well. 42761 SHARED_LIBRARY_FLAGS='-shared' 42762 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42763 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42764 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42765 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42766 fi 42767 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42768 PICFLAG='' 42769 C_FLAG_REORDER='' 42770 CXX_FLAG_REORDER='' 42771 42772 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42773 # Linking is different on MacOSX 42774 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42775 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42776 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42777 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42778 SET_SHARED_LIBRARY_MAPFILE='' 42779 else 42780 # Default works for linux, might work on other platforms as well. 42781 SHARED_LIBRARY_FLAGS='-shared' 42782 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42783 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42784 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42785 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42786 fi 42787 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42788 PICFLAG="-KPIC" 42789 C_FLAG_REORDER='-xF' 42790 CXX_FLAG_REORDER='-xF' 42791 SHARED_LIBRARY_FLAGS="-G" 42792 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42793 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42794 SET_SHARED_LIBRARY_NAME='' 42795 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42796 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42797 PICFLAG="-qpic=large" 42798 C_FLAG_REORDER='' 42799 CXX_FLAG_REORDER='' 42800 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42801 SET_EXECUTABLE_ORIGIN="" 42802 SET_SHARED_LIBRARY_ORIGIN='' 42803 SET_SHARED_LIBRARY_NAME='' 42804 SET_SHARED_LIBRARY_MAPFILE='' 42805 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42806 PICFLAG="" 42807 C_FLAG_REORDER='' 42808 CXX_FLAG_REORDER='' 42809 SHARED_LIBRARY_FLAGS="-LD" 42810 SET_EXECUTABLE_ORIGIN='' 42811 SET_SHARED_LIBRARY_ORIGIN='' 42812 SET_SHARED_LIBRARY_NAME='' 42813 SET_SHARED_LIBRARY_MAPFILE='' 42814 fi 42815 42816 42817 42818 42819 42820 42821 42822 42823 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42824 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42825 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42826 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42827 fi 42828 # The (cross) compiler is now configured, we can now test capabilities 42829 # of the target platform. 42830 42831 42832 42833 ############################################################################### 42834 # 42835 # Setup the opt flags for different compilers 42836 # and different operating systems. 42837 # 42838 42839 # FIXME: this was indirectly the old default, but just inherited. 42840 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42841 # C_FLAG_DEPS="-MMD -MF" 42842 # fi 42843 42844 # Generate make dependency files 42845 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42846 C_FLAG_DEPS="-MMD -MF" 42847 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42848 C_FLAG_DEPS="-MMD -MF" 42849 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42850 C_FLAG_DEPS="-xMMD -xMF" 42851 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42852 C_FLAG_DEPS="-qmakedep=gcc -MF" 42853 fi 42854 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42855 42856 42857 42858 # Debug symbols 42859 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42860 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42861 # reduce from default "-g2" option to save space 42862 CFLAGS_DEBUG_SYMBOLS="-g1" 42863 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42864 else 42865 CFLAGS_DEBUG_SYMBOLS="-g" 42866 CXXFLAGS_DEBUG_SYMBOLS="-g" 42867 fi 42868 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42869 CFLAGS_DEBUG_SYMBOLS="-g" 42870 CXXFLAGS_DEBUG_SYMBOLS="-g" 42871 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42872 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42873 # FIXME: likely a bug, this disables debug symbols rather than enables them 42874 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42875 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42876 CFLAGS_DEBUG_SYMBOLS="-g" 42877 CXXFLAGS_DEBUG_SYMBOLS="-g" 42878 fi 42879 42880 42881 42882 # bounds, memory and behavior checking options 42883 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42884 case $DEBUG_LEVEL in 42885 release ) 42886 # no adjustment 42887 ;; 42888 fastdebug ) 42889 # no adjustment 42890 ;; 42891 slowdebug ) 42892 # Add runtime stack smashing and undefined behavior checks. 42893 # Not all versions of gcc support -fstack-protector 42894 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 42895 42896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$STACK_PROTECTOR_CFLAG\"" >&5 42897 $as_echo_n "checking if compiler supports \"$STACK_PROTECTOR_CFLAG\"... " >&6; } 42898 supports=yes 42899 42900 saved_cflags="$CFLAGS" 42901 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG" 42902 ac_ext=c 42903 ac_cpp='$CPP $CPPFLAGS' 42904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42906 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42907 42908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42909 /* end confdefs.h. */ 42910 int i; 42911 _ACEOF 42912 if ac_fn_c_try_compile "$LINENO"; then : 42913 42914 else 42915 supports=no 42916 fi 42917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42918 ac_ext=cpp 42919 ac_cpp='$CXXCPP $CPPFLAGS' 42920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42923 42924 CFLAGS="$saved_cflags" 42925 42926 saved_cxxflags="$CXXFLAGS" 42927 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG" 42928 ac_ext=cpp 42929 ac_cpp='$CXXCPP $CPPFLAGS' 42930 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42931 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42932 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42933 42934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42935 /* end confdefs.h. */ 42936 int i; 42937 _ACEOF 42938 if ac_fn_cxx_try_compile "$LINENO"; then : 42939 42940 else 42941 supports=no 42942 fi 42943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42944 ac_ext=cpp 42945 ac_cpp='$CXXCPP $CPPFLAGS' 42946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42949 42950 CXXFLAGS="$saved_cxxflags" 42951 42952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42953 $as_echo "$supports" >&6; } 42954 if test "x$supports" = "xyes" ; then 42955 : 42956 else 42957 STACK_PROTECTOR_CFLAG="" 42958 fi 42959 42960 42961 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 42962 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 42963 ;; 42964 esac 42965 fi 42966 42967 # Optimization levels 42968 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42969 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42970 42971 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42972 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42973 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42974 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42975 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42976 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42977 C_O_FLAG_NONE="-xregs=no%frameptr" 42978 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42979 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42980 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42981 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42982 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42983 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42984 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42985 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42986 fi 42987 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42988 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42989 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42990 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42991 C_O_FLAG_DEBUG="" 42992 C_O_FLAG_NONE="" 42993 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42994 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42995 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42996 C_O_FLAG_DEBUG="" 42997 CXX_O_FLAG_NONE="" 42998 fi 42999 else 43000 # The remaining toolchains share opt flags between CC and CXX; 43001 # setup for C and duplicate afterwards. 43002 if test "x$TOOLCHAIN_TYPE" = xgcc; then 43003 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43004 # On MacOSX we optimize for size, something 43005 # we should do for all platforms? 43006 C_O_FLAG_HIGHEST="-Os" 43007 C_O_FLAG_HI="-Os" 43008 C_O_FLAG_NORM="-Os" 43009 else 43010 C_O_FLAG_HIGHEST="-O3" 43011 C_O_FLAG_HI="-O3" 43012 C_O_FLAG_NORM="-O2" 43013 fi 43014 C_O_FLAG_DEBUG="-O0" 43015 C_O_FLAG_NONE="-O0" 43016 elif test "x$TOOLCHAIN_TYPE" = xclang; then 43017 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43018 # On MacOSX we optimize for size, something 43019 # we should do for all platforms? 43020 C_O_FLAG_HIGHEST="-Os" 43021 C_O_FLAG_HI="-Os" 43022 C_O_FLAG_NORM="-Os" 43023 else 43024 C_O_FLAG_HIGHEST="-O3" 43025 C_O_FLAG_HI="-O3" 43026 C_O_FLAG_NORM="-O2" 43027 fi 43028 C_O_FLAG_DEBUG="-O0" 43029 C_O_FLAG_NONE="-O0" 43030 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 43031 C_O_FLAG_HIGHEST="-O3" 43032 C_O_FLAG_HI="-O3 -qstrict" 43033 C_O_FLAG_NORM="-O2" 43034 C_O_FLAG_DEBUG="-qnoopt" 43035 C_O_FLAG_NONE="-qnoop" 43036 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 43037 C_O_FLAG_HIGHEST="-O2" 43038 C_O_FLAG_HI="-O1" 43039 C_O_FLAG_NORM="-O1" 43040 C_O_FLAG_DEBUG="-Od" 43041 C_O_FLAG_NONE="-Od" 43042 fi 43043 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 43044 CXX_O_FLAG_HI="$C_O_FLAG_HI" 43045 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 43046 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 43047 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 43048 fi 43049 43050 # Adjust optimization flags according to debug level. 43051 case $DEBUG_LEVEL in 43052 release ) 43053 # no adjustment 43054 ;; 43055 fastdebug ) 43056 # Not quite so much optimization 43057 C_O_FLAG_HI="$C_O_FLAG_NORM" 43058 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 43059 ;; 43060 slowdebug ) 43061 # Disable optimization 43062 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 43063 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 43064 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 43065 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 43066 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 43067 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 43068 ;; 43069 esac 43070 43071 43072 43073 43074 43075 43076 43077 43078 43079 43080 43081 43082 43083 # Special extras... 43084 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43085 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 43086 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 43087 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 43088 fi 43089 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 43090 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 43091 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 43092 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 43093 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 43094 fi 43095 43096 CFLAGS_JDK="${CFLAGS_JDK} $EXTRA_CFLAGS" 43097 CXXFLAGS_JDK="${CXXFLAGS_JDK} $EXTRA_CXXFLAGS" 43098 LDFLAGS_JDK="${LDFLAGS_JDK} $EXTRA_LDFLAGS" 43099 43100 ############################################################################### 43101 # 43102 # Now setup the CFLAGS and LDFLAGS for the JDK build. 43103 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 43104 # 43105 43106 # Setup compiler/platform specific flags into 43107 # CFLAGS_JDK - C Compiler flags 43108 # CXXFLAGS_JDK - C++ Compiler flags 43109 # COMMON_CCXXFLAGS_JDK - common to C and C++ 43110 if test "x$TOOLCHAIN_TYPE" = xgcc; then 43111 if test "x$OPENJDK_TARGET_CPU" = xx86; then 43112 # Force compatibility with i586 on 32 bit intel platforms. 43113 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 43114 fi 43115 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 43116 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 43117 case $OPENJDK_TARGET_CPU_ARCH in 43118 arm ) 43119 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 43120 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 43121 ;; 43122 ppc ) 43123 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 43124 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 43125 ;; 43126 * ) 43127 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 43128 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 43129 ;; 43130 esac 43131 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43132 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 43133 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 43134 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 43135 fi 43136 43137 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 43138 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 43139 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 43140 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 43141 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 43142 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 43143 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 43144 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 43145 -DWIN32_LEAN_AND_MEAN \ 43146 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 43147 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 43148 -DWIN32 -DIAL" 43149 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 43150 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 43151 else 43152 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 43153 fi 43154 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 43155 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 43156 # studio. 43157 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 43158 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 43159 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 43160 fi 43161 fi 43162 43163 ############################################################################### 43164 43165 # Adjust flags according to debug level. 43166 case $DEBUG_LEVEL in 43167 fastdebug | slowdebug ) 43168 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 43169 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 43170 JAVAC_FLAGS="$JAVAC_FLAGS -g" 43171 ;; 43172 release ) 43173 ;; 43174 * ) 43175 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 43176 ;; 43177 esac 43178 43179 # Setup LP64 43180 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 43181 43182 # Set some common defines. These works for all compilers, but assume 43183 # -D is universally accepted. 43184 43185 # Setup endianness 43186 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 43187 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 43188 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 43189 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 43190 # Note: -Dmacro is the same as #define macro 1 43191 # -Dmacro= is the same as #define macro 43192 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43193 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 43194 else 43195 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 43196 fi 43197 else 43198 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 43199 # are defined in the system? 43200 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43201 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 43202 else 43203 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 43204 fi 43205 fi 43206 43207 # Setup target OS define. Use OS target name but in upper case. 43208 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 43209 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 43210 43211 # Setup target CPU 43212 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 43213 43214 # Setup debug/release defines 43215 if test "x$DEBUG_LEVEL" = xrelease; then 43216 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 43217 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43218 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 43219 fi 43220 else 43221 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 43222 fi 43223 43224 # Setup release name 43225 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 43226 43227 43228 # Set some additional per-OS defines. 43229 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43230 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 43231 elif test "x$OPENJDK_TARGET_OS" = xaix; then 43232 # FIXME: PPC64 should not be here. 43233 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 43234 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 43235 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 43236 fi 43237 43238 # Additional macosx handling 43239 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43240 # Setting these parameters makes it an error to link to macosx APIs that are 43241 # newer than the given OS version and makes the linked binaries compatible 43242 # even if built on a newer version of the OS. 43243 # The expected format is X.Y.Z 43244 MACOSX_VERSION_MIN=10.7.0 43245 43246 43247 # The macro takes the version with no dots, ex: 1070 43248 # Let the flags variables get resolved in make for easier override on make 43249 # command line. 43250 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 43251 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 43252 fi 43253 43254 # Setup some hard coded includes 43255 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 43256 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 43257 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 43258 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 43259 43260 # The shared libraries are compiled using the picflag. 43261 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 43262 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 43263 43264 # Executable flags 43265 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 43266 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 43267 43268 43269 43270 43271 43272 43273 # Flags for compiling test libraries 43274 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 43275 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 43276 43277 # Flags for compiling test executables 43278 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 43279 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 43280 43281 43282 43283 43284 43285 43286 # Setup LDFLAGS et al. 43287 # 43288 43289 # Now this is odd. The JDK native libraries have to link against libjvm.so 43290 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 43291 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 43292 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 43293 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 43294 # libraries will link to whatever is in memory. Yuck. 43295 # 43296 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 43297 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 43298 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 43299 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 43300 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 43301 fi 43302 # TODO: make -debug optional "--disable-full-debug-symbols" 43303 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 43304 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 43305 # If this is a --hash-style=gnu system, use --hash-style=both, why? 43306 # We have previously set HAS_GNU_HASH if this is the case 43307 if test -n "$HAS_GNU_HASH"; then 43308 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 43309 fi 43310 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43311 # And since we now know that the linker is gnu, then add -z defs, to forbid 43312 # undefined symbols in object files. 43313 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 43314 case $DEBUG_LEVEL in 43315 release ) 43316 # tell linker to optimize libraries. 43317 # Should this be supplied to the OSS linker as well? 43318 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 43319 ;; 43320 slowdebug ) 43321 if test "x$HAS_LINKER_NOW" = "xtrue"; then 43322 # do relocations at load 43323 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 43324 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 43325 fi 43326 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 43327 # mark relocations read only 43328 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 43329 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 43330 fi 43331 ;; 43332 fastdebug ) 43333 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 43334 # mark relocations read only 43335 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 43336 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 43337 fi 43338 ;; 43339 * ) 43340 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 43341 ;; 43342 esac 43343 fi 43344 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43345 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 43346 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 43347 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 43348 LDFLAGS_JDK="${LDFLAGS_JDK} -brtl -bnolibpath -liconv -bexpall -bernotok" 43349 fi 43350 43351 # Customize LDFLAGS for executables 43352 43353 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 43354 43355 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 43356 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 43357 LDFLAGS_STACK_SIZE=1048576 43358 else 43359 LDFLAGS_STACK_SIZE=327680 43360 fi 43361 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 43362 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 43363 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 43364 fi 43365 43366 # Customize LDFLAGS for libs 43367 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 43368 43369 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 43370 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 43371 LDFLAGS_JDKLIB_SUFFIX="" 43372 else 43373 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 43374 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 43375 43376 # On some platforms (mac) the linker warns about non existing -L dirs. 43377 # Add server first if available. Linking aginst client does not always produce the same results. 43378 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 43379 # Default to server for other variants. 43380 if test "x$JVM_VARIANT_SERVER" = xtrue; then 43381 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 43382 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 43383 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 43384 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 43385 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 43386 else 43387 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 43388 fi 43389 43390 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 43391 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 43392 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 43393 fi 43394 fi 43395 43396 43397 43398 43399 43400 43401 43402 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 43403 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE" 43404 LDFLAGS_TESTLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX" 43405 LDFLAGS_TESTEXE_SUFFIX="$LDFLAGS_JDKEXE_SUFFIX" 43406 43407 43408 43409 43410 43411 43412 43413 # Some Zero and Shark settings. 43414 # ZERO_ARCHFLAG tells the compiler which mode to build for 43415 case "${OPENJDK_TARGET_CPU}" in 43416 s390) 43417 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 43418 ;; 43419 *) 43420 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43421 esac 43422 43423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 43424 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 43425 supports=yes 43426 43427 saved_cflags="$CFLAGS" 43428 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 43429 ac_ext=c 43430 ac_cpp='$CPP $CPPFLAGS' 43431 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43432 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43433 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43434 43435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43436 /* end confdefs.h. */ 43437 int i; 43438 _ACEOF 43439 if ac_fn_c_try_compile "$LINENO"; then : 43440 43441 else 43442 supports=no 43443 fi 43444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43445 ac_ext=cpp 43446 ac_cpp='$CXXCPP $CPPFLAGS' 43447 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43448 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43449 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43450 43451 CFLAGS="$saved_cflags" 43452 43453 saved_cxxflags="$CXXFLAGS" 43454 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 43455 ac_ext=cpp 43456 ac_cpp='$CXXCPP $CPPFLAGS' 43457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43460 43461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43462 /* end confdefs.h. */ 43463 int i; 43464 _ACEOF 43465 if ac_fn_cxx_try_compile "$LINENO"; then : 43466 43467 else 43468 supports=no 43469 fi 43470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43471 ac_ext=cpp 43472 ac_cpp='$CXXCPP $CPPFLAGS' 43473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43476 43477 CXXFLAGS="$saved_cxxflags" 43478 43479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43480 $as_echo "$supports" >&6; } 43481 if test "x$supports" = "xyes" ; then 43482 : 43483 else 43484 ZERO_ARCHFLAG="" 43485 fi 43486 43487 43488 43489 # Check that the compiler supports -mX (or -qX on AIX) flags 43490 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 43491 43492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 43493 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 43494 supports=yes 43495 43496 saved_cflags="$CFLAGS" 43497 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43498 ac_ext=c 43499 ac_cpp='$CPP $CPPFLAGS' 43500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43502 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43503 43504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43505 /* end confdefs.h. */ 43506 int i; 43507 _ACEOF 43508 if ac_fn_c_try_compile "$LINENO"; then : 43509 43510 else 43511 supports=no 43512 fi 43513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43514 ac_ext=cpp 43515 ac_cpp='$CXXCPP $CPPFLAGS' 43516 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43517 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43518 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43519 43520 CFLAGS="$saved_cflags" 43521 43522 saved_cxxflags="$CXXFLAGS" 43523 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 43524 ac_ext=cpp 43525 ac_cpp='$CXXCPP $CPPFLAGS' 43526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43529 43530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43531 /* end confdefs.h. */ 43532 int i; 43533 _ACEOF 43534 if ac_fn_cxx_try_compile "$LINENO"; then : 43535 43536 else 43537 supports=no 43538 fi 43539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43540 ac_ext=cpp 43541 ac_cpp='$CXXCPP $CPPFLAGS' 43542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43545 43546 CXXFLAGS="$saved_cxxflags" 43547 43548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43549 $as_echo "$supports" >&6; } 43550 if test "x$supports" = "xyes" ; then 43551 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 43552 else 43553 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 43554 fi 43555 43556 43557 43558 # Check whether --enable-warnings-as-errors was given. 43559 if test "${enable_warnings_as_errors+set}" = set; then : 43560 enableval=$enable_warnings_as_errors; 43561 fi 43562 43563 43564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 43565 $as_echo_n "checking if native warnings are errors... " >&6; } 43566 if test "x$enable_warnings_as_errors" = "xyes"; then 43567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitely set)" >&5 43568 $as_echo "yes (explicitely set)" >&6; } 43569 WARNINGS_AS_ERRORS=true 43570 elif test "x$enable_warnings_as_errors" = "xno"; then 43571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43572 $as_echo "no" >&6; } 43573 WARNINGS_AS_ERRORS=false 43574 elif test "x$enable_warnings_as_errors" = "x"; then 43575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 43576 $as_echo "yes (default)" >&6; } 43577 WARNINGS_AS_ERRORS=true 43578 else 43579 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 43580 fi 43581 43582 43583 case "${TOOLCHAIN_TYPE}" in 43584 microsoft) 43585 DISABLE_WARNING_PREFIX="-wd" 43586 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 43587 ;; 43588 solstudio) 43589 DISABLE_WARNING_PREFIX="-erroff=" 43590 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 43591 ;; 43592 gcc) 43593 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 43594 43595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 43596 $as_echo_n "checking if compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 43597 supports=yes 43598 43599 saved_cflags="$CFLAGS" 43600 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 43601 ac_ext=c 43602 ac_cpp='$CPP $CPPFLAGS' 43603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43605 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43606 43607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43608 /* end confdefs.h. */ 43609 int i; 43610 _ACEOF 43611 if ac_fn_c_try_compile "$LINENO"; then : 43612 43613 else 43614 supports=no 43615 fi 43616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43617 ac_ext=cpp 43618 ac_cpp='$CXXCPP $CPPFLAGS' 43619 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43620 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43622 43623 CFLAGS="$saved_cflags" 43624 43625 saved_cxxflags="$CXXFLAGS" 43626 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 43627 ac_ext=cpp 43628 ac_cpp='$CXXCPP $CPPFLAGS' 43629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43632 43633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43634 /* end confdefs.h. */ 43635 int i; 43636 _ACEOF 43637 if ac_fn_cxx_try_compile "$LINENO"; then : 43638 43639 else 43640 supports=no 43641 fi 43642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43643 ac_ext=cpp 43644 ac_cpp='$CXXCPP $CPPFLAGS' 43645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43648 43649 CXXFLAGS="$saved_cxxflags" 43650 43651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 43652 $as_echo "$supports" >&6; } 43653 if test "x$supports" = "xyes" ; then 43654 GCC_CAN_DISABLE_WARNINGS=true 43655 else 43656 GCC_CAN_DISABLE_WARNINGS=false 43657 43658 fi 43659 43660 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 43661 DISABLE_WARNING_PREFIX="-Wno-" 43662 else 43663 DISABLE_WARNING_PREFIX= 43664 fi 43665 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43666 ;; 43667 clang) 43668 DISABLE_WARNING_PREFIX="-Wno-" 43669 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 43670 ;; 43671 esac 43672 43673 43674 43675 43676 # Setup debug symbols (need objcopy from the toolchain for that) 43677 43678 # 43679 # ENABLE_DEBUG_SYMBOLS 43680 # This must be done after the toolchain is setup, since we're looking at objcopy. 43681 # 43682 # Check whether --enable-debug-symbols was given. 43683 if test "${enable_debug_symbols+set}" = set; then : 43684 enableval=$enable_debug_symbols; 43685 fi 43686 43687 43688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 43689 $as_echo_n "checking if we should generate debug symbols... " >&6; } 43690 43691 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 43692 # explicit enabling of enable-debug-symbols and can't find objcopy 43693 # this is an error 43694 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 43695 fi 43696 43697 if test "x$enable_debug_symbols" = "xyes"; then 43698 ENABLE_DEBUG_SYMBOLS=true 43699 elif test "x$enable_debug_symbols" = "xno"; then 43700 ENABLE_DEBUG_SYMBOLS=false 43701 else 43702 # Default is on if objcopy is found 43703 if test "x$OBJCOPY" != x; then 43704 ENABLE_DEBUG_SYMBOLS=true 43705 # MacOS X and Windows don't use objcopy but default is on for those OSes 43706 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 43707 ENABLE_DEBUG_SYMBOLS=true 43708 else 43709 ENABLE_DEBUG_SYMBOLS=false 43710 fi 43711 fi 43712 43713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 43714 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 43715 43716 # 43717 # ZIP_DEBUGINFO_FILES 43718 # 43719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 43720 $as_echo_n "checking if we should zip debug-info files... " >&6; } 43721 # Check whether --enable-zip-debug-info was given. 43722 if test "${enable_zip_debug_info+set}" = set; then : 43723 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 43724 else 43725 enable_zip_debug_info="yes" 43726 fi 43727 43728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 43729 $as_echo "${enable_zip_debug_info}" >&6; } 43730 43731 if test "x${enable_zip_debug_info}" = "xno"; then 43732 ZIP_DEBUGINFO_FILES=false 43733 else 43734 ZIP_DEBUGINFO_FILES=true 43735 fi 43736 43737 43738 43739 43740 43741 # Check whether --enable-native-coverage was given. 43742 if test "${enable_native_coverage+set}" = set; then : 43743 enableval=$enable_native_coverage; 43744 fi 43745 43746 GCOV_ENABLED="false" 43747 if test "x$enable_native_coverage" = "xyes"; then 43748 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 43749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43750 $as_echo_n "checking if native coverage is enabled... " >&6; } 43751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43752 $as_echo "yes" >&6; } 43753 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 43754 GCOV_LDFLAGS="-fprofile-arcs" 43755 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $GCOV_CFLAGS" 43756 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $GCOV_CFLAGS" 43757 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $GCOV_LDFLAGS" 43758 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 43759 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 43760 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 43761 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 43762 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 43763 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 43764 GCOV_ENABLED="true" 43765 else 43766 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 43767 fi 43768 elif test "x$enable_native_coverage" = "xno"; then 43769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 43770 $as_echo_n "checking if native coverage is enabled... " >&6; } 43771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43772 $as_echo "no" >&6; } 43773 elif test "x$enable_native_coverage" != "x"; then 43774 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 43775 fi 43776 43777 43778 43779 43780 ############################################################################### 43781 # 43782 # Check dependencies for external and internal libraries. 43783 # 43784 ############################################################################### 43785 43786 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 43787 43788 # When using cygwin or msys, we need a wrapper binary that renames 43789 # /cygdrive/c/ arguments into c:/ arguments and peeks into 43790 # @files and rewrites these too! This wrapper binary is 43791 # called fixpath. 43792 FIXPATH= 43793 if test "x$OPENJDK_BUILD_OS" = xwindows; then 43794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 43795 $as_echo_n "checking if fixpath can be created... " >&6; } 43796 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 43797 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 43798 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 43799 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 43800 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 43801 FIXPATH="$FIXPATH_BIN -c" 43802 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 43803 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 43804 # @ was chosen as separator to minimize risk of other tools messing around with it 43805 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 43806 | tr ' ' '\n' | grep '^/./' | sort | uniq` 43807 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 43808 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 43809 fi 43810 FIXPATH_SRC_W="$FIXPATH_SRC" 43811 FIXPATH_BIN_W="$FIXPATH_BIN" 43812 43813 unix_path="$FIXPATH_SRC_W" 43814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43815 windows_path=`$CYGPATH -m "$unix_path"` 43816 FIXPATH_SRC_W="$windows_path" 43817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43818 windows_path=`cmd //c echo $unix_path` 43819 FIXPATH_SRC_W="$windows_path" 43820 fi 43821 43822 43823 unix_path="$FIXPATH_BIN_W" 43824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43825 windows_path=`$CYGPATH -m "$unix_path"` 43826 FIXPATH_BIN_W="$windows_path" 43827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43828 windows_path=`cmd //c echo $unix_path` 43829 FIXPATH_BIN_W="$windows_path" 43830 fi 43831 43832 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 43833 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 43834 cd $FIXPATH_DIR 43835 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 43836 cd $CURDIR 43837 43838 if test ! -x $FIXPATH_BIN; then 43839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43840 $as_echo "no" >&6; } 43841 cat $FIXPATH_DIR/fixpath1.log 43842 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 43843 fi 43844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43845 $as_echo "yes" >&6; } 43846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 43847 $as_echo_n "checking if fixpath.exe works... " >&6; } 43848 cd $FIXPATH_DIR 43849 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 43850 > $FIXPATH_DIR/fixpath2.log 2>&1 43851 cd $CURDIR 43852 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 43853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43854 $as_echo "no" >&6; } 43855 cat $FIXPATH_DIR/fixpath2.log 43856 as_fn_error $? "fixpath did not work!" "$LINENO" 5 43857 fi 43858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43859 $as_echo "yes" >&6; } 43860 fi 43861 43862 43863 43864 43865 43866 # Check if X11 is needed 43867 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 43868 # No X11 support on windows or macosx 43869 NEEDS_LIB_X11=false 43870 else 43871 if test "x$SUPPORT_HEADFUL" = xno; then 43872 # No X11 support if building headless-only 43873 NEEDS_LIB_X11=false 43874 else 43875 # All other instances need X11 43876 NEEDS_LIB_X11=true 43877 fi 43878 fi 43879 43880 # Check if cups is needed 43881 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43882 # Windows have a separate print system 43883 NEEDS_LIB_CUPS=false 43884 else 43885 NEEDS_LIB_CUPS=true 43886 fi 43887 43888 # Check if freetype is needed 43889 if test "x$OPENJDK" = "xtrue"; then 43890 NEEDS_LIB_FREETYPE=true 43891 else 43892 NEEDS_LIB_FREETYPE=false 43893 fi 43894 43895 # Check if alsa is needed 43896 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43897 NEEDS_LIB_ALSA=true 43898 else 43899 NEEDS_LIB_ALSA=false 43900 fi 43901 43902 # Check if ffi is needed 43903 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 43904 NEEDS_LIB_FFI=true 43905 else 43906 NEEDS_LIB_FFI=false 43907 fi 43908 43909 43910 # statically link libstdc++ before C++ ABI is stablized on Linux unless 43911 # dynamic build is configured on command line. 43912 43913 # Check whether --with-stdc++lib was given. 43914 if test "${with_stdc__lib+set}" = set; then : 43915 withval=$with_stdc__lib; 43916 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 43917 && test "x$with_stdc__lib" != xdefault; then 43918 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 43919 fi 43920 43921 else 43922 with_stdc__lib=default 43923 43924 fi 43925 43926 43927 if test "x$OPENJDK_TARGET_OS" = xlinux; then 43928 # Test if -lstdc++ works. 43929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 43930 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 43931 ac_ext=cpp 43932 ac_cpp='$CXXCPP $CPPFLAGS' 43933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43936 43937 OLD_CXXFLAGS="$CXXFLAGS" 43938 CXXFLAGS="$CXXFLAGS -lstdc++" 43939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43940 /* end confdefs.h. */ 43941 43942 int 43943 main () 43944 { 43945 return 0; 43946 ; 43947 return 0; 43948 } 43949 _ACEOF 43950 if ac_fn_cxx_try_link "$LINENO"; then : 43951 has_dynamic_libstdcxx=yes 43952 else 43953 has_dynamic_libstdcxx=no 43954 fi 43955 rm -f core conftest.err conftest.$ac_objext \ 43956 conftest$ac_exeext conftest.$ac_ext 43957 CXXFLAGS="$OLD_CXXFLAGS" 43958 ac_ext=cpp 43959 ac_cpp='$CXXCPP $CPPFLAGS' 43960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43963 43964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 43965 $as_echo "$has_dynamic_libstdcxx" >&6; } 43966 43967 # Test if stdc++ can be linked statically. 43968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 43969 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 43970 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 43971 ac_ext=cpp 43972 ac_cpp='$CXXCPP $CPPFLAGS' 43973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43976 43977 OLD_LIBS="$LIBS" 43978 OLD_CXX="$CXX" 43979 LIBS="$STATIC_STDCXX_FLAGS" 43980 CXX="$CC" 43981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43982 /* end confdefs.h. */ 43983 43984 int 43985 main () 43986 { 43987 return 0; 43988 ; 43989 return 0; 43990 } 43991 _ACEOF 43992 if ac_fn_cxx_try_link "$LINENO"; then : 43993 has_static_libstdcxx=yes 43994 else 43995 has_static_libstdcxx=no 43996 fi 43997 rm -f core conftest.err conftest.$ac_objext \ 43998 conftest$ac_exeext conftest.$ac_ext 43999 LIBS="$OLD_LIBS" 44000 CXX="$OLD_CXX" 44001 ac_ext=cpp 44002 ac_cpp='$CXXCPP $CPPFLAGS' 44003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 44004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 44005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 44006 44007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 44008 $as_echo "$has_static_libstdcxx" >&6; } 44009 44010 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 44011 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 44012 fi 44013 44014 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 44015 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 44016 fi 44017 44018 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 44019 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 44020 fi 44021 44022 # If dynamic was requested, it's available since it would fail above otherwise. 44023 # If dynamic wasn't requested, go with static unless it isn't available. 44024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 44025 $as_echo_n "checking how to link with libstdc++... " >&6; } 44026 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 44027 LIBCXX="$LIBCXX -lstdc++" 44028 LDCXX="$CXX" 44029 STATIC_CXX_SETTING="STATIC_CXX=false" 44030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 44031 $as_echo "dynamic" >&6; } 44032 else 44033 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 44034 LDCXX="$CC" 44035 STATIC_CXX_SETTING="STATIC_CXX=true" 44036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 44037 $as_echo "static" >&6; } 44038 fi 44039 fi 44040 44041 44042 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 44043 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 44044 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 44045 fi 44046 44047 # TODO better (platform agnostic) test 44048 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 44049 LIBCXX="-lstdc++" 44050 fi 44051 44052 44053 # Setup Windows runtime dlls 44054 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 44055 44056 44057 # Check whether --with-msvcr-dll was given. 44058 if test "${with_msvcr_dll+set}" = set; then : 44059 withval=$with_msvcr_dll; 44060 fi 44061 44062 44063 if test "x$with_msvcr_dll" != x; then 44064 # If given explicitely by user, do not probe. If not present, fail directly. 44065 44066 DLL_NAME="$MSVCR_NAME" 44067 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 44068 METHOD="--with-msvcr-dll" 44069 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 44070 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 44071 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 44072 44073 # Need to check if the found msvcr is correct architecture 44074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 44075 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 44076 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 44077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44078 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 44079 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 44080 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44081 CORRECT_MSVCR_ARCH="PE32 executable" 44082 else 44083 CORRECT_MSVCR_ARCH="PE32+ executable" 44084 fi 44085 else 44086 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44087 CORRECT_MSVCR_ARCH=386 44088 else 44089 CORRECT_MSVCR_ARCH=x86-64 44090 fi 44091 fi 44092 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 44093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 44094 $as_echo "ok" >&6; } 44095 MSVC_DLL="$POSSIBLE_MSVC_DLL" 44096 44097 # Only process if variable expands to non-empty 44098 44099 if test "x$MSVC_DLL" != x; then 44100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44101 44102 # Input might be given as Windows format, start by converting to 44103 # unix format. 44104 path="$MSVC_DLL" 44105 new_path=`$CYGPATH -u "$path"` 44106 44107 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44108 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44109 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44110 # "foo.exe" is OK but "foo" is an error. 44111 # 44112 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44113 # It is also a way to make sure we got the proper file name for the real test later on. 44114 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44115 if test "x$test_shortpath" = x; then 44116 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44117 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44118 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 44119 fi 44120 44121 # Call helper function which possibly converts this using DOS-style short mode. 44122 # If so, the updated path is stored in $new_path. 44123 44124 input_path="$new_path" 44125 # Check if we need to convert this using DOS-style short mode. If the path 44126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44127 # take no chances and rewrite it. 44128 # Note: m4 eats our [], so we need to use [ and ] instead. 44129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44130 if test "x$has_forbidden_chars" != x; then 44131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44132 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44133 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44134 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44135 # Going to short mode and back again did indeed matter. Since short mode is 44136 # case insensitive, let's make it lowercase to improve readability. 44137 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44138 # Now convert it back to Unix-style (cygpath) 44139 input_path=`$CYGPATH -u "$shortmode_path"` 44140 new_path="$input_path" 44141 fi 44142 fi 44143 44144 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44145 if test "x$test_cygdrive_prefix" = x; then 44146 # As a simple fix, exclude /usr/bin since it's not a real path. 44147 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44148 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44149 # a path prefixed by /cygdrive for fixpath to work. 44150 new_path="$CYGWIN_ROOT_PATH$input_path" 44151 fi 44152 fi 44153 44154 44155 if test "x$path" != "x$new_path"; then 44156 MSVC_DLL="$new_path" 44157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44158 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44159 fi 44160 44161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44162 44163 path="$MSVC_DLL" 44164 has_colon=`$ECHO $path | $GREP ^.:` 44165 new_path="$path" 44166 if test "x$has_colon" = x; then 44167 # Not in mixed or Windows style, start by that. 44168 new_path=`cmd //c echo $path` 44169 fi 44170 44171 44172 input_path="$new_path" 44173 # Check if we need to convert this using DOS-style short mode. If the path 44174 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44175 # take no chances and rewrite it. 44176 # Note: m4 eats our [], so we need to use [ and ] instead. 44177 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44178 if test "x$has_forbidden_chars" != x; then 44179 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44180 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44181 fi 44182 44183 44184 windows_path="$new_path" 44185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44186 unix_path=`$CYGPATH -u "$windows_path"` 44187 new_path="$unix_path" 44188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44190 new_path="$unix_path" 44191 fi 44192 44193 if test "x$path" != "x$new_path"; then 44194 MSVC_DLL="$new_path" 44195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44196 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44197 fi 44198 44199 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44200 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44201 44202 else 44203 # We're on a unix platform. Hooray! :) 44204 path="$MSVC_DLL" 44205 has_space=`$ECHO "$path" | $GREP " "` 44206 if test "x$has_space" != x; then 44207 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44208 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44209 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44210 fi 44211 44212 # Use eval to expand a potential ~ 44213 eval path="$path" 44214 if test ! -f "$path" && test ! -d "$path"; then 44215 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 44216 fi 44217 44218 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 44219 fi 44220 fi 44221 44222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 44223 $as_echo_n "checking for $DLL_NAME... " >&6; } 44224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 44225 $as_echo "$MSVC_DLL" >&6; } 44226 else 44227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 44228 $as_echo "incorrect, ignoring" >&6; } 44229 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 44230 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 44231 fi 44232 fi 44233 44234 if test "x$MSVC_DLL" = x; then 44235 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 44236 fi 44237 MSVCR_DLL="$MSVC_DLL" 44238 elif test "x$DEVKIT_MSVCR_DLL" != x; then 44239 44240 DLL_NAME="$MSVCR_NAME" 44241 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 44242 METHOD="devkit" 44243 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 44244 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 44245 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 44246 44247 # Need to check if the found msvcr is correct architecture 44248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 44249 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 44250 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 44251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44252 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 44253 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 44254 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44255 CORRECT_MSVCR_ARCH="PE32 executable" 44256 else 44257 CORRECT_MSVCR_ARCH="PE32+ executable" 44258 fi 44259 else 44260 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44261 CORRECT_MSVCR_ARCH=386 44262 else 44263 CORRECT_MSVCR_ARCH=x86-64 44264 fi 44265 fi 44266 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 44267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 44268 $as_echo "ok" >&6; } 44269 MSVC_DLL="$POSSIBLE_MSVC_DLL" 44270 44271 # Only process if variable expands to non-empty 44272 44273 if test "x$MSVC_DLL" != x; then 44274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44275 44276 # Input might be given as Windows format, start by converting to 44277 # unix format. 44278 path="$MSVC_DLL" 44279 new_path=`$CYGPATH -u "$path"` 44280 44281 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44282 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44283 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44284 # "foo.exe" is OK but "foo" is an error. 44285 # 44286 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44287 # It is also a way to make sure we got the proper file name for the real test later on. 44288 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44289 if test "x$test_shortpath" = x; then 44290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44291 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44292 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 44293 fi 44294 44295 # Call helper function which possibly converts this using DOS-style short mode. 44296 # If so, the updated path is stored in $new_path. 44297 44298 input_path="$new_path" 44299 # Check if we need to convert this using DOS-style short mode. If the path 44300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44301 # take no chances and rewrite it. 44302 # Note: m4 eats our [], so we need to use [ and ] instead. 44303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44304 if test "x$has_forbidden_chars" != x; then 44305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44306 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44307 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44308 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44309 # Going to short mode and back again did indeed matter. Since short mode is 44310 # case insensitive, let's make it lowercase to improve readability. 44311 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44312 # Now convert it back to Unix-style (cygpath) 44313 input_path=`$CYGPATH -u "$shortmode_path"` 44314 new_path="$input_path" 44315 fi 44316 fi 44317 44318 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44319 if test "x$test_cygdrive_prefix" = x; then 44320 # As a simple fix, exclude /usr/bin since it's not a real path. 44321 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44322 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44323 # a path prefixed by /cygdrive for fixpath to work. 44324 new_path="$CYGWIN_ROOT_PATH$input_path" 44325 fi 44326 fi 44327 44328 44329 if test "x$path" != "x$new_path"; then 44330 MSVC_DLL="$new_path" 44331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44332 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44333 fi 44334 44335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44336 44337 path="$MSVC_DLL" 44338 has_colon=`$ECHO $path | $GREP ^.:` 44339 new_path="$path" 44340 if test "x$has_colon" = x; then 44341 # Not in mixed or Windows style, start by that. 44342 new_path=`cmd //c echo $path` 44343 fi 44344 44345 44346 input_path="$new_path" 44347 # Check if we need to convert this using DOS-style short mode. If the path 44348 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44349 # take no chances and rewrite it. 44350 # Note: m4 eats our [], so we need to use [ and ] instead. 44351 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44352 if test "x$has_forbidden_chars" != x; then 44353 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44354 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44355 fi 44356 44357 44358 windows_path="$new_path" 44359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44360 unix_path=`$CYGPATH -u "$windows_path"` 44361 new_path="$unix_path" 44362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44364 new_path="$unix_path" 44365 fi 44366 44367 if test "x$path" != "x$new_path"; then 44368 MSVC_DLL="$new_path" 44369 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44370 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44371 fi 44372 44373 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44374 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44375 44376 else 44377 # We're on a unix platform. Hooray! :) 44378 path="$MSVC_DLL" 44379 has_space=`$ECHO "$path" | $GREP " "` 44380 if test "x$has_space" != x; then 44381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44382 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44383 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44384 fi 44385 44386 # Use eval to expand a potential ~ 44387 eval path="$path" 44388 if test ! -f "$path" && test ! -d "$path"; then 44389 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 44390 fi 44391 44392 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 44393 fi 44394 fi 44395 44396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 44397 $as_echo_n "checking for $DLL_NAME... " >&6; } 44398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 44399 $as_echo "$MSVC_DLL" >&6; } 44400 else 44401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 44402 $as_echo "incorrect, ignoring" >&6; } 44403 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 44404 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 44405 fi 44406 fi 44407 44408 if test "x$MSVC_DLL" = x; then 44409 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 44410 fi 44411 MSVCR_DLL="$MSVC_DLL" 44412 else 44413 44414 DLL_NAME="${MSVCR_NAME}" 44415 MSVC_DLL= 44416 44417 if test "x$MSVC_DLL" = x; then 44418 # Probe: Using well-known location from Visual Studio 10.0 44419 if test "x$VCINSTALLDIR" != x; then 44420 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 44421 44422 windows_path="$CYGWIN_VC_INSTALL_DIR" 44423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44424 unix_path=`$CYGPATH -u "$windows_path"` 44425 CYGWIN_VC_INSTALL_DIR="$unix_path" 44426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44428 CYGWIN_VC_INSTALL_DIR="$unix_path" 44429 fi 44430 44431 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44432 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 44433 else 44434 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 44435 fi 44436 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 44437 44438 DLL_NAME="$DLL_NAME" 44439 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 44440 METHOD="well-known location in VCINSTALLDIR" 44441 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 44442 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 44443 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 44444 44445 # Need to check if the found msvcr is correct architecture 44446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 44447 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 44448 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 44449 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44450 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 44451 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 44452 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44453 CORRECT_MSVCR_ARCH="PE32 executable" 44454 else 44455 CORRECT_MSVCR_ARCH="PE32+ executable" 44456 fi 44457 else 44458 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44459 CORRECT_MSVCR_ARCH=386 44460 else 44461 CORRECT_MSVCR_ARCH=x86-64 44462 fi 44463 fi 44464 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 44465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 44466 $as_echo "ok" >&6; } 44467 MSVC_DLL="$POSSIBLE_MSVC_DLL" 44468 44469 # Only process if variable expands to non-empty 44470 44471 if test "x$MSVC_DLL" != x; then 44472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44473 44474 # Input might be given as Windows format, start by converting to 44475 # unix format. 44476 path="$MSVC_DLL" 44477 new_path=`$CYGPATH -u "$path"` 44478 44479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44482 # "foo.exe" is OK but "foo" is an error. 44483 # 44484 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44485 # It is also a way to make sure we got the proper file name for the real test later on. 44486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44487 if test "x$test_shortpath" = x; then 44488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44489 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44490 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 44491 fi 44492 44493 # Call helper function which possibly converts this using DOS-style short mode. 44494 # If so, the updated path is stored in $new_path. 44495 44496 input_path="$new_path" 44497 # Check if we need to convert this using DOS-style short mode. If the path 44498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44499 # take no chances and rewrite it. 44500 # Note: m4 eats our [], so we need to use [ and ] instead. 44501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44502 if test "x$has_forbidden_chars" != x; then 44503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44504 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44505 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44506 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44507 # Going to short mode and back again did indeed matter. Since short mode is 44508 # case insensitive, let's make it lowercase to improve readability. 44509 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44510 # Now convert it back to Unix-style (cygpath) 44511 input_path=`$CYGPATH -u "$shortmode_path"` 44512 new_path="$input_path" 44513 fi 44514 fi 44515 44516 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44517 if test "x$test_cygdrive_prefix" = x; then 44518 # As a simple fix, exclude /usr/bin since it's not a real path. 44519 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44520 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44521 # a path prefixed by /cygdrive for fixpath to work. 44522 new_path="$CYGWIN_ROOT_PATH$input_path" 44523 fi 44524 fi 44525 44526 44527 if test "x$path" != "x$new_path"; then 44528 MSVC_DLL="$new_path" 44529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44530 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44531 fi 44532 44533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44534 44535 path="$MSVC_DLL" 44536 has_colon=`$ECHO $path | $GREP ^.:` 44537 new_path="$path" 44538 if test "x$has_colon" = x; then 44539 # Not in mixed or Windows style, start by that. 44540 new_path=`cmd //c echo $path` 44541 fi 44542 44543 44544 input_path="$new_path" 44545 # Check if we need to convert this using DOS-style short mode. If the path 44546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44547 # take no chances and rewrite it. 44548 # Note: m4 eats our [], so we need to use [ and ] instead. 44549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44550 if test "x$has_forbidden_chars" != x; then 44551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44552 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44553 fi 44554 44555 44556 windows_path="$new_path" 44557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44558 unix_path=`$CYGPATH -u "$windows_path"` 44559 new_path="$unix_path" 44560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44562 new_path="$unix_path" 44563 fi 44564 44565 if test "x$path" != "x$new_path"; then 44566 MSVC_DLL="$new_path" 44567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44568 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44569 fi 44570 44571 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44572 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44573 44574 else 44575 # We're on a unix platform. Hooray! :) 44576 path="$MSVC_DLL" 44577 has_space=`$ECHO "$path" | $GREP " "` 44578 if test "x$has_space" != x; then 44579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44580 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44581 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44582 fi 44583 44584 # Use eval to expand a potential ~ 44585 eval path="$path" 44586 if test ! -f "$path" && test ! -d "$path"; then 44587 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 44588 fi 44589 44590 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 44591 fi 44592 fi 44593 44594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 44595 $as_echo_n "checking for $DLL_NAME... " >&6; } 44596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 44597 $as_echo "$MSVC_DLL" >&6; } 44598 else 44599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 44600 $as_echo "incorrect, ignoring" >&6; } 44601 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 44602 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 44603 fi 44604 fi 44605 44606 fi 44607 fi 44608 44609 if test "x$MSVC_DLL" = x; then 44610 # Probe: Check in the Boot JDK directory. 44611 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 44612 44613 DLL_NAME="$DLL_NAME" 44614 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 44615 METHOD="well-known location in Boot JDK" 44616 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 44617 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 44618 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 44619 44620 # Need to check if the found msvcr is correct architecture 44621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 44622 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 44623 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 44624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44625 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 44626 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 44627 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44628 CORRECT_MSVCR_ARCH="PE32 executable" 44629 else 44630 CORRECT_MSVCR_ARCH="PE32+ executable" 44631 fi 44632 else 44633 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44634 CORRECT_MSVCR_ARCH=386 44635 else 44636 CORRECT_MSVCR_ARCH=x86-64 44637 fi 44638 fi 44639 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 44640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 44641 $as_echo "ok" >&6; } 44642 MSVC_DLL="$POSSIBLE_MSVC_DLL" 44643 44644 # Only process if variable expands to non-empty 44645 44646 if test "x$MSVC_DLL" != x; then 44647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44648 44649 # Input might be given as Windows format, start by converting to 44650 # unix format. 44651 path="$MSVC_DLL" 44652 new_path=`$CYGPATH -u "$path"` 44653 44654 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44655 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44656 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44657 # "foo.exe" is OK but "foo" is an error. 44658 # 44659 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44660 # It is also a way to make sure we got the proper file name for the real test later on. 44661 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44662 if test "x$test_shortpath" = x; then 44663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44664 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44665 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 44666 fi 44667 44668 # Call helper function which possibly converts this using DOS-style short mode. 44669 # If so, the updated path is stored in $new_path. 44670 44671 input_path="$new_path" 44672 # Check if we need to convert this using DOS-style short mode. If the path 44673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44674 # take no chances and rewrite it. 44675 # Note: m4 eats our [], so we need to use [ and ] instead. 44676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44677 if test "x$has_forbidden_chars" != x; then 44678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44679 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44680 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44681 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44682 # Going to short mode and back again did indeed matter. Since short mode is 44683 # case insensitive, let's make it lowercase to improve readability. 44684 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44685 # Now convert it back to Unix-style (cygpath) 44686 input_path=`$CYGPATH -u "$shortmode_path"` 44687 new_path="$input_path" 44688 fi 44689 fi 44690 44691 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44692 if test "x$test_cygdrive_prefix" = x; then 44693 # As a simple fix, exclude /usr/bin since it's not a real path. 44694 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44695 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44696 # a path prefixed by /cygdrive for fixpath to work. 44697 new_path="$CYGWIN_ROOT_PATH$input_path" 44698 fi 44699 fi 44700 44701 44702 if test "x$path" != "x$new_path"; then 44703 MSVC_DLL="$new_path" 44704 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44705 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44706 fi 44707 44708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44709 44710 path="$MSVC_DLL" 44711 has_colon=`$ECHO $path | $GREP ^.:` 44712 new_path="$path" 44713 if test "x$has_colon" = x; then 44714 # Not in mixed or Windows style, start by that. 44715 new_path=`cmd //c echo $path` 44716 fi 44717 44718 44719 input_path="$new_path" 44720 # Check if we need to convert this using DOS-style short mode. If the path 44721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44722 # take no chances and rewrite it. 44723 # Note: m4 eats our [], so we need to use [ and ] instead. 44724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44725 if test "x$has_forbidden_chars" != x; then 44726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44727 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44728 fi 44729 44730 44731 windows_path="$new_path" 44732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44733 unix_path=`$CYGPATH -u "$windows_path"` 44734 new_path="$unix_path" 44735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44737 new_path="$unix_path" 44738 fi 44739 44740 if test "x$path" != "x$new_path"; then 44741 MSVC_DLL="$new_path" 44742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44743 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44744 fi 44745 44746 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44747 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44748 44749 else 44750 # We're on a unix platform. Hooray! :) 44751 path="$MSVC_DLL" 44752 has_space=`$ECHO "$path" | $GREP " "` 44753 if test "x$has_space" != x; then 44754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44755 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44756 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44757 fi 44758 44759 # Use eval to expand a potential ~ 44760 eval path="$path" 44761 if test ! -f "$path" && test ! -d "$path"; then 44762 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 44763 fi 44764 44765 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 44766 fi 44767 fi 44768 44769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 44770 $as_echo_n "checking for $DLL_NAME... " >&6; } 44771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 44772 $as_echo "$MSVC_DLL" >&6; } 44773 else 44774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 44775 $as_echo "incorrect, ignoring" >&6; } 44776 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 44777 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 44778 fi 44779 fi 44780 44781 fi 44782 44783 if test "x$MSVC_DLL" = x; then 44784 # Probe: Look in the Windows system32 directory 44785 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 44786 44787 windows_path="$CYGWIN_SYSTEMROOT" 44788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44789 unix_path=`$CYGPATH -u "$windows_path"` 44790 CYGWIN_SYSTEMROOT="$unix_path" 44791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44793 CYGWIN_SYSTEMROOT="$unix_path" 44794 fi 44795 44796 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 44797 44798 DLL_NAME="$DLL_NAME" 44799 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 44800 METHOD="well-known location in SYSTEMROOT" 44801 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 44802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 44803 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 44804 44805 # Need to check if the found msvcr is correct architecture 44806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 44807 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 44808 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 44809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44810 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 44811 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 44812 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44813 CORRECT_MSVCR_ARCH="PE32 executable" 44814 else 44815 CORRECT_MSVCR_ARCH="PE32+ executable" 44816 fi 44817 else 44818 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 44819 CORRECT_MSVCR_ARCH=386 44820 else 44821 CORRECT_MSVCR_ARCH=x86-64 44822 fi 44823 fi 44824 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 44825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 44826 $as_echo "ok" >&6; } 44827 MSVC_DLL="$POSSIBLE_MSVC_DLL" 44828 44829 # Only process if variable expands to non-empty 44830 44831 if test "x$MSVC_DLL" != x; then 44832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44833 44834 # Input might be given as Windows format, start by converting to 44835 # unix format. 44836 path="$MSVC_DLL" 44837 new_path=`$CYGPATH -u "$path"` 44838 44839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44842 # "foo.exe" is OK but "foo" is an error. 44843 # 44844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44845 # It is also a way to make sure we got the proper file name for the real test later on. 44846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44847 if test "x$test_shortpath" = x; then 44848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44849 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44850 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 44851 fi 44852 44853 # Call helper function which possibly converts this using DOS-style short mode. 44854 # If so, the updated path is stored in $new_path. 44855 44856 input_path="$new_path" 44857 # Check if we need to convert this using DOS-style short mode. If the path 44858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44859 # take no chances and rewrite it. 44860 # Note: m4 eats our [], so we need to use [ and ] instead. 44861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44862 if test "x$has_forbidden_chars" != x; then 44863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44867 # Going to short mode and back again did indeed matter. Since short mode is 44868 # case insensitive, let's make it lowercase to improve readability. 44869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44870 # Now convert it back to Unix-style (cygpath) 44871 input_path=`$CYGPATH -u "$shortmode_path"` 44872 new_path="$input_path" 44873 fi 44874 fi 44875 44876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44877 if test "x$test_cygdrive_prefix" = x; then 44878 # As a simple fix, exclude /usr/bin since it's not a real path. 44879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44881 # a path prefixed by /cygdrive for fixpath to work. 44882 new_path="$CYGWIN_ROOT_PATH$input_path" 44883 fi 44884 fi 44885 44886 44887 if test "x$path" != "x$new_path"; then 44888 MSVC_DLL="$new_path" 44889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44890 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44891 fi 44892 44893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44894 44895 path="$MSVC_DLL" 44896 has_colon=`$ECHO $path | $GREP ^.:` 44897 new_path="$path" 44898 if test "x$has_colon" = x; then 44899 # Not in mixed or Windows style, start by that. 44900 new_path=`cmd //c echo $path` 44901 fi 44902 44903 44904 input_path="$new_path" 44905 # Check if we need to convert this using DOS-style short mode. If the path 44906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44907 # take no chances and rewrite it. 44908 # Note: m4 eats our [], so we need to use [ and ] instead. 44909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44910 if test "x$has_forbidden_chars" != x; then 44911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44913 fi 44914 44915 44916 windows_path="$new_path" 44917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44918 unix_path=`$CYGPATH -u "$windows_path"` 44919 new_path="$unix_path" 44920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44922 new_path="$unix_path" 44923 fi 44924 44925 if test "x$path" != "x$new_path"; then 44926 MSVC_DLL="$new_path" 44927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 44928 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 44929 fi 44930 44931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44933 44934 else 44935 # We're on a unix platform. Hooray! :) 44936 path="$MSVC_DLL" 44937 has_space=`$ECHO "$path" | $GREP " "` 44938 if test "x$has_space" != x; then 44939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 44940 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 44941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44942 fi 44943 44944 # Use eval to expand a potential ~ 44945 eval path="$path" 44946 if test ! -f "$path" && test ! -d "$path"; then 44947 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 44948 fi 44949 44950 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 44951 fi 44952 fi 44953 44954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 44955 $as_echo_n "checking for $DLL_NAME... " >&6; } 44956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 44957 $as_echo "$MSVC_DLL" >&6; } 44958 else 44959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 44960 $as_echo "incorrect, ignoring" >&6; } 44961 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 44962 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 44963 fi 44964 fi 44965 44966 fi 44967 44968 if test "x$MSVC_DLL" = x; then 44969 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 44970 if test "x$VS100COMNTOOLS" != x; then 44971 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 44972 44973 windows_path="$CYGWIN_VS_TOOLS_DIR" 44974 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44975 unix_path=`$CYGPATH -u "$windows_path"` 44976 CYGWIN_VS_TOOLS_DIR="$unix_path" 44977 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44978 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44979 CYGWIN_VS_TOOLS_DIR="$unix_path" 44980 fi 44981 44982 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44983 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 44984 | $GREP -i /x64/ | $HEAD --lines 1` 44985 else 44986 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 44987 | $GREP -i /x86/ | $HEAD --lines 1` 44988 fi 44989 44990 DLL_NAME="$DLL_NAME" 44991 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 44992 METHOD="search of VS100COMNTOOLS" 44993 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 44994 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 44995 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 44996 44997 # Need to check if the found msvcr is correct architecture 44998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 44999 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 45000 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 45001 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45002 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 45003 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 45004 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45005 CORRECT_MSVCR_ARCH="PE32 executable" 45006 else 45007 CORRECT_MSVCR_ARCH="PE32+ executable" 45008 fi 45009 else 45010 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45011 CORRECT_MSVCR_ARCH=386 45012 else 45013 CORRECT_MSVCR_ARCH=x86-64 45014 fi 45015 fi 45016 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 45017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 45018 $as_echo "ok" >&6; } 45019 MSVC_DLL="$POSSIBLE_MSVC_DLL" 45020 45021 # Only process if variable expands to non-empty 45022 45023 if test "x$MSVC_DLL" != x; then 45024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45025 45026 # Input might be given as Windows format, start by converting to 45027 # unix format. 45028 path="$MSVC_DLL" 45029 new_path=`$CYGPATH -u "$path"` 45030 45031 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45032 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45033 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45034 # "foo.exe" is OK but "foo" is an error. 45035 # 45036 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45037 # It is also a way to make sure we got the proper file name for the real test later on. 45038 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45039 if test "x$test_shortpath" = x; then 45040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45041 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45042 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 45043 fi 45044 45045 # Call helper function which possibly converts this using DOS-style short mode. 45046 # If so, the updated path is stored in $new_path. 45047 45048 input_path="$new_path" 45049 # Check if we need to convert this using DOS-style short mode. If the path 45050 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45051 # take no chances and rewrite it. 45052 # Note: m4 eats our [], so we need to use [ and ] instead. 45053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45054 if test "x$has_forbidden_chars" != x; then 45055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45056 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45057 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45058 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45059 # Going to short mode and back again did indeed matter. Since short mode is 45060 # case insensitive, let's make it lowercase to improve readability. 45061 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45062 # Now convert it back to Unix-style (cygpath) 45063 input_path=`$CYGPATH -u "$shortmode_path"` 45064 new_path="$input_path" 45065 fi 45066 fi 45067 45068 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45069 if test "x$test_cygdrive_prefix" = x; then 45070 # As a simple fix, exclude /usr/bin since it's not a real path. 45071 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45072 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45073 # a path prefixed by /cygdrive for fixpath to work. 45074 new_path="$CYGWIN_ROOT_PATH$input_path" 45075 fi 45076 fi 45077 45078 45079 if test "x$path" != "x$new_path"; then 45080 MSVC_DLL="$new_path" 45081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45082 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45083 fi 45084 45085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45086 45087 path="$MSVC_DLL" 45088 has_colon=`$ECHO $path | $GREP ^.:` 45089 new_path="$path" 45090 if test "x$has_colon" = x; then 45091 # Not in mixed or Windows style, start by that. 45092 new_path=`cmd //c echo $path` 45093 fi 45094 45095 45096 input_path="$new_path" 45097 # Check if we need to convert this using DOS-style short mode. If the path 45098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45099 # take no chances and rewrite it. 45100 # Note: m4 eats our [], so we need to use [ and ] instead. 45101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45102 if test "x$has_forbidden_chars" != x; then 45103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45104 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45105 fi 45106 45107 45108 windows_path="$new_path" 45109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45110 unix_path=`$CYGPATH -u "$windows_path"` 45111 new_path="$unix_path" 45112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45114 new_path="$unix_path" 45115 fi 45116 45117 if test "x$path" != "x$new_path"; then 45118 MSVC_DLL="$new_path" 45119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45120 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45121 fi 45122 45123 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45124 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45125 45126 else 45127 # We're on a unix platform. Hooray! :) 45128 path="$MSVC_DLL" 45129 has_space=`$ECHO "$path" | $GREP " "` 45130 if test "x$has_space" != x; then 45131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45132 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45133 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45134 fi 45135 45136 # Use eval to expand a potential ~ 45137 eval path="$path" 45138 if test ! -f "$path" && test ! -d "$path"; then 45139 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 45140 fi 45141 45142 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 45143 fi 45144 fi 45145 45146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 45147 $as_echo_n "checking for $DLL_NAME... " >&6; } 45148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 45149 $as_echo "$MSVC_DLL" >&6; } 45150 else 45151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 45152 $as_echo "incorrect, ignoring" >&6; } 45153 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 45154 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 45155 fi 45156 fi 45157 45158 fi 45159 fi 45160 45161 if test "x$MSVC_DLL" = x; then 45162 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 45163 # (This was the original behaviour; kept since it might turn something up) 45164 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 45165 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 45166 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 45167 | $GREP x64 | $HEAD --lines 1` 45168 else 45169 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 45170 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 45171 if test "x$POSSIBLE_MSVC_DLL" = x; then 45172 # We're grasping at straws now... 45173 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 45174 | $HEAD --lines 1` 45175 fi 45176 fi 45177 45178 45179 DLL_NAME="$DLL_NAME" 45180 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 45181 METHOD="search of VCINSTALLDIR" 45182 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 45183 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 45184 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 45185 45186 # Need to check if the found msvcr is correct architecture 45187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 45188 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 45189 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 45190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45191 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 45192 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 45193 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45194 CORRECT_MSVCR_ARCH="PE32 executable" 45195 else 45196 CORRECT_MSVCR_ARCH="PE32+ executable" 45197 fi 45198 else 45199 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45200 CORRECT_MSVCR_ARCH=386 45201 else 45202 CORRECT_MSVCR_ARCH=x86-64 45203 fi 45204 fi 45205 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 45207 $as_echo "ok" >&6; } 45208 MSVC_DLL="$POSSIBLE_MSVC_DLL" 45209 45210 # Only process if variable expands to non-empty 45211 45212 if test "x$MSVC_DLL" != x; then 45213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45214 45215 # Input might be given as Windows format, start by converting to 45216 # unix format. 45217 path="$MSVC_DLL" 45218 new_path=`$CYGPATH -u "$path"` 45219 45220 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45221 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45222 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45223 # "foo.exe" is OK but "foo" is an error. 45224 # 45225 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45226 # It is also a way to make sure we got the proper file name for the real test later on. 45227 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45228 if test "x$test_shortpath" = x; then 45229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45230 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45231 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 45232 fi 45233 45234 # Call helper function which possibly converts this using DOS-style short mode. 45235 # If so, the updated path is stored in $new_path. 45236 45237 input_path="$new_path" 45238 # Check if we need to convert this using DOS-style short mode. If the path 45239 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45240 # take no chances and rewrite it. 45241 # Note: m4 eats our [], so we need to use [ and ] instead. 45242 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45243 if test "x$has_forbidden_chars" != x; then 45244 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45245 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45246 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45247 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45248 # Going to short mode and back again did indeed matter. Since short mode is 45249 # case insensitive, let's make it lowercase to improve readability. 45250 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45251 # Now convert it back to Unix-style (cygpath) 45252 input_path=`$CYGPATH -u "$shortmode_path"` 45253 new_path="$input_path" 45254 fi 45255 fi 45256 45257 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45258 if test "x$test_cygdrive_prefix" = x; then 45259 # As a simple fix, exclude /usr/bin since it's not a real path. 45260 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45261 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45262 # a path prefixed by /cygdrive for fixpath to work. 45263 new_path="$CYGWIN_ROOT_PATH$input_path" 45264 fi 45265 fi 45266 45267 45268 if test "x$path" != "x$new_path"; then 45269 MSVC_DLL="$new_path" 45270 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45271 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45272 fi 45273 45274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45275 45276 path="$MSVC_DLL" 45277 has_colon=`$ECHO $path | $GREP ^.:` 45278 new_path="$path" 45279 if test "x$has_colon" = x; then 45280 # Not in mixed or Windows style, start by that. 45281 new_path=`cmd //c echo $path` 45282 fi 45283 45284 45285 input_path="$new_path" 45286 # Check if we need to convert this using DOS-style short mode. If the path 45287 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45288 # take no chances and rewrite it. 45289 # Note: m4 eats our [], so we need to use [ and ] instead. 45290 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45291 if test "x$has_forbidden_chars" != x; then 45292 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45293 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45294 fi 45295 45296 45297 windows_path="$new_path" 45298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45299 unix_path=`$CYGPATH -u "$windows_path"` 45300 new_path="$unix_path" 45301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45303 new_path="$unix_path" 45304 fi 45305 45306 if test "x$path" != "x$new_path"; then 45307 MSVC_DLL="$new_path" 45308 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45309 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45310 fi 45311 45312 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45313 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45314 45315 else 45316 # We're on a unix platform. Hooray! :) 45317 path="$MSVC_DLL" 45318 has_space=`$ECHO "$path" | $GREP " "` 45319 if test "x$has_space" != x; then 45320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45321 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45322 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45323 fi 45324 45325 # Use eval to expand a potential ~ 45326 eval path="$path" 45327 if test ! -f "$path" && test ! -d "$path"; then 45328 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 45329 fi 45330 45331 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 45332 fi 45333 fi 45334 45335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 45336 $as_echo_n "checking for $DLL_NAME... " >&6; } 45337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 45338 $as_echo "$MSVC_DLL" >&6; } 45339 else 45340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 45341 $as_echo "incorrect, ignoring" >&6; } 45342 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 45343 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 45344 fi 45345 fi 45346 45347 fi 45348 fi 45349 45350 if test "x$MSVC_DLL" = x; then 45351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 45352 $as_echo_n "checking for $DLL_NAME... " >&6; } 45353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45354 $as_echo "no" >&6; } 45355 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 45356 fi 45357 45358 MSVCR_DLL="$MSVC_DLL" 45359 fi 45360 45361 45362 45363 # Check whether --with-msvcp-dll was given. 45364 if test "${with_msvcp_dll+set}" = set; then : 45365 withval=$with_msvcp_dll; 45366 fi 45367 45368 45369 if test "x$MSVCP_NAME" != "x"; then 45370 if test "x$with_msvcp_dll" != x; then 45371 # If given explicitely by user, do not probe. If not present, fail directly. 45372 45373 DLL_NAME="$MSVCP_NAME" 45374 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 45375 METHOD="--with-msvcp-dll" 45376 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 45377 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 45378 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 45379 45380 # Need to check if the found msvcr is correct architecture 45381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 45382 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 45383 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 45384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45385 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 45386 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 45387 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45388 CORRECT_MSVCR_ARCH="PE32 executable" 45389 else 45390 CORRECT_MSVCR_ARCH="PE32+ executable" 45391 fi 45392 else 45393 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45394 CORRECT_MSVCR_ARCH=386 45395 else 45396 CORRECT_MSVCR_ARCH=x86-64 45397 fi 45398 fi 45399 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 45400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 45401 $as_echo "ok" >&6; } 45402 MSVC_DLL="$POSSIBLE_MSVC_DLL" 45403 45404 # Only process if variable expands to non-empty 45405 45406 if test "x$MSVC_DLL" != x; then 45407 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45408 45409 # Input might be given as Windows format, start by converting to 45410 # unix format. 45411 path="$MSVC_DLL" 45412 new_path=`$CYGPATH -u "$path"` 45413 45414 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45415 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45416 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45417 # "foo.exe" is OK but "foo" is an error. 45418 # 45419 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45420 # It is also a way to make sure we got the proper file name for the real test later on. 45421 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45422 if test "x$test_shortpath" = x; then 45423 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45424 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45425 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 45426 fi 45427 45428 # Call helper function which possibly converts this using DOS-style short mode. 45429 # If so, the updated path is stored in $new_path. 45430 45431 input_path="$new_path" 45432 # Check if we need to convert this using DOS-style short mode. If the path 45433 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45434 # take no chances and rewrite it. 45435 # Note: m4 eats our [], so we need to use [ and ] instead. 45436 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45437 if test "x$has_forbidden_chars" != x; then 45438 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45439 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45440 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45441 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45442 # Going to short mode and back again did indeed matter. Since short mode is 45443 # case insensitive, let's make it lowercase to improve readability. 45444 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45445 # Now convert it back to Unix-style (cygpath) 45446 input_path=`$CYGPATH -u "$shortmode_path"` 45447 new_path="$input_path" 45448 fi 45449 fi 45450 45451 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45452 if test "x$test_cygdrive_prefix" = x; then 45453 # As a simple fix, exclude /usr/bin since it's not a real path. 45454 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45455 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45456 # a path prefixed by /cygdrive for fixpath to work. 45457 new_path="$CYGWIN_ROOT_PATH$input_path" 45458 fi 45459 fi 45460 45461 45462 if test "x$path" != "x$new_path"; then 45463 MSVC_DLL="$new_path" 45464 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45465 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45466 fi 45467 45468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45469 45470 path="$MSVC_DLL" 45471 has_colon=`$ECHO $path | $GREP ^.:` 45472 new_path="$path" 45473 if test "x$has_colon" = x; then 45474 # Not in mixed or Windows style, start by that. 45475 new_path=`cmd //c echo $path` 45476 fi 45477 45478 45479 input_path="$new_path" 45480 # Check if we need to convert this using DOS-style short mode. If the path 45481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45482 # take no chances and rewrite it. 45483 # Note: m4 eats our [], so we need to use [ and ] instead. 45484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45485 if test "x$has_forbidden_chars" != x; then 45486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45487 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45488 fi 45489 45490 45491 windows_path="$new_path" 45492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45493 unix_path=`$CYGPATH -u "$windows_path"` 45494 new_path="$unix_path" 45495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45497 new_path="$unix_path" 45498 fi 45499 45500 if test "x$path" != "x$new_path"; then 45501 MSVC_DLL="$new_path" 45502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45503 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45504 fi 45505 45506 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45507 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45508 45509 else 45510 # We're on a unix platform. Hooray! :) 45511 path="$MSVC_DLL" 45512 has_space=`$ECHO "$path" | $GREP " "` 45513 if test "x$has_space" != x; then 45514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45515 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45516 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45517 fi 45518 45519 # Use eval to expand a potential ~ 45520 eval path="$path" 45521 if test ! -f "$path" && test ! -d "$path"; then 45522 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 45523 fi 45524 45525 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 45526 fi 45527 fi 45528 45529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 45530 $as_echo_n "checking for $DLL_NAME... " >&6; } 45531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 45532 $as_echo "$MSVC_DLL" >&6; } 45533 else 45534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 45535 $as_echo "incorrect, ignoring" >&6; } 45536 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 45537 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 45538 fi 45539 fi 45540 45541 if test "x$MSVC_DLL" = x; then 45542 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 45543 fi 45544 MSVCP_DLL="$MSVC_DLL" 45545 elif test "x$DEVKIT_MSVCP_DLL" != x; then 45546 45547 DLL_NAME="$MSVCP_NAME" 45548 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 45549 METHOD="devkit" 45550 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 45551 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 45552 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 45553 45554 # Need to check if the found msvcr is correct architecture 45555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 45556 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 45557 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 45558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45559 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 45560 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 45561 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45562 CORRECT_MSVCR_ARCH="PE32 executable" 45563 else 45564 CORRECT_MSVCR_ARCH="PE32+ executable" 45565 fi 45566 else 45567 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45568 CORRECT_MSVCR_ARCH=386 45569 else 45570 CORRECT_MSVCR_ARCH=x86-64 45571 fi 45572 fi 45573 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 45574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 45575 $as_echo "ok" >&6; } 45576 MSVC_DLL="$POSSIBLE_MSVC_DLL" 45577 45578 # Only process if variable expands to non-empty 45579 45580 if test "x$MSVC_DLL" != x; then 45581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45582 45583 # Input might be given as Windows format, start by converting to 45584 # unix format. 45585 path="$MSVC_DLL" 45586 new_path=`$CYGPATH -u "$path"` 45587 45588 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45589 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45590 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45591 # "foo.exe" is OK but "foo" is an error. 45592 # 45593 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45594 # It is also a way to make sure we got the proper file name for the real test later on. 45595 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45596 if test "x$test_shortpath" = x; then 45597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45598 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45599 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 45600 fi 45601 45602 # Call helper function which possibly converts this using DOS-style short mode. 45603 # If so, the updated path is stored in $new_path. 45604 45605 input_path="$new_path" 45606 # Check if we need to convert this using DOS-style short mode. If the path 45607 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45608 # take no chances and rewrite it. 45609 # Note: m4 eats our [], so we need to use [ and ] instead. 45610 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45611 if test "x$has_forbidden_chars" != x; then 45612 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45613 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45614 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45615 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45616 # Going to short mode and back again did indeed matter. Since short mode is 45617 # case insensitive, let's make it lowercase to improve readability. 45618 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45619 # Now convert it back to Unix-style (cygpath) 45620 input_path=`$CYGPATH -u "$shortmode_path"` 45621 new_path="$input_path" 45622 fi 45623 fi 45624 45625 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45626 if test "x$test_cygdrive_prefix" = x; then 45627 # As a simple fix, exclude /usr/bin since it's not a real path. 45628 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45629 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45630 # a path prefixed by /cygdrive for fixpath to work. 45631 new_path="$CYGWIN_ROOT_PATH$input_path" 45632 fi 45633 fi 45634 45635 45636 if test "x$path" != "x$new_path"; then 45637 MSVC_DLL="$new_path" 45638 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45639 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45640 fi 45641 45642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45643 45644 path="$MSVC_DLL" 45645 has_colon=`$ECHO $path | $GREP ^.:` 45646 new_path="$path" 45647 if test "x$has_colon" = x; then 45648 # Not in mixed or Windows style, start by that. 45649 new_path=`cmd //c echo $path` 45650 fi 45651 45652 45653 input_path="$new_path" 45654 # Check if we need to convert this using DOS-style short mode. If the path 45655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45656 # take no chances and rewrite it. 45657 # Note: m4 eats our [], so we need to use [ and ] instead. 45658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45659 if test "x$has_forbidden_chars" != x; then 45660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45661 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45662 fi 45663 45664 45665 windows_path="$new_path" 45666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45667 unix_path=`$CYGPATH -u "$windows_path"` 45668 new_path="$unix_path" 45669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45671 new_path="$unix_path" 45672 fi 45673 45674 if test "x$path" != "x$new_path"; then 45675 MSVC_DLL="$new_path" 45676 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45677 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45678 fi 45679 45680 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45681 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45682 45683 else 45684 # We're on a unix platform. Hooray! :) 45685 path="$MSVC_DLL" 45686 has_space=`$ECHO "$path" | $GREP " "` 45687 if test "x$has_space" != x; then 45688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45689 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45690 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45691 fi 45692 45693 # Use eval to expand a potential ~ 45694 eval path="$path" 45695 if test ! -f "$path" && test ! -d "$path"; then 45696 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 45697 fi 45698 45699 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 45700 fi 45701 fi 45702 45703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 45704 $as_echo_n "checking for $DLL_NAME... " >&6; } 45705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 45706 $as_echo "$MSVC_DLL" >&6; } 45707 else 45708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 45709 $as_echo "incorrect, ignoring" >&6; } 45710 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 45711 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 45712 fi 45713 fi 45714 45715 if test "x$MSVC_DLL" = x; then 45716 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 45717 fi 45718 MSVCP_DLL="$MSVC_DLL" 45719 else 45720 45721 DLL_NAME="${MSVCP_NAME}" 45722 MSVC_DLL= 45723 45724 if test "x$MSVC_DLL" = x; then 45725 # Probe: Using well-known location from Visual Studio 10.0 45726 if test "x$VCINSTALLDIR" != x; then 45727 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 45728 45729 windows_path="$CYGWIN_VC_INSTALL_DIR" 45730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45731 unix_path=`$CYGPATH -u "$windows_path"` 45732 CYGWIN_VC_INSTALL_DIR="$unix_path" 45733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45735 CYGWIN_VC_INSTALL_DIR="$unix_path" 45736 fi 45737 45738 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 45739 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 45740 else 45741 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 45742 fi 45743 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 45744 45745 DLL_NAME="$DLL_NAME" 45746 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 45747 METHOD="well-known location in VCINSTALLDIR" 45748 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 45749 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 45750 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 45751 45752 # Need to check if the found msvcr is correct architecture 45753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 45754 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 45755 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 45756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45757 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 45758 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 45759 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45760 CORRECT_MSVCR_ARCH="PE32 executable" 45761 else 45762 CORRECT_MSVCR_ARCH="PE32+ executable" 45763 fi 45764 else 45765 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45766 CORRECT_MSVCR_ARCH=386 45767 else 45768 CORRECT_MSVCR_ARCH=x86-64 45769 fi 45770 fi 45771 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 45772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 45773 $as_echo "ok" >&6; } 45774 MSVC_DLL="$POSSIBLE_MSVC_DLL" 45775 45776 # Only process if variable expands to non-empty 45777 45778 if test "x$MSVC_DLL" != x; then 45779 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45780 45781 # Input might be given as Windows format, start by converting to 45782 # unix format. 45783 path="$MSVC_DLL" 45784 new_path=`$CYGPATH -u "$path"` 45785 45786 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45787 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45788 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45789 # "foo.exe" is OK but "foo" is an error. 45790 # 45791 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45792 # It is also a way to make sure we got the proper file name for the real test later on. 45793 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45794 if test "x$test_shortpath" = x; then 45795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45796 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45797 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 45798 fi 45799 45800 # Call helper function which possibly converts this using DOS-style short mode. 45801 # If so, the updated path is stored in $new_path. 45802 45803 input_path="$new_path" 45804 # Check if we need to convert this using DOS-style short mode. If the path 45805 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45806 # take no chances and rewrite it. 45807 # Note: m4 eats our [], so we need to use [ and ] instead. 45808 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45809 if test "x$has_forbidden_chars" != x; then 45810 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45811 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45812 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45813 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45814 # Going to short mode and back again did indeed matter. Since short mode is 45815 # case insensitive, let's make it lowercase to improve readability. 45816 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45817 # Now convert it back to Unix-style (cygpath) 45818 input_path=`$CYGPATH -u "$shortmode_path"` 45819 new_path="$input_path" 45820 fi 45821 fi 45822 45823 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45824 if test "x$test_cygdrive_prefix" = x; then 45825 # As a simple fix, exclude /usr/bin since it's not a real path. 45826 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45827 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45828 # a path prefixed by /cygdrive for fixpath to work. 45829 new_path="$CYGWIN_ROOT_PATH$input_path" 45830 fi 45831 fi 45832 45833 45834 if test "x$path" != "x$new_path"; then 45835 MSVC_DLL="$new_path" 45836 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45837 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45838 fi 45839 45840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45841 45842 path="$MSVC_DLL" 45843 has_colon=`$ECHO $path | $GREP ^.:` 45844 new_path="$path" 45845 if test "x$has_colon" = x; then 45846 # Not in mixed or Windows style, start by that. 45847 new_path=`cmd //c echo $path` 45848 fi 45849 45850 45851 input_path="$new_path" 45852 # Check if we need to convert this using DOS-style short mode. If the path 45853 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45854 # take no chances and rewrite it. 45855 # Note: m4 eats our [], so we need to use [ and ] instead. 45856 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45857 if test "x$has_forbidden_chars" != x; then 45858 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45859 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45860 fi 45861 45862 45863 windows_path="$new_path" 45864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45865 unix_path=`$CYGPATH -u "$windows_path"` 45866 new_path="$unix_path" 45867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45869 new_path="$unix_path" 45870 fi 45871 45872 if test "x$path" != "x$new_path"; then 45873 MSVC_DLL="$new_path" 45874 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 45875 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 45876 fi 45877 45878 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45879 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45880 45881 else 45882 # We're on a unix platform. Hooray! :) 45883 path="$MSVC_DLL" 45884 has_space=`$ECHO "$path" | $GREP " "` 45885 if test "x$has_space" != x; then 45886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45887 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45888 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45889 fi 45890 45891 # Use eval to expand a potential ~ 45892 eval path="$path" 45893 if test ! -f "$path" && test ! -d "$path"; then 45894 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 45895 fi 45896 45897 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 45898 fi 45899 fi 45900 45901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 45902 $as_echo_n "checking for $DLL_NAME... " >&6; } 45903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 45904 $as_echo "$MSVC_DLL" >&6; } 45905 else 45906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 45907 $as_echo "incorrect, ignoring" >&6; } 45908 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 45909 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 45910 fi 45911 fi 45912 45913 fi 45914 fi 45915 45916 if test "x$MSVC_DLL" = x; then 45917 # Probe: Check in the Boot JDK directory. 45918 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 45919 45920 DLL_NAME="$DLL_NAME" 45921 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 45922 METHOD="well-known location in Boot JDK" 45923 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 45924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 45925 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 45926 45927 # Need to check if the found msvcr is correct architecture 45928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 45929 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 45930 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 45931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45932 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 45933 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 45934 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45935 CORRECT_MSVCR_ARCH="PE32 executable" 45936 else 45937 CORRECT_MSVCR_ARCH="PE32+ executable" 45938 fi 45939 else 45940 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 45941 CORRECT_MSVCR_ARCH=386 45942 else 45943 CORRECT_MSVCR_ARCH=x86-64 45944 fi 45945 fi 45946 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 45947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 45948 $as_echo "ok" >&6; } 45949 MSVC_DLL="$POSSIBLE_MSVC_DLL" 45950 45951 # Only process if variable expands to non-empty 45952 45953 if test "x$MSVC_DLL" != x; then 45954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45955 45956 # Input might be given as Windows format, start by converting to 45957 # unix format. 45958 path="$MSVC_DLL" 45959 new_path=`$CYGPATH -u "$path"` 45960 45961 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45962 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45963 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45964 # "foo.exe" is OK but "foo" is an error. 45965 # 45966 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45967 # It is also a way to make sure we got the proper file name for the real test later on. 45968 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45969 if test "x$test_shortpath" = x; then 45970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 45971 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 45972 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 45973 fi 45974 45975 # Call helper function which possibly converts this using DOS-style short mode. 45976 # If so, the updated path is stored in $new_path. 45977 45978 input_path="$new_path" 45979 # Check if we need to convert this using DOS-style short mode. If the path 45980 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45981 # take no chances and rewrite it. 45982 # Note: m4 eats our [], so we need to use [ and ] instead. 45983 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45984 if test "x$has_forbidden_chars" != x; then 45985 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45986 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45987 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45988 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45989 # Going to short mode and back again did indeed matter. Since short mode is 45990 # case insensitive, let's make it lowercase to improve readability. 45991 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45992 # Now convert it back to Unix-style (cygpath) 45993 input_path=`$CYGPATH -u "$shortmode_path"` 45994 new_path="$input_path" 45995 fi 45996 fi 45997 45998 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45999 if test "x$test_cygdrive_prefix" = x; then 46000 # As a simple fix, exclude /usr/bin since it's not a real path. 46001 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46002 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46003 # a path prefixed by /cygdrive for fixpath to work. 46004 new_path="$CYGWIN_ROOT_PATH$input_path" 46005 fi 46006 fi 46007 46008 46009 if test "x$path" != "x$new_path"; then 46010 MSVC_DLL="$new_path" 46011 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46012 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46013 fi 46014 46015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46016 46017 path="$MSVC_DLL" 46018 has_colon=`$ECHO $path | $GREP ^.:` 46019 new_path="$path" 46020 if test "x$has_colon" = x; then 46021 # Not in mixed or Windows style, start by that. 46022 new_path=`cmd //c echo $path` 46023 fi 46024 46025 46026 input_path="$new_path" 46027 # Check if we need to convert this using DOS-style short mode. If the path 46028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46029 # take no chances and rewrite it. 46030 # Note: m4 eats our [], so we need to use [ and ] instead. 46031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46032 if test "x$has_forbidden_chars" != x; then 46033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46034 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46035 fi 46036 46037 46038 windows_path="$new_path" 46039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46040 unix_path=`$CYGPATH -u "$windows_path"` 46041 new_path="$unix_path" 46042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46044 new_path="$unix_path" 46045 fi 46046 46047 if test "x$path" != "x$new_path"; then 46048 MSVC_DLL="$new_path" 46049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46050 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46051 fi 46052 46053 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46054 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46055 46056 else 46057 # We're on a unix platform. Hooray! :) 46058 path="$MSVC_DLL" 46059 has_space=`$ECHO "$path" | $GREP " "` 46060 if test "x$has_space" != x; then 46061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46062 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46063 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46064 fi 46065 46066 # Use eval to expand a potential ~ 46067 eval path="$path" 46068 if test ! -f "$path" && test ! -d "$path"; then 46069 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 46070 fi 46071 46072 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 46073 fi 46074 fi 46075 46076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 46077 $as_echo_n "checking for $DLL_NAME... " >&6; } 46078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 46079 $as_echo "$MSVC_DLL" >&6; } 46080 else 46081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46082 $as_echo "incorrect, ignoring" >&6; } 46083 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 46084 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 46085 fi 46086 fi 46087 46088 fi 46089 46090 if test "x$MSVC_DLL" = x; then 46091 # Probe: Look in the Windows system32 directory 46092 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 46093 46094 windows_path="$CYGWIN_SYSTEMROOT" 46095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46096 unix_path=`$CYGPATH -u "$windows_path"` 46097 CYGWIN_SYSTEMROOT="$unix_path" 46098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46100 CYGWIN_SYSTEMROOT="$unix_path" 46101 fi 46102 46103 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 46104 46105 DLL_NAME="$DLL_NAME" 46106 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 46107 METHOD="well-known location in SYSTEMROOT" 46108 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 46109 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 46110 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 46111 46112 # Need to check if the found msvcr is correct architecture 46113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 46114 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 46115 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 46116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46117 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 46118 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 46119 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46120 CORRECT_MSVCR_ARCH="PE32 executable" 46121 else 46122 CORRECT_MSVCR_ARCH="PE32+ executable" 46123 fi 46124 else 46125 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46126 CORRECT_MSVCR_ARCH=386 46127 else 46128 CORRECT_MSVCR_ARCH=x86-64 46129 fi 46130 fi 46131 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 46132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46133 $as_echo "ok" >&6; } 46134 MSVC_DLL="$POSSIBLE_MSVC_DLL" 46135 46136 # Only process if variable expands to non-empty 46137 46138 if test "x$MSVC_DLL" != x; then 46139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46140 46141 # Input might be given as Windows format, start by converting to 46142 # unix format. 46143 path="$MSVC_DLL" 46144 new_path=`$CYGPATH -u "$path"` 46145 46146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46149 # "foo.exe" is OK but "foo" is an error. 46150 # 46151 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46152 # It is also a way to make sure we got the proper file name for the real test later on. 46153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46154 if test "x$test_shortpath" = x; then 46155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46156 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46157 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 46158 fi 46159 46160 # Call helper function which possibly converts this using DOS-style short mode. 46161 # If so, the updated path is stored in $new_path. 46162 46163 input_path="$new_path" 46164 # Check if we need to convert this using DOS-style short mode. If the path 46165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46166 # take no chances and rewrite it. 46167 # Note: m4 eats our [], so we need to use [ and ] instead. 46168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46169 if test "x$has_forbidden_chars" != x; then 46170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46174 # Going to short mode and back again did indeed matter. Since short mode is 46175 # case insensitive, let's make it lowercase to improve readability. 46176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46177 # Now convert it back to Unix-style (cygpath) 46178 input_path=`$CYGPATH -u "$shortmode_path"` 46179 new_path="$input_path" 46180 fi 46181 fi 46182 46183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46184 if test "x$test_cygdrive_prefix" = x; then 46185 # As a simple fix, exclude /usr/bin since it's not a real path. 46186 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46188 # a path prefixed by /cygdrive for fixpath to work. 46189 new_path="$CYGWIN_ROOT_PATH$input_path" 46190 fi 46191 fi 46192 46193 46194 if test "x$path" != "x$new_path"; then 46195 MSVC_DLL="$new_path" 46196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46197 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46198 fi 46199 46200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46201 46202 path="$MSVC_DLL" 46203 has_colon=`$ECHO $path | $GREP ^.:` 46204 new_path="$path" 46205 if test "x$has_colon" = x; then 46206 # Not in mixed or Windows style, start by that. 46207 new_path=`cmd //c echo $path` 46208 fi 46209 46210 46211 input_path="$new_path" 46212 # Check if we need to convert this using DOS-style short mode. If the path 46213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46214 # take no chances and rewrite it. 46215 # Note: m4 eats our [], so we need to use [ and ] instead. 46216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46217 if test "x$has_forbidden_chars" != x; then 46218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46220 fi 46221 46222 46223 windows_path="$new_path" 46224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46225 unix_path=`$CYGPATH -u "$windows_path"` 46226 new_path="$unix_path" 46227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46229 new_path="$unix_path" 46230 fi 46231 46232 if test "x$path" != "x$new_path"; then 46233 MSVC_DLL="$new_path" 46234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46235 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46236 fi 46237 46238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46240 46241 else 46242 # We're on a unix platform. Hooray! :) 46243 path="$MSVC_DLL" 46244 has_space=`$ECHO "$path" | $GREP " "` 46245 if test "x$has_space" != x; then 46246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46247 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46248 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46249 fi 46250 46251 # Use eval to expand a potential ~ 46252 eval path="$path" 46253 if test ! -f "$path" && test ! -d "$path"; then 46254 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 46255 fi 46256 46257 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 46258 fi 46259 fi 46260 46261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 46262 $as_echo_n "checking for $DLL_NAME... " >&6; } 46263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 46264 $as_echo "$MSVC_DLL" >&6; } 46265 else 46266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46267 $as_echo "incorrect, ignoring" >&6; } 46268 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 46269 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 46270 fi 46271 fi 46272 46273 fi 46274 46275 if test "x$MSVC_DLL" = x; then 46276 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 46277 if test "x$VS100COMNTOOLS" != x; then 46278 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 46279 46280 windows_path="$CYGWIN_VS_TOOLS_DIR" 46281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46282 unix_path=`$CYGPATH -u "$windows_path"` 46283 CYGWIN_VS_TOOLS_DIR="$unix_path" 46284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46286 CYGWIN_VS_TOOLS_DIR="$unix_path" 46287 fi 46288 46289 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46290 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 46291 | $GREP -i /x64/ | $HEAD --lines 1` 46292 else 46293 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 46294 | $GREP -i /x86/ | $HEAD --lines 1` 46295 fi 46296 46297 DLL_NAME="$DLL_NAME" 46298 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 46299 METHOD="search of VS100COMNTOOLS" 46300 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 46301 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 46302 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 46303 46304 # Need to check if the found msvcr is correct architecture 46305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 46306 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 46307 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 46308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46309 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 46310 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 46311 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46312 CORRECT_MSVCR_ARCH="PE32 executable" 46313 else 46314 CORRECT_MSVCR_ARCH="PE32+ executable" 46315 fi 46316 else 46317 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46318 CORRECT_MSVCR_ARCH=386 46319 else 46320 CORRECT_MSVCR_ARCH=x86-64 46321 fi 46322 fi 46323 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 46324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46325 $as_echo "ok" >&6; } 46326 MSVC_DLL="$POSSIBLE_MSVC_DLL" 46327 46328 # Only process if variable expands to non-empty 46329 46330 if test "x$MSVC_DLL" != x; then 46331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46332 46333 # Input might be given as Windows format, start by converting to 46334 # unix format. 46335 path="$MSVC_DLL" 46336 new_path=`$CYGPATH -u "$path"` 46337 46338 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46339 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46340 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46341 # "foo.exe" is OK but "foo" is an error. 46342 # 46343 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46344 # It is also a way to make sure we got the proper file name for the real test later on. 46345 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46346 if test "x$test_shortpath" = x; then 46347 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46348 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46349 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 46350 fi 46351 46352 # Call helper function which possibly converts this using DOS-style short mode. 46353 # If so, the updated path is stored in $new_path. 46354 46355 input_path="$new_path" 46356 # Check if we need to convert this using DOS-style short mode. If the path 46357 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46358 # take no chances and rewrite it. 46359 # Note: m4 eats our [], so we need to use [ and ] instead. 46360 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46361 if test "x$has_forbidden_chars" != x; then 46362 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46363 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46364 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46365 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46366 # Going to short mode and back again did indeed matter. Since short mode is 46367 # case insensitive, let's make it lowercase to improve readability. 46368 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46369 # Now convert it back to Unix-style (cygpath) 46370 input_path=`$CYGPATH -u "$shortmode_path"` 46371 new_path="$input_path" 46372 fi 46373 fi 46374 46375 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46376 if test "x$test_cygdrive_prefix" = x; then 46377 # As a simple fix, exclude /usr/bin since it's not a real path. 46378 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46379 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46380 # a path prefixed by /cygdrive for fixpath to work. 46381 new_path="$CYGWIN_ROOT_PATH$input_path" 46382 fi 46383 fi 46384 46385 46386 if test "x$path" != "x$new_path"; then 46387 MSVC_DLL="$new_path" 46388 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46389 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46390 fi 46391 46392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46393 46394 path="$MSVC_DLL" 46395 has_colon=`$ECHO $path | $GREP ^.:` 46396 new_path="$path" 46397 if test "x$has_colon" = x; then 46398 # Not in mixed or Windows style, start by that. 46399 new_path=`cmd //c echo $path` 46400 fi 46401 46402 46403 input_path="$new_path" 46404 # Check if we need to convert this using DOS-style short mode. If the path 46405 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46406 # take no chances and rewrite it. 46407 # Note: m4 eats our [], so we need to use [ and ] instead. 46408 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46409 if test "x$has_forbidden_chars" != x; then 46410 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46411 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46412 fi 46413 46414 46415 windows_path="$new_path" 46416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46417 unix_path=`$CYGPATH -u "$windows_path"` 46418 new_path="$unix_path" 46419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46421 new_path="$unix_path" 46422 fi 46423 46424 if test "x$path" != "x$new_path"; then 46425 MSVC_DLL="$new_path" 46426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46427 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46428 fi 46429 46430 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46431 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46432 46433 else 46434 # We're on a unix platform. Hooray! :) 46435 path="$MSVC_DLL" 46436 has_space=`$ECHO "$path" | $GREP " "` 46437 if test "x$has_space" != x; then 46438 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46439 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46440 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46441 fi 46442 46443 # Use eval to expand a potential ~ 46444 eval path="$path" 46445 if test ! -f "$path" && test ! -d "$path"; then 46446 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 46447 fi 46448 46449 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 46450 fi 46451 fi 46452 46453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 46454 $as_echo_n "checking for $DLL_NAME... " >&6; } 46455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 46456 $as_echo "$MSVC_DLL" >&6; } 46457 else 46458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46459 $as_echo "incorrect, ignoring" >&6; } 46460 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 46461 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 46462 fi 46463 fi 46464 46465 fi 46466 fi 46467 46468 if test "x$MSVC_DLL" = x; then 46469 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 46470 # (This was the original behaviour; kept since it might turn something up) 46471 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 46472 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46473 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 46474 | $GREP x64 | $HEAD --lines 1` 46475 else 46476 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 46477 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 46478 if test "x$POSSIBLE_MSVC_DLL" = x; then 46479 # We're grasping at straws now... 46480 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 46481 | $HEAD --lines 1` 46482 fi 46483 fi 46484 46485 46486 DLL_NAME="$DLL_NAME" 46487 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 46488 METHOD="search of VCINSTALLDIR" 46489 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 46490 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 46491 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 46492 46493 # Need to check if the found msvcr is correct architecture 46494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 46495 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 46496 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 46497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46498 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 46499 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 46500 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46501 CORRECT_MSVCR_ARCH="PE32 executable" 46502 else 46503 CORRECT_MSVCR_ARCH="PE32+ executable" 46504 fi 46505 else 46506 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46507 CORRECT_MSVCR_ARCH=386 46508 else 46509 CORRECT_MSVCR_ARCH=x86-64 46510 fi 46511 fi 46512 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 46513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46514 $as_echo "ok" >&6; } 46515 MSVC_DLL="$POSSIBLE_MSVC_DLL" 46516 46517 # Only process if variable expands to non-empty 46518 46519 if test "x$MSVC_DLL" != x; then 46520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46521 46522 # Input might be given as Windows format, start by converting to 46523 # unix format. 46524 path="$MSVC_DLL" 46525 new_path=`$CYGPATH -u "$path"` 46526 46527 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46528 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46529 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46530 # "foo.exe" is OK but "foo" is an error. 46531 # 46532 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46533 # It is also a way to make sure we got the proper file name for the real test later on. 46534 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46535 if test "x$test_shortpath" = x; then 46536 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46537 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46538 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 46539 fi 46540 46541 # Call helper function which possibly converts this using DOS-style short mode. 46542 # If so, the updated path is stored in $new_path. 46543 46544 input_path="$new_path" 46545 # Check if we need to convert this using DOS-style short mode. If the path 46546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46547 # take no chances and rewrite it. 46548 # Note: m4 eats our [], so we need to use [ and ] instead. 46549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46550 if test "x$has_forbidden_chars" != x; then 46551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46552 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46553 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46554 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46555 # Going to short mode and back again did indeed matter. Since short mode is 46556 # case insensitive, let's make it lowercase to improve readability. 46557 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46558 # Now convert it back to Unix-style (cygpath) 46559 input_path=`$CYGPATH -u "$shortmode_path"` 46560 new_path="$input_path" 46561 fi 46562 fi 46563 46564 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46565 if test "x$test_cygdrive_prefix" = x; then 46566 # As a simple fix, exclude /usr/bin since it's not a real path. 46567 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46568 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46569 # a path prefixed by /cygdrive for fixpath to work. 46570 new_path="$CYGWIN_ROOT_PATH$input_path" 46571 fi 46572 fi 46573 46574 46575 if test "x$path" != "x$new_path"; then 46576 MSVC_DLL="$new_path" 46577 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46578 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46579 fi 46580 46581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46582 46583 path="$MSVC_DLL" 46584 has_colon=`$ECHO $path | $GREP ^.:` 46585 new_path="$path" 46586 if test "x$has_colon" = x; then 46587 # Not in mixed or Windows style, start by that. 46588 new_path=`cmd //c echo $path` 46589 fi 46590 46591 46592 input_path="$new_path" 46593 # Check if we need to convert this using DOS-style short mode. If the path 46594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46595 # take no chances and rewrite it. 46596 # Note: m4 eats our [], so we need to use [ and ] instead. 46597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46598 if test "x$has_forbidden_chars" != x; then 46599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46600 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46601 fi 46602 46603 46604 windows_path="$new_path" 46605 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46606 unix_path=`$CYGPATH -u "$windows_path"` 46607 new_path="$unix_path" 46608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46609 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46610 new_path="$unix_path" 46611 fi 46612 46613 if test "x$path" != "x$new_path"; then 46614 MSVC_DLL="$new_path" 46615 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 46616 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 46617 fi 46618 46619 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46620 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46621 46622 else 46623 # We're on a unix platform. Hooray! :) 46624 path="$MSVC_DLL" 46625 has_space=`$ECHO "$path" | $GREP " "` 46626 if test "x$has_space" != x; then 46627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 46628 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 46629 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46630 fi 46631 46632 # Use eval to expand a potential ~ 46633 eval path="$path" 46634 if test ! -f "$path" && test ! -d "$path"; then 46635 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 46636 fi 46637 46638 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 46639 fi 46640 fi 46641 46642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 46643 $as_echo_n "checking for $DLL_NAME... " >&6; } 46644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 46645 $as_echo "$MSVC_DLL" >&6; } 46646 else 46647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46648 $as_echo "incorrect, ignoring" >&6; } 46649 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 46650 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 46651 fi 46652 fi 46653 46654 fi 46655 fi 46656 46657 if test "x$MSVC_DLL" = x; then 46658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 46659 $as_echo_n "checking for $DLL_NAME... " >&6; } 46660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46661 $as_echo "no" >&6; } 46662 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 46663 fi 46664 46665 MSVCP_DLL="$MSVC_DLL" 46666 fi 46667 46668 fi 46669 46670 fi 46671 46672 46673 if test "x$NEEDS_LIB_X11" = xfalse; then 46674 if test "x${with_x}" != x; then 46675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 46676 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 46677 fi 46678 X_CFLAGS= 46679 X_LIBS= 46680 else 46681 46682 if test "x${with_x}" = xno; then 46683 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 46684 fi 46685 46686 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 46687 # The user has specified a X11 base directory. Use it for includes and 46688 # libraries, unless explicitely overridden. 46689 if test "x$x_includes" = xNONE; then 46690 x_includes="${with_x}/include" 46691 fi 46692 if test "x$x_libraries" = xNONE; then 46693 x_libraries="${with_x}/lib" 46694 fi 46695 else 46696 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 46697 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 46698 # --x-libraries for the sysroot, if that seems to be correct. 46699 if test "x$SYSROOT" != "x"; then 46700 if test "x$x_includes" = xNONE; then 46701 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 46702 x_includes="$SYSROOT/usr/X11R6/include" 46703 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 46704 x_includes="$SYSROOT/usr/include" 46705 fi 46706 fi 46707 if test "x$x_libraries" = xNONE; then 46708 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 46709 x_libraries="$SYSROOT/usr/X11R6/lib" 46710 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46711 x_libraries="$SYSROOT/usr/lib64" 46712 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 46713 x_libraries="$SYSROOT/usr/lib" 46714 fi 46715 fi 46716 fi 46717 fi 46718 46719 # Now let autoconf do it's magic 46720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 46721 $as_echo_n "checking for X... " >&6; } 46722 46723 46724 # Check whether --with-x was given. 46725 if test "${with_x+set}" = set; then : 46726 withval=$with_x; 46727 fi 46728 46729 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 46730 if test "x$with_x" = xno; then 46731 # The user explicitly disabled X. 46732 have_x=disabled 46733 else 46734 case $x_includes,$x_libraries in #( 46735 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 46736 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 46737 $as_echo_n "(cached) " >&6 46738 else 46739 # One or both of the vars are not set, and there is no cached value. 46740 ac_x_includes=no ac_x_libraries=no 46741 rm -f -r conftest.dir 46742 if mkdir conftest.dir; then 46743 cd conftest.dir 46744 cat >Imakefile <<'_ACEOF' 46745 incroot: 46746 @echo incroot='${INCROOT}' 46747 usrlibdir: 46748 @echo usrlibdir='${USRLIBDIR}' 46749 libdir: 46750 @echo libdir='${LIBDIR}' 46751 _ACEOF 46752 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 46753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 46754 for ac_var in incroot usrlibdir libdir; do 46755 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 46756 done 46757 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 46758 for ac_extension in a so sl dylib la dll; do 46759 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 46760 test -f "$ac_im_libdir/libX11.$ac_extension"; then 46761 ac_im_usrlibdir=$ac_im_libdir; break 46762 fi 46763 done 46764 # Screen out bogus values from the imake configuration. They are 46765 # bogus both because they are the default anyway, and because 46766 # using them would break gcc on systems where it needs fixed includes. 46767 case $ac_im_incroot in 46768 /usr/include) ac_x_includes= ;; 46769 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 46770 esac 46771 case $ac_im_usrlibdir in 46772 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 46773 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 46774 esac 46775 fi 46776 cd .. 46777 rm -f -r conftest.dir 46778 fi 46779 46780 # Standard set of common directories for X headers. 46781 # Check X11 before X11Rn because it is often a symlink to the current release. 46782 ac_x_header_dirs=' 46783 /usr/X11/include 46784 /usr/X11R7/include 46785 /usr/X11R6/include 46786 /usr/X11R5/include 46787 /usr/X11R4/include 46788 46789 /usr/include/X11 46790 /usr/include/X11R7 46791 /usr/include/X11R6 46792 /usr/include/X11R5 46793 /usr/include/X11R4 46794 46795 /usr/local/X11/include 46796 /usr/local/X11R7/include 46797 /usr/local/X11R6/include 46798 /usr/local/X11R5/include 46799 /usr/local/X11R4/include 46800 46801 /usr/local/include/X11 46802 /usr/local/include/X11R7 46803 /usr/local/include/X11R6 46804 /usr/local/include/X11R5 46805 /usr/local/include/X11R4 46806 46807 /usr/X386/include 46808 /usr/x386/include 46809 /usr/XFree86/include/X11 46810 46811 /usr/include 46812 /usr/local/include 46813 /usr/unsupported/include 46814 /usr/athena/include 46815 /usr/local/x11r5/include 46816 /usr/lpp/Xamples/include 46817 46818 /usr/openwin/include 46819 /usr/openwin/share/include' 46820 46821 if test "$ac_x_includes" = no; then 46822 # Guess where to find include files, by looking for Xlib.h. 46823 # First, try using that file with no special directory specified. 46824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46825 /* end confdefs.h. */ 46826 #include <X11/Xlib.h> 46827 _ACEOF 46828 if ac_fn_cxx_try_cpp "$LINENO"; then : 46829 # We can compile using X headers with no special include directory. 46830 ac_x_includes= 46831 else 46832 for ac_dir in $ac_x_header_dirs; do 46833 if test -r "$ac_dir/X11/Xlib.h"; then 46834 ac_x_includes=$ac_dir 46835 break 46836 fi 46837 done 46838 fi 46839 rm -f conftest.err conftest.i conftest.$ac_ext 46840 fi # $ac_x_includes = no 46841 46842 if test "$ac_x_libraries" = no; then 46843 # Check for the libraries. 46844 # See if we find them without any special options. 46845 # Don't add to $LIBS permanently. 46846 ac_save_LIBS=$LIBS 46847 LIBS="-lX11 $LIBS" 46848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46849 /* end confdefs.h. */ 46850 #include <X11/Xlib.h> 46851 int 46852 main () 46853 { 46854 XrmInitialize () 46855 ; 46856 return 0; 46857 } 46858 _ACEOF 46859 if ac_fn_cxx_try_link "$LINENO"; then : 46860 LIBS=$ac_save_LIBS 46861 # We can link X programs with no special library path. 46862 ac_x_libraries= 46863 else 46864 LIBS=$ac_save_LIBS 46865 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 46866 do 46867 # Don't even attempt the hair of trying to link an X program! 46868 for ac_extension in a so sl dylib la dll; do 46869 if test -r "$ac_dir/libX11.$ac_extension"; then 46870 ac_x_libraries=$ac_dir 46871 break 2 46872 fi 46873 done 46874 done 46875 fi 46876 rm -f core conftest.err conftest.$ac_objext \ 46877 conftest$ac_exeext conftest.$ac_ext 46878 fi # $ac_x_libraries = no 46879 46880 case $ac_x_includes,$ac_x_libraries in #( 46881 no,* | *,no | *\'*) 46882 # Didn't find X, or a directory has "'" in its name. 46883 ac_cv_have_x="have_x=no";; #( 46884 *) 46885 # Record where we found X for the cache. 46886 ac_cv_have_x="have_x=yes\ 46887 ac_x_includes='$ac_x_includes'\ 46888 ac_x_libraries='$ac_x_libraries'" 46889 esac 46890 fi 46891 ;; #( 46892 *) have_x=yes;; 46893 esac 46894 eval "$ac_cv_have_x" 46895 fi # $with_x != no 46896 46897 if test "$have_x" != yes; then 46898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 46899 $as_echo "$have_x" >&6; } 46900 no_x=yes 46901 else 46902 # If each of the values was on the command line, it overrides each guess. 46903 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 46904 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 46905 # Update the cache value to reflect the command line values. 46906 ac_cv_have_x="have_x=yes\ 46907 ac_x_includes='$x_includes'\ 46908 ac_x_libraries='$x_libraries'" 46909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 46910 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 46911 fi 46912 46913 if test "$no_x" = yes; then 46914 # Not all programs may use this symbol, but it does not hurt to define it. 46915 46916 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 46917 46918 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 46919 else 46920 if test -n "$x_includes"; then 46921 X_CFLAGS="$X_CFLAGS -I$x_includes" 46922 fi 46923 46924 # It would also be nice to do this for all -L options, not just this one. 46925 if test -n "$x_libraries"; then 46926 X_LIBS="$X_LIBS -L$x_libraries" 46927 # For Solaris; some versions of Sun CC require a space after -R and 46928 # others require no space. Words are not sufficient . . . . 46929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 46930 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 46931 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 46932 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 46933 ac_cxx_werror_flag=yes 46934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46935 /* end confdefs.h. */ 46936 46937 int 46938 main () 46939 { 46940 46941 ; 46942 return 0; 46943 } 46944 _ACEOF 46945 if ac_fn_cxx_try_link "$LINENO"; then : 46946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46947 $as_echo "no" >&6; } 46948 X_LIBS="$X_LIBS -R$x_libraries" 46949 else 46950 LIBS="$ac_xsave_LIBS -R $x_libraries" 46951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46952 /* end confdefs.h. */ 46953 46954 int 46955 main () 46956 { 46957 46958 ; 46959 return 0; 46960 } 46961 _ACEOF 46962 if ac_fn_cxx_try_link "$LINENO"; then : 46963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46964 $as_echo "yes" >&6; } 46965 X_LIBS="$X_LIBS -R $x_libraries" 46966 else 46967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 46968 $as_echo "neither works" >&6; } 46969 fi 46970 rm -f core conftest.err conftest.$ac_objext \ 46971 conftest$ac_exeext conftest.$ac_ext 46972 fi 46973 rm -f core conftest.err conftest.$ac_objext \ 46974 conftest$ac_exeext conftest.$ac_ext 46975 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 46976 LIBS=$ac_xsave_LIBS 46977 fi 46978 46979 # Check for system-dependent libraries X programs must link with. 46980 # Do this before checking for the system-independent R6 libraries 46981 # (-lICE), since we may need -lsocket or whatever for X linking. 46982 46983 if test "$ISC" = yes; then 46984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 46985 else 46986 # Martyn Johnson says this is needed for Ultrix, if the X 46987 # libraries were built with DECnet support. And Karl Berry says 46988 # the Alpha needs dnet_stub (dnet does not exist). 46989 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 46990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46991 /* end confdefs.h. */ 46992 46993 /* Override any GCC internal prototype to avoid an error. 46994 Use char because int might match the return type of a GCC 46995 builtin and then its argument prototype would still apply. */ 46996 #ifdef __cplusplus 46997 extern "C" 46998 #endif 46999 char XOpenDisplay (); 47000 int 47001 main () 47002 { 47003 return XOpenDisplay (); 47004 ; 47005 return 0; 47006 } 47007 _ACEOF 47008 if ac_fn_cxx_try_link "$LINENO"; then : 47009 47010 else 47011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 47012 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 47013 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 47014 $as_echo_n "(cached) " >&6 47015 else 47016 ac_check_lib_save_LIBS=$LIBS 47017 LIBS="-ldnet $LIBS" 47018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47019 /* end confdefs.h. */ 47020 47021 /* Override any GCC internal prototype to avoid an error. 47022 Use char because int might match the return type of a GCC 47023 builtin and then its argument prototype would still apply. */ 47024 #ifdef __cplusplus 47025 extern "C" 47026 #endif 47027 char dnet_ntoa (); 47028 int 47029 main () 47030 { 47031 return dnet_ntoa (); 47032 ; 47033 return 0; 47034 } 47035 _ACEOF 47036 if ac_fn_cxx_try_link "$LINENO"; then : 47037 ac_cv_lib_dnet_dnet_ntoa=yes 47038 else 47039 ac_cv_lib_dnet_dnet_ntoa=no 47040 fi 47041 rm -f core conftest.err conftest.$ac_objext \ 47042 conftest$ac_exeext conftest.$ac_ext 47043 LIBS=$ac_check_lib_save_LIBS 47044 fi 47045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 47046 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 47047 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 47048 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 47049 fi 47050 47051 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 47052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 47053 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 47054 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 47055 $as_echo_n "(cached) " >&6 47056 else 47057 ac_check_lib_save_LIBS=$LIBS 47058 LIBS="-ldnet_stub $LIBS" 47059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47060 /* end confdefs.h. */ 47061 47062 /* Override any GCC internal prototype to avoid an error. 47063 Use char because int might match the return type of a GCC 47064 builtin and then its argument prototype would still apply. */ 47065 #ifdef __cplusplus 47066 extern "C" 47067 #endif 47068 char dnet_ntoa (); 47069 int 47070 main () 47071 { 47072 return dnet_ntoa (); 47073 ; 47074 return 0; 47075 } 47076 _ACEOF 47077 if ac_fn_cxx_try_link "$LINENO"; then : 47078 ac_cv_lib_dnet_stub_dnet_ntoa=yes 47079 else 47080 ac_cv_lib_dnet_stub_dnet_ntoa=no 47081 fi 47082 rm -f core conftest.err conftest.$ac_objext \ 47083 conftest$ac_exeext conftest.$ac_ext 47084 LIBS=$ac_check_lib_save_LIBS 47085 fi 47086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 47087 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 47088 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 47089 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 47090 fi 47091 47092 fi 47093 fi 47094 rm -f core conftest.err conftest.$ac_objext \ 47095 conftest$ac_exeext conftest.$ac_ext 47096 LIBS="$ac_xsave_LIBS" 47097 47098 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 47099 # to get the SysV transport functions. 47100 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 47101 # needs -lnsl. 47102 # The nsl library prevents programs from opening the X display 47103 # on Irix 5.2, according to T.E. Dickey. 47104 # The functions gethostbyname, getservbyname, and inet_addr are 47105 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 47106 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 47107 if test "x$ac_cv_func_gethostbyname" = xyes; then : 47108 47109 fi 47110 47111 if test $ac_cv_func_gethostbyname = no; then 47112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 47113 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 47114 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 47115 $as_echo_n "(cached) " >&6 47116 else 47117 ac_check_lib_save_LIBS=$LIBS 47118 LIBS="-lnsl $LIBS" 47119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47120 /* end confdefs.h. */ 47121 47122 /* Override any GCC internal prototype to avoid an error. 47123 Use char because int might match the return type of a GCC 47124 builtin and then its argument prototype would still apply. */ 47125 #ifdef __cplusplus 47126 extern "C" 47127 #endif 47128 char gethostbyname (); 47129 int 47130 main () 47131 { 47132 return gethostbyname (); 47133 ; 47134 return 0; 47135 } 47136 _ACEOF 47137 if ac_fn_cxx_try_link "$LINENO"; then : 47138 ac_cv_lib_nsl_gethostbyname=yes 47139 else 47140 ac_cv_lib_nsl_gethostbyname=no 47141 fi 47142 rm -f core conftest.err conftest.$ac_objext \ 47143 conftest$ac_exeext conftest.$ac_ext 47144 LIBS=$ac_check_lib_save_LIBS 47145 fi 47146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 47147 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 47148 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 47149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 47150 fi 47151 47152 if test $ac_cv_lib_nsl_gethostbyname = no; then 47153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 47154 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 47155 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 47156 $as_echo_n "(cached) " >&6 47157 else 47158 ac_check_lib_save_LIBS=$LIBS 47159 LIBS="-lbsd $LIBS" 47160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47161 /* end confdefs.h. */ 47162 47163 /* Override any GCC internal prototype to avoid an error. 47164 Use char because int might match the return type of a GCC 47165 builtin and then its argument prototype would still apply. */ 47166 #ifdef __cplusplus 47167 extern "C" 47168 #endif 47169 char gethostbyname (); 47170 int 47171 main () 47172 { 47173 return gethostbyname (); 47174 ; 47175 return 0; 47176 } 47177 _ACEOF 47178 if ac_fn_cxx_try_link "$LINENO"; then : 47179 ac_cv_lib_bsd_gethostbyname=yes 47180 else 47181 ac_cv_lib_bsd_gethostbyname=no 47182 fi 47183 rm -f core conftest.err conftest.$ac_objext \ 47184 conftest$ac_exeext conftest.$ac_ext 47185 LIBS=$ac_check_lib_save_LIBS 47186 fi 47187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 47188 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 47189 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 47190 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 47191 fi 47192 47193 fi 47194 fi 47195 47196 # lieder@skyler.mavd.honeywell.com says without -lsocket, 47197 # socket/setsockopt and other routines are undefined under SCO ODT 47198 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 47199 # on later versions), says Simon Leinen: it contains gethostby* 47200 # variants that don't use the name server (or something). -lsocket 47201 # must be given before -lnsl if both are needed. We assume that 47202 # if connect needs -lnsl, so does gethostbyname. 47203 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 47204 if test "x$ac_cv_func_connect" = xyes; then : 47205 47206 fi 47207 47208 if test $ac_cv_func_connect = no; then 47209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 47210 $as_echo_n "checking for connect in -lsocket... " >&6; } 47211 if ${ac_cv_lib_socket_connect+:} false; then : 47212 $as_echo_n "(cached) " >&6 47213 else 47214 ac_check_lib_save_LIBS=$LIBS 47215 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 47216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47217 /* end confdefs.h. */ 47218 47219 /* Override any GCC internal prototype to avoid an error. 47220 Use char because int might match the return type of a GCC 47221 builtin and then its argument prototype would still apply. */ 47222 #ifdef __cplusplus 47223 extern "C" 47224 #endif 47225 char connect (); 47226 int 47227 main () 47228 { 47229 return connect (); 47230 ; 47231 return 0; 47232 } 47233 _ACEOF 47234 if ac_fn_cxx_try_link "$LINENO"; then : 47235 ac_cv_lib_socket_connect=yes 47236 else 47237 ac_cv_lib_socket_connect=no 47238 fi 47239 rm -f core conftest.err conftest.$ac_objext \ 47240 conftest$ac_exeext conftest.$ac_ext 47241 LIBS=$ac_check_lib_save_LIBS 47242 fi 47243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 47244 $as_echo "$ac_cv_lib_socket_connect" >&6; } 47245 if test "x$ac_cv_lib_socket_connect" = xyes; then : 47246 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 47247 fi 47248 47249 fi 47250 47251 # Guillermo Gomez says -lposix is necessary on A/UX. 47252 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 47253 if test "x$ac_cv_func_remove" = xyes; then : 47254 47255 fi 47256 47257 if test $ac_cv_func_remove = no; then 47258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 47259 $as_echo_n "checking for remove in -lposix... " >&6; } 47260 if ${ac_cv_lib_posix_remove+:} false; then : 47261 $as_echo_n "(cached) " >&6 47262 else 47263 ac_check_lib_save_LIBS=$LIBS 47264 LIBS="-lposix $LIBS" 47265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47266 /* end confdefs.h. */ 47267 47268 /* Override any GCC internal prototype to avoid an error. 47269 Use char because int might match the return type of a GCC 47270 builtin and then its argument prototype would still apply. */ 47271 #ifdef __cplusplus 47272 extern "C" 47273 #endif 47274 char remove (); 47275 int 47276 main () 47277 { 47278 return remove (); 47279 ; 47280 return 0; 47281 } 47282 _ACEOF 47283 if ac_fn_cxx_try_link "$LINENO"; then : 47284 ac_cv_lib_posix_remove=yes 47285 else 47286 ac_cv_lib_posix_remove=no 47287 fi 47288 rm -f core conftest.err conftest.$ac_objext \ 47289 conftest$ac_exeext conftest.$ac_ext 47290 LIBS=$ac_check_lib_save_LIBS 47291 fi 47292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 47293 $as_echo "$ac_cv_lib_posix_remove" >&6; } 47294 if test "x$ac_cv_lib_posix_remove" = xyes; then : 47295 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 47296 fi 47297 47298 fi 47299 47300 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 47301 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 47302 if test "x$ac_cv_func_shmat" = xyes; then : 47303 47304 fi 47305 47306 if test $ac_cv_func_shmat = no; then 47307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 47308 $as_echo_n "checking for shmat in -lipc... " >&6; } 47309 if ${ac_cv_lib_ipc_shmat+:} false; then : 47310 $as_echo_n "(cached) " >&6 47311 else 47312 ac_check_lib_save_LIBS=$LIBS 47313 LIBS="-lipc $LIBS" 47314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47315 /* end confdefs.h. */ 47316 47317 /* Override any GCC internal prototype to avoid an error. 47318 Use char because int might match the return type of a GCC 47319 builtin and then its argument prototype would still apply. */ 47320 #ifdef __cplusplus 47321 extern "C" 47322 #endif 47323 char shmat (); 47324 int 47325 main () 47326 { 47327 return shmat (); 47328 ; 47329 return 0; 47330 } 47331 _ACEOF 47332 if ac_fn_cxx_try_link "$LINENO"; then : 47333 ac_cv_lib_ipc_shmat=yes 47334 else 47335 ac_cv_lib_ipc_shmat=no 47336 fi 47337 rm -f core conftest.err conftest.$ac_objext \ 47338 conftest$ac_exeext conftest.$ac_ext 47339 LIBS=$ac_check_lib_save_LIBS 47340 fi 47341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 47342 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 47343 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 47344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 47345 fi 47346 47347 fi 47348 fi 47349 47350 # Check for libraries that X11R6 Xt/Xaw programs need. 47351 ac_save_LDFLAGS=$LDFLAGS 47352 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 47353 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 47354 # check for ICE first), but we must link in the order -lSM -lICE or 47355 # we get undefined symbols. So assume we have SM if we have ICE. 47356 # These have to be linked with before -lX11, unlike the other 47357 # libraries we check for below, so use a different variable. 47358 # John Interrante, Karl Berry 47359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 47360 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 47361 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 47362 $as_echo_n "(cached) " >&6 47363 else 47364 ac_check_lib_save_LIBS=$LIBS 47365 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 47366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47367 /* end confdefs.h. */ 47368 47369 /* Override any GCC internal prototype to avoid an error. 47370 Use char because int might match the return type of a GCC 47371 builtin and then its argument prototype would still apply. */ 47372 #ifdef __cplusplus 47373 extern "C" 47374 #endif 47375 char IceConnectionNumber (); 47376 int 47377 main () 47378 { 47379 return IceConnectionNumber (); 47380 ; 47381 return 0; 47382 } 47383 _ACEOF 47384 if ac_fn_cxx_try_link "$LINENO"; then : 47385 ac_cv_lib_ICE_IceConnectionNumber=yes 47386 else 47387 ac_cv_lib_ICE_IceConnectionNumber=no 47388 fi 47389 rm -f core conftest.err conftest.$ac_objext \ 47390 conftest$ac_exeext conftest.$ac_ext 47391 LIBS=$ac_check_lib_save_LIBS 47392 fi 47393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 47394 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 47395 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 47396 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 47397 fi 47398 47399 LDFLAGS=$ac_save_LDFLAGS 47400 47401 fi 47402 47403 47404 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 47405 # this doesn't make sense so we remove it. 47406 if test "x$COMPILE_TYPE" = xcross; then 47407 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 47408 fi 47409 47410 if test "x$no_x" = xyes; then 47411 47412 # Print a helpful message on how to acquire the necessary build dependency. 47413 # x11 is the help tag: freetype, cups, alsa etc 47414 MISSING_DEPENDENCY=x11 47415 47416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47417 cygwin_help $MISSING_DEPENDENCY 47418 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47419 msys_help $MISSING_DEPENDENCY 47420 else 47421 PKGHANDLER_COMMAND= 47422 47423 case $PKGHANDLER in 47424 apt-get) 47425 apt_help $MISSING_DEPENDENCY ;; 47426 yum) 47427 yum_help $MISSING_DEPENDENCY ;; 47428 port) 47429 port_help $MISSING_DEPENDENCY ;; 47430 pkgutil) 47431 pkgutil_help $MISSING_DEPENDENCY ;; 47432 pkgadd) 47433 pkgadd_help $MISSING_DEPENDENCY ;; 47434 esac 47435 47436 if test "x$PKGHANDLER_COMMAND" != x; then 47437 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47438 fi 47439 fi 47440 47441 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 47442 fi 47443 47444 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 47445 OPENWIN_HOME="/usr/openwin" 47446 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 47447 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 47448 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 47449 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 47450 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 47451 fi 47452 47453 ac_ext=c 47454 ac_cpp='$CPP $CPPFLAGS' 47455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47457 ac_compiler_gnu=$ac_cv_c_compiler_gnu 47458 47459 OLD_CFLAGS="$CFLAGS" 47460 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 47461 47462 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 47463 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 47464 do : 47465 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 47466 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 47467 # include <X11/Xlib.h> 47468 # include <X11/Xutil.h> 47469 47470 47471 " 47472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 47473 cat >>confdefs.h <<_ACEOF 47474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 47475 _ACEOF 47476 X11_HEADERS_OK=yes 47477 else 47478 X11_HEADERS_OK=no; break 47479 fi 47480 47481 done 47482 47483 47484 if test "x$X11_HEADERS_OK" = xno; then 47485 47486 # Print a helpful message on how to acquire the necessary build dependency. 47487 # x11 is the help tag: freetype, cups, alsa etc 47488 MISSING_DEPENDENCY=x11 47489 47490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47491 cygwin_help $MISSING_DEPENDENCY 47492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47493 msys_help $MISSING_DEPENDENCY 47494 else 47495 PKGHANDLER_COMMAND= 47496 47497 case $PKGHANDLER in 47498 apt-get) 47499 apt_help $MISSING_DEPENDENCY ;; 47500 yum) 47501 yum_help $MISSING_DEPENDENCY ;; 47502 port) 47503 port_help $MISSING_DEPENDENCY ;; 47504 pkgutil) 47505 pkgutil_help $MISSING_DEPENDENCY ;; 47506 pkgadd) 47507 pkgadd_help $MISSING_DEPENDENCY ;; 47508 esac 47509 47510 if test "x$PKGHANDLER_COMMAND" != x; then 47511 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47512 fi 47513 fi 47514 47515 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 47516 fi 47517 47518 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 47519 # defined in libawt_xawt. 47520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 47521 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 47522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47523 /* end confdefs.h. */ 47524 #include <X11/extensions/Xrender.h> 47525 int 47526 main () 47527 { 47528 XLinearGradient x; 47529 ; 47530 return 0; 47531 } 47532 _ACEOF 47533 if ac_fn_c_try_compile "$LINENO"; then : 47534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47535 $as_echo "yes" >&6; } 47536 else 47537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47538 $as_echo "no" >&6; } 47539 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 47540 fi 47541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47542 47543 CFLAGS="$OLD_CFLAGS" 47544 ac_ext=cpp 47545 ac_cpp='$CXXCPP $CPPFLAGS' 47546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47549 47550 fi # NEEDS_LIB_X11 47551 47552 47553 47554 47555 47556 47557 # Check whether --with-cups was given. 47558 if test "${with_cups+set}" = set; then : 47559 withval=$with_cups; 47560 fi 47561 47562 47563 # Check whether --with-cups-include was given. 47564 if test "${with_cups_include+set}" = set; then : 47565 withval=$with_cups_include; 47566 fi 47567 47568 47569 if test "x$NEEDS_LIB_CUPS" = xfalse; then 47570 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 47571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 47572 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 47573 fi 47574 CUPS_CFLAGS= 47575 else 47576 CUPS_FOUND=no 47577 47578 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 47579 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 47580 fi 47581 47582 if test "x${with_cups}" != x; then 47583 CUPS_CFLAGS="-I${with_cups}/include" 47584 CUPS_FOUND=yes 47585 fi 47586 if test "x${with_cups_include}" != x; then 47587 CUPS_CFLAGS="-I${with_cups_include}" 47588 CUPS_FOUND=yes 47589 fi 47590 if test "x$CUPS_FOUND" = xno; then 47591 # Are the cups headers installed in the default /usr/include location? 47592 for ac_header in cups/cups.h cups/ppd.h 47593 do : 47594 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 47595 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 47596 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 47597 cat >>confdefs.h <<_ACEOF 47598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 47599 _ACEOF 47600 47601 CUPS_FOUND=yes 47602 CUPS_CFLAGS= 47603 DEFAULT_CUPS=yes 47604 47605 fi 47606 47607 done 47608 47609 fi 47610 if test "x$CUPS_FOUND" = xno; then 47611 # Getting nervous now? Lets poke around for standard Solaris third-party 47612 # package installation locations. 47613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 47614 $as_echo_n "checking for cups headers... " >&6; } 47615 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 47616 # An SFW package seems to be installed! 47617 CUPS_FOUND=yes 47618 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 47619 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 47620 # A CSW package seems to be installed! 47621 CUPS_FOUND=yes 47622 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 47623 fi 47624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 47625 $as_echo "$CUPS_FOUND" >&6; } 47626 fi 47627 if test "x$CUPS_FOUND" = xno; then 47628 47629 # Print a helpful message on how to acquire the necessary build dependency. 47630 # cups is the help tag: freetype, cups, alsa etc 47631 MISSING_DEPENDENCY=cups 47632 47633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47634 cygwin_help $MISSING_DEPENDENCY 47635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47636 msys_help $MISSING_DEPENDENCY 47637 else 47638 PKGHANDLER_COMMAND= 47639 47640 case $PKGHANDLER in 47641 apt-get) 47642 apt_help $MISSING_DEPENDENCY ;; 47643 yum) 47644 yum_help $MISSING_DEPENDENCY ;; 47645 port) 47646 port_help $MISSING_DEPENDENCY ;; 47647 pkgutil) 47648 pkgutil_help $MISSING_DEPENDENCY ;; 47649 pkgadd) 47650 pkgadd_help $MISSING_DEPENDENCY ;; 47651 esac 47652 47653 if test "x$PKGHANDLER_COMMAND" != x; then 47654 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47655 fi 47656 fi 47657 47658 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 47659 fi 47660 fi 47661 47662 47663 47664 47665 47666 # Check whether --with-freetype was given. 47667 if test "${with_freetype+set}" = set; then : 47668 withval=$with_freetype; 47669 fi 47670 47671 47672 # Check whether --with-freetype-include was given. 47673 if test "${with_freetype_include+set}" = set; then : 47674 withval=$with_freetype_include; 47675 fi 47676 47677 47678 # Check whether --with-freetype-lib was given. 47679 if test "${with_freetype_lib+set}" = set; then : 47680 withval=$with_freetype_lib; 47681 fi 47682 47683 47684 # Check whether --with-freetype-src was given. 47685 if test "${with_freetype_src+set}" = set; then : 47686 withval=$with_freetype_src; 47687 fi 47688 47689 # Check whether --enable-freetype-bundling was given. 47690 if test "${enable_freetype_bundling+set}" = set; then : 47691 enableval=$enable_freetype_bundling; 47692 fi 47693 47694 47695 # Need to specify explicitly since it needs to be overridden on some versions of macosx 47696 FREETYPE_BASE_NAME=freetype 47697 FREETYPE_CFLAGS= 47698 FREETYPE_LIBS= 47699 FREETYPE_BUNDLE_LIB_PATH= 47700 47701 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 47702 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 47703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 47704 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 47705 fi 47706 if test "x$enable_freetype_bundling" != x; then 47707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 47708 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 47709 fi 47710 else 47711 # freetype is needed to build; go get it! 47712 47713 BUNDLE_FREETYPE="$enable_freetype_bundling" 47714 47715 if test "x$with_freetype_src" != x; then 47716 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47717 # Try to build freetype if --with-freetype-src was given on Windows 47718 47719 FREETYPE_SRC_PATH="$with_freetype_src" 47720 BUILD_FREETYPE=yes 47721 47722 # Check if the freetype sources are acessible.. 47723 if ! test -d $FREETYPE_SRC_PATH; then 47724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 47725 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 47726 BUILD_FREETYPE=no 47727 fi 47728 # ..and contain a vc2010 project file 47729 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 47730 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 47731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 47732 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 47733 BUILD_FREETYPE=no 47734 fi 47735 # Now check if configure found a version of 'msbuild.exe' 47736 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 47737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 47738 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 47739 BUILD_FREETYPE=no 47740 fi 47741 47742 # Ready to go.. 47743 if test "x$BUILD_FREETYPE" = xyes; then 47744 # msbuild requires trailing slashes for output directories 47745 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 47746 freetype_lib_path_unix="$freetype_lib_path" 47747 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 47748 47749 unix_path="$vcxproj_path" 47750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47751 windows_path=`$CYGPATH -m "$unix_path"` 47752 vcxproj_path="$windows_path" 47753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47754 windows_path=`cmd //c echo $unix_path` 47755 vcxproj_path="$windows_path" 47756 fi 47757 47758 47759 unix_path="$freetype_lib_path" 47760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47761 windows_path=`$CYGPATH -m "$unix_path"` 47762 freetype_lib_path="$windows_path" 47763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47764 windows_path=`cmd //c echo $unix_path` 47765 freetype_lib_path="$windows_path" 47766 fi 47767 47768 47769 unix_path="$freetype_obj_path" 47770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47771 windows_path=`$CYGPATH -m "$unix_path"` 47772 freetype_obj_path="$windows_path" 47773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47774 windows_path=`cmd //c echo $unix_path` 47775 freetype_obj_path="$windows_path" 47776 fi 47777 47778 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47779 freetype_platform=x64 47780 else 47781 freetype_platform=win32 47782 fi 47783 47784 # The original freetype project file is for VS 2010 (i.e. 'v100'), 47785 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 47786 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 47787 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 47788 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 47789 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 47790 47791 # First we try to build the freetype.dll 47792 $ECHO -e "@echo off\n"\ 47793 "$MSBUILD $vcxproj_path "\ 47794 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 47795 "/p:Configuration=\"Release Multithreaded\" "\ 47796 "/p:Platform=$freetype_platform "\ 47797 "/p:ConfigurationType=DynamicLibrary "\ 47798 "/p:TargetName=freetype "\ 47799 "/p:OutDir=\"$freetype_lib_path\" "\ 47800 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 47801 cmd /c freetype.bat 47802 47803 if test -s "$freetype_lib_path_unix/freetype.dll"; then 47804 # If that succeeds we also build freetype.lib 47805 $ECHO -e "@echo off\n"\ 47806 "$MSBUILD $vcxproj_path "\ 47807 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 47808 "/p:Configuration=\"Release Multithreaded\" "\ 47809 "/p:Platform=$freetype_platform "\ 47810 "/p:ConfigurationType=StaticLibrary "\ 47811 "/p:TargetName=freetype "\ 47812 "/p:OutDir=\"$freetype_lib_path\" "\ 47813 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 47814 cmd /c freetype.bat 47815 47816 if test -s "$freetype_lib_path_unix/freetype.lib"; then 47817 # Once we build both, lib and dll, set freetype lib and include path appropriately 47818 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 47819 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 47820 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 47821 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 47822 else 47823 BUILD_FREETYPE=no 47824 fi 47825 else 47826 BUILD_FREETYPE=no 47827 fi 47828 fi 47829 47830 if test "x$BUILD_FREETYPE" = xyes; then 47831 # Okay, we built it. Check that it works. 47832 47833 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47834 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47835 METHOD="--with-freetype-src" 47836 47837 # Let's start with an optimistic view of the world :-) 47838 FOUND_FREETYPE=yes 47839 47840 # First look for the canonical freetype main include file ft2build.h. 47841 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47842 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47843 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47844 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47845 # Fail. 47846 FOUND_FREETYPE=no 47847 fi 47848 fi 47849 47850 if test "x$FOUND_FREETYPE" = xyes; then 47851 # Include file found, let's continue the sanity check. 47852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47853 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47854 47855 # Reset to default value 47856 FREETYPE_BASE_NAME=freetype 47857 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47858 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47859 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47860 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47861 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47862 # for the .6 version explicitly. 47863 FREETYPE_BASE_NAME=freetype.6 47864 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47865 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47866 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47867 else 47868 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47869 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47870 FOUND_FREETYPE=no 47871 fi 47872 else 47873 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47874 # On Windows, we will need both .lib and .dll file. 47875 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47876 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47877 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47878 FOUND_FREETYPE=no 47879 fi 47880 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47881 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47882 # Found lib in isa dir, use that instead. 47883 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47884 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47885 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47886 fi 47887 fi 47888 fi 47889 47890 if test "x$FOUND_FREETYPE" = xyes; then 47891 47892 # Only process if variable expands to non-empty 47893 47894 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47896 47897 # Input might be given as Windows format, start by converting to 47898 # unix format. 47899 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47900 new_path=`$CYGPATH -u "$path"` 47901 47902 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47903 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47904 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47905 # "foo.exe" is OK but "foo" is an error. 47906 # 47907 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47908 # It is also a way to make sure we got the proper file name for the real test later on. 47909 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47910 if test "x$test_shortpath" = x; then 47911 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47912 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47913 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47914 fi 47915 47916 # Call helper function which possibly converts this using DOS-style short mode. 47917 # If so, the updated path is stored in $new_path. 47918 47919 input_path="$new_path" 47920 # Check if we need to convert this using DOS-style short mode. If the path 47921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47922 # take no chances and rewrite it. 47923 # Note: m4 eats our [], so we need to use [ and ] instead. 47924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47925 if test "x$has_forbidden_chars" != x; then 47926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47927 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47928 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47929 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47930 # Going to short mode and back again did indeed matter. Since short mode is 47931 # case insensitive, let's make it lowercase to improve readability. 47932 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47933 # Now convert it back to Unix-style (cygpath) 47934 input_path=`$CYGPATH -u "$shortmode_path"` 47935 new_path="$input_path" 47936 fi 47937 fi 47938 47939 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47940 if test "x$test_cygdrive_prefix" = x; then 47941 # As a simple fix, exclude /usr/bin since it's not a real path. 47942 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47943 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47944 # a path prefixed by /cygdrive for fixpath to work. 47945 new_path="$CYGWIN_ROOT_PATH$input_path" 47946 fi 47947 fi 47948 47949 47950 if test "x$path" != "x$new_path"; then 47951 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47952 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47953 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47954 fi 47955 47956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47957 47958 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47959 has_colon=`$ECHO $path | $GREP ^.:` 47960 new_path="$path" 47961 if test "x$has_colon" = x; then 47962 # Not in mixed or Windows style, start by that. 47963 new_path=`cmd //c echo $path` 47964 fi 47965 47966 47967 input_path="$new_path" 47968 # Check if we need to convert this using DOS-style short mode. If the path 47969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47970 # take no chances and rewrite it. 47971 # Note: m4 eats our [], so we need to use [ and ] instead. 47972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47973 if test "x$has_forbidden_chars" != x; then 47974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47975 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47976 fi 47977 47978 47979 windows_path="$new_path" 47980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47981 unix_path=`$CYGPATH -u "$windows_path"` 47982 new_path="$unix_path" 47983 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47984 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47985 new_path="$unix_path" 47986 fi 47987 47988 if test "x$path" != "x$new_path"; then 47989 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47991 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47992 fi 47993 47994 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47995 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47996 47997 else 47998 # We're on a unix platform. Hooray! :) 47999 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48000 has_space=`$ECHO "$path" | $GREP " "` 48001 if test "x$has_space" != x; then 48002 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48003 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48004 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48005 fi 48006 48007 # Use eval to expand a potential ~ 48008 eval path="$path" 48009 if test ! -f "$path" && test ! -d "$path"; then 48010 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48011 fi 48012 48013 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48014 fi 48015 fi 48016 48017 48018 # Only process if variable expands to non-empty 48019 48020 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48022 48023 # Input might be given as Windows format, start by converting to 48024 # unix format. 48025 path="$POTENTIAL_FREETYPE_LIB_PATH" 48026 new_path=`$CYGPATH -u "$path"` 48027 48028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48031 # "foo.exe" is OK but "foo" is an error. 48032 # 48033 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48034 # It is also a way to make sure we got the proper file name for the real test later on. 48035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48036 if test "x$test_shortpath" = x; then 48037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48038 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48039 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48040 fi 48041 48042 # Call helper function which possibly converts this using DOS-style short mode. 48043 # If so, the updated path is stored in $new_path. 48044 48045 input_path="$new_path" 48046 # Check if we need to convert this using DOS-style short mode. If the path 48047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48048 # take no chances and rewrite it. 48049 # Note: m4 eats our [], so we need to use [ and ] instead. 48050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48051 if test "x$has_forbidden_chars" != x; then 48052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48053 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48054 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48055 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48056 # Going to short mode and back again did indeed matter. Since short mode is 48057 # case insensitive, let's make it lowercase to improve readability. 48058 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48059 # Now convert it back to Unix-style (cygpath) 48060 input_path=`$CYGPATH -u "$shortmode_path"` 48061 new_path="$input_path" 48062 fi 48063 fi 48064 48065 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48066 if test "x$test_cygdrive_prefix" = x; then 48067 # As a simple fix, exclude /usr/bin since it's not a real path. 48068 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48069 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48070 # a path prefixed by /cygdrive for fixpath to work. 48071 new_path="$CYGWIN_ROOT_PATH$input_path" 48072 fi 48073 fi 48074 48075 48076 if test "x$path" != "x$new_path"; then 48077 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48079 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48080 fi 48081 48082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48083 48084 path="$POTENTIAL_FREETYPE_LIB_PATH" 48085 has_colon=`$ECHO $path | $GREP ^.:` 48086 new_path="$path" 48087 if test "x$has_colon" = x; then 48088 # Not in mixed or Windows style, start by that. 48089 new_path=`cmd //c echo $path` 48090 fi 48091 48092 48093 input_path="$new_path" 48094 # Check if we need to convert this using DOS-style short mode. If the path 48095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48096 # take no chances and rewrite it. 48097 # Note: m4 eats our [], so we need to use [ and ] instead. 48098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48099 if test "x$has_forbidden_chars" != x; then 48100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48101 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48102 fi 48103 48104 48105 windows_path="$new_path" 48106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48107 unix_path=`$CYGPATH -u "$windows_path"` 48108 new_path="$unix_path" 48109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48111 new_path="$unix_path" 48112 fi 48113 48114 if test "x$path" != "x$new_path"; then 48115 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48117 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48118 fi 48119 48120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48122 48123 else 48124 # We're on a unix platform. Hooray! :) 48125 path="$POTENTIAL_FREETYPE_LIB_PATH" 48126 has_space=`$ECHO "$path" | $GREP " "` 48127 if test "x$has_space" != x; then 48128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48129 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48130 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48131 fi 48132 48133 # Use eval to expand a potential ~ 48134 eval path="$path" 48135 if test ! -f "$path" && test ! -d "$path"; then 48136 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48137 fi 48138 48139 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48140 fi 48141 fi 48142 48143 48144 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48146 $as_echo_n "checking for freetype includes... " >&6; } 48147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48148 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48149 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48151 $as_echo_n "checking for freetype libraries... " >&6; } 48152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48153 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48154 fi 48155 48156 if test "x$FOUND_FREETYPE" != xyes; then 48157 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 48158 fi 48159 else 48160 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 48161 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 48162 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 48163 fi 48164 else 48165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 48166 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 48167 fi 48168 fi 48169 48170 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 48171 # User has specified settings 48172 48173 if test "x$BUNDLE_FREETYPE" = x; then 48174 # If not specified, default is to bundle freetype 48175 BUNDLE_FREETYPE=yes 48176 fi 48177 48178 if test "x$with_freetype" != x; then 48179 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 48180 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 48181 fi 48182 48183 # Allow --with-freetype-lib and --with-freetype-include to override 48184 if test "x$with_freetype_include" != x; then 48185 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 48186 fi 48187 if test "x$with_freetype_lib" != x; then 48188 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 48189 fi 48190 48191 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48192 # Okay, we got it. Check that it works. 48193 48194 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48195 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48196 METHOD="--with-freetype" 48197 48198 # Let's start with an optimistic view of the world :-) 48199 FOUND_FREETYPE=yes 48200 48201 # First look for the canonical freetype main include file ft2build.h. 48202 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 48203 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 48204 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 48205 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 48206 # Fail. 48207 FOUND_FREETYPE=no 48208 fi 48209 fi 48210 48211 if test "x$FOUND_FREETYPE" = xyes; then 48212 # Include file found, let's continue the sanity check. 48213 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 48214 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 48215 48216 # Reset to default value 48217 FREETYPE_BASE_NAME=freetype 48218 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 48219 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 48220 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 48221 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 48222 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 48223 # for the .6 version explicitly. 48224 FREETYPE_BASE_NAME=freetype.6 48225 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 48226 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 48227 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 48228 else 48229 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 48230 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 48231 FOUND_FREETYPE=no 48232 fi 48233 else 48234 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48235 # On Windows, we will need both .lib and .dll file. 48236 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 48237 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 48238 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 48239 FOUND_FREETYPE=no 48240 fi 48241 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 48242 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 48243 # Found lib in isa dir, use that instead. 48244 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 48245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 48246 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 48247 fi 48248 fi 48249 fi 48250 48251 if test "x$FOUND_FREETYPE" = xyes; then 48252 48253 # Only process if variable expands to non-empty 48254 48255 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 48256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48257 48258 # Input might be given as Windows format, start by converting to 48259 # unix format. 48260 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48261 new_path=`$CYGPATH -u "$path"` 48262 48263 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48264 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48265 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48266 # "foo.exe" is OK but "foo" is an error. 48267 # 48268 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48269 # It is also a way to make sure we got the proper file name for the real test later on. 48270 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48271 if test "x$test_shortpath" = x; then 48272 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48273 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48274 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 48275 fi 48276 48277 # Call helper function which possibly converts this using DOS-style short mode. 48278 # If so, the updated path is stored in $new_path. 48279 48280 input_path="$new_path" 48281 # Check if we need to convert this using DOS-style short mode. If the path 48282 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48283 # take no chances and rewrite it. 48284 # Note: m4 eats our [], so we need to use [ and ] instead. 48285 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48286 if test "x$has_forbidden_chars" != x; then 48287 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48288 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48289 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48290 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48291 # Going to short mode and back again did indeed matter. Since short mode is 48292 # case insensitive, let's make it lowercase to improve readability. 48293 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48294 # Now convert it back to Unix-style (cygpath) 48295 input_path=`$CYGPATH -u "$shortmode_path"` 48296 new_path="$input_path" 48297 fi 48298 fi 48299 48300 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48301 if test "x$test_cygdrive_prefix" = x; then 48302 # As a simple fix, exclude /usr/bin since it's not a real path. 48303 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48304 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48305 # a path prefixed by /cygdrive for fixpath to work. 48306 new_path="$CYGWIN_ROOT_PATH$input_path" 48307 fi 48308 fi 48309 48310 48311 if test "x$path" != "x$new_path"; then 48312 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48313 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48314 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48315 fi 48316 48317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48318 48319 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48320 has_colon=`$ECHO $path | $GREP ^.:` 48321 new_path="$path" 48322 if test "x$has_colon" = x; then 48323 # Not in mixed or Windows style, start by that. 48324 new_path=`cmd //c echo $path` 48325 fi 48326 48327 48328 input_path="$new_path" 48329 # Check if we need to convert this using DOS-style short mode. If the path 48330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48331 # take no chances and rewrite it. 48332 # Note: m4 eats our [], so we need to use [ and ] instead. 48333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48334 if test "x$has_forbidden_chars" != x; then 48335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48337 fi 48338 48339 48340 windows_path="$new_path" 48341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48342 unix_path=`$CYGPATH -u "$windows_path"` 48343 new_path="$unix_path" 48344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48346 new_path="$unix_path" 48347 fi 48348 48349 if test "x$path" != "x$new_path"; then 48350 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48351 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48352 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48353 fi 48354 48355 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48356 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48357 48358 else 48359 # We're on a unix platform. Hooray! :) 48360 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48361 has_space=`$ECHO "$path" | $GREP " "` 48362 if test "x$has_space" != x; then 48363 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48364 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48365 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48366 fi 48367 48368 # Use eval to expand a potential ~ 48369 eval path="$path" 48370 if test ! -f "$path" && test ! -d "$path"; then 48371 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48372 fi 48373 48374 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48375 fi 48376 fi 48377 48378 48379 # Only process if variable expands to non-empty 48380 48381 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48383 48384 # Input might be given as Windows format, start by converting to 48385 # unix format. 48386 path="$POTENTIAL_FREETYPE_LIB_PATH" 48387 new_path=`$CYGPATH -u "$path"` 48388 48389 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48390 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48391 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48392 # "foo.exe" is OK but "foo" is an error. 48393 # 48394 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48395 # It is also a way to make sure we got the proper file name for the real test later on. 48396 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48397 if test "x$test_shortpath" = x; then 48398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48399 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48400 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48401 fi 48402 48403 # Call helper function which possibly converts this using DOS-style short mode. 48404 # If so, the updated path is stored in $new_path. 48405 48406 input_path="$new_path" 48407 # Check if we need to convert this using DOS-style short mode. If the path 48408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48409 # take no chances and rewrite it. 48410 # Note: m4 eats our [], so we need to use [ and ] instead. 48411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48412 if test "x$has_forbidden_chars" != x; then 48413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48414 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48415 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48416 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48417 # Going to short mode and back again did indeed matter. Since short mode is 48418 # case insensitive, let's make it lowercase to improve readability. 48419 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48420 # Now convert it back to Unix-style (cygpath) 48421 input_path=`$CYGPATH -u "$shortmode_path"` 48422 new_path="$input_path" 48423 fi 48424 fi 48425 48426 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48427 if test "x$test_cygdrive_prefix" = x; then 48428 # As a simple fix, exclude /usr/bin since it's not a real path. 48429 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48430 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48431 # a path prefixed by /cygdrive for fixpath to work. 48432 new_path="$CYGWIN_ROOT_PATH$input_path" 48433 fi 48434 fi 48435 48436 48437 if test "x$path" != "x$new_path"; then 48438 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48440 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48441 fi 48442 48443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48444 48445 path="$POTENTIAL_FREETYPE_LIB_PATH" 48446 has_colon=`$ECHO $path | $GREP ^.:` 48447 new_path="$path" 48448 if test "x$has_colon" = x; then 48449 # Not in mixed or Windows style, start by that. 48450 new_path=`cmd //c echo $path` 48451 fi 48452 48453 48454 input_path="$new_path" 48455 # Check if we need to convert this using DOS-style short mode. If the path 48456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48457 # take no chances and rewrite it. 48458 # Note: m4 eats our [], so we need to use [ and ] instead. 48459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48460 if test "x$has_forbidden_chars" != x; then 48461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48462 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48463 fi 48464 48465 48466 windows_path="$new_path" 48467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48468 unix_path=`$CYGPATH -u "$windows_path"` 48469 new_path="$unix_path" 48470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48472 new_path="$unix_path" 48473 fi 48474 48475 if test "x$path" != "x$new_path"; then 48476 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48478 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48479 fi 48480 48481 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48482 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48483 48484 else 48485 # We're on a unix platform. Hooray! :) 48486 path="$POTENTIAL_FREETYPE_LIB_PATH" 48487 has_space=`$ECHO "$path" | $GREP " "` 48488 if test "x$has_space" != x; then 48489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48490 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48491 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48492 fi 48493 48494 # Use eval to expand a potential ~ 48495 eval path="$path" 48496 if test ! -f "$path" && test ! -d "$path"; then 48497 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48498 fi 48499 48500 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48501 fi 48502 fi 48503 48504 48505 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48507 $as_echo_n "checking for freetype includes... " >&6; } 48508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48509 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48510 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48512 $as_echo_n "checking for freetype libraries... " >&6; } 48513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48514 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48515 fi 48516 48517 if test "x$FOUND_FREETYPE" != xyes; then 48518 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 48519 fi 48520 else 48521 # User specified only one of lib or include. This is an error. 48522 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 48523 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 48524 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 48525 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 48526 else 48527 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 48528 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 48529 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 48530 fi 48531 fi 48532 else 48533 # User did not specify settings, but we need freetype. Try to locate it. 48534 48535 if test "x$BUNDLE_FREETYPE" = x; then 48536 # If not specified, default is to bundle freetype only on windows 48537 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48538 BUNDLE_FREETYPE=yes 48539 else 48540 BUNDLE_FREETYPE=no 48541 fi 48542 fi 48543 48544 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 48545 if test "x$SYSROOT" = x; then 48546 if test "x$FOUND_FREETYPE" != xyes; then 48547 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 48548 if test "x$PKG_CONFIG" != x; then 48549 48550 pkg_failed=no 48551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 48552 $as_echo_n "checking for FREETYPE... " >&6; } 48553 48554 if test -n "$FREETYPE_CFLAGS"; then 48555 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 48556 elif test -n "$PKG_CONFIG"; then 48557 if test -n "$PKG_CONFIG" && \ 48558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 48559 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 48560 ac_status=$? 48561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48562 test $ac_status = 0; }; then 48563 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 48564 else 48565 pkg_failed=yes 48566 fi 48567 else 48568 pkg_failed=untried 48569 fi 48570 if test -n "$FREETYPE_LIBS"; then 48571 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 48572 elif test -n "$PKG_CONFIG"; then 48573 if test -n "$PKG_CONFIG" && \ 48574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 48575 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 48576 ac_status=$? 48577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48578 test $ac_status = 0; }; then 48579 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 48580 else 48581 pkg_failed=yes 48582 fi 48583 else 48584 pkg_failed=untried 48585 fi 48586 48587 48588 48589 if test $pkg_failed = yes; then 48590 48591 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48592 _pkg_short_errors_supported=yes 48593 else 48594 _pkg_short_errors_supported=no 48595 fi 48596 if test $_pkg_short_errors_supported = yes; then 48597 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 48598 else 48599 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 48600 fi 48601 # Put the nasty error message in config.log where it belongs 48602 echo "$FREETYPE_PKG_ERRORS" >&5 48603 48604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48605 $as_echo "no" >&6; } 48606 FOUND_FREETYPE=no 48607 elif test $pkg_failed = untried; then 48608 FOUND_FREETYPE=no 48609 else 48610 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 48611 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 48612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48613 $as_echo "yes" >&6; } 48614 FOUND_FREETYPE=yes 48615 fi 48616 if test "x$FOUND_FREETYPE" = xyes; then 48617 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 48618 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 48619 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 48620 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 48621 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 48622 fi 48623 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 48624 if test "x$BUNDLE_FREETYPE" = xyes; then 48625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 48626 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 48627 FOUND_FREETYPE=no 48628 else 48629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 48630 $as_echo_n "checking for freetype... " >&6; } 48631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 48632 $as_echo "yes (using pkg-config)" >&6; } 48633 fi 48634 fi 48635 fi 48636 fi 48637 fi 48638 48639 if test "x$FOUND_FREETYPE" != xyes; then 48640 # Check in well-known locations 48641 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48642 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 48643 48644 windows_path="$FREETYPE_BASE_DIR" 48645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48646 unix_path=`$CYGPATH -u "$windows_path"` 48647 FREETYPE_BASE_DIR="$unix_path" 48648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48650 FREETYPE_BASE_DIR="$unix_path" 48651 fi 48652 48653 48654 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 48655 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 48656 METHOD="well-known location" 48657 48658 # Let's start with an optimistic view of the world :-) 48659 FOUND_FREETYPE=yes 48660 48661 # First look for the canonical freetype main include file ft2build.h. 48662 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 48663 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 48664 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 48665 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 48666 # Fail. 48667 FOUND_FREETYPE=no 48668 fi 48669 fi 48670 48671 if test "x$FOUND_FREETYPE" = xyes; then 48672 # Include file found, let's continue the sanity check. 48673 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 48674 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 48675 48676 # Reset to default value 48677 FREETYPE_BASE_NAME=freetype 48678 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 48679 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 48680 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 48681 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 48682 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 48683 # for the .6 version explicitly. 48684 FREETYPE_BASE_NAME=freetype.6 48685 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 48686 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 48687 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 48688 else 48689 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 48690 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 48691 FOUND_FREETYPE=no 48692 fi 48693 else 48694 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48695 # On Windows, we will need both .lib and .dll file. 48696 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 48697 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 48698 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 48699 FOUND_FREETYPE=no 48700 fi 48701 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 48702 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 48703 # Found lib in isa dir, use that instead. 48704 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 48705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 48706 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 48707 fi 48708 fi 48709 fi 48710 48711 if test "x$FOUND_FREETYPE" = xyes; then 48712 48713 # Only process if variable expands to non-empty 48714 48715 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 48716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48717 48718 # Input might be given as Windows format, start by converting to 48719 # unix format. 48720 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48721 new_path=`$CYGPATH -u "$path"` 48722 48723 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48724 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48725 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48726 # "foo.exe" is OK but "foo" is an error. 48727 # 48728 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48729 # It is also a way to make sure we got the proper file name for the real test later on. 48730 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48731 if test "x$test_shortpath" = x; then 48732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48733 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48734 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 48735 fi 48736 48737 # Call helper function which possibly converts this using DOS-style short mode. 48738 # If so, the updated path is stored in $new_path. 48739 48740 input_path="$new_path" 48741 # Check if we need to convert this using DOS-style short mode. If the path 48742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48743 # take no chances and rewrite it. 48744 # Note: m4 eats our [], so we need to use [ and ] instead. 48745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48746 if test "x$has_forbidden_chars" != x; then 48747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48748 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48749 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48750 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48751 # Going to short mode and back again did indeed matter. Since short mode is 48752 # case insensitive, let's make it lowercase to improve readability. 48753 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48754 # Now convert it back to Unix-style (cygpath) 48755 input_path=`$CYGPATH -u "$shortmode_path"` 48756 new_path="$input_path" 48757 fi 48758 fi 48759 48760 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48761 if test "x$test_cygdrive_prefix" = x; then 48762 # As a simple fix, exclude /usr/bin since it's not a real path. 48763 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48764 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48765 # a path prefixed by /cygdrive for fixpath to work. 48766 new_path="$CYGWIN_ROOT_PATH$input_path" 48767 fi 48768 fi 48769 48770 48771 if test "x$path" != "x$new_path"; then 48772 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48773 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48774 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48775 fi 48776 48777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48778 48779 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48780 has_colon=`$ECHO $path | $GREP ^.:` 48781 new_path="$path" 48782 if test "x$has_colon" = x; then 48783 # Not in mixed or Windows style, start by that. 48784 new_path=`cmd //c echo $path` 48785 fi 48786 48787 48788 input_path="$new_path" 48789 # Check if we need to convert this using DOS-style short mode. If the path 48790 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48791 # take no chances and rewrite it. 48792 # Note: m4 eats our [], so we need to use [ and ] instead. 48793 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48794 if test "x$has_forbidden_chars" != x; then 48795 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48796 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48797 fi 48798 48799 48800 windows_path="$new_path" 48801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48802 unix_path=`$CYGPATH -u "$windows_path"` 48803 new_path="$unix_path" 48804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48806 new_path="$unix_path" 48807 fi 48808 48809 if test "x$path" != "x$new_path"; then 48810 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 48811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48812 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48813 fi 48814 48815 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48816 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48817 48818 else 48819 # We're on a unix platform. Hooray! :) 48820 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48821 has_space=`$ECHO "$path" | $GREP " "` 48822 if test "x$has_space" != x; then 48823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48824 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48825 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48826 fi 48827 48828 # Use eval to expand a potential ~ 48829 eval path="$path" 48830 if test ! -f "$path" && test ! -d "$path"; then 48831 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48832 fi 48833 48834 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48835 fi 48836 fi 48837 48838 48839 # Only process if variable expands to non-empty 48840 48841 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 48842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48843 48844 # Input might be given as Windows format, start by converting to 48845 # unix format. 48846 path="$POTENTIAL_FREETYPE_LIB_PATH" 48847 new_path=`$CYGPATH -u "$path"` 48848 48849 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48850 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48851 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48852 # "foo.exe" is OK but "foo" is an error. 48853 # 48854 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48855 # It is also a way to make sure we got the proper file name for the real test later on. 48856 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48857 if test "x$test_shortpath" = x; then 48858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48859 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48860 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 48861 fi 48862 48863 # Call helper function which possibly converts this using DOS-style short mode. 48864 # If so, the updated path is stored in $new_path. 48865 48866 input_path="$new_path" 48867 # Check if we need to convert this using DOS-style short mode. If the path 48868 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48869 # take no chances and rewrite it. 48870 # Note: m4 eats our [], so we need to use [ and ] instead. 48871 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48872 if test "x$has_forbidden_chars" != x; then 48873 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48874 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48875 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48876 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48877 # Going to short mode and back again did indeed matter. Since short mode is 48878 # case insensitive, let's make it lowercase to improve readability. 48879 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48880 # Now convert it back to Unix-style (cygpath) 48881 input_path=`$CYGPATH -u "$shortmode_path"` 48882 new_path="$input_path" 48883 fi 48884 fi 48885 48886 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48887 if test "x$test_cygdrive_prefix" = x; then 48888 # As a simple fix, exclude /usr/bin since it's not a real path. 48889 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48890 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48891 # a path prefixed by /cygdrive for fixpath to work. 48892 new_path="$CYGWIN_ROOT_PATH$input_path" 48893 fi 48894 fi 48895 48896 48897 if test "x$path" != "x$new_path"; then 48898 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48900 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48901 fi 48902 48903 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48904 48905 path="$POTENTIAL_FREETYPE_LIB_PATH" 48906 has_colon=`$ECHO $path | $GREP ^.:` 48907 new_path="$path" 48908 if test "x$has_colon" = x; then 48909 # Not in mixed or Windows style, start by that. 48910 new_path=`cmd //c echo $path` 48911 fi 48912 48913 48914 input_path="$new_path" 48915 # Check if we need to convert this using DOS-style short mode. If the path 48916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48917 # take no chances and rewrite it. 48918 # Note: m4 eats our [], so we need to use [ and ] instead. 48919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48920 if test "x$has_forbidden_chars" != x; then 48921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48922 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48923 fi 48924 48925 48926 windows_path="$new_path" 48927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48928 unix_path=`$CYGPATH -u "$windows_path"` 48929 new_path="$unix_path" 48930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48932 new_path="$unix_path" 48933 fi 48934 48935 if test "x$path" != "x$new_path"; then 48936 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 48937 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 48938 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48939 fi 48940 48941 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48942 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48943 48944 else 48945 # We're on a unix platform. Hooray! :) 48946 path="$POTENTIAL_FREETYPE_LIB_PATH" 48947 has_space=`$ECHO "$path" | $GREP " "` 48948 if test "x$has_space" != x; then 48949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48950 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48951 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48952 fi 48953 48954 # Use eval to expand a potential ~ 48955 eval path="$path" 48956 if test ! -f "$path" && test ! -d "$path"; then 48957 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48958 fi 48959 48960 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48961 fi 48962 fi 48963 48964 48965 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 48966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 48967 $as_echo_n "checking for freetype includes... " >&6; } 48968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 48969 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 48970 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 48971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 48972 $as_echo_n "checking for freetype libraries... " >&6; } 48973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 48974 $as_echo "$FREETYPE_LIB_PATH" >&6; } 48975 fi 48976 48977 if test "x$FOUND_FREETYPE" != xyes; then 48978 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 48979 48980 windows_path="$FREETYPE_BASE_DIR" 48981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48982 unix_path=`$CYGPATH -u "$windows_path"` 48983 FREETYPE_BASE_DIR="$unix_path" 48984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48986 FREETYPE_BASE_DIR="$unix_path" 48987 fi 48988 48989 48990 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 48991 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 48992 METHOD="well-known location" 48993 48994 # Let's start with an optimistic view of the world :-) 48995 FOUND_FREETYPE=yes 48996 48997 # First look for the canonical freetype main include file ft2build.h. 48998 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 48999 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 49000 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 49001 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49002 # Fail. 49003 FOUND_FREETYPE=no 49004 fi 49005 fi 49006 49007 if test "x$FOUND_FREETYPE" = xyes; then 49008 # Include file found, let's continue the sanity check. 49009 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 49010 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 49011 49012 # Reset to default value 49013 FREETYPE_BASE_NAME=freetype 49014 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49015 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 49016 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 49017 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 49018 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 49019 # for the .6 version explicitly. 49020 FREETYPE_BASE_NAME=freetype.6 49021 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49022 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 49023 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 49024 else 49025 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 49026 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 49027 FOUND_FREETYPE=no 49028 fi 49029 else 49030 if test "x$OPENJDK_TARGET_OS" = xwindows; then 49031 # On Windows, we will need both .lib and .dll file. 49032 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 49033 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 49034 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 49035 FOUND_FREETYPE=no 49036 fi 49037 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 49038 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 49039 # Found lib in isa dir, use that instead. 49040 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 49041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 49042 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 49043 fi 49044 fi 49045 fi 49046 49047 if test "x$FOUND_FREETYPE" = xyes; then 49048 49049 # Only process if variable expands to non-empty 49050 49051 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 49052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49053 49054 # Input might be given as Windows format, start by converting to 49055 # unix format. 49056 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49057 new_path=`$CYGPATH -u "$path"` 49058 49059 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49060 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49061 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49062 # "foo.exe" is OK but "foo" is an error. 49063 # 49064 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49065 # It is also a way to make sure we got the proper file name for the real test later on. 49066 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49067 if test "x$test_shortpath" = x; then 49068 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 49069 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 49070 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 49071 fi 49072 49073 # Call helper function which possibly converts this using DOS-style short mode. 49074 # If so, the updated path is stored in $new_path. 49075 49076 input_path="$new_path" 49077 # Check if we need to convert this using DOS-style short mode. If the path 49078 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49079 # take no chances and rewrite it. 49080 # Note: m4 eats our [], so we need to use [ and ] instead. 49081 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49082 if test "x$has_forbidden_chars" != x; then 49083 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49084 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49085 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49086 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49087 # Going to short mode and back again did indeed matter. Since short mode is 49088 # case insensitive, let's make it lowercase to improve readability. 49089 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49090 # Now convert it back to Unix-style (cygpath) 49091 input_path=`$CYGPATH -u "$shortmode_path"` 49092 new_path="$input_path" 49093 fi 49094 fi 49095 49096 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49097 if test "x$test_cygdrive_prefix" = x; then 49098 # As a simple fix, exclude /usr/bin since it's not a real path. 49099 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49100 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49101 # a path prefixed by /cygdrive for fixpath to work. 49102 new_path="$CYGWIN_ROOT_PATH$input_path" 49103 fi 49104 fi 49105 49106 49107 if test "x$path" != "x$new_path"; then 49108 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 49109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 49110 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 49111 fi 49112 49113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49114 49115 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49116 has_colon=`$ECHO $path | $GREP ^.:` 49117 new_path="$path" 49118 if test "x$has_colon" = x; then 49119 # Not in mixed or Windows style, start by that. 49120 new_path=`cmd //c echo $path` 49121 fi 49122 49123 49124 input_path="$new_path" 49125 # Check if we need to convert this using DOS-style short mode. If the path 49126 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49127 # take no chances and rewrite it. 49128 # Note: m4 eats our [], so we need to use [ and ] instead. 49129 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49130 if test "x$has_forbidden_chars" != x; then 49131 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49132 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49133 fi 49134 49135 49136 windows_path="$new_path" 49137 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49138 unix_path=`$CYGPATH -u "$windows_path"` 49139 new_path="$unix_path" 49140 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49141 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49142 new_path="$unix_path" 49143 fi 49144 49145 if test "x$path" != "x$new_path"; then 49146 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 49147 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 49148 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 49149 fi 49150 49151 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49152 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49153 49154 else 49155 # We're on a unix platform. Hooray! :) 49156 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49157 has_space=`$ECHO "$path" | $GREP " "` 49158 if test "x$has_space" != x; then 49159 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 49160 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 49161 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49162 fi 49163 49164 # Use eval to expand a potential ~ 49165 eval path="$path" 49166 if test ! -f "$path" && test ! -d "$path"; then 49167 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 49168 fi 49169 49170 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 49171 fi 49172 fi 49173 49174 49175 # Only process if variable expands to non-empty 49176 49177 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 49178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49179 49180 # Input might be given as Windows format, start by converting to 49181 # unix format. 49182 path="$POTENTIAL_FREETYPE_LIB_PATH" 49183 new_path=`$CYGPATH -u "$path"` 49184 49185 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49186 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49187 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49188 # "foo.exe" is OK but "foo" is an error. 49189 # 49190 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49191 # It is also a way to make sure we got the proper file name for the real test later on. 49192 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49193 if test "x$test_shortpath" = x; then 49194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 49195 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 49196 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 49197 fi 49198 49199 # Call helper function which possibly converts this using DOS-style short mode. 49200 # If so, the updated path is stored in $new_path. 49201 49202 input_path="$new_path" 49203 # Check if we need to convert this using DOS-style short mode. If the path 49204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49205 # take no chances and rewrite it. 49206 # Note: m4 eats our [], so we need to use [ and ] instead. 49207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49208 if test "x$has_forbidden_chars" != x; then 49209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49210 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49211 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49212 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49213 # Going to short mode and back again did indeed matter. Since short mode is 49214 # case insensitive, let's make it lowercase to improve readability. 49215 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49216 # Now convert it back to Unix-style (cygpath) 49217 input_path=`$CYGPATH -u "$shortmode_path"` 49218 new_path="$input_path" 49219 fi 49220 fi 49221 49222 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49223 if test "x$test_cygdrive_prefix" = x; then 49224 # As a simple fix, exclude /usr/bin since it's not a real path. 49225 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49226 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49227 # a path prefixed by /cygdrive for fixpath to work. 49228 new_path="$CYGWIN_ROOT_PATH$input_path" 49229 fi 49230 fi 49231 49232 49233 if test "x$path" != "x$new_path"; then 49234 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 49235 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 49236 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 49237 fi 49238 49239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49240 49241 path="$POTENTIAL_FREETYPE_LIB_PATH" 49242 has_colon=`$ECHO $path | $GREP ^.:` 49243 new_path="$path" 49244 if test "x$has_colon" = x; then 49245 # Not in mixed or Windows style, start by that. 49246 new_path=`cmd //c echo $path` 49247 fi 49248 49249 49250 input_path="$new_path" 49251 # Check if we need to convert this using DOS-style short mode. If the path 49252 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49253 # take no chances and rewrite it. 49254 # Note: m4 eats our [], so we need to use [ and ] instead. 49255 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49256 if test "x$has_forbidden_chars" != x; then 49257 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49258 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49259 fi 49260 49261 49262 windows_path="$new_path" 49263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49264 unix_path=`$CYGPATH -u "$windows_path"` 49265 new_path="$unix_path" 49266 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49267 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49268 new_path="$unix_path" 49269 fi 49270 49271 if test "x$path" != "x$new_path"; then 49272 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 49273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 49274 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 49275 fi 49276 49277 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49278 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49279 49280 else 49281 # We're on a unix platform. Hooray! :) 49282 path="$POTENTIAL_FREETYPE_LIB_PATH" 49283 has_space=`$ECHO "$path" | $GREP " "` 49284 if test "x$has_space" != x; then 49285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 49286 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 49287 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49288 fi 49289 49290 # Use eval to expand a potential ~ 49291 eval path="$path" 49292 if test ! -f "$path" && test ! -d "$path"; then 49293 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 49294 fi 49295 49296 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 49297 fi 49298 fi 49299 49300 49301 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 49303 $as_echo_n "checking for freetype includes... " >&6; } 49304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 49305 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 49306 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 49307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 49308 $as_echo_n "checking for freetype libraries... " >&6; } 49309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 49310 $as_echo "$FREETYPE_LIB_PATH" >&6; } 49311 fi 49312 49313 fi 49314 else 49315 FREETYPE_BASE_DIR="$SYSROOT/usr" 49316 49317 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 49318 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 49319 METHOD="well-known location" 49320 49321 # Let's start with an optimistic view of the world :-) 49322 FOUND_FREETYPE=yes 49323 49324 # First look for the canonical freetype main include file ft2build.h. 49325 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49326 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 49327 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 49328 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49329 # Fail. 49330 FOUND_FREETYPE=no 49331 fi 49332 fi 49333 49334 if test "x$FOUND_FREETYPE" = xyes; then 49335 # Include file found, let's continue the sanity check. 49336 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 49337 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 49338 49339 # Reset to default value 49340 FREETYPE_BASE_NAME=freetype 49341 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49342 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 49343 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 49344 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 49345 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 49346 # for the .6 version explicitly. 49347 FREETYPE_BASE_NAME=freetype.6 49348 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49349 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 49350 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 49351 else 49352 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 49353 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 49354 FOUND_FREETYPE=no 49355 fi 49356 else 49357 if test "x$OPENJDK_TARGET_OS" = xwindows; then 49358 # On Windows, we will need both .lib and .dll file. 49359 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 49360 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 49361 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 49362 FOUND_FREETYPE=no 49363 fi 49364 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 49365 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 49366 # Found lib in isa dir, use that instead. 49367 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 49368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 49369 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 49370 fi 49371 fi 49372 fi 49373 49374 if test "x$FOUND_FREETYPE" = xyes; then 49375 49376 # Only process if variable expands to non-empty 49377 49378 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 49379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49380 49381 # Input might be given as Windows format, start by converting to 49382 # unix format. 49383 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49384 new_path=`$CYGPATH -u "$path"` 49385 49386 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49387 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49388 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49389 # "foo.exe" is OK but "foo" is an error. 49390 # 49391 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49392 # It is also a way to make sure we got the proper file name for the real test later on. 49393 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49394 if test "x$test_shortpath" = x; then 49395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 49396 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 49397 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 49398 fi 49399 49400 # Call helper function which possibly converts this using DOS-style short mode. 49401 # If so, the updated path is stored in $new_path. 49402 49403 input_path="$new_path" 49404 # Check if we need to convert this using DOS-style short mode. If the path 49405 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49406 # take no chances and rewrite it. 49407 # Note: m4 eats our [], so we need to use [ and ] instead. 49408 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49409 if test "x$has_forbidden_chars" != x; then 49410 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49411 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49412 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49413 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49414 # Going to short mode and back again did indeed matter. Since short mode is 49415 # case insensitive, let's make it lowercase to improve readability. 49416 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49417 # Now convert it back to Unix-style (cygpath) 49418 input_path=`$CYGPATH -u "$shortmode_path"` 49419 new_path="$input_path" 49420 fi 49421 fi 49422 49423 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49424 if test "x$test_cygdrive_prefix" = x; then 49425 # As a simple fix, exclude /usr/bin since it's not a real path. 49426 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49427 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49428 # a path prefixed by /cygdrive for fixpath to work. 49429 new_path="$CYGWIN_ROOT_PATH$input_path" 49430 fi 49431 fi 49432 49433 49434 if test "x$path" != "x$new_path"; then 49435 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 49436 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 49437 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 49438 fi 49439 49440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49441 49442 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49443 has_colon=`$ECHO $path | $GREP ^.:` 49444 new_path="$path" 49445 if test "x$has_colon" = x; then 49446 # Not in mixed or Windows style, start by that. 49447 new_path=`cmd //c echo $path` 49448 fi 49449 49450 49451 input_path="$new_path" 49452 # Check if we need to convert this using DOS-style short mode. If the path 49453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49454 # take no chances and rewrite it. 49455 # Note: m4 eats our [], so we need to use [ and ] instead. 49456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49457 if test "x$has_forbidden_chars" != x; then 49458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49459 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49460 fi 49461 49462 49463 windows_path="$new_path" 49464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49465 unix_path=`$CYGPATH -u "$windows_path"` 49466 new_path="$unix_path" 49467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49469 new_path="$unix_path" 49470 fi 49471 49472 if test "x$path" != "x$new_path"; then 49473 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 49474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 49475 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 49476 fi 49477 49478 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49479 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49480 49481 else 49482 # We're on a unix platform. Hooray! :) 49483 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49484 has_space=`$ECHO "$path" | $GREP " "` 49485 if test "x$has_space" != x; then 49486 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 49487 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 49488 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49489 fi 49490 49491 # Use eval to expand a potential ~ 49492 eval path="$path" 49493 if test ! -f "$path" && test ! -d "$path"; then 49494 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 49495 fi 49496 49497 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 49498 fi 49499 fi 49500 49501 49502 # Only process if variable expands to non-empty 49503 49504 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 49505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49506 49507 # Input might be given as Windows format, start by converting to 49508 # unix format. 49509 path="$POTENTIAL_FREETYPE_LIB_PATH" 49510 new_path=`$CYGPATH -u "$path"` 49511 49512 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49513 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49514 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49515 # "foo.exe" is OK but "foo" is an error. 49516 # 49517 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49518 # It is also a way to make sure we got the proper file name for the real test later on. 49519 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49520 if test "x$test_shortpath" = x; then 49521 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 49522 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 49523 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 49524 fi 49525 49526 # Call helper function which possibly converts this using DOS-style short mode. 49527 # If so, the updated path is stored in $new_path. 49528 49529 input_path="$new_path" 49530 # Check if we need to convert this using DOS-style short mode. If the path 49531 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49532 # take no chances and rewrite it. 49533 # Note: m4 eats our [], so we need to use [ and ] instead. 49534 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49535 if test "x$has_forbidden_chars" != x; then 49536 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49537 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49538 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49539 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49540 # Going to short mode and back again did indeed matter. Since short mode is 49541 # case insensitive, let's make it lowercase to improve readability. 49542 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49543 # Now convert it back to Unix-style (cygpath) 49544 input_path=`$CYGPATH -u "$shortmode_path"` 49545 new_path="$input_path" 49546 fi 49547 fi 49548 49549 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49550 if test "x$test_cygdrive_prefix" = x; then 49551 # As a simple fix, exclude /usr/bin since it's not a real path. 49552 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49553 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49554 # a path prefixed by /cygdrive for fixpath to work. 49555 new_path="$CYGWIN_ROOT_PATH$input_path" 49556 fi 49557 fi 49558 49559 49560 if test "x$path" != "x$new_path"; then 49561 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 49562 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 49563 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 49564 fi 49565 49566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49567 49568 path="$POTENTIAL_FREETYPE_LIB_PATH" 49569 has_colon=`$ECHO $path | $GREP ^.:` 49570 new_path="$path" 49571 if test "x$has_colon" = x; then 49572 # Not in mixed or Windows style, start by that. 49573 new_path=`cmd //c echo $path` 49574 fi 49575 49576 49577 input_path="$new_path" 49578 # Check if we need to convert this using DOS-style short mode. If the path 49579 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49580 # take no chances and rewrite it. 49581 # Note: m4 eats our [], so we need to use [ and ] instead. 49582 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49583 if test "x$has_forbidden_chars" != x; then 49584 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49585 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49586 fi 49587 49588 49589 windows_path="$new_path" 49590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49591 unix_path=`$CYGPATH -u "$windows_path"` 49592 new_path="$unix_path" 49593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49594 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49595 new_path="$unix_path" 49596 fi 49597 49598 if test "x$path" != "x$new_path"; then 49599 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 49600 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 49601 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 49602 fi 49603 49604 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49605 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49606 49607 else 49608 # We're on a unix platform. Hooray! :) 49609 path="$POTENTIAL_FREETYPE_LIB_PATH" 49610 has_space=`$ECHO "$path" | $GREP " "` 49611 if test "x$has_space" != x; then 49612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 49613 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 49614 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49615 fi 49616 49617 # Use eval to expand a potential ~ 49618 eval path="$path" 49619 if test ! -f "$path" && test ! -d "$path"; then 49620 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 49621 fi 49622 49623 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 49624 fi 49625 fi 49626 49627 49628 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 49630 $as_echo_n "checking for freetype includes... " >&6; } 49631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 49632 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 49633 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 49634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 49635 $as_echo_n "checking for freetype libraries... " >&6; } 49636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 49637 $as_echo "$FREETYPE_LIB_PATH" >&6; } 49638 fi 49639 49640 49641 if test "x$FOUND_FREETYPE" != xyes; then 49642 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 49643 49644 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 49645 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 49646 METHOD="well-known location" 49647 49648 # Let's start with an optimistic view of the world :-) 49649 FOUND_FREETYPE=yes 49650 49651 # First look for the canonical freetype main include file ft2build.h. 49652 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49653 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 49654 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 49655 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49656 # Fail. 49657 FOUND_FREETYPE=no 49658 fi 49659 fi 49660 49661 if test "x$FOUND_FREETYPE" = xyes; then 49662 # Include file found, let's continue the sanity check. 49663 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 49664 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 49665 49666 # Reset to default value 49667 FREETYPE_BASE_NAME=freetype 49668 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49669 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 49670 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 49671 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 49672 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 49673 # for the .6 version explicitly. 49674 FREETYPE_BASE_NAME=freetype.6 49675 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49676 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 49677 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 49678 else 49679 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 49680 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 49681 FOUND_FREETYPE=no 49682 fi 49683 else 49684 if test "x$OPENJDK_TARGET_OS" = xwindows; then 49685 # On Windows, we will need both .lib and .dll file. 49686 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 49687 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 49688 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 49689 FOUND_FREETYPE=no 49690 fi 49691 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 49692 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 49693 # Found lib in isa dir, use that instead. 49694 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 49695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 49696 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 49697 fi 49698 fi 49699 fi 49700 49701 if test "x$FOUND_FREETYPE" = xyes; then 49702 49703 # Only process if variable expands to non-empty 49704 49705 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 49706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49707 49708 # Input might be given as Windows format, start by converting to 49709 # unix format. 49710 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49711 new_path=`$CYGPATH -u "$path"` 49712 49713 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49714 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49715 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49716 # "foo.exe" is OK but "foo" is an error. 49717 # 49718 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49719 # It is also a way to make sure we got the proper file name for the real test later on. 49720 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49721 if test "x$test_shortpath" = x; then 49722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 49723 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 49724 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 49725 fi 49726 49727 # Call helper function which possibly converts this using DOS-style short mode. 49728 # If so, the updated path is stored in $new_path. 49729 49730 input_path="$new_path" 49731 # Check if we need to convert this using DOS-style short mode. If the path 49732 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49733 # take no chances and rewrite it. 49734 # Note: m4 eats our [], so we need to use [ and ] instead. 49735 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49736 if test "x$has_forbidden_chars" != x; then 49737 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49738 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49739 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49740 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49741 # Going to short mode and back again did indeed matter. Since short mode is 49742 # case insensitive, let's make it lowercase to improve readability. 49743 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49744 # Now convert it back to Unix-style (cygpath) 49745 input_path=`$CYGPATH -u "$shortmode_path"` 49746 new_path="$input_path" 49747 fi 49748 fi 49749 49750 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49751 if test "x$test_cygdrive_prefix" = x; then 49752 # As a simple fix, exclude /usr/bin since it's not a real path. 49753 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49754 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49755 # a path prefixed by /cygdrive for fixpath to work. 49756 new_path="$CYGWIN_ROOT_PATH$input_path" 49757 fi 49758 fi 49759 49760 49761 if test "x$path" != "x$new_path"; then 49762 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 49763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 49764 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 49765 fi 49766 49767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49768 49769 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49770 has_colon=`$ECHO $path | $GREP ^.:` 49771 new_path="$path" 49772 if test "x$has_colon" = x; then 49773 # Not in mixed or Windows style, start by that. 49774 new_path=`cmd //c echo $path` 49775 fi 49776 49777 49778 input_path="$new_path" 49779 # Check if we need to convert this using DOS-style short mode. If the path 49780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49781 # take no chances and rewrite it. 49782 # Note: m4 eats our [], so we need to use [ and ] instead. 49783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49784 if test "x$has_forbidden_chars" != x; then 49785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49786 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49787 fi 49788 49789 49790 windows_path="$new_path" 49791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49792 unix_path=`$CYGPATH -u "$windows_path"` 49793 new_path="$unix_path" 49794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49796 new_path="$unix_path" 49797 fi 49798 49799 if test "x$path" != "x$new_path"; then 49800 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 49801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 49802 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 49803 fi 49804 49805 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49806 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49807 49808 else 49809 # We're on a unix platform. Hooray! :) 49810 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49811 has_space=`$ECHO "$path" | $GREP " "` 49812 if test "x$has_space" != x; then 49813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 49814 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 49815 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49816 fi 49817 49818 # Use eval to expand a potential ~ 49819 eval path="$path" 49820 if test ! -f "$path" && test ! -d "$path"; then 49821 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 49822 fi 49823 49824 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 49825 fi 49826 fi 49827 49828 49829 # Only process if variable expands to non-empty 49830 49831 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 49832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49833 49834 # Input might be given as Windows format, start by converting to 49835 # unix format. 49836 path="$POTENTIAL_FREETYPE_LIB_PATH" 49837 new_path=`$CYGPATH -u "$path"` 49838 49839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49842 # "foo.exe" is OK but "foo" is an error. 49843 # 49844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49845 # It is also a way to make sure we got the proper file name for the real test later on. 49846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49847 if test "x$test_shortpath" = x; then 49848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 49849 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 49850 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 49851 fi 49852 49853 # Call helper function which possibly converts this using DOS-style short mode. 49854 # If so, the updated path is stored in $new_path. 49855 49856 input_path="$new_path" 49857 # Check if we need to convert this using DOS-style short mode. If the path 49858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49859 # take no chances and rewrite it. 49860 # Note: m4 eats our [], so we need to use [ and ] instead. 49861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49862 if test "x$has_forbidden_chars" != x; then 49863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49867 # Going to short mode and back again did indeed matter. Since short mode is 49868 # case insensitive, let's make it lowercase to improve readability. 49869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49870 # Now convert it back to Unix-style (cygpath) 49871 input_path=`$CYGPATH -u "$shortmode_path"` 49872 new_path="$input_path" 49873 fi 49874 fi 49875 49876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49877 if test "x$test_cygdrive_prefix" = x; then 49878 # As a simple fix, exclude /usr/bin since it's not a real path. 49879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49881 # a path prefixed by /cygdrive for fixpath to work. 49882 new_path="$CYGWIN_ROOT_PATH$input_path" 49883 fi 49884 fi 49885 49886 49887 if test "x$path" != "x$new_path"; then 49888 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 49889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 49890 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 49891 fi 49892 49893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49894 49895 path="$POTENTIAL_FREETYPE_LIB_PATH" 49896 has_colon=`$ECHO $path | $GREP ^.:` 49897 new_path="$path" 49898 if test "x$has_colon" = x; then 49899 # Not in mixed or Windows style, start by that. 49900 new_path=`cmd //c echo $path` 49901 fi 49902 49903 49904 input_path="$new_path" 49905 # Check if we need to convert this using DOS-style short mode. If the path 49906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49907 # take no chances and rewrite it. 49908 # Note: m4 eats our [], so we need to use [ and ] instead. 49909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49910 if test "x$has_forbidden_chars" != x; then 49911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49913 fi 49914 49915 49916 windows_path="$new_path" 49917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49918 unix_path=`$CYGPATH -u "$windows_path"` 49919 new_path="$unix_path" 49920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49922 new_path="$unix_path" 49923 fi 49924 49925 if test "x$path" != "x$new_path"; then 49926 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 49927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 49928 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 49929 fi 49930 49931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49933 49934 else 49935 # We're on a unix platform. Hooray! :) 49936 path="$POTENTIAL_FREETYPE_LIB_PATH" 49937 has_space=`$ECHO "$path" | $GREP " "` 49938 if test "x$has_space" != x; then 49939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 49940 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 49941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49942 fi 49943 49944 # Use eval to expand a potential ~ 49945 eval path="$path" 49946 if test ! -f "$path" && test ! -d "$path"; then 49947 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 49948 fi 49949 49950 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 49951 fi 49952 fi 49953 49954 49955 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 49956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 49957 $as_echo_n "checking for freetype includes... " >&6; } 49958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 49959 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 49960 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 49961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 49962 $as_echo_n "checking for freetype libraries... " >&6; } 49963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 49964 $as_echo "$FREETYPE_LIB_PATH" >&6; } 49965 fi 49966 49967 fi 49968 49969 if test "x$FOUND_FREETYPE" != xyes; then 49970 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 49971 49972 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 49973 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 49974 METHOD="well-known location" 49975 49976 # Let's start with an optimistic view of the world :-) 49977 FOUND_FREETYPE=yes 49978 49979 # First look for the canonical freetype main include file ft2build.h. 49980 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49981 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 49982 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 49983 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 49984 # Fail. 49985 FOUND_FREETYPE=no 49986 fi 49987 fi 49988 49989 if test "x$FOUND_FREETYPE" = xyes; then 49990 # Include file found, let's continue the sanity check. 49991 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 49992 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 49993 49994 # Reset to default value 49995 FREETYPE_BASE_NAME=freetype 49996 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 49997 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 49998 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 49999 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 50000 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 50001 # for the .6 version explicitly. 50002 FREETYPE_BASE_NAME=freetype.6 50003 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50004 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 50005 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 50006 else 50007 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 50008 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 50009 FOUND_FREETYPE=no 50010 fi 50011 else 50012 if test "x$OPENJDK_TARGET_OS" = xwindows; then 50013 # On Windows, we will need both .lib and .dll file. 50014 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 50015 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 50016 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 50017 FOUND_FREETYPE=no 50018 fi 50019 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 50020 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 50021 # Found lib in isa dir, use that instead. 50022 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 50023 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 50024 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 50025 fi 50026 fi 50027 fi 50028 50029 if test "x$FOUND_FREETYPE" = xyes; then 50030 50031 # Only process if variable expands to non-empty 50032 50033 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 50034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50035 50036 # Input might be given as Windows format, start by converting to 50037 # unix format. 50038 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50039 new_path=`$CYGPATH -u "$path"` 50040 50041 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50042 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50043 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50044 # "foo.exe" is OK but "foo" is an error. 50045 # 50046 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50047 # It is also a way to make sure we got the proper file name for the real test later on. 50048 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50049 if test "x$test_shortpath" = x; then 50050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 50051 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 50052 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 50053 fi 50054 50055 # Call helper function which possibly converts this using DOS-style short mode. 50056 # If so, the updated path is stored in $new_path. 50057 50058 input_path="$new_path" 50059 # Check if we need to convert this using DOS-style short mode. If the path 50060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50061 # take no chances and rewrite it. 50062 # Note: m4 eats our [], so we need to use [ and ] instead. 50063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50064 if test "x$has_forbidden_chars" != x; then 50065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50066 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50067 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50068 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50069 # Going to short mode and back again did indeed matter. Since short mode is 50070 # case insensitive, let's make it lowercase to improve readability. 50071 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50072 # Now convert it back to Unix-style (cygpath) 50073 input_path=`$CYGPATH -u "$shortmode_path"` 50074 new_path="$input_path" 50075 fi 50076 fi 50077 50078 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50079 if test "x$test_cygdrive_prefix" = x; then 50080 # As a simple fix, exclude /usr/bin since it's not a real path. 50081 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50082 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50083 # a path prefixed by /cygdrive for fixpath to work. 50084 new_path="$CYGWIN_ROOT_PATH$input_path" 50085 fi 50086 fi 50087 50088 50089 if test "x$path" != "x$new_path"; then 50090 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 50091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 50092 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 50093 fi 50094 50095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50096 50097 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50098 has_colon=`$ECHO $path | $GREP ^.:` 50099 new_path="$path" 50100 if test "x$has_colon" = x; then 50101 # Not in mixed or Windows style, start by that. 50102 new_path=`cmd //c echo $path` 50103 fi 50104 50105 50106 input_path="$new_path" 50107 # Check if we need to convert this using DOS-style short mode. If the path 50108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50109 # take no chances and rewrite it. 50110 # Note: m4 eats our [], so we need to use [ and ] instead. 50111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50112 if test "x$has_forbidden_chars" != x; then 50113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50114 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50115 fi 50116 50117 50118 windows_path="$new_path" 50119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50120 unix_path=`$CYGPATH -u "$windows_path"` 50121 new_path="$unix_path" 50122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50124 new_path="$unix_path" 50125 fi 50126 50127 if test "x$path" != "x$new_path"; then 50128 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 50129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 50130 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 50131 fi 50132 50133 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50134 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50135 50136 else 50137 # We're on a unix platform. Hooray! :) 50138 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50139 has_space=`$ECHO "$path" | $GREP " "` 50140 if test "x$has_space" != x; then 50141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 50142 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 50143 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50144 fi 50145 50146 # Use eval to expand a potential ~ 50147 eval path="$path" 50148 if test ! -f "$path" && test ! -d "$path"; then 50149 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 50150 fi 50151 50152 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 50153 fi 50154 fi 50155 50156 50157 # Only process if variable expands to non-empty 50158 50159 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 50160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50161 50162 # Input might be given as Windows format, start by converting to 50163 # unix format. 50164 path="$POTENTIAL_FREETYPE_LIB_PATH" 50165 new_path=`$CYGPATH -u "$path"` 50166 50167 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50168 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50169 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50170 # "foo.exe" is OK but "foo" is an error. 50171 # 50172 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50173 # It is also a way to make sure we got the proper file name for the real test later on. 50174 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50175 if test "x$test_shortpath" = x; then 50176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 50177 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 50178 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 50179 fi 50180 50181 # Call helper function which possibly converts this using DOS-style short mode. 50182 # If so, the updated path is stored in $new_path. 50183 50184 input_path="$new_path" 50185 # Check if we need to convert this using DOS-style short mode. If the path 50186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50187 # take no chances and rewrite it. 50188 # Note: m4 eats our [], so we need to use [ and ] instead. 50189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50190 if test "x$has_forbidden_chars" != x; then 50191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50195 # Going to short mode and back again did indeed matter. Since short mode is 50196 # case insensitive, let's make it lowercase to improve readability. 50197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50198 # Now convert it back to Unix-style (cygpath) 50199 input_path=`$CYGPATH -u "$shortmode_path"` 50200 new_path="$input_path" 50201 fi 50202 fi 50203 50204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50205 if test "x$test_cygdrive_prefix" = x; then 50206 # As a simple fix, exclude /usr/bin since it's not a real path. 50207 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50209 # a path prefixed by /cygdrive for fixpath to work. 50210 new_path="$CYGWIN_ROOT_PATH$input_path" 50211 fi 50212 fi 50213 50214 50215 if test "x$path" != "x$new_path"; then 50216 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 50217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 50218 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 50219 fi 50220 50221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50222 50223 path="$POTENTIAL_FREETYPE_LIB_PATH" 50224 has_colon=`$ECHO $path | $GREP ^.:` 50225 new_path="$path" 50226 if test "x$has_colon" = x; then 50227 # Not in mixed or Windows style, start by that. 50228 new_path=`cmd //c echo $path` 50229 fi 50230 50231 50232 input_path="$new_path" 50233 # Check if we need to convert this using DOS-style short mode. If the path 50234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50235 # take no chances and rewrite it. 50236 # Note: m4 eats our [], so we need to use [ and ] instead. 50237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50238 if test "x$has_forbidden_chars" != x; then 50239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50241 fi 50242 50243 50244 windows_path="$new_path" 50245 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50246 unix_path=`$CYGPATH -u "$windows_path"` 50247 new_path="$unix_path" 50248 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50249 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50250 new_path="$unix_path" 50251 fi 50252 50253 if test "x$path" != "x$new_path"; then 50254 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 50255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 50256 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 50257 fi 50258 50259 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50260 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50261 50262 else 50263 # We're on a unix platform. Hooray! :) 50264 path="$POTENTIAL_FREETYPE_LIB_PATH" 50265 has_space=`$ECHO "$path" | $GREP " "` 50266 if test "x$has_space" != x; then 50267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 50268 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 50269 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50270 fi 50271 50272 # Use eval to expand a potential ~ 50273 eval path="$path" 50274 if test ! -f "$path" && test ! -d "$path"; then 50275 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 50276 fi 50277 50278 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 50279 fi 50280 fi 50281 50282 50283 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 50285 $as_echo_n "checking for freetype includes... " >&6; } 50286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 50287 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 50288 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 50289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 50290 $as_echo_n "checking for freetype libraries... " >&6; } 50291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 50292 $as_echo "$FREETYPE_LIB_PATH" >&6; } 50293 fi 50294 50295 fi 50296 50297 if test "x$FOUND_FREETYPE" != xyes; then 50298 FREETYPE_BASE_DIR="$SYSROOT/usr" 50299 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50300 50301 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 50302 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 50303 METHOD="well-known location" 50304 50305 # Let's start with an optimistic view of the world :-) 50306 FOUND_FREETYPE=yes 50307 50308 # First look for the canonical freetype main include file ft2build.h. 50309 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 50310 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 50311 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 50312 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 50313 # Fail. 50314 FOUND_FREETYPE=no 50315 fi 50316 fi 50317 50318 if test "x$FOUND_FREETYPE" = xyes; then 50319 # Include file found, let's continue the sanity check. 50320 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 50321 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 50322 50323 # Reset to default value 50324 FREETYPE_BASE_NAME=freetype 50325 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50326 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 50327 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 50328 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 50329 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 50330 # for the .6 version explicitly. 50331 FREETYPE_BASE_NAME=freetype.6 50332 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50333 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 50334 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 50335 else 50336 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 50337 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 50338 FOUND_FREETYPE=no 50339 fi 50340 else 50341 if test "x$OPENJDK_TARGET_OS" = xwindows; then 50342 # On Windows, we will need both .lib and .dll file. 50343 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 50344 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 50345 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 50346 FOUND_FREETYPE=no 50347 fi 50348 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 50349 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 50350 # Found lib in isa dir, use that instead. 50351 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 50352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 50353 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 50354 fi 50355 fi 50356 fi 50357 50358 if test "x$FOUND_FREETYPE" = xyes; then 50359 50360 # Only process if variable expands to non-empty 50361 50362 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 50363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50364 50365 # Input might be given as Windows format, start by converting to 50366 # unix format. 50367 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50368 new_path=`$CYGPATH -u "$path"` 50369 50370 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50371 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50372 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50373 # "foo.exe" is OK but "foo" is an error. 50374 # 50375 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50376 # It is also a way to make sure we got the proper file name for the real test later on. 50377 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50378 if test "x$test_shortpath" = x; then 50379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 50380 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 50381 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 50382 fi 50383 50384 # Call helper function which possibly converts this using DOS-style short mode. 50385 # If so, the updated path is stored in $new_path. 50386 50387 input_path="$new_path" 50388 # Check if we need to convert this using DOS-style short mode. If the path 50389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50390 # take no chances and rewrite it. 50391 # Note: m4 eats our [], so we need to use [ and ] instead. 50392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50393 if test "x$has_forbidden_chars" != x; then 50394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50395 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50396 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50397 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50398 # Going to short mode and back again did indeed matter. Since short mode is 50399 # case insensitive, let's make it lowercase to improve readability. 50400 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50401 # Now convert it back to Unix-style (cygpath) 50402 input_path=`$CYGPATH -u "$shortmode_path"` 50403 new_path="$input_path" 50404 fi 50405 fi 50406 50407 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50408 if test "x$test_cygdrive_prefix" = x; then 50409 # As a simple fix, exclude /usr/bin since it's not a real path. 50410 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50411 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50412 # a path prefixed by /cygdrive for fixpath to work. 50413 new_path="$CYGWIN_ROOT_PATH$input_path" 50414 fi 50415 fi 50416 50417 50418 if test "x$path" != "x$new_path"; then 50419 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 50420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 50421 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 50422 fi 50423 50424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50425 50426 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50427 has_colon=`$ECHO $path | $GREP ^.:` 50428 new_path="$path" 50429 if test "x$has_colon" = x; then 50430 # Not in mixed or Windows style, start by that. 50431 new_path=`cmd //c echo $path` 50432 fi 50433 50434 50435 input_path="$new_path" 50436 # Check if we need to convert this using DOS-style short mode. If the path 50437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50438 # take no chances and rewrite it. 50439 # Note: m4 eats our [], so we need to use [ and ] instead. 50440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50441 if test "x$has_forbidden_chars" != x; then 50442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50444 fi 50445 50446 50447 windows_path="$new_path" 50448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50449 unix_path=`$CYGPATH -u "$windows_path"` 50450 new_path="$unix_path" 50451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50453 new_path="$unix_path" 50454 fi 50455 50456 if test "x$path" != "x$new_path"; then 50457 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 50458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 50459 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 50460 fi 50461 50462 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50463 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50464 50465 else 50466 # We're on a unix platform. Hooray! :) 50467 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50468 has_space=`$ECHO "$path" | $GREP " "` 50469 if test "x$has_space" != x; then 50470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 50471 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 50472 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50473 fi 50474 50475 # Use eval to expand a potential ~ 50476 eval path="$path" 50477 if test ! -f "$path" && test ! -d "$path"; then 50478 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 50479 fi 50480 50481 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 50482 fi 50483 fi 50484 50485 50486 # Only process if variable expands to non-empty 50487 50488 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 50489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50490 50491 # Input might be given as Windows format, start by converting to 50492 # unix format. 50493 path="$POTENTIAL_FREETYPE_LIB_PATH" 50494 new_path=`$CYGPATH -u "$path"` 50495 50496 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50497 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50498 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50499 # "foo.exe" is OK but "foo" is an error. 50500 # 50501 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50502 # It is also a way to make sure we got the proper file name for the real test later on. 50503 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50504 if test "x$test_shortpath" = x; then 50505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 50506 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 50507 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 50508 fi 50509 50510 # Call helper function which possibly converts this using DOS-style short mode. 50511 # If so, the updated path is stored in $new_path. 50512 50513 input_path="$new_path" 50514 # Check if we need to convert this using DOS-style short mode. If the path 50515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50516 # take no chances and rewrite it. 50517 # Note: m4 eats our [], so we need to use [ and ] instead. 50518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50519 if test "x$has_forbidden_chars" != x; then 50520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50521 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50522 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50523 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50524 # Going to short mode and back again did indeed matter. Since short mode is 50525 # case insensitive, let's make it lowercase to improve readability. 50526 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50527 # Now convert it back to Unix-style (cygpath) 50528 input_path=`$CYGPATH -u "$shortmode_path"` 50529 new_path="$input_path" 50530 fi 50531 fi 50532 50533 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50534 if test "x$test_cygdrive_prefix" = x; then 50535 # As a simple fix, exclude /usr/bin since it's not a real path. 50536 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50537 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50538 # a path prefixed by /cygdrive for fixpath to work. 50539 new_path="$CYGWIN_ROOT_PATH$input_path" 50540 fi 50541 fi 50542 50543 50544 if test "x$path" != "x$new_path"; then 50545 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 50546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 50547 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 50548 fi 50549 50550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50551 50552 path="$POTENTIAL_FREETYPE_LIB_PATH" 50553 has_colon=`$ECHO $path | $GREP ^.:` 50554 new_path="$path" 50555 if test "x$has_colon" = x; then 50556 # Not in mixed or Windows style, start by that. 50557 new_path=`cmd //c echo $path` 50558 fi 50559 50560 50561 input_path="$new_path" 50562 # Check if we need to convert this using DOS-style short mode. If the path 50563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50564 # take no chances and rewrite it. 50565 # Note: m4 eats our [], so we need to use [ and ] instead. 50566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50567 if test "x$has_forbidden_chars" != x; then 50568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50569 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50570 fi 50571 50572 50573 windows_path="$new_path" 50574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50575 unix_path=`$CYGPATH -u "$windows_path"` 50576 new_path="$unix_path" 50577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50579 new_path="$unix_path" 50580 fi 50581 50582 if test "x$path" != "x$new_path"; then 50583 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 50584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 50585 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 50586 fi 50587 50588 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50589 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50590 50591 else 50592 # We're on a unix platform. Hooray! :) 50593 path="$POTENTIAL_FREETYPE_LIB_PATH" 50594 has_space=`$ECHO "$path" | $GREP " "` 50595 if test "x$has_space" != x; then 50596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 50597 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 50598 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50599 fi 50600 50601 # Use eval to expand a potential ~ 50602 eval path="$path" 50603 if test ! -f "$path" && test ! -d "$path"; then 50604 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 50605 fi 50606 50607 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 50608 fi 50609 fi 50610 50611 50612 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 50614 $as_echo_n "checking for freetype includes... " >&6; } 50615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 50616 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 50617 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 50618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 50619 $as_echo_n "checking for freetype libraries... " >&6; } 50620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 50621 $as_echo "$FREETYPE_LIB_PATH" >&6; } 50622 fi 50623 50624 else 50625 50626 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 50627 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 50628 METHOD="well-known location" 50629 50630 # Let's start with an optimistic view of the world :-) 50631 FOUND_FREETYPE=yes 50632 50633 # First look for the canonical freetype main include file ft2build.h. 50634 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 50635 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 50636 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 50637 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 50638 # Fail. 50639 FOUND_FREETYPE=no 50640 fi 50641 fi 50642 50643 if test "x$FOUND_FREETYPE" = xyes; then 50644 # Include file found, let's continue the sanity check. 50645 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 50646 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 50647 50648 # Reset to default value 50649 FREETYPE_BASE_NAME=freetype 50650 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50651 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 50652 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 50653 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 50654 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 50655 # for the .6 version explicitly. 50656 FREETYPE_BASE_NAME=freetype.6 50657 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50658 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 50659 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 50660 else 50661 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 50662 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 50663 FOUND_FREETYPE=no 50664 fi 50665 else 50666 if test "x$OPENJDK_TARGET_OS" = xwindows; then 50667 # On Windows, we will need both .lib and .dll file. 50668 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 50669 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 50670 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 50671 FOUND_FREETYPE=no 50672 fi 50673 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 50674 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 50675 # Found lib in isa dir, use that instead. 50676 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 50677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 50678 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 50679 fi 50680 fi 50681 fi 50682 50683 if test "x$FOUND_FREETYPE" = xyes; then 50684 50685 # Only process if variable expands to non-empty 50686 50687 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 50688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50689 50690 # Input might be given as Windows format, start by converting to 50691 # unix format. 50692 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50693 new_path=`$CYGPATH -u "$path"` 50694 50695 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50696 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50697 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50698 # "foo.exe" is OK but "foo" is an error. 50699 # 50700 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50701 # It is also a way to make sure we got the proper file name for the real test later on. 50702 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50703 if test "x$test_shortpath" = x; then 50704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 50705 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 50706 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 50707 fi 50708 50709 # Call helper function which possibly converts this using DOS-style short mode. 50710 # If so, the updated path is stored in $new_path. 50711 50712 input_path="$new_path" 50713 # Check if we need to convert this using DOS-style short mode. If the path 50714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50715 # take no chances and rewrite it. 50716 # Note: m4 eats our [], so we need to use [ and ] instead. 50717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50718 if test "x$has_forbidden_chars" != x; then 50719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50723 # Going to short mode and back again did indeed matter. Since short mode is 50724 # case insensitive, let's make it lowercase to improve readability. 50725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50726 # Now convert it back to Unix-style (cygpath) 50727 input_path=`$CYGPATH -u "$shortmode_path"` 50728 new_path="$input_path" 50729 fi 50730 fi 50731 50732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50733 if test "x$test_cygdrive_prefix" = x; then 50734 # As a simple fix, exclude /usr/bin since it's not a real path. 50735 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50737 # a path prefixed by /cygdrive for fixpath to work. 50738 new_path="$CYGWIN_ROOT_PATH$input_path" 50739 fi 50740 fi 50741 50742 50743 if test "x$path" != "x$new_path"; then 50744 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 50745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 50746 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 50747 fi 50748 50749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50750 50751 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50752 has_colon=`$ECHO $path | $GREP ^.:` 50753 new_path="$path" 50754 if test "x$has_colon" = x; then 50755 # Not in mixed or Windows style, start by that. 50756 new_path=`cmd //c echo $path` 50757 fi 50758 50759 50760 input_path="$new_path" 50761 # Check if we need to convert this using DOS-style short mode. If the path 50762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50763 # take no chances and rewrite it. 50764 # Note: m4 eats our [], so we need to use [ and ] instead. 50765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50766 if test "x$has_forbidden_chars" != x; then 50767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50768 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50769 fi 50770 50771 50772 windows_path="$new_path" 50773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50774 unix_path=`$CYGPATH -u "$windows_path"` 50775 new_path="$unix_path" 50776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50778 new_path="$unix_path" 50779 fi 50780 50781 if test "x$path" != "x$new_path"; then 50782 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 50783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 50784 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 50785 fi 50786 50787 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50788 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50789 50790 else 50791 # We're on a unix platform. Hooray! :) 50792 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50793 has_space=`$ECHO "$path" | $GREP " "` 50794 if test "x$has_space" != x; then 50795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 50796 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 50797 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50798 fi 50799 50800 # Use eval to expand a potential ~ 50801 eval path="$path" 50802 if test ! -f "$path" && test ! -d "$path"; then 50803 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 50804 fi 50805 50806 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 50807 fi 50808 fi 50809 50810 50811 # Only process if variable expands to non-empty 50812 50813 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 50814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50815 50816 # Input might be given as Windows format, start by converting to 50817 # unix format. 50818 path="$POTENTIAL_FREETYPE_LIB_PATH" 50819 new_path=`$CYGPATH -u "$path"` 50820 50821 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50822 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50823 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50824 # "foo.exe" is OK but "foo" is an error. 50825 # 50826 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50827 # It is also a way to make sure we got the proper file name for the real test later on. 50828 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50829 if test "x$test_shortpath" = x; then 50830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 50831 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 50832 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 50833 fi 50834 50835 # Call helper function which possibly converts this using DOS-style short mode. 50836 # If so, the updated path is stored in $new_path. 50837 50838 input_path="$new_path" 50839 # Check if we need to convert this using DOS-style short mode. If the path 50840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50841 # take no chances and rewrite it. 50842 # Note: m4 eats our [], so we need to use [ and ] instead. 50843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50844 if test "x$has_forbidden_chars" != x; then 50845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50846 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50847 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50848 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50849 # Going to short mode and back again did indeed matter. Since short mode is 50850 # case insensitive, let's make it lowercase to improve readability. 50851 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50852 # Now convert it back to Unix-style (cygpath) 50853 input_path=`$CYGPATH -u "$shortmode_path"` 50854 new_path="$input_path" 50855 fi 50856 fi 50857 50858 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50859 if test "x$test_cygdrive_prefix" = x; then 50860 # As a simple fix, exclude /usr/bin since it's not a real path. 50861 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50862 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50863 # a path prefixed by /cygdrive for fixpath to work. 50864 new_path="$CYGWIN_ROOT_PATH$input_path" 50865 fi 50866 fi 50867 50868 50869 if test "x$path" != "x$new_path"; then 50870 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 50871 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 50872 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 50873 fi 50874 50875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50876 50877 path="$POTENTIAL_FREETYPE_LIB_PATH" 50878 has_colon=`$ECHO $path | $GREP ^.:` 50879 new_path="$path" 50880 if test "x$has_colon" = x; then 50881 # Not in mixed or Windows style, start by that. 50882 new_path=`cmd //c echo $path` 50883 fi 50884 50885 50886 input_path="$new_path" 50887 # Check if we need to convert this using DOS-style short mode. If the path 50888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50889 # take no chances and rewrite it. 50890 # Note: m4 eats our [], so we need to use [ and ] instead. 50891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50892 if test "x$has_forbidden_chars" != x; then 50893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50894 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50895 fi 50896 50897 50898 windows_path="$new_path" 50899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50900 unix_path=`$CYGPATH -u "$windows_path"` 50901 new_path="$unix_path" 50902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50903 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50904 new_path="$unix_path" 50905 fi 50906 50907 if test "x$path" != "x$new_path"; then 50908 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 50909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 50910 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 50911 fi 50912 50913 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50914 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50915 50916 else 50917 # We're on a unix platform. Hooray! :) 50918 path="$POTENTIAL_FREETYPE_LIB_PATH" 50919 has_space=`$ECHO "$path" | $GREP " "` 50920 if test "x$has_space" != x; then 50921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 50922 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 50923 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50924 fi 50925 50926 # Use eval to expand a potential ~ 50927 eval path="$path" 50928 if test ! -f "$path" && test ! -d "$path"; then 50929 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 50930 fi 50931 50932 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 50933 fi 50934 fi 50935 50936 50937 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 50938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 50939 $as_echo_n "checking for freetype includes... " >&6; } 50940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 50941 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 50942 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 50943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 50944 $as_echo_n "checking for freetype libraries... " >&6; } 50945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 50946 $as_echo "$FREETYPE_LIB_PATH" >&6; } 50947 fi 50948 50949 if test "x$FOUND_FREETYPE" != xyes; then 50950 50951 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 50952 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 50953 METHOD="well-known location" 50954 50955 # Let's start with an optimistic view of the world :-) 50956 FOUND_FREETYPE=yes 50957 50958 # First look for the canonical freetype main include file ft2build.h. 50959 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 50960 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 50961 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 50962 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 50963 # Fail. 50964 FOUND_FREETYPE=no 50965 fi 50966 fi 50967 50968 if test "x$FOUND_FREETYPE" = xyes; then 50969 # Include file found, let's continue the sanity check. 50970 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 50971 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 50972 50973 # Reset to default value 50974 FREETYPE_BASE_NAME=freetype 50975 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50976 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 50977 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 50978 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 50979 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 50980 # for the .6 version explicitly. 50981 FREETYPE_BASE_NAME=freetype.6 50982 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 50983 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 50984 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 50985 else 50986 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 50987 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 50988 FOUND_FREETYPE=no 50989 fi 50990 else 50991 if test "x$OPENJDK_TARGET_OS" = xwindows; then 50992 # On Windows, we will need both .lib and .dll file. 50993 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 50994 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 50995 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 50996 FOUND_FREETYPE=no 50997 fi 50998 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 50999 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 51000 # Found lib in isa dir, use that instead. 51001 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 51002 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 51003 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 51004 fi 51005 fi 51006 fi 51007 51008 if test "x$FOUND_FREETYPE" = xyes; then 51009 51010 # Only process if variable expands to non-empty 51011 51012 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 51013 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51014 51015 # Input might be given as Windows format, start by converting to 51016 # unix format. 51017 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51018 new_path=`$CYGPATH -u "$path"` 51019 51020 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51021 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51022 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51023 # "foo.exe" is OK but "foo" is an error. 51024 # 51025 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51026 # It is also a way to make sure we got the proper file name for the real test later on. 51027 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51028 if test "x$test_shortpath" = x; then 51029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 51030 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 51031 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 51032 fi 51033 51034 # Call helper function which possibly converts this using DOS-style short mode. 51035 # If so, the updated path is stored in $new_path. 51036 51037 input_path="$new_path" 51038 # Check if we need to convert this using DOS-style short mode. If the path 51039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51040 # take no chances and rewrite it. 51041 # Note: m4 eats our [], so we need to use [ and ] instead. 51042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51043 if test "x$has_forbidden_chars" != x; then 51044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51045 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51046 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51047 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51048 # Going to short mode and back again did indeed matter. Since short mode is 51049 # case insensitive, let's make it lowercase to improve readability. 51050 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51051 # Now convert it back to Unix-style (cygpath) 51052 input_path=`$CYGPATH -u "$shortmode_path"` 51053 new_path="$input_path" 51054 fi 51055 fi 51056 51057 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51058 if test "x$test_cygdrive_prefix" = x; then 51059 # As a simple fix, exclude /usr/bin since it's not a real path. 51060 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51061 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51062 # a path prefixed by /cygdrive for fixpath to work. 51063 new_path="$CYGWIN_ROOT_PATH$input_path" 51064 fi 51065 fi 51066 51067 51068 if test "x$path" != "x$new_path"; then 51069 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 51070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 51071 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 51072 fi 51073 51074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51075 51076 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51077 has_colon=`$ECHO $path | $GREP ^.:` 51078 new_path="$path" 51079 if test "x$has_colon" = x; then 51080 # Not in mixed or Windows style, start by that. 51081 new_path=`cmd //c echo $path` 51082 fi 51083 51084 51085 input_path="$new_path" 51086 # Check if we need to convert this using DOS-style short mode. If the path 51087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51088 # take no chances and rewrite it. 51089 # Note: m4 eats our [], so we need to use [ and ] instead. 51090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51091 if test "x$has_forbidden_chars" != x; then 51092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51093 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51094 fi 51095 51096 51097 windows_path="$new_path" 51098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51099 unix_path=`$CYGPATH -u "$windows_path"` 51100 new_path="$unix_path" 51101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51103 new_path="$unix_path" 51104 fi 51105 51106 if test "x$path" != "x$new_path"; then 51107 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 51108 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 51109 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 51110 fi 51111 51112 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51113 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51114 51115 else 51116 # We're on a unix platform. Hooray! :) 51117 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51118 has_space=`$ECHO "$path" | $GREP " "` 51119 if test "x$has_space" != x; then 51120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 51121 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 51122 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51123 fi 51124 51125 # Use eval to expand a potential ~ 51126 eval path="$path" 51127 if test ! -f "$path" && test ! -d "$path"; then 51128 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 51129 fi 51130 51131 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 51132 fi 51133 fi 51134 51135 51136 # Only process if variable expands to non-empty 51137 51138 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 51139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51140 51141 # Input might be given as Windows format, start by converting to 51142 # unix format. 51143 path="$POTENTIAL_FREETYPE_LIB_PATH" 51144 new_path=`$CYGPATH -u "$path"` 51145 51146 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51147 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51148 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51149 # "foo.exe" is OK but "foo" is an error. 51150 # 51151 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51152 # It is also a way to make sure we got the proper file name for the real test later on. 51153 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51154 if test "x$test_shortpath" = x; then 51155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 51156 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 51157 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 51158 fi 51159 51160 # Call helper function which possibly converts this using DOS-style short mode. 51161 # If so, the updated path is stored in $new_path. 51162 51163 input_path="$new_path" 51164 # Check if we need to convert this using DOS-style short mode. If the path 51165 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51166 # take no chances and rewrite it. 51167 # Note: m4 eats our [], so we need to use [ and ] instead. 51168 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51169 if test "x$has_forbidden_chars" != x; then 51170 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51171 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51172 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51173 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51174 # Going to short mode and back again did indeed matter. Since short mode is 51175 # case insensitive, let's make it lowercase to improve readability. 51176 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51177 # Now convert it back to Unix-style (cygpath) 51178 input_path=`$CYGPATH -u "$shortmode_path"` 51179 new_path="$input_path" 51180 fi 51181 fi 51182 51183 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51184 if test "x$test_cygdrive_prefix" = x; then 51185 # As a simple fix, exclude /usr/bin since it's not a real path. 51186 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51187 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51188 # a path prefixed by /cygdrive for fixpath to work. 51189 new_path="$CYGWIN_ROOT_PATH$input_path" 51190 fi 51191 fi 51192 51193 51194 if test "x$path" != "x$new_path"; then 51195 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 51196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 51197 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 51198 fi 51199 51200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51201 51202 path="$POTENTIAL_FREETYPE_LIB_PATH" 51203 has_colon=`$ECHO $path | $GREP ^.:` 51204 new_path="$path" 51205 if test "x$has_colon" = x; then 51206 # Not in mixed or Windows style, start by that. 51207 new_path=`cmd //c echo $path` 51208 fi 51209 51210 51211 input_path="$new_path" 51212 # Check if we need to convert this using DOS-style short mode. If the path 51213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51214 # take no chances and rewrite it. 51215 # Note: m4 eats our [], so we need to use [ and ] instead. 51216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51217 if test "x$has_forbidden_chars" != x; then 51218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51220 fi 51221 51222 51223 windows_path="$new_path" 51224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51225 unix_path=`$CYGPATH -u "$windows_path"` 51226 new_path="$unix_path" 51227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51229 new_path="$unix_path" 51230 fi 51231 51232 if test "x$path" != "x$new_path"; then 51233 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 51234 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 51235 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 51236 fi 51237 51238 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51239 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51240 51241 else 51242 # We're on a unix platform. Hooray! :) 51243 path="$POTENTIAL_FREETYPE_LIB_PATH" 51244 has_space=`$ECHO "$path" | $GREP " "` 51245 if test "x$has_space" != x; then 51246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 51247 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 51248 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51249 fi 51250 51251 # Use eval to expand a potential ~ 51252 eval path="$path" 51253 if test ! -f "$path" && test ! -d "$path"; then 51254 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 51255 fi 51256 51257 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 51258 fi 51259 fi 51260 51261 51262 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 51263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 51264 $as_echo_n "checking for freetype includes... " >&6; } 51265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 51266 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 51267 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 51268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 51269 $as_echo_n "checking for freetype libraries... " >&6; } 51270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 51271 $as_echo "$FREETYPE_LIB_PATH" >&6; } 51272 fi 51273 51274 fi 51275 fi 51276 fi 51277 fi 51278 fi # end check in well-known locations 51279 51280 if test "x$FOUND_FREETYPE" != xyes; then 51281 51282 # Print a helpful message on how to acquire the necessary build dependency. 51283 # freetype is the help tag: freetype, cups, alsa etc 51284 MISSING_DEPENDENCY=freetype 51285 51286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51287 cygwin_help $MISSING_DEPENDENCY 51288 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51289 msys_help $MISSING_DEPENDENCY 51290 else 51291 PKGHANDLER_COMMAND= 51292 51293 case $PKGHANDLER in 51294 apt-get) 51295 apt_help $MISSING_DEPENDENCY ;; 51296 yum) 51297 yum_help $MISSING_DEPENDENCY ;; 51298 port) 51299 port_help $MISSING_DEPENDENCY ;; 51300 pkgutil) 51301 pkgutil_help $MISSING_DEPENDENCY ;; 51302 pkgadd) 51303 pkgadd_help $MISSING_DEPENDENCY ;; 51304 esac 51305 51306 if test "x$PKGHANDLER_COMMAND" != x; then 51307 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51308 fi 51309 fi 51310 51311 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 51312 fi 51313 fi # end user specified settings 51314 51315 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 51316 if test "x$FREETYPE_CFLAGS" = x; then 51317 51318 # Only process if variable expands to non-empty 51319 51320 if test "x$FREETYPE_INCLUDE_PATH" != x; then 51321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51322 51323 # Input might be given as Windows format, start by converting to 51324 # unix format. 51325 path="$FREETYPE_INCLUDE_PATH" 51326 new_path=`$CYGPATH -u "$path"` 51327 51328 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51329 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51330 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51331 # "foo.exe" is OK but "foo" is an error. 51332 # 51333 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51334 # It is also a way to make sure we got the proper file name for the real test later on. 51335 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51336 if test "x$test_shortpath" = x; then 51337 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 51338 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 51339 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 51340 fi 51341 51342 # Call helper function which possibly converts this using DOS-style short mode. 51343 # If so, the updated path is stored in $new_path. 51344 51345 input_path="$new_path" 51346 # Check if we need to convert this using DOS-style short mode. If the path 51347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51348 # take no chances and rewrite it. 51349 # Note: m4 eats our [], so we need to use [ and ] instead. 51350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51351 if test "x$has_forbidden_chars" != x; then 51352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51353 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51354 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51355 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51356 # Going to short mode and back again did indeed matter. Since short mode is 51357 # case insensitive, let's make it lowercase to improve readability. 51358 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51359 # Now convert it back to Unix-style (cygpath) 51360 input_path=`$CYGPATH -u "$shortmode_path"` 51361 new_path="$input_path" 51362 fi 51363 fi 51364 51365 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51366 if test "x$test_cygdrive_prefix" = x; then 51367 # As a simple fix, exclude /usr/bin since it's not a real path. 51368 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51369 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51370 # a path prefixed by /cygdrive for fixpath to work. 51371 new_path="$CYGWIN_ROOT_PATH$input_path" 51372 fi 51373 fi 51374 51375 51376 if test "x$path" != "x$new_path"; then 51377 FREETYPE_INCLUDE_PATH="$new_path" 51378 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 51379 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 51380 fi 51381 51382 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51383 51384 path="$FREETYPE_INCLUDE_PATH" 51385 has_colon=`$ECHO $path | $GREP ^.:` 51386 new_path="$path" 51387 if test "x$has_colon" = x; then 51388 # Not in mixed or Windows style, start by that. 51389 new_path=`cmd //c echo $path` 51390 fi 51391 51392 51393 input_path="$new_path" 51394 # Check if we need to convert this using DOS-style short mode. If the path 51395 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51396 # take no chances and rewrite it. 51397 # Note: m4 eats our [], so we need to use [ and ] instead. 51398 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51399 if test "x$has_forbidden_chars" != x; then 51400 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51401 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51402 fi 51403 51404 51405 windows_path="$new_path" 51406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51407 unix_path=`$CYGPATH -u "$windows_path"` 51408 new_path="$unix_path" 51409 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51410 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51411 new_path="$unix_path" 51412 fi 51413 51414 if test "x$path" != "x$new_path"; then 51415 FREETYPE_INCLUDE_PATH="$new_path" 51416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 51417 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 51418 fi 51419 51420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51422 51423 else 51424 # We're on a unix platform. Hooray! :) 51425 path="$FREETYPE_INCLUDE_PATH" 51426 has_space=`$ECHO "$path" | $GREP " "` 51427 if test "x$has_space" != x; then 51428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 51429 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 51430 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51431 fi 51432 51433 # Use eval to expand a potential ~ 51434 eval path="$path" 51435 if test ! -f "$path" && test ! -d "$path"; then 51436 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 51437 fi 51438 51439 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 51440 fi 51441 fi 51442 51443 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 51444 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 51445 else 51446 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 51447 fi 51448 fi 51449 51450 if test "x$FREETYPE_LIBS" = x; then 51451 51452 # Only process if variable expands to non-empty 51453 51454 if test "x$FREETYPE_LIB_PATH" != x; then 51455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51456 51457 # Input might be given as Windows format, start by converting to 51458 # unix format. 51459 path="$FREETYPE_LIB_PATH" 51460 new_path=`$CYGPATH -u "$path"` 51461 51462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 51463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 51464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 51465 # "foo.exe" is OK but "foo" is an error. 51466 # 51467 # This test is therefore slightly more accurate than "test -f" to check for file precense. 51468 # It is also a way to make sure we got the proper file name for the real test later on. 51469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 51470 if test "x$test_shortpath" = x; then 51471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 51472 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 51473 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 51474 fi 51475 51476 # Call helper function which possibly converts this using DOS-style short mode. 51477 # If so, the updated path is stored in $new_path. 51478 51479 input_path="$new_path" 51480 # Check if we need to convert this using DOS-style short mode. If the path 51481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51482 # take no chances and rewrite it. 51483 # Note: m4 eats our [], so we need to use [ and ] instead. 51484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 51485 if test "x$has_forbidden_chars" != x; then 51486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51487 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 51488 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 51489 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 51490 # Going to short mode and back again did indeed matter. Since short mode is 51491 # case insensitive, let's make it lowercase to improve readability. 51492 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51493 # Now convert it back to Unix-style (cygpath) 51494 input_path=`$CYGPATH -u "$shortmode_path"` 51495 new_path="$input_path" 51496 fi 51497 fi 51498 51499 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 51500 if test "x$test_cygdrive_prefix" = x; then 51501 # As a simple fix, exclude /usr/bin since it's not a real path. 51502 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 51503 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 51504 # a path prefixed by /cygdrive for fixpath to work. 51505 new_path="$CYGWIN_ROOT_PATH$input_path" 51506 fi 51507 fi 51508 51509 51510 if test "x$path" != "x$new_path"; then 51511 FREETYPE_LIB_PATH="$new_path" 51512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 51513 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 51514 fi 51515 51516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51517 51518 path="$FREETYPE_LIB_PATH" 51519 has_colon=`$ECHO $path | $GREP ^.:` 51520 new_path="$path" 51521 if test "x$has_colon" = x; then 51522 # Not in mixed or Windows style, start by that. 51523 new_path=`cmd //c echo $path` 51524 fi 51525 51526 51527 input_path="$new_path" 51528 # Check if we need to convert this using DOS-style short mode. If the path 51529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 51530 # take no chances and rewrite it. 51531 # Note: m4 eats our [], so we need to use [ and ] instead. 51532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 51533 if test "x$has_forbidden_chars" != x; then 51534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 51535 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 51536 fi 51537 51538 51539 windows_path="$new_path" 51540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51541 unix_path=`$CYGPATH -u "$windows_path"` 51542 new_path="$unix_path" 51543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 51545 new_path="$unix_path" 51546 fi 51547 51548 if test "x$path" != "x$new_path"; then 51549 FREETYPE_LIB_PATH="$new_path" 51550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 51551 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 51552 fi 51553 51554 # Save the first 10 bytes of this path to the storage, so fixpath can work. 51555 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 51556 51557 else 51558 # We're on a unix platform. Hooray! :) 51559 path="$FREETYPE_LIB_PATH" 51560 has_space=`$ECHO "$path" | $GREP " "` 51561 if test "x$has_space" != x; then 51562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 51563 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 51564 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 51565 fi 51566 51567 # Use eval to expand a potential ~ 51568 eval path="$path" 51569 if test ! -f "$path" && test ! -d "$path"; then 51570 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 51571 fi 51572 51573 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 51574 fi 51575 fi 51576 51577 if test "x$OPENJDK_TARGET_OS" = xwindows; then 51578 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 51579 else 51580 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 51581 fi 51582 fi 51583 51584 # Try to compile it 51585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 51586 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 51587 ac_ext=cpp 51588 ac_cpp='$CXXCPP $CPPFLAGS' 51589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51592 51593 PREV_CXXCFLAGS="$CXXFLAGS" 51594 PREV_LIBS="$LIBS" 51595 PREV_CXX="$CXX" 51596 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 51597 LIBS="$LIBS $FREETYPE_LIBS" 51598 CXX="$FIXPATH $CXX" 51599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51600 /* end confdefs.h. */ 51601 51602 #include<ft2build.h> 51603 #include FT_FREETYPE_H 51604 int main () { 51605 FT_Init_FreeType(NULL); 51606 return 0; 51607 } 51608 51609 _ACEOF 51610 if ac_fn_cxx_try_link "$LINENO"; then : 51611 51612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51613 $as_echo "yes" >&6; } 51614 51615 else 51616 51617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51618 $as_echo "no" >&6; } 51619 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 51620 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 51621 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 51622 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 51623 51624 51625 # Print a helpful message on how to acquire the necessary build dependency. 51626 # freetype is the help tag: freetype, cups, alsa etc 51627 MISSING_DEPENDENCY=freetype 51628 51629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51630 cygwin_help $MISSING_DEPENDENCY 51631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51632 msys_help $MISSING_DEPENDENCY 51633 else 51634 PKGHANDLER_COMMAND= 51635 51636 case $PKGHANDLER in 51637 apt-get) 51638 apt_help $MISSING_DEPENDENCY ;; 51639 yum) 51640 yum_help $MISSING_DEPENDENCY ;; 51641 port) 51642 port_help $MISSING_DEPENDENCY ;; 51643 pkgutil) 51644 pkgutil_help $MISSING_DEPENDENCY ;; 51645 pkgadd) 51646 pkgadd_help $MISSING_DEPENDENCY ;; 51647 esac 51648 51649 if test "x$PKGHANDLER_COMMAND" != x; then 51650 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51651 fi 51652 fi 51653 51654 51655 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 51656 51657 51658 fi 51659 rm -f core conftest.err conftest.$ac_objext \ 51660 conftest$ac_exeext conftest.$ac_ext 51661 CXXCFLAGS="$PREV_CXXFLAGS" 51662 LIBS="$PREV_LIBS" 51663 CXX="$PREV_CXX" 51664 ac_ext=cpp 51665 ac_cpp='$CXXCPP $CPPFLAGS' 51666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51669 51670 51671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 51672 $as_echo_n "checking if we should bundle freetype... " >&6; } 51673 if test "x$BUNDLE_FREETYPE" = xyes; then 51674 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 51675 fi 51676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 51677 $as_echo "$BUNDLE_FREETYPE" >&6; } 51678 51679 fi # end freetype needed 51680 51681 51682 51683 51684 51685 51686 51687 # Check whether --with-alsa was given. 51688 if test "${with_alsa+set}" = set; then : 51689 withval=$with_alsa; 51690 fi 51691 51692 51693 # Check whether --with-alsa-include was given. 51694 if test "${with_alsa_include+set}" = set; then : 51695 withval=$with_alsa_include; 51696 fi 51697 51698 51699 # Check whether --with-alsa-lib was given. 51700 if test "${with_alsa_lib+set}" = set; then : 51701 withval=$with_alsa_lib; 51702 fi 51703 51704 51705 if test "x$NEEDS_LIB_ALSA" = xfalse; then 51706 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 51707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 51708 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 51709 fi 51710 ALSA_CFLAGS= 51711 ALSA_LIBS= 51712 else 51713 ALSA_FOUND=no 51714 51715 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 51716 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 51717 fi 51718 51719 if test "x${with_alsa}" != x; then 51720 ALSA_LIBS="-L${with_alsa}/lib -lasound" 51721 ALSA_CFLAGS="-I${with_alsa}/include" 51722 ALSA_FOUND=yes 51723 fi 51724 if test "x${with_alsa_include}" != x; then 51725 ALSA_CFLAGS="-I${with_alsa_include}" 51726 ALSA_FOUND=yes 51727 fi 51728 if test "x${with_alsa_lib}" != x; then 51729 ALSA_LIBS="-L${with_alsa_lib} -lasound" 51730 ALSA_FOUND=yes 51731 fi 51732 # Do not try pkg-config if we have a sysroot set. 51733 if test "x$SYSROOT" = x; then 51734 if test "x$ALSA_FOUND" = xno; then 51735 51736 pkg_failed=no 51737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 51738 $as_echo_n "checking for ALSA... " >&6; } 51739 51740 if test -n "$ALSA_CFLAGS"; then 51741 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 51742 elif test -n "$PKG_CONFIG"; then 51743 if test -n "$PKG_CONFIG" && \ 51744 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 51745 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 51746 ac_status=$? 51747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 51748 test $ac_status = 0; }; then 51749 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 51750 else 51751 pkg_failed=yes 51752 fi 51753 else 51754 pkg_failed=untried 51755 fi 51756 if test -n "$ALSA_LIBS"; then 51757 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 51758 elif test -n "$PKG_CONFIG"; then 51759 if test -n "$PKG_CONFIG" && \ 51760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 51761 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 51762 ac_status=$? 51763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 51764 test $ac_status = 0; }; then 51765 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 51766 else 51767 pkg_failed=yes 51768 fi 51769 else 51770 pkg_failed=untried 51771 fi 51772 51773 51774 51775 if test $pkg_failed = yes; then 51776 51777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 51778 _pkg_short_errors_supported=yes 51779 else 51780 _pkg_short_errors_supported=no 51781 fi 51782 if test $_pkg_short_errors_supported = yes; then 51783 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 51784 else 51785 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 51786 fi 51787 # Put the nasty error message in config.log where it belongs 51788 echo "$ALSA_PKG_ERRORS" >&5 51789 51790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51791 $as_echo "no" >&6; } 51792 ALSA_FOUND=no 51793 elif test $pkg_failed = untried; then 51794 ALSA_FOUND=no 51795 else 51796 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 51797 ALSA_LIBS=$pkg_cv_ALSA_LIBS 51798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51799 $as_echo "yes" >&6; } 51800 ALSA_FOUND=yes 51801 fi 51802 fi 51803 fi 51804 if test "x$ALSA_FOUND" = xno; then 51805 for ac_header in alsa/asoundlib.h 51806 do : 51807 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 51808 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 51809 cat >>confdefs.h <<_ACEOF 51810 #define HAVE_ALSA_ASOUNDLIB_H 1 51811 _ACEOF 51812 51813 ALSA_FOUND=yes 51814 ALSA_CFLAGS=-Iignoreme 51815 ALSA_LIBS=-lasound 51816 DEFAULT_ALSA=yes 51817 51818 else 51819 ALSA_FOUND=no 51820 51821 fi 51822 51823 done 51824 51825 fi 51826 if test "x$ALSA_FOUND" = xno; then 51827 51828 # Print a helpful message on how to acquire the necessary build dependency. 51829 # alsa is the help tag: freetype, cups, alsa etc 51830 MISSING_DEPENDENCY=alsa 51831 51832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51833 cygwin_help $MISSING_DEPENDENCY 51834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51835 msys_help $MISSING_DEPENDENCY 51836 else 51837 PKGHANDLER_COMMAND= 51838 51839 case $PKGHANDLER in 51840 apt-get) 51841 apt_help $MISSING_DEPENDENCY ;; 51842 yum) 51843 yum_help $MISSING_DEPENDENCY ;; 51844 port) 51845 port_help $MISSING_DEPENDENCY ;; 51846 pkgutil) 51847 pkgutil_help $MISSING_DEPENDENCY ;; 51848 pkgadd) 51849 pkgadd_help $MISSING_DEPENDENCY ;; 51850 esac 51851 51852 if test "x$PKGHANDLER_COMMAND" != x; then 51853 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51854 fi 51855 fi 51856 51857 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 51858 fi 51859 fi 51860 51861 51862 51863 51864 51865 51866 # Check whether --with-libffi was given. 51867 if test "${with_libffi+set}" = set; then : 51868 withval=$with_libffi; 51869 fi 51870 51871 51872 # Check whether --with-libffi-include was given. 51873 if test "${with_libffi_include+set}" = set; then : 51874 withval=$with_libffi_include; 51875 fi 51876 51877 51878 # Check whether --with-libffi-lib was given. 51879 if test "${with_libffi_lib+set}" = set; then : 51880 withval=$with_libffi_lib; 51881 fi 51882 51883 51884 if test "x$NEEDS_LIB_FFI" = xfalse; then 51885 if test "x${with_libffi}" != x || test "x${with_libffi_include}" != x || test "x${with_libffi_lib}" != x; then 51886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi is ignored" >&5 51887 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi is ignored" >&2;} 51888 fi 51889 LIBFFI_CFLAGS= 51890 LIBFFI_LIBS= 51891 else 51892 LIBFFI_FOUND=no 51893 51894 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 51895 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 51896 fi 51897 51898 if test "x${with_libffi}" != x; then 51899 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 51900 LIBFFI_CFLAGS="-I${with_libffi}/include" 51901 LIBFFI_FOUND=yes 51902 fi 51903 if test "x${with_libffi_include}" != x; then 51904 LIBFFI_CFLAGS="-I${with_libffi_include}" 51905 LIBFFI_FOUND=yes 51906 fi 51907 if test "x${with_libffi_lib}" != x; then 51908 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 51909 LIBFFI_FOUND=yes 51910 fi 51911 # Do not try pkg-config if we have a sysroot set. 51912 if test "x$SYSROOT" = x; then 51913 if test "x$LIBFFI_FOUND" = xno; then 51914 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 51915 51916 pkg_failed=no 51917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 51918 $as_echo_n "checking for LIBFFI... " >&6; } 51919 51920 if test -n "$LIBFFI_CFLAGS"; then 51921 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 51922 elif test -n "$PKG_CONFIG"; then 51923 if test -n "$PKG_CONFIG" && \ 51924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 51925 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 51926 ac_status=$? 51927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 51928 test $ac_status = 0; }; then 51929 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 51930 else 51931 pkg_failed=yes 51932 fi 51933 else 51934 pkg_failed=untried 51935 fi 51936 if test -n "$LIBFFI_LIBS"; then 51937 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 51938 elif test -n "$PKG_CONFIG"; then 51939 if test -n "$PKG_CONFIG" && \ 51940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 51941 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 51942 ac_status=$? 51943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 51944 test $ac_status = 0; }; then 51945 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 51946 else 51947 pkg_failed=yes 51948 fi 51949 else 51950 pkg_failed=untried 51951 fi 51952 51953 51954 51955 if test $pkg_failed = yes; then 51956 51957 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 51958 _pkg_short_errors_supported=yes 51959 else 51960 _pkg_short_errors_supported=no 51961 fi 51962 if test $_pkg_short_errors_supported = yes; then 51963 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 51964 else 51965 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 51966 fi 51967 # Put the nasty error message in config.log where it belongs 51968 echo "$LIBFFI_PKG_ERRORS" >&5 51969 51970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51971 $as_echo "no" >&6; } 51972 LIBFFI_FOUND=no 51973 elif test $pkg_failed = untried; then 51974 LIBFFI_FOUND=no 51975 else 51976 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 51977 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 51978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51979 $as_echo "yes" >&6; } 51980 LIBFFI_FOUND=yes 51981 fi 51982 fi 51983 fi 51984 if test "x$LIBFFI_FOUND" = xno; then 51985 for ac_header in ffi.h 51986 do : 51987 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 51988 if test "x$ac_cv_header_ffi_h" = xyes; then : 51989 cat >>confdefs.h <<_ACEOF 51990 #define HAVE_FFI_H 1 51991 _ACEOF 51992 51993 LIBFFI_FOUND=yes 51994 LIBFFI_CFLAGS= 51995 LIBFFI_LIBS=-lffi 51996 51997 else 51998 LIBFFI_FOUND=no 51999 52000 fi 52001 52002 done 52003 52004 fi 52005 if test "x$LIBFFI_FOUND" = xno; then 52006 52007 # Print a helpful message on how to acquire the necessary build dependency. 52008 # ffi is the help tag: freetype, cups, alsa etc 52009 MISSING_DEPENDENCY=ffi 52010 52011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52012 cygwin_help $MISSING_DEPENDENCY 52013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52014 msys_help $MISSING_DEPENDENCY 52015 else 52016 PKGHANDLER_COMMAND= 52017 52018 case $PKGHANDLER in 52019 apt-get) 52020 apt_help $MISSING_DEPENDENCY ;; 52021 yum) 52022 yum_help $MISSING_DEPENDENCY ;; 52023 port) 52024 port_help $MISSING_DEPENDENCY ;; 52025 pkgutil) 52026 pkgutil_help $MISSING_DEPENDENCY ;; 52027 pkgadd) 52028 pkgadd_help $MISSING_DEPENDENCY ;; 52029 esac 52030 52031 if test "x$PKGHANDLER_COMMAND" != x; then 52032 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52033 fi 52034 fi 52035 52036 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 52037 fi 52038 52039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 52040 $as_echo_n "checking if libffi works... " >&6; } 52041 ac_ext=c 52042 ac_cpp='$CPP $CPPFLAGS' 52043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52045 ac_compiler_gnu=$ac_cv_c_compiler_gnu 52046 52047 OLD_CFLAGS="$CFLAGS" 52048 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 52049 OLD_LIBS="$LIBS" 52050 LIBS="$LIBS $LIBFFI_LIBS" 52051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52052 /* end confdefs.h. */ 52053 #include <ffi.h> 52054 int 52055 main () 52056 { 52057 52058 ffi_call(NULL, NULL, NULL, NULL); 52059 return 0; 52060 52061 ; 52062 return 0; 52063 } 52064 _ACEOF 52065 if ac_fn_c_try_link "$LINENO"; then : 52066 LIBFFI_WORKS=yes 52067 else 52068 LIBFFI_WORKS=no 52069 52070 fi 52071 rm -f core conftest.err conftest.$ac_objext \ 52072 conftest$ac_exeext conftest.$ac_ext 52073 CFLAGS="$OLD_CFLAGS" 52074 LIBS="$OLD_LIBS" 52075 ac_ext=cpp 52076 ac_cpp='$CXXCPP $CPPFLAGS' 52077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52080 52081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 52082 $as_echo "$LIBFFI_WORKS" >&6; } 52083 52084 if test "x$LIBFFI_WORKS" = xno; then 52085 52086 # Print a helpful message on how to acquire the necessary build dependency. 52087 # ffi is the help tag: freetype, cups, alsa etc 52088 MISSING_DEPENDENCY=ffi 52089 52090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 52091 cygwin_help $MISSING_DEPENDENCY 52092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 52093 msys_help $MISSING_DEPENDENCY 52094 else 52095 PKGHANDLER_COMMAND= 52096 52097 case $PKGHANDLER in 52098 apt-get) 52099 apt_help $MISSING_DEPENDENCY ;; 52100 yum) 52101 yum_help $MISSING_DEPENDENCY ;; 52102 port) 52103 port_help $MISSING_DEPENDENCY ;; 52104 pkgutil) 52105 pkgutil_help $MISSING_DEPENDENCY ;; 52106 pkgadd) 52107 pkgadd_help $MISSING_DEPENDENCY ;; 52108 esac 52109 52110 if test "x$PKGHANDLER_COMMAND" != x; then 52111 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 52112 fi 52113 fi 52114 52115 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 52116 fi 52117 fi 52118 52119 52120 52121 52122 52123 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 52124 # Extract the first word of "llvm-config", so it can be a program name with args. 52125 set dummy llvm-config; ac_word=$2 52126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 52127 $as_echo_n "checking for $ac_word... " >&6; } 52128 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 52129 $as_echo_n "(cached) " >&6 52130 else 52131 if test -n "$LLVM_CONFIG"; then 52132 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 52133 else 52134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 52135 for as_dir in $PATH 52136 do 52137 IFS=$as_save_IFS 52138 test -z "$as_dir" && as_dir=. 52139 for ac_exec_ext in '' $ac_executable_extensions; do 52140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 52141 ac_cv_prog_LLVM_CONFIG="llvm-config" 52142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 52143 break 2 52144 fi 52145 done 52146 done 52147 IFS=$as_save_IFS 52148 52149 fi 52150 fi 52151 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 52152 if test -n "$LLVM_CONFIG"; then 52153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 52154 $as_echo "$LLVM_CONFIG" >&6; } 52155 else 52156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52157 $as_echo "no" >&6; } 52158 fi 52159 52160 52161 52162 if test "x$LLVM_CONFIG" != xllvm-config; then 52163 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 52164 fi 52165 52166 llvm_components="jit mcjit engine nativecodegen native" 52167 unset LLVM_CFLAGS 52168 for flag in $("$LLVM_CONFIG" --cxxflags); do 52169 if echo "${flag}" | grep -q '^-[ID]'; then 52170 if test "${flag}" != "-D_DEBUG" ; then 52171 if test "${LLVM_CFLAGS}" != "" ; then 52172 LLVM_CFLAGS="${LLVM_CFLAGS} " 52173 fi 52174 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 52175 fi 52176 fi 52177 done 52178 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 52179 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 52180 52181 unset LLVM_LDFLAGS 52182 for flag in $("${LLVM_CONFIG}" --ldflags); do 52183 if echo "${flag}" | grep -q '^-L'; then 52184 if test "${LLVM_LDFLAGS}" != ""; then 52185 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 52186 fi 52187 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 52188 fi 52189 done 52190 52191 unset LLVM_LIBS 52192 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 52193 if echo "${flag}" | grep -q '^-l'; then 52194 if test "${LLVM_LIBS}" != ""; then 52195 LLVM_LIBS="${LLVM_LIBS} " 52196 fi 52197 LLVM_LIBS="${LLVM_LIBS}${flag}" 52198 fi 52199 done 52200 52201 52202 52203 52204 fi 52205 52206 52207 52208 # Check whether --with-libjpeg was given. 52209 if test "${with_libjpeg+set}" = set; then : 52210 withval=$with_libjpeg; 52211 fi 52212 52213 52214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 52215 $as_echo_n "checking for which libjpeg to use... " >&6; } 52216 # default is bundled 52217 DEFAULT_LIBJPEG=bundled 52218 # if user didn't specify, use DEFAULT_LIBJPEG 52219 if test "x${with_libjpeg}" = "x"; then 52220 with_libjpeg=${DEFAULT_LIBJPEG} 52221 fi 52222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 52223 $as_echo "${with_libjpeg}" >&6; } 52224 52225 if test "x${with_libjpeg}" = "xbundled"; then 52226 USE_EXTERNAL_LIBJPEG=false 52227 elif test "x${with_libjpeg}" = "xsystem"; then 52228 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 52229 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 52230 52231 else 52232 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 52233 fi 52234 52235 52236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 52237 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 52238 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 52239 $as_echo_n "(cached) " >&6 52240 else 52241 ac_check_lib_save_LIBS=$LIBS 52242 LIBS="-ljpeg $LIBS" 52243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52244 /* end confdefs.h. */ 52245 52246 /* Override any GCC internal prototype to avoid an error. 52247 Use char because int might match the return type of a GCC 52248 builtin and then its argument prototype would still apply. */ 52249 #ifdef __cplusplus 52250 extern "C" 52251 #endif 52252 char jpeg_CreateDecompress (); 52253 int 52254 main () 52255 { 52256 return jpeg_CreateDecompress (); 52257 ; 52258 return 0; 52259 } 52260 _ACEOF 52261 if ac_fn_cxx_try_link "$LINENO"; then : 52262 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 52263 else 52264 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 52265 fi 52266 rm -f core conftest.err conftest.$ac_objext \ 52267 conftest$ac_exeext conftest.$ac_ext 52268 LIBS=$ac_check_lib_save_LIBS 52269 fi 52270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 52271 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 52272 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 52273 cat >>confdefs.h <<_ACEOF 52274 #define HAVE_LIBJPEG 1 52275 _ACEOF 52276 52277 LIBS="-ljpeg $LIBS" 52278 52279 else 52280 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 52281 fi 52282 52283 52284 USE_EXTERNAL_LIBJPEG=true 52285 else 52286 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 52287 fi 52288 52289 52290 52291 52292 52293 # Check whether --with-giflib was given. 52294 if test "${with_giflib+set}" = set; then : 52295 withval=$with_giflib; 52296 fi 52297 52298 52299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 52300 $as_echo_n "checking for which giflib to use... " >&6; } 52301 # default is bundled 52302 DEFAULT_GIFLIB=bundled 52303 # if user didn't specify, use DEFAULT_GIFLIB 52304 if test "x${with_giflib}" = "x"; then 52305 with_giflib=${DEFAULT_GIFLIB} 52306 fi 52307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 52308 $as_echo "${with_giflib}" >&6; } 52309 52310 if test "x${with_giflib}" = "xbundled"; then 52311 USE_EXTERNAL_LIBGIF=false 52312 elif test "x${with_giflib}" = "xsystem"; then 52313 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 52314 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 52315 52316 else 52317 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 52318 fi 52319 52320 52321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 52322 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 52323 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 52324 $as_echo_n "(cached) " >&6 52325 else 52326 ac_check_lib_save_LIBS=$LIBS 52327 LIBS="-lgif $LIBS" 52328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52329 /* end confdefs.h. */ 52330 52331 /* Override any GCC internal prototype to avoid an error. 52332 Use char because int might match the return type of a GCC 52333 builtin and then its argument prototype would still apply. */ 52334 #ifdef __cplusplus 52335 extern "C" 52336 #endif 52337 char DGifGetCode (); 52338 int 52339 main () 52340 { 52341 return DGifGetCode (); 52342 ; 52343 return 0; 52344 } 52345 _ACEOF 52346 if ac_fn_cxx_try_link "$LINENO"; then : 52347 ac_cv_lib_gif_DGifGetCode=yes 52348 else 52349 ac_cv_lib_gif_DGifGetCode=no 52350 fi 52351 rm -f core conftest.err conftest.$ac_objext \ 52352 conftest$ac_exeext conftest.$ac_ext 52353 LIBS=$ac_check_lib_save_LIBS 52354 fi 52355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 52356 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 52357 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 52358 cat >>confdefs.h <<_ACEOF 52359 #define HAVE_LIBGIF 1 52360 _ACEOF 52361 52362 LIBS="-lgif $LIBS" 52363 52364 else 52365 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 52366 fi 52367 52368 52369 USE_EXTERNAL_LIBGIF=true 52370 else 52371 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 52372 fi 52373 52374 52375 52376 52377 52378 # Check whether --with-libpng was given. 52379 if test "${with_libpng+set}" = set; then : 52380 withval=$with_libpng; 52381 fi 52382 52383 52384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 52385 $as_echo_n "checking for which libpng to use... " >&6; } 52386 52387 # default is bundled 52388 DEFAULT_LIBPNG=bundled 52389 # if user didn't specify, use DEFAULT_LIBPNG 52390 if test "x${with_libpng}" = "x"; then 52391 with_libpng=${DEFAULT_LIBPNG} 52392 fi 52393 52394 if test "x${with_libpng}" = "xbundled"; then 52395 USE_EXTERNAL_LIBPNG=false 52396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 52397 $as_echo "bundled" >&6; } 52398 elif test "x${with_libpng}" = "xsystem"; then 52399 52400 pkg_failed=no 52401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 52402 $as_echo_n "checking for PNG... " >&6; } 52403 52404 if test -n "$PNG_CFLAGS"; then 52405 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 52406 elif test -n "$PKG_CONFIG"; then 52407 if test -n "$PKG_CONFIG" && \ 52408 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 52409 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 52410 ac_status=$? 52411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52412 test $ac_status = 0; }; then 52413 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 52414 else 52415 pkg_failed=yes 52416 fi 52417 else 52418 pkg_failed=untried 52419 fi 52420 if test -n "$PNG_LIBS"; then 52421 pkg_cv_PNG_LIBS="$PNG_LIBS" 52422 elif test -n "$PKG_CONFIG"; then 52423 if test -n "$PKG_CONFIG" && \ 52424 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 52425 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 52426 ac_status=$? 52427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52428 test $ac_status = 0; }; then 52429 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 52430 else 52431 pkg_failed=yes 52432 fi 52433 else 52434 pkg_failed=untried 52435 fi 52436 52437 52438 52439 if test $pkg_failed = yes; then 52440 52441 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 52442 _pkg_short_errors_supported=yes 52443 else 52444 _pkg_short_errors_supported=no 52445 fi 52446 if test $_pkg_short_errors_supported = yes; then 52447 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 52448 else 52449 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 52450 fi 52451 # Put the nasty error message in config.log where it belongs 52452 echo "$PNG_PKG_ERRORS" >&5 52453 52454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52455 $as_echo "no" >&6; } 52456 LIBPNG_FOUND=no 52457 elif test $pkg_failed = untried; then 52458 LIBPNG_FOUND=no 52459 else 52460 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 52461 PNG_LIBS=$pkg_cv_PNG_LIBS 52462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52463 $as_echo "yes" >&6; } 52464 LIBPNG_FOUND=yes 52465 fi 52466 if test "x${LIBPNG_FOUND}" = "xyes"; then 52467 USE_EXTERNAL_LIBPNG=true 52468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 52469 $as_echo "system" >&6; } 52470 else 52471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 52472 $as_echo "system not found" >&6; } 52473 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 52474 fi 52475 else 52476 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 52477 fi 52478 52479 52480 52481 52482 52483 # Check whether --with-zlib was given. 52484 if test "${with_zlib+set}" = set; then : 52485 withval=$with_zlib; 52486 fi 52487 52488 52489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 52490 $as_echo_n "checking for compress in -lz... " >&6; } 52491 if ${ac_cv_lib_z_compress+:} false; then : 52492 $as_echo_n "(cached) " >&6 52493 else 52494 ac_check_lib_save_LIBS=$LIBS 52495 LIBS="-lz $LIBS" 52496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52497 /* end confdefs.h. */ 52498 52499 /* Override any GCC internal prototype to avoid an error. 52500 Use char because int might match the return type of a GCC 52501 builtin and then its argument prototype would still apply. */ 52502 #ifdef __cplusplus 52503 extern "C" 52504 #endif 52505 char compress (); 52506 int 52507 main () 52508 { 52509 return compress (); 52510 ; 52511 return 0; 52512 } 52513 _ACEOF 52514 if ac_fn_cxx_try_link "$LINENO"; then : 52515 ac_cv_lib_z_compress=yes 52516 else 52517 ac_cv_lib_z_compress=no 52518 fi 52519 rm -f core conftest.err conftest.$ac_objext \ 52520 conftest$ac_exeext conftest.$ac_ext 52521 LIBS=$ac_check_lib_save_LIBS 52522 fi 52523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 52524 $as_echo "$ac_cv_lib_z_compress" >&6; } 52525 if test "x$ac_cv_lib_z_compress" = xyes; then : 52526 ZLIB_FOUND=yes 52527 else 52528 ZLIB_FOUND=no 52529 fi 52530 52531 52532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 52533 $as_echo_n "checking for which zlib to use... " >&6; } 52534 52535 DEFAULT_ZLIB=bundled 52536 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52537 # On macosx default is system...on others default is bundled 52538 DEFAULT_ZLIB=system 52539 fi 52540 52541 if test "x${ZLIB_FOUND}" != "xyes"; then 52542 # If we don't find any system...set default to bundled 52543 DEFAULT_ZLIB=bundled 52544 fi 52545 52546 # If user didn't specify, use DEFAULT_ZLIB 52547 if test "x${with_zlib}" = "x"; then 52548 with_zlib=${DEFAULT_ZLIB} 52549 fi 52550 52551 if test "x${with_zlib}" = "xbundled"; then 52552 USE_EXTERNAL_LIBZ=false 52553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 52554 $as_echo "bundled" >&6; } 52555 elif test "x${with_zlib}" = "xsystem"; then 52556 if test "x${ZLIB_FOUND}" = "xyes"; then 52557 USE_EXTERNAL_LIBZ=true 52558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 52559 $as_echo "system" >&6; } 52560 else 52561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 52562 $as_echo "system not found" >&6; } 52563 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 52564 fi 52565 else 52566 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 52567 fi 52568 52569 52570 52571 52572 52573 # Check whether --with-lcms was given. 52574 if test "${with_lcms+set}" = set; then : 52575 withval=$with_lcms; 52576 fi 52577 52578 52579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 52580 $as_echo_n "checking for which lcms to use... " >&6; } 52581 52582 DEFAULT_LCMS=bundled 52583 # If user didn't specify, use DEFAULT_LCMS 52584 if test "x${with_lcms}" = "x"; then 52585 with_lcms=${DEFAULT_LCMS} 52586 fi 52587 52588 if test "x${with_lcms}" = "xbundled"; then 52589 USE_EXTERNAL_LCMS=false 52590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 52591 $as_echo "bundled" >&6; } 52592 elif test "x${with_lcms}" = "xsystem"; then 52593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 52594 $as_echo "system" >&6; } 52595 52596 pkg_failed=no 52597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 52598 $as_echo_n "checking for LCMS... " >&6; } 52599 52600 if test -n "$LCMS_CFLAGS"; then 52601 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 52602 elif test -n "$PKG_CONFIG"; then 52603 if test -n "$PKG_CONFIG" && \ 52604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 52605 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 52606 ac_status=$? 52607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52608 test $ac_status = 0; }; then 52609 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 52610 else 52611 pkg_failed=yes 52612 fi 52613 else 52614 pkg_failed=untried 52615 fi 52616 if test -n "$LCMS_LIBS"; then 52617 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 52618 elif test -n "$PKG_CONFIG"; then 52619 if test -n "$PKG_CONFIG" && \ 52620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 52621 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 52622 ac_status=$? 52623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 52624 test $ac_status = 0; }; then 52625 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 52626 else 52627 pkg_failed=yes 52628 fi 52629 else 52630 pkg_failed=untried 52631 fi 52632 52633 52634 52635 if test $pkg_failed = yes; then 52636 52637 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 52638 _pkg_short_errors_supported=yes 52639 else 52640 _pkg_short_errors_supported=no 52641 fi 52642 if test $_pkg_short_errors_supported = yes; then 52643 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 52644 else 52645 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 52646 fi 52647 # Put the nasty error message in config.log where it belongs 52648 echo "$LCMS_PKG_ERRORS" >&5 52649 52650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52651 $as_echo "no" >&6; } 52652 LCMS_FOUND=no 52653 elif test $pkg_failed = untried; then 52654 LCMS_FOUND=no 52655 else 52656 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 52657 LCMS_LIBS=$pkg_cv_LCMS_LIBS 52658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52659 $as_echo "yes" >&6; } 52660 LCMS_FOUND=yes 52661 fi 52662 if test "x${LCMS_FOUND}" = "xyes"; then 52663 USE_EXTERNAL_LCMS=true 52664 else 52665 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 52666 fi 52667 else 52668 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 52669 fi 52670 52671 52672 52673 52674 52675 52676 52677 52678 52679 52680 52681 # Setup libm (the maths library) 52682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 52683 $as_echo_n "checking for cos in -lm... " >&6; } 52684 if ${ac_cv_lib_m_cos+:} false; then : 52685 $as_echo_n "(cached) " >&6 52686 else 52687 ac_check_lib_save_LIBS=$LIBS 52688 LIBS="-lm $LIBS" 52689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52690 /* end confdefs.h. */ 52691 52692 /* Override any GCC internal prototype to avoid an error. 52693 Use char because int might match the return type of a GCC 52694 builtin and then its argument prototype would still apply. */ 52695 #ifdef __cplusplus 52696 extern "C" 52697 #endif 52698 char cos (); 52699 int 52700 main () 52701 { 52702 return cos (); 52703 ; 52704 return 0; 52705 } 52706 _ACEOF 52707 if ac_fn_cxx_try_link "$LINENO"; then : 52708 ac_cv_lib_m_cos=yes 52709 else 52710 ac_cv_lib_m_cos=no 52711 fi 52712 rm -f core conftest.err conftest.$ac_objext \ 52713 conftest$ac_exeext conftest.$ac_ext 52714 LIBS=$ac_check_lib_save_LIBS 52715 fi 52716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 52717 $as_echo "$ac_cv_lib_m_cos" >&6; } 52718 if test "x$ac_cv_lib_m_cos" = xyes; then : 52719 cat >>confdefs.h <<_ACEOF 52720 #define HAVE_LIBM 1 52721 _ACEOF 52722 52723 LIBS="-lm $LIBS" 52724 52725 else 52726 52727 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 52728 $as_echo "$as_me: Maths library was not found" >&6;} 52729 52730 fi 52731 52732 LIBM=-lm 52733 52734 52735 # Setup libdl (for dynamic library loading) 52736 save_LIBS="$LIBS" 52737 LIBS="" 52738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 52739 $as_echo_n "checking for dlopen in -ldl... " >&6; } 52740 if ${ac_cv_lib_dl_dlopen+:} false; then : 52741 $as_echo_n "(cached) " >&6 52742 else 52743 ac_check_lib_save_LIBS=$LIBS 52744 LIBS="-ldl $LIBS" 52745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52746 /* end confdefs.h. */ 52747 52748 /* Override any GCC internal prototype to avoid an error. 52749 Use char because int might match the return type of a GCC 52750 builtin and then its argument prototype would still apply. */ 52751 #ifdef __cplusplus 52752 extern "C" 52753 #endif 52754 char dlopen (); 52755 int 52756 main () 52757 { 52758 return dlopen (); 52759 ; 52760 return 0; 52761 } 52762 _ACEOF 52763 if ac_fn_cxx_try_link "$LINENO"; then : 52764 ac_cv_lib_dl_dlopen=yes 52765 else 52766 ac_cv_lib_dl_dlopen=no 52767 fi 52768 rm -f core conftest.err conftest.$ac_objext \ 52769 conftest$ac_exeext conftest.$ac_ext 52770 LIBS=$ac_check_lib_save_LIBS 52771 fi 52772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 52773 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 52774 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 52775 cat >>confdefs.h <<_ACEOF 52776 #define HAVE_LIBDL 1 52777 _ACEOF 52778 52779 LIBS="-ldl $LIBS" 52780 52781 fi 52782 52783 LIBDL="$LIBS" 52784 52785 LIBS="$save_LIBS" 52786 52787 # Deprecated libraries, keep the flags for backwards compatibility 52788 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52789 52790 52791 # Check whether --with-dxsdk was given. 52792 if test "${with_dxsdk+set}" = set; then : 52793 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 52794 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 52795 fi 52796 52797 52798 52799 52800 # Check whether --with-dxsdk-lib was given. 52801 if test "${with_dxsdk_lib+set}" = set; then : 52802 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 52803 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 52804 fi 52805 52806 52807 52808 52809 # Check whether --with-dxsdk-include was given. 52810 if test "${with_dxsdk_include+set}" = set; then : 52811 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 52812 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 52813 fi 52814 52815 52816 fi 52817 52818 # Control if libzip can use mmap. Available for purposes of overriding. 52819 LIBZIP_CAN_USE_MMAP=true 52820 52821 52822 52823 52824 52825 52826 52827 52828 52829 52830 52831 52832 52833 52834 ############################################################################### 52835 # 52836 # We need to do some final tweaking, when everything else is done. 52837 # 52838 ############################################################################### 52839 52840 52841 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 52842 52843 52844 # The name of the Service Agent jar. 52845 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 52846 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 52847 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 52848 fi 52849 52850 52851 52852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 52853 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 52854 52855 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 52856 ENABLE_INTREE_EC=yes 52857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 52858 $as_echo "yes" >&6; } 52859 else 52860 ENABLE_INTREE_EC=no 52861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 52862 $as_echo "no" >&6; } 52863 fi 52864 52865 52866 52867 52868 ############################################################################### 52869 # 52870 # Configure parts of the build that only affect the build performance, 52871 # not the result. 52872 # 52873 ############################################################################### 52874 52875 52876 # How many cores do we have on this build system? 52877 52878 # Check whether --with-num-cores was given. 52879 if test "${with_num_cores+set}" = set; then : 52880 withval=$with_num_cores; 52881 fi 52882 52883 if test "x$with_num_cores" = x; then 52884 # The number of cores were not specified, try to probe them. 52885 52886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 52887 $as_echo_n "checking for number of cores... " >&6; } 52888 NUM_CORES=1 52889 FOUND_CORES=no 52890 52891 if test -f /proc/cpuinfo; then 52892 # Looks like a Linux (or cygwin) system 52893 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 52894 FOUND_CORES=yes 52895 elif test -x /usr/sbin/psrinfo; then 52896 # Looks like a Solaris system 52897 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 52898 FOUND_CORES=yes 52899 elif test -x /usr/sbin/system_profiler; then 52900 # Looks like a MacOSX system 52901 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 52902 FOUND_CORES=yes 52903 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 52904 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 52905 FOUND_CORES=yes 52906 elif test -n "$NUMBER_OF_PROCESSORS"; then 52907 # On windows, look in the env 52908 NUM_CORES=$NUMBER_OF_PROCESSORS 52909 FOUND_CORES=yes 52910 fi 52911 52912 if test "x$FOUND_CORES" = xyes; then 52913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 52914 $as_echo "$NUM_CORES" >&6; } 52915 else 52916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 52917 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 52918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 52919 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 52920 fi 52921 52922 else 52923 NUM_CORES=$with_num_cores 52924 fi 52925 52926 52927 52928 # How much memory do we have on this build system? 52929 52930 # Check whether --with-memory-size was given. 52931 if test "${with_memory_size+set}" = set; then : 52932 withval=$with_memory_size; 52933 fi 52934 52935 if test "x$with_memory_size" = x; then 52936 # The memory size was not specified, try to probe it. 52937 52938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 52939 $as_echo_n "checking for memory size... " >&6; } 52940 # Default to 1024 MB 52941 MEMORY_SIZE=1024 52942 FOUND_MEM=no 52943 52944 if test -f /proc/meminfo; then 52945 # Looks like a Linux (or cygwin) system 52946 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 52947 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 52948 FOUND_MEM=yes 52949 elif test -x /usr/sbin/prtconf; then 52950 # Looks like a Solaris or AIX system 52951 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 52952 FOUND_MEM=yes 52953 elif test -x /usr/sbin/system_profiler; then 52954 # Looks like a MacOSX system 52955 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 52956 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 52957 FOUND_MEM=yes 52958 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 52959 # Windows, but without cygwin 52960 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 52961 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 52962 FOUND_MEM=yes 52963 fi 52964 52965 if test "x$FOUND_MEM" = xyes; then 52966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 52967 $as_echo "$MEMORY_SIZE MB" >&6; } 52968 else 52969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 52970 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 52971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 52972 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 52973 fi 52974 52975 else 52976 MEMORY_SIZE=$with_memory_size 52977 fi 52978 52979 52980 52981 # Provide a decent default number of parallel jobs for make depending on 52982 # number of cores, amount of memory and machine architecture. 52983 52984 # Check whether --with-jobs was given. 52985 if test "${with_jobs+set}" = set; then : 52986 withval=$with_jobs; 52987 fi 52988 52989 if test "x$with_jobs" = x; then 52990 # Number of jobs was not specified, calculate. 52991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 52992 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 52993 # Approximate memory in GB. 52994 memory_gb=`expr $MEMORY_SIZE / 1024` 52995 # Pick the lowest of memory in gb and number of cores. 52996 if test "$memory_gb" -lt "$NUM_CORES"; then 52997 JOBS="$memory_gb" 52998 else 52999 JOBS="$NUM_CORES" 53000 # On bigger machines, leave some room for other processes to run 53001 if test "$JOBS" -gt "4"; then 53002 JOBS=`expr $JOBS '*' 90 / 100` 53003 fi 53004 fi 53005 # Cap number of jobs to 16 53006 if test "$JOBS" -gt "16"; then 53007 JOBS=16 53008 fi 53009 if test "$JOBS" -eq "0"; then 53010 JOBS=1 53011 fi 53012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 53013 $as_echo "$JOBS" >&6; } 53014 else 53015 JOBS=$with_jobs 53016 fi 53017 53018 53019 53020 # Setup arguments for the boot jdk (after cores and memory have been setup) 53021 53022 ############################################################################## 53023 # 53024 # Specify jvm options for anything that is run with the Boot JDK. 53025 # Not all JVM:s accept the same arguments on the command line. 53026 # 53027 53028 # Check whether --with-boot-jdk-jvmargs was given. 53029 if test "${with_boot_jdk_jvmargs+set}" = set; then : 53030 withval=$with_boot_jdk_jvmargs; 53031 fi 53032 53033 53034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 53035 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 53036 53037 # Disable special log output when a debug build is used as Boot JDK... 53038 53039 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 53040 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 53041 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 53042 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53043 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53044 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53045 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 53046 JVM_ARG_OK=true 53047 else 53048 $ECHO "Arg failed:" >&5 53049 $ECHO "$OUTPUT" >&5 53050 JVM_ARG_OK=false 53051 fi 53052 53053 53054 # Apply user provided options. 53055 53056 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 53057 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 53058 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 53059 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53060 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53061 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53062 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 53063 JVM_ARG_OK=true 53064 else 53065 $ECHO "Arg failed:" >&5 53066 $ECHO "$OUTPUT" >&5 53067 JVM_ARG_OK=false 53068 fi 53069 53070 53071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 53072 $as_echo "$boot_jdk_jvmargs" >&6; } 53073 53074 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 53075 JAVA_FLAGS=$boot_jdk_jvmargs 53076 53077 53078 53079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 53080 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 53081 53082 # Starting amount of heap memory. 53083 53084 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 53085 $ECHO "Command: $JAVA -Xms64M -version" >&5 53086 OUTPUT=`$JAVA -Xms64M -version 2>&1` 53087 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53088 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53089 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53090 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 53091 JVM_ARG_OK=true 53092 else 53093 $ECHO "Arg failed:" >&5 53094 $ECHO "$OUTPUT" >&5 53095 JVM_ARG_OK=false 53096 fi 53097 53098 53099 # Maximum amount of heap memory. 53100 # Maximum stack size. 53101 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 53102 if test "x$BUILD_NUM_BITS" = x32; then 53103 if test "$JVM_MAX_HEAP" -gt "1100"; then 53104 JVM_MAX_HEAP=1100 53105 elif test "$JVM_MAX_HEAP" -lt "512"; then 53106 JVM_MAX_HEAP=512 53107 fi 53108 STACK_SIZE=768 53109 else 53110 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 53111 # pointers are used. Apparently, we need to increase the heap and stack 53112 # space for the jvm. More specifically, when running javac to build huge 53113 # jdk batch 53114 if test "$JVM_MAX_HEAP" -gt "1600"; then 53115 JVM_MAX_HEAP=1600 53116 elif test "$JVM_MAX_HEAP" -lt "512"; then 53117 JVM_MAX_HEAP=512 53118 fi 53119 STACK_SIZE=1536 53120 fi 53121 53122 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 53123 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 53124 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 53125 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53126 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53127 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53128 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 53129 JVM_ARG_OK=true 53130 else 53131 $ECHO "Arg failed:" >&5 53132 $ECHO "$OUTPUT" >&5 53133 JVM_ARG_OK=false 53134 fi 53135 53136 53137 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 53138 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 53139 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 53140 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53141 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53142 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53143 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 53144 JVM_ARG_OK=true 53145 else 53146 $ECHO "Arg failed:" >&5 53147 $ECHO "$OUTPUT" >&5 53148 JVM_ARG_OK=false 53149 fi 53150 53151 53152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 53153 $as_echo "$boot_jdk_jvmargs_big" >&6; } 53154 53155 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 53156 53157 53158 53159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 53160 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 53161 53162 # Use serial gc for small short lived tools if possible 53163 53164 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 53165 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 53166 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 53167 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53168 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53169 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53170 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 53171 JVM_ARG_OK=true 53172 else 53173 $ECHO "Arg failed:" >&5 53174 $ECHO "$OUTPUT" >&5 53175 JVM_ARG_OK=false 53176 fi 53177 53178 53179 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 53180 $ECHO "Command: $JAVA -Xms32M -version" >&5 53181 OUTPUT=`$JAVA -Xms32M -version 2>&1` 53182 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53183 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53184 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53185 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 53186 JVM_ARG_OK=true 53187 else 53188 $ECHO "Arg failed:" >&5 53189 $ECHO "$OUTPUT" >&5 53190 JVM_ARG_OK=false 53191 fi 53192 53193 53194 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 53195 $ECHO "Command: $JAVA -Xmx512M -version" >&5 53196 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 53197 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53198 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53199 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53200 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 53201 JVM_ARG_OK=true 53202 else 53203 $ECHO "Arg failed:" >&5 53204 $ECHO "$OUTPUT" >&5 53205 JVM_ARG_OK=false 53206 fi 53207 53208 53209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 53210 $as_echo "$boot_jdk_jvmargs_small" >&6; } 53211 53212 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 53213 53214 53215 JAVA_TOOL_FLAGS_SMALL="" 53216 for f in $JAVA_FLAGS_SMALL; do 53217 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 53218 done 53219 53220 53221 53222 # Setup smart javac (after cores and memory have been setup) 53223 53224 53225 # Check whether --with-sjavac-server-java was given. 53226 if test "${with_sjavac_server_java+set}" = set; then : 53227 withval=$with_sjavac_server_java; 53228 fi 53229 53230 53231 if test "x$with_sjavac_server_java" != x; then 53232 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 53233 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 53234 if test "x$FOUND_VERSION" = x; then 53235 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 53236 fi 53237 else 53238 SJAVAC_SERVER_JAVA="$JAVA" 53239 fi 53240 53241 53242 if test "$MEMORY_SIZE" -gt "3000"; then 53243 53244 $ECHO "Check if jvm arg is ok: -d64" >&5 53245 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 53246 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 53247 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53248 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53249 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53250 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 53251 JVM_ARG_OK=true 53252 else 53253 $ECHO "Arg failed:" >&5 53254 $ECHO "$OUTPUT" >&5 53255 JVM_ARG_OK=false 53256 fi 53257 53258 if test "$JVM_ARG_OK" = true; then 53259 JVM_64BIT=true 53260 JVM_ARG_OK=false 53261 fi 53262 fi 53263 53264 MX_VALUE=`expr $MEMORY_SIZE / 2` 53265 if test "$JVM_64BIT" = true; then 53266 # Set ms lower than mx since more than one instance of the server might 53267 # get launched at the same time before they figure out which instance won. 53268 MS_VALUE=512 53269 if test "$MX_VALUE" -gt "2048"; then 53270 MX_VALUE=2048 53271 fi 53272 else 53273 MS_VALUE=256 53274 if test "$MX_VALUE" -gt "1500"; then 53275 MX_VALUE=1500 53276 fi 53277 fi 53278 if test "$MX_VALUE" -lt "512"; then 53279 MX_VALUE=512 53280 fi 53281 53282 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 53283 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 53284 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 53285 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 53286 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 53287 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 53288 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 53289 JVM_ARG_OK=true 53290 else 53291 $ECHO "Arg failed:" >&5 53292 $ECHO "$OUTPUT" >&5 53293 JVM_ARG_OK=false 53294 fi 53295 53296 53297 53298 # Check whether --enable-sjavac was given. 53299 if test "${enable_sjavac+set}" = set; then : 53300 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 53301 else 53302 ENABLE_SJAVAC='no' 53303 fi 53304 53305 if test "x$JVM_ARG_OK" = "xfalse"; then 53306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 53307 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 53308 ENABLE_SJAVAC=no; 53309 fi 53310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 53311 $as_echo_n "checking whether to use sjavac... " >&6; } 53312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 53313 $as_echo "$ENABLE_SJAVAC" >&6; } 53314 53315 53316 53317 # Can the C/C++ compiler use precompiled headers? 53318 53319 53320 ############################################################################### 53321 # 53322 # Can the C/C++ compiler use precompiled headers? 53323 # 53324 # Check whether --enable-precompiled-headers was given. 53325 if test "${enable_precompiled_headers+set}" = set; then : 53326 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 53327 else 53328 ENABLE_PRECOMPH=yes 53329 fi 53330 53331 53332 USE_PRECOMPILED_HEADER=1 53333 if test "x$ENABLE_PRECOMPH" = xno; then 53334 USE_PRECOMPILED_HEADER=0 53335 fi 53336 53337 if test "x$ENABLE_PRECOMPH" = xyes; then 53338 # Check that the compiler actually supports precomp headers. 53339 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 53341 $as_echo_n "checking that precompiled headers work... " >&6; } 53342 echo "int alfa();" > conftest.h 53343 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 53344 if test ! -f conftest.hpp.gch; then 53345 USE_PRECOMPILED_HEADER=0 53346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53347 $as_echo "no" >&6; } 53348 else 53349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53350 $as_echo "yes" >&6; } 53351 fi 53352 rm -f conftest.h conftest.hpp.gch 53353 fi 53354 fi 53355 53356 53357 53358 53359 # Setup use of ccache, if available 53360 53361 # Check whether --enable-ccache was given. 53362 if test "${enable_ccache+set}" = set; then : 53363 enableval=$enable_ccache; 53364 fi 53365 53366 53367 CCACHE= 53368 CCACHE_STATUS= 53369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 53370 $as_echo_n "checking is ccache enabled... " >&6; } 53371 if test "x$enable_ccache" = xyes; then 53372 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 53373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53374 $as_echo "yes" >&6; } 53375 OLD_PATH="$PATH" 53376 if test "x$TOOLCHAIN_PATH" != x; then 53377 PATH=$TOOLCHAIN_PATH:$PATH 53378 fi 53379 53380 53381 53382 # Publish this variable in the help. 53383 53384 53385 if [ -z "${CCACHE+x}" ]; then 53386 # The variable is not set by user, try to locate tool using the code snippet 53387 for ac_prog in ccache 53388 do 53389 # Extract the first word of "$ac_prog", so it can be a program name with args. 53390 set dummy $ac_prog; ac_word=$2 53391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53392 $as_echo_n "checking for $ac_word... " >&6; } 53393 if ${ac_cv_path_CCACHE+:} false; then : 53394 $as_echo_n "(cached) " >&6 53395 else 53396 case $CCACHE in 53397 [\\/]* | ?:[\\/]*) 53398 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53399 ;; 53400 *) 53401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53402 for as_dir in $PATH 53403 do 53404 IFS=$as_save_IFS 53405 test -z "$as_dir" && as_dir=. 53406 for ac_exec_ext in '' $ac_executable_extensions; do 53407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53408 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53410 break 2 53411 fi 53412 done 53413 done 53414 IFS=$as_save_IFS 53415 53416 ;; 53417 esac 53418 fi 53419 CCACHE=$ac_cv_path_CCACHE 53420 if test -n "$CCACHE"; then 53421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53422 $as_echo "$CCACHE" >&6; } 53423 else 53424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53425 $as_echo "no" >&6; } 53426 fi 53427 53428 53429 test -n "$CCACHE" && break 53430 done 53431 53432 else 53433 # The variable is set, but is it from the command line or the environment? 53434 53435 # Try to remove the string !CCACHE! from our list. 53436 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 53437 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 53438 # If it failed, the variable was not from the command line. Ignore it, 53439 # but warn the user (except for BASH, which is always set by the calling BASH). 53440 if test "xCCACHE" != xBASH; then 53441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 53442 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 53443 fi 53444 # Try to locate tool using the code snippet 53445 for ac_prog in ccache 53446 do 53447 # Extract the first word of "$ac_prog", so it can be a program name with args. 53448 set dummy $ac_prog; ac_word=$2 53449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53450 $as_echo_n "checking for $ac_word... " >&6; } 53451 if ${ac_cv_path_CCACHE+:} false; then : 53452 $as_echo_n "(cached) " >&6 53453 else 53454 case $CCACHE in 53455 [\\/]* | ?:[\\/]*) 53456 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53457 ;; 53458 *) 53459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53460 for as_dir in $PATH 53461 do 53462 IFS=$as_save_IFS 53463 test -z "$as_dir" && as_dir=. 53464 for ac_exec_ext in '' $ac_executable_extensions; do 53465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53466 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53468 break 2 53469 fi 53470 done 53471 done 53472 IFS=$as_save_IFS 53473 53474 ;; 53475 esac 53476 fi 53477 CCACHE=$ac_cv_path_CCACHE 53478 if test -n "$CCACHE"; then 53479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53480 $as_echo "$CCACHE" >&6; } 53481 else 53482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53483 $as_echo "no" >&6; } 53484 fi 53485 53486 53487 test -n "$CCACHE" && break 53488 done 53489 53490 else 53491 # If it succeeded, then it was overridden by the user. We will use it 53492 # for the tool. 53493 53494 # First remove it from the list of overridden variables, so we can test 53495 # for unknown variables in the end. 53496 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 53497 53498 # Check if we try to supply an empty value 53499 if test "x$CCACHE" = x; then 53500 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 53501 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 53502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 53503 $as_echo_n "checking for CCACHE... " >&6; } 53504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 53505 $as_echo "disabled" >&6; } 53506 else 53507 # Check if the provided tool contains a complete path. 53508 tool_specified="$CCACHE" 53509 tool_basename="${tool_specified##*/}" 53510 if test "x$tool_basename" = "x$tool_specified"; then 53511 # A command without a complete path is provided, search $PATH. 53512 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 53513 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 53514 # Extract the first word of "$tool_basename", so it can be a program name with args. 53515 set dummy $tool_basename; ac_word=$2 53516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 53517 $as_echo_n "checking for $ac_word... " >&6; } 53518 if ${ac_cv_path_CCACHE+:} false; then : 53519 $as_echo_n "(cached) " >&6 53520 else 53521 case $CCACHE in 53522 [\\/]* | ?:[\\/]*) 53523 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 53524 ;; 53525 *) 53526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53527 for as_dir in $PATH 53528 do 53529 IFS=$as_save_IFS 53530 test -z "$as_dir" && as_dir=. 53531 for ac_exec_ext in '' $ac_executable_extensions; do 53532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 53533 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 53534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 53535 break 2 53536 fi 53537 done 53538 done 53539 IFS=$as_save_IFS 53540 53541 ;; 53542 esac 53543 fi 53544 CCACHE=$ac_cv_path_CCACHE 53545 if test -n "$CCACHE"; then 53546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 53547 $as_echo "$CCACHE" >&6; } 53548 else 53549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53550 $as_echo "no" >&6; } 53551 fi 53552 53553 53554 if test "x$CCACHE" = x; then 53555 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 53556 fi 53557 else 53558 # Otherwise we believe it is a complete path. Use it as it is. 53559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 53560 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 53561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 53562 $as_echo_n "checking for CCACHE... " >&6; } 53563 if test ! -x "$tool_specified"; then 53564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 53565 $as_echo "not found" >&6; } 53566 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 53567 fi 53568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 53569 $as_echo "$tool_specified" >&6; } 53570 fi 53571 fi 53572 fi 53573 fi 53574 53575 53576 53577 if test "x$CCACHE" = x; then 53578 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 53579 fi 53580 53581 53582 PATH="$OLD_PATH" 53583 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 53584 CCACHE_STATUS="Active ($CCACHE_VERSION)" 53585 else 53586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53587 $as_echo "no" >&6; } 53588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 53589 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 53590 fi 53591 elif test "x$enable_ccache" = xno; then 53592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 53593 $as_echo "no, explicitly disabled" >&6; } 53594 CCACHE_STATUS="Disabled" 53595 elif test "x$enable_ccache" = x; then 53596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53597 $as_echo "no" >&6; } 53598 else 53599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 53600 $as_echo "unknown" >&6; } 53601 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 53602 fi 53603 53604 53605 53606 # Check whether --with-ccache-dir was given. 53607 if test "${with_ccache_dir+set}" = set; then : 53608 withval=$with_ccache_dir; 53609 fi 53610 53611 53612 if test "x$with_ccache_dir" != x; then 53613 # When using a non home ccache directory, assume the use is to share ccache files 53614 # with other users. Thus change the umask. 53615 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 53616 if test "x$CCACHE" = x; then 53617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 53618 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 53619 fi 53620 fi 53621 53622 if test "x$CCACHE" != x; then 53623 53624 if test "x$CCACHE" != x; then 53625 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 53626 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 53627 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 53628 if test "x$HAS_BAD_CCACHE" != "x"; then 53629 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 53630 fi 53631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 53632 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 53633 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 53634 PUSHED_FLAGS="$CXXFLAGS" 53635 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 53636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53637 /* end confdefs.h. */ 53638 53639 int 53640 main () 53641 { 53642 53643 ; 53644 return 0; 53645 } 53646 _ACEOF 53647 if ac_fn_cxx_try_compile "$LINENO"; then : 53648 CC_KNOWS_CCACHE_TRICK=yes 53649 else 53650 CC_KNOWS_CCACHE_TRICK=no 53651 fi 53652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53653 CXXFLAGS="$PUSHED_FLAGS" 53654 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 53655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 53656 $as_echo "yes" >&6; } 53657 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 53658 53659 CCACHE_SLOPPINESS=pch_defines,time_macros 53660 else 53661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 53662 $as_echo "no" >&6; } 53663 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 53664 fi 53665 fi 53666 53667 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 53668 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 53669 53670 if test "x$SET_CCACHE_DIR" != x; then 53671 mkdir -p $CCACHE_DIR > /dev/null 2>&1 53672 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 53673 fi 53674 fi 53675 53676 fi 53677 53678 53679 ############################################################################### 53680 # 53681 # And now the finish... 53682 # 53683 ############################################################################### 53684 53685 # Check for some common pitfalls 53686 53687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 53688 file_to_test="$SRC_ROOT/LICENSE" 53689 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 53690 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 53691 fi 53692 fi 53693 53694 53695 # Did user specify any unknown variables? 53696 53697 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 53698 # Replace the separating ! with spaces before presenting for end user. 53699 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 53700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 53701 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 53702 fi 53703 53704 53705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 53706 $as_echo_n "checking if build directory is on local disk... " >&6; } 53707 53708 # df -l lists only local disks; if the given directory is not found then 53709 # a non-zero exit code is given 53710 if test "x$DF" = x; then 53711 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 53712 # msys does not have df; use Windows "net use" instead. 53713 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 53714 if test "x$IS_NETWORK_DISK" = x; then 53715 OUTPUT_DIR_IS_LOCAL="yes" 53716 else 53717 OUTPUT_DIR_IS_LOCAL="no" 53718 fi 53719 else 53720 # No df here, say it's local 53721 OUTPUT_DIR_IS_LOCAL="yes" 53722 fi 53723 else 53724 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 53725 OUTPUT_DIR_IS_LOCAL="yes" 53726 else 53727 OUTPUT_DIR_IS_LOCAL="no" 53728 fi 53729 fi 53730 53731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 53732 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 53733 53734 53735 53736 # Check if the user has any old-style ALT_ variables set. 53737 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 53738 53739 # Before generating output files, test if they exist. If they do, this is a reconfigure. 53740 # Since we can't properly handle the dependencies for this, warn the user about the situation 53741 if test -e $OUTPUT_ROOT/spec.gmk; then 53742 IS_RECONFIGURE=yes 53743 else 53744 IS_RECONFIGURE=no 53745 fi 53746 53747 53748 # At the end, call the custom hook. (Dummy macro if no custom sources available) 53749 53750 53751 # We're messing a bit with internal autoconf variables to put the config.status 53752 # in the output directory instead of the current directory. 53753 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 53754 53755 # Create the actual output files. Now the main work of configure is done. 53756 cat >confcache <<\_ACEOF 53757 # This file is a shell script that caches the results of configure 53758 # tests run on this system so they can be shared between configure 53759 # scripts and configure runs, see configure's option --config-cache. 53760 # It is not useful on other systems. If it contains results you don't 53761 # want to keep, you may remove or edit it. 53762 # 53763 # config.status only pays attention to the cache file if you give it 53764 # the --recheck option to rerun configure. 53765 # 53766 # `ac_cv_env_foo' variables (set or unset) will be overridden when 53767 # loading this file, other *unset* `ac_cv_foo' will be assigned the 53768 # following values. 53769 53770 _ACEOF 53771 53772 # The following way of writing the cache mishandles newlines in values, 53773 # but we know of no workaround that is simple, portable, and efficient. 53774 # So, we kill variables containing newlines. 53775 # Ultrix sh set writes to stderr and can't be redirected directly, 53776 # and sets the high bit in the cache file unless we assign to the vars. 53777 ( 53778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 53779 eval ac_val=\$$ac_var 53780 case $ac_val in #( 53781 *${as_nl}*) 53782 case $ac_var in #( 53783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 53784 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 53785 esac 53786 case $ac_var in #( 53787 _ | IFS | as_nl) ;; #( 53788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 53789 *) { eval $ac_var=; unset $ac_var;} ;; 53790 esac ;; 53791 esac 53792 done 53793 53794 (set) 2>&1 | 53795 case $as_nl`(ac_space=' '; set) 2>&1` in #( 53796 *${as_nl}ac_space=\ *) 53797 # `set' does not quote correctly, so add quotes: double-quote 53798 # substitution turns \\\\ into \\, and sed turns \\ into \. 53799 sed -n \ 53800 "s/'/'\\\\''/g; 53801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 53802 ;; #( 53803 *) 53804 # `set' quotes correctly as required by POSIX, so do not add quotes. 53805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 53806 ;; 53807 esac | 53808 sort 53809 ) | 53810 sed ' 53811 /^ac_cv_env_/b end 53812 t clear 53813 :clear 53814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 53815 t end 53816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 53817 :end' >>confcache 53818 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 53819 if test -w "$cache_file"; then 53820 if test "x$cache_file" != "x/dev/null"; then 53821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 53822 $as_echo "$as_me: updating cache $cache_file" >&6;} 53823 if test ! -f "$cache_file" || test -h "$cache_file"; then 53824 cat confcache >"$cache_file" 53825 else 53826 case $cache_file in #( 53827 */* | ?:*) 53828 mv -f confcache "$cache_file"$$ && 53829 mv -f "$cache_file"$$ "$cache_file" ;; #( 53830 *) 53831 mv -f confcache "$cache_file" ;; 53832 esac 53833 fi 53834 fi 53835 else 53836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 53837 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 53838 fi 53839 fi 53840 rm -f confcache 53841 53842 test "x$prefix" = xNONE && prefix=$ac_default_prefix 53843 # Let make expand exec_prefix. 53844 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 53845 53846 # Transform confdefs.h into DEFS. 53847 # Protect against shell expansion while executing Makefile rules. 53848 # Protect against Makefile macro expansion. 53849 # 53850 # If the first sed substitution is executed (which looks for macros that 53851 # take arguments), then branch to the quote section. Otherwise, 53852 # look for a macro that doesn't take arguments. 53853 ac_script=' 53854 :mline 53855 /\\$/{ 53856 N 53857 s,\\\n,, 53858 b mline 53859 } 53860 t clear 53861 :clear 53862 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 53863 t quote 53864 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 53865 t quote 53866 b any 53867 :quote 53868 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 53869 s/\[/\\&/g 53870 s/\]/\\&/g 53871 s/\$/$$/g 53872 H 53873 :any 53874 ${ 53875 g 53876 s/^\n// 53877 s/\n/ /g 53878 p 53879 } 53880 ' 53881 DEFS=`sed -n "$ac_script" confdefs.h` 53882 53883 53884 ac_libobjs= 53885 ac_ltlibobjs= 53886 U= 53887 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 53888 # 1. Remove the extension, and $U if already installed. 53889 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 53890 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 53891 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 53892 # will be set to the directory where LIBOBJS objects are built. 53893 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 53894 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 53895 done 53896 LIBOBJS=$ac_libobjs 53897 53898 LTLIBOBJS=$ac_ltlibobjs 53899 53900 53901 53902 : "${CONFIG_STATUS=./config.status}" 53903 ac_write_fail=0 53904 ac_clean_files_save=$ac_clean_files 53905 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 53906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 53907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 53908 as_write_fail=0 53909 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 53910 #! $SHELL 53911 # Generated by $as_me. 53912 # Run this file to recreate the current configuration. 53913 # Compiler output produced by configure, useful for debugging 53914 # configure, is in config.log if it exists. 53915 53916 debug=false 53917 ac_cs_recheck=false 53918 ac_cs_silent=false 53919 53920 SHELL=\${CONFIG_SHELL-$SHELL} 53921 export SHELL 53922 _ASEOF 53923 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 53924 ## -------------------- ## 53925 ## M4sh Initialization. ## 53926 ## -------------------- ## 53927 53928 # Be more Bourne compatible 53929 DUALCASE=1; export DUALCASE # for MKS sh 53930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 53931 emulate sh 53932 NULLCMD=: 53933 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 53934 # is contrary to our usage. Disable this feature. 53935 alias -g '${1+"$@"}'='"$@"' 53936 setopt NO_GLOB_SUBST 53937 else 53938 case `(set -o) 2>/dev/null` in #( 53939 *posix*) : 53940 set -o posix ;; #( 53941 *) : 53942 ;; 53943 esac 53944 fi 53945 53946 53947 as_nl=' 53948 ' 53949 export as_nl 53950 # Printing a long string crashes Solaris 7 /usr/bin/printf. 53951 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 53952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 53953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 53954 # Prefer a ksh shell builtin over an external printf program on Solaris, 53955 # but without wasting forks for bash or zsh. 53956 if test -z "$BASH_VERSION$ZSH_VERSION" \ 53957 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53958 as_echo='print -r --' 53959 as_echo_n='print -rn --' 53960 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 53961 as_echo='printf %s\n' 53962 as_echo_n='printf %s' 53963 else 53964 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53965 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53966 as_echo_n='/usr/ucb/echo -n' 53967 else 53968 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 53969 as_echo_n_body='eval 53970 arg=$1; 53971 case $arg in #( 53972 *"$as_nl"*) 53973 expr "X$arg" : "X\\(.*\\)$as_nl"; 53974 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 53975 esac; 53976 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 53977 ' 53978 export as_echo_n_body 53979 as_echo_n='sh -c $as_echo_n_body as_echo' 53980 fi 53981 export as_echo_body 53982 as_echo='sh -c $as_echo_body as_echo' 53983 fi 53984 53985 # The user is always right. 53986 if test "${PATH_SEPARATOR+set}" != set; then 53987 PATH_SEPARATOR=: 53988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 53989 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 53990 PATH_SEPARATOR=';' 53991 } 53992 fi 53993 53994 53995 # IFS 53996 # We need space, tab and new line, in precisely that order. Quoting is 53997 # there to prevent editors from complaining about space-tab. 53998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 53999 # splitting by setting IFS to empty value.) 54000 IFS=" "" $as_nl" 54001 54002 # Find who we are. Look in the path if we contain no directory separator. 54003 as_myself= 54004 case $0 in #(( 54005 *[\\/]* ) as_myself=$0 ;; 54006 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 54007 for as_dir in $PATH 54008 do 54009 IFS=$as_save_IFS 54010 test -z "$as_dir" && as_dir=. 54011 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 54012 done 54013 IFS=$as_save_IFS 54014 54015 ;; 54016 esac 54017 # We did not find ourselves, most probably we were run as `sh COMMAND' 54018 # in which case we are not to be found in the path. 54019 if test "x$as_myself" = x; then 54020 as_myself=$0 54021 fi 54022 if test ! -f "$as_myself"; then 54023 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 54024 exit 1 54025 fi 54026 54027 # Unset variables that we do not need and which cause bugs (e.g. in 54028 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 54029 # suppresses any "Segmentation fault" message there. '((' could 54030 # trigger a bug in pdksh 5.2.14. 54031 for as_var in BASH_ENV ENV MAIL MAILPATH 54032 do eval test x\${$as_var+set} = xset \ 54033 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 54034 done 54035 PS1='$ ' 54036 PS2='> ' 54037 PS4='+ ' 54038 54039 # NLS nuisances. 54040 LC_ALL=C 54041 export LC_ALL 54042 LANGUAGE=C 54043 export LANGUAGE 54044 54045 # CDPATH. 54046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 54047 54048 54049 # as_fn_error STATUS ERROR [LINENO LOG_FD] 54050 # ---------------------------------------- 54051 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 54052 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 54053 # script with STATUS, using 1 if that was 0. 54054 as_fn_error () 54055 { 54056 as_status=$1; test $as_status -eq 0 && as_status=1 54057 if test "$4"; then 54058 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 54059 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 54060 fi 54061 $as_echo "$as_me: error: $2" >&2 54062 as_fn_exit $as_status 54063 } # as_fn_error 54064 54065 54066 # as_fn_set_status STATUS 54067 # ----------------------- 54068 # Set $? to STATUS, without forking. 54069 as_fn_set_status () 54070 { 54071 return $1 54072 } # as_fn_set_status 54073 54074 # as_fn_exit STATUS 54075 # ----------------- 54076 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 54077 as_fn_exit () 54078 { 54079 set +e 54080 as_fn_set_status $1 54081 exit $1 54082 } # as_fn_exit 54083 54084 # as_fn_unset VAR 54085 # --------------- 54086 # Portably unset VAR. 54087 as_fn_unset () 54088 { 54089 { eval $1=; unset $1;} 54090 } 54091 as_unset=as_fn_unset 54092 # as_fn_append VAR VALUE 54093 # ---------------------- 54094 # Append the text in VALUE to the end of the definition contained in VAR. Take 54095 # advantage of any shell optimizations that allow amortized linear growth over 54096 # repeated appends, instead of the typical quadratic growth present in naive 54097 # implementations. 54098 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 54099 eval 'as_fn_append () 54100 { 54101 eval $1+=\$2 54102 }' 54103 else 54104 as_fn_append () 54105 { 54106 eval $1=\$$1\$2 54107 } 54108 fi # as_fn_append 54109 54110 # as_fn_arith ARG... 54111 # ------------------ 54112 # Perform arithmetic evaluation on the ARGs, and store the result in the 54113 # global $as_val. Take advantage of shells that can avoid forks. The arguments 54114 # must be portable across $(()) and expr. 54115 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 54116 eval 'as_fn_arith () 54117 { 54118 as_val=$(( $* )) 54119 }' 54120 else 54121 as_fn_arith () 54122 { 54123 as_val=`expr "$@" || test $? -eq 1` 54124 } 54125 fi # as_fn_arith 54126 54127 54128 if expr a : '\(a\)' >/dev/null 2>&1 && 54129 test "X`expr 00001 : '.*\(...\)'`" = X001; then 54130 as_expr=expr 54131 else 54132 as_expr=false 54133 fi 54134 54135 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 54136 as_basename=basename 54137 else 54138 as_basename=false 54139 fi 54140 54141 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 54142 as_dirname=dirname 54143 else 54144 as_dirname=false 54145 fi 54146 54147 as_me=`$as_basename -- "$0" || 54148 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 54149 X"$0" : 'X\(//\)$' \| \ 54150 X"$0" : 'X\(/\)' \| . 2>/dev/null || 54151 $as_echo X/"$0" | 54152 sed '/^.*\/\([^/][^/]*\)\/*$/{ 54153 s//\1/ 54154 q 54155 } 54156 /^X\/\(\/\/\)$/{ 54157 s//\1/ 54158 q 54159 } 54160 /^X\/\(\/\).*/{ 54161 s//\1/ 54162 q 54163 } 54164 s/.*/./; q'` 54165 54166 # Avoid depending upon Character Ranges. 54167 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 54168 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 54169 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 54170 as_cr_digits='0123456789' 54171 as_cr_alnum=$as_cr_Letters$as_cr_digits 54172 54173 ECHO_C= ECHO_N= ECHO_T= 54174 case `echo -n x` in #((((( 54175 -n*) 54176 case `echo 'xy\c'` in 54177 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 54178 xy) ECHO_C='\c';; 54179 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 54180 ECHO_T=' ';; 54181 esac;; 54182 *) 54183 ECHO_N='-n';; 54184 esac 54185 54186 rm -f conf$$ conf$$.exe conf$$.file 54187 if test -d conf$$.dir; then 54188 rm -f conf$$.dir/conf$$.file 54189 else 54190 rm -f conf$$.dir 54191 mkdir conf$$.dir 2>/dev/null 54192 fi 54193 if (echo >conf$$.file) 2>/dev/null; then 54194 if ln -s conf$$.file conf$$ 2>/dev/null; then 54195 as_ln_s='ln -s' 54196 # ... but there are two gotchas: 54197 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 54198 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 54199 # In both cases, we have to default to `cp -pR'. 54200 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 54201 as_ln_s='cp -pR' 54202 elif ln conf$$.file conf$$ 2>/dev/null; then 54203 as_ln_s=ln 54204 else 54205 as_ln_s='cp -pR' 54206 fi 54207 else 54208 as_ln_s='cp -pR' 54209 fi 54210 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 54211 rmdir conf$$.dir 2>/dev/null 54212 54213 54214 # as_fn_mkdir_p 54215 # ------------- 54216 # Create "$as_dir" as a directory, including parents if necessary. 54217 as_fn_mkdir_p () 54218 { 54219 54220 case $as_dir in #( 54221 -*) as_dir=./$as_dir;; 54222 esac 54223 test -d "$as_dir" || eval $as_mkdir_p || { 54224 as_dirs= 54225 while :; do 54226 case $as_dir in #( 54227 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 54228 *) as_qdir=$as_dir;; 54229 esac 54230 as_dirs="'$as_qdir' $as_dirs" 54231 as_dir=`$as_dirname -- "$as_dir" || 54232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54233 X"$as_dir" : 'X\(//\)[^/]' \| \ 54234 X"$as_dir" : 'X\(//\)$' \| \ 54235 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 54236 $as_echo X"$as_dir" | 54237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 54238 s//\1/ 54239 q 54240 } 54241 /^X\(\/\/\)[^/].*/{ 54242 s//\1/ 54243 q 54244 } 54245 /^X\(\/\/\)$/{ 54246 s//\1/ 54247 q 54248 } 54249 /^X\(\/\).*/{ 54250 s//\1/ 54251 q 54252 } 54253 s/.*/./; q'` 54254 test -d "$as_dir" && break 54255 done 54256 test -z "$as_dirs" || eval "mkdir $as_dirs" 54257 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 54258 54259 54260 } # as_fn_mkdir_p 54261 if mkdir -p . 2>/dev/null; then 54262 as_mkdir_p='mkdir -p "$as_dir"' 54263 else 54264 test -d ./-p && rmdir ./-p 54265 as_mkdir_p=false 54266 fi 54267 54268 54269 # as_fn_executable_p FILE 54270 # ----------------------- 54271 # Test if FILE is an executable regular file. 54272 as_fn_executable_p () 54273 { 54274 test -f "$1" && test -x "$1" 54275 } # as_fn_executable_p 54276 as_test_x='test -x' 54277 as_executable_p=as_fn_executable_p 54278 54279 # Sed expression to map a string onto a valid CPP name. 54280 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 54281 54282 # Sed expression to map a string onto a valid variable name. 54283 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 54284 54285 54286 exec 6>&1 54287 ## ----------------------------------- ## 54288 ## Main body of $CONFIG_STATUS script. ## 54289 ## ----------------------------------- ## 54290 _ASEOF 54291 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 54292 54293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54294 # Save the log message, to keep $0 and so on meaningful, and to 54295 # report actual input values of CONFIG_FILES etc. instead of their 54296 # values after options handling. 54297 ac_log=" 54298 This file was extended by OpenJDK $as_me jdk9, which was 54299 generated by GNU Autoconf 2.69. Invocation command line was 54300 54301 CONFIG_FILES = $CONFIG_FILES 54302 CONFIG_HEADERS = $CONFIG_HEADERS 54303 CONFIG_LINKS = $CONFIG_LINKS 54304 CONFIG_COMMANDS = $CONFIG_COMMANDS 54305 $ $0 $@ 54306 54307 on `(hostname || uname -n) 2>/dev/null | sed 1q` 54308 " 54309 54310 _ACEOF 54311 54312 case $ac_config_files in *" 54313 "*) set x $ac_config_files; shift; ac_config_files=$*;; 54314 esac 54315 54316 54317 54318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54319 # Files that config.status was made for. 54320 config_files="$ac_config_files" 54321 54322 _ACEOF 54323 54324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54325 ac_cs_usage="\ 54326 \`$as_me' instantiates files and other configuration actions 54327 from templates according to the current configuration. Unless the files 54328 and actions are specified as TAGs, all are instantiated by default. 54329 54330 Usage: $0 [OPTION]... [TAG]... 54331 54332 -h, --help print this help, then exit 54333 -V, --version print version number and configuration settings, then exit 54334 --config print configuration, then exit 54335 -q, --quiet, --silent 54336 do not print progress messages 54337 -d, --debug don't remove temporary files 54338 --recheck update $as_me by reconfiguring in the same conditions 54339 --file=FILE[:TEMPLATE] 54340 instantiate the configuration file FILE 54341 54342 Configuration files: 54343 $config_files 54344 54345 Report bugs to <build-dev@openjdk.java.net>. 54346 OpenJDK home page: <http://openjdk.java.net>." 54347 54348 _ACEOF 54349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54350 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 54351 ac_cs_version="\\ 54352 OpenJDK config.status jdk9 54353 configured by $0, generated by GNU Autoconf 2.69, 54354 with options \\"\$ac_cs_config\\" 54355 54356 Copyright (C) 2012 Free Software Foundation, Inc. 54357 This config.status script is free software; the Free Software Foundation 54358 gives unlimited permission to copy, distribute and modify it." 54359 54360 ac_pwd='$ac_pwd' 54361 srcdir='$srcdir' 54362 AWK='$AWK' 54363 test -n "\$AWK" || AWK=awk 54364 _ACEOF 54365 54366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54367 # The default lists apply if the user does not specify any file. 54368 ac_need_defaults=: 54369 while test $# != 0 54370 do 54371 case $1 in 54372 --*=?*) 54373 ac_option=`expr "X$1" : 'X\([^=]*\)='` 54374 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 54375 ac_shift=: 54376 ;; 54377 --*=) 54378 ac_option=`expr "X$1" : 'X\([^=]*\)='` 54379 ac_optarg= 54380 ac_shift=: 54381 ;; 54382 *) 54383 ac_option=$1 54384 ac_optarg=$2 54385 ac_shift=shift 54386 ;; 54387 esac 54388 54389 case $ac_option in 54390 # Handling of the options. 54391 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 54392 ac_cs_recheck=: ;; 54393 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 54394 $as_echo "$ac_cs_version"; exit ;; 54395 --config | --confi | --conf | --con | --co | --c ) 54396 $as_echo "$ac_cs_config"; exit ;; 54397 --debug | --debu | --deb | --de | --d | -d ) 54398 debug=: ;; 54399 --file | --fil | --fi | --f ) 54400 $ac_shift 54401 case $ac_optarg in 54402 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 54403 '') as_fn_error $? "missing file argument" ;; 54404 esac 54405 as_fn_append CONFIG_FILES " '$ac_optarg'" 54406 ac_need_defaults=false;; 54407 --he | --h | --help | --hel | -h ) 54408 $as_echo "$ac_cs_usage"; exit ;; 54409 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 54410 | -silent | --silent | --silen | --sile | --sil | --si | --s) 54411 ac_cs_silent=: ;; 54412 54413 # This is an error. 54414 -*) as_fn_error $? "unrecognized option: \`$1' 54415 Try \`$0 --help' for more information." ;; 54416 54417 *) as_fn_append ac_config_targets " $1" 54418 ac_need_defaults=false ;; 54419 54420 esac 54421 shift 54422 done 54423 54424 ac_configure_extra_args= 54425 54426 if $ac_cs_silent; then 54427 exec 6>/dev/null 54428 ac_configure_extra_args="$ac_configure_extra_args --silent" 54429 fi 54430 54431 _ACEOF 54432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54433 if \$ac_cs_recheck; then 54434 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 54435 shift 54436 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 54437 CONFIG_SHELL='$SHELL' 54438 export CONFIG_SHELL 54439 exec "\$@" 54440 fi 54441 54442 _ACEOF 54443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54444 exec 5>>config.log 54445 { 54446 echo 54447 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 54448 ## Running $as_me. ## 54449 _ASBOX 54450 $as_echo "$ac_log" 54451 } >&5 54452 54453 _ACEOF 54454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54455 _ACEOF 54456 54457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54458 54459 # Handling of arguments. 54460 for ac_config_target in $ac_config_targets 54461 do 54462 case $ac_config_target in 54463 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 54464 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 54465 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 54466 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 54467 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 54468 54469 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 54470 esac 54471 done 54472 54473 54474 # If the user did not use the arguments to specify the items to instantiate, 54475 # then the envvar interface is used. Set only those that are not. 54476 # We use the long form for the default assignment because of an extremely 54477 # bizarre bug on SunOS 4.1.3. 54478 if $ac_need_defaults; then 54479 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 54480 fi 54481 54482 # Have a temporary directory for convenience. Make it in the build tree 54483 # simply because there is no reason against having it here, and in addition, 54484 # creating and moving files from /tmp can sometimes cause problems. 54485 # Hook for its removal unless debugging. 54486 # Note that there is a small window in which the directory will not be cleaned: 54487 # after its creation but before its name has been assigned to `$tmp'. 54488 $debug || 54489 { 54490 tmp= ac_tmp= 54491 trap 'exit_status=$? 54492 : "${ac_tmp:=$tmp}" 54493 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 54494 ' 0 54495 trap 'as_fn_exit 1' 1 2 13 15 54496 } 54497 # Create a (secure) tmp directory for tmp files. 54498 54499 { 54500 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 54501 test -d "$tmp" 54502 } || 54503 { 54504 tmp=./conf$$-$RANDOM 54505 (umask 077 && mkdir "$tmp") 54506 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 54507 ac_tmp=$tmp 54508 54509 # Set up the scripts for CONFIG_FILES section. 54510 # No need to generate them if there are no CONFIG_FILES. 54511 # This happens for instance with `./config.status config.h'. 54512 if test -n "$CONFIG_FILES"; then 54513 54514 54515 ac_cr=`echo X | tr X '\015'` 54516 # On cygwin, bash can eat \r inside `` if the user requested igncr. 54517 # But we know of no other shell where ac_cr would be empty at this 54518 # point, so we can use a bashism as a fallback. 54519 if test "x$ac_cr" = x; then 54520 eval ac_cr=\$\'\\r\' 54521 fi 54522 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 54523 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 54524 ac_cs_awk_cr='\\r' 54525 else 54526 ac_cs_awk_cr=$ac_cr 54527 fi 54528 54529 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 54530 _ACEOF 54531 54532 54533 { 54534 echo "cat >conf$$subs.awk <<_ACEOF" && 54535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 54536 echo "_ACEOF" 54537 } >conf$$subs.sh || 54538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54539 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 54540 ac_delim='%!_!# ' 54541 for ac_last_try in false false false false false :; do 54542 . ./conf$$subs.sh || 54543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54544 54545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 54546 if test $ac_delim_n = $ac_delim_num; then 54547 break 54548 elif $ac_last_try; then 54549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 54550 else 54551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 54552 fi 54553 done 54554 rm -f conf$$subs.sh 54555 54556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54557 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 54558 _ACEOF 54559 sed -n ' 54560 h 54561 s/^/S["/; s/!.*/"]=/ 54562 p 54563 g 54564 s/^[^!]*!// 54565 :repl 54566 t repl 54567 s/'"$ac_delim"'$// 54568 t delim 54569 :nl 54570 h 54571 s/\(.\{148\}\)..*/\1/ 54572 t more1 54573 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 54574 p 54575 n 54576 b repl 54577 :more1 54578 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 54579 p 54580 g 54581 s/.\{148\}// 54582 t nl 54583 :delim 54584 h 54585 s/\(.\{148\}\)..*/\1/ 54586 t more2 54587 s/["\\]/\\&/g; s/^/"/; s/$/"/ 54588 p 54589 b 54590 :more2 54591 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 54592 p 54593 g 54594 s/.\{148\}// 54595 t delim 54596 ' <conf$$subs.awk | sed ' 54597 /^[^""]/{ 54598 N 54599 s/\n// 54600 } 54601 ' >>$CONFIG_STATUS || ac_write_fail=1 54602 rm -f conf$$subs.awk 54603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54604 _ACAWK 54605 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 54606 for (key in S) S_is_set[key] = 1 54607 FS = "" 54608 54609 } 54610 { 54611 line = $ 0 54612 nfields = split(line, field, "@") 54613 substed = 0 54614 len = length(field[1]) 54615 for (i = 2; i < nfields; i++) { 54616 key = field[i] 54617 keylen = length(key) 54618 if (S_is_set[key]) { 54619 value = S[key] 54620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 54621 len += length(value) + length(field[++i]) 54622 substed = 1 54623 } else 54624 len += 1 + keylen 54625 } 54626 54627 print line 54628 } 54629 54630 _ACAWK 54631 _ACEOF 54632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54633 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 54634 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 54635 else 54636 cat 54637 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 54638 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 54639 _ACEOF 54640 54641 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 54642 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 54643 # trailing colons and then remove the whole line if VPATH becomes empty 54644 # (actually we leave an empty line to preserve line numbers). 54645 if test "x$srcdir" = x.; then 54646 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 54647 h 54648 s/// 54649 s/^/:/ 54650 s/[ ]*$/:/ 54651 s/:\$(srcdir):/:/g 54652 s/:\${srcdir}:/:/g 54653 s/:@srcdir@:/:/g 54654 s/^:*// 54655 s/:*$// 54656 x 54657 s/\(=[ ]*\).*/\1/ 54658 G 54659 s/\n// 54660 s/^[^=]*=[ ]*$// 54661 }' 54662 fi 54663 54664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54665 fi # test -n "$CONFIG_FILES" 54666 54667 54668 eval set X " :F $CONFIG_FILES " 54669 shift 54670 for ac_tag 54671 do 54672 case $ac_tag in 54673 :[FHLC]) ac_mode=$ac_tag; continue;; 54674 esac 54675 case $ac_mode$ac_tag in 54676 :[FHL]*:*);; 54677 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 54678 :[FH]-) ac_tag=-:-;; 54679 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 54680 esac 54681 ac_save_IFS=$IFS 54682 IFS=: 54683 set x $ac_tag 54684 IFS=$ac_save_IFS 54685 shift 54686 ac_file=$1 54687 shift 54688 54689 case $ac_mode in 54690 :L) ac_source=$1;; 54691 :[FH]) 54692 ac_file_inputs= 54693 for ac_f 54694 do 54695 case $ac_f in 54696 -) ac_f="$ac_tmp/stdin";; 54697 *) # Look for the file first in the build tree, then in the source tree 54698 # (if the path is not absolute). The absolute path cannot be DOS-style, 54699 # because $ac_f cannot contain `:'. 54700 test -f "$ac_f" || 54701 case $ac_f in 54702 [\\/$]*) false;; 54703 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 54704 esac || 54705 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 54706 esac 54707 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 54708 as_fn_append ac_file_inputs " '$ac_f'" 54709 done 54710 54711 # Let's still pretend it is `configure' which instantiates (i.e., don't 54712 # use $as_me), people would be surprised to read: 54713 # /* config.h. Generated by config.status. */ 54714 configure_input='Generated from '` 54715 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 54716 `' by configure.' 54717 if test x"$ac_file" != x-; then 54718 configure_input="$ac_file. $configure_input" 54719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 54720 $as_echo "$as_me: creating $ac_file" >&6;} 54721 fi 54722 # Neutralize special characters interpreted by sed in replacement strings. 54723 case $configure_input in #( 54724 *\&* | *\|* | *\\* ) 54725 ac_sed_conf_input=`$as_echo "$configure_input" | 54726 sed 's/[\\\\&|]/\\\\&/g'`;; #( 54727 *) ac_sed_conf_input=$configure_input;; 54728 esac 54729 54730 case $ac_tag in 54731 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 54732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 54733 esac 54734 ;; 54735 esac 54736 54737 ac_dir=`$as_dirname -- "$ac_file" || 54738 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 54739 X"$ac_file" : 'X\(//\)[^/]' \| \ 54740 X"$ac_file" : 'X\(//\)$' \| \ 54741 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 54742 $as_echo X"$ac_file" | 54743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 54744 s//\1/ 54745 q 54746 } 54747 /^X\(\/\/\)[^/].*/{ 54748 s//\1/ 54749 q 54750 } 54751 /^X\(\/\/\)$/{ 54752 s//\1/ 54753 q 54754 } 54755 /^X\(\/\).*/{ 54756 s//\1/ 54757 q 54758 } 54759 s/.*/./; q'` 54760 as_dir="$ac_dir"; as_fn_mkdir_p 54761 ac_builddir=. 54762 54763 case "$ac_dir" in 54764 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 54765 *) 54766 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 54767 # A ".." for each directory in $ac_dir_suffix. 54768 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 54769 case $ac_top_builddir_sub in 54770 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 54771 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 54772 esac ;; 54773 esac 54774 ac_abs_top_builddir=$ac_pwd 54775 ac_abs_builddir=$ac_pwd$ac_dir_suffix 54776 # for backward compatibility: 54777 ac_top_builddir=$ac_top_build_prefix 54778 54779 case $srcdir in 54780 .) # We are building in place. 54781 ac_srcdir=. 54782 ac_top_srcdir=$ac_top_builddir_sub 54783 ac_abs_top_srcdir=$ac_pwd ;; 54784 [\\/]* | ?:[\\/]* ) # Absolute name. 54785 ac_srcdir=$srcdir$ac_dir_suffix; 54786 ac_top_srcdir=$srcdir 54787 ac_abs_top_srcdir=$srcdir ;; 54788 *) # Relative name. 54789 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 54790 ac_top_srcdir=$ac_top_build_prefix$srcdir 54791 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 54792 esac 54793 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 54794 54795 54796 case $ac_mode in 54797 :F) 54798 # 54799 # CONFIG_FILE 54800 # 54801 54802 _ACEOF 54803 54804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54805 # If the template does not know about datarootdir, expand it. 54806 # FIXME: This hack should be removed a few years after 2.60. 54807 ac_datarootdir_hack=; ac_datarootdir_seen= 54808 ac_sed_dataroot=' 54809 /datarootdir/ { 54810 p 54811 q 54812 } 54813 /@datadir@/p 54814 /@docdir@/p 54815 /@infodir@/p 54816 /@localedir@/p 54817 /@mandir@/p' 54818 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 54819 *datarootdir*) ac_datarootdir_seen=yes;; 54820 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 54821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 54822 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 54823 _ACEOF 54824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54825 ac_datarootdir_hack=' 54826 s&@datadir@&$datadir&g 54827 s&@docdir@&$docdir&g 54828 s&@infodir@&$infodir&g 54829 s&@localedir@&$localedir&g 54830 s&@mandir@&$mandir&g 54831 s&\\\${datarootdir}&$datarootdir&g' ;; 54832 esac 54833 _ACEOF 54834 54835 # Neutralize VPATH when `$srcdir' = `.'. 54836 # Shell code in configure.ac might set extrasub. 54837 # FIXME: do we really want to maintain this feature? 54838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 54839 ac_sed_extra="$ac_vpsub 54840 $extrasub 54841 _ACEOF 54842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 54843 :t 54844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 54845 s|@configure_input@|$ac_sed_conf_input|;t t 54846 s&@top_builddir@&$ac_top_builddir_sub&;t t 54847 s&@top_build_prefix@&$ac_top_build_prefix&;t t 54848 s&@srcdir@&$ac_srcdir&;t t 54849 s&@abs_srcdir@&$ac_abs_srcdir&;t t 54850 s&@top_srcdir@&$ac_top_srcdir&;t t 54851 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 54852 s&@builddir@&$ac_builddir&;t t 54853 s&@abs_builddir@&$ac_abs_builddir&;t t 54854 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 54855 $ac_datarootdir_hack 54856 " 54857 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 54858 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54859 54860 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 54861 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 54862 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 54863 "$ac_tmp/out"`; test -z "$ac_out"; } && 54864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54865 which seems to be undefined. Please make sure it is defined" >&5 54866 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 54867 which seems to be undefined. Please make sure it is defined" >&2;} 54868 54869 rm -f "$ac_tmp/stdin" 54870 case $ac_file in 54871 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 54872 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 54873 esac \ 54874 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 54875 ;; 54876 54877 54878 54879 esac 54880 54881 done # for ac_tag 54882 54883 54884 as_fn_exit 0 54885 _ACEOF 54886 ac_clean_files=$ac_clean_files_save 54887 54888 test $ac_write_fail = 0 || 54889 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 54890 54891 54892 # configure is writing to config.log, and then calls config.status. 54893 # config.status does its own redirection, appending to config.log. 54894 # Unfortunately, on DOS this fails, as config.log is still kept open 54895 # by configure, so config.status won't be able to write to it; its 54896 # output is simply discarded. So we exec the FD to /dev/null, 54897 # effectively closing config.log, so it can be properly (re)opened and 54898 # appended to by config.status. When coming back to configure, we 54899 # need to make the FD available again. 54900 if test "$no_create" != yes; then 54901 ac_cs_success=: 54902 ac_config_status_args= 54903 test "$silent" = yes && 54904 ac_config_status_args="$ac_config_status_args --quiet" 54905 exec 5>/dev/null 54906 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 54907 exec 5>>config.log 54908 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 54909 # would make configure fail if this is the last instruction. 54910 $ac_cs_success || as_fn_exit 1 54911 fi 54912 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 54913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 54914 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 54915 fi 54916 54917 54918 # After AC_OUTPUT, we need to do final work 54919 54920 54921 # Try to move config.log (generated by autoconf) to the configure-support directory. 54922 if test -e ./config.log; then 54923 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 54924 fi 54925 54926 # Rotate our log file (configure.log) 54927 if test -e "$OUTPUT_ROOT/configure.log.old"; then 54928 $RM -f "$OUTPUT_ROOT/configure.log.old" 54929 fi 54930 if test -e "$OUTPUT_ROOT/configure.log"; then 54931 $MV -f "$OUTPUT_ROOT/configure.log" "$OUTPUT_ROOT/configure.log.old" 2> /dev/null 54932 fi 54933 54934 # Move configure.log from current directory to the build output root 54935 if test -e ./configure.log; then 54936 echo found it 54937 $MV -f ./configure.log "$OUTPUT_ROOT/configure.log" 2> /dev/null 54938 fi 54939 54940 # Make the compare script executable 54941 $CHMOD +x $OUTPUT_ROOT/compare.sh 54942 54943 54944 # Finally output some useful information to the user 54945 54946 # Finally output some useful information to the user 54947 54948 printf "\n" 54949 printf "====================================================\n" 54950 if test "x$no_create" != "xyes"; then 54951 if test "x$IS_RECONFIGURE" != "xyes"; then 54952 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 54953 else 54954 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 54955 fi 54956 else 54957 if test "x$IS_RECONFIGURE" != "xyes"; then 54958 printf "A configuration has been successfully checked but not created\n" 54959 else 54960 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 54961 fi 54962 fi 54963 if test "x$CONFIGURE_COMMAND_LINE" != x; then 54964 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 54965 else 54966 printf "using default settings.\n" 54967 fi 54968 54969 printf "\n" 54970 printf "Configuration summary:\n" 54971 printf "* Debug level: $DEBUG_LEVEL\n" 54972 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 54973 printf "* JDK variant: $JDK_VARIANT\n" 54974 printf "* JVM variants: $with_jvm_variants\n" 54975 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 54976 54977 printf "\n" 54978 printf "Tools summary:\n" 54979 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 54980 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 54981 fi 54982 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 54983 if test "x$TOOLCHAIN_VERSION" != "x"; then 54984 print_version=" $TOOLCHAIN_VERSION" 54985 fi 54986 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 54987 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 54988 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 54989 54990 printf "\n" 54991 printf "Build performance summary:\n" 54992 printf "* Cores to use: $JOBS\n" 54993 printf "* Memory limit: $MEMORY_SIZE MB\n" 54994 if test "x$CCACHE_STATUS" != "x"; then 54995 printf "* ccache status: $CCACHE_STATUS\n" 54996 fi 54997 printf "\n" 54998 54999 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 55000 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 55001 printf "will result in longer build times.\n" 55002 printf "\n" 55003 fi 55004 55005 if test "x$FOUND_ALT_VARIABLES" != "x"; then 55006 printf "WARNING: You have old-style ALT_ environment variables set.\n" 55007 printf "These are not respected, and will be ignored. It is recommended\n" 55008 printf "that you clean your environment. The following variables are set:\n" 55009 printf "$FOUND_ALT_VARIABLES\n" 55010 printf "\n" 55011 fi 55012 55013 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 55014 printf "WARNING: Your build output directory is not on a local disk.\n" 55015 printf "This will severely degrade build performance!\n" 55016 printf "It is recommended that you create an output directory on a local disk,\n" 55017 printf "and run the configure script again from that directory.\n" 55018 printf "\n" 55019 fi 55020 55021 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 55022 printf "WARNING: The result of this configuration has overridden an older\n" 55023 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 55024 printf "proper build. Failure to do so might result in strange build problems.\n" 55025 printf "\n" 55026 fi 55027 55028 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 55029 printf "WARNING: The result of this configuration was not saved.\n" 55030 printf "You should run without '--no-create | -n' to create the configuration.\n" 55031 printf "\n" 55032 fi 55033 55034 55035 55036 # Locate config.log. 55037 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 55038 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 55039 elif test -e "./config.log"; then 55040 CONFIG_LOG_PATH="." 55041 fi 55042 55043 if test -e "$CONFIG_LOG_PATH/config.log"; then 55044 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 55045 if test $? -eq 0; then 55046 printf "The following warnings were produced. Repeated here for convenience:\n" 55047 # We must quote sed expression (using []) to stop m4 from eating the []. 55048 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 55049 printf "\n" 55050 fi 55051 fi 55052