1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CFLAGS_CCACHE 633 CCACHE 634 USE_PRECOMPILED_HEADER 635 BUILD_ICECC 636 ICECC 637 ICECC_WRAPPER 638 ICECC_CREATE_ENV 639 ICECC_CMD 640 ENABLE_JAVAC_SERVER 641 ENABLE_SJAVAC 642 SJAVAC_SERVER_JAVA_FLAGS 643 SJAVAC_SERVER_JAVA 644 JAVA_TOOL_FLAGS_SMALL 645 JAVA_FLAGS_SMALL 646 JAVA_FLAGS_JAVAC 647 BOOTCYCLE_JVM_ARGS_BIG 648 JAVA_FLAGS_BIG 649 JAVA_FLAGS 650 TEST_JOBS 651 JOBS 652 MEMORY_SIZE 653 NUM_CORES 654 ENABLE_GENERATE_CLASSLIST 655 BUILD_FAILURE_HANDLER 656 ENABLE_INTREE_EC 657 VALID_JVM_FEATURES 658 JVM_FEATURES_custom 659 JVM_FEATURES_zero 660 JVM_FEATURES_minimal 661 JVM_FEATURES_core 662 JVM_FEATURES_client 663 JVM_FEATURES_server 664 INCLUDE_GRAAL 665 STLPORT_LIB 666 LIBZIP_CAN_USE_MMAP 667 LIBDL 668 LIBM 669 USE_EXTERNAL_LCMS 670 LCMS_LIBS 671 LCMS_CFLAGS 672 USE_EXTERNAL_LIBZ 673 USE_EXTERNAL_LIBPNG 674 PNG_LIBS 675 PNG_CFLAGS 676 USE_EXTERNAL_LIBGIF 677 USE_EXTERNAL_LIBJPEG 678 LIBFFI_LIB_FILE 679 ENABLE_LIBFFI_BUNDLING 680 LIBFFI_LIBS 681 LIBFFI_CFLAGS 682 ALSA_LIBS 683 ALSA_CFLAGS 684 FREETYPE_LICENSE 685 FREETYPE_BUNDLE_LIB_PATH 686 FREETYPE_LIBS 687 FREETYPE_CFLAGS 688 FONTCONFIG_CFLAGS 689 CUPS_CFLAGS 690 X_EXTRA_LIBS 691 X_LIBS 692 X_PRE_LIBS 693 X_CFLAGS 694 XMKMF 695 MSVCP_DLL 696 MSVCR_DLL 697 LIBCXX 698 FIXPATH_DETACH_FLAG 699 FIXPATH 700 BUILD_GTEST 701 ENABLE_CDS 702 ENABLE_AOT 703 ASAN_ENABLED 704 GCOV_ENABLED 705 ZIP_EXTERNAL_DEBUG_SYMBOLS 706 COPY_DEBUG_SYMBOLS 707 COMPILE_WITH_DEBUG_SYMBOLS 708 CFLAGS_WARNINGS_ARE_ERRORS 709 BUILD_CC_DISABLE_WARNING_PREFIX 710 DISABLE_WARNING_PREFIX 711 WARNINGS_AS_ERRORS 712 COMPILER_SUPPORTS_TARGET_BITS_FLAG 713 LDFLAGS_TESTEXE 714 LDFLAGS_TESTLIB 715 CXXFLAGS_TESTEXE 716 CXXFLAGS_TESTLIB 717 CFLAGS_TESTEXE 718 CFLAGS_TESTLIB 719 OPENJDK_BUILD_JVM_LIBS 720 OPENJDK_BUILD_JVM_ASFLAGS 721 OPENJDK_BUILD_JVM_LDFLAGS 722 OPENJDK_BUILD_JVM_CFLAGS 723 OPENJDK_BUILD_LDFLAGS_NO_EXEC_STACK 724 OPENJDK_BUILD_LDFLAGS_HASH_STYLE 725 OPENJDK_BUILD_LDFLAGS_CXX_JDK 726 OPENJDK_BUILD_JDKEXE_LIBS 727 OPENJDK_BUILD_JDKLIB_LIBS 728 OPENJDK_BUILD_LDFLAGS_JDKEXE 729 OPENJDK_BUILD_LDFLAGS_JDKLIB 730 OPENJDK_BUILD_CXXFLAGS_JDKEXE 731 OPENJDK_BUILD_CXXFLAGS_JDKLIB 732 OPENJDK_BUILD_CFLAGS_JDKEXE 733 OPENJDK_BUILD_CFLAGS_JDKLIB 734 OPENJDK_BUILD_CXXSTD_CXXFLAG 735 JVM_LIBS 736 JVM_ASFLAGS 737 JVM_LDFLAGS 738 JVM_CFLAGS 739 LDFLAGS_NO_EXEC_STACK 740 LDFLAGS_HASH_STYLE 741 LDFLAGS_CXX_JDK 742 JDKEXE_LIBS 743 JDKLIB_LIBS 744 LDFLAGS_JDKEXE 745 LDFLAGS_JDKLIB 746 CXXFLAGS_JDKEXE 747 CXXFLAGS_JDKLIB 748 CFLAGS_JDKEXE 749 CFLAGS_JDKLIB 750 MACOSX_VERSION_MAX 751 MACOSX_VERSION_MIN 752 CXXSTD_CXXFLAG 753 JDK_ARCH_ABI_PROP_NAME 754 CXX_O_FLAG_SIZE 755 CXX_O_FLAG_NONE 756 CXX_O_FLAG_DEBUG 757 CXX_O_FLAG_NORM 758 CXX_O_FLAG_HI 759 CXX_O_FLAG_HIGHEST 760 CXX_O_FLAG_HIGHEST_JVM 761 C_O_FLAG_SIZE 762 C_O_FLAG_NONE 763 C_O_FLAG_DEBUG 764 C_O_FLAG_NORM 765 C_O_FLAG_HI 766 C_O_FLAG_HIGHEST 767 C_O_FLAG_HIGHEST_JVM 768 JVM_CFLAGS_SYMBOLS 769 CXXFLAGS_DEBUG_SYMBOLS 770 CFLAGS_DEBUG_SYMBOLS 771 CXX_FLAG_DEPS 772 C_FLAG_DEPS 773 SHARED_LIBRARY_FLAGS 774 SET_SHARED_LIBRARY_MAPFILE 775 SET_SHARED_LIBRARY_NAME 776 SET_SHARED_LIBRARY_ORIGIN 777 SET_EXECUTABLE_ORIGIN 778 CXX_FLAG_REORDER 779 C_FLAG_REORDER 780 JVM_RCFLAGS 781 RC_FLAGS 782 AR_OUT_OPTION 783 LD_OUT_OPTION 784 EXE_OUT_OPTION 785 CC_OUT_OPTION 786 STRIPFLAGS 787 ARFLAGS 788 COMPILER_BINDCMD_FILE_FLAG 789 COMPILER_COMMAND_FILE_FLAG 790 COMPILER_TARGET_BITS_FLAG 791 JIB_JAR 792 JT_HOME 793 JTREGEXE 794 HOTSPOT_TOOLCHAIN_TYPE 795 USING_BROKEN_SUSE_LD 796 PACKAGE_PATH 797 BUILD_AS 798 BUILD_LDCXX 799 BUILD_LD 800 BUILD_STRIP 801 BUILD_OBJCOPY 802 BUILD_AR 803 BUILD_NM 804 BUILD_CXX 805 BUILD_CC 806 BUILD_SYSROOT_LDFLAGS 807 BUILD_SYSROOT_CFLAGS 808 ac_ct_OBJDUMP 809 OBJDUMP 810 ac_ct_OBJCOPY 811 OBJCOPY 812 ac_ct_NM 813 ac_ct_STRIP 814 GNM 815 NM 816 STRIP 817 MSBUILD 818 DUMPBIN 819 RC 820 MT 821 INSTALL_NAME_TOOL 822 OTOOL 823 LIPO 824 ac_ct_AR 825 AR 826 AS 827 LDCXX 828 LD 829 CXXCPP 830 CPP 831 CXX_VERSION_NUMBER 832 CC_VERSION_NUMBER 833 ac_ct_CXX 834 CXXFLAGS 835 CXX 836 TOOLCHAIN_PATH_CXX 837 POTENTIAL_CXX 838 OBJEXT 839 EXEEXT 840 ac_ct_CC 841 CPPFLAGS 842 LDFLAGS 843 CFLAGS 844 CC 845 TOOLCHAIN_PATH_CC 846 POTENTIAL_CC 847 TOOLCHAIN_VERSION 848 VS_LIB 849 VS_INCLUDE 850 VS_PATH 851 CYGWIN_LINK 852 SYSROOT_LDFLAGS 853 SYSROOT_CFLAGS 854 EXTRA_LDFLAGS 855 EXTRA_CXXFLAGS 856 EXTRA_CFLAGS 857 EXE_SUFFIX 858 OBJ_SUFFIX 859 STATIC_LIBRARY 860 SHARED_LIBRARY 861 STATIC_LIBRARY_SUFFIX 862 SHARED_LIBRARY_SUFFIX 863 LIBRARY_PREFIX 864 TOOLCHAIN_TYPE 865 STATIC_BUILD 866 IMPORT_MODULES_MAKE 867 IMPORT_MODULES_SRC 868 IMPORT_MODULES_MAN 869 IMPORT_MODULES_LEGAL 870 IMPORT_MODULES_CONF 871 IMPORT_MODULES_LIBS 872 IMPORT_MODULES_CMDS 873 IMPORT_MODULES_CLASSES 874 EXTERNAL_BUILDJDK 875 BUILD_JDK 876 CREATE_BUILDJDK 877 JLINK 878 JMOD 879 JAVAC_FLAGS 880 BOOT_JDK_SOURCETARGET 881 JARSIGNER 882 JAR 883 JAVADOC 884 JAVAC 885 JAVA 886 BOOT_JDK 887 JAVA_CHECK 888 JAVAC_CHECK 889 VERSION_CLASSFILE_MINOR 890 VERSION_CLASSFILE_MAJOR 891 VENDOR_VERSION_STRING 892 VERSION_DATE 893 VERSION_IS_GA 894 VERSION_SHORT 895 VERSION_STRING 896 VERSION_NUMBER_FOUR_POSITIONS 897 VERSION_NUMBER 898 VERSION_OPT 899 VERSION_BUILD 900 VERSION_PRE 901 VERSION_PATCH 902 VERSION_UPDATE 903 VERSION_INTERIM 904 VERSION_FEATURE 905 VENDOR_URL_VM_BUG 906 VENDOR_URL_BUG 907 VENDOR_URL 908 COMPANY_NAME 909 MACOSX_BUNDLE_ID_BASE 910 MACOSX_BUNDLE_NAME_BASE 911 HOTSPOT_VM_DISTRO 912 JDK_RC_PLATFORM_NAME 913 PRODUCT_SUFFIX 914 PRODUCT_NAME 915 LAUNCHER_NAME 916 JLINK_KEEP_PACKAGED_MODULES 917 COPYRIGHT_YEAR 918 COMPRESS_JARS 919 INCLUDE_SA 920 UNLIMITED_CRYPTO 921 CACERTS_FILE 922 ENABLE_FULL_DOCS 923 ENABLE_HEADLESS_ONLY 924 DEFAULT_MAKE_TARGET 925 OS_VERSION_MICRO 926 OS_VERSION_MINOR 927 OS_VERSION_MAJOR 928 PKG_CONFIG 929 BASH_ARGS 930 SETFILE 931 CODESIGN 932 XATTR 933 DSYMUTIL 934 IS_GNU_TIME 935 PATCH 936 DTRACE 937 FLOCK 938 TIME 939 STAT 940 HG 941 DOT 942 READELF 943 LDD 944 ZIPEXE 945 UNZIP 946 TAR_SUPPORTS_TRANSFORM 947 TAR_INCLUDE_PARAM 948 TAR_CREATE_EXTRA_PARAM 949 TAR_TYPE 950 FIND_DELETE 951 OUTPUT_SYNC 952 OUTPUT_SYNC_SUPPORTED 953 CHECK_TOOLSDIR_MAKE 954 CHECK_TOOLSDIR_GMAKE 955 CHECK_MAKE 956 CHECK_GMAKE 957 MAKE 958 PKGHANDLER 959 CONFIGURESUPPORT_OUTPUTDIR 960 OUTPUTDIR 961 CONF_NAME 962 SPEC 963 SDKROOT 964 XCODEBUILD 965 DEVKIT_LIB_DIR 966 JVM_VARIANT_MAIN 967 VALID_JVM_VARIANTS 968 JVM_VARIANTS 969 DEBUG_LEVEL 970 HOTSPOT_DEBUG_LEVEL 971 JDK_VARIANT 972 USERNAME 973 TOPDIR 974 PATH_SEP 975 OPENJDK_BUILD_OS_INCLUDE_SUBDIR 976 HOTSPOT_BUILD_CPU_DEFINE 977 HOTSPOT_BUILD_CPU_ARCH 978 HOTSPOT_BUILD_CPU 979 HOTSPOT_BUILD_OS_TYPE 980 HOTSPOT_BUILD_OS 981 OPENJDK_BUILD_BUNDLE_PLATFORM 982 OPENJDK_BUILD_CPU_OSARCH 983 OPENJDK_BUILD_CPU_ISADIR 984 OPENJDK_BUILD_CPU_LEGACY_LIB 985 OPENJDK_BUILD_CPU_LEGACY 986 OPENJDK_TARGET_OS_INCLUDE_SUBDIR 987 HOTSPOT_TARGET_CPU_DEFINE 988 HOTSPOT_TARGET_CPU_ARCH 989 HOTSPOT_TARGET_CPU 990 HOTSPOT_TARGET_OS_TYPE 991 HOTSPOT_TARGET_OS 992 DEFINE_CROSS_COMPILE_ARCH 993 OPENJDK_TARGET_BUNDLE_PLATFORM 994 OPENJDK_TARGET_CPU_OSARCH 995 OPENJDK_TARGET_CPU_ISADIR 996 OPENJDK_TARGET_CPU_LEGACY_LIB 997 OPENJDK_TARGET_CPU_LEGACY 998 RELEASE_FILE_OS_ARCH 999 RELEASE_FILE_OS_NAME 1000 OPENJDK_MODULE_TARGET_PLATFORM 1001 COMPILE_TYPE 1002 OPENJDK_TARGET_CPU_ENDIAN 1003 OPENJDK_TARGET_CPU_BITS 1004 OPENJDK_TARGET_CPU_ARCH 1005 OPENJDK_TARGET_CPU 1006 OPENJDK_TARGET_OS_ENV 1007 OPENJDK_TARGET_OS_TYPE 1008 OPENJDK_TARGET_OS 1009 OPENJDK_BUILD_CPU_ENDIAN 1010 OPENJDK_BUILD_CPU_BITS 1011 OPENJDK_BUILD_CPU_ARCH 1012 OPENJDK_BUILD_CPU 1013 OPENJDK_BUILD_OS_ENV 1014 OPENJDK_BUILD_OS_TYPE 1015 OPENJDK_BUILD_OS 1016 OPENJDK_BUILD_AUTOCONF_NAME 1017 OPENJDK_TARGET_AUTOCONF_NAME 1018 target_os 1019 target_vendor 1020 target_cpu 1021 target 1022 host_os 1023 host_vendor 1024 host_cpu 1025 host 1026 build_os 1027 build_vendor 1028 build_cpu 1029 build 1030 PANDOC 1031 NICE 1032 CPIO 1033 DF 1034 READLINK 1035 CYGPATH 1036 SED 1037 FGREP 1038 EGREP 1039 GREP 1040 AWK 1041 XARGS 1042 WHICH 1043 WC 1044 UNIQ 1045 UNAME 1046 TR 1047 TOUCH 1048 TEE 1049 TAR 1050 TAIL 1051 SORT 1052 SH 1053 RMDIR 1054 RM 1055 PRINTF 1056 NAWK 1057 MV 1058 MKTEMP 1059 MKDIR 1060 LS 1061 LN 1062 GZIP 1063 GUNZIP 1064 HEAD 1065 FIND 1066 FILE 1067 EXPR 1068 ECHO 1069 DIRNAME 1070 DIFF 1071 DATE 1072 CUT 1073 CP 1074 COMM 1075 CMP 1076 CHMOD 1077 CAT 1078 BASH 1079 BASENAME 1080 DATE_WHEN_CONFIGURED 1081 ORIGINAL_PATH 1082 CONFIGURE_COMMAND_LINE 1083 target_alias 1084 host_alias 1085 build_alias 1086 LIBS 1087 ECHO_T 1088 ECHO_N 1089 ECHO_C 1090 DEFS 1091 mandir 1092 localedir 1093 libdir 1094 psdir 1095 pdfdir 1096 dvidir 1097 htmldir 1098 infodir 1099 docdir 1100 oldincludedir 1101 includedir 1102 localstatedir 1103 sharedstatedir 1104 sysconfdir 1105 datadir 1106 datarootdir 1107 libexecdir 1108 sbindir 1109 bindir 1110 program_transform_name 1111 prefix 1112 exec_prefix 1113 PACKAGE_URL 1114 PACKAGE_BUGREPORT 1115 PACKAGE_STRING 1116 PACKAGE_VERSION 1117 PACKAGE_TARNAME 1118 PACKAGE_NAME 1119 PATH_SEPARATOR 1120 SHELL' 1121 ac_subst_files='' 1122 ac_user_opts=' 1123 enable_option_checking 1124 with_target_bits 1125 enable_openjdk_only 1126 with_custom_make_dir 1127 with_jdk_variant 1128 enable_debug 1129 with_debug_level 1130 with_jvm_variants 1131 with_cpu_port 1132 with_devkit 1133 with_sys_root 1134 with_sysroot 1135 with_tools_dir 1136 with_toolchain_path 1137 with_extra_path 1138 with_sdk_name 1139 with_conf_name 1140 with_output_sync 1141 with_default_make_target 1142 enable_headless_only 1143 enable_full_docs 1144 with_cacerts_file 1145 enable_unlimited_crypto 1146 with_copyright_year 1147 enable_keep_packaged_modules 1148 with_milestone 1149 with_update_version 1150 with_user_release_suffix 1151 with_build_number 1152 with_version_major 1153 with_version_minor 1154 with_version_security 1155 with_vendor_name 1156 with_vendor_url 1157 with_vendor_bug_url 1158 with_vendor_vm_bug_url 1159 with_version_string 1160 with_version_pre 1161 with_version_opt 1162 with_version_build 1163 with_version_feature 1164 with_version_interim 1165 with_version_update 1166 with_version_patch 1167 with_version_date 1168 with_vendor_version_string 1169 with_boot_jdk 1170 with_build_jdk 1171 with_import_modules 1172 enable_static_build 1173 with_toolchain_type 1174 with_extra_cflags 1175 with_extra_cxxflags 1176 with_extra_ldflags 1177 with_toolchain_version 1178 with_build_devkit 1179 with_jtreg 1180 with_jib 1181 with_abi_profile 1182 with_macosx_version_max 1183 enable_warnings_as_errors 1184 with_native_debug_symbols 1185 enable_debug_symbols 1186 enable_zip_debug_info 1187 enable_native_coverage 1188 enable_asan 1189 enable_dtrace 1190 enable_aot 1191 enable_cds 1192 enable_hotspot_gtest 1193 with_stdc__lib 1194 with_msvcr_dll 1195 with_msvcp_dll 1196 with_x 1197 with_cups 1198 with_cups_include 1199 with_fontconfig 1200 with_fontconfig_include 1201 with_freetype 1202 with_freetype_include 1203 with_freetype_lib 1204 with_freetype_src 1205 enable_freetype_bundling 1206 with_freetype_license 1207 with_alsa 1208 with_alsa_include 1209 with_alsa_lib 1210 with_libffi 1211 with_libffi_include 1212 with_libffi_lib 1213 enable_libffi_bundling 1214 with_libjpeg 1215 with_giflib 1216 with_libpng 1217 with_zlib 1218 with_lcms 1219 with_dxsdk 1220 with_dxsdk_lib 1221 with_dxsdk_include 1222 with_jvm_features 1223 with_jvm_interpreter 1224 enable_jtreg_failure_handler 1225 enable_generate_classlist 1226 with_num_cores 1227 with_memory_size 1228 with_jobs 1229 with_test_jobs 1230 with_boot_jdk_jvmargs 1231 with_sjavac_server_java 1232 enable_sjavac 1233 enable_javac_server 1234 enable_icecc 1235 enable_precompiled_headers 1236 enable_ccache 1237 with_ccache_dir 1238 ' 1239 ac_precious_vars='build_alias 1240 host_alias 1241 target_alias 1242 BASENAME 1243 BASH 1244 CAT 1245 CHMOD 1246 CMP 1247 COMM 1248 CP 1249 CUT 1250 DATE 1251 DIFF 1252 DIRNAME 1253 ECHO 1254 EXPR 1255 FILE 1256 FIND 1257 HEAD 1258 GUNZIP 1259 GZIP 1260 LN 1261 LS 1262 MKDIR 1263 MKTEMP 1264 MV 1265 NAWK 1266 PRINTF 1267 RM 1268 RMDIR 1269 SH 1270 SORT 1271 TAIL 1272 TAR 1273 TEE 1274 TOUCH 1275 TR 1276 UNAME 1277 UNIQ 1278 WC 1279 WHICH 1280 XARGS 1281 AWK 1282 GREP 1283 EGREP 1284 FGREP 1285 SED 1286 CYGPATH 1287 READLINK 1288 DF 1289 CPIO 1290 NICE 1291 PANDOC 1292 MAKE 1293 UNZIP 1294 ZIPEXE 1295 LDD 1296 READELF 1297 DOT 1298 HG 1299 STAT 1300 TIME 1301 FLOCK 1302 DTRACE 1303 PATCH 1304 DSYMUTIL 1305 XATTR 1306 CODESIGN 1307 SETFILE 1308 PKG_CONFIG 1309 JAVA 1310 JAVAC 1311 JAVADOC 1312 JAR 1313 JARSIGNER 1314 CC 1315 CFLAGS 1316 LDFLAGS 1317 LIBS 1318 CPPFLAGS 1319 CXX 1320 CXXFLAGS 1321 CCC 1322 CPP 1323 CXXCPP 1324 AS 1325 AR 1326 LIPO 1327 OTOOL 1328 INSTALL_NAME_TOOL 1329 STRIP 1330 NM 1331 GNM 1332 OBJCOPY 1333 OBJDUMP 1334 BUILD_CC 1335 BUILD_CXX 1336 BUILD_NM 1337 BUILD_AR 1338 BUILD_OBJCOPY 1339 BUILD_STRIP 1340 JTREGEXE 1341 XMKMF 1342 FREETYPE_CFLAGS 1343 FREETYPE_LIBS 1344 ALSA_CFLAGS 1345 ALSA_LIBS 1346 LIBFFI_CFLAGS 1347 LIBFFI_LIBS 1348 PNG_CFLAGS 1349 PNG_LIBS 1350 LCMS_CFLAGS 1351 LCMS_LIBS 1352 ICECC_CMD 1353 ICECC_CREATE_ENV 1354 ICECC_WRAPPER 1355 CCACHE' 1356 1357 1358 # Initialize some variables set by options. 1359 ac_init_help= 1360 ac_init_version=false 1361 ac_unrecognized_opts= 1362 ac_unrecognized_sep= 1363 # The variables have the same names as the options, with 1364 # dashes changed to underlines. 1365 cache_file=/dev/null 1366 exec_prefix=NONE 1367 no_create= 1368 no_recursion= 1369 prefix=NONE 1370 program_prefix=NONE 1371 program_suffix=NONE 1372 program_transform_name=s,x,x, 1373 silent= 1374 site= 1375 srcdir= 1376 verbose= 1377 x_includes=NONE 1378 x_libraries=NONE 1379 1380 # Installation directory options. 1381 # These are left unexpanded so users can "make install exec_prefix=/foo" 1382 # and all the variables that are supposed to be based on exec_prefix 1383 # by default will actually change. 1384 # Use braces instead of parens because sh, perl, etc. also accept them. 1385 # (The list follows the same order as the GNU Coding Standards.) 1386 bindir='${exec_prefix}/bin' 1387 sbindir='${exec_prefix}/sbin' 1388 libexecdir='${exec_prefix}/libexec' 1389 datarootdir='${prefix}/share' 1390 datadir='${datarootdir}' 1391 sysconfdir='${prefix}/etc' 1392 sharedstatedir='${prefix}/com' 1393 localstatedir='${prefix}/var' 1394 includedir='${prefix}/include' 1395 oldincludedir='/usr/include' 1396 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1397 infodir='${datarootdir}/info' 1398 htmldir='${docdir}' 1399 dvidir='${docdir}' 1400 pdfdir='${docdir}' 1401 psdir='${docdir}' 1402 libdir='${exec_prefix}/lib' 1403 localedir='${datarootdir}/locale' 1404 mandir='${datarootdir}/man' 1405 1406 ac_prev= 1407 ac_dashdash= 1408 for ac_option 1409 do 1410 # If the previous option needs an argument, assign it. 1411 if test -n "$ac_prev"; then 1412 eval $ac_prev=\$ac_option 1413 ac_prev= 1414 continue 1415 fi 1416 1417 case $ac_option in 1418 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1419 *=) ac_optarg= ;; 1420 *) ac_optarg=yes ;; 1421 esac 1422 1423 # Accept the important Cygnus configure options, so we can diagnose typos. 1424 1425 case $ac_dashdash$ac_option in 1426 --) 1427 ac_dashdash=yes ;; 1428 1429 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1430 ac_prev=bindir ;; 1431 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1432 bindir=$ac_optarg ;; 1433 1434 -build | --build | --buil | --bui | --bu) 1435 ac_prev=build_alias ;; 1436 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1437 build_alias=$ac_optarg ;; 1438 1439 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1440 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1441 ac_prev=cache_file ;; 1442 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1443 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1444 cache_file=$ac_optarg ;; 1445 1446 --config-cache | -C) 1447 cache_file=config.cache ;; 1448 1449 -datadir | --datadir | --datadi | --datad) 1450 ac_prev=datadir ;; 1451 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1452 datadir=$ac_optarg ;; 1453 1454 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1455 | --dataroo | --dataro | --datar) 1456 ac_prev=datarootdir ;; 1457 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1458 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1459 datarootdir=$ac_optarg ;; 1460 1461 -disable-* | --disable-*) 1462 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1463 # Reject names that are not valid shell variable names. 1464 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1465 as_fn_error $? "invalid feature name: $ac_useropt" 1466 ac_useropt_orig=$ac_useropt 1467 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1468 case $ac_user_opts in 1469 *" 1470 "enable_$ac_useropt" 1471 "*) ;; 1472 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1473 ac_unrecognized_sep=', ';; 1474 esac 1475 eval enable_$ac_useropt=no ;; 1476 1477 -docdir | --docdir | --docdi | --doc | --do) 1478 ac_prev=docdir ;; 1479 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1480 docdir=$ac_optarg ;; 1481 1482 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1483 ac_prev=dvidir ;; 1484 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1485 dvidir=$ac_optarg ;; 1486 1487 -enable-* | --enable-*) 1488 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1489 # Reject names that are not valid shell variable names. 1490 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1491 as_fn_error $? "invalid feature name: $ac_useropt" 1492 ac_useropt_orig=$ac_useropt 1493 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1494 case $ac_user_opts in 1495 *" 1496 "enable_$ac_useropt" 1497 "*) ;; 1498 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1499 ac_unrecognized_sep=', ';; 1500 esac 1501 eval enable_$ac_useropt=\$ac_optarg ;; 1502 1503 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1504 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1505 | --exec | --exe | --ex) 1506 ac_prev=exec_prefix ;; 1507 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1508 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1509 | --exec=* | --exe=* | --ex=*) 1510 exec_prefix=$ac_optarg ;; 1511 1512 -gas | --gas | --ga | --g) 1513 # Obsolete; use --with-gas. 1514 with_gas=yes ;; 1515 1516 -help | --help | --hel | --he | -h) 1517 ac_init_help=long ;; 1518 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1519 ac_init_help=recursive ;; 1520 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1521 ac_init_help=short ;; 1522 1523 -host | --host | --hos | --ho) 1524 ac_prev=host_alias ;; 1525 -host=* | --host=* | --hos=* | --ho=*) 1526 host_alias=$ac_optarg ;; 1527 1528 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1529 ac_prev=htmldir ;; 1530 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1531 | --ht=*) 1532 htmldir=$ac_optarg ;; 1533 1534 -includedir | --includedir | --includedi | --included | --include \ 1535 | --includ | --inclu | --incl | --inc) 1536 ac_prev=includedir ;; 1537 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1538 | --includ=* | --inclu=* | --incl=* | --inc=*) 1539 includedir=$ac_optarg ;; 1540 1541 -infodir | --infodir | --infodi | --infod | --info | --inf) 1542 ac_prev=infodir ;; 1543 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1544 infodir=$ac_optarg ;; 1545 1546 -libdir | --libdir | --libdi | --libd) 1547 ac_prev=libdir ;; 1548 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1549 libdir=$ac_optarg ;; 1550 1551 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1552 | --libexe | --libex | --libe) 1553 ac_prev=libexecdir ;; 1554 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1555 | --libexe=* | --libex=* | --libe=*) 1556 libexecdir=$ac_optarg ;; 1557 1558 -localedir | --localedir | --localedi | --localed | --locale) 1559 ac_prev=localedir ;; 1560 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1561 localedir=$ac_optarg ;; 1562 1563 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1564 | --localstate | --localstat | --localsta | --localst | --locals) 1565 ac_prev=localstatedir ;; 1566 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1567 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1568 localstatedir=$ac_optarg ;; 1569 1570 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1571 ac_prev=mandir ;; 1572 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1573 mandir=$ac_optarg ;; 1574 1575 -nfp | --nfp | --nf) 1576 # Obsolete; use --without-fp. 1577 with_fp=no ;; 1578 1579 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1580 | --no-cr | --no-c | -n) 1581 no_create=yes ;; 1582 1583 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1584 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1585 no_recursion=yes ;; 1586 1587 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1588 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1589 | --oldin | --oldi | --old | --ol | --o) 1590 ac_prev=oldincludedir ;; 1591 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1592 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1593 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1594 oldincludedir=$ac_optarg ;; 1595 1596 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1597 ac_prev=prefix ;; 1598 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1599 prefix=$ac_optarg ;; 1600 1601 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1602 | --program-pre | --program-pr | --program-p) 1603 ac_prev=program_prefix ;; 1604 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1605 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1606 program_prefix=$ac_optarg ;; 1607 1608 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1609 | --program-suf | --program-su | --program-s) 1610 ac_prev=program_suffix ;; 1611 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1612 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1613 program_suffix=$ac_optarg ;; 1614 1615 -program-transform-name | --program-transform-name \ 1616 | --program-transform-nam | --program-transform-na \ 1617 | --program-transform-n | --program-transform- \ 1618 | --program-transform | --program-transfor \ 1619 | --program-transfo | --program-transf \ 1620 | --program-trans | --program-tran \ 1621 | --progr-tra | --program-tr | --program-t) 1622 ac_prev=program_transform_name ;; 1623 -program-transform-name=* | --program-transform-name=* \ 1624 | --program-transform-nam=* | --program-transform-na=* \ 1625 | --program-transform-n=* | --program-transform-=* \ 1626 | --program-transform=* | --program-transfor=* \ 1627 | --program-transfo=* | --program-transf=* \ 1628 | --program-trans=* | --program-tran=* \ 1629 | --progr-tra=* | --program-tr=* | --program-t=*) 1630 program_transform_name=$ac_optarg ;; 1631 1632 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1633 ac_prev=pdfdir ;; 1634 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1635 pdfdir=$ac_optarg ;; 1636 1637 -psdir | --psdir | --psdi | --psd | --ps) 1638 ac_prev=psdir ;; 1639 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1640 psdir=$ac_optarg ;; 1641 1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1643 | -silent | --silent | --silen | --sile | --sil) 1644 silent=yes ;; 1645 1646 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1647 ac_prev=sbindir ;; 1648 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1649 | --sbi=* | --sb=*) 1650 sbindir=$ac_optarg ;; 1651 1652 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1653 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1654 | --sharedst | --shareds | --shared | --share | --shar \ 1655 | --sha | --sh) 1656 ac_prev=sharedstatedir ;; 1657 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1658 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1659 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1660 | --sha=* | --sh=*) 1661 sharedstatedir=$ac_optarg ;; 1662 1663 -site | --site | --sit) 1664 ac_prev=site ;; 1665 -site=* | --site=* | --sit=*) 1666 site=$ac_optarg ;; 1667 1668 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1669 ac_prev=srcdir ;; 1670 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1671 srcdir=$ac_optarg ;; 1672 1673 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1674 | --syscon | --sysco | --sysc | --sys | --sy) 1675 ac_prev=sysconfdir ;; 1676 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1677 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1678 sysconfdir=$ac_optarg ;; 1679 1680 -target | --target | --targe | --targ | --tar | --ta | --t) 1681 ac_prev=target_alias ;; 1682 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1683 target_alias=$ac_optarg ;; 1684 1685 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1686 verbose=yes ;; 1687 1688 -version | --version | --versio | --versi | --vers | -V) 1689 ac_init_version=: ;; 1690 1691 -with-* | --with-*) 1692 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1693 # Reject names that are not valid shell variable names. 1694 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1695 as_fn_error $? "invalid package name: $ac_useropt" 1696 ac_useropt_orig=$ac_useropt 1697 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1698 case $ac_user_opts in 1699 *" 1700 "with_$ac_useropt" 1701 "*) ;; 1702 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1703 ac_unrecognized_sep=', ';; 1704 esac 1705 eval with_$ac_useropt=\$ac_optarg ;; 1706 1707 -without-* | --without-*) 1708 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1709 # Reject names that are not valid shell variable names. 1710 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1711 as_fn_error $? "invalid package name: $ac_useropt" 1712 ac_useropt_orig=$ac_useropt 1713 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1714 case $ac_user_opts in 1715 *" 1716 "with_$ac_useropt" 1717 "*) ;; 1718 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1719 ac_unrecognized_sep=', ';; 1720 esac 1721 eval with_$ac_useropt=no ;; 1722 1723 --x) 1724 # Obsolete; use --with-x. 1725 with_x=yes ;; 1726 1727 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1728 | --x-incl | --x-inc | --x-in | --x-i) 1729 ac_prev=x_includes ;; 1730 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1731 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1732 x_includes=$ac_optarg ;; 1733 1734 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1735 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1736 ac_prev=x_libraries ;; 1737 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1738 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1739 x_libraries=$ac_optarg ;; 1740 1741 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1742 Try \`$0 --help' for more information" 1743 ;; 1744 1745 *=*) 1746 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1747 # Reject names that are not valid shell variable names. 1748 case $ac_envvar in #( 1749 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1750 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1751 esac 1752 eval $ac_envvar=\$ac_optarg 1753 export $ac_envvar ;; 1754 1755 *) 1756 # FIXME: should be removed in autoconf 3.0. 1757 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1758 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1759 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1760 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1761 ;; 1762 1763 esac 1764 done 1765 1766 if test -n "$ac_prev"; then 1767 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1768 as_fn_error $? "missing argument to $ac_option" 1769 fi 1770 1771 if test -n "$ac_unrecognized_opts"; then 1772 case $enable_option_checking in 1773 no) ;; 1774 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1775 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1776 esac 1777 fi 1778 1779 # Check all directory arguments for consistency. 1780 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1781 datadir sysconfdir sharedstatedir localstatedir includedir \ 1782 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1783 libdir localedir mandir 1784 do 1785 eval ac_val=\$$ac_var 1786 # Remove trailing slashes. 1787 case $ac_val in 1788 */ ) 1789 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1790 eval $ac_var=\$ac_val;; 1791 esac 1792 # Be sure to have absolute directory names. 1793 case $ac_val in 1794 [\\/$]* | ?:[\\/]* ) continue;; 1795 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1796 esac 1797 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1798 done 1799 1800 # There might be people who depend on the old broken behavior: `$host' 1801 # used to hold the argument of --host etc. 1802 # FIXME: To remove some day. 1803 build=$build_alias 1804 host=$host_alias 1805 target=$target_alias 1806 1807 # FIXME: To remove some day. 1808 if test "x$host_alias" != x; then 1809 if test "x$build_alias" = x; then 1810 cross_compiling=maybe 1811 elif test "x$build_alias" != "x$host_alias"; then 1812 cross_compiling=yes 1813 fi 1814 fi 1815 1816 ac_tool_prefix= 1817 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1818 1819 test "$silent" = yes && exec 6>/dev/null 1820 1821 1822 ac_pwd=`pwd` && test -n "$ac_pwd" && 1823 ac_ls_di=`ls -di .` && 1824 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1825 as_fn_error $? "working directory cannot be determined" 1826 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1827 as_fn_error $? "pwd does not report name of working directory" 1828 1829 1830 # Find the source files, if location was not specified. 1831 if test -z "$srcdir"; then 1832 ac_srcdir_defaulted=yes 1833 # Try the directory containing this script, then the parent directory. 1834 ac_confdir=`$as_dirname -- "$as_myself" || 1835 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1836 X"$as_myself" : 'X\(//\)[^/]' \| \ 1837 X"$as_myself" : 'X\(//\)$' \| \ 1838 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1839 $as_echo X"$as_myself" | 1840 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1841 s//\1/ 1842 q 1843 } 1844 /^X\(\/\/\)[^/].*/{ 1845 s//\1/ 1846 q 1847 } 1848 /^X\(\/\/\)$/{ 1849 s//\1/ 1850 q 1851 } 1852 /^X\(\/\).*/{ 1853 s//\1/ 1854 q 1855 } 1856 s/.*/./; q'` 1857 srcdir=$ac_confdir 1858 if test ! -r "$srcdir/$ac_unique_file"; then 1859 srcdir=.. 1860 fi 1861 else 1862 ac_srcdir_defaulted=no 1863 fi 1864 if test ! -r "$srcdir/$ac_unique_file"; then 1865 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1866 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1867 fi 1868 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1869 ac_abs_confdir=`( 1870 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1871 pwd)` 1872 # When building in place, set srcdir=. 1873 if test "$ac_abs_confdir" = "$ac_pwd"; then 1874 srcdir=. 1875 fi 1876 # Remove unnecessary trailing slashes from srcdir. 1877 # Double slashes in file names in object file debugging info 1878 # mess up M-x gdb in Emacs. 1879 case $srcdir in 1880 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1881 esac 1882 for ac_var in $ac_precious_vars; do 1883 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1884 eval ac_env_${ac_var}_value=\$${ac_var} 1885 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1886 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1887 done 1888 1889 # 1890 # Report the --help message. 1891 # 1892 if test "$ac_init_help" = "long"; then 1893 # Omit some internal or obsolete options to make the list less imposing. 1894 # This message is too long to be a string in the A/UX 3.1 sh. 1895 cat <<_ACEOF 1896 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1897 1898 Usage: $0 [OPTION]... [VAR=VALUE]... 1899 1900 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1901 VAR=VALUE. See below for descriptions of some of the useful variables. 1902 1903 Defaults for the options are specified in brackets. 1904 1905 Configuration: 1906 -h, --help display this help and exit 1907 --help=short display options specific to this package 1908 --help=recursive display the short help of all the included packages 1909 -V, --version display version information and exit 1910 -q, --quiet, --silent do not print \`checking ...' messages 1911 --cache-file=FILE cache test results in FILE [disabled] 1912 -C, --config-cache alias for \`--cache-file=config.cache' 1913 -n, --no-create do not create output files 1914 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1915 1916 Installation directories: 1917 --prefix=PREFIX install architecture-independent files in PREFIX 1918 [$ac_default_prefix] 1919 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1920 [PREFIX] 1921 1922 By default, \`make install' will install all the files in 1923 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1924 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1925 for instance \`--prefix=\$HOME'. 1926 1927 For better control, use the options below. 1928 1929 Fine tuning of the installation directories: 1930 --bindir=DIR user executables [EPREFIX/bin] 1931 --sbindir=DIR system admin executables [EPREFIX/sbin] 1932 --libexecdir=DIR program executables [EPREFIX/libexec] 1933 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1934 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1935 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1936 --libdir=DIR object code libraries [EPREFIX/lib] 1937 --includedir=DIR C header files [PREFIX/include] 1938 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1939 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1940 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1941 --infodir=DIR info documentation [DATAROOTDIR/info] 1942 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1943 --mandir=DIR man documentation [DATAROOTDIR/man] 1944 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1945 --htmldir=DIR html documentation [DOCDIR] 1946 --dvidir=DIR dvi documentation [DOCDIR] 1947 --pdfdir=DIR pdf documentation [DOCDIR] 1948 --psdir=DIR ps documentation [DOCDIR] 1949 _ACEOF 1950 1951 cat <<\_ACEOF 1952 1953 X features: 1954 --x-includes=DIR X include files are in DIR 1955 --x-libraries=DIR X library files are in DIR 1956 1957 System types: 1958 --build=BUILD configure for building on BUILD [guessed] 1959 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1960 --target=TARGET configure for building compilers for TARGET [HOST] 1961 _ACEOF 1962 fi 1963 1964 if test -n "$ac_init_help"; then 1965 case $ac_init_help in 1966 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1967 esac 1968 cat <<\_ACEOF 1969 1970 Optional Features: 1971 --disable-option-checking ignore unrecognized --enable/--with options 1972 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1973 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1974 --enable-openjdk-only suppress building custom source even if present 1975 [disabled] 1976 --enable-debug set the debug level to fastdebug (shorthand for 1977 --with-debug-level=fastdebug) [disabled] 1978 --enable-headless-only only build headless (no GUI) support [disabled] 1979 --enable-full-docs build complete documentation [enabled if all tools 1980 found] 1981 --disable-unlimited-crypto 1982 Disable unlimited crypto policy [enabled] 1983 --disable-keep-packaged-modules 1984 Do not keep packaged modules in jdk image [enable] 1985 --enable-static-build enable static library build [disabled] 1986 --disable-warnings-as-errors 1987 do not consider native warnings to be an error 1988 [enabled] 1989 --enable-debug-symbols Deprecated. Option is kept for backwards 1990 compatibility and is ignored 1991 --enable-zip-debug-info Deprecated. Option is kept for backwards 1992 compatibility and is ignored 1993 --enable-native-coverage 1994 enable native compilation with code coverage 1995 data[disabled] 1996 --enable-asan enable AddressSanitizer if possible [disabled] 1997 --enable-dtrace[=yes/no/auto] 1998 enable dtrace. Default is auto, where dtrace is 1999 enabled if all dependencies are present. 2000 --enable-aot[=yes/no/auto] 2001 enable ahead of time compilation feature. Default is 2002 auto, where aot is enabled if all dependencies are 2003 present. 2004 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 2005 Default is yes. 2006 --disable-hotspot-gtest Disables building of the Hotspot unit tests 2007 [enabled] 2008 --disable-freetype-bundling 2009 disable bundling of the freetype library with the 2010 build result [enabled on Windows or when using 2011 --with-freetype, disabled otherwise] 2012 --enable-libffi-bundling 2013 enable bundling of libffi.so to make the built JDK 2014 runnable on more systems 2015 --enable-jtreg-failure-handler 2016 forces build of the jtreg failure handler to be 2017 enabled, missing dependencies become fatal errors. 2018 Default is auto, where the failure handler is built 2019 if all dependencies are present and otherwise just 2020 disabled. 2021 --disable-generate-classlist 2022 forces enabling or disabling of the generation of a 2023 CDS classlist at build time. Default is to generate 2024 it when either the server or client JVMs are built 2025 and enable-cds is true. 2026 --enable-sjavac use sjavac to do fast incremental compiles 2027 [disabled] 2028 --disable-javac-server disable javac server [enabled] 2029 --enable-icecc enable distribted compilation of native code using 2030 icecc/icecream [disabled] 2031 --disable-precompiled-headers 2032 disable using precompiled headers when compiling C++ 2033 [enabled] 2034 --enable-ccache enable using ccache to speed up recompilations 2035 [disabled] 2036 2037 Optional Packages: 2038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2040 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2041 support it), e.g. --with-target-bits=32 [guessed] 2042 --with-custom-make-dir Deprecated. Option is kept for backwards 2043 compatibility and is ignored 2044 --with-jdk-variant JDK variant to build (normal) [normal] 2045 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2046 optimized) [release] 2047 --with-jvm-variants JVM variants (separated by commas) to build 2048 (server,client,minimal,core,zero,custom) [server] 2049 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2050 (arm64,aarch64) [aarch64] 2051 --with-devkit use this devkit for compilers, tools and resources 2052 --with-sys-root alias for --with-sysroot for backwards compatability 2053 --with-sysroot use this directory as sysroot 2054 --with-tools-dir alias for --with-toolchain-path for backwards 2055 compatibility 2056 --with-toolchain-path prepend these directories when searching for 2057 toolchain binaries (compilers etc) 2058 --with-extra-path prepend these directories to the default path 2059 --with-sdk-name use the platform SDK of the given name. [macosx] 2060 --with-conf-name use this as the name of the configuration [generated 2061 from important configuration options] 2062 --with-output-sync set make output sync type if supported by make. 2063 [recurse] 2064 --with-default-make-target 2065 set the default make target [exploded-image] 2066 --with-cacerts-file specify alternative cacerts file 2067 --with-copyright-year Set copyright year value for build [current year] 2068 --with-milestone Deprecated. Option is kept for backwards 2069 compatibility and is ignored 2070 --with-update-version Deprecated. Option is kept for backwards 2071 compatibility and is ignored 2072 --with-user-release-suffix 2073 Deprecated. Option is kept for backwards 2074 compatibility and is ignored 2075 --with-build-number Deprecated. Option is kept for backwards 2076 compatibility and is ignored 2077 --with-version-major Deprecated. Option is kept for backwards 2078 compatibility and is ignored 2079 --with-version-minor Deprecated. Option is kept for backwards 2080 compatibility and is ignored 2081 --with-version-security Deprecated. Option is kept for backwards 2082 compatibility and is ignored 2083 --with-vendor-name Set vendor name. Among others, used to set the 2084 'java.vendor' and 'java.vm.vendor' system 2085 properties. [not specified] 2086 --with-vendor-url Set the 'java.vendor.url' system property [not 2087 specified] 2088 --with-vendor-bug-url Set the 'java.vendor.url.bug' system property [not 2089 specified] 2090 --with-vendor-vm-bug-url 2091 Sets the bug URL which will be displayed when the VM 2092 crashes [not specified] 2093 --with-version-string Set version string [calculated] 2094 --with-version-pre Set the base part of the version 'PRE' field 2095 (pre-release identifier) ['internal'] 2096 --with-version-opt Set version 'OPT' field (build metadata) 2097 [<timestamp>.<user>.<dirname>] 2098 --with-version-build Set version 'BUILD' field (build number) [not 2099 specified] 2100 --with-version-feature Set version 'FEATURE' field (first number) [current 2101 source value] 2102 --with-version-interim Set version 'INTERIM' field (second number) [current 2103 source value] 2104 --with-version-update Set version 'UPDATE' field (third number) [current 2105 source value] 2106 --with-version-patch Set version 'PATCH' field (fourth number) [not 2107 specified] 2108 --with-version-date Set version date [current source value] 2109 --with-vendor-version-string 2110 Set vendor version string [not specified] 2111 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2112 --with-build-jdk path to JDK of same version as is being built[the 2113 newly built JDK] 2114 --with-import-modules import a set of prebuilt modules either as a zip 2115 file or an exploded directory 2116 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2117 to show possible values [platform dependent] 2118 --with-extra-cflags extra flags to be used when compiling jdk c-files 2119 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2120 --with-extra-ldflags extra flags to be used when linking jdk 2121 --with-toolchain-version 2122 the version of the toolchain to look for, use 2123 '--help' to show possible values [platform 2124 dependent] 2125 --with-build-devkit Devkit to use for the build platform toolchain 2126 --with-jtreg Regression Test Harness [probed] 2127 --with-jib Jib dependency management tool [not used] 2128 --with-abi-profile specify ABI profile for ARM builds 2129 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2130 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2131 [toolchain dependent] 2132 --with-macosx-version-max 2133 error on use of newer functionality. [macosx] 2134 --with-native-debug-symbols 2135 set the native debug symbol configuration (none, 2136 internal, external, zipped) [varying] 2137 --with-stdc++lib=<static>,<dynamic>,<default> 2138 force linking of the C++ runtime on Linux to either 2139 static or dynamic, default is static with dynamic as 2140 fallback 2141 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2142 (Windows only) [probed] 2143 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2144 (Windows only) [probed] 2145 --with-x use the X Window System 2146 --with-cups specify prefix directory for the cups package 2147 (expecting the headers under PATH/include) 2148 --with-cups-include specify directory for the cups include files 2149 --with-fontconfig specify prefix directory for the fontconfig package 2150 (expecting the headers under PATH/include) 2151 --with-fontconfig-include 2152 specify directory for the fontconfig include files 2153 --with-freetype specify prefix directory for the freetype package 2154 (expecting the libraries under PATH/lib and the 2155 headers under PATH/include) 2156 --with-freetype-include specify directory for the freetype include files 2157 --with-freetype-lib specify directory for the freetype library 2158 --with-freetype-src specify directory with freetype sources to 2159 automatically build the library (experimental, 2160 Windows-only) 2161 --with-freetype-license if bundling freetype, also bundle this license file 2162 --with-alsa specify prefix directory for the alsa package 2163 (expecting the libraries under PATH/lib and the 2164 headers under PATH/include) 2165 --with-alsa-include specify directory for the alsa include files 2166 --with-alsa-lib specify directory for the alsa library 2167 --with-libffi specify prefix directory for the libffi package 2168 (expecting the libraries under PATH/lib and the 2169 headers under PATH/include) 2170 --with-libffi-include specify directory for the libffi include files 2171 --with-libffi-lib specify directory for the libffi library 2172 --with-libjpeg use libjpeg from build system or OpenJDK source 2173 (system, bundled) [bundled] 2174 --with-giflib use giflib from build system or OpenJDK source 2175 (system, bundled) [bundled] 2176 --with-libpng use libpng from build system or OpenJDK source 2177 (system, bundled) [bundled] 2178 --with-zlib use zlib from build system or OpenJDK source 2179 (system, bundled) [bundled] 2180 --with-lcms use lcms2 from build system or OpenJDK source 2181 (system, bundled) [bundled] 2182 --with-dxsdk Deprecated. Option is kept for backwards 2183 compatibility and is ignored 2184 --with-dxsdk-lib Deprecated. Option is kept for backwards 2185 compatibility and is ignored 2186 --with-dxsdk-include Deprecated. Option is kept for backwards 2187 compatibility and is ignored 2188 --with-jvm-features additional JVM features to enable (separated by 2189 comma), use '--help' to show possible values [none] 2190 --with-jvm-interpreter Deprecated. Option is kept for backwards 2191 compatibility and is ignored 2192 --with-num-cores number of cores in the build system, e.g. 2193 --with-num-cores=8 [probed] 2194 --with-memory-size memory (in MB) available in the build system, e.g. 2195 --with-memory-size=1024 [probed] 2196 --with-jobs number of parallel jobs to let make run [calculated 2197 based on cores and memory] 2198 --with-test-jobs number of parallel tests jobs to run [based on build 2199 jobs] 2200 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2201 invocations of boot JDK, overriding the default 2202 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2203 -enableassertions" 2204 --with-sjavac-server-java 2205 use this java binary for running the sjavac 2206 background server [Boot JDK java] 2207 --with-ccache-dir where to store ccache files [~/.ccache] 2208 2209 Some influential environment variables: 2210 BASENAME Override default value for BASENAME 2211 BASH Override default value for BASH 2212 CAT Override default value for CAT 2213 CHMOD Override default value for CHMOD 2214 CMP Override default value for CMP 2215 COMM Override default value for COMM 2216 CP Override default value for CP 2217 CUT Override default value for CUT 2218 DATE Override default value for DATE 2219 DIFF Override default value for DIFF 2220 DIRNAME Override default value for DIRNAME 2221 ECHO Override default value for ECHO 2222 EXPR Override default value for EXPR 2223 FILE Override default value for FILE 2224 FIND Override default value for FIND 2225 HEAD Override default value for HEAD 2226 GUNZIP Override default value for GUNZIP 2227 GZIP Override default value for GZIP 2228 LN Override default value for LN 2229 LS Override default value for LS 2230 MKDIR Override default value for MKDIR 2231 MKTEMP Override default value for MKTEMP 2232 MV Override default value for MV 2233 NAWK Override default value for NAWK 2234 PRINTF Override default value for PRINTF 2235 RM Override default value for RM 2236 RMDIR Override default value for RMDIR 2237 SH Override default value for SH 2238 SORT Override default value for SORT 2239 TAIL Override default value for TAIL 2240 TAR Override default value for TAR 2241 TEE Override default value for TEE 2242 TOUCH Override default value for TOUCH 2243 TR Override default value for TR 2244 UNAME Override default value for UNAME 2245 UNIQ Override default value for UNIQ 2246 WC Override default value for WC 2247 WHICH Override default value for WHICH 2248 XARGS Override default value for XARGS 2249 AWK Override default value for AWK 2250 GREP Override default value for GREP 2251 EGREP Override default value for EGREP 2252 FGREP Override default value for FGREP 2253 SED Override default value for SED 2254 CYGPATH Override default value for CYGPATH 2255 READLINK Override default value for READLINK 2256 DF Override default value for DF 2257 CPIO Override default value for CPIO 2258 NICE Override default value for NICE 2259 PANDOC Override default value for PANDOC 2260 MAKE Override default value for MAKE 2261 UNZIP Override default value for UNZIP 2262 ZIPEXE Override default value for ZIPEXE 2263 LDD Override default value for LDD 2264 READELF Override default value for READELF 2265 DOT Override default value for DOT 2266 HG Override default value for HG 2267 STAT Override default value for STAT 2268 TIME Override default value for TIME 2269 FLOCK Override default value for FLOCK 2270 DTRACE Override default value for DTRACE 2271 PATCH Override default value for PATCH 2272 DSYMUTIL Override default value for DSYMUTIL 2273 XATTR Override default value for XATTR 2274 CODESIGN Override default value for CODESIGN 2275 SETFILE Override default value for SETFILE 2276 PKG_CONFIG path to pkg-config utility 2277 JAVA Override default value for JAVA 2278 JAVAC Override default value for JAVAC 2279 JAVADOC Override default value for JAVADOC 2280 JAR Override default value for JAR 2281 JARSIGNER Override default value for JARSIGNER 2282 CC C compiler command 2283 CFLAGS C compiler flags 2284 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2285 nonstandard directory <lib dir> 2286 LIBS libraries to pass to the linker, e.g. -l<library> 2287 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2288 you have headers in a nonstandard directory <include dir> 2289 CXX C++ compiler command 2290 CXXFLAGS C++ compiler flags 2291 CPP C preprocessor 2292 CXXCPP C++ preprocessor 2293 AS Override default value for AS 2294 AR Override default value for AR 2295 LIPO Override default value for LIPO 2296 OTOOL Override default value for OTOOL 2297 INSTALL_NAME_TOOL 2298 Override default value for INSTALL_NAME_TOOL 2299 STRIP Override default value for STRIP 2300 NM Override default value for NM 2301 GNM Override default value for GNM 2302 OBJCOPY Override default value for OBJCOPY 2303 OBJDUMP Override default value for OBJDUMP 2304 BUILD_CC Override default value for BUILD_CC 2305 BUILD_CXX Override default value for BUILD_CXX 2306 BUILD_NM Override default value for BUILD_NM 2307 BUILD_AR Override default value for BUILD_AR 2308 BUILD_OBJCOPY 2309 Override default value for BUILD_OBJCOPY 2310 BUILD_STRIP Override default value for BUILD_STRIP 2311 JTREGEXE Override default value for JTREGEXE 2312 XMKMF Path to xmkmf, Makefile generator for X Window System 2313 FREETYPE_CFLAGS 2314 C compiler flags for FREETYPE, overriding pkg-config 2315 FREETYPE_LIBS 2316 linker flags for FREETYPE, overriding pkg-config 2317 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2318 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2319 LIBFFI_CFLAGS 2320 C compiler flags for LIBFFI, overriding pkg-config 2321 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2322 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2323 PNG_LIBS linker flags for PNG, overriding pkg-config 2324 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2325 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2326 ICECC_CMD Override default value for ICECC_CMD 2327 ICECC_CREATE_ENV 2328 Override default value for ICECC_CREATE_ENV 2329 ICECC_WRAPPER 2330 Override default value for ICECC_WRAPPER 2331 CCACHE Override default value for CCACHE 2332 2333 Use these variables to override the choices made by `configure' or to help 2334 it to find libraries and programs with nonstandard names/locations. 2335 2336 Report bugs to <build-dev@openjdk.java.net>. 2337 OpenJDK home page: <http://openjdk.java.net>. 2338 _ACEOF 2339 ac_status=$? 2340 fi 2341 2342 if test "$ac_init_help" = "recursive"; then 2343 # If there are subdirs, report their specific --help. 2344 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2345 test -d "$ac_dir" || 2346 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2347 continue 2348 ac_builddir=. 2349 2350 case "$ac_dir" in 2351 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2352 *) 2353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2354 # A ".." for each directory in $ac_dir_suffix. 2355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2356 case $ac_top_builddir_sub in 2357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2359 esac ;; 2360 esac 2361 ac_abs_top_builddir=$ac_pwd 2362 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2363 # for backward compatibility: 2364 ac_top_builddir=$ac_top_build_prefix 2365 2366 case $srcdir in 2367 .) # We are building in place. 2368 ac_srcdir=. 2369 ac_top_srcdir=$ac_top_builddir_sub 2370 ac_abs_top_srcdir=$ac_pwd ;; 2371 [\\/]* | ?:[\\/]* ) # Absolute name. 2372 ac_srcdir=$srcdir$ac_dir_suffix; 2373 ac_top_srcdir=$srcdir 2374 ac_abs_top_srcdir=$srcdir ;; 2375 *) # Relative name. 2376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2377 ac_top_srcdir=$ac_top_build_prefix$srcdir 2378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2379 esac 2380 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2381 2382 cd "$ac_dir" || { ac_status=$?; continue; } 2383 # Check for guested configure. 2384 if test -f "$ac_srcdir/configure.gnu"; then 2385 echo && 2386 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2387 elif test -f "$ac_srcdir/configure"; then 2388 echo && 2389 $SHELL "$ac_srcdir/configure" --help=recursive 2390 else 2391 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2392 fi || ac_status=$? 2393 cd "$ac_pwd" || { ac_status=$?; break; } 2394 done 2395 fi 2396 2397 test -n "$ac_init_help" && exit $ac_status 2398 if $ac_init_version; then 2399 cat <<\_ACEOF 2400 OpenJDK configure jdk9 2401 generated by GNU Autoconf 2.69 2402 2403 Copyright (C) 2012 Free Software Foundation, Inc. 2404 This configure script is free software; the Free Software Foundation 2405 gives unlimited permission to copy, distribute and modify it. 2406 _ACEOF 2407 exit 2408 fi 2409 2410 ## ------------------------ ## 2411 ## Autoconf initialization. ## 2412 ## ------------------------ ## 2413 2414 # ac_fn_c_try_compile LINENO 2415 # -------------------------- 2416 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2417 ac_fn_c_try_compile () 2418 { 2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2420 rm -f conftest.$ac_objext 2421 if { { ac_try="$ac_compile" 2422 case "(($ac_try" in 2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2424 *) ac_try_echo=$ac_try;; 2425 esac 2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2427 $as_echo "$ac_try_echo"; } >&5 2428 (eval "$ac_compile") 2>conftest.err 2429 ac_status=$? 2430 if test -s conftest.err; then 2431 grep -v '^ *+' conftest.err >conftest.er1 2432 cat conftest.er1 >&5 2433 mv -f conftest.er1 conftest.err 2434 fi 2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2436 test $ac_status = 0; } && { 2437 test -z "$ac_c_werror_flag" || 2438 test ! -s conftest.err 2439 } && test -s conftest.$ac_objext; then : 2440 ac_retval=0 2441 else 2442 $as_echo "$as_me: failed program was:" >&5 2443 sed 's/^/| /' conftest.$ac_ext >&5 2444 2445 ac_retval=1 2446 fi 2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2448 as_fn_set_status $ac_retval 2449 2450 } # ac_fn_c_try_compile 2451 2452 # ac_fn_cxx_try_compile LINENO 2453 # ---------------------------- 2454 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2455 ac_fn_cxx_try_compile () 2456 { 2457 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2458 rm -f conftest.$ac_objext 2459 if { { ac_try="$ac_compile" 2460 case "(($ac_try" in 2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2462 *) ac_try_echo=$ac_try;; 2463 esac 2464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2465 $as_echo "$ac_try_echo"; } >&5 2466 (eval "$ac_compile") 2>conftest.err 2467 ac_status=$? 2468 if test -s conftest.err; then 2469 grep -v '^ *+' conftest.err >conftest.er1 2470 cat conftest.er1 >&5 2471 mv -f conftest.er1 conftest.err 2472 fi 2473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2474 test $ac_status = 0; } && { 2475 test -z "$ac_cxx_werror_flag" || 2476 test ! -s conftest.err 2477 } && test -s conftest.$ac_objext; then : 2478 ac_retval=0 2479 else 2480 $as_echo "$as_me: failed program was:" >&5 2481 sed 's/^/| /' conftest.$ac_ext >&5 2482 2483 ac_retval=1 2484 fi 2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2486 as_fn_set_status $ac_retval 2487 2488 } # ac_fn_cxx_try_compile 2489 2490 # ac_fn_c_try_cpp LINENO 2491 # ---------------------- 2492 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2493 ac_fn_c_try_cpp () 2494 { 2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2496 if { { ac_try="$ac_cpp conftest.$ac_ext" 2497 case "(($ac_try" in 2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2499 *) ac_try_echo=$ac_try;; 2500 esac 2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2502 $as_echo "$ac_try_echo"; } >&5 2503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2504 ac_status=$? 2505 if test -s conftest.err; then 2506 grep -v '^ *+' conftest.err >conftest.er1 2507 cat conftest.er1 >&5 2508 mv -f conftest.er1 conftest.err 2509 fi 2510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2511 test $ac_status = 0; } > conftest.i && { 2512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2513 test ! -s conftest.err 2514 }; then : 2515 ac_retval=0 2516 else 2517 $as_echo "$as_me: failed program was:" >&5 2518 sed 's/^/| /' conftest.$ac_ext >&5 2519 2520 ac_retval=1 2521 fi 2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2523 as_fn_set_status $ac_retval 2524 2525 } # ac_fn_c_try_cpp 2526 2527 # ac_fn_cxx_try_cpp LINENO 2528 # ------------------------ 2529 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2530 ac_fn_cxx_try_cpp () 2531 { 2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2533 if { { ac_try="$ac_cpp conftest.$ac_ext" 2534 case "(($ac_try" in 2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2536 *) ac_try_echo=$ac_try;; 2537 esac 2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2539 $as_echo "$ac_try_echo"; } >&5 2540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2541 ac_status=$? 2542 if test -s conftest.err; then 2543 grep -v '^ *+' conftest.err >conftest.er1 2544 cat conftest.er1 >&5 2545 mv -f conftest.er1 conftest.err 2546 fi 2547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2548 test $ac_status = 0; } > conftest.i && { 2549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2550 test ! -s conftest.err 2551 }; then : 2552 ac_retval=0 2553 else 2554 $as_echo "$as_me: failed program was:" >&5 2555 sed 's/^/| /' conftest.$ac_ext >&5 2556 2557 ac_retval=1 2558 fi 2559 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2560 as_fn_set_status $ac_retval 2561 2562 } # ac_fn_cxx_try_cpp 2563 2564 # ac_fn_c_try_link LINENO 2565 # ----------------------- 2566 # Try to link conftest.$ac_ext, and return whether this succeeded. 2567 ac_fn_c_try_link () 2568 { 2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2570 rm -f conftest.$ac_objext conftest$ac_exeext 2571 if { { ac_try="$ac_link" 2572 case "(($ac_try" in 2573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2574 *) ac_try_echo=$ac_try;; 2575 esac 2576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2577 $as_echo "$ac_try_echo"; } >&5 2578 (eval "$ac_link") 2>conftest.err 2579 ac_status=$? 2580 if test -s conftest.err; then 2581 grep -v '^ *+' conftest.err >conftest.er1 2582 cat conftest.er1 >&5 2583 mv -f conftest.er1 conftest.err 2584 fi 2585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2586 test $ac_status = 0; } && { 2587 test -z "$ac_c_werror_flag" || 2588 test ! -s conftest.err 2589 } && test -s conftest$ac_exeext && { 2590 test "$cross_compiling" = yes || 2591 test -x conftest$ac_exeext 2592 }; then : 2593 ac_retval=0 2594 else 2595 $as_echo "$as_me: failed program was:" >&5 2596 sed 's/^/| /' conftest.$ac_ext >&5 2597 2598 ac_retval=1 2599 fi 2600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2602 # interfere with the next link command; also delete a directory that is 2603 # left behind by Apple's compiler. We do this before executing the actions. 2604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2606 as_fn_set_status $ac_retval 2607 2608 } # ac_fn_c_try_link 2609 2610 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2611 # --------------------------------------------------------- 2612 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2613 # the include files in INCLUDES and setting the cache variable VAR 2614 # accordingly. 2615 ac_fn_cxx_check_header_mongrel () 2616 { 2617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2618 if eval \${$3+:} false; then : 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2620 $as_echo_n "checking for $2... " >&6; } 2621 if eval \${$3+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623 fi 2624 eval ac_res=\$$3 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2626 $as_echo "$ac_res" >&6; } 2627 else 2628 # Is the header compilable? 2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2630 $as_echo_n "checking $2 usability... " >&6; } 2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2632 /* end confdefs.h. */ 2633 $4 2634 #include <$2> 2635 _ACEOF 2636 if ac_fn_cxx_try_compile "$LINENO"; then : 2637 ac_header_compiler=yes 2638 else 2639 ac_header_compiler=no 2640 fi 2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2643 $as_echo "$ac_header_compiler" >&6; } 2644 2645 # Is the header present? 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2647 $as_echo_n "checking $2 presence... " >&6; } 2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2649 /* end confdefs.h. */ 2650 #include <$2> 2651 _ACEOF 2652 if ac_fn_cxx_try_cpp "$LINENO"; then : 2653 ac_header_preproc=yes 2654 else 2655 ac_header_preproc=no 2656 fi 2657 rm -f conftest.err conftest.i conftest.$ac_ext 2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2659 $as_echo "$ac_header_preproc" >&6; } 2660 2661 # So? What about this header? 2662 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2663 yes:no: ) 2664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2665 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2668 ;; 2669 no:yes:* ) 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2671 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2673 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2675 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2677 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2679 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2680 ( $as_echo "## ----------------------------------------- ## 2681 ## Report this to build-dev@openjdk.java.net ## 2682 ## ----------------------------------------- ##" 2683 ) | sed "s/^/$as_me: WARNING: /" >&2 2684 ;; 2685 esac 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2687 $as_echo_n "checking for $2... " >&6; } 2688 if eval \${$3+:} false; then : 2689 $as_echo_n "(cached) " >&6 2690 else 2691 eval "$3=\$ac_header_compiler" 2692 fi 2693 eval ac_res=\$$3 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2695 $as_echo "$ac_res" >&6; } 2696 fi 2697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2698 2699 } # ac_fn_cxx_check_header_mongrel 2700 2701 # ac_fn_cxx_try_run LINENO 2702 # ------------------------ 2703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2704 # that executables *can* be run. 2705 ac_fn_cxx_try_run () 2706 { 2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2708 if { { ac_try="$ac_link" 2709 case "(($ac_try" in 2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2711 *) ac_try_echo=$ac_try;; 2712 esac 2713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2714 $as_echo "$ac_try_echo"; } >&5 2715 (eval "$ac_link") 2>&5 2716 ac_status=$? 2717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2719 { { case "(($ac_try" in 2720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2721 *) ac_try_echo=$ac_try;; 2722 esac 2723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2724 $as_echo "$ac_try_echo"; } >&5 2725 (eval "$ac_try") 2>&5 2726 ac_status=$? 2727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2728 test $ac_status = 0; }; }; then : 2729 ac_retval=0 2730 else 2731 $as_echo "$as_me: program exited with status $ac_status" >&5 2732 $as_echo "$as_me: failed program was:" >&5 2733 sed 's/^/| /' conftest.$ac_ext >&5 2734 2735 ac_retval=$ac_status 2736 fi 2737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2739 as_fn_set_status $ac_retval 2740 2741 } # ac_fn_cxx_try_run 2742 2743 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2744 # --------------------------------------------------------- 2745 # Tests whether HEADER exists and can be compiled using the include files in 2746 # INCLUDES, setting the cache variable VAR accordingly. 2747 ac_fn_cxx_check_header_compile () 2748 { 2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2751 $as_echo_n "checking for $2... " >&6; } 2752 if eval \${$3+:} false; then : 2753 $as_echo_n "(cached) " >&6 2754 else 2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2756 /* end confdefs.h. */ 2757 $4 2758 #include <$2> 2759 _ACEOF 2760 if ac_fn_cxx_try_compile "$LINENO"; then : 2761 eval "$3=yes" 2762 else 2763 eval "$3=no" 2764 fi 2765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2766 fi 2767 eval ac_res=\$$3 2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2769 $as_echo "$ac_res" >&6; } 2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2771 2772 } # ac_fn_cxx_check_header_compile 2773 2774 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2775 # ---------------------------------------------- 2776 # Tries to find the compile-time value of EXPR in a program that includes 2777 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2778 # computed 2779 ac_fn_cxx_compute_int () 2780 { 2781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2782 if test "$cross_compiling" = yes; then 2783 # Depending upon the size, compute the lo and hi bounds. 2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2785 /* end confdefs.h. */ 2786 $4 2787 int 2788 main () 2789 { 2790 static int test_array [1 - 2 * !(($2) >= 0)]; 2791 test_array [0] = 0; 2792 return test_array [0]; 2793 2794 ; 2795 return 0; 2796 } 2797 _ACEOF 2798 if ac_fn_cxx_try_compile "$LINENO"; then : 2799 ac_lo=0 ac_mid=0 2800 while :; do 2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2802 /* end confdefs.h. */ 2803 $4 2804 int 2805 main () 2806 { 2807 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2808 test_array [0] = 0; 2809 return test_array [0]; 2810 2811 ; 2812 return 0; 2813 } 2814 _ACEOF 2815 if ac_fn_cxx_try_compile "$LINENO"; then : 2816 ac_hi=$ac_mid; break 2817 else 2818 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2819 if test $ac_lo -le $ac_mid; then 2820 ac_lo= ac_hi= 2821 break 2822 fi 2823 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2824 fi 2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2826 done 2827 else 2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2829 /* end confdefs.h. */ 2830 $4 2831 int 2832 main () 2833 { 2834 static int test_array [1 - 2 * !(($2) < 0)]; 2835 test_array [0] = 0; 2836 return test_array [0]; 2837 2838 ; 2839 return 0; 2840 } 2841 _ACEOF 2842 if ac_fn_cxx_try_compile "$LINENO"; then : 2843 ac_hi=-1 ac_mid=-1 2844 while :; do 2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2846 /* end confdefs.h. */ 2847 $4 2848 int 2849 main () 2850 { 2851 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2852 test_array [0] = 0; 2853 return test_array [0]; 2854 2855 ; 2856 return 0; 2857 } 2858 _ACEOF 2859 if ac_fn_cxx_try_compile "$LINENO"; then : 2860 ac_lo=$ac_mid; break 2861 else 2862 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2863 if test $ac_mid -le $ac_hi; then 2864 ac_lo= ac_hi= 2865 break 2866 fi 2867 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2868 fi 2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2870 done 2871 else 2872 ac_lo= ac_hi= 2873 fi 2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2875 fi 2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2877 # Binary search between lo and hi bounds. 2878 while test "x$ac_lo" != "x$ac_hi"; do 2879 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2881 /* end confdefs.h. */ 2882 $4 2883 int 2884 main () 2885 { 2886 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2887 test_array [0] = 0; 2888 return test_array [0]; 2889 2890 ; 2891 return 0; 2892 } 2893 _ACEOF 2894 if ac_fn_cxx_try_compile "$LINENO"; then : 2895 ac_hi=$ac_mid 2896 else 2897 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2898 fi 2899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2900 done 2901 case $ac_lo in #(( 2902 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2903 '') ac_retval=1 ;; 2904 esac 2905 else 2906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2907 /* end confdefs.h. */ 2908 $4 2909 static long int longval () { return $2; } 2910 static unsigned long int ulongval () { return $2; } 2911 #include <stdio.h> 2912 #include <stdlib.h> 2913 int 2914 main () 2915 { 2916 2917 FILE *f = fopen ("conftest.val", "w"); 2918 if (! f) 2919 return 1; 2920 if (($2) < 0) 2921 { 2922 long int i = longval (); 2923 if (i != ($2)) 2924 return 1; 2925 fprintf (f, "%ld", i); 2926 } 2927 else 2928 { 2929 unsigned long int i = ulongval (); 2930 if (i != ($2)) 2931 return 1; 2932 fprintf (f, "%lu", i); 2933 } 2934 /* Do not output a trailing newline, as this causes \r\n confusion 2935 on some platforms. */ 2936 return ferror (f) || fclose (f) != 0; 2937 2938 ; 2939 return 0; 2940 } 2941 _ACEOF 2942 if ac_fn_cxx_try_run "$LINENO"; then : 2943 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2944 else 2945 ac_retval=1 2946 fi 2947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2948 conftest.$ac_objext conftest.beam conftest.$ac_ext 2949 rm -f conftest.val 2950 2951 fi 2952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2953 as_fn_set_status $ac_retval 2954 2955 } # ac_fn_cxx_compute_int 2956 2957 # ac_fn_cxx_try_link LINENO 2958 # ------------------------- 2959 # Try to link conftest.$ac_ext, and return whether this succeeded. 2960 ac_fn_cxx_try_link () 2961 { 2962 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2963 rm -f conftest.$ac_objext conftest$ac_exeext 2964 if { { ac_try="$ac_link" 2965 case "(($ac_try" in 2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2967 *) ac_try_echo=$ac_try;; 2968 esac 2969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2970 $as_echo "$ac_try_echo"; } >&5 2971 (eval "$ac_link") 2>conftest.err 2972 ac_status=$? 2973 if test -s conftest.err; then 2974 grep -v '^ *+' conftest.err >conftest.er1 2975 cat conftest.er1 >&5 2976 mv -f conftest.er1 conftest.err 2977 fi 2978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2979 test $ac_status = 0; } && { 2980 test -z "$ac_cxx_werror_flag" || 2981 test ! -s conftest.err 2982 } && test -s conftest$ac_exeext && { 2983 test "$cross_compiling" = yes || 2984 test -x conftest$ac_exeext 2985 }; then : 2986 ac_retval=0 2987 else 2988 $as_echo "$as_me: failed program was:" >&5 2989 sed 's/^/| /' conftest.$ac_ext >&5 2990 2991 ac_retval=1 2992 fi 2993 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2994 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2995 # interfere with the next link command; also delete a directory that is 2996 # left behind by Apple's compiler. We do this before executing the actions. 2997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2999 as_fn_set_status $ac_retval 3000 3001 } # ac_fn_cxx_try_link 3002 3003 # ac_fn_cxx_check_func LINENO FUNC VAR 3004 # ------------------------------------ 3005 # Tests whether FUNC exists, setting the cache variable VAR accordingly 3006 ac_fn_cxx_check_func () 3007 { 3008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3010 $as_echo_n "checking for $2... " >&6; } 3011 if eval \${$3+:} false; then : 3012 $as_echo_n "(cached) " >&6 3013 else 3014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3015 /* end confdefs.h. */ 3016 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 3017 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 3018 #define $2 innocuous_$2 3019 3020 /* System header to define __stub macros and hopefully few prototypes, 3021 which can conflict with char $2 (); below. 3022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3023 <limits.h> exists even on freestanding compilers. */ 3024 3025 #ifdef __STDC__ 3026 # include <limits.h> 3027 #else 3028 # include <assert.h> 3029 #endif 3030 3031 #undef $2 3032 3033 /* Override any GCC internal prototype to avoid an error. 3034 Use char because int might match the return type of a GCC 3035 builtin and then its argument prototype would still apply. */ 3036 #ifdef __cplusplus 3037 extern "C" 3038 #endif 3039 char $2 (); 3040 /* The GNU C library defines this for functions which it implements 3041 to always fail with ENOSYS. Some functions are actually named 3042 something starting with __ and the normal name is an alias. */ 3043 #if defined __stub_$2 || defined __stub___$2 3044 choke me 3045 #endif 3046 3047 int 3048 main () 3049 { 3050 return $2 (); 3051 ; 3052 return 0; 3053 } 3054 _ACEOF 3055 if ac_fn_cxx_try_link "$LINENO"; then : 3056 eval "$3=yes" 3057 else 3058 eval "$3=no" 3059 fi 3060 rm -f core conftest.err conftest.$ac_objext \ 3061 conftest$ac_exeext conftest.$ac_ext 3062 fi 3063 eval ac_res=\$$3 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3065 $as_echo "$ac_res" >&6; } 3066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3067 3068 } # ac_fn_cxx_check_func 3069 3070 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3071 # ------------------------------------------------------- 3072 # Tests whether HEADER exists and can be compiled using the include files in 3073 # INCLUDES, setting the cache variable VAR accordingly. 3074 ac_fn_c_check_header_compile () 3075 { 3076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3078 $as_echo_n "checking for $2... " >&6; } 3079 if eval \${$3+:} false; then : 3080 $as_echo_n "(cached) " >&6 3081 else 3082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3083 /* end confdefs.h. */ 3084 $4 3085 #include <$2> 3086 _ACEOF 3087 if ac_fn_c_try_compile "$LINENO"; then : 3088 eval "$3=yes" 3089 else 3090 eval "$3=no" 3091 fi 3092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3093 fi 3094 eval ac_res=\$$3 3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3096 $as_echo "$ac_res" >&6; } 3097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3098 3099 } # ac_fn_c_check_header_compile 3100 cat >config.log <<_ACEOF 3101 This file contains any messages produced by compilers while 3102 running configure, to aid debugging if configure makes a mistake. 3103 3104 It was created by OpenJDK $as_me jdk9, which was 3105 generated by GNU Autoconf 2.69. Invocation command line was 3106 3107 $ $0 $@ 3108 3109 _ACEOF 3110 exec 5>>config.log 3111 { 3112 cat <<_ASUNAME 3113 ## --------- ## 3114 ## Platform. ## 3115 ## --------- ## 3116 3117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3118 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3119 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3120 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3121 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3122 3123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3125 3126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3133 3134 _ASUNAME 3135 3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3137 for as_dir in $PATH 3138 do 3139 IFS=$as_save_IFS 3140 test -z "$as_dir" && as_dir=. 3141 $as_echo "PATH: $as_dir" 3142 done 3143 IFS=$as_save_IFS 3144 3145 } >&5 3146 3147 cat >&5 <<_ACEOF 3148 3149 3150 ## ----------- ## 3151 ## Core tests. ## 3152 ## ----------- ## 3153 3154 _ACEOF 3155 3156 3157 # Keep a trace of the command line. 3158 # Strip out --no-create and --no-recursion so they do not pile up. 3159 # Strip out --silent because we don't want to record it for future runs. 3160 # Also quote any args containing shell meta-characters. 3161 # Make two passes to allow for proper duplicate-argument suppression. 3162 ac_configure_args= 3163 ac_configure_args0= 3164 ac_configure_args1= 3165 ac_must_keep_next=false 3166 for ac_pass in 1 2 3167 do 3168 for ac_arg 3169 do 3170 case $ac_arg in 3171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3173 | -silent | --silent | --silen | --sile | --sil) 3174 continue ;; 3175 *\'*) 3176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3177 esac 3178 case $ac_pass in 3179 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3180 2) 3181 as_fn_append ac_configure_args1 " '$ac_arg'" 3182 if test $ac_must_keep_next = true; then 3183 ac_must_keep_next=false # Got value, back to normal. 3184 else 3185 case $ac_arg in 3186 *=* | --config-cache | -C | -disable-* | --disable-* \ 3187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3189 | -with-* | --with-* | -without-* | --without-* | --x) 3190 case "$ac_configure_args0 " in 3191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3192 esac 3193 ;; 3194 -* ) ac_must_keep_next=true ;; 3195 esac 3196 fi 3197 as_fn_append ac_configure_args " '$ac_arg'" 3198 ;; 3199 esac 3200 done 3201 done 3202 { ac_configure_args0=; unset ac_configure_args0;} 3203 { ac_configure_args1=; unset ac_configure_args1;} 3204 3205 # When interrupted or exit'd, cleanup temporary files, and complete 3206 # config.log. We remove comments because anyway the quotes in there 3207 # would cause problems or look ugly. 3208 # WARNING: Use '\'' to represent an apostrophe within the trap. 3209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3210 trap 'exit_status=$? 3211 # Save into config.log some information that might help in debugging. 3212 { 3213 echo 3214 3215 $as_echo "## ---------------- ## 3216 ## Cache variables. ## 3217 ## ---------------- ##" 3218 echo 3219 # The following way of writing the cache mishandles newlines in values, 3220 ( 3221 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3222 eval ac_val=\$$ac_var 3223 case $ac_val in #( 3224 *${as_nl}*) 3225 case $ac_var in #( 3226 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3227 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3228 esac 3229 case $ac_var in #( 3230 _ | IFS | as_nl) ;; #( 3231 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3232 *) { eval $ac_var=; unset $ac_var;} ;; 3233 esac ;; 3234 esac 3235 done 3236 (set) 2>&1 | 3237 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3238 *${as_nl}ac_space=\ *) 3239 sed -n \ 3240 "s/'\''/'\''\\\\'\'''\''/g; 3241 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3242 ;; #( 3243 *) 3244 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3245 ;; 3246 esac | 3247 sort 3248 ) 3249 echo 3250 3251 $as_echo "## ----------------- ## 3252 ## Output variables. ## 3253 ## ----------------- ##" 3254 echo 3255 for ac_var in $ac_subst_vars 3256 do 3257 eval ac_val=\$$ac_var 3258 case $ac_val in 3259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3260 esac 3261 $as_echo "$ac_var='\''$ac_val'\''" 3262 done | sort 3263 echo 3264 3265 if test -n "$ac_subst_files"; then 3266 $as_echo "## ------------------- ## 3267 ## File substitutions. ## 3268 ## ------------------- ##" 3269 echo 3270 for ac_var in $ac_subst_files 3271 do 3272 eval ac_val=\$$ac_var 3273 case $ac_val in 3274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3275 esac 3276 $as_echo "$ac_var='\''$ac_val'\''" 3277 done | sort 3278 echo 3279 fi 3280 3281 if test -s confdefs.h; then 3282 $as_echo "## ----------- ## 3283 ## confdefs.h. ## 3284 ## ----------- ##" 3285 echo 3286 cat confdefs.h 3287 echo 3288 fi 3289 test "$ac_signal" != 0 && 3290 $as_echo "$as_me: caught signal $ac_signal" 3291 $as_echo "$as_me: exit $exit_status" 3292 } >&5 3293 rm -f core *.core core.conftest.* && 3294 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3295 exit $exit_status 3296 ' 0 3297 for ac_signal in 1 2 13 15; do 3298 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3299 done 3300 ac_signal=0 3301 3302 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3303 rm -f -r conftest* confdefs.h 3304 3305 $as_echo "/* confdefs.h */" > confdefs.h 3306 3307 # Predefined preprocessor variables. 3308 3309 cat >>confdefs.h <<_ACEOF 3310 #define PACKAGE_NAME "$PACKAGE_NAME" 3311 _ACEOF 3312 3313 cat >>confdefs.h <<_ACEOF 3314 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3315 _ACEOF 3316 3317 cat >>confdefs.h <<_ACEOF 3318 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3319 _ACEOF 3320 3321 cat >>confdefs.h <<_ACEOF 3322 #define PACKAGE_STRING "$PACKAGE_STRING" 3323 _ACEOF 3324 3325 cat >>confdefs.h <<_ACEOF 3326 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3327 _ACEOF 3328 3329 cat >>confdefs.h <<_ACEOF 3330 #define PACKAGE_URL "$PACKAGE_URL" 3331 _ACEOF 3332 3333 3334 # Let the site file select an alternate cache file if it wants to. 3335 # Prefer an explicitly selected file to automatically selected ones. 3336 ac_site_file1=NONE 3337 ac_site_file2=NONE 3338 if test -n "$CONFIG_SITE"; then 3339 # We do not want a PATH search for config.site. 3340 case $CONFIG_SITE in #(( 3341 -*) ac_site_file1=./$CONFIG_SITE;; 3342 */*) ac_site_file1=$CONFIG_SITE;; 3343 *) ac_site_file1=./$CONFIG_SITE;; 3344 esac 3345 elif test "x$prefix" != xNONE; then 3346 ac_site_file1=$prefix/share/config.site 3347 ac_site_file2=$prefix/etc/config.site 3348 else 3349 ac_site_file1=$ac_default_prefix/share/config.site 3350 ac_site_file2=$ac_default_prefix/etc/config.site 3351 fi 3352 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3353 do 3354 test "x$ac_site_file" = xNONE && continue 3355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3357 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3358 sed 's/^/| /' "$ac_site_file" >&5 3359 . "$ac_site_file" \ 3360 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3362 as_fn_error $? "failed to load site script $ac_site_file 3363 See \`config.log' for more details" "$LINENO" 5; } 3364 fi 3365 done 3366 3367 if test -r "$cache_file"; then 3368 # Some versions of bash will fail to source /dev/null (special files 3369 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3370 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3372 $as_echo "$as_me: loading cache $cache_file" >&6;} 3373 case $cache_file in 3374 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3375 *) . "./$cache_file";; 3376 esac 3377 fi 3378 else 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3380 $as_echo "$as_me: creating cache $cache_file" >&6;} 3381 >$cache_file 3382 fi 3383 3384 # Check that the precious variables saved in the cache have kept the same 3385 # value. 3386 ac_cache_corrupted=false 3387 for ac_var in $ac_precious_vars; do 3388 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3389 eval ac_new_set=\$ac_env_${ac_var}_set 3390 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3391 eval ac_new_val=\$ac_env_${ac_var}_value 3392 case $ac_old_set,$ac_new_set in 3393 set,) 3394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3395 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3396 ac_cache_corrupted=: ;; 3397 ,set) 3398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3399 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3400 ac_cache_corrupted=: ;; 3401 ,);; 3402 *) 3403 if test "x$ac_old_val" != "x$ac_new_val"; then 3404 # differences in whitespace do not lead to failure. 3405 ac_old_val_w=`echo x $ac_old_val` 3406 ac_new_val_w=`echo x $ac_new_val` 3407 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3409 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3410 ac_cache_corrupted=: 3411 else 3412 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3413 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3414 eval $ac_var=\$ac_old_val 3415 fi 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3417 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3419 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3420 fi;; 3421 esac 3422 # Pass precious variables to config.status. 3423 if test "$ac_new_set" = set; then 3424 case $ac_new_val in 3425 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3426 *) ac_arg=$ac_var=$ac_new_val ;; 3427 esac 3428 case " $ac_configure_args " in 3429 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3430 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3431 esac 3432 fi 3433 done 3434 if $ac_cache_corrupted; then 3435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3438 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3439 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3440 fi 3441 ## -------------------- ## 3442 ## Main body of script. ## 3443 ## -------------------- ## 3444 3445 ac_ext=c 3446 ac_cpp='$CPP $CPPFLAGS' 3447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3449 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3450 3451 3452 3453 ac_aux_dir= 3454 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do 3455 if test -f "$ac_dir/install-sh"; then 3456 ac_aux_dir=$ac_dir 3457 ac_install_sh="$ac_aux_dir/install-sh -c" 3458 break 3459 elif test -f "$ac_dir/install.sh"; then 3460 ac_aux_dir=$ac_dir 3461 ac_install_sh="$ac_aux_dir/install.sh -c" 3462 break 3463 elif test -f "$ac_dir/shtool"; then 3464 ac_aux_dir=$ac_dir 3465 ac_install_sh="$ac_aux_dir/shtool install -c" 3466 break 3467 fi 3468 done 3469 if test -z "$ac_aux_dir"; then 3470 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/make/autoconf/build-aux \"$srcdir\"/$TOPDIR/make/autoconf/build-aux" "$LINENO" 5 3471 fi 3472 3473 # These three variables are undocumented and unsupported, 3474 # and are intended to be withdrawn in a future Autoconf release. 3475 # They can cause serious problems if a builder's source tree is in a directory 3476 # whose full name contains unusual characters. 3477 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3478 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3479 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3480 3481 3482 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3483 3484 # 3485 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3486 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3487 # 3488 # This code is free software; you can redistribute it and/or modify it 3489 # under the terms of the GNU General Public License version 2 only, as 3490 # published by the Free Software Foundation. Oracle designates this 3491 # particular file as subject to the "Classpath" exception as provided 3492 # by Oracle in the LICENSE file that accompanied this code. 3493 # 3494 # This code is distributed in the hope that it will be useful, but WITHOUT 3495 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3496 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3497 # version 2 for more details (a copy is included in the LICENSE file that 3498 # accompanied this code). 3499 # 3500 # You should have received a copy of the GNU General Public License version 3501 # 2 along with this work; if not, write to the Free Software Foundation, 3502 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3503 # 3504 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3505 # or visit www.oracle.com if you need additional information or have any 3506 # questions. 3507 # 3508 3509 # 3510 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3511 # 3512 # This program is free software; you can redistribute it and/or modify 3513 # it under the terms of the GNU General Public License as published by 3514 # the Free Software Foundation; either version 2 of the License, or 3515 # (at your option) any later version. 3516 # 3517 # This program is distributed in the hope that it will be useful, but 3518 # WITHOUT ANY WARRANTY; without even the implied warranty of 3519 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3520 # General Public License for more details. 3521 # 3522 # You should have received a copy of the GNU General Public License 3523 # along with this program; if not, write to the Free Software 3524 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3525 # 3526 # As a special exception to the GNU General Public License, if you 3527 # distribute this file as part of a program that contains a 3528 # configuration script generated by Autoconf, you may include it under 3529 # the same distribution terms that you use for the rest of that program. 3530 3531 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3532 # ---------------------------------- 3533 # PKG_PROG_PKG_CONFIG 3534 3535 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3536 # 3537 # Check to see whether a particular set of modules exists. Similar 3538 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3539 # 3540 # 3541 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3542 # this or PKG_CHECK_MODULES is called, or make sure to call 3543 # PKG_CHECK_EXISTS manually 3544 # -------------------------------------------------------------- 3545 3546 3547 3548 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3549 # --------------------------------------------- 3550 # _PKG_CONFIG 3551 3552 # _PKG_SHORT_ERRORS_SUPPORTED 3553 # ----------------------------- 3554 # _PKG_SHORT_ERRORS_SUPPORTED 3555 3556 3557 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3558 # [ACTION-IF-NOT-FOUND]) 3559 # 3560 # 3561 # Note that if there is a possibility the first call to 3562 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3563 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3564 # 3565 # 3566 # -------------------------------------------------------------- 3567 # PKG_CHECK_MODULES 3568 3569 3570 # Include these first... 3571 # 3572 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3573 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3574 # 3575 # This code is free software; you can redistribute it and/or modify it 3576 # under the terms of the GNU General Public License version 2 only, as 3577 # published by the Free Software Foundation. Oracle designates this 3578 # particular file as subject to the "Classpath" exception as provided 3579 # by Oracle in the LICENSE file that accompanied this code. 3580 # 3581 # This code is distributed in the hope that it will be useful, but WITHOUT 3582 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3583 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3584 # version 2 for more details (a copy is included in the LICENSE file that 3585 # accompanied this code). 3586 # 3587 # You should have received a copy of the GNU General Public License version 3588 # 2 along with this work; if not, write to the Free Software Foundation, 3589 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3590 # 3591 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3592 # or visit www.oracle.com if you need additional information or have any 3593 # questions. 3594 # 3595 3596 # Create a function/macro that takes a series of named arguments. The call is 3597 # similar to AC_DEFUN, but the setup of the function looks like this: 3598 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3599 # ... do something 3600 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3601 # ]) 3602 # A star (*) in front of a named argument means that it is required and it's 3603 # presence will be verified. To pass e.g. the first value as a normal indexed 3604 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3605 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3606 # "ARG_FOO". 3607 # 3608 # The generated function can be called like this: 3609 # MYFUNC(FOO: [foo-val], 3610 # BAR: [ 3611 # $ECHO hello world 3612 # ]) 3613 # Note that the argument value must start on the same line as the argument name. 3614 # 3615 # Argument 1: Name of the function to define 3616 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3617 # Argument 3: Argument array to treat as named, typically $@ 3618 # Argument 4: The main function body 3619 3620 3621 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3622 # If so, then append $1 to $2 \ 3623 # Also set JVM_ARG_OK to true/false depending on outcome. 3624 3625 3626 # Appends a string to a path variable, only adding the : when needed. 3627 3628 3629 # Prepends a string to a path variable, only adding the : when needed. 3630 3631 3632 # This will make sure the given variable points to a full and proper 3633 # path. This means: 3634 # 1) There will be no spaces in the path. On unix platforms, 3635 # spaces in the path will result in an error. On Windows, 3636 # the path will be rewritten using short-style to be space-free. 3637 # 2) The path will be absolute, and it will be in unix-style (on 3638 # cygwin). 3639 # $1: The name of the variable to fix 3640 3641 3642 # This will make sure the given variable points to a executable 3643 # with a full and proper path. This means: 3644 # 1) There will be no spaces in the path. On unix platforms, 3645 # spaces in the path will result in an error. On Windows, 3646 # the path will be rewritten using short-style to be space-free. 3647 # 2) The path will be absolute, and it will be in unix-style (on 3648 # cygwin). 3649 # Any arguments given to the executable is preserved. 3650 # If the input variable does not have a directory specification, then 3651 # it need to be in the PATH. 3652 # $1: The name of the variable to fix 3653 3654 3655 3656 3657 # Register a --with argument but mark it as deprecated 3658 # $1: The name of the with argument to deprecate, not including --with- 3659 3660 3661 # Register a --enable argument but mark it as deprecated 3662 # $1: The name of the with argument to deprecate, not including --enable- 3663 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3664 # $3: Messages to user. 3665 3666 3667 3668 3669 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3670 # $1: variable to check 3671 3672 3673 # Check that there are no unprocessed overridden variables left. 3674 # If so, they are an incorrect argument and we will exit with an error. 3675 3676 3677 # Setup a tool for the given variable. If correctly specified by the user, 3678 # use that value, otherwise search for the tool using the supplied code snippet. 3679 # $1: variable to set 3680 # $2: code snippet to call to look for the tool 3681 # $3: code snippet to call if variable was used to find tool 3682 3683 3684 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3685 # $1: variable to set 3686 # $2: executable name (or list of names) to look for 3687 # $3: [path] 3688 3689 3690 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3691 # $1: variable to set 3692 # $2: executable name (or list of names) to look for 3693 3694 3695 # Like BASIC_PATH_PROGS but fails if no tool was found. 3696 # $1: variable to set 3697 # $2: executable name (or list of names) to look for 3698 # $3: [path] 3699 3700 3701 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3702 # $1: variable to set 3703 # $2: autoconf macro to call to look for the special tool 3704 3705 3706 # Setup the most fundamental tools that relies on not much else to set up, 3707 # but is used by much of the early bootstrap code. 3708 3709 3710 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3711 3712 3713 # Evaluates platform specific overrides for devkit variables. 3714 # $1: Name of variable 3715 3716 3717 3718 3719 3720 3721 #%%% Simple tools %%% 3722 3723 # Check if we have found a usable version of make 3724 # $1: the path to a potential make binary (or empty) 3725 # $2: the description on how we found this 3726 3727 3728 3729 3730 # Goes looking for a usable version of GNU make. 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 # Check if build directory is on local disk. If not possible to determine, 3742 # we prefer to claim it's local. 3743 # Argument 1: directory to test 3744 # Argument 2: what to do if it is on local disk 3745 # Argument 3: what to do otherwise (remote disk or failure) 3746 3747 3748 # Check that source files have basic read permissions set. This might 3749 # not be the case in cygwin in certain conditions. 3750 3751 3752 3753 3754 # Check for support for specific options in bash 3755 3756 3757 ################################################################################ 3758 # 3759 # Default make target 3760 # 3761 3762 3763 # Code to run after AC_OUTPUT 3764 3765 3766 # 3767 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3768 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3769 # 3770 # This code is free software; you can redistribute it and/or modify it 3771 # under the terms of the GNU General Public License version 2 only, as 3772 # published by the Free Software Foundation. Oracle designates this 3773 # particular file as subject to the "Classpath" exception as provided 3774 # by Oracle in the LICENSE file that accompanied this code. 3775 # 3776 # This code is distributed in the hope that it will be useful, but WITHOUT 3777 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3778 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3779 # version 2 for more details (a copy is included in the LICENSE file that 3780 # accompanied this code). 3781 # 3782 # You should have received a copy of the GNU General Public License version 3783 # 2 along with this work; if not, write to the Free Software Foundation, 3784 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3785 # 3786 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3787 # or visit www.oracle.com if you need additional information or have any 3788 # questions. 3789 # 3790 3791 3792 3793 3794 3795 # Helper function which possibly converts a path using DOS-style short mode. 3796 # If so, the updated path is stored in $new_path. 3797 # $1: The path to check 3798 3799 3800 # Helper function which possibly converts a path using DOS-style short mode. 3801 # If so, the updated path is stored in $new_path. 3802 # $1: The path to check 3803 3804 3805 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3806 # and could probably be heavily simplified. However, all changes in this 3807 # area tend to need lot of testing in different scenarios, and in lack of 3808 # proper unit testing, cleaning this up has not been deemed worth the effort 3809 # at the moment. 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3820 3821 3822 3823 3824 # ... then the rest 3825 # 3826 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3827 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3828 # 3829 # This code is free software; you can redistribute it and/or modify it 3830 # under the terms of the GNU General Public License version 2 only, as 3831 # published by the Free Software Foundation. Oracle designates this 3832 # particular file as subject to the "Classpath" exception as provided 3833 # by Oracle in the LICENSE file that accompanied this code. 3834 # 3835 # This code is distributed in the hope that it will be useful, but WITHOUT 3836 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3837 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3838 # version 2 for more details (a copy is included in the LICENSE file that 3839 # accompanied this code). 3840 # 3841 # You should have received a copy of the GNU General Public License version 3842 # 2 along with this work; if not, write to the Free Software Foundation, 3843 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3844 # 3845 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3846 # or visit www.oracle.com if you need additional information or have any 3847 # questions. 3848 # 3849 3850 ######################################################################## 3851 # This file handles detection of the Boot JDK. The Boot JDK detection 3852 # process has been developed as a response to solve a complex real-world 3853 # problem. Initially, it was simple, but it has grown as platform after 3854 # platform, idiosyncracy after idiosyncracy has been supported. 3855 # 3856 # The basic idea is this: 3857 # 1) You need an acceptable *) JDK to use as a Boot JDK 3858 # 2) There are several ways to locate a JDK, that are mostly platform 3859 # dependent **) 3860 # 3) You can have multiple JDKs installed 3861 # 4) If possible, configure should try to dig out an acceptable JDK 3862 # automatically, without having to resort to command-line options 3863 # 3864 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3865 # javac) and not a JRE, etc. 3866 # 3867 # **) On Windows we typically use a well-known path. 3868 # On MacOSX we typically use the tool java_home. 3869 # On Linux we typically find javac in the $PATH, and then follow a 3870 # chain of symlinks that often ends up in a real JDK. 3871 # 3872 # This leads to the code where we check in different ways to locate a 3873 # JDK, and if one is found, check if it is acceptable. If not, we print 3874 # our reasons for rejecting it (useful when debugging non-working 3875 # configure situations) and continue checking the next one. 3876 ######################################################################## 3877 3878 # Execute the check given as argument, and verify the result 3879 # If the Boot JDK was previously found, do nothing 3880 # $1 A command line (typically autoconf macro) to execute 3881 3882 3883 # Test: Is bootjdk explicitly set by command line arguments? 3884 3885 3886 # Test: Is $JAVA_HOME set? 3887 3888 3889 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3890 3891 3892 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3893 # $1: Argument to the java_home binary (optional) 3894 3895 3896 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3897 3898 3899 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3900 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3901 # $1 = Path to directory containing jdk installations. 3902 # $2 = String to append to the found JDK directory to get the proper JDK home 3903 3904 3905 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3906 # environmental variable as base for where to look. 3907 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3908 3909 3910 # Test: Is there a JDK installed in default, well-known locations? 3911 3912 3913 # Check that a command-line tool in the Boot JDK is correct 3914 # $1 = name of variable to assign 3915 # $2 = name of binary 3916 3917 3918 ############################################################################### 3919 # 3920 # We need a Boot JDK to bootstrap the build. 3921 # 3922 3923 3924 3925 3926 3927 # BUILD_JDK: the location of the latest JDK that can run 3928 # on the host system and supports the target class file version 3929 # generated in this JDK build. This variable should only be 3930 # used after the launchers are built. 3931 # 3932 3933 # Execute the check given as argument, and verify the result. 3934 # If the JDK was previously found, do nothing. 3935 # $1 A command line (typically autoconf macro) to execute 3936 3937 3938 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3939 # is different than the host system doing the build (e.g. cross-compilation), 3940 # a special BUILD_JDK is built as part of the build process. An external 3941 # prebuilt BUILD_JDK can also be supplied. 3942 3943 3944 # 3945 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3946 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3947 # 3948 # This code is free software; you can redistribute it and/or modify it 3949 # under the terms of the GNU General Public License version 2 only, as 3950 # published by the Free Software Foundation. Oracle designates this 3951 # particular file as subject to the "Classpath" exception as provided 3952 # by Oracle in the LICENSE file that accompanied this code. 3953 # 3954 # This code is distributed in the hope that it will be useful, but WITHOUT 3955 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3956 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3957 # version 2 for more details (a copy is included in the LICENSE file that 3958 # accompanied this code). 3959 # 3960 # You should have received a copy of the GNU General Public License version 3961 # 2 along with this work; if not, write to the Free Software Foundation, 3962 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3963 # 3964 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3965 # or visit www.oracle.com if you need additional information or have any 3966 # questions. 3967 # 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 ################################################################################ 3986 # 3987 # Runs icecc-create-env once and prints the error if it fails 3988 # 3989 # $1: arguments to icecc-create-env 3990 # $2: log file 3991 # 3992 3993 3994 ################################################################################ 3995 # 3996 # Optionally enable distributed compilation of native code using icecc/icecream 3997 # 3998 3999 4000 4001 4002 4003 4004 4005 # 4006 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4007 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4008 # 4009 # This code is free software; you can redistribute it and/or modify it 4010 # under the terms of the GNU General Public License version 2 only, as 4011 # published by the Free Software Foundation. Oracle designates this 4012 # particular file as subject to the "Classpath" exception as provided 4013 # by Oracle in the LICENSE file that accompanied this code. 4014 # 4015 # This code is distributed in the hope that it will be useful, but WITHOUT 4016 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4017 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4018 # version 2 for more details (a copy is included in the LICENSE file that 4019 # accompanied this code). 4020 # 4021 # You should have received a copy of the GNU General Public License version 4022 # 2 along with this work; if not, write to the Free Software Foundation, 4023 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4024 # 4025 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4026 # or visit www.oracle.com if you need additional information or have any 4027 # questions. 4028 # 4029 4030 ################################################################################ 4031 # 4032 # Setup ABI profile (for arm) 4033 # 4034 4035 4036 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4037 # corresponding configure arguments instead 4038 4039 4040 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4041 # that configure can use them while detecting compilers. 4042 # TOOLCHAIN_TYPE is available here. 4043 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4044 4045 4046 4047 4048 4049 4050 # Documentation on common flags used for solstudio in HIGHEST. 4051 # 4052 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4053 # done with care, there are some assumptions below that need to 4054 # be understood about the use of pointers, and IEEE behavior. 4055 # 4056 # -fns: Use non-standard floating point mode (not IEEE 754) 4057 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4058 # -fsingle: Use single precision floating point with 'float' 4059 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4060 # (Source with excessing pointer casting and data access with mixed 4061 # pointer types are not recommended) 4062 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4063 # (If you expect perfect errno behavior, do not use this) 4064 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4065 # -xrestrict: Pointer parameters to functions do not overlap 4066 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4067 # If you pass in multiple pointers to the same data, do not use this) 4068 # -xlibmil: Inline some library routines 4069 # (If you expect perfect errno behavior, do not use this) 4070 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4071 # (If you expect perfect errno behavior, do not use this) 4072 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4073 4074 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4075 # Bug? 4076 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4077 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4078 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4079 #fi 4080 4081 4082 4083 4084 4085 4086 ################################################################################ 4087 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4088 # conditionals against. 4089 # $2 - Optional prefix for each variable defined. 4090 4091 4092 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4093 # IF_FALSE: [RUN-IF-FALSE]) 4094 # ------------------------------------------------------------ 4095 # Check that the C compiler supports an argument 4096 4097 4098 4099 4100 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4101 # IF_FALSE: [RUN-IF-FALSE]) 4102 # ------------------------------------------------------------ 4103 # Check that the C++ compiler supports an argument 4104 4105 4106 4107 4108 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4109 # IF_FALSE: [RUN-IF-FALSE]) 4110 # ------------------------------------------------------------ 4111 # Check that the C and C++ compilers support an argument 4112 4113 4114 4115 4116 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4117 # IF_FALSE: [RUN-IF-FALSE]) 4118 # ------------------------------------------------------------ 4119 # Check that the linker support an argument 4120 4121 4122 4123 4124 4125 4126 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4127 # Arguments: 4128 # $1 - Optional prefix for each variable defined. 4129 4130 4131 # 4132 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4133 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4134 # 4135 # This code is free software; you can redistribute it and/or modify it 4136 # under the terms of the GNU General Public License version 2 only, as 4137 # published by the Free Software Foundation. Oracle designates this 4138 # particular file as subject to the "Classpath" exception as provided 4139 # by Oracle in the LICENSE file that accompanied this code. 4140 # 4141 # This code is distributed in the hope that it will be useful, but WITHOUT 4142 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4143 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4144 # version 2 for more details (a copy is included in the LICENSE file that 4145 # accompanied this code). 4146 # 4147 # You should have received a copy of the GNU General Public License version 4148 # 2 along with this work; if not, write to the Free Software Foundation, 4149 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4150 # 4151 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4152 # or visit www.oracle.com if you need additional information or have any 4153 # questions. 4154 # 4155 4156 4157 4158 4159 4160 cygwin_help() { 4161 case $1 in 4162 unzip) 4163 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4164 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4165 ;; 4166 zip) 4167 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4168 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4169 ;; 4170 make) 4171 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4172 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4173 ;; 4174 freetype) 4175 HELP_MSG=" 4176 The freetype library can now be build during the configure process. 4177 Download the freetype sources and unpack them into an arbitrary directory: 4178 4179 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4180 tar -xzf freetype-2.5.3.tar.gz 4181 4182 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4183 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4184 builds or into '<freetype_src>/lib32' for 32-bit builds. 4185 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4186 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4187 4188 Alternatively you can unpack the sources like this to use the default directory: 4189 4190 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4191 ;; 4192 esac 4193 } 4194 4195 msys_help() { 4196 PKGHANDLER_COMMAND="" 4197 } 4198 4199 apt_help() { 4200 case $1 in 4201 reduced) 4202 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4203 devkit) 4204 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4205 openjdk) 4206 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4207 alsa) 4208 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4209 cups) 4210 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4211 fontconfig) 4212 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 4213 freetype) 4214 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4215 ffi) 4216 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4217 x11) 4218 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4219 ccache) 4220 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4221 dtrace) 4222 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4223 esac 4224 } 4225 4226 yum_help() { 4227 case $1 in 4228 devkit) 4229 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4230 openjdk) 4231 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4232 alsa) 4233 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4234 cups) 4235 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4236 fontconfig) 4237 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 4238 freetype) 4239 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4240 x11) 4241 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4242 ccache) 4243 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4244 esac 4245 } 4246 4247 brew_help() { 4248 case $1 in 4249 openjdk) 4250 PKGHANDLER_COMMAND="brew cask install java" ;; 4251 freetype) 4252 PKGHANDLER_COMMAND="brew install freetype" ;; 4253 ccache) 4254 PKGHANDLER_COMMAND="brew install ccache" ;; 4255 esac 4256 } 4257 4258 port_help() { 4259 PKGHANDLER_COMMAND="" 4260 } 4261 4262 pkgutil_help() { 4263 PKGHANDLER_COMMAND="" 4264 } 4265 4266 pkgadd_help() { 4267 PKGHANDLER_COMMAND="" 4268 } 4269 4270 # This function will check if we're called from the "configure" wrapper while 4271 # printing --help. If so, we will print out additional information that can 4272 # only be extracted within the autoconf script, and then exit. This must be 4273 # called at the very beginning in configure.ac. 4274 4275 4276 4277 4278 4279 4280 # 4281 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4282 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4283 # 4284 # This code is free software; you can redistribute it and/or modify it 4285 # under the terms of the GNU General Public License version 2 only, as 4286 # published by the Free Software Foundation. Oracle designates this 4287 # particular file as subject to the "Classpath" exception as provided 4288 # by Oracle in the LICENSE file that accompanied this code. 4289 # 4290 # This code is distributed in the hope that it will be useful, but WITHOUT 4291 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4292 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4293 # version 2 for more details (a copy is included in the LICENSE file that 4294 # accompanied this code). 4295 # 4296 # You should have received a copy of the GNU General Public License version 4297 # 2 along with this work; if not, write to the Free Software Foundation, 4298 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4299 # 4300 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4301 # or visit www.oracle.com if you need additional information or have any 4302 # questions. 4303 # 4304 4305 # All valid JVM features, regardless of platform 4306 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \ 4307 graal vm-structs jni-check services management all-gcs nmt cds \ 4308 static-build link-time-opt aot" 4309 4310 # All valid JVM variants 4311 VALID_JVM_VARIANTS="server client minimal core zero custom" 4312 4313 ############################################################################### 4314 # Check if the specified JVM variant should be built. To be used in shell if 4315 # constructs, like this: 4316 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4317 # 4318 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4319 4320 # Definition kept in one line to allow inlining in if statements. 4321 # Additional [] needed to keep m4 from mangling shell constructs. 4322 4323 4324 ############################################################################### 4325 # Check if the specified JVM features are explicitly enabled. To be used in 4326 # shell if constructs, like this: 4327 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4328 # 4329 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4330 4331 # Definition kept in one line to allow inlining in if statements. 4332 # Additional [] needed to keep m4 from mangling shell constructs. 4333 4334 4335 ############################################################################### 4336 # Check which variants of the JVM that we want to build. Available variants are: 4337 # server: normal interpreter, and a tiered C1/C2 compiler 4338 # client: normal interpreter, and C1 (no C2 compiler) 4339 # minimal: reduced form of client with optional features stripped out 4340 # core: normal interpreter only, no compiler 4341 # zero: C++ based interpreter only, no compiler 4342 # custom: baseline JVM with no default features 4343 # 4344 4345 4346 ############################################################################### 4347 # Check if dtrace should be enabled and has all prerequisites present. 4348 # 4349 4350 4351 ################################################################################ 4352 # Check if AOT should be enabled 4353 # 4354 4355 4356 ################################################################################ 4357 # Allow to disable CDS 4358 # 4359 4360 4361 ############################################################################### 4362 # Set up all JVM features for each JVM variant. 4363 # 4364 4365 4366 ############################################################################### 4367 # Validate JVM features once all setup is complete, including custom setup. 4368 # 4369 4370 4371 ################################################################################ 4372 # 4373 # Specify which sources will be used to build the 64-bit ARM port 4374 # 4375 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4376 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4377 # 4378 4379 4380 4381 ################################################################################ 4382 # Check if gtest should be built 4383 # 4384 4385 4386 # 4387 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4388 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4389 # 4390 # This code is free software; you can redistribute it and/or modify it 4391 # under the terms of the GNU General Public License version 2 only, as 4392 # published by the Free Software Foundation. Oracle designates this 4393 # particular file as subject to the "Classpath" exception as provided 4394 # by Oracle in the LICENSE file that accompanied this code. 4395 # 4396 # This code is distributed in the hope that it will be useful, but WITHOUT 4397 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4398 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4399 # version 2 for more details (a copy is included in the LICENSE file that 4400 # accompanied this code). 4401 # 4402 # You should have received a copy of the GNU General Public License version 4403 # 2 along with this work; if not, write to the Free Software Foundation, 4404 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4405 # 4406 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4407 # or visit www.oracle.com if you need additional information or have any 4408 # questions. 4409 # 4410 4411 ############################################################################### 4412 # Check which variant of the JDK that we want to build. 4413 # Currently we have: 4414 # normal: standard edition 4415 # but the custom make system may add other variants 4416 # 4417 # Effectively the JDK variant gives a name to a specific set of 4418 # modules to compile into the JDK. 4419 4420 4421 ############################################################################### 4422 # Set the debug level 4423 # release: no debug information, all optimizations, no asserts. 4424 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4425 # fastdebug: debug information (-g), all optimizations, all asserts 4426 # slowdebug: debug information (-g), no optimizations, all asserts 4427 4428 4429 ############################################################################### 4430 # 4431 # Should we build only OpenJDK even if closed sources are present? 4432 # 4433 4434 4435 4436 4437 ############################################################################### 4438 # 4439 # Enable or disable the elliptic curve crypto implementation 4440 # 4441 4442 4443 4444 4445 ################################################################################ 4446 # 4447 # Gcov coverage data for hotspot 4448 # 4449 4450 4451 ############################################################################### 4452 # 4453 # AddressSanitizer 4454 # 4455 4456 4457 ################################################################################ 4458 # 4459 # Static build support. When enabled will generate static 4460 # libraries instead of shared libraries for all JDK libs. 4461 # 4462 4463 4464 ################################################################################ 4465 # 4466 # jlink options. 4467 # We always keep packaged modules in JDK image. 4468 # 4469 4470 4471 ################################################################################ 4472 # 4473 # Check if building of the jtreg failure handler should be enabled. 4474 # 4475 4476 4477 ################################################################################ 4478 # 4479 # Enable or disable generation of the classlist at build time 4480 # 4481 4482 4483 # 4484 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. 4485 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4486 # 4487 # This code is free software; you can redistribute it and/or modify it 4488 # under the terms of the GNU General Public License version 2 only, as 4489 # published by the Free Software Foundation. Oracle designates this 4490 # particular file as subject to the "Classpath" exception as provided 4491 # by Oracle in the LICENSE file that accompanied this code. 4492 # 4493 # This code is distributed in the hope that it will be useful, but WITHOUT 4494 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4495 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4496 # version 2 for more details (a copy is included in the LICENSE file that 4497 # accompanied this code). 4498 # 4499 # You should have received a copy of the GNU General Public License version 4500 # 2 along with this work; if not, write to the Free Software Foundation, 4501 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4502 # 4503 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4504 # or visit www.oracle.com if you need additional information or have any 4505 # questions. 4506 # 4507 4508 ############################################################################### 4509 # 4510 # Setup version numbers 4511 # 4512 4513 # Verify that a given string represents a valid version number, and assign it 4514 # to a variable. 4515 4516 # Argument 1: the variable to assign to 4517 # Argument 2: the value given by the user 4518 4519 4520 4521 4522 # 4523 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4524 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4525 # 4526 # This code is free software; you can redistribute it and/or modify it 4527 # under the terms of the GNU General Public License version 2 only, as 4528 # published by the Free Software Foundation. Oracle designates this 4529 # particular file as subject to the "Classpath" exception as provided 4530 # by Oracle in the LICENSE file that accompanied this code. 4531 # 4532 # This code is distributed in the hope that it will be useful, but WITHOUT 4533 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4534 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4535 # version 2 for more details (a copy is included in the LICENSE file that 4536 # accompanied this code). 4537 # 4538 # You should have received a copy of the GNU General Public License version 4539 # 2 along with this work; if not, write to the Free Software Foundation, 4540 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4541 # 4542 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4543 # or visit www.oracle.com if you need additional information or have any 4544 # questions. 4545 # 4546 4547 # Major library component reside in separate files. 4548 # 4549 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4550 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4551 # 4552 # This code is free software; you can redistribute it and/or modify it 4553 # under the terms of the GNU General Public License version 2 only, as 4554 # published by the Free Software Foundation. Oracle designates this 4555 # particular file as subject to the "Classpath" exception as provided 4556 # by Oracle in the LICENSE file that accompanied this code. 4557 # 4558 # This code is distributed in the hope that it will be useful, but WITHOUT 4559 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4560 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4561 # version 2 for more details (a copy is included in the LICENSE file that 4562 # accompanied this code). 4563 # 4564 # You should have received a copy of the GNU General Public License version 4565 # 2 along with this work; if not, write to the Free Software Foundation, 4566 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4567 # 4568 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4569 # or visit www.oracle.com if you need additional information or have any 4570 # questions. 4571 # 4572 4573 ################################################################################ 4574 # Setup alsa (Advanced Linux Sound Architecture) 4575 ################################################################################ 4576 4577 4578 # 4579 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4580 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4581 # 4582 # This code is free software; you can redistribute it and/or modify it 4583 # under the terms of the GNU General Public License version 2 only, as 4584 # published by the Free Software Foundation. Oracle designates this 4585 # particular file as subject to the "Classpath" exception as provided 4586 # by Oracle in the LICENSE file that accompanied this code. 4587 # 4588 # This code is distributed in the hope that it will be useful, but WITHOUT 4589 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4590 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4591 # version 2 for more details (a copy is included in the LICENSE file that 4592 # accompanied this code). 4593 # 4594 # You should have received a copy of the GNU General Public License version 4595 # 2 along with this work; if not, write to the Free Software Foundation, 4596 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4597 # 4598 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4599 # or visit www.oracle.com if you need additional information or have any 4600 # questions. 4601 # 4602 4603 ################################################################################ 4604 # Setup bundled libraries. 4605 # 4606 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4607 # OpenJDK repository. Default is to use these libraries as bundled, but they 4608 # might be replaced by en external version by the user. 4609 ################################################################################ 4610 4611 4612 ################################################################################ 4613 # Setup libjpeg 4614 ################################################################################ 4615 4616 4617 ################################################################################ 4618 # Setup giflib 4619 ################################################################################ 4620 4621 4622 ################################################################################ 4623 # Setup libpng 4624 ################################################################################ 4625 4626 4627 ################################################################################ 4628 # Setup zlib 4629 ################################################################################ 4630 4631 4632 ################################################################################ 4633 # Setup lcms (Little CMS) 4634 ################################################################################ 4635 4636 4637 # 4638 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4639 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4640 # 4641 # This code is free software; you can redistribute it and/or modify it 4642 # under the terms of the GNU General Public License version 2 only, as 4643 # published by the Free Software Foundation. Oracle designates this 4644 # particular file as subject to the "Classpath" exception as provided 4645 # by Oracle in the LICENSE file that accompanied this code. 4646 # 4647 # This code is distributed in the hope that it will be useful, but WITHOUT 4648 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4649 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4650 # version 2 for more details (a copy is included in the LICENSE file that 4651 # accompanied this code). 4652 # 4653 # You should have received a copy of the GNU General Public License version 4654 # 2 along with this work; if not, write to the Free Software Foundation, 4655 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4656 # 4657 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4658 # or visit www.oracle.com if you need additional information or have any 4659 # questions. 4660 # 4661 4662 ################################################################################ 4663 # Setup cups (Common Unix Printing System) 4664 ################################################################################ 4665 4666 4667 # 4668 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4669 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4670 # 4671 # This code is free software; you can redistribute it and/or modify it 4672 # under the terms of the GNU General Public License version 2 only, as 4673 # published by the Free Software Foundation. Oracle designates this 4674 # particular file as subject to the "Classpath" exception as provided 4675 # by Oracle in the LICENSE file that accompanied this code. 4676 # 4677 # This code is distributed in the hope that it will be useful, but WITHOUT 4678 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4679 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4680 # version 2 for more details (a copy is included in the LICENSE file that 4681 # accompanied this code). 4682 # 4683 # You should have received a copy of the GNU General Public License version 4684 # 2 along with this work; if not, write to the Free Software Foundation, 4685 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4686 # 4687 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4688 # or visit www.oracle.com if you need additional information or have any 4689 # questions. 4690 # 4691 4692 ################################################################################ 4693 # Setup libffi (Foreign Function Interface) 4694 ################################################################################ 4695 4696 4697 # 4698 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4699 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4700 # 4701 # This code is free software; you can redistribute it and/or modify it 4702 # under the terms of the GNU General Public License version 2 only, as 4703 # published by the Free Software Foundation. Oracle designates this 4704 # particular file as subject to the "Classpath" exception as provided 4705 # by Oracle in the LICENSE file that accompanied this code. 4706 # 4707 # This code is distributed in the hope that it will be useful, but WITHOUT 4708 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4709 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4710 # version 2 for more details (a copy is included in the LICENSE file that 4711 # accompanied this code). 4712 # 4713 # You should have received a copy of the GNU General Public License version 4714 # 2 along with this work; if not, write to the Free Software Foundation, 4715 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4716 # 4717 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4718 # or visit www.oracle.com if you need additional information or have any 4719 # questions. 4720 # 4721 4722 ################################################################################ 4723 # Build the freetype lib from source 4724 ################################################################################ 4725 4726 4727 ################################################################################ 4728 # Check if a potential freeype library match is correct and usable 4729 ################################################################################ 4730 4731 4732 ################################################################################ 4733 # Setup freetype (The FreeType2 font rendering library) 4734 ################################################################################ 4735 4736 4737 # 4738 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4739 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4740 # 4741 # This code is free software; you can redistribute it and/or modify it 4742 # under the terms of the GNU General Public License version 2 only, as 4743 # published by the Free Software Foundation. Oracle designates this 4744 # particular file as subject to the "Classpath" exception as provided 4745 # by Oracle in the LICENSE file that accompanied this code. 4746 # 4747 # This code is distributed in the hope that it will be useful, but WITHOUT 4748 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4749 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4750 # version 2 for more details (a copy is included in the LICENSE file that 4751 # accompanied this code). 4752 # 4753 # You should have received a copy of the GNU General Public License version 4754 # 2 along with this work; if not, write to the Free Software Foundation, 4755 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4756 # 4757 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4758 # or visit www.oracle.com if you need additional information or have any 4759 # questions. 4760 # 4761 4762 ################################################################################ 4763 # Setup the standard C/C++ runtime libraries. 4764 # 4765 # Most importantly, determine if stdc++ should be linked statically or 4766 # dynamically. 4767 ################################################################################ 4768 4769 4770 # 4771 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4772 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4773 # 4774 # This code is free software; you can redistribute it and/or modify it 4775 # under the terms of the GNU General Public License version 2 only, as 4776 # published by the Free Software Foundation. Oracle designates this 4777 # particular file as subject to the "Classpath" exception as provided 4778 # by Oracle in the LICENSE file that accompanied this code. 4779 # 4780 # This code is distributed in the hope that it will be useful, but WITHOUT 4781 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4782 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4783 # version 2 for more details (a copy is included in the LICENSE file that 4784 # accompanied this code). 4785 # 4786 # You should have received a copy of the GNU General Public License version 4787 # 2 along with this work; if not, write to the Free Software Foundation, 4788 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4789 # 4790 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4791 # or visit www.oracle.com if you need additional information or have any 4792 # questions. 4793 # 4794 4795 ################################################################################ 4796 # Setup X11 Windows system 4797 ################################################################################ 4798 4799 4800 # 4801 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 4802 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4803 # 4804 # This code is free software; you can redistribute it and/or modify it 4805 # under the terms of the GNU General Public License version 2 only, as 4806 # published by the Free Software Foundation. Oracle designates this 4807 # particular file as subject to the "Classpath" exception as provided 4808 # by Oracle in the LICENSE file that accompanied this code. 4809 # 4810 # This code is distributed in the hope that it will be useful, but WITHOUT 4811 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4812 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4813 # version 2 for more details (a copy is included in the LICENSE file that 4814 # accompanied this code). 4815 # 4816 # You should have received a copy of the GNU General Public License version 4817 # 2 along with this work; if not, write to the Free Software Foundation, 4818 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4819 # 4820 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4821 # or visit www.oracle.com if you need additional information or have any 4822 # questions. 4823 # 4824 4825 ################################################################################ 4826 # Setup fontconfig 4827 ################################################################################ 4828 4829 4830 4831 ################################################################################ 4832 # Determine which libraries are needed for this configuration 4833 ################################################################################ 4834 4835 4836 ################################################################################ 4837 # Parse library options, and setup needed libraries 4838 ################################################################################ 4839 4840 4841 ################################################################################ 4842 # Setup various libraries, typically small system libraries 4843 ################################################################################ 4844 4845 4846 ################################################################################ 4847 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4848 # redistribute it in the test image. 4849 ################################################################################ 4850 4851 4852 4853 # 4854 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4855 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4856 # 4857 # This code is free software; you can redistribute it and/or modify it 4858 # under the terms of the GNU General Public License version 2 only, as 4859 # published by the Free Software Foundation. Oracle designates this 4860 # particular file as subject to the "Classpath" exception as provided 4861 # by Oracle in the LICENSE file that accompanied this code. 4862 # 4863 # This code is distributed in the hope that it will be useful, but WITHOUT 4864 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4865 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4866 # version 2 for more details (a copy is included in the LICENSE file that 4867 # accompanied this code). 4868 # 4869 # You should have received a copy of the GNU General Public License version 4870 # 2 along with this work; if not, write to the Free Software Foundation, 4871 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4872 # 4873 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4874 # or visit www.oracle.com if you need additional information or have any 4875 # questions. 4876 # 4877 4878 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4879 # Converts autoconf style CPU name to OpenJDK style, into 4880 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4881 4882 4883 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4884 # Converts autoconf style OS name to OpenJDK style, into 4885 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4886 4887 4888 # Expects $host_os $host_cpu $build_os and $build_cpu 4889 # and $with_target_bits to have been setup! 4890 # 4891 # Translate the standard triplet(quadruplet) definition 4892 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4893 # OPENJDK_BUILD_OS, etc. 4894 4895 4896 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4897 # accordingly. Must be done after setting up build and target system, but before 4898 # doing anything else with these values. 4899 4900 4901 # Setup the legacy variables, for controlling the old makefiles. 4902 # 4903 4904 4905 # $1 - Either TARGET or BUILD to setup the variables for. 4906 4907 4908 4909 4910 4911 4912 #%%% Build and target systems %%% 4913 4914 4915 4916 4917 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4918 # Add -mX to various FLAGS variables. 4919 4920 4921 4922 4923 4924 4925 # 4926 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4927 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4928 # 4929 # This code is free software; you can redistribute it and/or modify it 4930 # under the terms of the GNU General Public License version 2 only, as 4931 # published by the Free Software Foundation. Oracle designates this 4932 # particular file as subject to the "Classpath" exception as provided 4933 # by Oracle in the LICENSE file that accompanied this code. 4934 # 4935 # This code is distributed in the hope that it will be useful, but WITHOUT 4936 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4937 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4938 # version 2 for more details (a copy is included in the LICENSE file that 4939 # accompanied this code). 4940 # 4941 # You should have received a copy of the GNU General Public License version 4942 # 2 along with this work; if not, write to the Free Software Foundation, 4943 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4944 # 4945 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4946 # or visit www.oracle.com if you need additional information or have any 4947 # questions. 4948 # 4949 4950 4951 4952 ################################################################################ 4953 # Define a mechanism for importing extra prebuilt modules 4954 # 4955 4956 4957 4958 # 4959 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4960 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4961 # 4962 # This code is free software; you can redistribute it and/or modify it 4963 # under the terms of the GNU General Public License version 2 only, as 4964 # published by the Free Software Foundation. Oracle designates this 4965 # particular file as subject to the "Classpath" exception as provided 4966 # by Oracle in the LICENSE file that accompanied this code. 4967 # 4968 # This code is distributed in the hope that it will be useful, but WITHOUT 4969 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4970 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4971 # version 2 for more details (a copy is included in the LICENSE file that 4972 # accompanied this code). 4973 # 4974 # You should have received a copy of the GNU General Public License version 4975 # 2 along with this work; if not, write to the Free Software Foundation, 4976 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4977 # 4978 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4979 # or visit www.oracle.com if you need additional information or have any 4980 # questions. 4981 # 4982 4983 ######################################################################## 4984 # This file is responsible for detecting, verifying and setting up the 4985 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4986 # proper paths to the binaries, but it will not setup any flags. 4987 # 4988 # The binaries used is determined by the toolchain type, which is the family of 4989 # compilers and related tools that are used. 4990 ######################################################################## 4991 4992 4993 # All valid toolchains, regardless of platform (used by help.m4) 4994 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4995 4996 # These toolchains are valid on different platforms 4997 VALID_TOOLCHAINS_linux="gcc clang" 4998 VALID_TOOLCHAINS_solaris="solstudio" 4999 VALID_TOOLCHAINS_macosx="gcc clang" 5000 VALID_TOOLCHAINS_aix="xlc" 5001 VALID_TOOLCHAINS_windows="microsoft" 5002 5003 # Toolchain descriptions 5004 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 5005 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 5006 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 5007 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 5008 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 5009 5010 # Minimum supported versions, empty means unspecified 5011 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 5012 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 5013 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 5014 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 5015 TOOLCHAIN_MINIMUM_VERSION_xlc="" 5016 5017 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 5018 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 5019 # $1 - optional variable prefix for compiler and version variables (BUILD_) 5020 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 5021 5022 5023 # Check if the configured compiler (C and C++) is of a specific version or 5024 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 5025 # 5026 # Arguments: 5027 # VERSION: The version string to check against the found version 5028 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 5029 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 5030 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 5031 5032 5033 5034 5035 # Setup a number of variables describing how native output files are 5036 # named on this platform/toolchain. 5037 5038 5039 # Determine which toolchain type to use, and make sure it is valid for this 5040 # platform. Setup various information about the selected toolchain. 5041 5042 5043 # Before we start detecting the toolchain executables, we might need some 5044 # special setup, e.g. additional paths etc. 5045 5046 5047 # Restore path, etc 5048 5049 5050 # Check if a compiler is of the toolchain type we expect, and save the version 5051 # information from it. If the compiler does not match the expected type, 5052 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5053 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5054 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5055 # 5056 # $1 = compiler to test (CC or CXX) 5057 # $2 = human readable name of compiler (C or C++) 5058 5059 5060 # Try to locate the given C or C++ compiler in the path, or otherwise. 5061 # 5062 # $1 = compiler to test (CC or CXX) 5063 # $2 = human readable name of compiler (C or C++) 5064 # $3 = compiler name to search for 5065 5066 5067 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5068 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5069 # archiver (AR). Verify that the compilers are correct according to the 5070 # toolchain type. 5071 5072 5073 # Setup additional tools that is considered a part of the toolchain, but not the 5074 # core part. Many of these are highly platform-specific and do not exist, 5075 # and/or are not needed on all platforms. 5076 5077 5078 # Setup the build tools (i.e, the compiler and linker used to build programs 5079 # that should be run on the build platform, not the target platform, as a build 5080 # helper). Since the non-cross-compile case uses the normal, target compilers 5081 # for this, we can only do this after these have been setup. 5082 5083 5084 # Do some additional checks on the detected tools. 5085 5086 5087 # Setup the JTReg Regression Test Harness. 5088 5089 5090 # Setup the JIB dependency resolver 5091 5092 5093 # 5094 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5095 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5096 # 5097 # This code is free software; you can redistribute it and/or modify it 5098 # under the terms of the GNU General Public License version 2 only, as 5099 # published by the Free Software Foundation. Oracle designates this 5100 # particular file as subject to the "Classpath" exception as provided 5101 # by Oracle in the LICENSE file that accompanied this code. 5102 # 5103 # This code is distributed in the hope that it will be useful, but WITHOUT 5104 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5105 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5106 # version 2 for more details (a copy is included in the LICENSE file that 5107 # accompanied this code). 5108 # 5109 # You should have received a copy of the GNU General Public License version 5110 # 2 along with this work; if not, write to the Free Software Foundation, 5111 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5112 # 5113 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5114 # or visit www.oracle.com if you need additional information or have any 5115 # questions. 5116 # 5117 5118 ################################################################################ 5119 # The order of these defines the priority by which we try to find them. 5120 VALID_VS_VERSIONS="2013 2012 2010" 5121 5122 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5123 VS_VERSION_INTERNAL_2010=100 5124 VS_MSVCR_2010=msvcr100.dll 5125 # We don't use msvcp on Visual Studio 2010 5126 #VS_MSVCP_2010=msvcp100.dll 5127 VS_ENVVAR_2010="VS100COMNTOOLS" 5128 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5129 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5130 VS_VS_PLATFORM_NAME_2010="v100" 5131 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5132 5133 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5134 VS_VERSION_INTERNAL_2012=110 5135 VS_MSVCR_2012=msvcr110.dll 5136 VS_MSVCP_2012=msvcp110.dll 5137 VS_ENVVAR_2012="VS110COMNTOOLS" 5138 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5139 VS_SDK_INSTALLDIR_2012= 5140 VS_VS_PLATFORM_NAME_2012="v110" 5141 VS_SDK_PLATFORM_NAME_2012= 5142 5143 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5144 VS_VERSION_INTERNAL_2013=120 5145 VS_MSVCR_2013=msvcr120.dll 5146 VS_MSVCP_2013=msvcp120.dll 5147 VS_ENVVAR_2013="VS120COMNTOOLS" 5148 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5149 VS_SDK_INSTALLDIR_2013= 5150 VS_VS_PLATFORM_NAME_2013="v120" 5151 VS_SDK_PLATFORM_NAME_2013= 5152 5153 ################################################################################ 5154 5155 5156 5157 ################################################################################ 5158 5159 5160 5161 ################################################################################ 5162 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5163 # build environment and assigns it to VS_ENV_CMD 5164 5165 5166 ################################################################################ 5167 5168 5169 5170 ################################################################################ 5171 # Check if the VS env variables were setup prior to running configure. 5172 # If not, then find vcvarsall.bat and run it automatically, and integrate 5173 # the set env variables into the spec file. 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 # This line needs to be here, verbatim, after all includes and the dummy hook 5189 # definitions. It is replaced with custom functionality when building 5190 # custom sources. 5191 #CUSTOM_AUTOCONF_INCLUDE 5192 5193 # Do not change or remove the following line, it is needed for consistency checks: 5194 DATE_WHEN_GENERATED=1516891599 5195 5196 ############################################################################### 5197 # 5198 # Initialization / Boot-strapping 5199 # 5200 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5201 # thus it jumps back and forth, each time gaining something needed later on. 5202 # 5203 ############################################################################### 5204 5205 # If we are requested to print additional help, do that and then exit. 5206 # This must be the very first call. 5207 5208 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5209 5210 # Print available toolchains 5211 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5212 $PRINTF "Which are valid to use depends on the build platform.\n" 5213 for toolchain in $VALID_TOOLCHAINS_all; do 5214 # Use indirect variable referencing 5215 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5216 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5217 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5218 done 5219 $PRINTF "\n" 5220 5221 # Print available jvm features 5222 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5223 $PRINTF "Which are valid to use depends on the target platform.\n " 5224 $PRINTF "%s " $VALID_JVM_FEATURES 5225 $PRINTF "\n" 5226 5227 # And now exit directly 5228 exit 0 5229 fi 5230 5231 5232 # Basic initialization that must happen first of all in the normal process. 5233 5234 # Save the original command line. This is passed to us by the wrapper configure script. 5235 5236 # Save the path variable before it gets changed 5237 ORIGINAL_PATH="$PATH" 5238 5239 DATE_WHEN_CONFIGURED=`LANG=C date` 5240 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5242 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5244 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5245 5246 5247 # Start with tools that do not need have cross compilation support 5248 # and can be expected to be found in the default PATH. These tools are 5249 # used by configure. 5250 5251 # First are all the simple required tools. 5252 5253 5254 5255 # Publish this variable in the help. 5256 5257 5258 if [ -z "${BASENAME+x}" ]; then 5259 # The variable is not set by user, try to locate tool using the code snippet 5260 for ac_prog in basename 5261 do 5262 # Extract the first word of "$ac_prog", so it can be a program name with args. 5263 set dummy $ac_prog; ac_word=$2 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5265 $as_echo_n "checking for $ac_word... " >&6; } 5266 if ${ac_cv_path_BASENAME+:} false; then : 5267 $as_echo_n "(cached) " >&6 5268 else 5269 case $BASENAME in 5270 [\\/]* | ?:[\\/]*) 5271 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5272 ;; 5273 *) 5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5275 for as_dir in $PATH 5276 do 5277 IFS=$as_save_IFS 5278 test -z "$as_dir" && as_dir=. 5279 for ac_exec_ext in '' $ac_executable_extensions; do 5280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5281 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5283 break 2 5284 fi 5285 done 5286 done 5287 IFS=$as_save_IFS 5288 5289 ;; 5290 esac 5291 fi 5292 BASENAME=$ac_cv_path_BASENAME 5293 if test -n "$BASENAME"; then 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5295 $as_echo "$BASENAME" >&6; } 5296 else 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5298 $as_echo "no" >&6; } 5299 fi 5300 5301 5302 test -n "$BASENAME" && break 5303 done 5304 5305 else 5306 # The variable is set, but is it from the command line or the environment? 5307 5308 # Try to remove the string !BASENAME! from our list. 5309 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5310 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5311 # If it failed, the variable was not from the command line. Ignore it, 5312 # but warn the user (except for BASH, which is always set by the calling BASH). 5313 if test "xBASENAME" != xBASH; then 5314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5315 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5316 fi 5317 # Try to locate tool using the code snippet 5318 for ac_prog in basename 5319 do 5320 # Extract the first word of "$ac_prog", so it can be a program name with args. 5321 set dummy $ac_prog; ac_word=$2 5322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5323 $as_echo_n "checking for $ac_word... " >&6; } 5324 if ${ac_cv_path_BASENAME+:} false; then : 5325 $as_echo_n "(cached) " >&6 5326 else 5327 case $BASENAME in 5328 [\\/]* | ?:[\\/]*) 5329 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5330 ;; 5331 *) 5332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5333 for as_dir in $PATH 5334 do 5335 IFS=$as_save_IFS 5336 test -z "$as_dir" && as_dir=. 5337 for ac_exec_ext in '' $ac_executable_extensions; do 5338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5339 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5341 break 2 5342 fi 5343 done 5344 done 5345 IFS=$as_save_IFS 5346 5347 ;; 5348 esac 5349 fi 5350 BASENAME=$ac_cv_path_BASENAME 5351 if test -n "$BASENAME"; then 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5353 $as_echo "$BASENAME" >&6; } 5354 else 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5356 $as_echo "no" >&6; } 5357 fi 5358 5359 5360 test -n "$BASENAME" && break 5361 done 5362 5363 else 5364 # If it succeeded, then it was overridden by the user. We will use it 5365 # for the tool. 5366 5367 # First remove it from the list of overridden variables, so we can test 5368 # for unknown variables in the end. 5369 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5370 5371 # Check if we try to supply an empty value 5372 if test "x$BASENAME" = x; then 5373 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5374 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5376 $as_echo_n "checking for BASENAME... " >&6; } 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5378 $as_echo "disabled" >&6; } 5379 else 5380 # Check if the provided tool contains a complete path. 5381 tool_specified="$BASENAME" 5382 tool_basename="${tool_specified##*/}" 5383 if test "x$tool_basename" = "x$tool_specified"; then 5384 # A command without a complete path is provided, search $PATH. 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5386 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5387 # Extract the first word of "$tool_basename", so it can be a program name with args. 5388 set dummy $tool_basename; ac_word=$2 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5390 $as_echo_n "checking for $ac_word... " >&6; } 5391 if ${ac_cv_path_BASENAME+:} false; then : 5392 $as_echo_n "(cached) " >&6 5393 else 5394 case $BASENAME in 5395 [\\/]* | ?:[\\/]*) 5396 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5397 ;; 5398 *) 5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5400 for as_dir in $PATH 5401 do 5402 IFS=$as_save_IFS 5403 test -z "$as_dir" && as_dir=. 5404 for ac_exec_ext in '' $ac_executable_extensions; do 5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5406 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5408 break 2 5409 fi 5410 done 5411 done 5412 IFS=$as_save_IFS 5413 5414 ;; 5415 esac 5416 fi 5417 BASENAME=$ac_cv_path_BASENAME 5418 if test -n "$BASENAME"; then 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5420 $as_echo "$BASENAME" >&6; } 5421 else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423 $as_echo "no" >&6; } 5424 fi 5425 5426 5427 if test "x$BASENAME" = x; then 5428 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5429 fi 5430 else 5431 # Otherwise we believe it is a complete path. Use it as it is. 5432 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5433 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5435 $as_echo_n "checking for BASENAME... " >&6; } 5436 if test ! -x "$tool_specified"; then 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5438 $as_echo "not found" >&6; } 5439 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5440 fi 5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5442 $as_echo "$tool_specified" >&6; } 5443 fi 5444 fi 5445 fi 5446 5447 fi 5448 5449 5450 5451 if test "x$BASENAME" = x; then 5452 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5453 fi 5454 5455 5456 5457 5458 5459 # Publish this variable in the help. 5460 5461 5462 if [ -z "${BASH+x}" ]; then 5463 # The variable is not set by user, try to locate tool using the code snippet 5464 for ac_prog in bash 5465 do 5466 # Extract the first word of "$ac_prog", so it can be a program name with args. 5467 set dummy $ac_prog; ac_word=$2 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5469 $as_echo_n "checking for $ac_word... " >&6; } 5470 if ${ac_cv_path_BASH+:} false; then : 5471 $as_echo_n "(cached) " >&6 5472 else 5473 case $BASH in 5474 [\\/]* | ?:[\\/]*) 5475 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5476 ;; 5477 *) 5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5479 for as_dir in $PATH 5480 do 5481 IFS=$as_save_IFS 5482 test -z "$as_dir" && as_dir=. 5483 for ac_exec_ext in '' $ac_executable_extensions; do 5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5485 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5487 break 2 5488 fi 5489 done 5490 done 5491 IFS=$as_save_IFS 5492 5493 ;; 5494 esac 5495 fi 5496 BASH=$ac_cv_path_BASH 5497 if test -n "$BASH"; then 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5499 $as_echo "$BASH" >&6; } 5500 else 5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5502 $as_echo "no" >&6; } 5503 fi 5504 5505 5506 test -n "$BASH" && break 5507 done 5508 5509 else 5510 # The variable is set, but is it from the command line or the environment? 5511 5512 # Try to remove the string !BASH! from our list. 5513 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5514 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5515 # If it failed, the variable was not from the command line. Ignore it, 5516 # but warn the user (except for BASH, which is always set by the calling BASH). 5517 if test "xBASH" != xBASH; then 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5519 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5520 fi 5521 # Try to locate tool using the code snippet 5522 for ac_prog in bash 5523 do 5524 # Extract the first word of "$ac_prog", so it can be a program name with args. 5525 set dummy $ac_prog; ac_word=$2 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5527 $as_echo_n "checking for $ac_word... " >&6; } 5528 if ${ac_cv_path_BASH+:} false; then : 5529 $as_echo_n "(cached) " >&6 5530 else 5531 case $BASH in 5532 [\\/]* | ?:[\\/]*) 5533 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5534 ;; 5535 *) 5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5537 for as_dir in $PATH 5538 do 5539 IFS=$as_save_IFS 5540 test -z "$as_dir" && as_dir=. 5541 for ac_exec_ext in '' $ac_executable_extensions; do 5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5543 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5545 break 2 5546 fi 5547 done 5548 done 5549 IFS=$as_save_IFS 5550 5551 ;; 5552 esac 5553 fi 5554 BASH=$ac_cv_path_BASH 5555 if test -n "$BASH"; then 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5557 $as_echo "$BASH" >&6; } 5558 else 5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5560 $as_echo "no" >&6; } 5561 fi 5562 5563 5564 test -n "$BASH" && break 5565 done 5566 5567 else 5568 # If it succeeded, then it was overridden by the user. We will use it 5569 # for the tool. 5570 5571 # First remove it from the list of overridden variables, so we can test 5572 # for unknown variables in the end. 5573 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5574 5575 # Check if we try to supply an empty value 5576 if test "x$BASH" = x; then 5577 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5578 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5580 $as_echo_n "checking for BASH... " >&6; } 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5582 $as_echo "disabled" >&6; } 5583 else 5584 # Check if the provided tool contains a complete path. 5585 tool_specified="$BASH" 5586 tool_basename="${tool_specified##*/}" 5587 if test "x$tool_basename" = "x$tool_specified"; then 5588 # A command without a complete path is provided, search $PATH. 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5590 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5591 # Extract the first word of "$tool_basename", so it can be a program name with args. 5592 set dummy $tool_basename; ac_word=$2 5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5594 $as_echo_n "checking for $ac_word... " >&6; } 5595 if ${ac_cv_path_BASH+:} false; then : 5596 $as_echo_n "(cached) " >&6 5597 else 5598 case $BASH in 5599 [\\/]* | ?:[\\/]*) 5600 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5601 ;; 5602 *) 5603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5604 for as_dir in $PATH 5605 do 5606 IFS=$as_save_IFS 5607 test -z "$as_dir" && as_dir=. 5608 for ac_exec_ext in '' $ac_executable_extensions; do 5609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5610 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5612 break 2 5613 fi 5614 done 5615 done 5616 IFS=$as_save_IFS 5617 5618 ;; 5619 esac 5620 fi 5621 BASH=$ac_cv_path_BASH 5622 if test -n "$BASH"; then 5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5624 $as_echo "$BASH" >&6; } 5625 else 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5627 $as_echo "no" >&6; } 5628 fi 5629 5630 5631 if test "x$BASH" = x; then 5632 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5633 fi 5634 else 5635 # Otherwise we believe it is a complete path. Use it as it is. 5636 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5637 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5639 $as_echo_n "checking for BASH... " >&6; } 5640 if test ! -x "$tool_specified"; then 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5642 $as_echo "not found" >&6; } 5643 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5644 fi 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5646 $as_echo "$tool_specified" >&6; } 5647 fi 5648 fi 5649 fi 5650 5651 fi 5652 5653 5654 5655 if test "x$BASH" = x; then 5656 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5657 fi 5658 5659 5660 5661 5662 5663 # Publish this variable in the help. 5664 5665 5666 if [ -z "${CAT+x}" ]; then 5667 # The variable is not set by user, try to locate tool using the code snippet 5668 for ac_prog in cat 5669 do 5670 # Extract the first word of "$ac_prog", so it can be a program name with args. 5671 set dummy $ac_prog; ac_word=$2 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5673 $as_echo_n "checking for $ac_word... " >&6; } 5674 if ${ac_cv_path_CAT+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676 else 5677 case $CAT in 5678 [\\/]* | ?:[\\/]*) 5679 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5680 ;; 5681 *) 5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683 for as_dir in $PATH 5684 do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5689 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693 done 5694 done 5695 IFS=$as_save_IFS 5696 5697 ;; 5698 esac 5699 fi 5700 CAT=$ac_cv_path_CAT 5701 if test -n "$CAT"; then 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5703 $as_echo "$CAT" >&6; } 5704 else 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5706 $as_echo "no" >&6; } 5707 fi 5708 5709 5710 test -n "$CAT" && break 5711 done 5712 5713 else 5714 # The variable is set, but is it from the command line or the environment? 5715 5716 # Try to remove the string !CAT! from our list. 5717 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5718 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5719 # If it failed, the variable was not from the command line. Ignore it, 5720 # but warn the user (except for BASH, which is always set by the calling BASH). 5721 if test "xCAT" != xBASH; then 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5723 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5724 fi 5725 # Try to locate tool using the code snippet 5726 for ac_prog in cat 5727 do 5728 # Extract the first word of "$ac_prog", so it can be a program name with args. 5729 set dummy $ac_prog; ac_word=$2 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731 $as_echo_n "checking for $ac_word... " >&6; } 5732 if ${ac_cv_path_CAT+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734 else 5735 case $CAT in 5736 [\\/]* | ?:[\\/]*) 5737 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5738 ;; 5739 *) 5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5741 for as_dir in $PATH 5742 do 5743 IFS=$as_save_IFS 5744 test -z "$as_dir" && as_dir=. 5745 for ac_exec_ext in '' $ac_executable_extensions; do 5746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5747 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5749 break 2 5750 fi 5751 done 5752 done 5753 IFS=$as_save_IFS 5754 5755 ;; 5756 esac 5757 fi 5758 CAT=$ac_cv_path_CAT 5759 if test -n "$CAT"; then 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5761 $as_echo "$CAT" >&6; } 5762 else 5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5764 $as_echo "no" >&6; } 5765 fi 5766 5767 5768 test -n "$CAT" && break 5769 done 5770 5771 else 5772 # If it succeeded, then it was overridden by the user. We will use it 5773 # for the tool. 5774 5775 # First remove it from the list of overridden variables, so we can test 5776 # for unknown variables in the end. 5777 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5778 5779 # Check if we try to supply an empty value 5780 if test "x$CAT" = x; then 5781 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5782 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5784 $as_echo_n "checking for CAT... " >&6; } 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5786 $as_echo "disabled" >&6; } 5787 else 5788 # Check if the provided tool contains a complete path. 5789 tool_specified="$CAT" 5790 tool_basename="${tool_specified##*/}" 5791 if test "x$tool_basename" = "x$tool_specified"; then 5792 # A command without a complete path is provided, search $PATH. 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5794 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5795 # Extract the first word of "$tool_basename", so it can be a program name with args. 5796 set dummy $tool_basename; ac_word=$2 5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5798 $as_echo_n "checking for $ac_word... " >&6; } 5799 if ${ac_cv_path_CAT+:} false; then : 5800 $as_echo_n "(cached) " >&6 5801 else 5802 case $CAT in 5803 [\\/]* | ?:[\\/]*) 5804 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5805 ;; 5806 *) 5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5808 for as_dir in $PATH 5809 do 5810 IFS=$as_save_IFS 5811 test -z "$as_dir" && as_dir=. 5812 for ac_exec_ext in '' $ac_executable_extensions; do 5813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5814 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5816 break 2 5817 fi 5818 done 5819 done 5820 IFS=$as_save_IFS 5821 5822 ;; 5823 esac 5824 fi 5825 CAT=$ac_cv_path_CAT 5826 if test -n "$CAT"; then 5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5828 $as_echo "$CAT" >&6; } 5829 else 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5831 $as_echo "no" >&6; } 5832 fi 5833 5834 5835 if test "x$CAT" = x; then 5836 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5837 fi 5838 else 5839 # Otherwise we believe it is a complete path. Use it as it is. 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5841 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5843 $as_echo_n "checking for CAT... " >&6; } 5844 if test ! -x "$tool_specified"; then 5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5846 $as_echo "not found" >&6; } 5847 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5848 fi 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5850 $as_echo "$tool_specified" >&6; } 5851 fi 5852 fi 5853 fi 5854 5855 fi 5856 5857 5858 5859 if test "x$CAT" = x; then 5860 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5861 fi 5862 5863 5864 5865 5866 5867 # Publish this variable in the help. 5868 5869 5870 if [ -z "${CHMOD+x}" ]; then 5871 # The variable is not set by user, try to locate tool using the code snippet 5872 for ac_prog in chmod 5873 do 5874 # Extract the first word of "$ac_prog", so it can be a program name with args. 5875 set dummy $ac_prog; ac_word=$2 5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5877 $as_echo_n "checking for $ac_word... " >&6; } 5878 if ${ac_cv_path_CHMOD+:} false; then : 5879 $as_echo_n "(cached) " >&6 5880 else 5881 case $CHMOD in 5882 [\\/]* | ?:[\\/]*) 5883 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5884 ;; 5885 *) 5886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5887 for as_dir in $PATH 5888 do 5889 IFS=$as_save_IFS 5890 test -z "$as_dir" && as_dir=. 5891 for ac_exec_ext in '' $ac_executable_extensions; do 5892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5893 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5895 break 2 5896 fi 5897 done 5898 done 5899 IFS=$as_save_IFS 5900 5901 ;; 5902 esac 5903 fi 5904 CHMOD=$ac_cv_path_CHMOD 5905 if test -n "$CHMOD"; then 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5907 $as_echo "$CHMOD" >&6; } 5908 else 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5910 $as_echo "no" >&6; } 5911 fi 5912 5913 5914 test -n "$CHMOD" && break 5915 done 5916 5917 else 5918 # The variable is set, but is it from the command line or the environment? 5919 5920 # Try to remove the string !CHMOD! from our list. 5921 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5922 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5923 # If it failed, the variable was not from the command line. Ignore it, 5924 # but warn the user (except for BASH, which is always set by the calling BASH). 5925 if test "xCHMOD" != xBASH; then 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5927 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5928 fi 5929 # Try to locate tool using the code snippet 5930 for ac_prog in chmod 5931 do 5932 # Extract the first word of "$ac_prog", so it can be a program name with args. 5933 set dummy $ac_prog; ac_word=$2 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5935 $as_echo_n "checking for $ac_word... " >&6; } 5936 if ${ac_cv_path_CHMOD+:} false; then : 5937 $as_echo_n "(cached) " >&6 5938 else 5939 case $CHMOD in 5940 [\\/]* | ?:[\\/]*) 5941 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5942 ;; 5943 *) 5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5945 for as_dir in $PATH 5946 do 5947 IFS=$as_save_IFS 5948 test -z "$as_dir" && as_dir=. 5949 for ac_exec_ext in '' $ac_executable_extensions; do 5950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5951 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5953 break 2 5954 fi 5955 done 5956 done 5957 IFS=$as_save_IFS 5958 5959 ;; 5960 esac 5961 fi 5962 CHMOD=$ac_cv_path_CHMOD 5963 if test -n "$CHMOD"; then 5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5965 $as_echo "$CHMOD" >&6; } 5966 else 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5968 $as_echo "no" >&6; } 5969 fi 5970 5971 5972 test -n "$CHMOD" && break 5973 done 5974 5975 else 5976 # If it succeeded, then it was overridden by the user. We will use it 5977 # for the tool. 5978 5979 # First remove it from the list of overridden variables, so we can test 5980 # for unknown variables in the end. 5981 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5982 5983 # Check if we try to supply an empty value 5984 if test "x$CHMOD" = x; then 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5986 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5988 $as_echo_n "checking for CHMOD... " >&6; } 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5990 $as_echo "disabled" >&6; } 5991 else 5992 # Check if the provided tool contains a complete path. 5993 tool_specified="$CHMOD" 5994 tool_basename="${tool_specified##*/}" 5995 if test "x$tool_basename" = "x$tool_specified"; then 5996 # A command without a complete path is provided, search $PATH. 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5998 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5999 # Extract the first word of "$tool_basename", so it can be a program name with args. 6000 set dummy $tool_basename; ac_word=$2 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6002 $as_echo_n "checking for $ac_word... " >&6; } 6003 if ${ac_cv_path_CHMOD+:} false; then : 6004 $as_echo_n "(cached) " >&6 6005 else 6006 case $CHMOD in 6007 [\\/]* | ?:[\\/]*) 6008 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 6009 ;; 6010 *) 6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6012 for as_dir in $PATH 6013 do 6014 IFS=$as_save_IFS 6015 test -z "$as_dir" && as_dir=. 6016 for ac_exec_ext in '' $ac_executable_extensions; do 6017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6018 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 6019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6020 break 2 6021 fi 6022 done 6023 done 6024 IFS=$as_save_IFS 6025 6026 ;; 6027 esac 6028 fi 6029 CHMOD=$ac_cv_path_CHMOD 6030 if test -n "$CHMOD"; then 6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 6032 $as_echo "$CHMOD" >&6; } 6033 else 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6035 $as_echo "no" >&6; } 6036 fi 6037 6038 6039 if test "x$CHMOD" = x; then 6040 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6041 fi 6042 else 6043 # Otherwise we believe it is a complete path. Use it as it is. 6044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6045 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6047 $as_echo_n "checking for CHMOD... " >&6; } 6048 if test ! -x "$tool_specified"; then 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6050 $as_echo "not found" >&6; } 6051 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6052 fi 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6054 $as_echo "$tool_specified" >&6; } 6055 fi 6056 fi 6057 fi 6058 6059 fi 6060 6061 6062 6063 if test "x$CHMOD" = x; then 6064 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6065 fi 6066 6067 6068 6069 6070 6071 # Publish this variable in the help. 6072 6073 6074 if [ -z "${CMP+x}" ]; then 6075 # The variable is not set by user, try to locate tool using the code snippet 6076 for ac_prog in cmp 6077 do 6078 # Extract the first word of "$ac_prog", so it can be a program name with args. 6079 set dummy $ac_prog; ac_word=$2 6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6081 $as_echo_n "checking for $ac_word... " >&6; } 6082 if ${ac_cv_path_CMP+:} false; then : 6083 $as_echo_n "(cached) " >&6 6084 else 6085 case $CMP in 6086 [\\/]* | ?:[\\/]*) 6087 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6088 ;; 6089 *) 6090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6091 for as_dir in $PATH 6092 do 6093 IFS=$as_save_IFS 6094 test -z "$as_dir" && as_dir=. 6095 for ac_exec_ext in '' $ac_executable_extensions; do 6096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6097 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6099 break 2 6100 fi 6101 done 6102 done 6103 IFS=$as_save_IFS 6104 6105 ;; 6106 esac 6107 fi 6108 CMP=$ac_cv_path_CMP 6109 if test -n "$CMP"; then 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6111 $as_echo "$CMP" >&6; } 6112 else 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6114 $as_echo "no" >&6; } 6115 fi 6116 6117 6118 test -n "$CMP" && break 6119 done 6120 6121 else 6122 # The variable is set, but is it from the command line or the environment? 6123 6124 # Try to remove the string !CMP! from our list. 6125 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6126 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6127 # If it failed, the variable was not from the command line. Ignore it, 6128 # but warn the user (except for BASH, which is always set by the calling BASH). 6129 if test "xCMP" != xBASH; then 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6131 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6132 fi 6133 # Try to locate tool using the code snippet 6134 for ac_prog in cmp 6135 do 6136 # Extract the first word of "$ac_prog", so it can be a program name with args. 6137 set dummy $ac_prog; ac_word=$2 6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6139 $as_echo_n "checking for $ac_word... " >&6; } 6140 if ${ac_cv_path_CMP+:} false; then : 6141 $as_echo_n "(cached) " >&6 6142 else 6143 case $CMP in 6144 [\\/]* | ?:[\\/]*) 6145 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6146 ;; 6147 *) 6148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6149 for as_dir in $PATH 6150 do 6151 IFS=$as_save_IFS 6152 test -z "$as_dir" && as_dir=. 6153 for ac_exec_ext in '' $ac_executable_extensions; do 6154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6155 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6157 break 2 6158 fi 6159 done 6160 done 6161 IFS=$as_save_IFS 6162 6163 ;; 6164 esac 6165 fi 6166 CMP=$ac_cv_path_CMP 6167 if test -n "$CMP"; then 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6169 $as_echo "$CMP" >&6; } 6170 else 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6172 $as_echo "no" >&6; } 6173 fi 6174 6175 6176 test -n "$CMP" && break 6177 done 6178 6179 else 6180 # If it succeeded, then it was overridden by the user. We will use it 6181 # for the tool. 6182 6183 # First remove it from the list of overridden variables, so we can test 6184 # for unknown variables in the end. 6185 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6186 6187 # Check if we try to supply an empty value 6188 if test "x$CMP" = x; then 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6190 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6192 $as_echo_n "checking for CMP... " >&6; } 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6194 $as_echo "disabled" >&6; } 6195 else 6196 # Check if the provided tool contains a complete path. 6197 tool_specified="$CMP" 6198 tool_basename="${tool_specified##*/}" 6199 if test "x$tool_basename" = "x$tool_specified"; then 6200 # A command without a complete path is provided, search $PATH. 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6202 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6203 # Extract the first word of "$tool_basename", so it can be a program name with args. 6204 set dummy $tool_basename; ac_word=$2 6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6206 $as_echo_n "checking for $ac_word... " >&6; } 6207 if ${ac_cv_path_CMP+:} false; then : 6208 $as_echo_n "(cached) " >&6 6209 else 6210 case $CMP in 6211 [\\/]* | ?:[\\/]*) 6212 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6213 ;; 6214 *) 6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6216 for as_dir in $PATH 6217 do 6218 IFS=$as_save_IFS 6219 test -z "$as_dir" && as_dir=. 6220 for ac_exec_ext in '' $ac_executable_extensions; do 6221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6222 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6224 break 2 6225 fi 6226 done 6227 done 6228 IFS=$as_save_IFS 6229 6230 ;; 6231 esac 6232 fi 6233 CMP=$ac_cv_path_CMP 6234 if test -n "$CMP"; then 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6236 $as_echo "$CMP" >&6; } 6237 else 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6239 $as_echo "no" >&6; } 6240 fi 6241 6242 6243 if test "x$CMP" = x; then 6244 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6245 fi 6246 else 6247 # Otherwise we believe it is a complete path. Use it as it is. 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6249 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6251 $as_echo_n "checking for CMP... " >&6; } 6252 if test ! -x "$tool_specified"; then 6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6254 $as_echo "not found" >&6; } 6255 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6256 fi 6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6258 $as_echo "$tool_specified" >&6; } 6259 fi 6260 fi 6261 fi 6262 6263 fi 6264 6265 6266 6267 if test "x$CMP" = x; then 6268 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6269 fi 6270 6271 6272 6273 6274 6275 # Publish this variable in the help. 6276 6277 6278 if [ -z "${COMM+x}" ]; then 6279 # The variable is not set by user, try to locate tool using the code snippet 6280 for ac_prog in comm 6281 do 6282 # Extract the first word of "$ac_prog", so it can be a program name with args. 6283 set dummy $ac_prog; ac_word=$2 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6285 $as_echo_n "checking for $ac_word... " >&6; } 6286 if ${ac_cv_path_COMM+:} false; then : 6287 $as_echo_n "(cached) " >&6 6288 else 6289 case $COMM in 6290 [\\/]* | ?:[\\/]*) 6291 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6292 ;; 6293 *) 6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295 for as_dir in $PATH 6296 do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6301 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305 done 6306 done 6307 IFS=$as_save_IFS 6308 6309 ;; 6310 esac 6311 fi 6312 COMM=$ac_cv_path_COMM 6313 if test -n "$COMM"; then 6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6315 $as_echo "$COMM" >&6; } 6316 else 6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6318 $as_echo "no" >&6; } 6319 fi 6320 6321 6322 test -n "$COMM" && break 6323 done 6324 6325 else 6326 # The variable is set, but is it from the command line or the environment? 6327 6328 # Try to remove the string !COMM! from our list. 6329 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6330 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6331 # If it failed, the variable was not from the command line. Ignore it, 6332 # but warn the user (except for BASH, which is always set by the calling BASH). 6333 if test "xCOMM" != xBASH; then 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6335 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6336 fi 6337 # Try to locate tool using the code snippet 6338 for ac_prog in comm 6339 do 6340 # Extract the first word of "$ac_prog", so it can be a program name with args. 6341 set dummy $ac_prog; ac_word=$2 6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343 $as_echo_n "checking for $ac_word... " >&6; } 6344 if ${ac_cv_path_COMM+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346 else 6347 case $COMM in 6348 [\\/]* | ?:[\\/]*) 6349 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6350 ;; 6351 *) 6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6353 for as_dir in $PATH 6354 do 6355 IFS=$as_save_IFS 6356 test -z "$as_dir" && as_dir=. 6357 for ac_exec_ext in '' $ac_executable_extensions; do 6358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6359 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6361 break 2 6362 fi 6363 done 6364 done 6365 IFS=$as_save_IFS 6366 6367 ;; 6368 esac 6369 fi 6370 COMM=$ac_cv_path_COMM 6371 if test -n "$COMM"; then 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6373 $as_echo "$COMM" >&6; } 6374 else 6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6376 $as_echo "no" >&6; } 6377 fi 6378 6379 6380 test -n "$COMM" && break 6381 done 6382 6383 else 6384 # If it succeeded, then it was overridden by the user. We will use it 6385 # for the tool. 6386 6387 # First remove it from the list of overridden variables, so we can test 6388 # for unknown variables in the end. 6389 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6390 6391 # Check if we try to supply an empty value 6392 if test "x$COMM" = x; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6394 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6396 $as_echo_n "checking for COMM... " >&6; } 6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6398 $as_echo "disabled" >&6; } 6399 else 6400 # Check if the provided tool contains a complete path. 6401 tool_specified="$COMM" 6402 tool_basename="${tool_specified##*/}" 6403 if test "x$tool_basename" = "x$tool_specified"; then 6404 # A command without a complete path is provided, search $PATH. 6405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6406 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6407 # Extract the first word of "$tool_basename", so it can be a program name with args. 6408 set dummy $tool_basename; ac_word=$2 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6410 $as_echo_n "checking for $ac_word... " >&6; } 6411 if ${ac_cv_path_COMM+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413 else 6414 case $COMM in 6415 [\\/]* | ?:[\\/]*) 6416 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6417 ;; 6418 *) 6419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6420 for as_dir in $PATH 6421 do 6422 IFS=$as_save_IFS 6423 test -z "$as_dir" && as_dir=. 6424 for ac_exec_ext in '' $ac_executable_extensions; do 6425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6426 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6428 break 2 6429 fi 6430 done 6431 done 6432 IFS=$as_save_IFS 6433 6434 ;; 6435 esac 6436 fi 6437 COMM=$ac_cv_path_COMM 6438 if test -n "$COMM"; then 6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6440 $as_echo "$COMM" >&6; } 6441 else 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6443 $as_echo "no" >&6; } 6444 fi 6445 6446 6447 if test "x$COMM" = x; then 6448 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6449 fi 6450 else 6451 # Otherwise we believe it is a complete path. Use it as it is. 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6453 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6455 $as_echo_n "checking for COMM... " >&6; } 6456 if test ! -x "$tool_specified"; then 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6458 $as_echo "not found" >&6; } 6459 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6460 fi 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6462 $as_echo "$tool_specified" >&6; } 6463 fi 6464 fi 6465 fi 6466 6467 fi 6468 6469 6470 6471 if test "x$COMM" = x; then 6472 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6473 fi 6474 6475 6476 6477 6478 6479 # Publish this variable in the help. 6480 6481 6482 if [ -z "${CP+x}" ]; then 6483 # The variable is not set by user, try to locate tool using the code snippet 6484 for ac_prog in cp 6485 do 6486 # Extract the first word of "$ac_prog", so it can be a program name with args. 6487 set dummy $ac_prog; ac_word=$2 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6489 $as_echo_n "checking for $ac_word... " >&6; } 6490 if ${ac_cv_path_CP+:} false; then : 6491 $as_echo_n "(cached) " >&6 6492 else 6493 case $CP in 6494 [\\/]* | ?:[\\/]*) 6495 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6496 ;; 6497 *) 6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6499 for as_dir in $PATH 6500 do 6501 IFS=$as_save_IFS 6502 test -z "$as_dir" && as_dir=. 6503 for ac_exec_ext in '' $ac_executable_extensions; do 6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6505 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6507 break 2 6508 fi 6509 done 6510 done 6511 IFS=$as_save_IFS 6512 6513 ;; 6514 esac 6515 fi 6516 CP=$ac_cv_path_CP 6517 if test -n "$CP"; then 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6519 $as_echo "$CP" >&6; } 6520 else 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6522 $as_echo "no" >&6; } 6523 fi 6524 6525 6526 test -n "$CP" && break 6527 done 6528 6529 else 6530 # The variable is set, but is it from the command line or the environment? 6531 6532 # Try to remove the string !CP! from our list. 6533 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6534 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6535 # If it failed, the variable was not from the command line. Ignore it, 6536 # but warn the user (except for BASH, which is always set by the calling BASH). 6537 if test "xCP" != xBASH; then 6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6539 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6540 fi 6541 # Try to locate tool using the code snippet 6542 for ac_prog in cp 6543 do 6544 # Extract the first word of "$ac_prog", so it can be a program name with args. 6545 set dummy $ac_prog; ac_word=$2 6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6547 $as_echo_n "checking for $ac_word... " >&6; } 6548 if ${ac_cv_path_CP+:} false; then : 6549 $as_echo_n "(cached) " >&6 6550 else 6551 case $CP in 6552 [\\/]* | ?:[\\/]*) 6553 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6554 ;; 6555 *) 6556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6557 for as_dir in $PATH 6558 do 6559 IFS=$as_save_IFS 6560 test -z "$as_dir" && as_dir=. 6561 for ac_exec_ext in '' $ac_executable_extensions; do 6562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6563 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6565 break 2 6566 fi 6567 done 6568 done 6569 IFS=$as_save_IFS 6570 6571 ;; 6572 esac 6573 fi 6574 CP=$ac_cv_path_CP 6575 if test -n "$CP"; then 6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6577 $as_echo "$CP" >&6; } 6578 else 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6580 $as_echo "no" >&6; } 6581 fi 6582 6583 6584 test -n "$CP" && break 6585 done 6586 6587 else 6588 # If it succeeded, then it was overridden by the user. We will use it 6589 # for the tool. 6590 6591 # First remove it from the list of overridden variables, so we can test 6592 # for unknown variables in the end. 6593 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6594 6595 # Check if we try to supply an empty value 6596 if test "x$CP" = x; then 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6598 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6600 $as_echo_n "checking for CP... " >&6; } 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6602 $as_echo "disabled" >&6; } 6603 else 6604 # Check if the provided tool contains a complete path. 6605 tool_specified="$CP" 6606 tool_basename="${tool_specified##*/}" 6607 if test "x$tool_basename" = "x$tool_specified"; then 6608 # A command without a complete path is provided, search $PATH. 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6610 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6611 # Extract the first word of "$tool_basename", so it can be a program name with args. 6612 set dummy $tool_basename; ac_word=$2 6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6614 $as_echo_n "checking for $ac_word... " >&6; } 6615 if ${ac_cv_path_CP+:} false; then : 6616 $as_echo_n "(cached) " >&6 6617 else 6618 case $CP in 6619 [\\/]* | ?:[\\/]*) 6620 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6621 ;; 6622 *) 6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6624 for as_dir in $PATH 6625 do 6626 IFS=$as_save_IFS 6627 test -z "$as_dir" && as_dir=. 6628 for ac_exec_ext in '' $ac_executable_extensions; do 6629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6630 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6632 break 2 6633 fi 6634 done 6635 done 6636 IFS=$as_save_IFS 6637 6638 ;; 6639 esac 6640 fi 6641 CP=$ac_cv_path_CP 6642 if test -n "$CP"; then 6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6644 $as_echo "$CP" >&6; } 6645 else 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6647 $as_echo "no" >&6; } 6648 fi 6649 6650 6651 if test "x$CP" = x; then 6652 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6653 fi 6654 else 6655 # Otherwise we believe it is a complete path. Use it as it is. 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6657 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6659 $as_echo_n "checking for CP... " >&6; } 6660 if test ! -x "$tool_specified"; then 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6662 $as_echo "not found" >&6; } 6663 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6664 fi 6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6666 $as_echo "$tool_specified" >&6; } 6667 fi 6668 fi 6669 fi 6670 6671 fi 6672 6673 6674 6675 if test "x$CP" = x; then 6676 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6677 fi 6678 6679 6680 6681 6682 6683 # Publish this variable in the help. 6684 6685 6686 if [ -z "${CUT+x}" ]; then 6687 # The variable is not set by user, try to locate tool using the code snippet 6688 for ac_prog in cut 6689 do 6690 # Extract the first word of "$ac_prog", so it can be a program name with args. 6691 set dummy $ac_prog; ac_word=$2 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6693 $as_echo_n "checking for $ac_word... " >&6; } 6694 if ${ac_cv_path_CUT+:} false; then : 6695 $as_echo_n "(cached) " >&6 6696 else 6697 case $CUT in 6698 [\\/]* | ?:[\\/]*) 6699 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6700 ;; 6701 *) 6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6703 for as_dir in $PATH 6704 do 6705 IFS=$as_save_IFS 6706 test -z "$as_dir" && as_dir=. 6707 for ac_exec_ext in '' $ac_executable_extensions; do 6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6709 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6711 break 2 6712 fi 6713 done 6714 done 6715 IFS=$as_save_IFS 6716 6717 ;; 6718 esac 6719 fi 6720 CUT=$ac_cv_path_CUT 6721 if test -n "$CUT"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6723 $as_echo "$CUT" >&6; } 6724 else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726 $as_echo "no" >&6; } 6727 fi 6728 6729 6730 test -n "$CUT" && break 6731 done 6732 6733 else 6734 # The variable is set, but is it from the command line or the environment? 6735 6736 # Try to remove the string !CUT! from our list. 6737 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6738 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6739 # If it failed, the variable was not from the command line. Ignore it, 6740 # but warn the user (except for BASH, which is always set by the calling BASH). 6741 if test "xCUT" != xBASH; then 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6743 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6744 fi 6745 # Try to locate tool using the code snippet 6746 for ac_prog in cut 6747 do 6748 # Extract the first word of "$ac_prog", so it can be a program name with args. 6749 set dummy $ac_prog; ac_word=$2 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6751 $as_echo_n "checking for $ac_word... " >&6; } 6752 if ${ac_cv_path_CUT+:} false; then : 6753 $as_echo_n "(cached) " >&6 6754 else 6755 case $CUT in 6756 [\\/]* | ?:[\\/]*) 6757 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6758 ;; 6759 *) 6760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6761 for as_dir in $PATH 6762 do 6763 IFS=$as_save_IFS 6764 test -z "$as_dir" && as_dir=. 6765 for ac_exec_ext in '' $ac_executable_extensions; do 6766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6767 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6769 break 2 6770 fi 6771 done 6772 done 6773 IFS=$as_save_IFS 6774 6775 ;; 6776 esac 6777 fi 6778 CUT=$ac_cv_path_CUT 6779 if test -n "$CUT"; then 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6781 $as_echo "$CUT" >&6; } 6782 else 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6784 $as_echo "no" >&6; } 6785 fi 6786 6787 6788 test -n "$CUT" && break 6789 done 6790 6791 else 6792 # If it succeeded, then it was overridden by the user. We will use it 6793 # for the tool. 6794 6795 # First remove it from the list of overridden variables, so we can test 6796 # for unknown variables in the end. 6797 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6798 6799 # Check if we try to supply an empty value 6800 if test "x$CUT" = x; then 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6802 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6804 $as_echo_n "checking for CUT... " >&6; } 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6806 $as_echo "disabled" >&6; } 6807 else 6808 # Check if the provided tool contains a complete path. 6809 tool_specified="$CUT" 6810 tool_basename="${tool_specified##*/}" 6811 if test "x$tool_basename" = "x$tool_specified"; then 6812 # A command without a complete path is provided, search $PATH. 6813 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6814 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6815 # Extract the first word of "$tool_basename", so it can be a program name with args. 6816 set dummy $tool_basename; ac_word=$2 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6818 $as_echo_n "checking for $ac_word... " >&6; } 6819 if ${ac_cv_path_CUT+:} false; then : 6820 $as_echo_n "(cached) " >&6 6821 else 6822 case $CUT in 6823 [\\/]* | ?:[\\/]*) 6824 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6825 ;; 6826 *) 6827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6828 for as_dir in $PATH 6829 do 6830 IFS=$as_save_IFS 6831 test -z "$as_dir" && as_dir=. 6832 for ac_exec_ext in '' $ac_executable_extensions; do 6833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6834 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6836 break 2 6837 fi 6838 done 6839 done 6840 IFS=$as_save_IFS 6841 6842 ;; 6843 esac 6844 fi 6845 CUT=$ac_cv_path_CUT 6846 if test -n "$CUT"; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6848 $as_echo "$CUT" >&6; } 6849 else 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6851 $as_echo "no" >&6; } 6852 fi 6853 6854 6855 if test "x$CUT" = x; then 6856 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6857 fi 6858 else 6859 # Otherwise we believe it is a complete path. Use it as it is. 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6861 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6863 $as_echo_n "checking for CUT... " >&6; } 6864 if test ! -x "$tool_specified"; then 6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6866 $as_echo "not found" >&6; } 6867 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6868 fi 6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6870 $as_echo "$tool_specified" >&6; } 6871 fi 6872 fi 6873 fi 6874 6875 fi 6876 6877 6878 6879 if test "x$CUT" = x; then 6880 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6881 fi 6882 6883 6884 6885 6886 6887 # Publish this variable in the help. 6888 6889 6890 if [ -z "${DATE+x}" ]; then 6891 # The variable is not set by user, try to locate tool using the code snippet 6892 for ac_prog in date 6893 do 6894 # Extract the first word of "$ac_prog", so it can be a program name with args. 6895 set dummy $ac_prog; ac_word=$2 6896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6897 $as_echo_n "checking for $ac_word... " >&6; } 6898 if ${ac_cv_path_DATE+:} false; then : 6899 $as_echo_n "(cached) " >&6 6900 else 6901 case $DATE in 6902 [\\/]* | ?:[\\/]*) 6903 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6904 ;; 6905 *) 6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6907 for as_dir in $PATH 6908 do 6909 IFS=$as_save_IFS 6910 test -z "$as_dir" && as_dir=. 6911 for ac_exec_ext in '' $ac_executable_extensions; do 6912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6913 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6915 break 2 6916 fi 6917 done 6918 done 6919 IFS=$as_save_IFS 6920 6921 ;; 6922 esac 6923 fi 6924 DATE=$ac_cv_path_DATE 6925 if test -n "$DATE"; then 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6927 $as_echo "$DATE" >&6; } 6928 else 6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6930 $as_echo "no" >&6; } 6931 fi 6932 6933 6934 test -n "$DATE" && break 6935 done 6936 6937 else 6938 # The variable is set, but is it from the command line or the environment? 6939 6940 # Try to remove the string !DATE! from our list. 6941 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6942 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6943 # If it failed, the variable was not from the command line. Ignore it, 6944 # but warn the user (except for BASH, which is always set by the calling BASH). 6945 if test "xDATE" != xBASH; then 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6947 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6948 fi 6949 # Try to locate tool using the code snippet 6950 for ac_prog in date 6951 do 6952 # Extract the first word of "$ac_prog", so it can be a program name with args. 6953 set dummy $ac_prog; ac_word=$2 6954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6955 $as_echo_n "checking for $ac_word... " >&6; } 6956 if ${ac_cv_path_DATE+:} false; then : 6957 $as_echo_n "(cached) " >&6 6958 else 6959 case $DATE in 6960 [\\/]* | ?:[\\/]*) 6961 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6962 ;; 6963 *) 6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6965 for as_dir in $PATH 6966 do 6967 IFS=$as_save_IFS 6968 test -z "$as_dir" && as_dir=. 6969 for ac_exec_ext in '' $ac_executable_extensions; do 6970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6971 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6973 break 2 6974 fi 6975 done 6976 done 6977 IFS=$as_save_IFS 6978 6979 ;; 6980 esac 6981 fi 6982 DATE=$ac_cv_path_DATE 6983 if test -n "$DATE"; then 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6985 $as_echo "$DATE" >&6; } 6986 else 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6988 $as_echo "no" >&6; } 6989 fi 6990 6991 6992 test -n "$DATE" && break 6993 done 6994 6995 else 6996 # If it succeeded, then it was overridden by the user. We will use it 6997 # for the tool. 6998 6999 # First remove it from the list of overridden variables, so we can test 7000 # for unknown variables in the end. 7001 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7002 7003 # Check if we try to supply an empty value 7004 if test "x$DATE" = x; then 7005 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 7006 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7008 $as_echo_n "checking for DATE... " >&6; } 7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7010 $as_echo "disabled" >&6; } 7011 else 7012 # Check if the provided tool contains a complete path. 7013 tool_specified="$DATE" 7014 tool_basename="${tool_specified##*/}" 7015 if test "x$tool_basename" = "x$tool_specified"; then 7016 # A command without a complete path is provided, search $PATH. 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 7018 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 7019 # Extract the first word of "$tool_basename", so it can be a program name with args. 7020 set dummy $tool_basename; ac_word=$2 7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7022 $as_echo_n "checking for $ac_word... " >&6; } 7023 if ${ac_cv_path_DATE+:} false; then : 7024 $as_echo_n "(cached) " >&6 7025 else 7026 case $DATE in 7027 [\\/]* | ?:[\\/]*) 7028 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7029 ;; 7030 *) 7031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7032 for as_dir in $PATH 7033 do 7034 IFS=$as_save_IFS 7035 test -z "$as_dir" && as_dir=. 7036 for ac_exec_ext in '' $ac_executable_extensions; do 7037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7038 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7040 break 2 7041 fi 7042 done 7043 done 7044 IFS=$as_save_IFS 7045 7046 ;; 7047 esac 7048 fi 7049 DATE=$ac_cv_path_DATE 7050 if test -n "$DATE"; then 7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7052 $as_echo "$DATE" >&6; } 7053 else 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7055 $as_echo "no" >&6; } 7056 fi 7057 7058 7059 if test "x$DATE" = x; then 7060 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7061 fi 7062 else 7063 # Otherwise we believe it is a complete path. Use it as it is. 7064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7065 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7067 $as_echo_n "checking for DATE... " >&6; } 7068 if test ! -x "$tool_specified"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7070 $as_echo "not found" >&6; } 7071 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7072 fi 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7074 $as_echo "$tool_specified" >&6; } 7075 fi 7076 fi 7077 fi 7078 7079 fi 7080 7081 7082 7083 if test "x$DATE" = x; then 7084 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7085 fi 7086 7087 7088 7089 7090 7091 # Publish this variable in the help. 7092 7093 7094 if [ -z "${DIFF+x}" ]; then 7095 # The variable is not set by user, try to locate tool using the code snippet 7096 for ac_prog in gdiff diff 7097 do 7098 # Extract the first word of "$ac_prog", so it can be a program name with args. 7099 set dummy $ac_prog; ac_word=$2 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101 $as_echo_n "checking for $ac_word... " >&6; } 7102 if ${ac_cv_path_DIFF+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104 else 7105 case $DIFF in 7106 [\\/]* | ?:[\\/]*) 7107 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7108 ;; 7109 *) 7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111 for as_dir in $PATH 7112 do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_exec_ext in '' $ac_executable_extensions; do 7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7117 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7119 break 2 7120 fi 7121 done 7122 done 7123 IFS=$as_save_IFS 7124 7125 ;; 7126 esac 7127 fi 7128 DIFF=$ac_cv_path_DIFF 7129 if test -n "$DIFF"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7131 $as_echo "$DIFF" >&6; } 7132 else 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7134 $as_echo "no" >&6; } 7135 fi 7136 7137 7138 test -n "$DIFF" && break 7139 done 7140 7141 else 7142 # The variable is set, but is it from the command line or the environment? 7143 7144 # Try to remove the string !DIFF! from our list. 7145 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7146 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7147 # If it failed, the variable was not from the command line. Ignore it, 7148 # but warn the user (except for BASH, which is always set by the calling BASH). 7149 if test "xDIFF" != xBASH; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7151 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7152 fi 7153 # Try to locate tool using the code snippet 7154 for ac_prog in gdiff diff 7155 do 7156 # Extract the first word of "$ac_prog", so it can be a program name with args. 7157 set dummy $ac_prog; ac_word=$2 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7159 $as_echo_n "checking for $ac_word... " >&6; } 7160 if ${ac_cv_path_DIFF+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162 else 7163 case $DIFF in 7164 [\\/]* | ?:[\\/]*) 7165 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7166 ;; 7167 *) 7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169 for as_dir in $PATH 7170 do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7175 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179 done 7180 done 7181 IFS=$as_save_IFS 7182 7183 ;; 7184 esac 7185 fi 7186 DIFF=$ac_cv_path_DIFF 7187 if test -n "$DIFF"; then 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7189 $as_echo "$DIFF" >&6; } 7190 else 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7192 $as_echo "no" >&6; } 7193 fi 7194 7195 7196 test -n "$DIFF" && break 7197 done 7198 7199 else 7200 # If it succeeded, then it was overridden by the user. We will use it 7201 # for the tool. 7202 7203 # First remove it from the list of overridden variables, so we can test 7204 # for unknown variables in the end. 7205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7206 7207 # Check if we try to supply an empty value 7208 if test "x$DIFF" = x; then 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7210 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7212 $as_echo_n "checking for DIFF... " >&6; } 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7214 $as_echo "disabled" >&6; } 7215 else 7216 # Check if the provided tool contains a complete path. 7217 tool_specified="$DIFF" 7218 tool_basename="${tool_specified##*/}" 7219 if test "x$tool_basename" = "x$tool_specified"; then 7220 # A command without a complete path is provided, search $PATH. 7221 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7222 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7223 # Extract the first word of "$tool_basename", so it can be a program name with args. 7224 set dummy $tool_basename; ac_word=$2 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7226 $as_echo_n "checking for $ac_word... " >&6; } 7227 if ${ac_cv_path_DIFF+:} false; then : 7228 $as_echo_n "(cached) " >&6 7229 else 7230 case $DIFF in 7231 [\\/]* | ?:[\\/]*) 7232 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7233 ;; 7234 *) 7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7236 for as_dir in $PATH 7237 do 7238 IFS=$as_save_IFS 7239 test -z "$as_dir" && as_dir=. 7240 for ac_exec_ext in '' $ac_executable_extensions; do 7241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7242 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7244 break 2 7245 fi 7246 done 7247 done 7248 IFS=$as_save_IFS 7249 7250 ;; 7251 esac 7252 fi 7253 DIFF=$ac_cv_path_DIFF 7254 if test -n "$DIFF"; then 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7256 $as_echo "$DIFF" >&6; } 7257 else 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7259 $as_echo "no" >&6; } 7260 fi 7261 7262 7263 if test "x$DIFF" = x; then 7264 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7265 fi 7266 else 7267 # Otherwise we believe it is a complete path. Use it as it is. 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7269 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7271 $as_echo_n "checking for DIFF... " >&6; } 7272 if test ! -x "$tool_specified"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7274 $as_echo "not found" >&6; } 7275 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7276 fi 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7278 $as_echo "$tool_specified" >&6; } 7279 fi 7280 fi 7281 fi 7282 7283 fi 7284 7285 7286 7287 if test "x$DIFF" = x; then 7288 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7289 fi 7290 7291 7292 7293 7294 7295 # Publish this variable in the help. 7296 7297 7298 if [ -z "${DIRNAME+x}" ]; then 7299 # The variable is not set by user, try to locate tool using the code snippet 7300 for ac_prog in dirname 7301 do 7302 # Extract the first word of "$ac_prog", so it can be a program name with args. 7303 set dummy $ac_prog; ac_word=$2 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7305 $as_echo_n "checking for $ac_word... " >&6; } 7306 if ${ac_cv_path_DIRNAME+:} false; then : 7307 $as_echo_n "(cached) " >&6 7308 else 7309 case $DIRNAME in 7310 [\\/]* | ?:[\\/]*) 7311 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7312 ;; 7313 *) 7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7315 for as_dir in $PATH 7316 do 7317 IFS=$as_save_IFS 7318 test -z "$as_dir" && as_dir=. 7319 for ac_exec_ext in '' $ac_executable_extensions; do 7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7321 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7323 break 2 7324 fi 7325 done 7326 done 7327 IFS=$as_save_IFS 7328 7329 ;; 7330 esac 7331 fi 7332 DIRNAME=$ac_cv_path_DIRNAME 7333 if test -n "$DIRNAME"; then 7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7335 $as_echo "$DIRNAME" >&6; } 7336 else 7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7338 $as_echo "no" >&6; } 7339 fi 7340 7341 7342 test -n "$DIRNAME" && break 7343 done 7344 7345 else 7346 # The variable is set, but is it from the command line or the environment? 7347 7348 # Try to remove the string !DIRNAME! from our list. 7349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7351 # If it failed, the variable was not from the command line. Ignore it, 7352 # but warn the user (except for BASH, which is always set by the calling BASH). 7353 if test "xDIRNAME" != xBASH; then 7354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7355 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7356 fi 7357 # Try to locate tool using the code snippet 7358 for ac_prog in dirname 7359 do 7360 # Extract the first word of "$ac_prog", so it can be a program name with args. 7361 set dummy $ac_prog; ac_word=$2 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7363 $as_echo_n "checking for $ac_word... " >&6; } 7364 if ${ac_cv_path_DIRNAME+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366 else 7367 case $DIRNAME in 7368 [\\/]* | ?:[\\/]*) 7369 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7370 ;; 7371 *) 7372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7373 for as_dir in $PATH 7374 do 7375 IFS=$as_save_IFS 7376 test -z "$as_dir" && as_dir=. 7377 for ac_exec_ext in '' $ac_executable_extensions; do 7378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7379 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7381 break 2 7382 fi 7383 done 7384 done 7385 IFS=$as_save_IFS 7386 7387 ;; 7388 esac 7389 fi 7390 DIRNAME=$ac_cv_path_DIRNAME 7391 if test -n "$DIRNAME"; then 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7393 $as_echo "$DIRNAME" >&6; } 7394 else 7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7396 $as_echo "no" >&6; } 7397 fi 7398 7399 7400 test -n "$DIRNAME" && break 7401 done 7402 7403 else 7404 # If it succeeded, then it was overridden by the user. We will use it 7405 # for the tool. 7406 7407 # First remove it from the list of overridden variables, so we can test 7408 # for unknown variables in the end. 7409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7410 7411 # Check if we try to supply an empty value 7412 if test "x$DIRNAME" = x; then 7413 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7414 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7416 $as_echo_n "checking for DIRNAME... " >&6; } 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7418 $as_echo "disabled" >&6; } 7419 else 7420 # Check if the provided tool contains a complete path. 7421 tool_specified="$DIRNAME" 7422 tool_basename="${tool_specified##*/}" 7423 if test "x$tool_basename" = "x$tool_specified"; then 7424 # A command without a complete path is provided, search $PATH. 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7426 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7427 # Extract the first word of "$tool_basename", so it can be a program name with args. 7428 set dummy $tool_basename; ac_word=$2 7429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7430 $as_echo_n "checking for $ac_word... " >&6; } 7431 if ${ac_cv_path_DIRNAME+:} false; then : 7432 $as_echo_n "(cached) " >&6 7433 else 7434 case $DIRNAME in 7435 [\\/]* | ?:[\\/]*) 7436 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7437 ;; 7438 *) 7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440 for as_dir in $PATH 7441 do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7446 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450 done 7451 done 7452 IFS=$as_save_IFS 7453 7454 ;; 7455 esac 7456 fi 7457 DIRNAME=$ac_cv_path_DIRNAME 7458 if test -n "$DIRNAME"; then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7460 $as_echo "$DIRNAME" >&6; } 7461 else 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7463 $as_echo "no" >&6; } 7464 fi 7465 7466 7467 if test "x$DIRNAME" = x; then 7468 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7469 fi 7470 else 7471 # Otherwise we believe it is a complete path. Use it as it is. 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7473 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7475 $as_echo_n "checking for DIRNAME... " >&6; } 7476 if test ! -x "$tool_specified"; then 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7478 $as_echo "not found" >&6; } 7479 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7480 fi 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7482 $as_echo "$tool_specified" >&6; } 7483 fi 7484 fi 7485 fi 7486 7487 fi 7488 7489 7490 7491 if test "x$DIRNAME" = x; then 7492 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7493 fi 7494 7495 7496 7497 7498 7499 # Publish this variable in the help. 7500 7501 7502 if [ -z "${ECHO+x}" ]; then 7503 # The variable is not set by user, try to locate tool using the code snippet 7504 for ac_prog in echo 7505 do 7506 # Extract the first word of "$ac_prog", so it can be a program name with args. 7507 set dummy $ac_prog; ac_word=$2 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7509 $as_echo_n "checking for $ac_word... " >&6; } 7510 if ${ac_cv_path_ECHO+:} false; then : 7511 $as_echo_n "(cached) " >&6 7512 else 7513 case $ECHO in 7514 [\\/]* | ?:[\\/]*) 7515 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7516 ;; 7517 *) 7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7519 for as_dir in $PATH 7520 do 7521 IFS=$as_save_IFS 7522 test -z "$as_dir" && as_dir=. 7523 for ac_exec_ext in '' $ac_executable_extensions; do 7524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7525 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7527 break 2 7528 fi 7529 done 7530 done 7531 IFS=$as_save_IFS 7532 7533 ;; 7534 esac 7535 fi 7536 ECHO=$ac_cv_path_ECHO 7537 if test -n "$ECHO"; then 7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7539 $as_echo "$ECHO" >&6; } 7540 else 7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7542 $as_echo "no" >&6; } 7543 fi 7544 7545 7546 test -n "$ECHO" && break 7547 done 7548 7549 else 7550 # The variable is set, but is it from the command line or the environment? 7551 7552 # Try to remove the string !ECHO! from our list. 7553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7555 # If it failed, the variable was not from the command line. Ignore it, 7556 # but warn the user (except for BASH, which is always set by the calling BASH). 7557 if test "xECHO" != xBASH; then 7558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7559 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7560 fi 7561 # Try to locate tool using the code snippet 7562 for ac_prog in echo 7563 do 7564 # Extract the first word of "$ac_prog", so it can be a program name with args. 7565 set dummy $ac_prog; ac_word=$2 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7567 $as_echo_n "checking for $ac_word... " >&6; } 7568 if ${ac_cv_path_ECHO+:} false; then : 7569 $as_echo_n "(cached) " >&6 7570 else 7571 case $ECHO in 7572 [\\/]* | ?:[\\/]*) 7573 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7574 ;; 7575 *) 7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7577 for as_dir in $PATH 7578 do 7579 IFS=$as_save_IFS 7580 test -z "$as_dir" && as_dir=. 7581 for ac_exec_ext in '' $ac_executable_extensions; do 7582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7583 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7585 break 2 7586 fi 7587 done 7588 done 7589 IFS=$as_save_IFS 7590 7591 ;; 7592 esac 7593 fi 7594 ECHO=$ac_cv_path_ECHO 7595 if test -n "$ECHO"; then 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7597 $as_echo "$ECHO" >&6; } 7598 else 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7600 $as_echo "no" >&6; } 7601 fi 7602 7603 7604 test -n "$ECHO" && break 7605 done 7606 7607 else 7608 # If it succeeded, then it was overridden by the user. We will use it 7609 # for the tool. 7610 7611 # First remove it from the list of overridden variables, so we can test 7612 # for unknown variables in the end. 7613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7614 7615 # Check if we try to supply an empty value 7616 if test "x$ECHO" = x; then 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7618 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7620 $as_echo_n "checking for ECHO... " >&6; } 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7622 $as_echo "disabled" >&6; } 7623 else 7624 # Check if the provided tool contains a complete path. 7625 tool_specified="$ECHO" 7626 tool_basename="${tool_specified##*/}" 7627 if test "x$tool_basename" = "x$tool_specified"; then 7628 # A command without a complete path is provided, search $PATH. 7629 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7630 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7631 # Extract the first word of "$tool_basename", so it can be a program name with args. 7632 set dummy $tool_basename; ac_word=$2 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7634 $as_echo_n "checking for $ac_word... " >&6; } 7635 if ${ac_cv_path_ECHO+:} false; then : 7636 $as_echo_n "(cached) " >&6 7637 else 7638 case $ECHO in 7639 [\\/]* | ?:[\\/]*) 7640 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7641 ;; 7642 *) 7643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7644 for as_dir in $PATH 7645 do 7646 IFS=$as_save_IFS 7647 test -z "$as_dir" && as_dir=. 7648 for ac_exec_ext in '' $ac_executable_extensions; do 7649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7650 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7652 break 2 7653 fi 7654 done 7655 done 7656 IFS=$as_save_IFS 7657 7658 ;; 7659 esac 7660 fi 7661 ECHO=$ac_cv_path_ECHO 7662 if test -n "$ECHO"; then 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7664 $as_echo "$ECHO" >&6; } 7665 else 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7667 $as_echo "no" >&6; } 7668 fi 7669 7670 7671 if test "x$ECHO" = x; then 7672 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7673 fi 7674 else 7675 # Otherwise we believe it is a complete path. Use it as it is. 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7677 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7679 $as_echo_n "checking for ECHO... " >&6; } 7680 if test ! -x "$tool_specified"; then 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7682 $as_echo "not found" >&6; } 7683 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7684 fi 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7686 $as_echo "$tool_specified" >&6; } 7687 fi 7688 fi 7689 fi 7690 7691 fi 7692 7693 7694 7695 if test "x$ECHO" = x; then 7696 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7697 fi 7698 7699 7700 7701 7702 7703 # Publish this variable in the help. 7704 7705 7706 if [ -z "${EXPR+x}" ]; then 7707 # The variable is not set by user, try to locate tool using the code snippet 7708 for ac_prog in expr 7709 do 7710 # Extract the first word of "$ac_prog", so it can be a program name with args. 7711 set dummy $ac_prog; ac_word=$2 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7713 $as_echo_n "checking for $ac_word... " >&6; } 7714 if ${ac_cv_path_EXPR+:} false; then : 7715 $as_echo_n "(cached) " >&6 7716 else 7717 case $EXPR in 7718 [\\/]* | ?:[\\/]*) 7719 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7720 ;; 7721 *) 7722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7723 for as_dir in $PATH 7724 do 7725 IFS=$as_save_IFS 7726 test -z "$as_dir" && as_dir=. 7727 for ac_exec_ext in '' $ac_executable_extensions; do 7728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7729 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7731 break 2 7732 fi 7733 done 7734 done 7735 IFS=$as_save_IFS 7736 7737 ;; 7738 esac 7739 fi 7740 EXPR=$ac_cv_path_EXPR 7741 if test -n "$EXPR"; then 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7743 $as_echo "$EXPR" >&6; } 7744 else 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7746 $as_echo "no" >&6; } 7747 fi 7748 7749 7750 test -n "$EXPR" && break 7751 done 7752 7753 else 7754 # The variable is set, but is it from the command line or the environment? 7755 7756 # Try to remove the string !EXPR! from our list. 7757 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7758 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7759 # If it failed, the variable was not from the command line. Ignore it, 7760 # but warn the user (except for BASH, which is always set by the calling BASH). 7761 if test "xEXPR" != xBASH; then 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7763 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7764 fi 7765 # Try to locate tool using the code snippet 7766 for ac_prog in expr 7767 do 7768 # Extract the first word of "$ac_prog", so it can be a program name with args. 7769 set dummy $ac_prog; ac_word=$2 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7771 $as_echo_n "checking for $ac_word... " >&6; } 7772 if ${ac_cv_path_EXPR+:} false; then : 7773 $as_echo_n "(cached) " >&6 7774 else 7775 case $EXPR in 7776 [\\/]* | ?:[\\/]*) 7777 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7778 ;; 7779 *) 7780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7781 for as_dir in $PATH 7782 do 7783 IFS=$as_save_IFS 7784 test -z "$as_dir" && as_dir=. 7785 for ac_exec_ext in '' $ac_executable_extensions; do 7786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7787 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7789 break 2 7790 fi 7791 done 7792 done 7793 IFS=$as_save_IFS 7794 7795 ;; 7796 esac 7797 fi 7798 EXPR=$ac_cv_path_EXPR 7799 if test -n "$EXPR"; then 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7801 $as_echo "$EXPR" >&6; } 7802 else 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7804 $as_echo "no" >&6; } 7805 fi 7806 7807 7808 test -n "$EXPR" && break 7809 done 7810 7811 else 7812 # If it succeeded, then it was overridden by the user. We will use it 7813 # for the tool. 7814 7815 # First remove it from the list of overridden variables, so we can test 7816 # for unknown variables in the end. 7817 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7818 7819 # Check if we try to supply an empty value 7820 if test "x$EXPR" = x; then 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7822 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7824 $as_echo_n "checking for EXPR... " >&6; } 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7826 $as_echo "disabled" >&6; } 7827 else 7828 # Check if the provided tool contains a complete path. 7829 tool_specified="$EXPR" 7830 tool_basename="${tool_specified##*/}" 7831 if test "x$tool_basename" = "x$tool_specified"; then 7832 # A command without a complete path is provided, search $PATH. 7833 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7834 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7835 # Extract the first word of "$tool_basename", so it can be a program name with args. 7836 set dummy $tool_basename; ac_word=$2 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7838 $as_echo_n "checking for $ac_word... " >&6; } 7839 if ${ac_cv_path_EXPR+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841 else 7842 case $EXPR in 7843 [\\/]* | ?:[\\/]*) 7844 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7845 ;; 7846 *) 7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848 for as_dir in $PATH 7849 do 7850 IFS=$as_save_IFS 7851 test -z "$as_dir" && as_dir=. 7852 for ac_exec_ext in '' $ac_executable_extensions; do 7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 break 2 7857 fi 7858 done 7859 done 7860 IFS=$as_save_IFS 7861 7862 ;; 7863 esac 7864 fi 7865 EXPR=$ac_cv_path_EXPR 7866 if test -n "$EXPR"; then 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7868 $as_echo "$EXPR" >&6; } 7869 else 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871 $as_echo "no" >&6; } 7872 fi 7873 7874 7875 if test "x$EXPR" = x; then 7876 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7877 fi 7878 else 7879 # Otherwise we believe it is a complete path. Use it as it is. 7880 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7881 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7883 $as_echo_n "checking for EXPR... " >&6; } 7884 if test ! -x "$tool_specified"; then 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7886 $as_echo "not found" >&6; } 7887 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7888 fi 7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7890 $as_echo "$tool_specified" >&6; } 7891 fi 7892 fi 7893 fi 7894 7895 fi 7896 7897 7898 7899 if test "x$EXPR" = x; then 7900 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7901 fi 7902 7903 7904 7905 7906 7907 # Publish this variable in the help. 7908 7909 7910 if [ -z "${FILE+x}" ]; then 7911 # The variable is not set by user, try to locate tool using the code snippet 7912 for ac_prog in file 7913 do 7914 # Extract the first word of "$ac_prog", so it can be a program name with args. 7915 set dummy $ac_prog; ac_word=$2 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7917 $as_echo_n "checking for $ac_word... " >&6; } 7918 if ${ac_cv_path_FILE+:} false; then : 7919 $as_echo_n "(cached) " >&6 7920 else 7921 case $FILE in 7922 [\\/]* | ?:[\\/]*) 7923 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7924 ;; 7925 *) 7926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7927 for as_dir in $PATH 7928 do 7929 IFS=$as_save_IFS 7930 test -z "$as_dir" && as_dir=. 7931 for ac_exec_ext in '' $ac_executable_extensions; do 7932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7933 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7935 break 2 7936 fi 7937 done 7938 done 7939 IFS=$as_save_IFS 7940 7941 ;; 7942 esac 7943 fi 7944 FILE=$ac_cv_path_FILE 7945 if test -n "$FILE"; then 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7947 $as_echo "$FILE" >&6; } 7948 else 7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7950 $as_echo "no" >&6; } 7951 fi 7952 7953 7954 test -n "$FILE" && break 7955 done 7956 7957 else 7958 # The variable is set, but is it from the command line or the environment? 7959 7960 # Try to remove the string !FILE! from our list. 7961 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7962 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7963 # If it failed, the variable was not from the command line. Ignore it, 7964 # but warn the user (except for BASH, which is always set by the calling BASH). 7965 if test "xFILE" != xBASH; then 7966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7967 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7968 fi 7969 # Try to locate tool using the code snippet 7970 for ac_prog in file 7971 do 7972 # Extract the first word of "$ac_prog", so it can be a program name with args. 7973 set dummy $ac_prog; ac_word=$2 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7975 $as_echo_n "checking for $ac_word... " >&6; } 7976 if ${ac_cv_path_FILE+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978 else 7979 case $FILE in 7980 [\\/]* | ?:[\\/]*) 7981 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7982 ;; 7983 *) 7984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7985 for as_dir in $PATH 7986 do 7987 IFS=$as_save_IFS 7988 test -z "$as_dir" && as_dir=. 7989 for ac_exec_ext in '' $ac_executable_extensions; do 7990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7991 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7993 break 2 7994 fi 7995 done 7996 done 7997 IFS=$as_save_IFS 7998 7999 ;; 8000 esac 8001 fi 8002 FILE=$ac_cv_path_FILE 8003 if test -n "$FILE"; then 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8005 $as_echo "$FILE" >&6; } 8006 else 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8008 $as_echo "no" >&6; } 8009 fi 8010 8011 8012 test -n "$FILE" && break 8013 done 8014 8015 else 8016 # If it succeeded, then it was overridden by the user. We will use it 8017 # for the tool. 8018 8019 # First remove it from the list of overridden variables, so we can test 8020 # for unknown variables in the end. 8021 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8022 8023 # Check if we try to supply an empty value 8024 if test "x$FILE" = x; then 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 8026 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8028 $as_echo_n "checking for FILE... " >&6; } 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8030 $as_echo "disabled" >&6; } 8031 else 8032 # Check if the provided tool contains a complete path. 8033 tool_specified="$FILE" 8034 tool_basename="${tool_specified##*/}" 8035 if test "x$tool_basename" = "x$tool_specified"; then 8036 # A command without a complete path is provided, search $PATH. 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8038 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8039 # Extract the first word of "$tool_basename", so it can be a program name with args. 8040 set dummy $tool_basename; ac_word=$2 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8042 $as_echo_n "checking for $ac_word... " >&6; } 8043 if ${ac_cv_path_FILE+:} false; then : 8044 $as_echo_n "(cached) " >&6 8045 else 8046 case $FILE in 8047 [\\/]* | ?:[\\/]*) 8048 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8049 ;; 8050 *) 8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8052 for as_dir in $PATH 8053 do 8054 IFS=$as_save_IFS 8055 test -z "$as_dir" && as_dir=. 8056 for ac_exec_ext in '' $ac_executable_extensions; do 8057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8058 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8060 break 2 8061 fi 8062 done 8063 done 8064 IFS=$as_save_IFS 8065 8066 ;; 8067 esac 8068 fi 8069 FILE=$ac_cv_path_FILE 8070 if test -n "$FILE"; then 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8072 $as_echo "$FILE" >&6; } 8073 else 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8075 $as_echo "no" >&6; } 8076 fi 8077 8078 8079 if test "x$FILE" = x; then 8080 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8081 fi 8082 else 8083 # Otherwise we believe it is a complete path. Use it as it is. 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8085 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8087 $as_echo_n "checking for FILE... " >&6; } 8088 if test ! -x "$tool_specified"; then 8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8090 $as_echo "not found" >&6; } 8091 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8092 fi 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8094 $as_echo "$tool_specified" >&6; } 8095 fi 8096 fi 8097 fi 8098 8099 fi 8100 8101 8102 8103 if test "x$FILE" = x; then 8104 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8105 fi 8106 8107 8108 8109 8110 8111 # Publish this variable in the help. 8112 8113 8114 if [ -z "${FIND+x}" ]; then 8115 # The variable is not set by user, try to locate tool using the code snippet 8116 for ac_prog in find 8117 do 8118 # Extract the first word of "$ac_prog", so it can be a program name with args. 8119 set dummy $ac_prog; ac_word=$2 8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8121 $as_echo_n "checking for $ac_word... " >&6; } 8122 if ${ac_cv_path_FIND+:} false; then : 8123 $as_echo_n "(cached) " >&6 8124 else 8125 case $FIND in 8126 [\\/]* | ?:[\\/]*) 8127 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8128 ;; 8129 *) 8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8131 for as_dir in $PATH 8132 do 8133 IFS=$as_save_IFS 8134 test -z "$as_dir" && as_dir=. 8135 for ac_exec_ext in '' $ac_executable_extensions; do 8136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8137 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8139 break 2 8140 fi 8141 done 8142 done 8143 IFS=$as_save_IFS 8144 8145 ;; 8146 esac 8147 fi 8148 FIND=$ac_cv_path_FIND 8149 if test -n "$FIND"; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8151 $as_echo "$FIND" >&6; } 8152 else 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8154 $as_echo "no" >&6; } 8155 fi 8156 8157 8158 test -n "$FIND" && break 8159 done 8160 8161 else 8162 # The variable is set, but is it from the command line or the environment? 8163 8164 # Try to remove the string !FIND! from our list. 8165 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8166 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8167 # If it failed, the variable was not from the command line. Ignore it, 8168 # but warn the user (except for BASH, which is always set by the calling BASH). 8169 if test "xFIND" != xBASH; then 8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8171 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8172 fi 8173 # Try to locate tool using the code snippet 8174 for ac_prog in find 8175 do 8176 # Extract the first word of "$ac_prog", so it can be a program name with args. 8177 set dummy $ac_prog; ac_word=$2 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8179 $as_echo_n "checking for $ac_word... " >&6; } 8180 if ${ac_cv_path_FIND+:} false; then : 8181 $as_echo_n "(cached) " >&6 8182 else 8183 case $FIND in 8184 [\\/]* | ?:[\\/]*) 8185 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8186 ;; 8187 *) 8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8189 for as_dir in $PATH 8190 do 8191 IFS=$as_save_IFS 8192 test -z "$as_dir" && as_dir=. 8193 for ac_exec_ext in '' $ac_executable_extensions; do 8194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8195 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8197 break 2 8198 fi 8199 done 8200 done 8201 IFS=$as_save_IFS 8202 8203 ;; 8204 esac 8205 fi 8206 FIND=$ac_cv_path_FIND 8207 if test -n "$FIND"; then 8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8209 $as_echo "$FIND" >&6; } 8210 else 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8212 $as_echo "no" >&6; } 8213 fi 8214 8215 8216 test -n "$FIND" && break 8217 done 8218 8219 else 8220 # If it succeeded, then it was overridden by the user. We will use it 8221 # for the tool. 8222 8223 # First remove it from the list of overridden variables, so we can test 8224 # for unknown variables in the end. 8225 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8226 8227 # Check if we try to supply an empty value 8228 if test "x$FIND" = x; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8230 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8232 $as_echo_n "checking for FIND... " >&6; } 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8234 $as_echo "disabled" >&6; } 8235 else 8236 # Check if the provided tool contains a complete path. 8237 tool_specified="$FIND" 8238 tool_basename="${tool_specified##*/}" 8239 if test "x$tool_basename" = "x$tool_specified"; then 8240 # A command without a complete path is provided, search $PATH. 8241 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8242 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8243 # Extract the first word of "$tool_basename", so it can be a program name with args. 8244 set dummy $tool_basename; ac_word=$2 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8246 $as_echo_n "checking for $ac_word... " >&6; } 8247 if ${ac_cv_path_FIND+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249 else 8250 case $FIND in 8251 [\\/]* | ?:[\\/]*) 8252 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8253 ;; 8254 *) 8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8256 for as_dir in $PATH 8257 do 8258 IFS=$as_save_IFS 8259 test -z "$as_dir" && as_dir=. 8260 for ac_exec_ext in '' $ac_executable_extensions; do 8261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8262 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8264 break 2 8265 fi 8266 done 8267 done 8268 IFS=$as_save_IFS 8269 8270 ;; 8271 esac 8272 fi 8273 FIND=$ac_cv_path_FIND 8274 if test -n "$FIND"; then 8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8276 $as_echo "$FIND" >&6; } 8277 else 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8279 $as_echo "no" >&6; } 8280 fi 8281 8282 8283 if test "x$FIND" = x; then 8284 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8285 fi 8286 else 8287 # Otherwise we believe it is a complete path. Use it as it is. 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8289 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8291 $as_echo_n "checking for FIND... " >&6; } 8292 if test ! -x "$tool_specified"; then 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8294 $as_echo "not found" >&6; } 8295 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8296 fi 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8298 $as_echo "$tool_specified" >&6; } 8299 fi 8300 fi 8301 fi 8302 8303 fi 8304 8305 8306 8307 if test "x$FIND" = x; then 8308 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8309 fi 8310 8311 8312 8313 8314 8315 # Publish this variable in the help. 8316 8317 8318 if [ -z "${HEAD+x}" ]; then 8319 # The variable is not set by user, try to locate tool using the code snippet 8320 for ac_prog in head 8321 do 8322 # Extract the first word of "$ac_prog", so it can be a program name with args. 8323 set dummy $ac_prog; ac_word=$2 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8325 $as_echo_n "checking for $ac_word... " >&6; } 8326 if ${ac_cv_path_HEAD+:} false; then : 8327 $as_echo_n "(cached) " >&6 8328 else 8329 case $HEAD in 8330 [\\/]* | ?:[\\/]*) 8331 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8332 ;; 8333 *) 8334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8335 for as_dir in $PATH 8336 do 8337 IFS=$as_save_IFS 8338 test -z "$as_dir" && as_dir=. 8339 for ac_exec_ext in '' $ac_executable_extensions; do 8340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8341 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8343 break 2 8344 fi 8345 done 8346 done 8347 IFS=$as_save_IFS 8348 8349 ;; 8350 esac 8351 fi 8352 HEAD=$ac_cv_path_HEAD 8353 if test -n "$HEAD"; then 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8355 $as_echo "$HEAD" >&6; } 8356 else 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8358 $as_echo "no" >&6; } 8359 fi 8360 8361 8362 test -n "$HEAD" && break 8363 done 8364 8365 else 8366 # The variable is set, but is it from the command line or the environment? 8367 8368 # Try to remove the string !HEAD! from our list. 8369 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8370 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8371 # If it failed, the variable was not from the command line. Ignore it, 8372 # but warn the user (except for BASH, which is always set by the calling BASH). 8373 if test "xHEAD" != xBASH; then 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8375 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8376 fi 8377 # Try to locate tool using the code snippet 8378 for ac_prog in head 8379 do 8380 # Extract the first word of "$ac_prog", so it can be a program name with args. 8381 set dummy $ac_prog; ac_word=$2 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8383 $as_echo_n "checking for $ac_word... " >&6; } 8384 if ${ac_cv_path_HEAD+:} false; then : 8385 $as_echo_n "(cached) " >&6 8386 else 8387 case $HEAD in 8388 [\\/]* | ?:[\\/]*) 8389 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8390 ;; 8391 *) 8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8393 for as_dir in $PATH 8394 do 8395 IFS=$as_save_IFS 8396 test -z "$as_dir" && as_dir=. 8397 for ac_exec_ext in '' $ac_executable_extensions; do 8398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8399 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8401 break 2 8402 fi 8403 done 8404 done 8405 IFS=$as_save_IFS 8406 8407 ;; 8408 esac 8409 fi 8410 HEAD=$ac_cv_path_HEAD 8411 if test -n "$HEAD"; then 8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8413 $as_echo "$HEAD" >&6; } 8414 else 8415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8416 $as_echo "no" >&6; } 8417 fi 8418 8419 8420 test -n "$HEAD" && break 8421 done 8422 8423 else 8424 # If it succeeded, then it was overridden by the user. We will use it 8425 # for the tool. 8426 8427 # First remove it from the list of overridden variables, so we can test 8428 # for unknown variables in the end. 8429 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8430 8431 # Check if we try to supply an empty value 8432 if test "x$HEAD" = x; then 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8434 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8436 $as_echo_n "checking for HEAD... " >&6; } 8437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8438 $as_echo "disabled" >&6; } 8439 else 8440 # Check if the provided tool contains a complete path. 8441 tool_specified="$HEAD" 8442 tool_basename="${tool_specified##*/}" 8443 if test "x$tool_basename" = "x$tool_specified"; then 8444 # A command without a complete path is provided, search $PATH. 8445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8446 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8447 # Extract the first word of "$tool_basename", so it can be a program name with args. 8448 set dummy $tool_basename; ac_word=$2 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8450 $as_echo_n "checking for $ac_word... " >&6; } 8451 if ${ac_cv_path_HEAD+:} false; then : 8452 $as_echo_n "(cached) " >&6 8453 else 8454 case $HEAD in 8455 [\\/]* | ?:[\\/]*) 8456 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8457 ;; 8458 *) 8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8460 for as_dir in $PATH 8461 do 8462 IFS=$as_save_IFS 8463 test -z "$as_dir" && as_dir=. 8464 for ac_exec_ext in '' $ac_executable_extensions; do 8465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8466 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8468 break 2 8469 fi 8470 done 8471 done 8472 IFS=$as_save_IFS 8473 8474 ;; 8475 esac 8476 fi 8477 HEAD=$ac_cv_path_HEAD 8478 if test -n "$HEAD"; then 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8480 $as_echo "$HEAD" >&6; } 8481 else 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8483 $as_echo "no" >&6; } 8484 fi 8485 8486 8487 if test "x$HEAD" = x; then 8488 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8489 fi 8490 else 8491 # Otherwise we believe it is a complete path. Use it as it is. 8492 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8493 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8495 $as_echo_n "checking for HEAD... " >&6; } 8496 if test ! -x "$tool_specified"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8498 $as_echo "not found" >&6; } 8499 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8500 fi 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8502 $as_echo "$tool_specified" >&6; } 8503 fi 8504 fi 8505 fi 8506 8507 fi 8508 8509 8510 8511 if test "x$HEAD" = x; then 8512 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8513 fi 8514 8515 8516 8517 8518 8519 # Publish this variable in the help. 8520 8521 8522 if [ -z "${GUNZIP+x}" ]; then 8523 # The variable is not set by user, try to locate tool using the code snippet 8524 for ac_prog in gunzip 8525 do 8526 # Extract the first word of "$ac_prog", so it can be a program name with args. 8527 set dummy $ac_prog; ac_word=$2 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8529 $as_echo_n "checking for $ac_word... " >&6; } 8530 if ${ac_cv_path_GUNZIP+:} false; then : 8531 $as_echo_n "(cached) " >&6 8532 else 8533 case $GUNZIP in 8534 [\\/]* | ?:[\\/]*) 8535 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8536 ;; 8537 *) 8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8539 for as_dir in $PATH 8540 do 8541 IFS=$as_save_IFS 8542 test -z "$as_dir" && as_dir=. 8543 for ac_exec_ext in '' $ac_executable_extensions; do 8544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8545 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8547 break 2 8548 fi 8549 done 8550 done 8551 IFS=$as_save_IFS 8552 8553 ;; 8554 esac 8555 fi 8556 GUNZIP=$ac_cv_path_GUNZIP 8557 if test -n "$GUNZIP"; then 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8559 $as_echo "$GUNZIP" >&6; } 8560 else 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8562 $as_echo "no" >&6; } 8563 fi 8564 8565 8566 test -n "$GUNZIP" && break 8567 done 8568 8569 else 8570 # The variable is set, but is it from the command line or the environment? 8571 8572 # Try to remove the string !GUNZIP! from our list. 8573 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8574 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8575 # If it failed, the variable was not from the command line. Ignore it, 8576 # but warn the user (except for BASH, which is always set by the calling BASH). 8577 if test "xGUNZIP" != xBASH; then 8578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8579 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8580 fi 8581 # Try to locate tool using the code snippet 8582 for ac_prog in gunzip 8583 do 8584 # Extract the first word of "$ac_prog", so it can be a program name with args. 8585 set dummy $ac_prog; ac_word=$2 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8587 $as_echo_n "checking for $ac_word... " >&6; } 8588 if ${ac_cv_path_GUNZIP+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590 else 8591 case $GUNZIP in 8592 [\\/]* | ?:[\\/]*) 8593 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8594 ;; 8595 *) 8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8597 for as_dir in $PATH 8598 do 8599 IFS=$as_save_IFS 8600 test -z "$as_dir" && as_dir=. 8601 for ac_exec_ext in '' $ac_executable_extensions; do 8602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8603 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8605 break 2 8606 fi 8607 done 8608 done 8609 IFS=$as_save_IFS 8610 8611 ;; 8612 esac 8613 fi 8614 GUNZIP=$ac_cv_path_GUNZIP 8615 if test -n "$GUNZIP"; then 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8617 $as_echo "$GUNZIP" >&6; } 8618 else 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8620 $as_echo "no" >&6; } 8621 fi 8622 8623 8624 test -n "$GUNZIP" && break 8625 done 8626 8627 else 8628 # If it succeeded, then it was overridden by the user. We will use it 8629 # for the tool. 8630 8631 # First remove it from the list of overridden variables, so we can test 8632 # for unknown variables in the end. 8633 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8634 8635 # Check if we try to supply an empty value 8636 if test "x$GUNZIP" = x; then 8637 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8638 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8640 $as_echo_n "checking for GUNZIP... " >&6; } 8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8642 $as_echo "disabled" >&6; } 8643 else 8644 # Check if the provided tool contains a complete path. 8645 tool_specified="$GUNZIP" 8646 tool_basename="${tool_specified##*/}" 8647 if test "x$tool_basename" = "x$tool_specified"; then 8648 # A command without a complete path is provided, search $PATH. 8649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8650 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8651 # Extract the first word of "$tool_basename", so it can be a program name with args. 8652 set dummy $tool_basename; ac_word=$2 8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8654 $as_echo_n "checking for $ac_word... " >&6; } 8655 if ${ac_cv_path_GUNZIP+:} false; then : 8656 $as_echo_n "(cached) " >&6 8657 else 8658 case $GUNZIP in 8659 [\\/]* | ?:[\\/]*) 8660 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8661 ;; 8662 *) 8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8664 for as_dir in $PATH 8665 do 8666 IFS=$as_save_IFS 8667 test -z "$as_dir" && as_dir=. 8668 for ac_exec_ext in '' $ac_executable_extensions; do 8669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8670 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8672 break 2 8673 fi 8674 done 8675 done 8676 IFS=$as_save_IFS 8677 8678 ;; 8679 esac 8680 fi 8681 GUNZIP=$ac_cv_path_GUNZIP 8682 if test -n "$GUNZIP"; then 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8684 $as_echo "$GUNZIP" >&6; } 8685 else 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8687 $as_echo "no" >&6; } 8688 fi 8689 8690 8691 if test "x$GUNZIP" = x; then 8692 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8693 fi 8694 else 8695 # Otherwise we believe it is a complete path. Use it as it is. 8696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8697 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8699 $as_echo_n "checking for GUNZIP... " >&6; } 8700 if test ! -x "$tool_specified"; then 8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8702 $as_echo "not found" >&6; } 8703 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8704 fi 8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8706 $as_echo "$tool_specified" >&6; } 8707 fi 8708 fi 8709 fi 8710 8711 fi 8712 8713 8714 8715 if test "x$GUNZIP" = x; then 8716 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8717 fi 8718 8719 8720 8721 8722 8723 # Publish this variable in the help. 8724 8725 8726 if [ -z "${GZIP+x}" ]; then 8727 # The variable is not set by user, try to locate tool using the code snippet 8728 for ac_prog in pigz gzip 8729 do 8730 # Extract the first word of "$ac_prog", so it can be a program name with args. 8731 set dummy $ac_prog; ac_word=$2 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8733 $as_echo_n "checking for $ac_word... " >&6; } 8734 if ${ac_cv_path_GZIP+:} false; then : 8735 $as_echo_n "(cached) " >&6 8736 else 8737 case $GZIP in 8738 [\\/]* | ?:[\\/]*) 8739 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8740 ;; 8741 *) 8742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8743 for as_dir in $PATH 8744 do 8745 IFS=$as_save_IFS 8746 test -z "$as_dir" && as_dir=. 8747 for ac_exec_ext in '' $ac_executable_extensions; do 8748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8749 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8751 break 2 8752 fi 8753 done 8754 done 8755 IFS=$as_save_IFS 8756 8757 ;; 8758 esac 8759 fi 8760 GZIP=$ac_cv_path_GZIP 8761 if test -n "$GZIP"; then 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8763 $as_echo "$GZIP" >&6; } 8764 else 8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8766 $as_echo "no" >&6; } 8767 fi 8768 8769 8770 test -n "$GZIP" && break 8771 done 8772 8773 else 8774 # The variable is set, but is it from the command line or the environment? 8775 8776 # Try to remove the string !GZIP! from our list. 8777 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8778 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8779 # If it failed, the variable was not from the command line. Ignore it, 8780 # but warn the user (except for BASH, which is always set by the calling BASH). 8781 if test "xGZIP" != xBASH; then 8782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8783 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8784 fi 8785 # Try to locate tool using the code snippet 8786 for ac_prog in pigz gzip 8787 do 8788 # Extract the first word of "$ac_prog", so it can be a program name with args. 8789 set dummy $ac_prog; ac_word=$2 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8791 $as_echo_n "checking for $ac_word... " >&6; } 8792 if ${ac_cv_path_GZIP+:} false; then : 8793 $as_echo_n "(cached) " >&6 8794 else 8795 case $GZIP in 8796 [\\/]* | ?:[\\/]*) 8797 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8798 ;; 8799 *) 8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8801 for as_dir in $PATH 8802 do 8803 IFS=$as_save_IFS 8804 test -z "$as_dir" && as_dir=. 8805 for ac_exec_ext in '' $ac_executable_extensions; do 8806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8807 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8809 break 2 8810 fi 8811 done 8812 done 8813 IFS=$as_save_IFS 8814 8815 ;; 8816 esac 8817 fi 8818 GZIP=$ac_cv_path_GZIP 8819 if test -n "$GZIP"; then 8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8821 $as_echo "$GZIP" >&6; } 8822 else 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8824 $as_echo "no" >&6; } 8825 fi 8826 8827 8828 test -n "$GZIP" && break 8829 done 8830 8831 else 8832 # If it succeeded, then it was overridden by the user. We will use it 8833 # for the tool. 8834 8835 # First remove it from the list of overridden variables, so we can test 8836 # for unknown variables in the end. 8837 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8838 8839 # Check if we try to supply an empty value 8840 if test "x$GZIP" = x; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8842 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8844 $as_echo_n "checking for GZIP... " >&6; } 8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8846 $as_echo "disabled" >&6; } 8847 else 8848 # Check if the provided tool contains a complete path. 8849 tool_specified="$GZIP" 8850 tool_basename="${tool_specified##*/}" 8851 if test "x$tool_basename" = "x$tool_specified"; then 8852 # A command without a complete path is provided, search $PATH. 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8854 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8855 # Extract the first word of "$tool_basename", so it can be a program name with args. 8856 set dummy $tool_basename; ac_word=$2 8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8858 $as_echo_n "checking for $ac_word... " >&6; } 8859 if ${ac_cv_path_GZIP+:} false; then : 8860 $as_echo_n "(cached) " >&6 8861 else 8862 case $GZIP in 8863 [\\/]* | ?:[\\/]*) 8864 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8865 ;; 8866 *) 8867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8868 for as_dir in $PATH 8869 do 8870 IFS=$as_save_IFS 8871 test -z "$as_dir" && as_dir=. 8872 for ac_exec_ext in '' $ac_executable_extensions; do 8873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8874 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8876 break 2 8877 fi 8878 done 8879 done 8880 IFS=$as_save_IFS 8881 8882 ;; 8883 esac 8884 fi 8885 GZIP=$ac_cv_path_GZIP 8886 if test -n "$GZIP"; then 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8888 $as_echo "$GZIP" >&6; } 8889 else 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8891 $as_echo "no" >&6; } 8892 fi 8893 8894 8895 if test "x$GZIP" = x; then 8896 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8897 fi 8898 else 8899 # Otherwise we believe it is a complete path. Use it as it is. 8900 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8901 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8903 $as_echo_n "checking for GZIP... " >&6; } 8904 if test ! -x "$tool_specified"; then 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8906 $as_echo "not found" >&6; } 8907 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8908 fi 8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8910 $as_echo "$tool_specified" >&6; } 8911 fi 8912 fi 8913 fi 8914 8915 fi 8916 8917 8918 8919 if test "x$GZIP" = x; then 8920 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8921 fi 8922 8923 8924 8925 8926 8927 # Publish this variable in the help. 8928 8929 8930 if [ -z "${LN+x}" ]; then 8931 # The variable is not set by user, try to locate tool using the code snippet 8932 for ac_prog in ln 8933 do 8934 # Extract the first word of "$ac_prog", so it can be a program name with args. 8935 set dummy $ac_prog; ac_word=$2 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8937 $as_echo_n "checking for $ac_word... " >&6; } 8938 if ${ac_cv_path_LN+:} false; then : 8939 $as_echo_n "(cached) " >&6 8940 else 8941 case $LN in 8942 [\\/]* | ?:[\\/]*) 8943 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8944 ;; 8945 *) 8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8947 for as_dir in $PATH 8948 do 8949 IFS=$as_save_IFS 8950 test -z "$as_dir" && as_dir=. 8951 for ac_exec_ext in '' $ac_executable_extensions; do 8952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8953 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8955 break 2 8956 fi 8957 done 8958 done 8959 IFS=$as_save_IFS 8960 8961 ;; 8962 esac 8963 fi 8964 LN=$ac_cv_path_LN 8965 if test -n "$LN"; then 8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8967 $as_echo "$LN" >&6; } 8968 else 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8970 $as_echo "no" >&6; } 8971 fi 8972 8973 8974 test -n "$LN" && break 8975 done 8976 8977 else 8978 # The variable is set, but is it from the command line or the environment? 8979 8980 # Try to remove the string !LN! from our list. 8981 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8982 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8983 # If it failed, the variable was not from the command line. Ignore it, 8984 # but warn the user (except for BASH, which is always set by the calling BASH). 8985 if test "xLN" != xBASH; then 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8987 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8988 fi 8989 # Try to locate tool using the code snippet 8990 for ac_prog in ln 8991 do 8992 # Extract the first word of "$ac_prog", so it can be a program name with args. 8993 set dummy $ac_prog; ac_word=$2 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8995 $as_echo_n "checking for $ac_word... " >&6; } 8996 if ${ac_cv_path_LN+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998 else 8999 case $LN in 9000 [\\/]* | ?:[\\/]*) 9001 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9002 ;; 9003 *) 9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9005 for as_dir in $PATH 9006 do 9007 IFS=$as_save_IFS 9008 test -z "$as_dir" && as_dir=. 9009 for ac_exec_ext in '' $ac_executable_extensions; do 9010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9011 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9013 break 2 9014 fi 9015 done 9016 done 9017 IFS=$as_save_IFS 9018 9019 ;; 9020 esac 9021 fi 9022 LN=$ac_cv_path_LN 9023 if test -n "$LN"; then 9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9025 $as_echo "$LN" >&6; } 9026 else 9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9028 $as_echo "no" >&6; } 9029 fi 9030 9031 9032 test -n "$LN" && break 9033 done 9034 9035 else 9036 # If it succeeded, then it was overridden by the user. We will use it 9037 # for the tool. 9038 9039 # First remove it from the list of overridden variables, so we can test 9040 # for unknown variables in the end. 9041 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9042 9043 # Check if we try to supply an empty value 9044 if test "x$LN" = x; then 9045 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9046 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9048 $as_echo_n "checking for LN... " >&6; } 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9050 $as_echo "disabled" >&6; } 9051 else 9052 # Check if the provided tool contains a complete path. 9053 tool_specified="$LN" 9054 tool_basename="${tool_specified##*/}" 9055 if test "x$tool_basename" = "x$tool_specified"; then 9056 # A command without a complete path is provided, search $PATH. 9057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9058 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9059 # Extract the first word of "$tool_basename", so it can be a program name with args. 9060 set dummy $tool_basename; ac_word=$2 9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9062 $as_echo_n "checking for $ac_word... " >&6; } 9063 if ${ac_cv_path_LN+:} false; then : 9064 $as_echo_n "(cached) " >&6 9065 else 9066 case $LN in 9067 [\\/]* | ?:[\\/]*) 9068 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9069 ;; 9070 *) 9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9072 for as_dir in $PATH 9073 do 9074 IFS=$as_save_IFS 9075 test -z "$as_dir" && as_dir=. 9076 for ac_exec_ext in '' $ac_executable_extensions; do 9077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9078 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9080 break 2 9081 fi 9082 done 9083 done 9084 IFS=$as_save_IFS 9085 9086 ;; 9087 esac 9088 fi 9089 LN=$ac_cv_path_LN 9090 if test -n "$LN"; then 9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9092 $as_echo "$LN" >&6; } 9093 else 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9095 $as_echo "no" >&6; } 9096 fi 9097 9098 9099 if test "x$LN" = x; then 9100 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9101 fi 9102 else 9103 # Otherwise we believe it is a complete path. Use it as it is. 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9105 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9107 $as_echo_n "checking for LN... " >&6; } 9108 if test ! -x "$tool_specified"; then 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9110 $as_echo "not found" >&6; } 9111 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9112 fi 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9114 $as_echo "$tool_specified" >&6; } 9115 fi 9116 fi 9117 fi 9118 9119 fi 9120 9121 9122 9123 if test "x$LN" = x; then 9124 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9125 fi 9126 9127 9128 9129 9130 9131 # Publish this variable in the help. 9132 9133 9134 if [ -z "${LS+x}" ]; then 9135 # The variable is not set by user, try to locate tool using the code snippet 9136 for ac_prog in ls 9137 do 9138 # Extract the first word of "$ac_prog", so it can be a program name with args. 9139 set dummy $ac_prog; ac_word=$2 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9141 $as_echo_n "checking for $ac_word... " >&6; } 9142 if ${ac_cv_path_LS+:} false; then : 9143 $as_echo_n "(cached) " >&6 9144 else 9145 case $LS in 9146 [\\/]* | ?:[\\/]*) 9147 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9148 ;; 9149 *) 9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9151 for as_dir in $PATH 9152 do 9153 IFS=$as_save_IFS 9154 test -z "$as_dir" && as_dir=. 9155 for ac_exec_ext in '' $ac_executable_extensions; do 9156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9157 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9159 break 2 9160 fi 9161 done 9162 done 9163 IFS=$as_save_IFS 9164 9165 ;; 9166 esac 9167 fi 9168 LS=$ac_cv_path_LS 9169 if test -n "$LS"; then 9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9171 $as_echo "$LS" >&6; } 9172 else 9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9174 $as_echo "no" >&6; } 9175 fi 9176 9177 9178 test -n "$LS" && break 9179 done 9180 9181 else 9182 # The variable is set, but is it from the command line or the environment? 9183 9184 # Try to remove the string !LS! from our list. 9185 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9186 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9187 # If it failed, the variable was not from the command line. Ignore it, 9188 # but warn the user (except for BASH, which is always set by the calling BASH). 9189 if test "xLS" != xBASH; then 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9191 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9192 fi 9193 # Try to locate tool using the code snippet 9194 for ac_prog in ls 9195 do 9196 # Extract the first word of "$ac_prog", so it can be a program name with args. 9197 set dummy $ac_prog; ac_word=$2 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9199 $as_echo_n "checking for $ac_word... " >&6; } 9200 if ${ac_cv_path_LS+:} false; then : 9201 $as_echo_n "(cached) " >&6 9202 else 9203 case $LS in 9204 [\\/]* | ?:[\\/]*) 9205 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9206 ;; 9207 *) 9208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9209 for as_dir in $PATH 9210 do 9211 IFS=$as_save_IFS 9212 test -z "$as_dir" && as_dir=. 9213 for ac_exec_ext in '' $ac_executable_extensions; do 9214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9215 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9217 break 2 9218 fi 9219 done 9220 done 9221 IFS=$as_save_IFS 9222 9223 ;; 9224 esac 9225 fi 9226 LS=$ac_cv_path_LS 9227 if test -n "$LS"; then 9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9229 $as_echo "$LS" >&6; } 9230 else 9231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9232 $as_echo "no" >&6; } 9233 fi 9234 9235 9236 test -n "$LS" && break 9237 done 9238 9239 else 9240 # If it succeeded, then it was overridden by the user. We will use it 9241 # for the tool. 9242 9243 # First remove it from the list of overridden variables, so we can test 9244 # for unknown variables in the end. 9245 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9246 9247 # Check if we try to supply an empty value 9248 if test "x$LS" = x; then 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9250 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9252 $as_echo_n "checking for LS... " >&6; } 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9254 $as_echo "disabled" >&6; } 9255 else 9256 # Check if the provided tool contains a complete path. 9257 tool_specified="$LS" 9258 tool_basename="${tool_specified##*/}" 9259 if test "x$tool_basename" = "x$tool_specified"; then 9260 # A command without a complete path is provided, search $PATH. 9261 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9262 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9263 # Extract the first word of "$tool_basename", so it can be a program name with args. 9264 set dummy $tool_basename; ac_word=$2 9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9266 $as_echo_n "checking for $ac_word... " >&6; } 9267 if ${ac_cv_path_LS+:} false; then : 9268 $as_echo_n "(cached) " >&6 9269 else 9270 case $LS in 9271 [\\/]* | ?:[\\/]*) 9272 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9273 ;; 9274 *) 9275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9276 for as_dir in $PATH 9277 do 9278 IFS=$as_save_IFS 9279 test -z "$as_dir" && as_dir=. 9280 for ac_exec_ext in '' $ac_executable_extensions; do 9281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9282 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9284 break 2 9285 fi 9286 done 9287 done 9288 IFS=$as_save_IFS 9289 9290 ;; 9291 esac 9292 fi 9293 LS=$ac_cv_path_LS 9294 if test -n "$LS"; then 9295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9296 $as_echo "$LS" >&6; } 9297 else 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9299 $as_echo "no" >&6; } 9300 fi 9301 9302 9303 if test "x$LS" = x; then 9304 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9305 fi 9306 else 9307 # Otherwise we believe it is a complete path. Use it as it is. 9308 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9309 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9311 $as_echo_n "checking for LS... " >&6; } 9312 if test ! -x "$tool_specified"; then 9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9314 $as_echo "not found" >&6; } 9315 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9316 fi 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9318 $as_echo "$tool_specified" >&6; } 9319 fi 9320 fi 9321 fi 9322 9323 fi 9324 9325 9326 9327 if test "x$LS" = x; then 9328 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9329 fi 9330 9331 9332 9333 9334 9335 # Publish this variable in the help. 9336 9337 9338 if [ -z "${MKDIR+x}" ]; then 9339 # The variable is not set by user, try to locate tool using the code snippet 9340 for ac_prog in mkdir 9341 do 9342 # Extract the first word of "$ac_prog", so it can be a program name with args. 9343 set dummy $ac_prog; ac_word=$2 9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9345 $as_echo_n "checking for $ac_word... " >&6; } 9346 if ${ac_cv_path_MKDIR+:} false; then : 9347 $as_echo_n "(cached) " >&6 9348 else 9349 case $MKDIR in 9350 [\\/]* | ?:[\\/]*) 9351 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9352 ;; 9353 *) 9354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9355 for as_dir in $PATH 9356 do 9357 IFS=$as_save_IFS 9358 test -z "$as_dir" && as_dir=. 9359 for ac_exec_ext in '' $ac_executable_extensions; do 9360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9361 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9363 break 2 9364 fi 9365 done 9366 done 9367 IFS=$as_save_IFS 9368 9369 ;; 9370 esac 9371 fi 9372 MKDIR=$ac_cv_path_MKDIR 9373 if test -n "$MKDIR"; then 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9375 $as_echo "$MKDIR" >&6; } 9376 else 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9378 $as_echo "no" >&6; } 9379 fi 9380 9381 9382 test -n "$MKDIR" && break 9383 done 9384 9385 else 9386 # The variable is set, but is it from the command line or the environment? 9387 9388 # Try to remove the string !MKDIR! from our list. 9389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9391 # If it failed, the variable was not from the command line. Ignore it, 9392 # but warn the user (except for BASH, which is always set by the calling BASH). 9393 if test "xMKDIR" != xBASH; then 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9395 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9396 fi 9397 # Try to locate tool using the code snippet 9398 for ac_prog in mkdir 9399 do 9400 # Extract the first word of "$ac_prog", so it can be a program name with args. 9401 set dummy $ac_prog; ac_word=$2 9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9403 $as_echo_n "checking for $ac_word... " >&6; } 9404 if ${ac_cv_path_MKDIR+:} false; then : 9405 $as_echo_n "(cached) " >&6 9406 else 9407 case $MKDIR in 9408 [\\/]* | ?:[\\/]*) 9409 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9410 ;; 9411 *) 9412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9413 for as_dir in $PATH 9414 do 9415 IFS=$as_save_IFS 9416 test -z "$as_dir" && as_dir=. 9417 for ac_exec_ext in '' $ac_executable_extensions; do 9418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9419 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9421 break 2 9422 fi 9423 done 9424 done 9425 IFS=$as_save_IFS 9426 9427 ;; 9428 esac 9429 fi 9430 MKDIR=$ac_cv_path_MKDIR 9431 if test -n "$MKDIR"; then 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9433 $as_echo "$MKDIR" >&6; } 9434 else 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9436 $as_echo "no" >&6; } 9437 fi 9438 9439 9440 test -n "$MKDIR" && break 9441 done 9442 9443 else 9444 # If it succeeded, then it was overridden by the user. We will use it 9445 # for the tool. 9446 9447 # First remove it from the list of overridden variables, so we can test 9448 # for unknown variables in the end. 9449 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9450 9451 # Check if we try to supply an empty value 9452 if test "x$MKDIR" = x; then 9453 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9454 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9456 $as_echo_n "checking for MKDIR... " >&6; } 9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9458 $as_echo "disabled" >&6; } 9459 else 9460 # Check if the provided tool contains a complete path. 9461 tool_specified="$MKDIR" 9462 tool_basename="${tool_specified##*/}" 9463 if test "x$tool_basename" = "x$tool_specified"; then 9464 # A command without a complete path is provided, search $PATH. 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9466 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9467 # Extract the first word of "$tool_basename", so it can be a program name with args. 9468 set dummy $tool_basename; ac_word=$2 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9470 $as_echo_n "checking for $ac_word... " >&6; } 9471 if ${ac_cv_path_MKDIR+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473 else 9474 case $MKDIR in 9475 [\\/]* | ?:[\\/]*) 9476 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9477 ;; 9478 *) 9479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9480 for as_dir in $PATH 9481 do 9482 IFS=$as_save_IFS 9483 test -z "$as_dir" && as_dir=. 9484 for ac_exec_ext in '' $ac_executable_extensions; do 9485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9486 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9488 break 2 9489 fi 9490 done 9491 done 9492 IFS=$as_save_IFS 9493 9494 ;; 9495 esac 9496 fi 9497 MKDIR=$ac_cv_path_MKDIR 9498 if test -n "$MKDIR"; then 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9500 $as_echo "$MKDIR" >&6; } 9501 else 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9503 $as_echo "no" >&6; } 9504 fi 9505 9506 9507 if test "x$MKDIR" = x; then 9508 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9509 fi 9510 else 9511 # Otherwise we believe it is a complete path. Use it as it is. 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9513 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9515 $as_echo_n "checking for MKDIR... " >&6; } 9516 if test ! -x "$tool_specified"; then 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9518 $as_echo "not found" >&6; } 9519 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9520 fi 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9522 $as_echo "$tool_specified" >&6; } 9523 fi 9524 fi 9525 fi 9526 9527 fi 9528 9529 9530 9531 if test "x$MKDIR" = x; then 9532 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9533 fi 9534 9535 9536 9537 9538 9539 # Publish this variable in the help. 9540 9541 9542 if [ -z "${MKTEMP+x}" ]; then 9543 # The variable is not set by user, try to locate tool using the code snippet 9544 for ac_prog in mktemp 9545 do 9546 # Extract the first word of "$ac_prog", so it can be a program name with args. 9547 set dummy $ac_prog; ac_word=$2 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9549 $as_echo_n "checking for $ac_word... " >&6; } 9550 if ${ac_cv_path_MKTEMP+:} false; then : 9551 $as_echo_n "(cached) " >&6 9552 else 9553 case $MKTEMP in 9554 [\\/]* | ?:[\\/]*) 9555 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9556 ;; 9557 *) 9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9559 for as_dir in $PATH 9560 do 9561 IFS=$as_save_IFS 9562 test -z "$as_dir" && as_dir=. 9563 for ac_exec_ext in '' $ac_executable_extensions; do 9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9565 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9567 break 2 9568 fi 9569 done 9570 done 9571 IFS=$as_save_IFS 9572 9573 ;; 9574 esac 9575 fi 9576 MKTEMP=$ac_cv_path_MKTEMP 9577 if test -n "$MKTEMP"; then 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9579 $as_echo "$MKTEMP" >&6; } 9580 else 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9582 $as_echo "no" >&6; } 9583 fi 9584 9585 9586 test -n "$MKTEMP" && break 9587 done 9588 9589 else 9590 # The variable is set, but is it from the command line or the environment? 9591 9592 # Try to remove the string !MKTEMP! from our list. 9593 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9594 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9595 # If it failed, the variable was not from the command line. Ignore it, 9596 # but warn the user (except for BASH, which is always set by the calling BASH). 9597 if test "xMKTEMP" != xBASH; then 9598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9599 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9600 fi 9601 # Try to locate tool using the code snippet 9602 for ac_prog in mktemp 9603 do 9604 # Extract the first word of "$ac_prog", so it can be a program name with args. 9605 set dummy $ac_prog; ac_word=$2 9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9607 $as_echo_n "checking for $ac_word... " >&6; } 9608 if ${ac_cv_path_MKTEMP+:} false; then : 9609 $as_echo_n "(cached) " >&6 9610 else 9611 case $MKTEMP in 9612 [\\/]* | ?:[\\/]*) 9613 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9614 ;; 9615 *) 9616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9617 for as_dir in $PATH 9618 do 9619 IFS=$as_save_IFS 9620 test -z "$as_dir" && as_dir=. 9621 for ac_exec_ext in '' $ac_executable_extensions; do 9622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9623 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9625 break 2 9626 fi 9627 done 9628 done 9629 IFS=$as_save_IFS 9630 9631 ;; 9632 esac 9633 fi 9634 MKTEMP=$ac_cv_path_MKTEMP 9635 if test -n "$MKTEMP"; then 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9637 $as_echo "$MKTEMP" >&6; } 9638 else 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9640 $as_echo "no" >&6; } 9641 fi 9642 9643 9644 test -n "$MKTEMP" && break 9645 done 9646 9647 else 9648 # If it succeeded, then it was overridden by the user. We will use it 9649 # for the tool. 9650 9651 # First remove it from the list of overridden variables, so we can test 9652 # for unknown variables in the end. 9653 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9654 9655 # Check if we try to supply an empty value 9656 if test "x$MKTEMP" = x; then 9657 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9658 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9660 $as_echo_n "checking for MKTEMP... " >&6; } 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9662 $as_echo "disabled" >&6; } 9663 else 9664 # Check if the provided tool contains a complete path. 9665 tool_specified="$MKTEMP" 9666 tool_basename="${tool_specified##*/}" 9667 if test "x$tool_basename" = "x$tool_specified"; then 9668 # A command without a complete path is provided, search $PATH. 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9670 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9671 # Extract the first word of "$tool_basename", so it can be a program name with args. 9672 set dummy $tool_basename; ac_word=$2 9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9674 $as_echo_n "checking for $ac_word... " >&6; } 9675 if ${ac_cv_path_MKTEMP+:} false; then : 9676 $as_echo_n "(cached) " >&6 9677 else 9678 case $MKTEMP in 9679 [\\/]* | ?:[\\/]*) 9680 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9681 ;; 9682 *) 9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9684 for as_dir in $PATH 9685 do 9686 IFS=$as_save_IFS 9687 test -z "$as_dir" && as_dir=. 9688 for ac_exec_ext in '' $ac_executable_extensions; do 9689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9690 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9692 break 2 9693 fi 9694 done 9695 done 9696 IFS=$as_save_IFS 9697 9698 ;; 9699 esac 9700 fi 9701 MKTEMP=$ac_cv_path_MKTEMP 9702 if test -n "$MKTEMP"; then 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9704 $as_echo "$MKTEMP" >&6; } 9705 else 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9707 $as_echo "no" >&6; } 9708 fi 9709 9710 9711 if test "x$MKTEMP" = x; then 9712 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9713 fi 9714 else 9715 # Otherwise we believe it is a complete path. Use it as it is. 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9717 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9719 $as_echo_n "checking for MKTEMP... " >&6; } 9720 if test ! -x "$tool_specified"; then 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9722 $as_echo "not found" >&6; } 9723 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9724 fi 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9726 $as_echo "$tool_specified" >&6; } 9727 fi 9728 fi 9729 fi 9730 9731 fi 9732 9733 9734 9735 if test "x$MKTEMP" = x; then 9736 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9737 fi 9738 9739 9740 9741 9742 9743 # Publish this variable in the help. 9744 9745 9746 if [ -z "${MV+x}" ]; then 9747 # The variable is not set by user, try to locate tool using the code snippet 9748 for ac_prog in mv 9749 do 9750 # Extract the first word of "$ac_prog", so it can be a program name with args. 9751 set dummy $ac_prog; ac_word=$2 9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9753 $as_echo_n "checking for $ac_word... " >&6; } 9754 if ${ac_cv_path_MV+:} false; then : 9755 $as_echo_n "(cached) " >&6 9756 else 9757 case $MV in 9758 [\\/]* | ?:[\\/]*) 9759 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9760 ;; 9761 *) 9762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9763 for as_dir in $PATH 9764 do 9765 IFS=$as_save_IFS 9766 test -z "$as_dir" && as_dir=. 9767 for ac_exec_ext in '' $ac_executable_extensions; do 9768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9769 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9771 break 2 9772 fi 9773 done 9774 done 9775 IFS=$as_save_IFS 9776 9777 ;; 9778 esac 9779 fi 9780 MV=$ac_cv_path_MV 9781 if test -n "$MV"; then 9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9783 $as_echo "$MV" >&6; } 9784 else 9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9786 $as_echo "no" >&6; } 9787 fi 9788 9789 9790 test -n "$MV" && break 9791 done 9792 9793 else 9794 # The variable is set, but is it from the command line or the environment? 9795 9796 # Try to remove the string !MV! from our list. 9797 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9798 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9799 # If it failed, the variable was not from the command line. Ignore it, 9800 # but warn the user (except for BASH, which is always set by the calling BASH). 9801 if test "xMV" != xBASH; then 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9803 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9804 fi 9805 # Try to locate tool using the code snippet 9806 for ac_prog in mv 9807 do 9808 # Extract the first word of "$ac_prog", so it can be a program name with args. 9809 set dummy $ac_prog; ac_word=$2 9810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9811 $as_echo_n "checking for $ac_word... " >&6; } 9812 if ${ac_cv_path_MV+:} false; then : 9813 $as_echo_n "(cached) " >&6 9814 else 9815 case $MV in 9816 [\\/]* | ?:[\\/]*) 9817 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9818 ;; 9819 *) 9820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9821 for as_dir in $PATH 9822 do 9823 IFS=$as_save_IFS 9824 test -z "$as_dir" && as_dir=. 9825 for ac_exec_ext in '' $ac_executable_extensions; do 9826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9827 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9829 break 2 9830 fi 9831 done 9832 done 9833 IFS=$as_save_IFS 9834 9835 ;; 9836 esac 9837 fi 9838 MV=$ac_cv_path_MV 9839 if test -n "$MV"; then 9840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9841 $as_echo "$MV" >&6; } 9842 else 9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9844 $as_echo "no" >&6; } 9845 fi 9846 9847 9848 test -n "$MV" && break 9849 done 9850 9851 else 9852 # If it succeeded, then it was overridden by the user. We will use it 9853 # for the tool. 9854 9855 # First remove it from the list of overridden variables, so we can test 9856 # for unknown variables in the end. 9857 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9858 9859 # Check if we try to supply an empty value 9860 if test "x$MV" = x; then 9861 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9862 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9864 $as_echo_n "checking for MV... " >&6; } 9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9866 $as_echo "disabled" >&6; } 9867 else 9868 # Check if the provided tool contains a complete path. 9869 tool_specified="$MV" 9870 tool_basename="${tool_specified##*/}" 9871 if test "x$tool_basename" = "x$tool_specified"; then 9872 # A command without a complete path is provided, search $PATH. 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9874 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9875 # Extract the first word of "$tool_basename", so it can be a program name with args. 9876 set dummy $tool_basename; ac_word=$2 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9878 $as_echo_n "checking for $ac_word... " >&6; } 9879 if ${ac_cv_path_MV+:} false; then : 9880 $as_echo_n "(cached) " >&6 9881 else 9882 case $MV in 9883 [\\/]* | ?:[\\/]*) 9884 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9885 ;; 9886 *) 9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9888 for as_dir in $PATH 9889 do 9890 IFS=$as_save_IFS 9891 test -z "$as_dir" && as_dir=. 9892 for ac_exec_ext in '' $ac_executable_extensions; do 9893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9894 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9896 break 2 9897 fi 9898 done 9899 done 9900 IFS=$as_save_IFS 9901 9902 ;; 9903 esac 9904 fi 9905 MV=$ac_cv_path_MV 9906 if test -n "$MV"; then 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9908 $as_echo "$MV" >&6; } 9909 else 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9911 $as_echo "no" >&6; } 9912 fi 9913 9914 9915 if test "x$MV" = x; then 9916 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9917 fi 9918 else 9919 # Otherwise we believe it is a complete path. Use it as it is. 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9921 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9923 $as_echo_n "checking for MV... " >&6; } 9924 if test ! -x "$tool_specified"; then 9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9926 $as_echo "not found" >&6; } 9927 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9928 fi 9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9930 $as_echo "$tool_specified" >&6; } 9931 fi 9932 fi 9933 fi 9934 9935 fi 9936 9937 9938 9939 if test "x$MV" = x; then 9940 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9941 fi 9942 9943 9944 9945 9946 9947 # Publish this variable in the help. 9948 9949 9950 if [ -z "${NAWK+x}" ]; then 9951 # The variable is not set by user, try to locate tool using the code snippet 9952 for ac_prog in nawk gawk awk 9953 do 9954 # Extract the first word of "$ac_prog", so it can be a program name with args. 9955 set dummy $ac_prog; ac_word=$2 9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9957 $as_echo_n "checking for $ac_word... " >&6; } 9958 if ${ac_cv_path_NAWK+:} false; then : 9959 $as_echo_n "(cached) " >&6 9960 else 9961 case $NAWK in 9962 [\\/]* | ?:[\\/]*) 9963 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9964 ;; 9965 *) 9966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9967 for as_dir in $PATH 9968 do 9969 IFS=$as_save_IFS 9970 test -z "$as_dir" && as_dir=. 9971 for ac_exec_ext in '' $ac_executable_extensions; do 9972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9973 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9975 break 2 9976 fi 9977 done 9978 done 9979 IFS=$as_save_IFS 9980 9981 ;; 9982 esac 9983 fi 9984 NAWK=$ac_cv_path_NAWK 9985 if test -n "$NAWK"; then 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9987 $as_echo "$NAWK" >&6; } 9988 else 9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9990 $as_echo "no" >&6; } 9991 fi 9992 9993 9994 test -n "$NAWK" && break 9995 done 9996 9997 else 9998 # The variable is set, but is it from the command line or the environment? 9999 10000 # Try to remove the string !NAWK! from our list. 10001 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 10002 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10003 # If it failed, the variable was not from the command line. Ignore it, 10004 # but warn the user (except for BASH, which is always set by the calling BASH). 10005 if test "xNAWK" != xBASH; then 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 10007 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 10008 fi 10009 # Try to locate tool using the code snippet 10010 for ac_prog in nawk gawk awk 10011 do 10012 # Extract the first word of "$ac_prog", so it can be a program name with args. 10013 set dummy $ac_prog; ac_word=$2 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10015 $as_echo_n "checking for $ac_word... " >&6; } 10016 if ${ac_cv_path_NAWK+:} false; then : 10017 $as_echo_n "(cached) " >&6 10018 else 10019 case $NAWK in 10020 [\\/]* | ?:[\\/]*) 10021 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10022 ;; 10023 *) 10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10025 for as_dir in $PATH 10026 do 10027 IFS=$as_save_IFS 10028 test -z "$as_dir" && as_dir=. 10029 for ac_exec_ext in '' $ac_executable_extensions; do 10030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10031 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10033 break 2 10034 fi 10035 done 10036 done 10037 IFS=$as_save_IFS 10038 10039 ;; 10040 esac 10041 fi 10042 NAWK=$ac_cv_path_NAWK 10043 if test -n "$NAWK"; then 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10045 $as_echo "$NAWK" >&6; } 10046 else 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10048 $as_echo "no" >&6; } 10049 fi 10050 10051 10052 test -n "$NAWK" && break 10053 done 10054 10055 else 10056 # If it succeeded, then it was overridden by the user. We will use it 10057 # for the tool. 10058 10059 # First remove it from the list of overridden variables, so we can test 10060 # for unknown variables in the end. 10061 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10062 10063 # Check if we try to supply an empty value 10064 if test "x$NAWK" = x; then 10065 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10066 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10068 $as_echo_n "checking for NAWK... " >&6; } 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10070 $as_echo "disabled" >&6; } 10071 else 10072 # Check if the provided tool contains a complete path. 10073 tool_specified="$NAWK" 10074 tool_basename="${tool_specified##*/}" 10075 if test "x$tool_basename" = "x$tool_specified"; then 10076 # A command without a complete path is provided, search $PATH. 10077 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10078 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10079 # Extract the first word of "$tool_basename", so it can be a program name with args. 10080 set dummy $tool_basename; ac_word=$2 10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10082 $as_echo_n "checking for $ac_word... " >&6; } 10083 if ${ac_cv_path_NAWK+:} false; then : 10084 $as_echo_n "(cached) " >&6 10085 else 10086 case $NAWK in 10087 [\\/]* | ?:[\\/]*) 10088 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10089 ;; 10090 *) 10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10092 for as_dir in $PATH 10093 do 10094 IFS=$as_save_IFS 10095 test -z "$as_dir" && as_dir=. 10096 for ac_exec_ext in '' $ac_executable_extensions; do 10097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10098 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10100 break 2 10101 fi 10102 done 10103 done 10104 IFS=$as_save_IFS 10105 10106 ;; 10107 esac 10108 fi 10109 NAWK=$ac_cv_path_NAWK 10110 if test -n "$NAWK"; then 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10112 $as_echo "$NAWK" >&6; } 10113 else 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10115 $as_echo "no" >&6; } 10116 fi 10117 10118 10119 if test "x$NAWK" = x; then 10120 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10121 fi 10122 else 10123 # Otherwise we believe it is a complete path. Use it as it is. 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10125 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10127 $as_echo_n "checking for NAWK... " >&6; } 10128 if test ! -x "$tool_specified"; then 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10130 $as_echo "not found" >&6; } 10131 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10132 fi 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10134 $as_echo "$tool_specified" >&6; } 10135 fi 10136 fi 10137 fi 10138 10139 fi 10140 10141 10142 10143 if test "x$NAWK" = x; then 10144 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10145 fi 10146 10147 10148 10149 10150 10151 # Publish this variable in the help. 10152 10153 10154 if [ -z "${PRINTF+x}" ]; then 10155 # The variable is not set by user, try to locate tool using the code snippet 10156 for ac_prog in printf 10157 do 10158 # Extract the first word of "$ac_prog", so it can be a program name with args. 10159 set dummy $ac_prog; ac_word=$2 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10161 $as_echo_n "checking for $ac_word... " >&6; } 10162 if ${ac_cv_path_PRINTF+:} false; then : 10163 $as_echo_n "(cached) " >&6 10164 else 10165 case $PRINTF in 10166 [\\/]* | ?:[\\/]*) 10167 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10168 ;; 10169 *) 10170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10171 for as_dir in $PATH 10172 do 10173 IFS=$as_save_IFS 10174 test -z "$as_dir" && as_dir=. 10175 for ac_exec_ext in '' $ac_executable_extensions; do 10176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10177 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10179 break 2 10180 fi 10181 done 10182 done 10183 IFS=$as_save_IFS 10184 10185 ;; 10186 esac 10187 fi 10188 PRINTF=$ac_cv_path_PRINTF 10189 if test -n "$PRINTF"; then 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10191 $as_echo "$PRINTF" >&6; } 10192 else 10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10194 $as_echo "no" >&6; } 10195 fi 10196 10197 10198 test -n "$PRINTF" && break 10199 done 10200 10201 else 10202 # The variable is set, but is it from the command line or the environment? 10203 10204 # Try to remove the string !PRINTF! from our list. 10205 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10206 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10207 # If it failed, the variable was not from the command line. Ignore it, 10208 # but warn the user (except for BASH, which is always set by the calling BASH). 10209 if test "xPRINTF" != xBASH; then 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10211 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10212 fi 10213 # Try to locate tool using the code snippet 10214 for ac_prog in printf 10215 do 10216 # Extract the first word of "$ac_prog", so it can be a program name with args. 10217 set dummy $ac_prog; ac_word=$2 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10219 $as_echo_n "checking for $ac_word... " >&6; } 10220 if ${ac_cv_path_PRINTF+:} false; then : 10221 $as_echo_n "(cached) " >&6 10222 else 10223 case $PRINTF in 10224 [\\/]* | ?:[\\/]*) 10225 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10226 ;; 10227 *) 10228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10229 for as_dir in $PATH 10230 do 10231 IFS=$as_save_IFS 10232 test -z "$as_dir" && as_dir=. 10233 for ac_exec_ext in '' $ac_executable_extensions; do 10234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10235 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10237 break 2 10238 fi 10239 done 10240 done 10241 IFS=$as_save_IFS 10242 10243 ;; 10244 esac 10245 fi 10246 PRINTF=$ac_cv_path_PRINTF 10247 if test -n "$PRINTF"; then 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10249 $as_echo "$PRINTF" >&6; } 10250 else 10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10252 $as_echo "no" >&6; } 10253 fi 10254 10255 10256 test -n "$PRINTF" && break 10257 done 10258 10259 else 10260 # If it succeeded, then it was overridden by the user. We will use it 10261 # for the tool. 10262 10263 # First remove it from the list of overridden variables, so we can test 10264 # for unknown variables in the end. 10265 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10266 10267 # Check if we try to supply an empty value 10268 if test "x$PRINTF" = x; then 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10270 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10272 $as_echo_n "checking for PRINTF... " >&6; } 10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10274 $as_echo "disabled" >&6; } 10275 else 10276 # Check if the provided tool contains a complete path. 10277 tool_specified="$PRINTF" 10278 tool_basename="${tool_specified##*/}" 10279 if test "x$tool_basename" = "x$tool_specified"; then 10280 # A command without a complete path is provided, search $PATH. 10281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10282 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10283 # Extract the first word of "$tool_basename", so it can be a program name with args. 10284 set dummy $tool_basename; ac_word=$2 10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10286 $as_echo_n "checking for $ac_word... " >&6; } 10287 if ${ac_cv_path_PRINTF+:} false; then : 10288 $as_echo_n "(cached) " >&6 10289 else 10290 case $PRINTF in 10291 [\\/]* | ?:[\\/]*) 10292 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10293 ;; 10294 *) 10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10296 for as_dir in $PATH 10297 do 10298 IFS=$as_save_IFS 10299 test -z "$as_dir" && as_dir=. 10300 for ac_exec_ext in '' $ac_executable_extensions; do 10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10302 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10304 break 2 10305 fi 10306 done 10307 done 10308 IFS=$as_save_IFS 10309 10310 ;; 10311 esac 10312 fi 10313 PRINTF=$ac_cv_path_PRINTF 10314 if test -n "$PRINTF"; then 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10316 $as_echo "$PRINTF" >&6; } 10317 else 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10319 $as_echo "no" >&6; } 10320 fi 10321 10322 10323 if test "x$PRINTF" = x; then 10324 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10325 fi 10326 else 10327 # Otherwise we believe it is a complete path. Use it as it is. 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10329 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10331 $as_echo_n "checking for PRINTF... " >&6; } 10332 if test ! -x "$tool_specified"; then 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10334 $as_echo "not found" >&6; } 10335 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10336 fi 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10338 $as_echo "$tool_specified" >&6; } 10339 fi 10340 fi 10341 fi 10342 10343 fi 10344 10345 10346 10347 if test "x$PRINTF" = x; then 10348 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10349 fi 10350 10351 10352 10353 10354 10355 # Publish this variable in the help. 10356 10357 10358 if [ -z "${RM+x}" ]; then 10359 # The variable is not set by user, try to locate tool using the code snippet 10360 for ac_prog in rm 10361 do 10362 # Extract the first word of "$ac_prog", so it can be a program name with args. 10363 set dummy $ac_prog; ac_word=$2 10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10365 $as_echo_n "checking for $ac_word... " >&6; } 10366 if ${ac_cv_path_RM+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368 else 10369 case $RM in 10370 [\\/]* | ?:[\\/]*) 10371 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10372 ;; 10373 *) 10374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10375 for as_dir in $PATH 10376 do 10377 IFS=$as_save_IFS 10378 test -z "$as_dir" && as_dir=. 10379 for ac_exec_ext in '' $ac_executable_extensions; do 10380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10381 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10383 break 2 10384 fi 10385 done 10386 done 10387 IFS=$as_save_IFS 10388 10389 ;; 10390 esac 10391 fi 10392 RM=$ac_cv_path_RM 10393 if test -n "$RM"; then 10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10395 $as_echo "$RM" >&6; } 10396 else 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10398 $as_echo "no" >&6; } 10399 fi 10400 10401 10402 test -n "$RM" && break 10403 done 10404 10405 else 10406 # The variable is set, but is it from the command line or the environment? 10407 10408 # Try to remove the string !RM! from our list. 10409 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10410 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10411 # If it failed, the variable was not from the command line. Ignore it, 10412 # but warn the user (except for BASH, which is always set by the calling BASH). 10413 if test "xRM" != xBASH; then 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10415 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10416 fi 10417 # Try to locate tool using the code snippet 10418 for ac_prog in rm 10419 do 10420 # Extract the first word of "$ac_prog", so it can be a program name with args. 10421 set dummy $ac_prog; ac_word=$2 10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10423 $as_echo_n "checking for $ac_word... " >&6; } 10424 if ${ac_cv_path_RM+:} false; then : 10425 $as_echo_n "(cached) " >&6 10426 else 10427 case $RM in 10428 [\\/]* | ?:[\\/]*) 10429 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10430 ;; 10431 *) 10432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10433 for as_dir in $PATH 10434 do 10435 IFS=$as_save_IFS 10436 test -z "$as_dir" && as_dir=. 10437 for ac_exec_ext in '' $ac_executable_extensions; do 10438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10439 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10441 break 2 10442 fi 10443 done 10444 done 10445 IFS=$as_save_IFS 10446 10447 ;; 10448 esac 10449 fi 10450 RM=$ac_cv_path_RM 10451 if test -n "$RM"; then 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10453 $as_echo "$RM" >&6; } 10454 else 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10456 $as_echo "no" >&6; } 10457 fi 10458 10459 10460 test -n "$RM" && break 10461 done 10462 10463 else 10464 # If it succeeded, then it was overridden by the user. We will use it 10465 # for the tool. 10466 10467 # First remove it from the list of overridden variables, so we can test 10468 # for unknown variables in the end. 10469 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10470 10471 # Check if we try to supply an empty value 10472 if test "x$RM" = x; then 10473 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10474 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10476 $as_echo_n "checking for RM... " >&6; } 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10478 $as_echo "disabled" >&6; } 10479 else 10480 # Check if the provided tool contains a complete path. 10481 tool_specified="$RM" 10482 tool_basename="${tool_specified##*/}" 10483 if test "x$tool_basename" = "x$tool_specified"; then 10484 # A command without a complete path is provided, search $PATH. 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10486 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10487 # Extract the first word of "$tool_basename", so it can be a program name with args. 10488 set dummy $tool_basename; ac_word=$2 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10490 $as_echo_n "checking for $ac_word... " >&6; } 10491 if ${ac_cv_path_RM+:} false; then : 10492 $as_echo_n "(cached) " >&6 10493 else 10494 case $RM in 10495 [\\/]* | ?:[\\/]*) 10496 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10497 ;; 10498 *) 10499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10500 for as_dir in $PATH 10501 do 10502 IFS=$as_save_IFS 10503 test -z "$as_dir" && as_dir=. 10504 for ac_exec_ext in '' $ac_executable_extensions; do 10505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10506 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10508 break 2 10509 fi 10510 done 10511 done 10512 IFS=$as_save_IFS 10513 10514 ;; 10515 esac 10516 fi 10517 RM=$ac_cv_path_RM 10518 if test -n "$RM"; then 10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10520 $as_echo "$RM" >&6; } 10521 else 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10523 $as_echo "no" >&6; } 10524 fi 10525 10526 10527 if test "x$RM" = x; then 10528 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10529 fi 10530 else 10531 # Otherwise we believe it is a complete path. Use it as it is. 10532 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10533 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10535 $as_echo_n "checking for RM... " >&6; } 10536 if test ! -x "$tool_specified"; then 10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10538 $as_echo "not found" >&6; } 10539 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10540 fi 10541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10542 $as_echo "$tool_specified" >&6; } 10543 fi 10544 fi 10545 fi 10546 10547 fi 10548 10549 10550 10551 if test "x$RM" = x; then 10552 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10553 fi 10554 10555 10556 10557 10558 10559 # Publish this variable in the help. 10560 10561 10562 if [ -z "${RMDIR+x}" ]; then 10563 # The variable is not set by user, try to locate tool using the code snippet 10564 for ac_prog in rmdir 10565 do 10566 # Extract the first word of "$ac_prog", so it can be a program name with args. 10567 set dummy $ac_prog; ac_word=$2 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10569 $as_echo_n "checking for $ac_word... " >&6; } 10570 if ${ac_cv_path_RMDIR+:} false; then : 10571 $as_echo_n "(cached) " >&6 10572 else 10573 case $RMDIR in 10574 [\\/]* | ?:[\\/]*) 10575 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10576 ;; 10577 *) 10578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10579 for as_dir in $PATH 10580 do 10581 IFS=$as_save_IFS 10582 test -z "$as_dir" && as_dir=. 10583 for ac_exec_ext in '' $ac_executable_extensions; do 10584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10585 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10587 break 2 10588 fi 10589 done 10590 done 10591 IFS=$as_save_IFS 10592 10593 ;; 10594 esac 10595 fi 10596 RMDIR=$ac_cv_path_RMDIR 10597 if test -n "$RMDIR"; then 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10599 $as_echo "$RMDIR" >&6; } 10600 else 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10602 $as_echo "no" >&6; } 10603 fi 10604 10605 10606 test -n "$RMDIR" && break 10607 done 10608 10609 else 10610 # The variable is set, but is it from the command line or the environment? 10611 10612 # Try to remove the string !RMDIR! from our list. 10613 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10614 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10615 # If it failed, the variable was not from the command line. Ignore it, 10616 # but warn the user (except for BASH, which is always set by the calling BASH). 10617 if test "xRMDIR" != xBASH; then 10618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10619 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10620 fi 10621 # Try to locate tool using the code snippet 10622 for ac_prog in rmdir 10623 do 10624 # Extract the first word of "$ac_prog", so it can be a program name with args. 10625 set dummy $ac_prog; ac_word=$2 10626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10627 $as_echo_n "checking for $ac_word... " >&6; } 10628 if ${ac_cv_path_RMDIR+:} false; then : 10629 $as_echo_n "(cached) " >&6 10630 else 10631 case $RMDIR in 10632 [\\/]* | ?:[\\/]*) 10633 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10634 ;; 10635 *) 10636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10637 for as_dir in $PATH 10638 do 10639 IFS=$as_save_IFS 10640 test -z "$as_dir" && as_dir=. 10641 for ac_exec_ext in '' $ac_executable_extensions; do 10642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10643 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10645 break 2 10646 fi 10647 done 10648 done 10649 IFS=$as_save_IFS 10650 10651 ;; 10652 esac 10653 fi 10654 RMDIR=$ac_cv_path_RMDIR 10655 if test -n "$RMDIR"; then 10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10657 $as_echo "$RMDIR" >&6; } 10658 else 10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10660 $as_echo "no" >&6; } 10661 fi 10662 10663 10664 test -n "$RMDIR" && break 10665 done 10666 10667 else 10668 # If it succeeded, then it was overridden by the user. We will use it 10669 # for the tool. 10670 10671 # First remove it from the list of overridden variables, so we can test 10672 # for unknown variables in the end. 10673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10674 10675 # Check if we try to supply an empty value 10676 if test "x$RMDIR" = x; then 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10678 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10680 $as_echo_n "checking for RMDIR... " >&6; } 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10682 $as_echo "disabled" >&6; } 10683 else 10684 # Check if the provided tool contains a complete path. 10685 tool_specified="$RMDIR" 10686 tool_basename="${tool_specified##*/}" 10687 if test "x$tool_basename" = "x$tool_specified"; then 10688 # A command without a complete path is provided, search $PATH. 10689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10690 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10691 # Extract the first word of "$tool_basename", so it can be a program name with args. 10692 set dummy $tool_basename; ac_word=$2 10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10694 $as_echo_n "checking for $ac_word... " >&6; } 10695 if ${ac_cv_path_RMDIR+:} false; then : 10696 $as_echo_n "(cached) " >&6 10697 else 10698 case $RMDIR in 10699 [\\/]* | ?:[\\/]*) 10700 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10701 ;; 10702 *) 10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10704 for as_dir in $PATH 10705 do 10706 IFS=$as_save_IFS 10707 test -z "$as_dir" && as_dir=. 10708 for ac_exec_ext in '' $ac_executable_extensions; do 10709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10710 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10712 break 2 10713 fi 10714 done 10715 done 10716 IFS=$as_save_IFS 10717 10718 ;; 10719 esac 10720 fi 10721 RMDIR=$ac_cv_path_RMDIR 10722 if test -n "$RMDIR"; then 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10724 $as_echo "$RMDIR" >&6; } 10725 else 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10727 $as_echo "no" >&6; } 10728 fi 10729 10730 10731 if test "x$RMDIR" = x; then 10732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10733 fi 10734 else 10735 # Otherwise we believe it is a complete path. Use it as it is. 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10737 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10739 $as_echo_n "checking for RMDIR... " >&6; } 10740 if test ! -x "$tool_specified"; then 10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10742 $as_echo "not found" >&6; } 10743 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10744 fi 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10746 $as_echo "$tool_specified" >&6; } 10747 fi 10748 fi 10749 fi 10750 10751 fi 10752 10753 10754 10755 if test "x$RMDIR" = x; then 10756 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10757 fi 10758 10759 10760 10761 10762 10763 # Publish this variable in the help. 10764 10765 10766 if [ -z "${SH+x}" ]; then 10767 # The variable is not set by user, try to locate tool using the code snippet 10768 for ac_prog in sh 10769 do 10770 # Extract the first word of "$ac_prog", so it can be a program name with args. 10771 set dummy $ac_prog; ac_word=$2 10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10773 $as_echo_n "checking for $ac_word... " >&6; } 10774 if ${ac_cv_path_SH+:} false; then : 10775 $as_echo_n "(cached) " >&6 10776 else 10777 case $SH in 10778 [\\/]* | ?:[\\/]*) 10779 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10780 ;; 10781 *) 10782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10783 for as_dir in $PATH 10784 do 10785 IFS=$as_save_IFS 10786 test -z "$as_dir" && as_dir=. 10787 for ac_exec_ext in '' $ac_executable_extensions; do 10788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10789 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10791 break 2 10792 fi 10793 done 10794 done 10795 IFS=$as_save_IFS 10796 10797 ;; 10798 esac 10799 fi 10800 SH=$ac_cv_path_SH 10801 if test -n "$SH"; then 10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10803 $as_echo "$SH" >&6; } 10804 else 10805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10806 $as_echo "no" >&6; } 10807 fi 10808 10809 10810 test -n "$SH" && break 10811 done 10812 10813 else 10814 # The variable is set, but is it from the command line or the environment? 10815 10816 # Try to remove the string !SH! from our list. 10817 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10818 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10819 # If it failed, the variable was not from the command line. Ignore it, 10820 # but warn the user (except for BASH, which is always set by the calling BASH). 10821 if test "xSH" != xBASH; then 10822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10823 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10824 fi 10825 # Try to locate tool using the code snippet 10826 for ac_prog in sh 10827 do 10828 # Extract the first word of "$ac_prog", so it can be a program name with args. 10829 set dummy $ac_prog; ac_word=$2 10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10831 $as_echo_n "checking for $ac_word... " >&6; } 10832 if ${ac_cv_path_SH+:} false; then : 10833 $as_echo_n "(cached) " >&6 10834 else 10835 case $SH in 10836 [\\/]* | ?:[\\/]*) 10837 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10838 ;; 10839 *) 10840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10841 for as_dir in $PATH 10842 do 10843 IFS=$as_save_IFS 10844 test -z "$as_dir" && as_dir=. 10845 for ac_exec_ext in '' $ac_executable_extensions; do 10846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10847 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10849 break 2 10850 fi 10851 done 10852 done 10853 IFS=$as_save_IFS 10854 10855 ;; 10856 esac 10857 fi 10858 SH=$ac_cv_path_SH 10859 if test -n "$SH"; then 10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10861 $as_echo "$SH" >&6; } 10862 else 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10864 $as_echo "no" >&6; } 10865 fi 10866 10867 10868 test -n "$SH" && break 10869 done 10870 10871 else 10872 # If it succeeded, then it was overridden by the user. We will use it 10873 # for the tool. 10874 10875 # First remove it from the list of overridden variables, so we can test 10876 # for unknown variables in the end. 10877 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10878 10879 # Check if we try to supply an empty value 10880 if test "x$SH" = x; then 10881 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10882 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10884 $as_echo_n "checking for SH... " >&6; } 10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10886 $as_echo "disabled" >&6; } 10887 else 10888 # Check if the provided tool contains a complete path. 10889 tool_specified="$SH" 10890 tool_basename="${tool_specified##*/}" 10891 if test "x$tool_basename" = "x$tool_specified"; then 10892 # A command without a complete path is provided, search $PATH. 10893 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10894 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10895 # Extract the first word of "$tool_basename", so it can be a program name with args. 10896 set dummy $tool_basename; ac_word=$2 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10898 $as_echo_n "checking for $ac_word... " >&6; } 10899 if ${ac_cv_path_SH+:} false; then : 10900 $as_echo_n "(cached) " >&6 10901 else 10902 case $SH in 10903 [\\/]* | ?:[\\/]*) 10904 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10905 ;; 10906 *) 10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10908 for as_dir in $PATH 10909 do 10910 IFS=$as_save_IFS 10911 test -z "$as_dir" && as_dir=. 10912 for ac_exec_ext in '' $ac_executable_extensions; do 10913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10914 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10916 break 2 10917 fi 10918 done 10919 done 10920 IFS=$as_save_IFS 10921 10922 ;; 10923 esac 10924 fi 10925 SH=$ac_cv_path_SH 10926 if test -n "$SH"; then 10927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10928 $as_echo "$SH" >&6; } 10929 else 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10931 $as_echo "no" >&6; } 10932 fi 10933 10934 10935 if test "x$SH" = x; then 10936 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10937 fi 10938 else 10939 # Otherwise we believe it is a complete path. Use it as it is. 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10941 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10943 $as_echo_n "checking for SH... " >&6; } 10944 if test ! -x "$tool_specified"; then 10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10946 $as_echo "not found" >&6; } 10947 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10948 fi 10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10950 $as_echo "$tool_specified" >&6; } 10951 fi 10952 fi 10953 fi 10954 10955 fi 10956 10957 10958 10959 if test "x$SH" = x; then 10960 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10961 fi 10962 10963 10964 10965 10966 10967 # Publish this variable in the help. 10968 10969 10970 if [ -z "${SORT+x}" ]; then 10971 # The variable is not set by user, try to locate tool using the code snippet 10972 for ac_prog in sort 10973 do 10974 # Extract the first word of "$ac_prog", so it can be a program name with args. 10975 set dummy $ac_prog; ac_word=$2 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10977 $as_echo_n "checking for $ac_word... " >&6; } 10978 if ${ac_cv_path_SORT+:} false; then : 10979 $as_echo_n "(cached) " >&6 10980 else 10981 case $SORT in 10982 [\\/]* | ?:[\\/]*) 10983 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10984 ;; 10985 *) 10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10987 for as_dir in $PATH 10988 do 10989 IFS=$as_save_IFS 10990 test -z "$as_dir" && as_dir=. 10991 for ac_exec_ext in '' $ac_executable_extensions; do 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10993 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10995 break 2 10996 fi 10997 done 10998 done 10999 IFS=$as_save_IFS 11000 11001 ;; 11002 esac 11003 fi 11004 SORT=$ac_cv_path_SORT 11005 if test -n "$SORT"; then 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11007 $as_echo "$SORT" >&6; } 11008 else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010 $as_echo "no" >&6; } 11011 fi 11012 11013 11014 test -n "$SORT" && break 11015 done 11016 11017 else 11018 # The variable is set, but is it from the command line or the environment? 11019 11020 # Try to remove the string !SORT! from our list. 11021 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 11022 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11023 # If it failed, the variable was not from the command line. Ignore it, 11024 # but warn the user (except for BASH, which is always set by the calling BASH). 11025 if test "xSORT" != xBASH; then 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 11027 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 11028 fi 11029 # Try to locate tool using the code snippet 11030 for ac_prog in sort 11031 do 11032 # Extract the first word of "$ac_prog", so it can be a program name with args. 11033 set dummy $ac_prog; ac_word=$2 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11035 $as_echo_n "checking for $ac_word... " >&6; } 11036 if ${ac_cv_path_SORT+:} false; then : 11037 $as_echo_n "(cached) " >&6 11038 else 11039 case $SORT in 11040 [\\/]* | ?:[\\/]*) 11041 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11042 ;; 11043 *) 11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11045 for as_dir in $PATH 11046 do 11047 IFS=$as_save_IFS 11048 test -z "$as_dir" && as_dir=. 11049 for ac_exec_ext in '' $ac_executable_extensions; do 11050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11051 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11053 break 2 11054 fi 11055 done 11056 done 11057 IFS=$as_save_IFS 11058 11059 ;; 11060 esac 11061 fi 11062 SORT=$ac_cv_path_SORT 11063 if test -n "$SORT"; then 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11065 $as_echo "$SORT" >&6; } 11066 else 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11068 $as_echo "no" >&6; } 11069 fi 11070 11071 11072 test -n "$SORT" && break 11073 done 11074 11075 else 11076 # If it succeeded, then it was overridden by the user. We will use it 11077 # for the tool. 11078 11079 # First remove it from the list of overridden variables, so we can test 11080 # for unknown variables in the end. 11081 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11082 11083 # Check if we try to supply an empty value 11084 if test "x$SORT" = x; then 11085 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11086 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11088 $as_echo_n "checking for SORT... " >&6; } 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11090 $as_echo "disabled" >&6; } 11091 else 11092 # Check if the provided tool contains a complete path. 11093 tool_specified="$SORT" 11094 tool_basename="${tool_specified##*/}" 11095 if test "x$tool_basename" = "x$tool_specified"; then 11096 # A command without a complete path is provided, search $PATH. 11097 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11098 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11099 # Extract the first word of "$tool_basename", so it can be a program name with args. 11100 set dummy $tool_basename; ac_word=$2 11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11102 $as_echo_n "checking for $ac_word... " >&6; } 11103 if ${ac_cv_path_SORT+:} false; then : 11104 $as_echo_n "(cached) " >&6 11105 else 11106 case $SORT in 11107 [\\/]* | ?:[\\/]*) 11108 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11109 ;; 11110 *) 11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11112 for as_dir in $PATH 11113 do 11114 IFS=$as_save_IFS 11115 test -z "$as_dir" && as_dir=. 11116 for ac_exec_ext in '' $ac_executable_extensions; do 11117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11118 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11120 break 2 11121 fi 11122 done 11123 done 11124 IFS=$as_save_IFS 11125 11126 ;; 11127 esac 11128 fi 11129 SORT=$ac_cv_path_SORT 11130 if test -n "$SORT"; then 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11132 $as_echo "$SORT" >&6; } 11133 else 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11135 $as_echo "no" >&6; } 11136 fi 11137 11138 11139 if test "x$SORT" = x; then 11140 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11141 fi 11142 else 11143 # Otherwise we believe it is a complete path. Use it as it is. 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11145 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11147 $as_echo_n "checking for SORT... " >&6; } 11148 if test ! -x "$tool_specified"; then 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11150 $as_echo "not found" >&6; } 11151 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11152 fi 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11154 $as_echo "$tool_specified" >&6; } 11155 fi 11156 fi 11157 fi 11158 11159 fi 11160 11161 11162 11163 if test "x$SORT" = x; then 11164 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11165 fi 11166 11167 11168 11169 11170 11171 # Publish this variable in the help. 11172 11173 11174 if [ -z "${TAIL+x}" ]; then 11175 # The variable is not set by user, try to locate tool using the code snippet 11176 for ac_prog in tail 11177 do 11178 # Extract the first word of "$ac_prog", so it can be a program name with args. 11179 set dummy $ac_prog; ac_word=$2 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11181 $as_echo_n "checking for $ac_word... " >&6; } 11182 if ${ac_cv_path_TAIL+:} false; then : 11183 $as_echo_n "(cached) " >&6 11184 else 11185 case $TAIL in 11186 [\\/]* | ?:[\\/]*) 11187 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11188 ;; 11189 *) 11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11191 for as_dir in $PATH 11192 do 11193 IFS=$as_save_IFS 11194 test -z "$as_dir" && as_dir=. 11195 for ac_exec_ext in '' $ac_executable_extensions; do 11196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11197 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11199 break 2 11200 fi 11201 done 11202 done 11203 IFS=$as_save_IFS 11204 11205 ;; 11206 esac 11207 fi 11208 TAIL=$ac_cv_path_TAIL 11209 if test -n "$TAIL"; then 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11211 $as_echo "$TAIL" >&6; } 11212 else 11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11214 $as_echo "no" >&6; } 11215 fi 11216 11217 11218 test -n "$TAIL" && break 11219 done 11220 11221 else 11222 # The variable is set, but is it from the command line or the environment? 11223 11224 # Try to remove the string !TAIL! from our list. 11225 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11226 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11227 # If it failed, the variable was not from the command line. Ignore it, 11228 # but warn the user (except for BASH, which is always set by the calling BASH). 11229 if test "xTAIL" != xBASH; then 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11231 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11232 fi 11233 # Try to locate tool using the code snippet 11234 for ac_prog in tail 11235 do 11236 # Extract the first word of "$ac_prog", so it can be a program name with args. 11237 set dummy $ac_prog; ac_word=$2 11238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11239 $as_echo_n "checking for $ac_word... " >&6; } 11240 if ${ac_cv_path_TAIL+:} false; then : 11241 $as_echo_n "(cached) " >&6 11242 else 11243 case $TAIL in 11244 [\\/]* | ?:[\\/]*) 11245 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11246 ;; 11247 *) 11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11249 for as_dir in $PATH 11250 do 11251 IFS=$as_save_IFS 11252 test -z "$as_dir" && as_dir=. 11253 for ac_exec_ext in '' $ac_executable_extensions; do 11254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11255 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11257 break 2 11258 fi 11259 done 11260 done 11261 IFS=$as_save_IFS 11262 11263 ;; 11264 esac 11265 fi 11266 TAIL=$ac_cv_path_TAIL 11267 if test -n "$TAIL"; then 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11269 $as_echo "$TAIL" >&6; } 11270 else 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11272 $as_echo "no" >&6; } 11273 fi 11274 11275 11276 test -n "$TAIL" && break 11277 done 11278 11279 else 11280 # If it succeeded, then it was overridden by the user. We will use it 11281 # for the tool. 11282 11283 # First remove it from the list of overridden variables, so we can test 11284 # for unknown variables in the end. 11285 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11286 11287 # Check if we try to supply an empty value 11288 if test "x$TAIL" = x; then 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11290 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11292 $as_echo_n "checking for TAIL... " >&6; } 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11294 $as_echo "disabled" >&6; } 11295 else 11296 # Check if the provided tool contains a complete path. 11297 tool_specified="$TAIL" 11298 tool_basename="${tool_specified##*/}" 11299 if test "x$tool_basename" = "x$tool_specified"; then 11300 # A command without a complete path is provided, search $PATH. 11301 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11302 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11303 # Extract the first word of "$tool_basename", so it can be a program name with args. 11304 set dummy $tool_basename; ac_word=$2 11305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11306 $as_echo_n "checking for $ac_word... " >&6; } 11307 if ${ac_cv_path_TAIL+:} false; then : 11308 $as_echo_n "(cached) " >&6 11309 else 11310 case $TAIL in 11311 [\\/]* | ?:[\\/]*) 11312 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11313 ;; 11314 *) 11315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11316 for as_dir in $PATH 11317 do 11318 IFS=$as_save_IFS 11319 test -z "$as_dir" && as_dir=. 11320 for ac_exec_ext in '' $ac_executable_extensions; do 11321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11322 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11324 break 2 11325 fi 11326 done 11327 done 11328 IFS=$as_save_IFS 11329 11330 ;; 11331 esac 11332 fi 11333 TAIL=$ac_cv_path_TAIL 11334 if test -n "$TAIL"; then 11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11336 $as_echo "$TAIL" >&6; } 11337 else 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11339 $as_echo "no" >&6; } 11340 fi 11341 11342 11343 if test "x$TAIL" = x; then 11344 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11345 fi 11346 else 11347 # Otherwise we believe it is a complete path. Use it as it is. 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11349 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11351 $as_echo_n "checking for TAIL... " >&6; } 11352 if test ! -x "$tool_specified"; then 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11354 $as_echo "not found" >&6; } 11355 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11356 fi 11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11358 $as_echo "$tool_specified" >&6; } 11359 fi 11360 fi 11361 fi 11362 11363 fi 11364 11365 11366 11367 if test "x$TAIL" = x; then 11368 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11369 fi 11370 11371 11372 11373 11374 11375 # Publish this variable in the help. 11376 11377 11378 if [ -z "${TAR+x}" ]; then 11379 # The variable is not set by user, try to locate tool using the code snippet 11380 for ac_prog in gtar tar 11381 do 11382 # Extract the first word of "$ac_prog", so it can be a program name with args. 11383 set dummy $ac_prog; ac_word=$2 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11385 $as_echo_n "checking for $ac_word... " >&6; } 11386 if ${ac_cv_path_TAR+:} false; then : 11387 $as_echo_n "(cached) " >&6 11388 else 11389 case $TAR in 11390 [\\/]* | ?:[\\/]*) 11391 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11392 ;; 11393 *) 11394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11395 for as_dir in $PATH 11396 do 11397 IFS=$as_save_IFS 11398 test -z "$as_dir" && as_dir=. 11399 for ac_exec_ext in '' $ac_executable_extensions; do 11400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11401 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11403 break 2 11404 fi 11405 done 11406 done 11407 IFS=$as_save_IFS 11408 11409 ;; 11410 esac 11411 fi 11412 TAR=$ac_cv_path_TAR 11413 if test -n "$TAR"; then 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11415 $as_echo "$TAR" >&6; } 11416 else 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11418 $as_echo "no" >&6; } 11419 fi 11420 11421 11422 test -n "$TAR" && break 11423 done 11424 11425 else 11426 # The variable is set, but is it from the command line or the environment? 11427 11428 # Try to remove the string !TAR! from our list. 11429 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11430 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11431 # If it failed, the variable was not from the command line. Ignore it, 11432 # but warn the user (except for BASH, which is always set by the calling BASH). 11433 if test "xTAR" != xBASH; then 11434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11435 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11436 fi 11437 # Try to locate tool using the code snippet 11438 for ac_prog in gtar tar 11439 do 11440 # Extract the first word of "$ac_prog", so it can be a program name with args. 11441 set dummy $ac_prog; ac_word=$2 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11443 $as_echo_n "checking for $ac_word... " >&6; } 11444 if ${ac_cv_path_TAR+:} false; then : 11445 $as_echo_n "(cached) " >&6 11446 else 11447 case $TAR in 11448 [\\/]* | ?:[\\/]*) 11449 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11450 ;; 11451 *) 11452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11453 for as_dir in $PATH 11454 do 11455 IFS=$as_save_IFS 11456 test -z "$as_dir" && as_dir=. 11457 for ac_exec_ext in '' $ac_executable_extensions; do 11458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11459 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11461 break 2 11462 fi 11463 done 11464 done 11465 IFS=$as_save_IFS 11466 11467 ;; 11468 esac 11469 fi 11470 TAR=$ac_cv_path_TAR 11471 if test -n "$TAR"; then 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11473 $as_echo "$TAR" >&6; } 11474 else 11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11476 $as_echo "no" >&6; } 11477 fi 11478 11479 11480 test -n "$TAR" && break 11481 done 11482 11483 else 11484 # If it succeeded, then it was overridden by the user. We will use it 11485 # for the tool. 11486 11487 # First remove it from the list of overridden variables, so we can test 11488 # for unknown variables in the end. 11489 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11490 11491 # Check if we try to supply an empty value 11492 if test "x$TAR" = x; then 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11494 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11496 $as_echo_n "checking for TAR... " >&6; } 11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11498 $as_echo "disabled" >&6; } 11499 else 11500 # Check if the provided tool contains a complete path. 11501 tool_specified="$TAR" 11502 tool_basename="${tool_specified##*/}" 11503 if test "x$tool_basename" = "x$tool_specified"; then 11504 # A command without a complete path is provided, search $PATH. 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11506 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11507 # Extract the first word of "$tool_basename", so it can be a program name with args. 11508 set dummy $tool_basename; ac_word=$2 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11510 $as_echo_n "checking for $ac_word... " >&6; } 11511 if ${ac_cv_path_TAR+:} false; then : 11512 $as_echo_n "(cached) " >&6 11513 else 11514 case $TAR in 11515 [\\/]* | ?:[\\/]*) 11516 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11517 ;; 11518 *) 11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11520 for as_dir in $PATH 11521 do 11522 IFS=$as_save_IFS 11523 test -z "$as_dir" && as_dir=. 11524 for ac_exec_ext in '' $ac_executable_extensions; do 11525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11526 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11528 break 2 11529 fi 11530 done 11531 done 11532 IFS=$as_save_IFS 11533 11534 ;; 11535 esac 11536 fi 11537 TAR=$ac_cv_path_TAR 11538 if test -n "$TAR"; then 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11540 $as_echo "$TAR" >&6; } 11541 else 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11543 $as_echo "no" >&6; } 11544 fi 11545 11546 11547 if test "x$TAR" = x; then 11548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11549 fi 11550 else 11551 # Otherwise we believe it is a complete path. Use it as it is. 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11553 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11555 $as_echo_n "checking for TAR... " >&6; } 11556 if test ! -x "$tool_specified"; then 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11558 $as_echo "not found" >&6; } 11559 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11560 fi 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11562 $as_echo "$tool_specified" >&6; } 11563 fi 11564 fi 11565 fi 11566 11567 fi 11568 11569 11570 11571 if test "x$TAR" = x; then 11572 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11573 fi 11574 11575 11576 11577 11578 11579 # Publish this variable in the help. 11580 11581 11582 if [ -z "${TEE+x}" ]; then 11583 # The variable is not set by user, try to locate tool using the code snippet 11584 for ac_prog in tee 11585 do 11586 # Extract the first word of "$ac_prog", so it can be a program name with args. 11587 set dummy $ac_prog; ac_word=$2 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11589 $as_echo_n "checking for $ac_word... " >&6; } 11590 if ${ac_cv_path_TEE+:} false; then : 11591 $as_echo_n "(cached) " >&6 11592 else 11593 case $TEE in 11594 [\\/]* | ?:[\\/]*) 11595 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11596 ;; 11597 *) 11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11599 for as_dir in $PATH 11600 do 11601 IFS=$as_save_IFS 11602 test -z "$as_dir" && as_dir=. 11603 for ac_exec_ext in '' $ac_executable_extensions; do 11604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11605 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11607 break 2 11608 fi 11609 done 11610 done 11611 IFS=$as_save_IFS 11612 11613 ;; 11614 esac 11615 fi 11616 TEE=$ac_cv_path_TEE 11617 if test -n "$TEE"; then 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11619 $as_echo "$TEE" >&6; } 11620 else 11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11622 $as_echo "no" >&6; } 11623 fi 11624 11625 11626 test -n "$TEE" && break 11627 done 11628 11629 else 11630 # The variable is set, but is it from the command line or the environment? 11631 11632 # Try to remove the string !TEE! from our list. 11633 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11634 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11635 # If it failed, the variable was not from the command line. Ignore it, 11636 # but warn the user (except for BASH, which is always set by the calling BASH). 11637 if test "xTEE" != xBASH; then 11638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11639 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11640 fi 11641 # Try to locate tool using the code snippet 11642 for ac_prog in tee 11643 do 11644 # Extract the first word of "$ac_prog", so it can be a program name with args. 11645 set dummy $ac_prog; ac_word=$2 11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11647 $as_echo_n "checking for $ac_word... " >&6; } 11648 if ${ac_cv_path_TEE+:} false; then : 11649 $as_echo_n "(cached) " >&6 11650 else 11651 case $TEE in 11652 [\\/]* | ?:[\\/]*) 11653 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11654 ;; 11655 *) 11656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11657 for as_dir in $PATH 11658 do 11659 IFS=$as_save_IFS 11660 test -z "$as_dir" && as_dir=. 11661 for ac_exec_ext in '' $ac_executable_extensions; do 11662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11663 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11665 break 2 11666 fi 11667 done 11668 done 11669 IFS=$as_save_IFS 11670 11671 ;; 11672 esac 11673 fi 11674 TEE=$ac_cv_path_TEE 11675 if test -n "$TEE"; then 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11677 $as_echo "$TEE" >&6; } 11678 else 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680 $as_echo "no" >&6; } 11681 fi 11682 11683 11684 test -n "$TEE" && break 11685 done 11686 11687 else 11688 # If it succeeded, then it was overridden by the user. We will use it 11689 # for the tool. 11690 11691 # First remove it from the list of overridden variables, so we can test 11692 # for unknown variables in the end. 11693 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11694 11695 # Check if we try to supply an empty value 11696 if test "x$TEE" = x; then 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11698 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11700 $as_echo_n "checking for TEE... " >&6; } 11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11702 $as_echo "disabled" >&6; } 11703 else 11704 # Check if the provided tool contains a complete path. 11705 tool_specified="$TEE" 11706 tool_basename="${tool_specified##*/}" 11707 if test "x$tool_basename" = "x$tool_specified"; then 11708 # A command without a complete path is provided, search $PATH. 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11710 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11711 # Extract the first word of "$tool_basename", so it can be a program name with args. 11712 set dummy $tool_basename; ac_word=$2 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11714 $as_echo_n "checking for $ac_word... " >&6; } 11715 if ${ac_cv_path_TEE+:} false; then : 11716 $as_echo_n "(cached) " >&6 11717 else 11718 case $TEE in 11719 [\\/]* | ?:[\\/]*) 11720 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11721 ;; 11722 *) 11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11724 for as_dir in $PATH 11725 do 11726 IFS=$as_save_IFS 11727 test -z "$as_dir" && as_dir=. 11728 for ac_exec_ext in '' $ac_executable_extensions; do 11729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11730 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11732 break 2 11733 fi 11734 done 11735 done 11736 IFS=$as_save_IFS 11737 11738 ;; 11739 esac 11740 fi 11741 TEE=$ac_cv_path_TEE 11742 if test -n "$TEE"; then 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11744 $as_echo "$TEE" >&6; } 11745 else 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11747 $as_echo "no" >&6; } 11748 fi 11749 11750 11751 if test "x$TEE" = x; then 11752 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11753 fi 11754 else 11755 # Otherwise we believe it is a complete path. Use it as it is. 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11757 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11759 $as_echo_n "checking for TEE... " >&6; } 11760 if test ! -x "$tool_specified"; then 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11762 $as_echo "not found" >&6; } 11763 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11764 fi 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11766 $as_echo "$tool_specified" >&6; } 11767 fi 11768 fi 11769 fi 11770 11771 fi 11772 11773 11774 11775 if test "x$TEE" = x; then 11776 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11777 fi 11778 11779 11780 11781 11782 11783 # Publish this variable in the help. 11784 11785 11786 if [ -z "${TOUCH+x}" ]; then 11787 # The variable is not set by user, try to locate tool using the code snippet 11788 for ac_prog in touch 11789 do 11790 # Extract the first word of "$ac_prog", so it can be a program name with args. 11791 set dummy $ac_prog; ac_word=$2 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11793 $as_echo_n "checking for $ac_word... " >&6; } 11794 if ${ac_cv_path_TOUCH+:} false; then : 11795 $as_echo_n "(cached) " >&6 11796 else 11797 case $TOUCH in 11798 [\\/]* | ?:[\\/]*) 11799 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11800 ;; 11801 *) 11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11803 for as_dir in $PATH 11804 do 11805 IFS=$as_save_IFS 11806 test -z "$as_dir" && as_dir=. 11807 for ac_exec_ext in '' $ac_executable_extensions; do 11808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11809 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11811 break 2 11812 fi 11813 done 11814 done 11815 IFS=$as_save_IFS 11816 11817 ;; 11818 esac 11819 fi 11820 TOUCH=$ac_cv_path_TOUCH 11821 if test -n "$TOUCH"; then 11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11823 $as_echo "$TOUCH" >&6; } 11824 else 11825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11826 $as_echo "no" >&6; } 11827 fi 11828 11829 11830 test -n "$TOUCH" && break 11831 done 11832 11833 else 11834 # The variable is set, but is it from the command line or the environment? 11835 11836 # Try to remove the string !TOUCH! from our list. 11837 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11838 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11839 # If it failed, the variable was not from the command line. Ignore it, 11840 # but warn the user (except for BASH, which is always set by the calling BASH). 11841 if test "xTOUCH" != xBASH; then 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11843 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11844 fi 11845 # Try to locate tool using the code snippet 11846 for ac_prog in touch 11847 do 11848 # Extract the first word of "$ac_prog", so it can be a program name with args. 11849 set dummy $ac_prog; ac_word=$2 11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11851 $as_echo_n "checking for $ac_word... " >&6; } 11852 if ${ac_cv_path_TOUCH+:} false; then : 11853 $as_echo_n "(cached) " >&6 11854 else 11855 case $TOUCH in 11856 [\\/]* | ?:[\\/]*) 11857 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11858 ;; 11859 *) 11860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11861 for as_dir in $PATH 11862 do 11863 IFS=$as_save_IFS 11864 test -z "$as_dir" && as_dir=. 11865 for ac_exec_ext in '' $ac_executable_extensions; do 11866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11867 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11869 break 2 11870 fi 11871 done 11872 done 11873 IFS=$as_save_IFS 11874 11875 ;; 11876 esac 11877 fi 11878 TOUCH=$ac_cv_path_TOUCH 11879 if test -n "$TOUCH"; then 11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11881 $as_echo "$TOUCH" >&6; } 11882 else 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11884 $as_echo "no" >&6; } 11885 fi 11886 11887 11888 test -n "$TOUCH" && break 11889 done 11890 11891 else 11892 # If it succeeded, then it was overridden by the user. We will use it 11893 # for the tool. 11894 11895 # First remove it from the list of overridden variables, so we can test 11896 # for unknown variables in the end. 11897 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11898 11899 # Check if we try to supply an empty value 11900 if test "x$TOUCH" = x; then 11901 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11902 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11904 $as_echo_n "checking for TOUCH... " >&6; } 11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11906 $as_echo "disabled" >&6; } 11907 else 11908 # Check if the provided tool contains a complete path. 11909 tool_specified="$TOUCH" 11910 tool_basename="${tool_specified##*/}" 11911 if test "x$tool_basename" = "x$tool_specified"; then 11912 # A command without a complete path is provided, search $PATH. 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11914 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11915 # Extract the first word of "$tool_basename", so it can be a program name with args. 11916 set dummy $tool_basename; ac_word=$2 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11918 $as_echo_n "checking for $ac_word... " >&6; } 11919 if ${ac_cv_path_TOUCH+:} false; then : 11920 $as_echo_n "(cached) " >&6 11921 else 11922 case $TOUCH in 11923 [\\/]* | ?:[\\/]*) 11924 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11925 ;; 11926 *) 11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11928 for as_dir in $PATH 11929 do 11930 IFS=$as_save_IFS 11931 test -z "$as_dir" && as_dir=. 11932 for ac_exec_ext in '' $ac_executable_extensions; do 11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11934 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11936 break 2 11937 fi 11938 done 11939 done 11940 IFS=$as_save_IFS 11941 11942 ;; 11943 esac 11944 fi 11945 TOUCH=$ac_cv_path_TOUCH 11946 if test -n "$TOUCH"; then 11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11948 $as_echo "$TOUCH" >&6; } 11949 else 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11951 $as_echo "no" >&6; } 11952 fi 11953 11954 11955 if test "x$TOUCH" = x; then 11956 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11957 fi 11958 else 11959 # Otherwise we believe it is a complete path. Use it as it is. 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11961 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11963 $as_echo_n "checking for TOUCH... " >&6; } 11964 if test ! -x "$tool_specified"; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11966 $as_echo "not found" >&6; } 11967 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11968 fi 11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11970 $as_echo "$tool_specified" >&6; } 11971 fi 11972 fi 11973 fi 11974 11975 fi 11976 11977 11978 11979 if test "x$TOUCH" = x; then 11980 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11981 fi 11982 11983 11984 11985 11986 11987 # Publish this variable in the help. 11988 11989 11990 if [ -z "${TR+x}" ]; then 11991 # The variable is not set by user, try to locate tool using the code snippet 11992 for ac_prog in tr 11993 do 11994 # Extract the first word of "$ac_prog", so it can be a program name with args. 11995 set dummy $ac_prog; ac_word=$2 11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11997 $as_echo_n "checking for $ac_word... " >&6; } 11998 if ${ac_cv_path_TR+:} false; then : 11999 $as_echo_n "(cached) " >&6 12000 else 12001 case $TR in 12002 [\\/]* | ?:[\\/]*) 12003 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12004 ;; 12005 *) 12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12007 for as_dir in $PATH 12008 do 12009 IFS=$as_save_IFS 12010 test -z "$as_dir" && as_dir=. 12011 for ac_exec_ext in '' $ac_executable_extensions; do 12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12013 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12015 break 2 12016 fi 12017 done 12018 done 12019 IFS=$as_save_IFS 12020 12021 ;; 12022 esac 12023 fi 12024 TR=$ac_cv_path_TR 12025 if test -n "$TR"; then 12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12027 $as_echo "$TR" >&6; } 12028 else 12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12030 $as_echo "no" >&6; } 12031 fi 12032 12033 12034 test -n "$TR" && break 12035 done 12036 12037 else 12038 # The variable is set, but is it from the command line or the environment? 12039 12040 # Try to remove the string !TR! from our list. 12041 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12042 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12043 # If it failed, the variable was not from the command line. Ignore it, 12044 # but warn the user (except for BASH, which is always set by the calling BASH). 12045 if test "xTR" != xBASH; then 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12047 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12048 fi 12049 # Try to locate tool using the code snippet 12050 for ac_prog in tr 12051 do 12052 # Extract the first word of "$ac_prog", so it can be a program name with args. 12053 set dummy $ac_prog; ac_word=$2 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12055 $as_echo_n "checking for $ac_word... " >&6; } 12056 if ${ac_cv_path_TR+:} false; then : 12057 $as_echo_n "(cached) " >&6 12058 else 12059 case $TR in 12060 [\\/]* | ?:[\\/]*) 12061 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12062 ;; 12063 *) 12064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12065 for as_dir in $PATH 12066 do 12067 IFS=$as_save_IFS 12068 test -z "$as_dir" && as_dir=. 12069 for ac_exec_ext in '' $ac_executable_extensions; do 12070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12071 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12073 break 2 12074 fi 12075 done 12076 done 12077 IFS=$as_save_IFS 12078 12079 ;; 12080 esac 12081 fi 12082 TR=$ac_cv_path_TR 12083 if test -n "$TR"; then 12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12085 $as_echo "$TR" >&6; } 12086 else 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12088 $as_echo "no" >&6; } 12089 fi 12090 12091 12092 test -n "$TR" && break 12093 done 12094 12095 else 12096 # If it succeeded, then it was overridden by the user. We will use it 12097 # for the tool. 12098 12099 # First remove it from the list of overridden variables, so we can test 12100 # for unknown variables in the end. 12101 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12102 12103 # Check if we try to supply an empty value 12104 if test "x$TR" = x; then 12105 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12106 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12108 $as_echo_n "checking for TR... " >&6; } 12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12110 $as_echo "disabled" >&6; } 12111 else 12112 # Check if the provided tool contains a complete path. 12113 tool_specified="$TR" 12114 tool_basename="${tool_specified##*/}" 12115 if test "x$tool_basename" = "x$tool_specified"; then 12116 # A command without a complete path is provided, search $PATH. 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12118 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12119 # Extract the first word of "$tool_basename", so it can be a program name with args. 12120 set dummy $tool_basename; ac_word=$2 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12122 $as_echo_n "checking for $ac_word... " >&6; } 12123 if ${ac_cv_path_TR+:} false; then : 12124 $as_echo_n "(cached) " >&6 12125 else 12126 case $TR in 12127 [\\/]* | ?:[\\/]*) 12128 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12129 ;; 12130 *) 12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12132 for as_dir in $PATH 12133 do 12134 IFS=$as_save_IFS 12135 test -z "$as_dir" && as_dir=. 12136 for ac_exec_ext in '' $ac_executable_extensions; do 12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12138 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12140 break 2 12141 fi 12142 done 12143 done 12144 IFS=$as_save_IFS 12145 12146 ;; 12147 esac 12148 fi 12149 TR=$ac_cv_path_TR 12150 if test -n "$TR"; then 12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12152 $as_echo "$TR" >&6; } 12153 else 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12155 $as_echo "no" >&6; } 12156 fi 12157 12158 12159 if test "x$TR" = x; then 12160 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12161 fi 12162 else 12163 # Otherwise we believe it is a complete path. Use it as it is. 12164 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12165 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12167 $as_echo_n "checking for TR... " >&6; } 12168 if test ! -x "$tool_specified"; then 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12170 $as_echo "not found" >&6; } 12171 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12172 fi 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12174 $as_echo "$tool_specified" >&6; } 12175 fi 12176 fi 12177 fi 12178 12179 fi 12180 12181 12182 12183 if test "x$TR" = x; then 12184 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12185 fi 12186 12187 12188 12189 12190 12191 # Publish this variable in the help. 12192 12193 12194 if [ -z "${UNAME+x}" ]; then 12195 # The variable is not set by user, try to locate tool using the code snippet 12196 for ac_prog in uname 12197 do 12198 # Extract the first word of "$ac_prog", so it can be a program name with args. 12199 set dummy $ac_prog; ac_word=$2 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12201 $as_echo_n "checking for $ac_word... " >&6; } 12202 if ${ac_cv_path_UNAME+:} false; then : 12203 $as_echo_n "(cached) " >&6 12204 else 12205 case $UNAME in 12206 [\\/]* | ?:[\\/]*) 12207 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12208 ;; 12209 *) 12210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12211 for as_dir in $PATH 12212 do 12213 IFS=$as_save_IFS 12214 test -z "$as_dir" && as_dir=. 12215 for ac_exec_ext in '' $ac_executable_extensions; do 12216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12217 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12219 break 2 12220 fi 12221 done 12222 done 12223 IFS=$as_save_IFS 12224 12225 ;; 12226 esac 12227 fi 12228 UNAME=$ac_cv_path_UNAME 12229 if test -n "$UNAME"; then 12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12231 $as_echo "$UNAME" >&6; } 12232 else 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12234 $as_echo "no" >&6; } 12235 fi 12236 12237 12238 test -n "$UNAME" && break 12239 done 12240 12241 else 12242 # The variable is set, but is it from the command line or the environment? 12243 12244 # Try to remove the string !UNAME! from our list. 12245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12247 # If it failed, the variable was not from the command line. Ignore it, 12248 # but warn the user (except for BASH, which is always set by the calling BASH). 12249 if test "xUNAME" != xBASH; then 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12251 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12252 fi 12253 # Try to locate tool using the code snippet 12254 for ac_prog in uname 12255 do 12256 # Extract the first word of "$ac_prog", so it can be a program name with args. 12257 set dummy $ac_prog; ac_word=$2 12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12259 $as_echo_n "checking for $ac_word... " >&6; } 12260 if ${ac_cv_path_UNAME+:} false; then : 12261 $as_echo_n "(cached) " >&6 12262 else 12263 case $UNAME in 12264 [\\/]* | ?:[\\/]*) 12265 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12266 ;; 12267 *) 12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12269 for as_dir in $PATH 12270 do 12271 IFS=$as_save_IFS 12272 test -z "$as_dir" && as_dir=. 12273 for ac_exec_ext in '' $ac_executable_extensions; do 12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12275 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12277 break 2 12278 fi 12279 done 12280 done 12281 IFS=$as_save_IFS 12282 12283 ;; 12284 esac 12285 fi 12286 UNAME=$ac_cv_path_UNAME 12287 if test -n "$UNAME"; then 12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12289 $as_echo "$UNAME" >&6; } 12290 else 12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12292 $as_echo "no" >&6; } 12293 fi 12294 12295 12296 test -n "$UNAME" && break 12297 done 12298 12299 else 12300 # If it succeeded, then it was overridden by the user. We will use it 12301 # for the tool. 12302 12303 # First remove it from the list of overridden variables, so we can test 12304 # for unknown variables in the end. 12305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12306 12307 # Check if we try to supply an empty value 12308 if test "x$UNAME" = x; then 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12310 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12312 $as_echo_n "checking for UNAME... " >&6; } 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12314 $as_echo "disabled" >&6; } 12315 else 12316 # Check if the provided tool contains a complete path. 12317 tool_specified="$UNAME" 12318 tool_basename="${tool_specified##*/}" 12319 if test "x$tool_basename" = "x$tool_specified"; then 12320 # A command without a complete path is provided, search $PATH. 12321 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12322 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12323 # Extract the first word of "$tool_basename", so it can be a program name with args. 12324 set dummy $tool_basename; ac_word=$2 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12326 $as_echo_n "checking for $ac_word... " >&6; } 12327 if ${ac_cv_path_UNAME+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329 else 12330 case $UNAME in 12331 [\\/]* | ?:[\\/]*) 12332 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12333 ;; 12334 *) 12335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12336 for as_dir in $PATH 12337 do 12338 IFS=$as_save_IFS 12339 test -z "$as_dir" && as_dir=. 12340 for ac_exec_ext in '' $ac_executable_extensions; do 12341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12342 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12344 break 2 12345 fi 12346 done 12347 done 12348 IFS=$as_save_IFS 12349 12350 ;; 12351 esac 12352 fi 12353 UNAME=$ac_cv_path_UNAME 12354 if test -n "$UNAME"; then 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12356 $as_echo "$UNAME" >&6; } 12357 else 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12359 $as_echo "no" >&6; } 12360 fi 12361 12362 12363 if test "x$UNAME" = x; then 12364 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12365 fi 12366 else 12367 # Otherwise we believe it is a complete path. Use it as it is. 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12369 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12371 $as_echo_n "checking for UNAME... " >&6; } 12372 if test ! -x "$tool_specified"; then 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12374 $as_echo "not found" >&6; } 12375 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12376 fi 12377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12378 $as_echo "$tool_specified" >&6; } 12379 fi 12380 fi 12381 fi 12382 12383 fi 12384 12385 12386 12387 if test "x$UNAME" = x; then 12388 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12389 fi 12390 12391 12392 12393 12394 12395 # Publish this variable in the help. 12396 12397 12398 if [ -z "${UNIQ+x}" ]; then 12399 # The variable is not set by user, try to locate tool using the code snippet 12400 for ac_prog in uniq 12401 do 12402 # Extract the first word of "$ac_prog", so it can be a program name with args. 12403 set dummy $ac_prog; ac_word=$2 12404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12405 $as_echo_n "checking for $ac_word... " >&6; } 12406 if ${ac_cv_path_UNIQ+:} false; then : 12407 $as_echo_n "(cached) " >&6 12408 else 12409 case $UNIQ in 12410 [\\/]* | ?:[\\/]*) 12411 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12412 ;; 12413 *) 12414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12415 for as_dir in $PATH 12416 do 12417 IFS=$as_save_IFS 12418 test -z "$as_dir" && as_dir=. 12419 for ac_exec_ext in '' $ac_executable_extensions; do 12420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12421 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12423 break 2 12424 fi 12425 done 12426 done 12427 IFS=$as_save_IFS 12428 12429 ;; 12430 esac 12431 fi 12432 UNIQ=$ac_cv_path_UNIQ 12433 if test -n "$UNIQ"; then 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12435 $as_echo "$UNIQ" >&6; } 12436 else 12437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12438 $as_echo "no" >&6; } 12439 fi 12440 12441 12442 test -n "$UNIQ" && break 12443 done 12444 12445 else 12446 # The variable is set, but is it from the command line or the environment? 12447 12448 # Try to remove the string !UNIQ! from our list. 12449 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12450 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12451 # If it failed, the variable was not from the command line. Ignore it, 12452 # but warn the user (except for BASH, which is always set by the calling BASH). 12453 if test "xUNIQ" != xBASH; then 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12455 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12456 fi 12457 # Try to locate tool using the code snippet 12458 for ac_prog in uniq 12459 do 12460 # Extract the first word of "$ac_prog", so it can be a program name with args. 12461 set dummy $ac_prog; ac_word=$2 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12463 $as_echo_n "checking for $ac_word... " >&6; } 12464 if ${ac_cv_path_UNIQ+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466 else 12467 case $UNIQ in 12468 [\\/]* | ?:[\\/]*) 12469 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12470 ;; 12471 *) 12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12473 for as_dir in $PATH 12474 do 12475 IFS=$as_save_IFS 12476 test -z "$as_dir" && as_dir=. 12477 for ac_exec_ext in '' $ac_executable_extensions; do 12478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12479 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12481 break 2 12482 fi 12483 done 12484 done 12485 IFS=$as_save_IFS 12486 12487 ;; 12488 esac 12489 fi 12490 UNIQ=$ac_cv_path_UNIQ 12491 if test -n "$UNIQ"; then 12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12493 $as_echo "$UNIQ" >&6; } 12494 else 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12496 $as_echo "no" >&6; } 12497 fi 12498 12499 12500 test -n "$UNIQ" && break 12501 done 12502 12503 else 12504 # If it succeeded, then it was overridden by the user. We will use it 12505 # for the tool. 12506 12507 # First remove it from the list of overridden variables, so we can test 12508 # for unknown variables in the end. 12509 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12510 12511 # Check if we try to supply an empty value 12512 if test "x$UNIQ" = x; then 12513 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12514 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12516 $as_echo_n "checking for UNIQ... " >&6; } 12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12518 $as_echo "disabled" >&6; } 12519 else 12520 # Check if the provided tool contains a complete path. 12521 tool_specified="$UNIQ" 12522 tool_basename="${tool_specified##*/}" 12523 if test "x$tool_basename" = "x$tool_specified"; then 12524 # A command without a complete path is provided, search $PATH. 12525 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12526 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12527 # Extract the first word of "$tool_basename", so it can be a program name with args. 12528 set dummy $tool_basename; ac_word=$2 12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12530 $as_echo_n "checking for $ac_word... " >&6; } 12531 if ${ac_cv_path_UNIQ+:} false; then : 12532 $as_echo_n "(cached) " >&6 12533 else 12534 case $UNIQ in 12535 [\\/]* | ?:[\\/]*) 12536 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12537 ;; 12538 *) 12539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12540 for as_dir in $PATH 12541 do 12542 IFS=$as_save_IFS 12543 test -z "$as_dir" && as_dir=. 12544 for ac_exec_ext in '' $ac_executable_extensions; do 12545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12546 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12548 break 2 12549 fi 12550 done 12551 done 12552 IFS=$as_save_IFS 12553 12554 ;; 12555 esac 12556 fi 12557 UNIQ=$ac_cv_path_UNIQ 12558 if test -n "$UNIQ"; then 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12560 $as_echo "$UNIQ" >&6; } 12561 else 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12563 $as_echo "no" >&6; } 12564 fi 12565 12566 12567 if test "x$UNIQ" = x; then 12568 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12569 fi 12570 else 12571 # Otherwise we believe it is a complete path. Use it as it is. 12572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12573 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12575 $as_echo_n "checking for UNIQ... " >&6; } 12576 if test ! -x "$tool_specified"; then 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12578 $as_echo "not found" >&6; } 12579 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12580 fi 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12582 $as_echo "$tool_specified" >&6; } 12583 fi 12584 fi 12585 fi 12586 12587 fi 12588 12589 12590 12591 if test "x$UNIQ" = x; then 12592 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12593 fi 12594 12595 12596 12597 12598 12599 # Publish this variable in the help. 12600 12601 12602 if [ -z "${WC+x}" ]; then 12603 # The variable is not set by user, try to locate tool using the code snippet 12604 for ac_prog in wc 12605 do 12606 # Extract the first word of "$ac_prog", so it can be a program name with args. 12607 set dummy $ac_prog; ac_word=$2 12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12609 $as_echo_n "checking for $ac_word... " >&6; } 12610 if ${ac_cv_path_WC+:} false; then : 12611 $as_echo_n "(cached) " >&6 12612 else 12613 case $WC in 12614 [\\/]* | ?:[\\/]*) 12615 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12616 ;; 12617 *) 12618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12619 for as_dir in $PATH 12620 do 12621 IFS=$as_save_IFS 12622 test -z "$as_dir" && as_dir=. 12623 for ac_exec_ext in '' $ac_executable_extensions; do 12624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12625 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12627 break 2 12628 fi 12629 done 12630 done 12631 IFS=$as_save_IFS 12632 12633 ;; 12634 esac 12635 fi 12636 WC=$ac_cv_path_WC 12637 if test -n "$WC"; then 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12639 $as_echo "$WC" >&6; } 12640 else 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12642 $as_echo "no" >&6; } 12643 fi 12644 12645 12646 test -n "$WC" && break 12647 done 12648 12649 else 12650 # The variable is set, but is it from the command line or the environment? 12651 12652 # Try to remove the string !WC! from our list. 12653 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12654 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12655 # If it failed, the variable was not from the command line. Ignore it, 12656 # but warn the user (except for BASH, which is always set by the calling BASH). 12657 if test "xWC" != xBASH; then 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12659 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12660 fi 12661 # Try to locate tool using the code snippet 12662 for ac_prog in wc 12663 do 12664 # Extract the first word of "$ac_prog", so it can be a program name with args. 12665 set dummy $ac_prog; ac_word=$2 12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12667 $as_echo_n "checking for $ac_word... " >&6; } 12668 if ${ac_cv_path_WC+:} false; then : 12669 $as_echo_n "(cached) " >&6 12670 else 12671 case $WC in 12672 [\\/]* | ?:[\\/]*) 12673 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12674 ;; 12675 *) 12676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12677 for as_dir in $PATH 12678 do 12679 IFS=$as_save_IFS 12680 test -z "$as_dir" && as_dir=. 12681 for ac_exec_ext in '' $ac_executable_extensions; do 12682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12683 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12685 break 2 12686 fi 12687 done 12688 done 12689 IFS=$as_save_IFS 12690 12691 ;; 12692 esac 12693 fi 12694 WC=$ac_cv_path_WC 12695 if test -n "$WC"; then 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12697 $as_echo "$WC" >&6; } 12698 else 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12700 $as_echo "no" >&6; } 12701 fi 12702 12703 12704 test -n "$WC" && break 12705 done 12706 12707 else 12708 # If it succeeded, then it was overridden by the user. We will use it 12709 # for the tool. 12710 12711 # First remove it from the list of overridden variables, so we can test 12712 # for unknown variables in the end. 12713 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12714 12715 # Check if we try to supply an empty value 12716 if test "x$WC" = x; then 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12718 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12720 $as_echo_n "checking for WC... " >&6; } 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12722 $as_echo "disabled" >&6; } 12723 else 12724 # Check if the provided tool contains a complete path. 12725 tool_specified="$WC" 12726 tool_basename="${tool_specified##*/}" 12727 if test "x$tool_basename" = "x$tool_specified"; then 12728 # A command without a complete path is provided, search $PATH. 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12730 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12731 # Extract the first word of "$tool_basename", so it can be a program name with args. 12732 set dummy $tool_basename; ac_word=$2 12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12734 $as_echo_n "checking for $ac_word... " >&6; } 12735 if ${ac_cv_path_WC+:} false; then : 12736 $as_echo_n "(cached) " >&6 12737 else 12738 case $WC in 12739 [\\/]* | ?:[\\/]*) 12740 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12741 ;; 12742 *) 12743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12744 for as_dir in $PATH 12745 do 12746 IFS=$as_save_IFS 12747 test -z "$as_dir" && as_dir=. 12748 for ac_exec_ext in '' $ac_executable_extensions; do 12749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12750 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12752 break 2 12753 fi 12754 done 12755 done 12756 IFS=$as_save_IFS 12757 12758 ;; 12759 esac 12760 fi 12761 WC=$ac_cv_path_WC 12762 if test -n "$WC"; then 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12764 $as_echo "$WC" >&6; } 12765 else 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12767 $as_echo "no" >&6; } 12768 fi 12769 12770 12771 if test "x$WC" = x; then 12772 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12773 fi 12774 else 12775 # Otherwise we believe it is a complete path. Use it as it is. 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12777 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12779 $as_echo_n "checking for WC... " >&6; } 12780 if test ! -x "$tool_specified"; then 12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12782 $as_echo "not found" >&6; } 12783 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12784 fi 12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12786 $as_echo "$tool_specified" >&6; } 12787 fi 12788 fi 12789 fi 12790 12791 fi 12792 12793 12794 12795 if test "x$WC" = x; then 12796 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12797 fi 12798 12799 12800 12801 12802 12803 # Publish this variable in the help. 12804 12805 12806 if [ -z "${WHICH+x}" ]; then 12807 # The variable is not set by user, try to locate tool using the code snippet 12808 for ac_prog in which 12809 do 12810 # Extract the first word of "$ac_prog", so it can be a program name with args. 12811 set dummy $ac_prog; ac_word=$2 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12813 $as_echo_n "checking for $ac_word... " >&6; } 12814 if ${ac_cv_path_WHICH+:} false; then : 12815 $as_echo_n "(cached) " >&6 12816 else 12817 case $WHICH in 12818 [\\/]* | ?:[\\/]*) 12819 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12820 ;; 12821 *) 12822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12823 for as_dir in $PATH 12824 do 12825 IFS=$as_save_IFS 12826 test -z "$as_dir" && as_dir=. 12827 for ac_exec_ext in '' $ac_executable_extensions; do 12828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12829 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12831 break 2 12832 fi 12833 done 12834 done 12835 IFS=$as_save_IFS 12836 12837 ;; 12838 esac 12839 fi 12840 WHICH=$ac_cv_path_WHICH 12841 if test -n "$WHICH"; then 12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12843 $as_echo "$WHICH" >&6; } 12844 else 12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12846 $as_echo "no" >&6; } 12847 fi 12848 12849 12850 test -n "$WHICH" && break 12851 done 12852 12853 else 12854 # The variable is set, but is it from the command line or the environment? 12855 12856 # Try to remove the string !WHICH! from our list. 12857 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12858 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12859 # If it failed, the variable was not from the command line. Ignore it, 12860 # but warn the user (except for BASH, which is always set by the calling BASH). 12861 if test "xWHICH" != xBASH; then 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12863 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12864 fi 12865 # Try to locate tool using the code snippet 12866 for ac_prog in which 12867 do 12868 # Extract the first word of "$ac_prog", so it can be a program name with args. 12869 set dummy $ac_prog; ac_word=$2 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12871 $as_echo_n "checking for $ac_word... " >&6; } 12872 if ${ac_cv_path_WHICH+:} false; then : 12873 $as_echo_n "(cached) " >&6 12874 else 12875 case $WHICH in 12876 [\\/]* | ?:[\\/]*) 12877 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12878 ;; 12879 *) 12880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12881 for as_dir in $PATH 12882 do 12883 IFS=$as_save_IFS 12884 test -z "$as_dir" && as_dir=. 12885 for ac_exec_ext in '' $ac_executable_extensions; do 12886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12887 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12889 break 2 12890 fi 12891 done 12892 done 12893 IFS=$as_save_IFS 12894 12895 ;; 12896 esac 12897 fi 12898 WHICH=$ac_cv_path_WHICH 12899 if test -n "$WHICH"; then 12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12901 $as_echo "$WHICH" >&6; } 12902 else 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12904 $as_echo "no" >&6; } 12905 fi 12906 12907 12908 test -n "$WHICH" && break 12909 done 12910 12911 else 12912 # If it succeeded, then it was overridden by the user. We will use it 12913 # for the tool. 12914 12915 # First remove it from the list of overridden variables, so we can test 12916 # for unknown variables in the end. 12917 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12918 12919 # Check if we try to supply an empty value 12920 if test "x$WHICH" = x; then 12921 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12922 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12924 $as_echo_n "checking for WHICH... " >&6; } 12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12926 $as_echo "disabled" >&6; } 12927 else 12928 # Check if the provided tool contains a complete path. 12929 tool_specified="$WHICH" 12930 tool_basename="${tool_specified##*/}" 12931 if test "x$tool_basename" = "x$tool_specified"; then 12932 # A command without a complete path is provided, search $PATH. 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12934 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12935 # Extract the first word of "$tool_basename", so it can be a program name with args. 12936 set dummy $tool_basename; ac_word=$2 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12938 $as_echo_n "checking for $ac_word... " >&6; } 12939 if ${ac_cv_path_WHICH+:} false; then : 12940 $as_echo_n "(cached) " >&6 12941 else 12942 case $WHICH in 12943 [\\/]* | ?:[\\/]*) 12944 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12945 ;; 12946 *) 12947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12948 for as_dir in $PATH 12949 do 12950 IFS=$as_save_IFS 12951 test -z "$as_dir" && as_dir=. 12952 for ac_exec_ext in '' $ac_executable_extensions; do 12953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12954 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12956 break 2 12957 fi 12958 done 12959 done 12960 IFS=$as_save_IFS 12961 12962 ;; 12963 esac 12964 fi 12965 WHICH=$ac_cv_path_WHICH 12966 if test -n "$WHICH"; then 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12968 $as_echo "$WHICH" >&6; } 12969 else 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12971 $as_echo "no" >&6; } 12972 fi 12973 12974 12975 if test "x$WHICH" = x; then 12976 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12977 fi 12978 else 12979 # Otherwise we believe it is a complete path. Use it as it is. 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12981 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12983 $as_echo_n "checking for WHICH... " >&6; } 12984 if test ! -x "$tool_specified"; then 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12986 $as_echo "not found" >&6; } 12987 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12988 fi 12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12990 $as_echo "$tool_specified" >&6; } 12991 fi 12992 fi 12993 fi 12994 12995 fi 12996 12997 12998 12999 if test "x$WHICH" = x; then 13000 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 13001 fi 13002 13003 13004 13005 13006 13007 # Publish this variable in the help. 13008 13009 13010 if [ -z "${XARGS+x}" ]; then 13011 # The variable is not set by user, try to locate tool using the code snippet 13012 for ac_prog in xargs 13013 do 13014 # Extract the first word of "$ac_prog", so it can be a program name with args. 13015 set dummy $ac_prog; ac_word=$2 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13017 $as_echo_n "checking for $ac_word... " >&6; } 13018 if ${ac_cv_path_XARGS+:} false; then : 13019 $as_echo_n "(cached) " >&6 13020 else 13021 case $XARGS in 13022 [\\/]* | ?:[\\/]*) 13023 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13024 ;; 13025 *) 13026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13027 for as_dir in $PATH 13028 do 13029 IFS=$as_save_IFS 13030 test -z "$as_dir" && as_dir=. 13031 for ac_exec_ext in '' $ac_executable_extensions; do 13032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13033 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13035 break 2 13036 fi 13037 done 13038 done 13039 IFS=$as_save_IFS 13040 13041 ;; 13042 esac 13043 fi 13044 XARGS=$ac_cv_path_XARGS 13045 if test -n "$XARGS"; then 13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13047 $as_echo "$XARGS" >&6; } 13048 else 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13050 $as_echo "no" >&6; } 13051 fi 13052 13053 13054 test -n "$XARGS" && break 13055 done 13056 13057 else 13058 # The variable is set, but is it from the command line or the environment? 13059 13060 # Try to remove the string !XARGS! from our list. 13061 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13062 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13063 # If it failed, the variable was not from the command line. Ignore it, 13064 # but warn the user (except for BASH, which is always set by the calling BASH). 13065 if test "xXARGS" != xBASH; then 13066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13067 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13068 fi 13069 # Try to locate tool using the code snippet 13070 for ac_prog in xargs 13071 do 13072 # Extract the first word of "$ac_prog", so it can be a program name with args. 13073 set dummy $ac_prog; ac_word=$2 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13075 $as_echo_n "checking for $ac_word... " >&6; } 13076 if ${ac_cv_path_XARGS+:} false; then : 13077 $as_echo_n "(cached) " >&6 13078 else 13079 case $XARGS in 13080 [\\/]* | ?:[\\/]*) 13081 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13082 ;; 13083 *) 13084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13085 for as_dir in $PATH 13086 do 13087 IFS=$as_save_IFS 13088 test -z "$as_dir" && as_dir=. 13089 for ac_exec_ext in '' $ac_executable_extensions; do 13090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13091 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13093 break 2 13094 fi 13095 done 13096 done 13097 IFS=$as_save_IFS 13098 13099 ;; 13100 esac 13101 fi 13102 XARGS=$ac_cv_path_XARGS 13103 if test -n "$XARGS"; then 13104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13105 $as_echo "$XARGS" >&6; } 13106 else 13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13108 $as_echo "no" >&6; } 13109 fi 13110 13111 13112 test -n "$XARGS" && break 13113 done 13114 13115 else 13116 # If it succeeded, then it was overridden by the user. We will use it 13117 # for the tool. 13118 13119 # First remove it from the list of overridden variables, so we can test 13120 # for unknown variables in the end. 13121 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13122 13123 # Check if we try to supply an empty value 13124 if test "x$XARGS" = x; then 13125 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13126 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13128 $as_echo_n "checking for XARGS... " >&6; } 13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13130 $as_echo "disabled" >&6; } 13131 else 13132 # Check if the provided tool contains a complete path. 13133 tool_specified="$XARGS" 13134 tool_basename="${tool_specified##*/}" 13135 if test "x$tool_basename" = "x$tool_specified"; then 13136 # A command without a complete path is provided, search $PATH. 13137 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13138 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13139 # Extract the first word of "$tool_basename", so it can be a program name with args. 13140 set dummy $tool_basename; ac_word=$2 13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13142 $as_echo_n "checking for $ac_word... " >&6; } 13143 if ${ac_cv_path_XARGS+:} false; then : 13144 $as_echo_n "(cached) " >&6 13145 else 13146 case $XARGS in 13147 [\\/]* | ?:[\\/]*) 13148 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13149 ;; 13150 *) 13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13152 for as_dir in $PATH 13153 do 13154 IFS=$as_save_IFS 13155 test -z "$as_dir" && as_dir=. 13156 for ac_exec_ext in '' $ac_executable_extensions; do 13157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13158 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13160 break 2 13161 fi 13162 done 13163 done 13164 IFS=$as_save_IFS 13165 13166 ;; 13167 esac 13168 fi 13169 XARGS=$ac_cv_path_XARGS 13170 if test -n "$XARGS"; then 13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13172 $as_echo "$XARGS" >&6; } 13173 else 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13175 $as_echo "no" >&6; } 13176 fi 13177 13178 13179 if test "x$XARGS" = x; then 13180 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13181 fi 13182 else 13183 # Otherwise we believe it is a complete path. Use it as it is. 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13185 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13187 $as_echo_n "checking for XARGS... " >&6; } 13188 if test ! -x "$tool_specified"; then 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13190 $as_echo "not found" >&6; } 13191 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13192 fi 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13194 $as_echo "$tool_specified" >&6; } 13195 fi 13196 fi 13197 fi 13198 13199 fi 13200 13201 13202 13203 if test "x$XARGS" = x; then 13204 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13205 fi 13206 13207 13208 13209 # Then required tools that require some special treatment. 13210 13211 13212 # Publish this variable in the help. 13213 13214 13215 if [ -z "${AWK+x}" ]; then 13216 # The variable is not set by user, try to locate tool using the code snippet 13217 for ac_prog in gawk mawk nawk awk 13218 do 13219 # Extract the first word of "$ac_prog", so it can be a program name with args. 13220 set dummy $ac_prog; ac_word=$2 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13222 $as_echo_n "checking for $ac_word... " >&6; } 13223 if ${ac_cv_prog_AWK+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225 else 13226 if test -n "$AWK"; then 13227 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13228 else 13229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13230 for as_dir in $PATH 13231 do 13232 IFS=$as_save_IFS 13233 test -z "$as_dir" && as_dir=. 13234 for ac_exec_ext in '' $ac_executable_extensions; do 13235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13236 ac_cv_prog_AWK="$ac_prog" 13237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13238 break 2 13239 fi 13240 done 13241 done 13242 IFS=$as_save_IFS 13243 13244 fi 13245 fi 13246 AWK=$ac_cv_prog_AWK 13247 if test -n "$AWK"; then 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13249 $as_echo "$AWK" >&6; } 13250 else 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13252 $as_echo "no" >&6; } 13253 fi 13254 13255 13256 test -n "$AWK" && break 13257 done 13258 13259 else 13260 # The variable is set, but is it from the command line or the environment? 13261 13262 # Try to remove the string !AWK! from our list. 13263 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13264 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13265 # If it failed, the variable was not from the command line. Ignore it, 13266 # but warn the user (except for BASH, which is always set by the calling BASH). 13267 if test "xAWK" != xBASH; then 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13269 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13270 fi 13271 # Try to locate tool using the code snippet 13272 for ac_prog in gawk mawk nawk awk 13273 do 13274 # Extract the first word of "$ac_prog", so it can be a program name with args. 13275 set dummy $ac_prog; ac_word=$2 13276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13277 $as_echo_n "checking for $ac_word... " >&6; } 13278 if ${ac_cv_prog_AWK+:} false; then : 13279 $as_echo_n "(cached) " >&6 13280 else 13281 if test -n "$AWK"; then 13282 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13283 else 13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13285 for as_dir in $PATH 13286 do 13287 IFS=$as_save_IFS 13288 test -z "$as_dir" && as_dir=. 13289 for ac_exec_ext in '' $ac_executable_extensions; do 13290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13291 ac_cv_prog_AWK="$ac_prog" 13292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13293 break 2 13294 fi 13295 done 13296 done 13297 IFS=$as_save_IFS 13298 13299 fi 13300 fi 13301 AWK=$ac_cv_prog_AWK 13302 if test -n "$AWK"; then 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13304 $as_echo "$AWK" >&6; } 13305 else 13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13307 $as_echo "no" >&6; } 13308 fi 13309 13310 13311 test -n "$AWK" && break 13312 done 13313 13314 else 13315 # If it succeeded, then it was overridden by the user. We will use it 13316 # for the tool. 13317 13318 # First remove it from the list of overridden variables, so we can test 13319 # for unknown variables in the end. 13320 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13321 13322 # Check if we try to supply an empty value 13323 if test "x$AWK" = x; then 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13325 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13327 $as_echo_n "checking for AWK... " >&6; } 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13329 $as_echo "disabled" >&6; } 13330 else 13331 # Check if the provided tool contains a complete path. 13332 tool_specified="$AWK" 13333 tool_basename="${tool_specified##*/}" 13334 if test "x$tool_basename" = "x$tool_specified"; then 13335 # A command without a complete path is provided, search $PATH. 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13337 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13338 # Extract the first word of "$tool_basename", so it can be a program name with args. 13339 set dummy $tool_basename; ac_word=$2 13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13341 $as_echo_n "checking for $ac_word... " >&6; } 13342 if ${ac_cv_path_AWK+:} false; then : 13343 $as_echo_n "(cached) " >&6 13344 else 13345 case $AWK in 13346 [\\/]* | ?:[\\/]*) 13347 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13348 ;; 13349 *) 13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13351 for as_dir in $PATH 13352 do 13353 IFS=$as_save_IFS 13354 test -z "$as_dir" && as_dir=. 13355 for ac_exec_ext in '' $ac_executable_extensions; do 13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13357 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13359 break 2 13360 fi 13361 done 13362 done 13363 IFS=$as_save_IFS 13364 13365 ;; 13366 esac 13367 fi 13368 AWK=$ac_cv_path_AWK 13369 if test -n "$AWK"; then 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13371 $as_echo "$AWK" >&6; } 13372 else 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13374 $as_echo "no" >&6; } 13375 fi 13376 13377 13378 if test "x$AWK" = x; then 13379 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13380 fi 13381 else 13382 # Otherwise we believe it is a complete path. Use it as it is. 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13384 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13386 $as_echo_n "checking for AWK... " >&6; } 13387 if test ! -x "$tool_specified"; then 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13389 $as_echo "not found" >&6; } 13390 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13391 fi 13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13393 $as_echo "$tool_specified" >&6; } 13394 fi 13395 fi 13396 fi 13397 13398 fi 13399 13400 13401 if test "x$AWK" = x; then 13402 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13403 fi 13404 13405 13406 13407 13408 # Publish this variable in the help. 13409 13410 13411 if [ -z "${GREP+x}" ]; then 13412 # The variable is not set by user, try to locate tool using the code snippet 13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13414 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13415 if ${ac_cv_path_GREP+:} false; then : 13416 $as_echo_n "(cached) " >&6 13417 else 13418 if test -z "$GREP"; then 13419 ac_path_GREP_found=false 13420 # Loop through the user's path and test for each of PROGNAME-LIST 13421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13423 do 13424 IFS=$as_save_IFS 13425 test -z "$as_dir" && as_dir=. 13426 for ac_prog in grep ggrep; do 13427 for ac_exec_ext in '' $ac_executable_extensions; do 13428 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13429 as_fn_executable_p "$ac_path_GREP" || continue 13430 # Check for GNU ac_path_GREP and select it if it is found. 13431 # Check for GNU $ac_path_GREP 13432 case `"$ac_path_GREP" --version 2>&1` in 13433 *GNU*) 13434 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13435 *) 13436 ac_count=0 13437 $as_echo_n 0123456789 >"conftest.in" 13438 while : 13439 do 13440 cat "conftest.in" "conftest.in" >"conftest.tmp" 13441 mv "conftest.tmp" "conftest.in" 13442 cp "conftest.in" "conftest.nl" 13443 $as_echo 'GREP' >> "conftest.nl" 13444 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13446 as_fn_arith $ac_count + 1 && ac_count=$as_val 13447 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13448 # Best one so far, save it but keep looking for a better one 13449 ac_cv_path_GREP="$ac_path_GREP" 13450 ac_path_GREP_max=$ac_count 13451 fi 13452 # 10*(2^10) chars as input seems more than enough 13453 test $ac_count -gt 10 && break 13454 done 13455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13456 esac 13457 13458 $ac_path_GREP_found && break 3 13459 done 13460 done 13461 done 13462 IFS=$as_save_IFS 13463 if test -z "$ac_cv_path_GREP"; then 13464 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13465 fi 13466 else 13467 ac_cv_path_GREP=$GREP 13468 fi 13469 13470 fi 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13472 $as_echo "$ac_cv_path_GREP" >&6; } 13473 GREP="$ac_cv_path_GREP" 13474 13475 13476 else 13477 # The variable is set, but is it from the command line or the environment? 13478 13479 # Try to remove the string !GREP! from our list. 13480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13482 # If it failed, the variable was not from the command line. Ignore it, 13483 # but warn the user (except for BASH, which is always set by the calling BASH). 13484 if test "xGREP" != xBASH; then 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13486 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13487 fi 13488 # Try to locate tool using the code snippet 13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13490 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13491 if ${ac_cv_path_GREP+:} false; then : 13492 $as_echo_n "(cached) " >&6 13493 else 13494 if test -z "$GREP"; then 13495 ac_path_GREP_found=false 13496 # Loop through the user's path and test for each of PROGNAME-LIST 13497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13498 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13499 do 13500 IFS=$as_save_IFS 13501 test -z "$as_dir" && as_dir=. 13502 for ac_prog in grep ggrep; do 13503 for ac_exec_ext in '' $ac_executable_extensions; do 13504 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13505 as_fn_executable_p "$ac_path_GREP" || continue 13506 # Check for GNU ac_path_GREP and select it if it is found. 13507 # Check for GNU $ac_path_GREP 13508 case `"$ac_path_GREP" --version 2>&1` in 13509 *GNU*) 13510 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13511 *) 13512 ac_count=0 13513 $as_echo_n 0123456789 >"conftest.in" 13514 while : 13515 do 13516 cat "conftest.in" "conftest.in" >"conftest.tmp" 13517 mv "conftest.tmp" "conftest.in" 13518 cp "conftest.in" "conftest.nl" 13519 $as_echo 'GREP' >> "conftest.nl" 13520 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13522 as_fn_arith $ac_count + 1 && ac_count=$as_val 13523 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13524 # Best one so far, save it but keep looking for a better one 13525 ac_cv_path_GREP="$ac_path_GREP" 13526 ac_path_GREP_max=$ac_count 13527 fi 13528 # 10*(2^10) chars as input seems more than enough 13529 test $ac_count -gt 10 && break 13530 done 13531 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13532 esac 13533 13534 $ac_path_GREP_found && break 3 13535 done 13536 done 13537 done 13538 IFS=$as_save_IFS 13539 if test -z "$ac_cv_path_GREP"; then 13540 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13541 fi 13542 else 13543 ac_cv_path_GREP=$GREP 13544 fi 13545 13546 fi 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13548 $as_echo "$ac_cv_path_GREP" >&6; } 13549 GREP="$ac_cv_path_GREP" 13550 13551 13552 else 13553 # If it succeeded, then it was overridden by the user. We will use it 13554 # for the tool. 13555 13556 # First remove it from the list of overridden variables, so we can test 13557 # for unknown variables in the end. 13558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13559 13560 # Check if we try to supply an empty value 13561 if test "x$GREP" = x; then 13562 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13563 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13565 $as_echo_n "checking for GREP... " >&6; } 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13567 $as_echo "disabled" >&6; } 13568 else 13569 # Check if the provided tool contains a complete path. 13570 tool_specified="$GREP" 13571 tool_basename="${tool_specified##*/}" 13572 if test "x$tool_basename" = "x$tool_specified"; then 13573 # A command without a complete path is provided, search $PATH. 13574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13575 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13576 # Extract the first word of "$tool_basename", so it can be a program name with args. 13577 set dummy $tool_basename; ac_word=$2 13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13579 $as_echo_n "checking for $ac_word... " >&6; } 13580 if ${ac_cv_path_GREP+:} false; then : 13581 $as_echo_n "(cached) " >&6 13582 else 13583 case $GREP in 13584 [\\/]* | ?:[\\/]*) 13585 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13586 ;; 13587 *) 13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13589 for as_dir in $PATH 13590 do 13591 IFS=$as_save_IFS 13592 test -z "$as_dir" && as_dir=. 13593 for ac_exec_ext in '' $ac_executable_extensions; do 13594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13595 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13597 break 2 13598 fi 13599 done 13600 done 13601 IFS=$as_save_IFS 13602 13603 ;; 13604 esac 13605 fi 13606 GREP=$ac_cv_path_GREP 13607 if test -n "$GREP"; then 13608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13609 $as_echo "$GREP" >&6; } 13610 else 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13612 $as_echo "no" >&6; } 13613 fi 13614 13615 13616 if test "x$GREP" = x; then 13617 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13618 fi 13619 else 13620 # Otherwise we believe it is a complete path. Use it as it is. 13621 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13622 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13624 $as_echo_n "checking for GREP... " >&6; } 13625 if test ! -x "$tool_specified"; then 13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13627 $as_echo "not found" >&6; } 13628 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13629 fi 13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13631 $as_echo "$tool_specified" >&6; } 13632 fi 13633 fi 13634 fi 13635 13636 fi 13637 13638 13639 if test "x$GREP" = x; then 13640 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13641 fi 13642 13643 13644 13645 13646 # Publish this variable in the help. 13647 13648 13649 if [ -z "${EGREP+x}" ]; then 13650 # The variable is not set by user, try to locate tool using the code snippet 13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13652 $as_echo_n "checking for egrep... " >&6; } 13653 if ${ac_cv_path_EGREP+:} false; then : 13654 $as_echo_n "(cached) " >&6 13655 else 13656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13657 then ac_cv_path_EGREP="$GREP -E" 13658 else 13659 if test -z "$EGREP"; then 13660 ac_path_EGREP_found=false 13661 # Loop through the user's path and test for each of PROGNAME-LIST 13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13664 do 13665 IFS=$as_save_IFS 13666 test -z "$as_dir" && as_dir=. 13667 for ac_prog in egrep; do 13668 for ac_exec_ext in '' $ac_executable_extensions; do 13669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13670 as_fn_executable_p "$ac_path_EGREP" || continue 13671 # Check for GNU ac_path_EGREP and select it if it is found. 13672 # Check for GNU $ac_path_EGREP 13673 case `"$ac_path_EGREP" --version 2>&1` in 13674 *GNU*) 13675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13676 *) 13677 ac_count=0 13678 $as_echo_n 0123456789 >"conftest.in" 13679 while : 13680 do 13681 cat "conftest.in" "conftest.in" >"conftest.tmp" 13682 mv "conftest.tmp" "conftest.in" 13683 cp "conftest.in" "conftest.nl" 13684 $as_echo 'EGREP' >> "conftest.nl" 13685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13687 as_fn_arith $ac_count + 1 && ac_count=$as_val 13688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13689 # Best one so far, save it but keep looking for a better one 13690 ac_cv_path_EGREP="$ac_path_EGREP" 13691 ac_path_EGREP_max=$ac_count 13692 fi 13693 # 10*(2^10) chars as input seems more than enough 13694 test $ac_count -gt 10 && break 13695 done 13696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13697 esac 13698 13699 $ac_path_EGREP_found && break 3 13700 done 13701 done 13702 done 13703 IFS=$as_save_IFS 13704 if test -z "$ac_cv_path_EGREP"; then 13705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13706 fi 13707 else 13708 ac_cv_path_EGREP=$EGREP 13709 fi 13710 13711 fi 13712 fi 13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13714 $as_echo "$ac_cv_path_EGREP" >&6; } 13715 EGREP="$ac_cv_path_EGREP" 13716 13717 13718 else 13719 # The variable is set, but is it from the command line or the environment? 13720 13721 # Try to remove the string !EGREP! from our list. 13722 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13723 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13724 # If it failed, the variable was not from the command line. Ignore it, 13725 # but warn the user (except for BASH, which is always set by the calling BASH). 13726 if test "xEGREP" != xBASH; then 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13728 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13729 fi 13730 # Try to locate tool using the code snippet 13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13732 $as_echo_n "checking for egrep... " >&6; } 13733 if ${ac_cv_path_EGREP+:} false; then : 13734 $as_echo_n "(cached) " >&6 13735 else 13736 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13737 then ac_cv_path_EGREP="$GREP -E" 13738 else 13739 if test -z "$EGREP"; then 13740 ac_path_EGREP_found=false 13741 # Loop through the user's path and test for each of PROGNAME-LIST 13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13743 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13744 do 13745 IFS=$as_save_IFS 13746 test -z "$as_dir" && as_dir=. 13747 for ac_prog in egrep; do 13748 for ac_exec_ext in '' $ac_executable_extensions; do 13749 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13750 as_fn_executable_p "$ac_path_EGREP" || continue 13751 # Check for GNU ac_path_EGREP and select it if it is found. 13752 # Check for GNU $ac_path_EGREP 13753 case `"$ac_path_EGREP" --version 2>&1` in 13754 *GNU*) 13755 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13756 *) 13757 ac_count=0 13758 $as_echo_n 0123456789 >"conftest.in" 13759 while : 13760 do 13761 cat "conftest.in" "conftest.in" >"conftest.tmp" 13762 mv "conftest.tmp" "conftest.in" 13763 cp "conftest.in" "conftest.nl" 13764 $as_echo 'EGREP' >> "conftest.nl" 13765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13766 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13767 as_fn_arith $ac_count + 1 && ac_count=$as_val 13768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13769 # Best one so far, save it but keep looking for a better one 13770 ac_cv_path_EGREP="$ac_path_EGREP" 13771 ac_path_EGREP_max=$ac_count 13772 fi 13773 # 10*(2^10) chars as input seems more than enough 13774 test $ac_count -gt 10 && break 13775 done 13776 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13777 esac 13778 13779 $ac_path_EGREP_found && break 3 13780 done 13781 done 13782 done 13783 IFS=$as_save_IFS 13784 if test -z "$ac_cv_path_EGREP"; then 13785 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13786 fi 13787 else 13788 ac_cv_path_EGREP=$EGREP 13789 fi 13790 13791 fi 13792 fi 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13794 $as_echo "$ac_cv_path_EGREP" >&6; } 13795 EGREP="$ac_cv_path_EGREP" 13796 13797 13798 else 13799 # If it succeeded, then it was overridden by the user. We will use it 13800 # for the tool. 13801 13802 # First remove it from the list of overridden variables, so we can test 13803 # for unknown variables in the end. 13804 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13805 13806 # Check if we try to supply an empty value 13807 if test "x$EGREP" = x; then 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13809 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13811 $as_echo_n "checking for EGREP... " >&6; } 13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13813 $as_echo "disabled" >&6; } 13814 else 13815 # Check if the provided tool contains a complete path. 13816 tool_specified="$EGREP" 13817 tool_basename="${tool_specified##*/}" 13818 if test "x$tool_basename" = "x$tool_specified"; then 13819 # A command without a complete path is provided, search $PATH. 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13821 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13822 # Extract the first word of "$tool_basename", so it can be a program name with args. 13823 set dummy $tool_basename; ac_word=$2 13824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13825 $as_echo_n "checking for $ac_word... " >&6; } 13826 if ${ac_cv_path_EGREP+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828 else 13829 case $EGREP in 13830 [\\/]* | ?:[\\/]*) 13831 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13832 ;; 13833 *) 13834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13835 for as_dir in $PATH 13836 do 13837 IFS=$as_save_IFS 13838 test -z "$as_dir" && as_dir=. 13839 for ac_exec_ext in '' $ac_executable_extensions; do 13840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13841 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13843 break 2 13844 fi 13845 done 13846 done 13847 IFS=$as_save_IFS 13848 13849 ;; 13850 esac 13851 fi 13852 EGREP=$ac_cv_path_EGREP 13853 if test -n "$EGREP"; then 13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13855 $as_echo "$EGREP" >&6; } 13856 else 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13858 $as_echo "no" >&6; } 13859 fi 13860 13861 13862 if test "x$EGREP" = x; then 13863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13864 fi 13865 else 13866 # Otherwise we believe it is a complete path. Use it as it is. 13867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13868 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13870 $as_echo_n "checking for EGREP... " >&6; } 13871 if test ! -x "$tool_specified"; then 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13873 $as_echo "not found" >&6; } 13874 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13875 fi 13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13877 $as_echo "$tool_specified" >&6; } 13878 fi 13879 fi 13880 fi 13881 13882 fi 13883 13884 13885 if test "x$EGREP" = x; then 13886 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13887 fi 13888 13889 13890 13891 13892 # Publish this variable in the help. 13893 13894 13895 if [ -z "${FGREP+x}" ]; then 13896 # The variable is not set by user, try to locate tool using the code snippet 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13898 $as_echo_n "checking for fgrep... " >&6; } 13899 if ${ac_cv_path_FGREP+:} false; then : 13900 $as_echo_n "(cached) " >&6 13901 else 13902 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13903 then ac_cv_path_FGREP="$GREP -F" 13904 else 13905 if test -z "$FGREP"; then 13906 ac_path_FGREP_found=false 13907 # Loop through the user's path and test for each of PROGNAME-LIST 13908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13910 do 13911 IFS=$as_save_IFS 13912 test -z "$as_dir" && as_dir=. 13913 for ac_prog in fgrep; do 13914 for ac_exec_ext in '' $ac_executable_extensions; do 13915 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13916 as_fn_executable_p "$ac_path_FGREP" || continue 13917 # Check for GNU ac_path_FGREP and select it if it is found. 13918 # Check for GNU $ac_path_FGREP 13919 case `"$ac_path_FGREP" --version 2>&1` in 13920 *GNU*) 13921 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13922 *) 13923 ac_count=0 13924 $as_echo_n 0123456789 >"conftest.in" 13925 while : 13926 do 13927 cat "conftest.in" "conftest.in" >"conftest.tmp" 13928 mv "conftest.tmp" "conftest.in" 13929 cp "conftest.in" "conftest.nl" 13930 $as_echo 'FGREP' >> "conftest.nl" 13931 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13933 as_fn_arith $ac_count + 1 && ac_count=$as_val 13934 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13935 # Best one so far, save it but keep looking for a better one 13936 ac_cv_path_FGREP="$ac_path_FGREP" 13937 ac_path_FGREP_max=$ac_count 13938 fi 13939 # 10*(2^10) chars as input seems more than enough 13940 test $ac_count -gt 10 && break 13941 done 13942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13943 esac 13944 13945 $ac_path_FGREP_found && break 3 13946 done 13947 done 13948 done 13949 IFS=$as_save_IFS 13950 if test -z "$ac_cv_path_FGREP"; then 13951 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13952 fi 13953 else 13954 ac_cv_path_FGREP=$FGREP 13955 fi 13956 13957 fi 13958 fi 13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13960 $as_echo "$ac_cv_path_FGREP" >&6; } 13961 FGREP="$ac_cv_path_FGREP" 13962 13963 13964 else 13965 # The variable is set, but is it from the command line or the environment? 13966 13967 # Try to remove the string !FGREP! from our list. 13968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13970 # If it failed, the variable was not from the command line. Ignore it, 13971 # but warn the user (except for BASH, which is always set by the calling BASH). 13972 if test "xFGREP" != xBASH; then 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13974 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13975 fi 13976 # Try to locate tool using the code snippet 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13978 $as_echo_n "checking for fgrep... " >&6; } 13979 if ${ac_cv_path_FGREP+:} false; then : 13980 $as_echo_n "(cached) " >&6 13981 else 13982 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13983 then ac_cv_path_FGREP="$GREP -F" 13984 else 13985 if test -z "$FGREP"; then 13986 ac_path_FGREP_found=false 13987 # Loop through the user's path and test for each of PROGNAME-LIST 13988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13989 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13990 do 13991 IFS=$as_save_IFS 13992 test -z "$as_dir" && as_dir=. 13993 for ac_prog in fgrep; do 13994 for ac_exec_ext in '' $ac_executable_extensions; do 13995 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13996 as_fn_executable_p "$ac_path_FGREP" || continue 13997 # Check for GNU ac_path_FGREP and select it if it is found. 13998 # Check for GNU $ac_path_FGREP 13999 case `"$ac_path_FGREP" --version 2>&1` in 14000 *GNU*) 14001 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 14002 *) 14003 ac_count=0 14004 $as_echo_n 0123456789 >"conftest.in" 14005 while : 14006 do 14007 cat "conftest.in" "conftest.in" >"conftest.tmp" 14008 mv "conftest.tmp" "conftest.in" 14009 cp "conftest.in" "conftest.nl" 14010 $as_echo 'FGREP' >> "conftest.nl" 14011 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 14012 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14013 as_fn_arith $ac_count + 1 && ac_count=$as_val 14014 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 14015 # Best one so far, save it but keep looking for a better one 14016 ac_cv_path_FGREP="$ac_path_FGREP" 14017 ac_path_FGREP_max=$ac_count 14018 fi 14019 # 10*(2^10) chars as input seems more than enough 14020 test $ac_count -gt 10 && break 14021 done 14022 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14023 esac 14024 14025 $ac_path_FGREP_found && break 3 14026 done 14027 done 14028 done 14029 IFS=$as_save_IFS 14030 if test -z "$ac_cv_path_FGREP"; then 14031 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14032 fi 14033 else 14034 ac_cv_path_FGREP=$FGREP 14035 fi 14036 14037 fi 14038 fi 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14040 $as_echo "$ac_cv_path_FGREP" >&6; } 14041 FGREP="$ac_cv_path_FGREP" 14042 14043 14044 else 14045 # If it succeeded, then it was overridden by the user. We will use it 14046 # for the tool. 14047 14048 # First remove it from the list of overridden variables, so we can test 14049 # for unknown variables in the end. 14050 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14051 14052 # Check if we try to supply an empty value 14053 if test "x$FGREP" = x; then 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14055 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14057 $as_echo_n "checking for FGREP... " >&6; } 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14059 $as_echo "disabled" >&6; } 14060 else 14061 # Check if the provided tool contains a complete path. 14062 tool_specified="$FGREP" 14063 tool_basename="${tool_specified##*/}" 14064 if test "x$tool_basename" = "x$tool_specified"; then 14065 # A command without a complete path is provided, search $PATH. 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14067 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14068 # Extract the first word of "$tool_basename", so it can be a program name with args. 14069 set dummy $tool_basename; ac_word=$2 14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14071 $as_echo_n "checking for $ac_word... " >&6; } 14072 if ${ac_cv_path_FGREP+:} false; then : 14073 $as_echo_n "(cached) " >&6 14074 else 14075 case $FGREP in 14076 [\\/]* | ?:[\\/]*) 14077 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14078 ;; 14079 *) 14080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14081 for as_dir in $PATH 14082 do 14083 IFS=$as_save_IFS 14084 test -z "$as_dir" && as_dir=. 14085 for ac_exec_ext in '' $ac_executable_extensions; do 14086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14087 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14089 break 2 14090 fi 14091 done 14092 done 14093 IFS=$as_save_IFS 14094 14095 ;; 14096 esac 14097 fi 14098 FGREP=$ac_cv_path_FGREP 14099 if test -n "$FGREP"; then 14100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14101 $as_echo "$FGREP" >&6; } 14102 else 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14104 $as_echo "no" >&6; } 14105 fi 14106 14107 14108 if test "x$FGREP" = x; then 14109 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14110 fi 14111 else 14112 # Otherwise we believe it is a complete path. Use it as it is. 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14114 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14116 $as_echo_n "checking for FGREP... " >&6; } 14117 if test ! -x "$tool_specified"; then 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14119 $as_echo "not found" >&6; } 14120 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14121 fi 14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14123 $as_echo "$tool_specified" >&6; } 14124 fi 14125 fi 14126 fi 14127 14128 fi 14129 14130 14131 if test "x$FGREP" = x; then 14132 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14133 fi 14134 14135 14136 14137 14138 # Publish this variable in the help. 14139 14140 14141 if [ -z "${SED+x}" ]; then 14142 # The variable is not set by user, try to locate tool using the code snippet 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14144 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14145 if ${ac_cv_path_SED+:} false; then : 14146 $as_echo_n "(cached) " >&6 14147 else 14148 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14149 for ac_i in 1 2 3 4 5 6 7; do 14150 ac_script="$ac_script$as_nl$ac_script" 14151 done 14152 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14153 { ac_script=; unset ac_script;} 14154 if test -z "$SED"; then 14155 ac_path_SED_found=false 14156 # Loop through the user's path and test for each of PROGNAME-LIST 14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14158 for as_dir in $PATH 14159 do 14160 IFS=$as_save_IFS 14161 test -z "$as_dir" && as_dir=. 14162 for ac_prog in sed gsed; do 14163 for ac_exec_ext in '' $ac_executable_extensions; do 14164 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14165 as_fn_executable_p "$ac_path_SED" || continue 14166 # Check for GNU ac_path_SED and select it if it is found. 14167 # Check for GNU $ac_path_SED 14168 case `"$ac_path_SED" --version 2>&1` in 14169 *GNU*) 14170 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14171 *) 14172 ac_count=0 14173 $as_echo_n 0123456789 >"conftest.in" 14174 while : 14175 do 14176 cat "conftest.in" "conftest.in" >"conftest.tmp" 14177 mv "conftest.tmp" "conftest.in" 14178 cp "conftest.in" "conftest.nl" 14179 $as_echo '' >> "conftest.nl" 14180 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14182 as_fn_arith $ac_count + 1 && ac_count=$as_val 14183 if test $ac_count -gt ${ac_path_SED_max-0}; then 14184 # Best one so far, save it but keep looking for a better one 14185 ac_cv_path_SED="$ac_path_SED" 14186 ac_path_SED_max=$ac_count 14187 fi 14188 # 10*(2^10) chars as input seems more than enough 14189 test $ac_count -gt 10 && break 14190 done 14191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14192 esac 14193 14194 $ac_path_SED_found && break 3 14195 done 14196 done 14197 done 14198 IFS=$as_save_IFS 14199 if test -z "$ac_cv_path_SED"; then 14200 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14201 fi 14202 else 14203 ac_cv_path_SED=$SED 14204 fi 14205 14206 fi 14207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14208 $as_echo "$ac_cv_path_SED" >&6; } 14209 SED="$ac_cv_path_SED" 14210 rm -f conftest.sed 14211 14212 else 14213 # The variable is set, but is it from the command line or the environment? 14214 14215 # Try to remove the string !SED! from our list. 14216 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14217 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14218 # If it failed, the variable was not from the command line. Ignore it, 14219 # but warn the user (except for BASH, which is always set by the calling BASH). 14220 if test "xSED" != xBASH; then 14221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14222 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14223 fi 14224 # Try to locate tool using the code snippet 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14226 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14227 if ${ac_cv_path_SED+:} false; then : 14228 $as_echo_n "(cached) " >&6 14229 else 14230 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14231 for ac_i in 1 2 3 4 5 6 7; do 14232 ac_script="$ac_script$as_nl$ac_script" 14233 done 14234 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14235 { ac_script=; unset ac_script;} 14236 if test -z "$SED"; then 14237 ac_path_SED_found=false 14238 # Loop through the user's path and test for each of PROGNAME-LIST 14239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14240 for as_dir in $PATH 14241 do 14242 IFS=$as_save_IFS 14243 test -z "$as_dir" && as_dir=. 14244 for ac_prog in sed gsed; do 14245 for ac_exec_ext in '' $ac_executable_extensions; do 14246 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14247 as_fn_executable_p "$ac_path_SED" || continue 14248 # Check for GNU ac_path_SED and select it if it is found. 14249 # Check for GNU $ac_path_SED 14250 case `"$ac_path_SED" --version 2>&1` in 14251 *GNU*) 14252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14253 *) 14254 ac_count=0 14255 $as_echo_n 0123456789 >"conftest.in" 14256 while : 14257 do 14258 cat "conftest.in" "conftest.in" >"conftest.tmp" 14259 mv "conftest.tmp" "conftest.in" 14260 cp "conftest.in" "conftest.nl" 14261 $as_echo '' >> "conftest.nl" 14262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14264 as_fn_arith $ac_count + 1 && ac_count=$as_val 14265 if test $ac_count -gt ${ac_path_SED_max-0}; then 14266 # Best one so far, save it but keep looking for a better one 14267 ac_cv_path_SED="$ac_path_SED" 14268 ac_path_SED_max=$ac_count 14269 fi 14270 # 10*(2^10) chars as input seems more than enough 14271 test $ac_count -gt 10 && break 14272 done 14273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14274 esac 14275 14276 $ac_path_SED_found && break 3 14277 done 14278 done 14279 done 14280 IFS=$as_save_IFS 14281 if test -z "$ac_cv_path_SED"; then 14282 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14283 fi 14284 else 14285 ac_cv_path_SED=$SED 14286 fi 14287 14288 fi 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14290 $as_echo "$ac_cv_path_SED" >&6; } 14291 SED="$ac_cv_path_SED" 14292 rm -f conftest.sed 14293 14294 else 14295 # If it succeeded, then it was overridden by the user. We will use it 14296 # for the tool. 14297 14298 # First remove it from the list of overridden variables, so we can test 14299 # for unknown variables in the end. 14300 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14301 14302 # Check if we try to supply an empty value 14303 if test "x$SED" = x; then 14304 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14305 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14307 $as_echo_n "checking for SED... " >&6; } 14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14309 $as_echo "disabled" >&6; } 14310 else 14311 # Check if the provided tool contains a complete path. 14312 tool_specified="$SED" 14313 tool_basename="${tool_specified##*/}" 14314 if test "x$tool_basename" = "x$tool_specified"; then 14315 # A command without a complete path is provided, search $PATH. 14316 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14317 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14318 # Extract the first word of "$tool_basename", so it can be a program name with args. 14319 set dummy $tool_basename; ac_word=$2 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14321 $as_echo_n "checking for $ac_word... " >&6; } 14322 if ${ac_cv_path_SED+:} false; then : 14323 $as_echo_n "(cached) " >&6 14324 else 14325 case $SED in 14326 [\\/]* | ?:[\\/]*) 14327 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14328 ;; 14329 *) 14330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14331 for as_dir in $PATH 14332 do 14333 IFS=$as_save_IFS 14334 test -z "$as_dir" && as_dir=. 14335 for ac_exec_ext in '' $ac_executable_extensions; do 14336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14337 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14339 break 2 14340 fi 14341 done 14342 done 14343 IFS=$as_save_IFS 14344 14345 ;; 14346 esac 14347 fi 14348 SED=$ac_cv_path_SED 14349 if test -n "$SED"; then 14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14351 $as_echo "$SED" >&6; } 14352 else 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14354 $as_echo "no" >&6; } 14355 fi 14356 14357 14358 if test "x$SED" = x; then 14359 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14360 fi 14361 else 14362 # Otherwise we believe it is a complete path. Use it as it is. 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14364 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14366 $as_echo_n "checking for SED... " >&6; } 14367 if test ! -x "$tool_specified"; then 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14369 $as_echo "not found" >&6; } 14370 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14371 fi 14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14373 $as_echo "$tool_specified" >&6; } 14374 fi 14375 fi 14376 fi 14377 14378 fi 14379 14380 14381 if test "x$SED" = x; then 14382 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14383 fi 14384 14385 14386 14387 # Always force rm. 14388 RM="$RM -f" 14389 14390 # pwd behaves differently on various platforms and some don't support the -L flag. 14391 # Always use the bash builtin pwd to get uniform behavior. 14392 THEPWDCMD=pwd 14393 14394 # These are not required on all platforms 14395 14396 14397 # Publish this variable in the help. 14398 14399 14400 if [ -z "${CYGPATH+x}" ]; then 14401 # The variable is not set by user, try to locate tool using the code snippet 14402 for ac_prog in cygpath 14403 do 14404 # Extract the first word of "$ac_prog", so it can be a program name with args. 14405 set dummy $ac_prog; ac_word=$2 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14407 $as_echo_n "checking for $ac_word... " >&6; } 14408 if ${ac_cv_path_CYGPATH+:} false; then : 14409 $as_echo_n "(cached) " >&6 14410 else 14411 case $CYGPATH in 14412 [\\/]* | ?:[\\/]*) 14413 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14414 ;; 14415 *) 14416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14417 for as_dir in $PATH 14418 do 14419 IFS=$as_save_IFS 14420 test -z "$as_dir" && as_dir=. 14421 for ac_exec_ext in '' $ac_executable_extensions; do 14422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14423 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14425 break 2 14426 fi 14427 done 14428 done 14429 IFS=$as_save_IFS 14430 14431 ;; 14432 esac 14433 fi 14434 CYGPATH=$ac_cv_path_CYGPATH 14435 if test -n "$CYGPATH"; then 14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14437 $as_echo "$CYGPATH" >&6; } 14438 else 14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14440 $as_echo "no" >&6; } 14441 fi 14442 14443 14444 test -n "$CYGPATH" && break 14445 done 14446 14447 else 14448 # The variable is set, but is it from the command line or the environment? 14449 14450 # Try to remove the string !CYGPATH! from our list. 14451 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14452 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14453 # If it failed, the variable was not from the command line. Ignore it, 14454 # but warn the user (except for BASH, which is always set by the calling BASH). 14455 if test "xCYGPATH" != xBASH; then 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14457 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14458 fi 14459 # Try to locate tool using the code snippet 14460 for ac_prog in cygpath 14461 do 14462 # Extract the first word of "$ac_prog", so it can be a program name with args. 14463 set dummy $ac_prog; ac_word=$2 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14465 $as_echo_n "checking for $ac_word... " >&6; } 14466 if ${ac_cv_path_CYGPATH+:} false; then : 14467 $as_echo_n "(cached) " >&6 14468 else 14469 case $CYGPATH in 14470 [\\/]* | ?:[\\/]*) 14471 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14472 ;; 14473 *) 14474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14475 for as_dir in $PATH 14476 do 14477 IFS=$as_save_IFS 14478 test -z "$as_dir" && as_dir=. 14479 for ac_exec_ext in '' $ac_executable_extensions; do 14480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14481 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14483 break 2 14484 fi 14485 done 14486 done 14487 IFS=$as_save_IFS 14488 14489 ;; 14490 esac 14491 fi 14492 CYGPATH=$ac_cv_path_CYGPATH 14493 if test -n "$CYGPATH"; then 14494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14495 $as_echo "$CYGPATH" >&6; } 14496 else 14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14498 $as_echo "no" >&6; } 14499 fi 14500 14501 14502 test -n "$CYGPATH" && break 14503 done 14504 14505 else 14506 # If it succeeded, then it was overridden by the user. We will use it 14507 # for the tool. 14508 14509 # First remove it from the list of overridden variables, so we can test 14510 # for unknown variables in the end. 14511 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14512 14513 # Check if we try to supply an empty value 14514 if test "x$CYGPATH" = x; then 14515 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14516 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14518 $as_echo_n "checking for CYGPATH... " >&6; } 14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14520 $as_echo "disabled" >&6; } 14521 else 14522 # Check if the provided tool contains a complete path. 14523 tool_specified="$CYGPATH" 14524 tool_basename="${tool_specified##*/}" 14525 if test "x$tool_basename" = "x$tool_specified"; then 14526 # A command without a complete path is provided, search $PATH. 14527 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14528 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14529 # Extract the first word of "$tool_basename", so it can be a program name with args. 14530 set dummy $tool_basename; ac_word=$2 14531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14532 $as_echo_n "checking for $ac_word... " >&6; } 14533 if ${ac_cv_path_CYGPATH+:} false; then : 14534 $as_echo_n "(cached) " >&6 14535 else 14536 case $CYGPATH in 14537 [\\/]* | ?:[\\/]*) 14538 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14539 ;; 14540 *) 14541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14542 for as_dir in $PATH 14543 do 14544 IFS=$as_save_IFS 14545 test -z "$as_dir" && as_dir=. 14546 for ac_exec_ext in '' $ac_executable_extensions; do 14547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14548 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14550 break 2 14551 fi 14552 done 14553 done 14554 IFS=$as_save_IFS 14555 14556 ;; 14557 esac 14558 fi 14559 CYGPATH=$ac_cv_path_CYGPATH 14560 if test -n "$CYGPATH"; then 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14562 $as_echo "$CYGPATH" >&6; } 14563 else 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14565 $as_echo "no" >&6; } 14566 fi 14567 14568 14569 if test "x$CYGPATH" = x; then 14570 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14571 fi 14572 else 14573 # Otherwise we believe it is a complete path. Use it as it is. 14574 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14575 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14577 $as_echo_n "checking for CYGPATH... " >&6; } 14578 if test ! -x "$tool_specified"; then 14579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14580 $as_echo "not found" >&6; } 14581 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14582 fi 14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14584 $as_echo "$tool_specified" >&6; } 14585 fi 14586 fi 14587 fi 14588 14589 fi 14590 14591 14592 14593 14594 # Publish this variable in the help. 14595 14596 14597 if [ -z "${READLINK+x}" ]; then 14598 # The variable is not set by user, try to locate tool using the code snippet 14599 for ac_prog in greadlink readlink 14600 do 14601 # Extract the first word of "$ac_prog", so it can be a program name with args. 14602 set dummy $ac_prog; ac_word=$2 14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14604 $as_echo_n "checking for $ac_word... " >&6; } 14605 if ${ac_cv_path_READLINK+:} false; then : 14606 $as_echo_n "(cached) " >&6 14607 else 14608 case $READLINK in 14609 [\\/]* | ?:[\\/]*) 14610 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14611 ;; 14612 *) 14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14614 for as_dir in $PATH 14615 do 14616 IFS=$as_save_IFS 14617 test -z "$as_dir" && as_dir=. 14618 for ac_exec_ext in '' $ac_executable_extensions; do 14619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14620 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14622 break 2 14623 fi 14624 done 14625 done 14626 IFS=$as_save_IFS 14627 14628 ;; 14629 esac 14630 fi 14631 READLINK=$ac_cv_path_READLINK 14632 if test -n "$READLINK"; then 14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14634 $as_echo "$READLINK" >&6; } 14635 else 14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14637 $as_echo "no" >&6; } 14638 fi 14639 14640 14641 test -n "$READLINK" && break 14642 done 14643 14644 else 14645 # The variable is set, but is it from the command line or the environment? 14646 14647 # Try to remove the string !READLINK! from our list. 14648 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14649 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14650 # If it failed, the variable was not from the command line. Ignore it, 14651 # but warn the user (except for BASH, which is always set by the calling BASH). 14652 if test "xREADLINK" != xBASH; then 14653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14654 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14655 fi 14656 # Try to locate tool using the code snippet 14657 for ac_prog in greadlink readlink 14658 do 14659 # Extract the first word of "$ac_prog", so it can be a program name with args. 14660 set dummy $ac_prog; ac_word=$2 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14662 $as_echo_n "checking for $ac_word... " >&6; } 14663 if ${ac_cv_path_READLINK+:} false; then : 14664 $as_echo_n "(cached) " >&6 14665 else 14666 case $READLINK in 14667 [\\/]* | ?:[\\/]*) 14668 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14669 ;; 14670 *) 14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14672 for as_dir in $PATH 14673 do 14674 IFS=$as_save_IFS 14675 test -z "$as_dir" && as_dir=. 14676 for ac_exec_ext in '' $ac_executable_extensions; do 14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14678 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14680 break 2 14681 fi 14682 done 14683 done 14684 IFS=$as_save_IFS 14685 14686 ;; 14687 esac 14688 fi 14689 READLINK=$ac_cv_path_READLINK 14690 if test -n "$READLINK"; then 14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14692 $as_echo "$READLINK" >&6; } 14693 else 14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14695 $as_echo "no" >&6; } 14696 fi 14697 14698 14699 test -n "$READLINK" && break 14700 done 14701 14702 else 14703 # If it succeeded, then it was overridden by the user. We will use it 14704 # for the tool. 14705 14706 # First remove it from the list of overridden variables, so we can test 14707 # for unknown variables in the end. 14708 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14709 14710 # Check if we try to supply an empty value 14711 if test "x$READLINK" = x; then 14712 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14713 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14715 $as_echo_n "checking for READLINK... " >&6; } 14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14717 $as_echo "disabled" >&6; } 14718 else 14719 # Check if the provided tool contains a complete path. 14720 tool_specified="$READLINK" 14721 tool_basename="${tool_specified##*/}" 14722 if test "x$tool_basename" = "x$tool_specified"; then 14723 # A command without a complete path is provided, search $PATH. 14724 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14725 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14726 # Extract the first word of "$tool_basename", so it can be a program name with args. 14727 set dummy $tool_basename; ac_word=$2 14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14729 $as_echo_n "checking for $ac_word... " >&6; } 14730 if ${ac_cv_path_READLINK+:} false; then : 14731 $as_echo_n "(cached) " >&6 14732 else 14733 case $READLINK in 14734 [\\/]* | ?:[\\/]*) 14735 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14736 ;; 14737 *) 14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14739 for as_dir in $PATH 14740 do 14741 IFS=$as_save_IFS 14742 test -z "$as_dir" && as_dir=. 14743 for ac_exec_ext in '' $ac_executable_extensions; do 14744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14745 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14747 break 2 14748 fi 14749 done 14750 done 14751 IFS=$as_save_IFS 14752 14753 ;; 14754 esac 14755 fi 14756 READLINK=$ac_cv_path_READLINK 14757 if test -n "$READLINK"; then 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14759 $as_echo "$READLINK" >&6; } 14760 else 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14762 $as_echo "no" >&6; } 14763 fi 14764 14765 14766 if test "x$READLINK" = x; then 14767 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14768 fi 14769 else 14770 # Otherwise we believe it is a complete path. Use it as it is. 14771 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14772 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14774 $as_echo_n "checking for READLINK... " >&6; } 14775 if test ! -x "$tool_specified"; then 14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14777 $as_echo "not found" >&6; } 14778 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14779 fi 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14781 $as_echo "$tool_specified" >&6; } 14782 fi 14783 fi 14784 fi 14785 14786 fi 14787 14788 14789 14790 14791 # Publish this variable in the help. 14792 14793 14794 if [ -z "${DF+x}" ]; then 14795 # The variable is not set by user, try to locate tool using the code snippet 14796 for ac_prog in df 14797 do 14798 # Extract the first word of "$ac_prog", so it can be a program name with args. 14799 set dummy $ac_prog; ac_word=$2 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14801 $as_echo_n "checking for $ac_word... " >&6; } 14802 if ${ac_cv_path_DF+:} false; then : 14803 $as_echo_n "(cached) " >&6 14804 else 14805 case $DF in 14806 [\\/]* | ?:[\\/]*) 14807 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14808 ;; 14809 *) 14810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14811 for as_dir in $PATH 14812 do 14813 IFS=$as_save_IFS 14814 test -z "$as_dir" && as_dir=. 14815 for ac_exec_ext in '' $ac_executable_extensions; do 14816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14817 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14819 break 2 14820 fi 14821 done 14822 done 14823 IFS=$as_save_IFS 14824 14825 ;; 14826 esac 14827 fi 14828 DF=$ac_cv_path_DF 14829 if test -n "$DF"; then 14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14831 $as_echo "$DF" >&6; } 14832 else 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14834 $as_echo "no" >&6; } 14835 fi 14836 14837 14838 test -n "$DF" && break 14839 done 14840 14841 else 14842 # The variable is set, but is it from the command line or the environment? 14843 14844 # Try to remove the string !DF! from our list. 14845 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14846 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14847 # If it failed, the variable was not from the command line. Ignore it, 14848 # but warn the user (except for BASH, which is always set by the calling BASH). 14849 if test "xDF" != xBASH; then 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14851 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14852 fi 14853 # Try to locate tool using the code snippet 14854 for ac_prog in df 14855 do 14856 # Extract the first word of "$ac_prog", so it can be a program name with args. 14857 set dummy $ac_prog; ac_word=$2 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14859 $as_echo_n "checking for $ac_word... " >&6; } 14860 if ${ac_cv_path_DF+:} false; then : 14861 $as_echo_n "(cached) " >&6 14862 else 14863 case $DF in 14864 [\\/]* | ?:[\\/]*) 14865 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14866 ;; 14867 *) 14868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14869 for as_dir in $PATH 14870 do 14871 IFS=$as_save_IFS 14872 test -z "$as_dir" && as_dir=. 14873 for ac_exec_ext in '' $ac_executable_extensions; do 14874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14875 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14877 break 2 14878 fi 14879 done 14880 done 14881 IFS=$as_save_IFS 14882 14883 ;; 14884 esac 14885 fi 14886 DF=$ac_cv_path_DF 14887 if test -n "$DF"; then 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14889 $as_echo "$DF" >&6; } 14890 else 14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14892 $as_echo "no" >&6; } 14893 fi 14894 14895 14896 test -n "$DF" && break 14897 done 14898 14899 else 14900 # If it succeeded, then it was overridden by the user. We will use it 14901 # for the tool. 14902 14903 # First remove it from the list of overridden variables, so we can test 14904 # for unknown variables in the end. 14905 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14906 14907 # Check if we try to supply an empty value 14908 if test "x$DF" = x; then 14909 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14910 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14912 $as_echo_n "checking for DF... " >&6; } 14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14914 $as_echo "disabled" >&6; } 14915 else 14916 # Check if the provided tool contains a complete path. 14917 tool_specified="$DF" 14918 tool_basename="${tool_specified##*/}" 14919 if test "x$tool_basename" = "x$tool_specified"; then 14920 # A command without a complete path is provided, search $PATH. 14921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14922 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14923 # Extract the first word of "$tool_basename", so it can be a program name with args. 14924 set dummy $tool_basename; ac_word=$2 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14926 $as_echo_n "checking for $ac_word... " >&6; } 14927 if ${ac_cv_path_DF+:} false; then : 14928 $as_echo_n "(cached) " >&6 14929 else 14930 case $DF in 14931 [\\/]* | ?:[\\/]*) 14932 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14933 ;; 14934 *) 14935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14936 for as_dir in $PATH 14937 do 14938 IFS=$as_save_IFS 14939 test -z "$as_dir" && as_dir=. 14940 for ac_exec_ext in '' $ac_executable_extensions; do 14941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14942 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14944 break 2 14945 fi 14946 done 14947 done 14948 IFS=$as_save_IFS 14949 14950 ;; 14951 esac 14952 fi 14953 DF=$ac_cv_path_DF 14954 if test -n "$DF"; then 14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14956 $as_echo "$DF" >&6; } 14957 else 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14959 $as_echo "no" >&6; } 14960 fi 14961 14962 14963 if test "x$DF" = x; then 14964 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14965 fi 14966 else 14967 # Otherwise we believe it is a complete path. Use it as it is. 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14969 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14971 $as_echo_n "checking for DF... " >&6; } 14972 if test ! -x "$tool_specified"; then 14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14974 $as_echo "not found" >&6; } 14975 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14976 fi 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14978 $as_echo "$tool_specified" >&6; } 14979 fi 14980 fi 14981 fi 14982 14983 fi 14984 14985 14986 14987 14988 # Publish this variable in the help. 14989 14990 14991 if [ -z "${CPIO+x}" ]; then 14992 # The variable is not set by user, try to locate tool using the code snippet 14993 for ac_prog in cpio bsdcpio 14994 do 14995 # Extract the first word of "$ac_prog", so it can be a program name with args. 14996 set dummy $ac_prog; ac_word=$2 14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14998 $as_echo_n "checking for $ac_word... " >&6; } 14999 if ${ac_cv_path_CPIO+:} false; then : 15000 $as_echo_n "(cached) " >&6 15001 else 15002 case $CPIO in 15003 [\\/]* | ?:[\\/]*) 15004 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15005 ;; 15006 *) 15007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15008 for as_dir in $PATH 15009 do 15010 IFS=$as_save_IFS 15011 test -z "$as_dir" && as_dir=. 15012 for ac_exec_ext in '' $ac_executable_extensions; do 15013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15014 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15016 break 2 15017 fi 15018 done 15019 done 15020 IFS=$as_save_IFS 15021 15022 ;; 15023 esac 15024 fi 15025 CPIO=$ac_cv_path_CPIO 15026 if test -n "$CPIO"; then 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15028 $as_echo "$CPIO" >&6; } 15029 else 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15031 $as_echo "no" >&6; } 15032 fi 15033 15034 15035 test -n "$CPIO" && break 15036 done 15037 15038 else 15039 # The variable is set, but is it from the command line or the environment? 15040 15041 # Try to remove the string !CPIO! from our list. 15042 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15043 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15044 # If it failed, the variable was not from the command line. Ignore it, 15045 # but warn the user (except for BASH, which is always set by the calling BASH). 15046 if test "xCPIO" != xBASH; then 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15048 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15049 fi 15050 # Try to locate tool using the code snippet 15051 for ac_prog in cpio bsdcpio 15052 do 15053 # Extract the first word of "$ac_prog", so it can be a program name with args. 15054 set dummy $ac_prog; ac_word=$2 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15056 $as_echo_n "checking for $ac_word... " >&6; } 15057 if ${ac_cv_path_CPIO+:} false; then : 15058 $as_echo_n "(cached) " >&6 15059 else 15060 case $CPIO in 15061 [\\/]* | ?:[\\/]*) 15062 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15063 ;; 15064 *) 15065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15066 for as_dir in $PATH 15067 do 15068 IFS=$as_save_IFS 15069 test -z "$as_dir" && as_dir=. 15070 for ac_exec_ext in '' $ac_executable_extensions; do 15071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15072 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15074 break 2 15075 fi 15076 done 15077 done 15078 IFS=$as_save_IFS 15079 15080 ;; 15081 esac 15082 fi 15083 CPIO=$ac_cv_path_CPIO 15084 if test -n "$CPIO"; then 15085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15086 $as_echo "$CPIO" >&6; } 15087 else 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15089 $as_echo "no" >&6; } 15090 fi 15091 15092 15093 test -n "$CPIO" && break 15094 done 15095 15096 else 15097 # If it succeeded, then it was overridden by the user. We will use it 15098 # for the tool. 15099 15100 # First remove it from the list of overridden variables, so we can test 15101 # for unknown variables in the end. 15102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15103 15104 # Check if we try to supply an empty value 15105 if test "x$CPIO" = x; then 15106 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15107 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15109 $as_echo_n "checking for CPIO... " >&6; } 15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15111 $as_echo "disabled" >&6; } 15112 else 15113 # Check if the provided tool contains a complete path. 15114 tool_specified="$CPIO" 15115 tool_basename="${tool_specified##*/}" 15116 if test "x$tool_basename" = "x$tool_specified"; then 15117 # A command without a complete path is provided, search $PATH. 15118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15119 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15120 # Extract the first word of "$tool_basename", so it can be a program name with args. 15121 set dummy $tool_basename; ac_word=$2 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15123 $as_echo_n "checking for $ac_word... " >&6; } 15124 if ${ac_cv_path_CPIO+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126 else 15127 case $CPIO in 15128 [\\/]* | ?:[\\/]*) 15129 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15130 ;; 15131 *) 15132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15133 for as_dir in $PATH 15134 do 15135 IFS=$as_save_IFS 15136 test -z "$as_dir" && as_dir=. 15137 for ac_exec_ext in '' $ac_executable_extensions; do 15138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15139 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15141 break 2 15142 fi 15143 done 15144 done 15145 IFS=$as_save_IFS 15146 15147 ;; 15148 esac 15149 fi 15150 CPIO=$ac_cv_path_CPIO 15151 if test -n "$CPIO"; then 15152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15153 $as_echo "$CPIO" >&6; } 15154 else 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15156 $as_echo "no" >&6; } 15157 fi 15158 15159 15160 if test "x$CPIO" = x; then 15161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15162 fi 15163 else 15164 # Otherwise we believe it is a complete path. Use it as it is. 15165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15166 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15168 $as_echo_n "checking for CPIO... " >&6; } 15169 if test ! -x "$tool_specified"; then 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15171 $as_echo "not found" >&6; } 15172 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15173 fi 15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15175 $as_echo "$tool_specified" >&6; } 15176 fi 15177 fi 15178 fi 15179 15180 fi 15181 15182 15183 15184 15185 # Publish this variable in the help. 15186 15187 15188 if [ -z "${NICE+x}" ]; then 15189 # The variable is not set by user, try to locate tool using the code snippet 15190 for ac_prog in nice 15191 do 15192 # Extract the first word of "$ac_prog", so it can be a program name with args. 15193 set dummy $ac_prog; ac_word=$2 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15195 $as_echo_n "checking for $ac_word... " >&6; } 15196 if ${ac_cv_path_NICE+:} false; then : 15197 $as_echo_n "(cached) " >&6 15198 else 15199 case $NICE in 15200 [\\/]* | ?:[\\/]*) 15201 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15202 ;; 15203 *) 15204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15205 for as_dir in $PATH 15206 do 15207 IFS=$as_save_IFS 15208 test -z "$as_dir" && as_dir=. 15209 for ac_exec_ext in '' $ac_executable_extensions; do 15210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15211 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15213 break 2 15214 fi 15215 done 15216 done 15217 IFS=$as_save_IFS 15218 15219 ;; 15220 esac 15221 fi 15222 NICE=$ac_cv_path_NICE 15223 if test -n "$NICE"; then 15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15225 $as_echo "$NICE" >&6; } 15226 else 15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15228 $as_echo "no" >&6; } 15229 fi 15230 15231 15232 test -n "$NICE" && break 15233 done 15234 15235 else 15236 # The variable is set, but is it from the command line or the environment? 15237 15238 # Try to remove the string !NICE! from our list. 15239 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15240 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15241 # If it failed, the variable was not from the command line. Ignore it, 15242 # but warn the user (except for BASH, which is always set by the calling BASH). 15243 if test "xNICE" != xBASH; then 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15245 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15246 fi 15247 # Try to locate tool using the code snippet 15248 for ac_prog in nice 15249 do 15250 # Extract the first word of "$ac_prog", so it can be a program name with args. 15251 set dummy $ac_prog; ac_word=$2 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15253 $as_echo_n "checking for $ac_word... " >&6; } 15254 if ${ac_cv_path_NICE+:} false; then : 15255 $as_echo_n "(cached) " >&6 15256 else 15257 case $NICE in 15258 [\\/]* | ?:[\\/]*) 15259 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15260 ;; 15261 *) 15262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15263 for as_dir in $PATH 15264 do 15265 IFS=$as_save_IFS 15266 test -z "$as_dir" && as_dir=. 15267 for ac_exec_ext in '' $ac_executable_extensions; do 15268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15269 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15271 break 2 15272 fi 15273 done 15274 done 15275 IFS=$as_save_IFS 15276 15277 ;; 15278 esac 15279 fi 15280 NICE=$ac_cv_path_NICE 15281 if test -n "$NICE"; then 15282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15283 $as_echo "$NICE" >&6; } 15284 else 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15286 $as_echo "no" >&6; } 15287 fi 15288 15289 15290 test -n "$NICE" && break 15291 done 15292 15293 else 15294 # If it succeeded, then it was overridden by the user. We will use it 15295 # for the tool. 15296 15297 # First remove it from the list of overridden variables, so we can test 15298 # for unknown variables in the end. 15299 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15300 15301 # Check if we try to supply an empty value 15302 if test "x$NICE" = x; then 15303 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15304 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15306 $as_echo_n "checking for NICE... " >&6; } 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15308 $as_echo "disabled" >&6; } 15309 else 15310 # Check if the provided tool contains a complete path. 15311 tool_specified="$NICE" 15312 tool_basename="${tool_specified##*/}" 15313 if test "x$tool_basename" = "x$tool_specified"; then 15314 # A command without a complete path is provided, search $PATH. 15315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15316 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15317 # Extract the first word of "$tool_basename", so it can be a program name with args. 15318 set dummy $tool_basename; ac_word=$2 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15320 $as_echo_n "checking for $ac_word... " >&6; } 15321 if ${ac_cv_path_NICE+:} false; then : 15322 $as_echo_n "(cached) " >&6 15323 else 15324 case $NICE in 15325 [\\/]* | ?:[\\/]*) 15326 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15327 ;; 15328 *) 15329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15330 for as_dir in $PATH 15331 do 15332 IFS=$as_save_IFS 15333 test -z "$as_dir" && as_dir=. 15334 for ac_exec_ext in '' $ac_executable_extensions; do 15335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15336 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15338 break 2 15339 fi 15340 done 15341 done 15342 IFS=$as_save_IFS 15343 15344 ;; 15345 esac 15346 fi 15347 NICE=$ac_cv_path_NICE 15348 if test -n "$NICE"; then 15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15350 $as_echo "$NICE" >&6; } 15351 else 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15353 $as_echo "no" >&6; } 15354 fi 15355 15356 15357 if test "x$NICE" = x; then 15358 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15359 fi 15360 else 15361 # Otherwise we believe it is a complete path. Use it as it is. 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15363 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15365 $as_echo_n "checking for NICE... " >&6; } 15366 if test ! -x "$tool_specified"; then 15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15368 $as_echo "not found" >&6; } 15369 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15370 fi 15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15372 $as_echo "$tool_specified" >&6; } 15373 fi 15374 fi 15375 fi 15376 15377 fi 15378 15379 15380 15381 15382 # Publish this variable in the help. 15383 15384 15385 if [ -z "${PANDOC+x}" ]; then 15386 # The variable is not set by user, try to locate tool using the code snippet 15387 for ac_prog in pandoc 15388 do 15389 # Extract the first word of "$ac_prog", so it can be a program name with args. 15390 set dummy $ac_prog; ac_word=$2 15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15392 $as_echo_n "checking for $ac_word... " >&6; } 15393 if ${ac_cv_path_PANDOC+:} false; then : 15394 $as_echo_n "(cached) " >&6 15395 else 15396 case $PANDOC in 15397 [\\/]* | ?:[\\/]*) 15398 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15399 ;; 15400 *) 15401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15402 for as_dir in $PATH 15403 do 15404 IFS=$as_save_IFS 15405 test -z "$as_dir" && as_dir=. 15406 for ac_exec_ext in '' $ac_executable_extensions; do 15407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15408 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15410 break 2 15411 fi 15412 done 15413 done 15414 IFS=$as_save_IFS 15415 15416 ;; 15417 esac 15418 fi 15419 PANDOC=$ac_cv_path_PANDOC 15420 if test -n "$PANDOC"; then 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15422 $as_echo "$PANDOC" >&6; } 15423 else 15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15425 $as_echo "no" >&6; } 15426 fi 15427 15428 15429 test -n "$PANDOC" && break 15430 done 15431 15432 else 15433 # The variable is set, but is it from the command line or the environment? 15434 15435 # Try to remove the string !PANDOC! from our list. 15436 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15437 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15438 # If it failed, the variable was not from the command line. Ignore it, 15439 # but warn the user (except for BASH, which is always set by the calling BASH). 15440 if test "xPANDOC" != xBASH; then 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15442 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15443 fi 15444 # Try to locate tool using the code snippet 15445 for ac_prog in pandoc 15446 do 15447 # Extract the first word of "$ac_prog", so it can be a program name with args. 15448 set dummy $ac_prog; ac_word=$2 15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15450 $as_echo_n "checking for $ac_word... " >&6; } 15451 if ${ac_cv_path_PANDOC+:} false; then : 15452 $as_echo_n "(cached) " >&6 15453 else 15454 case $PANDOC in 15455 [\\/]* | ?:[\\/]*) 15456 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15457 ;; 15458 *) 15459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15460 for as_dir in $PATH 15461 do 15462 IFS=$as_save_IFS 15463 test -z "$as_dir" && as_dir=. 15464 for ac_exec_ext in '' $ac_executable_extensions; do 15465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15466 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15468 break 2 15469 fi 15470 done 15471 done 15472 IFS=$as_save_IFS 15473 15474 ;; 15475 esac 15476 fi 15477 PANDOC=$ac_cv_path_PANDOC 15478 if test -n "$PANDOC"; then 15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15480 $as_echo "$PANDOC" >&6; } 15481 else 15482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15483 $as_echo "no" >&6; } 15484 fi 15485 15486 15487 test -n "$PANDOC" && break 15488 done 15489 15490 else 15491 # If it succeeded, then it was overridden by the user. We will use it 15492 # for the tool. 15493 15494 # First remove it from the list of overridden variables, so we can test 15495 # for unknown variables in the end. 15496 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15497 15498 # Check if we try to supply an empty value 15499 if test "x$PANDOC" = x; then 15500 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15501 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15503 $as_echo_n "checking for PANDOC... " >&6; } 15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15505 $as_echo "disabled" >&6; } 15506 else 15507 # Check if the provided tool contains a complete path. 15508 tool_specified="$PANDOC" 15509 tool_basename="${tool_specified##*/}" 15510 if test "x$tool_basename" = "x$tool_specified"; then 15511 # A command without a complete path is provided, search $PATH. 15512 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15513 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15514 # Extract the first word of "$tool_basename", so it can be a program name with args. 15515 set dummy $tool_basename; ac_word=$2 15516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15517 $as_echo_n "checking for $ac_word... " >&6; } 15518 if ${ac_cv_path_PANDOC+:} false; then : 15519 $as_echo_n "(cached) " >&6 15520 else 15521 case $PANDOC in 15522 [\\/]* | ?:[\\/]*) 15523 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15524 ;; 15525 *) 15526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15527 for as_dir in $PATH 15528 do 15529 IFS=$as_save_IFS 15530 test -z "$as_dir" && as_dir=. 15531 for ac_exec_ext in '' $ac_executable_extensions; do 15532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15533 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15535 break 2 15536 fi 15537 done 15538 done 15539 IFS=$as_save_IFS 15540 15541 ;; 15542 esac 15543 fi 15544 PANDOC=$ac_cv_path_PANDOC 15545 if test -n "$PANDOC"; then 15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15547 $as_echo "$PANDOC" >&6; } 15548 else 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15550 $as_echo "no" >&6; } 15551 fi 15552 15553 15554 if test "x$PANDOC" = x; then 15555 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15556 fi 15557 else 15558 # Otherwise we believe it is a complete path. Use it as it is. 15559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15560 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15562 $as_echo_n "checking for PANDOC... " >&6; } 15563 if test ! -x "$tool_specified"; then 15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15565 $as_echo "not found" >&6; } 15566 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15567 fi 15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15569 $as_echo "$tool_specified" >&6; } 15570 fi 15571 fi 15572 fi 15573 15574 fi 15575 15576 15577 15578 15579 # Now we can determine OpenJDK build and target platforms. This is required to 15580 # have early on. 15581 # Make sure we can run config.sub. 15582 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15583 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15584 15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15586 $as_echo_n "checking build system type... " >&6; } 15587 if ${ac_cv_build+:} false; then : 15588 $as_echo_n "(cached) " >&6 15589 else 15590 ac_build_alias=$build_alias 15591 test "x$ac_build_alias" = x && 15592 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15593 test "x$ac_build_alias" = x && 15594 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15595 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15596 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15597 15598 fi 15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15600 $as_echo "$ac_cv_build" >&6; } 15601 case $ac_cv_build in 15602 *-*-*) ;; 15603 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15604 esac 15605 build=$ac_cv_build 15606 ac_save_IFS=$IFS; IFS='-' 15607 set x $ac_cv_build 15608 shift 15609 build_cpu=$1 15610 build_vendor=$2 15611 shift; shift 15612 # Remember, the first character of IFS is used to create $*, 15613 # except with old shells: 15614 build_os=$* 15615 IFS=$ac_save_IFS 15616 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15617 15618 15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15620 $as_echo_n "checking host system type... " >&6; } 15621 if ${ac_cv_host+:} false; then : 15622 $as_echo_n "(cached) " >&6 15623 else 15624 if test "x$host_alias" = x; then 15625 ac_cv_host=$ac_cv_build 15626 else 15627 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15628 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15629 fi 15630 15631 fi 15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15633 $as_echo "$ac_cv_host" >&6; } 15634 case $ac_cv_host in 15635 *-*-*) ;; 15636 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15637 esac 15638 host=$ac_cv_host 15639 ac_save_IFS=$IFS; IFS='-' 15640 set x $ac_cv_host 15641 shift 15642 host_cpu=$1 15643 host_vendor=$2 15644 shift; shift 15645 # Remember, the first character of IFS is used to create $*, 15646 # except with old shells: 15647 host_os=$* 15648 IFS=$ac_save_IFS 15649 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15650 15651 15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15653 $as_echo_n "checking target system type... " >&6; } 15654 if ${ac_cv_target+:} false; then : 15655 $as_echo_n "(cached) " >&6 15656 else 15657 if test "x$target_alias" = x; then 15658 ac_cv_target=$ac_cv_host 15659 else 15660 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15661 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15662 fi 15663 15664 fi 15665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15666 $as_echo "$ac_cv_target" >&6; } 15667 case $ac_cv_target in 15668 *-*-*) ;; 15669 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15670 esac 15671 target=$ac_cv_target 15672 ac_save_IFS=$IFS; IFS='-' 15673 set x $ac_cv_target 15674 shift 15675 target_cpu=$1 15676 target_vendor=$2 15677 shift; shift 15678 # Remember, the first character of IFS is used to create $*, 15679 # except with old shells: 15680 target_os=$* 15681 IFS=$ac_save_IFS 15682 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15683 15684 15685 # The aliases save the names the user supplied, while $host etc. 15686 # will get canonicalized. 15687 test -n "$target_alias" && 15688 test "$program_prefix$program_suffix$program_transform_name" = \ 15689 NONENONEs,x,x, && 15690 program_prefix=${target_alias}- 15691 15692 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15693 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15694 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15695 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15696 # to use the configure naming style. 15697 15698 15699 15700 15701 15702 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15703 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15704 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15705 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15706 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15707 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15708 15709 15710 15711 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15712 15713 case "$build_os" in 15714 *linux*) 15715 VAR_OS=linux 15716 VAR_OS_TYPE=unix 15717 ;; 15718 *solaris*) 15719 VAR_OS=solaris 15720 VAR_OS_TYPE=unix 15721 ;; 15722 *darwin*) 15723 VAR_OS=macosx 15724 VAR_OS_TYPE=unix 15725 ;; 15726 *bsd*) 15727 VAR_OS=bsd 15728 VAR_OS_TYPE=unix 15729 ;; 15730 *cygwin*) 15731 VAR_OS=windows 15732 VAR_OS_ENV=windows.cygwin 15733 ;; 15734 *mingw*) 15735 VAR_OS=windows 15736 VAR_OS_ENV=windows.msys 15737 ;; 15738 *aix*) 15739 VAR_OS=aix 15740 VAR_OS_TYPE=unix 15741 ;; 15742 *) 15743 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15744 ;; 15745 esac 15746 15747 15748 # First argument is the cpu name from the trip/quad 15749 case "$build_cpu" in 15750 x86_64) 15751 VAR_CPU=x86_64 15752 VAR_CPU_ARCH=x86 15753 VAR_CPU_BITS=64 15754 VAR_CPU_ENDIAN=little 15755 ;; 15756 i?86) 15757 VAR_CPU=x86 15758 VAR_CPU_ARCH=x86 15759 VAR_CPU_BITS=32 15760 VAR_CPU_ENDIAN=little 15761 ;; 15762 alpha*) 15763 VAR_CPU=alpha 15764 VAR_CPU_ARCH=alpha 15765 VAR_CPU_BITS=64 15766 VAR_CPU_ENDIAN=little 15767 ;; 15768 arm*) 15769 VAR_CPU=arm 15770 VAR_CPU_ARCH=arm 15771 VAR_CPU_BITS=32 15772 VAR_CPU_ENDIAN=little 15773 ;; 15774 aarch64) 15775 VAR_CPU=aarch64 15776 VAR_CPU_ARCH=aarch64 15777 VAR_CPU_BITS=64 15778 VAR_CPU_ENDIAN=little 15779 ;; 15780 m68k) 15781 VAR_CPU=m68k 15782 VAR_CPU_ARCH=m68k 15783 VAR_CPU_BITS=32 15784 VAR_CPU_ENDIAN=big 15785 ;; 15786 mips) 15787 VAR_CPU=mips 15788 VAR_CPU_ARCH=mips 15789 VAR_CPU_BITS=32 15790 VAR_CPU_ENDIAN=big 15791 ;; 15792 mipsel) 15793 VAR_CPU=mipsel 15794 VAR_CPU_ARCH=mipsel 15795 VAR_CPU_BITS=32 15796 VAR_CPU_ENDIAN=little 15797 ;; 15798 mips64) 15799 VAR_CPU=mips64 15800 VAR_CPU_ARCH=mips64 15801 VAR_CPU_BITS=64 15802 VAR_CPU_ENDIAN=big 15803 ;; 15804 mips64el) 15805 VAR_CPU=mips64el 15806 VAR_CPU_ARCH=mips64el 15807 VAR_CPU_BITS=64 15808 VAR_CPU_ENDIAN=little 15809 ;; 15810 powerpc) 15811 VAR_CPU=ppc 15812 VAR_CPU_ARCH=ppc 15813 VAR_CPU_BITS=32 15814 VAR_CPU_ENDIAN=big 15815 ;; 15816 powerpc64) 15817 VAR_CPU=ppc64 15818 VAR_CPU_ARCH=ppc 15819 VAR_CPU_BITS=64 15820 VAR_CPU_ENDIAN=big 15821 ;; 15822 powerpc64le) 15823 VAR_CPU=ppc64le 15824 VAR_CPU_ARCH=ppc 15825 VAR_CPU_BITS=64 15826 VAR_CPU_ENDIAN=little 15827 ;; 15828 s390) 15829 VAR_CPU=s390 15830 VAR_CPU_ARCH=s390 15831 VAR_CPU_BITS=32 15832 VAR_CPU_ENDIAN=big 15833 ;; 15834 s390x) 15835 VAR_CPU=s390x 15836 VAR_CPU_ARCH=s390 15837 VAR_CPU_BITS=64 15838 VAR_CPU_ENDIAN=big 15839 ;; 15840 sh*eb) 15841 VAR_CPU=sh 15842 VAR_CPU_ARCH=sh 15843 VAR_CPU_BITS=32 15844 VAR_CPU_ENDIAN=big 15845 ;; 15846 sh*) 15847 VAR_CPU=sh 15848 VAR_CPU_ARCH=sh 15849 VAR_CPU_BITS=32 15850 VAR_CPU_ENDIAN=little 15851 ;; 15852 sparc) 15853 VAR_CPU=sparc 15854 VAR_CPU_ARCH=sparc 15855 VAR_CPU_BITS=32 15856 VAR_CPU_ENDIAN=big 15857 ;; 15858 sparcv9|sparc64) 15859 VAR_CPU=sparcv9 15860 VAR_CPU_ARCH=sparc 15861 VAR_CPU_BITS=64 15862 VAR_CPU_ENDIAN=big 15863 ;; 15864 *) 15865 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15866 ;; 15867 esac 15868 15869 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15870 OPENJDK_BUILD_OS="$VAR_OS" 15871 if test "x$VAR_OS_TYPE" != x; then 15872 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15873 else 15874 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15875 fi 15876 if test "x$VAR_OS_ENV" != x; then 15877 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15878 else 15879 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15880 fi 15881 OPENJDK_BUILD_CPU="$VAR_CPU" 15882 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15883 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15884 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15885 15886 15887 15888 15889 15890 15891 15892 15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15894 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15896 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15897 15898 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15899 15900 case "$host_os" in 15901 *linux*) 15902 VAR_OS=linux 15903 VAR_OS_TYPE=unix 15904 ;; 15905 *solaris*) 15906 VAR_OS=solaris 15907 VAR_OS_TYPE=unix 15908 ;; 15909 *darwin*) 15910 VAR_OS=macosx 15911 VAR_OS_TYPE=unix 15912 ;; 15913 *bsd*) 15914 VAR_OS=bsd 15915 VAR_OS_TYPE=unix 15916 ;; 15917 *cygwin*) 15918 VAR_OS=windows 15919 VAR_OS_ENV=windows.cygwin 15920 ;; 15921 *mingw*) 15922 VAR_OS=windows 15923 VAR_OS_ENV=windows.msys 15924 ;; 15925 *aix*) 15926 VAR_OS=aix 15927 VAR_OS_TYPE=unix 15928 ;; 15929 *) 15930 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15931 ;; 15932 esac 15933 15934 15935 # First argument is the cpu name from the trip/quad 15936 case "$host_cpu" in 15937 x86_64) 15938 VAR_CPU=x86_64 15939 VAR_CPU_ARCH=x86 15940 VAR_CPU_BITS=64 15941 VAR_CPU_ENDIAN=little 15942 ;; 15943 i?86) 15944 VAR_CPU=x86 15945 VAR_CPU_ARCH=x86 15946 VAR_CPU_BITS=32 15947 VAR_CPU_ENDIAN=little 15948 ;; 15949 alpha*) 15950 VAR_CPU=alpha 15951 VAR_CPU_ARCH=alpha 15952 VAR_CPU_BITS=64 15953 VAR_CPU_ENDIAN=little 15954 ;; 15955 arm*) 15956 VAR_CPU=arm 15957 VAR_CPU_ARCH=arm 15958 VAR_CPU_BITS=32 15959 VAR_CPU_ENDIAN=little 15960 ;; 15961 aarch64) 15962 VAR_CPU=aarch64 15963 VAR_CPU_ARCH=aarch64 15964 VAR_CPU_BITS=64 15965 VAR_CPU_ENDIAN=little 15966 ;; 15967 m68k) 15968 VAR_CPU=m68k 15969 VAR_CPU_ARCH=m68k 15970 VAR_CPU_BITS=32 15971 VAR_CPU_ENDIAN=big 15972 ;; 15973 mips) 15974 VAR_CPU=mips 15975 VAR_CPU_ARCH=mips 15976 VAR_CPU_BITS=32 15977 VAR_CPU_ENDIAN=big 15978 ;; 15979 mipsel) 15980 VAR_CPU=mipsel 15981 VAR_CPU_ARCH=mipsel 15982 VAR_CPU_BITS=32 15983 VAR_CPU_ENDIAN=little 15984 ;; 15985 mips64) 15986 VAR_CPU=mips64 15987 VAR_CPU_ARCH=mips64 15988 VAR_CPU_BITS=64 15989 VAR_CPU_ENDIAN=big 15990 ;; 15991 mips64el) 15992 VAR_CPU=mips64el 15993 VAR_CPU_ARCH=mips64el 15994 VAR_CPU_BITS=64 15995 VAR_CPU_ENDIAN=little 15996 ;; 15997 powerpc) 15998 VAR_CPU=ppc 15999 VAR_CPU_ARCH=ppc 16000 VAR_CPU_BITS=32 16001 VAR_CPU_ENDIAN=big 16002 ;; 16003 powerpc64) 16004 VAR_CPU=ppc64 16005 VAR_CPU_ARCH=ppc 16006 VAR_CPU_BITS=64 16007 VAR_CPU_ENDIAN=big 16008 ;; 16009 powerpc64le) 16010 VAR_CPU=ppc64le 16011 VAR_CPU_ARCH=ppc 16012 VAR_CPU_BITS=64 16013 VAR_CPU_ENDIAN=little 16014 ;; 16015 s390) 16016 VAR_CPU=s390 16017 VAR_CPU_ARCH=s390 16018 VAR_CPU_BITS=32 16019 VAR_CPU_ENDIAN=big 16020 ;; 16021 s390x) 16022 VAR_CPU=s390x 16023 VAR_CPU_ARCH=s390 16024 VAR_CPU_BITS=64 16025 VAR_CPU_ENDIAN=big 16026 ;; 16027 sh*eb) 16028 VAR_CPU=sh 16029 VAR_CPU_ARCH=sh 16030 VAR_CPU_BITS=32 16031 VAR_CPU_ENDIAN=big 16032 ;; 16033 sh*) 16034 VAR_CPU=sh 16035 VAR_CPU_ARCH=sh 16036 VAR_CPU_BITS=32 16037 VAR_CPU_ENDIAN=little 16038 ;; 16039 sparc) 16040 VAR_CPU=sparc 16041 VAR_CPU_ARCH=sparc 16042 VAR_CPU_BITS=32 16043 VAR_CPU_ENDIAN=big 16044 ;; 16045 sparcv9|sparc64) 16046 VAR_CPU=sparcv9 16047 VAR_CPU_ARCH=sparc 16048 VAR_CPU_BITS=64 16049 VAR_CPU_ENDIAN=big 16050 ;; 16051 *) 16052 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 16053 ;; 16054 esac 16055 16056 # ... and setup our own variables. (Do this explicitly to facilitate searching) 16057 OPENJDK_TARGET_OS="$VAR_OS" 16058 if test "x$VAR_OS_TYPE" != x; then 16059 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 16060 else 16061 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 16062 fi 16063 if test "x$VAR_OS_ENV" != x; then 16064 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 16065 else 16066 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16067 fi 16068 OPENJDK_TARGET_CPU="$VAR_CPU" 16069 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16070 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16071 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16072 16073 16074 16075 16076 16077 16078 16079 16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16081 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16083 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16084 16085 16086 16087 # Check whether --with-target-bits was given. 16088 if test "${with_target_bits+set}" = set; then : 16089 withval=$with_target_bits; 16090 fi 16091 16092 16093 # We have three types of compiles: 16094 # native == normal compilation, target system == build system 16095 # cross == traditional cross compilation, target system != build system; special toolchain needed 16096 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16097 # 16098 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16099 # We're doing a proper cross-compilation 16100 COMPILE_TYPE="cross" 16101 else 16102 COMPILE_TYPE="native" 16103 fi 16104 16105 if test "x$with_target_bits" != x; then 16106 if test "x$COMPILE_TYPE" = "xcross"; then 16107 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16108 fi 16109 16110 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16111 # A reduced build is requested 16112 COMPILE_TYPE="reduced" 16113 OPENJDK_TARGET_CPU_BITS=32 16114 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16115 OPENJDK_TARGET_CPU=x86 16116 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16117 OPENJDK_TARGET_CPU=sparc 16118 else 16119 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16120 fi 16121 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16122 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 16123 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16124 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16125 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16126 else 16127 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16128 fi 16129 fi 16130 16131 16132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16133 $as_echo_n "checking compilation type... " >&6; } 16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16135 $as_echo "$COMPILE_TYPE" >&6; } 16136 16137 16138 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16139 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16140 else 16141 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16142 fi 16143 16144 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16145 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16146 else 16147 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16148 fi 16149 16150 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16151 16152 16153 16154 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16155 RELEASE_FILE_OS_NAME=SunOS 16156 fi 16157 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16158 RELEASE_FILE_OS_NAME=Linux 16159 fi 16160 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16161 RELEASE_FILE_OS_NAME=Windows 16162 fi 16163 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16164 RELEASE_FILE_OS_NAME="Darwin" 16165 fi 16166 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16167 RELEASE_FILE_OS_NAME="AIX" 16168 fi 16169 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16170 16171 16172 16173 16174 16175 16176 # Also store the legacy naming of the cpu. 16177 # Ie i586 and amd64 instead of x86 and x86_64 16178 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16179 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16180 OPENJDK_TARGET_CPU_LEGACY="i586" 16181 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16182 # On all platforms except MacOSX replace x86_64 with amd64. 16183 OPENJDK_TARGET_CPU_LEGACY="amd64" 16184 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16185 # Avoid name collisions with variables named alpha 16186 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16187 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16188 # Avoid name collisions with variables named sh 16189 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16190 fi 16191 16192 16193 # And the second legacy naming of the cpu. 16194 # Ie i386 and amd64 instead of x86 and x86_64. 16195 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16196 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16197 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16198 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16199 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16200 fi 16201 16202 16203 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16204 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16205 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16206 OPENJDK_TARGET_CPU_ISADIR="" 16207 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16208 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16209 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16210 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16211 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16212 fi 16213 fi 16214 16215 16216 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16217 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16218 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16219 # On linux only, we replace x86 with i386. 16220 OPENJDK_TARGET_CPU_OSARCH="i386" 16221 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16222 # On all platforms except macosx, we replace x86_64 with amd64. 16223 OPENJDK_TARGET_CPU_OSARCH="amd64" 16224 fi 16225 16226 16227 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16228 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16229 OPENJDK_TARGET_CPU_JLI="i386" 16230 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16231 # On all platforms except macosx, we replace x86_64 with amd64. 16232 OPENJDK_TARGET_CPU_JLI="amd64" 16233 fi 16234 16235 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16236 # Macosx is osx and x86_64 is x64 16237 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16238 OPENJDK_TARGET_OS_BUNDLE="osx" 16239 else 16240 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16241 fi 16242 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16243 OPENJDK_TARGET_CPU_BUNDLE="x64" 16244 else 16245 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16246 fi 16247 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16248 16249 16250 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16251 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16252 # unpack200.exe. This variable is used in 16253 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16254 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16255 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16256 fi 16257 fi 16258 16259 if test "x$COMPILE_TYPE" = "xcross"; then 16260 # FIXME: ... or should this include reduced builds..? 16261 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16262 else 16263 DEFINE_CROSS_COMPILE_ARCH="" 16264 fi 16265 16266 16267 # Convert openjdk platform names to hotspot names 16268 16269 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16270 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16271 HOTSPOT_TARGET_OS=bsd 16272 fi 16273 16274 16275 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16276 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16277 HOTSPOT_TARGET_OS_TYPE=posix 16278 fi 16279 16280 16281 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16282 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16283 HOTSPOT_TARGET_CPU=x86_32 16284 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16285 HOTSPOT_TARGET_CPU=sparc 16286 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16287 HOTSPOT_TARGET_CPU=ppc_64 16288 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16289 HOTSPOT_TARGET_CPU=ppc_64 16290 fi 16291 16292 16293 # This is identical with OPENJDK_*, but define anyway for consistency. 16294 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16295 16296 16297 # Setup HOTSPOT_TARGET_CPU_DEFINE 16298 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16299 HOTSPOT_TARGET_CPU_DEFINE=IA32 16300 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16301 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16302 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16303 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16304 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16305 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16306 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16307 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16308 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16309 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16310 16311 # The cpu defines below are for zero, we don't support them directly. 16312 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16313 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16314 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16315 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16316 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16317 HOTSPOT_TARGET_CPU_DEFINE=S390 16318 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16319 HOTSPOT_TARGET_CPU_DEFINE=S390 16320 elif test "x$OPENJDK_TARGET_CPU" != x; then 16321 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16322 fi 16323 16324 16325 # For historical reasons, the OS include directories have odd names. 16326 OPENJDK_TARGET_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS" 16327 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16328 OPENJDK_TARGET_OS_INCLUDE_SUBDIR="win32" 16329 elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 16330 OPENJDK_TARGET_OS_INCLUDE_SUBDIR="darwin" 16331 fi 16332 16333 16334 16335 # Also store the legacy naming of the cpu. 16336 # Ie i586 and amd64 instead of x86 and x86_64 16337 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16338 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16339 OPENJDK_BUILD_CPU_LEGACY="i586" 16340 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16341 # On all platforms except MacOSX replace x86_64 with amd64. 16342 OPENJDK_BUILD_CPU_LEGACY="amd64" 16343 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16344 # Avoid name collisions with variables named alpha 16345 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16346 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16347 # Avoid name collisions with variables named sh 16348 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16349 fi 16350 16351 16352 # And the second legacy naming of the cpu. 16353 # Ie i386 and amd64 instead of x86 and x86_64. 16354 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16355 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16356 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16357 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16358 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16359 fi 16360 16361 16362 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16363 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16364 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16365 OPENJDK_BUILD_CPU_ISADIR="" 16366 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16367 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16368 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16369 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16370 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16371 fi 16372 fi 16373 16374 16375 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16376 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16377 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16378 # On linux only, we replace x86 with i386. 16379 OPENJDK_BUILD_CPU_OSARCH="i386" 16380 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16381 # On all platforms except macosx, we replace x86_64 with amd64. 16382 OPENJDK_BUILD_CPU_OSARCH="amd64" 16383 fi 16384 16385 16386 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16387 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16388 OPENJDK_BUILD_CPU_JLI="i386" 16389 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16390 # On all platforms except macosx, we replace x86_64 with amd64. 16391 OPENJDK_BUILD_CPU_JLI="amd64" 16392 fi 16393 16394 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16395 # Macosx is osx and x86_64 is x64 16396 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16397 OPENJDK_BUILD_OS_BUNDLE="osx" 16398 else 16399 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16400 fi 16401 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16402 OPENJDK_BUILD_CPU_BUNDLE="x64" 16403 else 16404 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16405 fi 16406 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16407 16408 16409 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16410 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16411 # unpack200.exe. This variable is used in 16412 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16413 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16414 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16415 fi 16416 fi 16417 16418 if test "x$COMPILE_TYPE" = "xcross"; then 16419 # FIXME: ... or should this include reduced builds..? 16420 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16421 else 16422 DEFINE_CROSS_COMPILE_ARCH="" 16423 fi 16424 16425 16426 # Convert openjdk platform names to hotspot names 16427 16428 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16429 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16430 HOTSPOT_BUILD_OS=bsd 16431 fi 16432 16433 16434 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16435 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16436 HOTSPOT_BUILD_OS_TYPE=posix 16437 fi 16438 16439 16440 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16441 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16442 HOTSPOT_BUILD_CPU=x86_32 16443 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16444 HOTSPOT_BUILD_CPU=sparc 16445 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16446 HOTSPOT_BUILD_CPU=ppc_64 16447 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16448 HOTSPOT_BUILD_CPU=ppc_64 16449 fi 16450 16451 16452 # This is identical with OPENJDK_*, but define anyway for consistency. 16453 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16454 16455 16456 # Setup HOTSPOT_BUILD_CPU_DEFINE 16457 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16458 HOTSPOT_BUILD_CPU_DEFINE=IA32 16459 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16460 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16461 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16462 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16463 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16464 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16465 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16466 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16467 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16468 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16469 16470 # The cpu defines below are for zero, we don't support them directly. 16471 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16472 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16473 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16474 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16475 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16476 HOTSPOT_BUILD_CPU_DEFINE=S390 16477 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16478 HOTSPOT_BUILD_CPU_DEFINE=S390 16479 elif test "x$OPENJDK_BUILD_CPU" != x; then 16480 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16481 fi 16482 16483 16484 # For historical reasons, the OS include directories have odd names. 16485 OPENJDK_BUILD_OS_INCLUDE_SUBDIR="$OPENJDK_TARGET_OS" 16486 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16487 OPENJDK_BUILD_OS_INCLUDE_SUBDIR="win32" 16488 elif test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 16489 OPENJDK_BUILD_OS_INCLUDE_SUBDIR="darwin" 16490 fi 16491 16492 16493 16494 16495 16496 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16497 16498 # Save the current directory this script was started from 16499 CURDIR="$PWD" 16500 16501 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16502 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16503 # was not available at that time. 16504 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16505 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16506 ORIGINAL_PATH="$REWRITTEN_PATH" 16507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16508 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16509 fi 16510 16511 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16512 PATH_SEP=";" 16513 16514 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16515 if test $SRC_ROOT_LENGTH -gt 100; then 16516 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16517 fi 16518 16519 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16521 $as_echo_n "checking cygwin release... " >&6; } 16522 CYGWIN_VERSION=`$UNAME -r` 16523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16524 $as_echo "$CYGWIN_VERSION" >&6; } 16525 WINDOWS_ENV_VENDOR='cygwin' 16526 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16527 16528 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16529 if test "x$CYGWIN_VERSION_OLD" != x; then 16530 { $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 16531 $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;} 16532 as_fn_error $? "Cannot continue" "$LINENO" 5 16533 fi 16534 if test "x$CYGPATH" = x; then 16535 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16536 fi 16537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16538 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16539 # The cmd output ends with Windows line endings (CR/LF) 16540 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16541 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16542 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16544 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16545 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16546 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16547 if test "x$test_cygdrive_prefix" = x; then 16548 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16549 fi 16550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16552 $as_echo_n "checking msys release... " >&6; } 16553 MSYS_VERSION=`$UNAME -r` 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16555 $as_echo "$MSYS_VERSION" >&6; } 16556 16557 WINDOWS_ENV_VENDOR='msys' 16558 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16559 16560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16561 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16562 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16563 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16564 16565 windows_path="$MSYS_ROOT_PATH" 16566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16567 unix_path=`$CYGPATH -u "$windows_path"` 16568 MSYS_ROOT_PATH="$unix_path" 16569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16571 MSYS_ROOT_PATH="$unix_path" 16572 fi 16573 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16575 $as_echo "$MSYS_ROOT_PATH" >&6; } 16576 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16577 else 16578 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16579 fi 16580 16581 # Test if windows or unix (cygwin/msys) find is first in path. 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16583 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16584 FIND_BINARY_OUTPUT=`find --version 2>&1` 16585 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16587 $as_echo "unix style" >&6; } 16588 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16590 $as_echo "Windows" >&6; } 16591 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16592 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16593 { $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 16594 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16595 as_fn_error $? "Cannot continue" "$LINENO" 5 16596 else 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16598 $as_echo "unknown" >&6; } 16599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16600 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16601 fi 16602 16603 else 16604 PATH_SEP=":" 16605 fi 16606 16607 16608 # We get the top-level directory from the supporting wrappers. 16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16610 $as_echo_n "checking for top-level directory... " >&6; } 16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16612 $as_echo "$TOPDIR" >&6; } 16613 16614 16615 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16616 16617 # Only process if variable expands to non-empty 16618 16619 if test "x$CURDIR" != x; then 16620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16621 16622 # Input might be given as Windows format, start by converting to 16623 # unix format. 16624 path="$CURDIR" 16625 new_path=`$CYGPATH -u "$path"` 16626 16627 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16628 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16629 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16630 # "foo.exe" is OK but "foo" is an error. 16631 # 16632 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16633 # It is also a way to make sure we got the proper file name for the real test later on. 16634 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16635 if test "x$test_shortpath" = x; then 16636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16637 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16638 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16639 fi 16640 16641 # Call helper function which possibly converts this using DOS-style short mode. 16642 # If so, the updated path is stored in $new_path. 16643 16644 input_path="$new_path" 16645 # Check if we need to convert this using DOS-style short mode. If the path 16646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16647 # take no chances and rewrite it. 16648 # Note: m4 eats our [], so we need to use [ and ] instead. 16649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16650 if test "x$has_forbidden_chars" != x; then 16651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16652 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16653 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16654 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16655 # Going to short mode and back again did indeed matter. Since short mode is 16656 # case insensitive, let's make it lowercase to improve readability. 16657 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16658 # Now convert it back to Unix-style (cygpath) 16659 input_path=`$CYGPATH -u "$shortmode_path"` 16660 new_path="$input_path" 16661 fi 16662 fi 16663 16664 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16665 if test "x$test_cygdrive_prefix" = x; then 16666 # As a simple fix, exclude /usr/bin since it's not a real path. 16667 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16668 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16669 # a path prefixed by /cygdrive for fixpath to work. 16670 new_path="$CYGWIN_ROOT_PATH$input_path" 16671 fi 16672 fi 16673 16674 16675 if test "x$path" != "x$new_path"; then 16676 CURDIR="$new_path" 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16678 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16679 fi 16680 16681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16682 16683 path="$CURDIR" 16684 has_colon=`$ECHO $path | $GREP ^.:` 16685 new_path="$path" 16686 if test "x$has_colon" = x; then 16687 # Not in mixed or Windows style, start by that. 16688 new_path=`cmd //c echo $path` 16689 fi 16690 16691 16692 input_path="$new_path" 16693 # Check if we need to convert this using DOS-style short mode. If the path 16694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16695 # take no chances and rewrite it. 16696 # Note: m4 eats our [], so we need to use [ and ] instead. 16697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16698 if test "x$has_forbidden_chars" != x; then 16699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16700 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16701 fi 16702 16703 16704 windows_path="$new_path" 16705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16706 unix_path=`$CYGPATH -u "$windows_path"` 16707 new_path="$unix_path" 16708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16710 new_path="$unix_path" 16711 fi 16712 16713 if test "x$path" != "x$new_path"; then 16714 CURDIR="$new_path" 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16716 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16717 fi 16718 16719 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16720 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16721 16722 else 16723 # We're on a unix platform. Hooray! :) 16724 path="$CURDIR" 16725 has_space=`$ECHO "$path" | $GREP " "` 16726 if test "x$has_space" != x; then 16727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16728 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16729 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16730 fi 16731 16732 # Use eval to expand a potential ~ 16733 eval path="$path" 16734 if test ! -f "$path" && test ! -d "$path"; then 16735 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16736 fi 16737 16738 if test -d "$path"; then 16739 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16740 else 16741 dir="`$DIRNAME "$path"`" 16742 base="`$BASENAME "$path"`" 16743 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16744 fi 16745 fi 16746 fi 16747 16748 16749 # Only process if variable expands to non-empty 16750 16751 if test "x$TOPDIR" != x; then 16752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16753 16754 # Input might be given as Windows format, start by converting to 16755 # unix format. 16756 path="$TOPDIR" 16757 new_path=`$CYGPATH -u "$path"` 16758 16759 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16760 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16761 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16762 # "foo.exe" is OK but "foo" is an error. 16763 # 16764 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16765 # It is also a way to make sure we got the proper file name for the real test later on. 16766 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16767 if test "x$test_shortpath" = x; then 16768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16769 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16770 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16771 fi 16772 16773 # Call helper function which possibly converts this using DOS-style short mode. 16774 # If so, the updated path is stored in $new_path. 16775 16776 input_path="$new_path" 16777 # Check if we need to convert this using DOS-style short mode. If the path 16778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16779 # take no chances and rewrite it. 16780 # Note: m4 eats our [], so we need to use [ and ] instead. 16781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16782 if test "x$has_forbidden_chars" != x; then 16783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16784 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16785 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16786 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16787 # Going to short mode and back again did indeed matter. Since short mode is 16788 # case insensitive, let's make it lowercase to improve readability. 16789 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16790 # Now convert it back to Unix-style (cygpath) 16791 input_path=`$CYGPATH -u "$shortmode_path"` 16792 new_path="$input_path" 16793 fi 16794 fi 16795 16796 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16797 if test "x$test_cygdrive_prefix" = x; then 16798 # As a simple fix, exclude /usr/bin since it's not a real path. 16799 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16800 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16801 # a path prefixed by /cygdrive for fixpath to work. 16802 new_path="$CYGWIN_ROOT_PATH$input_path" 16803 fi 16804 fi 16805 16806 16807 if test "x$path" != "x$new_path"; then 16808 TOPDIR="$new_path" 16809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16810 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16811 fi 16812 16813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16814 16815 path="$TOPDIR" 16816 has_colon=`$ECHO $path | $GREP ^.:` 16817 new_path="$path" 16818 if test "x$has_colon" = x; then 16819 # Not in mixed or Windows style, start by that. 16820 new_path=`cmd //c echo $path` 16821 fi 16822 16823 16824 input_path="$new_path" 16825 # Check if we need to convert this using DOS-style short mode. If the path 16826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16827 # take no chances and rewrite it. 16828 # Note: m4 eats our [], so we need to use [ and ] instead. 16829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16830 if test "x$has_forbidden_chars" != x; then 16831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16832 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16833 fi 16834 16835 16836 windows_path="$new_path" 16837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16838 unix_path=`$CYGPATH -u "$windows_path"` 16839 new_path="$unix_path" 16840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16842 new_path="$unix_path" 16843 fi 16844 16845 if test "x$path" != "x$new_path"; then 16846 TOPDIR="$new_path" 16847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16848 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16849 fi 16850 16851 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16852 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16853 16854 else 16855 # We're on a unix platform. Hooray! :) 16856 path="$TOPDIR" 16857 has_space=`$ECHO "$path" | $GREP " "` 16858 if test "x$has_space" != x; then 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16860 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16861 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16862 fi 16863 16864 # Use eval to expand a potential ~ 16865 eval path="$path" 16866 if test ! -f "$path" && test ! -d "$path"; then 16867 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16868 fi 16869 16870 if test -d "$path"; then 16871 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16872 else 16873 dir="`$DIRNAME "$path"`" 16874 base="`$BASENAME "$path"`" 16875 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16876 fi 16877 fi 16878 fi 16879 16880 16881 # Locate the directory of this script. 16882 AUTOCONF_DIR=$TOPDIR/make/autoconf 16883 16884 # Setup username (for use in adhoc version strings etc) 16885 # Outer [ ] to quote m4. 16886 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16887 16888 16889 16890 # Check if it's a pure open build or if custom sources are to be used. 16891 16892 # Check whether --enable-openjdk-only was given. 16893 if test "${enable_openjdk_only+set}" = set; then : 16894 enableval=$enable_openjdk_only; 16895 else 16896 enable_openjdk_only="no" 16897 fi 16898 16899 16900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16901 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16903 $as_echo "$enable_openjdk_only" >&6; } 16904 if test "x$enable_openjdk_only" = "xyes"; then 16905 SUPPRESS_CUSTOM_EXTENSIONS="true" 16906 elif test "x$enable_openjdk_only" = "xno"; then 16907 SUPPRESS_CUSTOM_EXTENSIONS="false" 16908 else 16909 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16910 fi 16911 16912 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16913 # the IncludeCustomExtension macro. 16914 16915 16916 # Check whether --with-custom-make-dir was given. 16917 if test "${with_custom_make_dir+set}" = set; then : 16918 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 16919 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16920 fi 16921 16922 16923 16924 16925 # These are needed to be able to create a configuration name (and thus the output directory) 16926 16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16928 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16929 16930 # Check whether --with-jdk-variant was given. 16931 if test "${with_jdk_variant+set}" = set; then : 16932 withval=$with_jdk_variant; 16933 fi 16934 16935 16936 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16937 JDK_VARIANT="normal" 16938 else 16939 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16940 fi 16941 16942 16943 16944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16945 $as_echo "$JDK_VARIANT" >&6; } 16946 16947 16948 DEBUG_LEVEL="release" 16949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16950 $as_echo_n "checking which debug level to use... " >&6; } 16951 # Check whether --enable-debug was given. 16952 if test "${enable_debug+set}" = set; then : 16953 enableval=$enable_debug; 16954 ENABLE_DEBUG="${enableval}" 16955 DEBUG_LEVEL="fastdebug" 16956 16957 else 16958 ENABLE_DEBUG="no" 16959 fi 16960 16961 16962 16963 # Check whether --with-debug-level was given. 16964 if test "${with_debug_level+set}" = set; then : 16965 withval=$with_debug_level; 16966 DEBUG_LEVEL="${withval}" 16967 if test "x$ENABLE_DEBUG" = xyes; then 16968 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16969 fi 16970 16971 fi 16972 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16974 $as_echo "$DEBUG_LEVEL" >&6; } 16975 16976 if test "x$DEBUG_LEVEL" != xrelease && \ 16977 test "x$DEBUG_LEVEL" != xoptimized && \ 16978 test "x$DEBUG_LEVEL" != xfastdebug && \ 16979 test "x$DEBUG_LEVEL" != xslowdebug; then 16980 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16981 fi 16982 16983 # Translate DEBUG_LEVEL to debug level used by Hotspot 16984 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16985 if test "x$DEBUG_LEVEL" = xrelease; then 16986 HOTSPOT_DEBUG_LEVEL="product" 16987 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16988 HOTSPOT_DEBUG_LEVEL="debug" 16989 fi 16990 16991 if test "x$DEBUG_LEVEL" = xoptimized; then 16992 # The debug level 'optimized' is a little special because it is currently only 16993 # applicable to the HotSpot build where it means to build a completely 16994 # optimized version of the VM without any debugging code (like for the 16995 # 'release' debug level which is called 'product' in the HotSpot build) but 16996 # with the exception that it can contain additional code which is otherwise 16997 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16998 # test new and/or experimental features which are not intended for customer 16999 # shipment. Because these new features need to be tested and benchmarked in 17000 # real world scenarios, we want to build the containing JDK at the 'release' 17001 # debug level. 17002 DEBUG_LEVEL="release" 17003 fi 17004 17005 17006 17007 17008 17009 17010 # Check whether --with-jvm-variants was given. 17011 if test "${with_jvm_variants+set}" = set; then : 17012 withval=$with_jvm_variants; 17013 fi 17014 17015 17016 17017 17018 # Check whether --with-cpu-port was given. 17019 if test "${with_cpu_port+set}" = set; then : 17020 withval=$with_cpu_port; 17021 fi 17022 17023 17024 if test "x$with_cpu_port" != x; then 17025 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 17026 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 17027 fi 17028 if test "x$with_cpu_port" != xarm64 && \ 17029 test "x$with_cpu_port" != xaarch64; then 17030 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 17031 fi 17032 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 17033 fi 17034 17035 17036 if test "x$with_jvm_variants" = x; then 17037 with_jvm_variants="server" 17038 fi 17039 JVM_VARIANTS_OPT="$with_jvm_variants" 17040 17041 # Has the user listed more than one variant? 17042 # Additional [] needed to keep m4 from mangling shell constructs. 17043 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17044 BUILDING_MULTIPLE_JVM_VARIANTS=true 17045 else 17046 BUILDING_MULTIPLE_JVM_VARIANTS=false 17047 fi 17048 # Replace the commas with AND for use in the build directory name. 17049 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17050 17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17052 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17053 # JVM_VARIANTS is a space-separated list. 17054 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17055 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17057 $as_echo "$JVM_VARIANTS" >&6; } 17058 17059 # Check that the selected variants are valid 17060 17061 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17062 # Notice that the original variant failes on SLES 10 and 11 17063 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17064 STACK=${JVM_VARIANTS// /$'\n'} 17065 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17066 if test "x$INVALID_VARIANTS" != x; then 17067 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17068 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17069 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17070 fi 17071 17072 # All "special" variants share the same output directory ("server") 17073 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17074 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17075 STACK=${JVM_VARIANTS// /$'\n'} 17076 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17077 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17078 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17079 fi 17080 17081 # The "main" variant is the one used by other libs to link against during the 17082 # build. 17083 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17084 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17085 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17086 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17087 JVM_VARIANT_MAIN="$variant" 17088 break 17089 fi 17090 done 17091 else 17092 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17093 fi 17094 17095 17096 17097 17098 17099 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 17100 # zero behaves as a platform and rewrites these values. This is really weird. :( 17101 # We are guaranteed that we do not build any other variants when building zero. 17102 HOTSPOT_TARGET_CPU=zero 17103 HOTSPOT_TARGET_CPU_ARCH=zero 17104 fi 17105 17106 17107 # With basic setup done, call the custom early hook. 17108 17109 17110 # Check if we have devkits, extra paths or sysroot set. 17111 17112 17113 # Check whether --with-devkit was given. 17114 if test "${with_devkit+set}" = set; then : 17115 withval=$with_devkit; 17116 17117 # Only process if variable expands to non-empty 17118 17119 if test "x$with_devkit" != x; then 17120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17121 17122 # Input might be given as Windows format, start by converting to 17123 # unix format. 17124 path="$with_devkit" 17125 new_path=`$CYGPATH -u "$path"` 17126 17127 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17128 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17129 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17130 # "foo.exe" is OK but "foo" is an error. 17131 # 17132 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17133 # It is also a way to make sure we got the proper file name for the real test later on. 17134 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17135 if test "x$test_shortpath" = x; then 17136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17137 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17138 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17139 fi 17140 17141 # Call helper function which possibly converts this using DOS-style short mode. 17142 # If so, the updated path is stored in $new_path. 17143 17144 input_path="$new_path" 17145 # Check if we need to convert this using DOS-style short mode. If the path 17146 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17147 # take no chances and rewrite it. 17148 # Note: m4 eats our [], so we need to use [ and ] instead. 17149 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17150 if test "x$has_forbidden_chars" != x; then 17151 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17152 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17153 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17154 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17155 # Going to short mode and back again did indeed matter. Since short mode is 17156 # case insensitive, let's make it lowercase to improve readability. 17157 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17158 # Now convert it back to Unix-style (cygpath) 17159 input_path=`$CYGPATH -u "$shortmode_path"` 17160 new_path="$input_path" 17161 fi 17162 fi 17163 17164 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17165 if test "x$test_cygdrive_prefix" = x; then 17166 # As a simple fix, exclude /usr/bin since it's not a real path. 17167 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17168 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17169 # a path prefixed by /cygdrive for fixpath to work. 17170 new_path="$CYGWIN_ROOT_PATH$input_path" 17171 fi 17172 fi 17173 17174 17175 if test "x$path" != "x$new_path"; then 17176 with_devkit="$new_path" 17177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17178 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17179 fi 17180 17181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17182 17183 path="$with_devkit" 17184 has_colon=`$ECHO $path | $GREP ^.:` 17185 new_path="$path" 17186 if test "x$has_colon" = x; then 17187 # Not in mixed or Windows style, start by that. 17188 new_path=`cmd //c echo $path` 17189 fi 17190 17191 17192 input_path="$new_path" 17193 # Check if we need to convert this using DOS-style short mode. If the path 17194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17195 # take no chances and rewrite it. 17196 # Note: m4 eats our [], so we need to use [ and ] instead. 17197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17198 if test "x$has_forbidden_chars" != x; then 17199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17200 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17201 fi 17202 17203 17204 windows_path="$new_path" 17205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17206 unix_path=`$CYGPATH -u "$windows_path"` 17207 new_path="$unix_path" 17208 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17209 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17210 new_path="$unix_path" 17211 fi 17212 17213 if test "x$path" != "x$new_path"; then 17214 with_devkit="$new_path" 17215 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17216 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17217 fi 17218 17219 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17220 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17221 17222 else 17223 # We're on a unix platform. Hooray! :) 17224 path="$with_devkit" 17225 has_space=`$ECHO "$path" | $GREP " "` 17226 if test "x$has_space" != x; then 17227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17228 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17229 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17230 fi 17231 17232 # Use eval to expand a potential ~ 17233 eval path="$path" 17234 if test ! -f "$path" && test ! -d "$path"; then 17235 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17236 fi 17237 17238 if test -d "$path"; then 17239 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17240 else 17241 dir="`$DIRNAME "$path"`" 17242 base="`$BASENAME "$path"`" 17243 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17244 fi 17245 fi 17246 fi 17247 17248 DEVKIT_ROOT="$with_devkit" 17249 # Check for a meta data info file in the root of the devkit 17250 if test -f "$DEVKIT_ROOT/devkit.info"; then 17251 . $DEVKIT_ROOT/devkit.info 17252 # This potentially sets the following: 17253 # A descriptive name of the devkit 17254 17255 if test "x$DEVKIT_NAME" = x; then 17256 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17257 fi 17258 17259 # Corresponds to --with-extra-path 17260 17261 if test "x$DEVKIT_EXTRA_PATH" = x; then 17262 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17263 fi 17264 17265 # Corresponds to --with-toolchain-path 17266 17267 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17268 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17269 fi 17270 17271 # Corresponds to --with-sysroot 17272 17273 if test "x$DEVKIT_SYSROOT" = x; then 17274 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17275 fi 17276 17277 17278 # Identifies the Visual Studio version in the devkit 17279 17280 if test "x$DEVKIT_VS_VERSION" = x; then 17281 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17282 fi 17283 17284 # The Visual Studio include environment variable 17285 17286 if test "x$DEVKIT_VS_INCLUDE" = x; then 17287 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17288 fi 17289 17290 # The Visual Studio lib environment variable 17291 17292 if test "x$DEVKIT_VS_LIB" = x; then 17293 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17294 fi 17295 17296 # Corresponds to --with-msvcr-dll 17297 17298 if test "x$DEVKIT_MSVCR_DLL" = x; then 17299 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17300 fi 17301 17302 # Corresponds to --with-msvcp-dll 17303 17304 if test "x$DEVKIT_MSVCP_DLL" = x; then 17305 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17306 fi 17307 17308 fi 17309 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17311 $as_echo_n "checking for devkit... " >&6; } 17312 if test "x$DEVKIT_NAME" != x; then 17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17314 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17315 else 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17317 $as_echo "$DEVKIT_ROOT" >&6; } 17318 fi 17319 17320 17321 if test "x$DEVKIT_EXTRA_PATH" != x; then 17322 if test "x$EXTRA_PATH" = x; then 17323 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17324 else 17325 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17326 fi 17327 fi 17328 17329 17330 # Fallback default of just /bin if DEVKIT_PATH is not defined 17331 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17332 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17333 fi 17334 17335 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17336 if test "x$TOOLCHAIN_PATH" = x; then 17337 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17338 else 17339 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17340 fi 17341 fi 17342 17343 17344 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17345 # places for backwards compatiblity. 17346 if test "x$DEVKIT_SYSROOT" != x; then 17347 SYSROOT="$DEVKIT_SYSROOT" 17348 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17349 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17350 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17351 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17352 fi 17353 17354 if test "x$DEVKIT_ROOT" != x; then 17355 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 17356 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 17357 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 17358 fi 17359 17360 fi 17361 17362 17363 fi 17364 17365 17366 # You can force the sysroot if the sysroot encoded into the compiler tools 17367 # is not correct. 17368 17369 # Check whether --with-sys-root was given. 17370 if test "${with_sys_root+set}" = set; then : 17371 withval=$with_sys_root; SYSROOT=$with_sys_root 17372 17373 fi 17374 17375 17376 17377 # Check whether --with-sysroot was given. 17378 if test "${with_sysroot+set}" = set; then : 17379 withval=$with_sysroot; SYSROOT=$with_sysroot 17380 17381 fi 17382 17383 17384 17385 # Check whether --with-tools-dir was given. 17386 if test "${with_tools_dir+set}" = set; then : 17387 withval=$with_tools_dir; 17388 if test "x$with_tools_dir" != x; then 17389 if test "x$TOOLCHAIN_PATH" = x; then 17390 TOOLCHAIN_PATH="$with_tools_dir" 17391 else 17392 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17393 fi 17394 fi 17395 17396 17397 fi 17398 17399 17400 17401 # Check whether --with-toolchain-path was given. 17402 if test "${with_toolchain_path+set}" = set; then : 17403 withval=$with_toolchain_path; 17404 if test "x$with_toolchain_path" != x; then 17405 if test "x$TOOLCHAIN_PATH" = x; then 17406 TOOLCHAIN_PATH="$with_toolchain_path" 17407 else 17408 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17409 fi 17410 fi 17411 17412 17413 fi 17414 17415 17416 17417 # Check whether --with-extra-path was given. 17418 if test "${with_extra_path+set}" = set; then : 17419 withval=$with_extra_path; 17420 if test "x$with_extra_path" != x; then 17421 if test "x$EXTRA_PATH" = x; then 17422 EXTRA_PATH="$with_extra_path" 17423 else 17424 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17425 fi 17426 fi 17427 17428 17429 fi 17430 17431 17432 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17433 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17434 # If not, detect if Xcode is installed by running xcodebuild -version 17435 # if no Xcode installed, xcodebuild exits with 1 17436 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17437 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17438 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17439 # fall back on the stub binary in /usr/bin/xcodebuild 17440 # Extract the first word of "xcodebuild", so it can be a program name with args. 17441 set dummy xcodebuild; ac_word=$2 17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17443 $as_echo_n "checking for $ac_word... " >&6; } 17444 if ${ac_cv_path_XCODEBUILD+:} false; then : 17445 $as_echo_n "(cached) " >&6 17446 else 17447 case $XCODEBUILD in 17448 [\\/]* | ?:[\\/]*) 17449 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17450 ;; 17451 *) 17452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17453 for as_dir in $TOOLCHAIN_PATH 17454 do 17455 IFS=$as_save_IFS 17456 test -z "$as_dir" && as_dir=. 17457 for ac_exec_ext in '' $ac_executable_extensions; do 17458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17459 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17461 break 2 17462 fi 17463 done 17464 done 17465 IFS=$as_save_IFS 17466 17467 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17468 ;; 17469 esac 17470 fi 17471 XCODEBUILD=$ac_cv_path_XCODEBUILD 17472 if test -n "$XCODEBUILD"; then 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17474 $as_echo "$XCODEBUILD" >&6; } 17475 else 17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17477 $as_echo "no" >&6; } 17478 fi 17479 17480 17481 else 17482 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17483 # when only the command line tools are installed there are no SDKs, so headers 17484 # are copied into the system frameworks 17485 XCODEBUILD= 17486 17487 fi 17488 17489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17490 $as_echo_n "checking for sdk name... " >&6; } 17491 17492 # Check whether --with-sdk-name was given. 17493 if test "${with_sdk_name+set}" = set; then : 17494 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17495 17496 fi 17497 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17499 $as_echo "$SDKNAME" >&6; } 17500 17501 # if toolchain path is specified then don't rely on system headers, they may not compile 17502 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17503 test -z "$TOOLCHAIN_PATH" && \ 17504 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17505 17506 if test -z "$SYSROOT"; then 17507 if test -n "$XCODEBUILD"; then 17508 # if we don't have system headers, use default SDK name (last resort) 17509 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17510 SDKNAME=${SDKNAME:-macosx} 17511 fi 17512 17513 if test -n "$SDKNAME"; then 17514 # Call xcodebuild to determine SYSROOT 17515 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17516 fi 17517 else 17518 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17519 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 17520 fi 17521 fi 17522 else 17523 # warn user if --with-sdk-name was also set 17524 if test -n "$with_sdk_name"; then 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17526 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17527 fi 17528 fi 17529 17530 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17531 # If no system framework headers, then SYSROOT must be set, or we won't build 17532 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 17533 fi 17534 17535 # Perform a basic sanity test 17536 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17537 if test -z "$SYSROOT"; then 17538 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 17539 else 17540 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17541 fi 17542 fi 17543 17544 # set SDKROOT too, Xcode tools will pick it up 17545 SDKROOT="$SYSROOT" 17546 17547 fi 17548 17549 # Prepend the extra path to the global path 17550 17551 if test "x$EXTRA_PATH" != x; then 17552 if test "x$PATH" = x; then 17553 PATH="$EXTRA_PATH" 17554 else 17555 PATH="$EXTRA_PATH:$PATH" 17556 fi 17557 fi 17558 17559 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17561 $as_echo_n "checking for sysroot... " >&6; } 17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17563 $as_echo "$SYSROOT" >&6; } 17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17565 $as_echo_n "checking for toolchain path... " >&6; } 17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17567 $as_echo "$TOOLCHAIN_PATH" >&6; } 17568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17569 $as_echo_n "checking for extra path... " >&6; } 17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17571 $as_echo "$EXTRA_PATH" >&6; } 17572 17573 17574 # To properly create a configuration name, we need to have the OpenJDK target 17575 # and options (variants and debug level) parsed. 17576 17577 17578 17579 # Check whether --with-conf-name was given. 17580 if test "${with_conf_name+set}" = set; then : 17581 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17582 fi 17583 17584 17585 # Test from where we are running configure, in or outside of src root. 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17587 $as_echo_n "checking where to store configuration... " >&6; } 17588 if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \ 17589 || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \ 17590 || test "x$CURDIR" = "x$TOPDIR/make" ; then 17591 # We are running configure from the src root. 17592 # Create a default ./build/target-variant-debuglevel output root. 17593 if test "x${CONF_NAME}" = x; then 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17595 $as_echo "in default location" >&6; } 17596 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17597 else 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17599 $as_echo "in build directory with custom name" >&6; } 17600 fi 17601 17602 if test "x$CUSTOM_ROOT" != x; then 17603 OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}" 17604 else 17605 OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}" 17606 fi 17607 $MKDIR -p "$OUTPUTDIR" 17608 if test ! -d "$OUTPUTDIR"; then 17609 as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5 17610 fi 17611 else 17612 # We are running configure from outside of the src dir. 17613 # Then use the current directory as output dir! 17614 # If configuration is situated in normal build directory, just use the build 17615 # directory name as configuration name, otherwise use the complete path. 17616 if test "x${CONF_NAME}" = x; then 17617 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"` 17618 fi 17619 OUTPUTDIR="$CURDIR" 17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17621 $as_echo "in current directory" >&6; } 17622 17623 # WARNING: This might be a bad thing to do. You need to be sure you want to 17624 # have a configuration in this directory. Do some sanity checks! 17625 17626 if test ! -e "$OUTPUTDIR/spec.gmk"; then 17627 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17628 # other files 17629 files_present=`$LS $OUTPUTDIR` 17630 # Configure has already touched config.log and confdefs.h in the current dir when this check 17631 # is performed. 17632 filtered_files=`$ECHO "$files_present" \ 17633 | $SED -e 's/config.log//g' \ 17634 -e 's/configure.log//g' \ 17635 -e 's/confdefs.h//g' \ 17636 -e 's/ //g' \ 17637 | $TR -d '\n'` 17638 if test "x$filtered_files" != x; then 17639 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17640 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17641 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17642 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17643 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17644 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17645 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17646 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17648 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17649 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5 17650 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;} 17651 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17652 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17653 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17654 fi 17655 fi 17656 fi 17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17658 $as_echo_n "checking what configuration name to use... " >&6; } 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17660 $as_echo "$CONF_NAME" >&6; } 17661 17662 17663 # Only process if variable expands to non-empty 17664 17665 if test "x$OUTPUTDIR" != x; then 17666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17667 17668 # Input might be given as Windows format, start by converting to 17669 # unix format. 17670 path="$OUTPUTDIR" 17671 new_path=`$CYGPATH -u "$path"` 17672 17673 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17674 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17675 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17676 # "foo.exe" is OK but "foo" is an error. 17677 # 17678 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17679 # It is also a way to make sure we got the proper file name for the real test later on. 17680 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17681 if test "x$test_shortpath" = x; then 17682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17683 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17684 as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5 17685 fi 17686 17687 # Call helper function which possibly converts this using DOS-style short mode. 17688 # If so, the updated path is stored in $new_path. 17689 17690 input_path="$new_path" 17691 # Check if we need to convert this using DOS-style short mode. If the path 17692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17693 # take no chances and rewrite it. 17694 # Note: m4 eats our [], so we need to use [ and ] instead. 17695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17696 if test "x$has_forbidden_chars" != x; then 17697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17698 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17699 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17700 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17701 # Going to short mode and back again did indeed matter. Since short mode is 17702 # case insensitive, let's make it lowercase to improve readability. 17703 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17704 # Now convert it back to Unix-style (cygpath) 17705 input_path=`$CYGPATH -u "$shortmode_path"` 17706 new_path="$input_path" 17707 fi 17708 fi 17709 17710 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17711 if test "x$test_cygdrive_prefix" = x; then 17712 # As a simple fix, exclude /usr/bin since it's not a real path. 17713 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17714 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17715 # a path prefixed by /cygdrive for fixpath to work. 17716 new_path="$CYGWIN_ROOT_PATH$input_path" 17717 fi 17718 fi 17719 17720 17721 if test "x$path" != "x$new_path"; then 17722 OUTPUTDIR="$new_path" 17723 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17724 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17725 fi 17726 17727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17728 17729 path="$OUTPUTDIR" 17730 has_colon=`$ECHO $path | $GREP ^.:` 17731 new_path="$path" 17732 if test "x$has_colon" = x; then 17733 # Not in mixed or Windows style, start by that. 17734 new_path=`cmd //c echo $path` 17735 fi 17736 17737 17738 input_path="$new_path" 17739 # Check if we need to convert this using DOS-style short mode. If the path 17740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17741 # take no chances and rewrite it. 17742 # Note: m4 eats our [], so we need to use [ and ] instead. 17743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17744 if test "x$has_forbidden_chars" != x; then 17745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17746 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17747 fi 17748 17749 17750 windows_path="$new_path" 17751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17752 unix_path=`$CYGPATH -u "$windows_path"` 17753 new_path="$unix_path" 17754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17756 new_path="$unix_path" 17757 fi 17758 17759 if test "x$path" != "x$new_path"; then 17760 OUTPUTDIR="$new_path" 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17762 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17763 fi 17764 17765 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17766 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17767 17768 else 17769 # We're on a unix platform. Hooray! :) 17770 path="$OUTPUTDIR" 17771 has_space=`$ECHO "$path" | $GREP " "` 17772 if test "x$has_space" != x; then 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17774 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17775 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17776 fi 17777 17778 # Use eval to expand a potential ~ 17779 eval path="$path" 17780 if test ! -f "$path" && test ! -d "$path"; then 17781 as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5 17782 fi 17783 17784 if test -d "$path"; then 17785 OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`" 17786 else 17787 dir="`$DIRNAME "$path"`" 17788 base="`$BASENAME "$path"`" 17789 OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 17790 fi 17791 fi 17792 fi 17793 17794 17795 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support" 17796 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17797 17798 SPEC="$OUTPUTDIR/spec.gmk" 17799 17800 17801 17802 17803 17804 # The spec.gmk file contains all variables for the make system. 17805 ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17806 17807 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17808 ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17809 17810 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17811 ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17812 17813 # The compare.sh is used to compare the build output to other builds. 17814 ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17815 17816 # The generated Makefile knows where the spec.gmk is and where the source is. 17817 # You can run make from the OUTPUTDIR, or from the top-level Makefile 17818 # which will look for generated configurations 17819 ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" 17820 17821 17822 17823 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17824 17825 for ac_prog in apt-get yum brew port pkgutil pkgadd 17826 do 17827 # Extract the first word of "$ac_prog", so it can be a program name with args. 17828 set dummy $ac_prog; ac_word=$2 17829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17830 $as_echo_n "checking for $ac_word... " >&6; } 17831 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17832 $as_echo_n "(cached) " >&6 17833 else 17834 if test -n "$PKGHANDLER"; then 17835 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17836 else 17837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17838 for as_dir in $PATH 17839 do 17840 IFS=$as_save_IFS 17841 test -z "$as_dir" && as_dir=. 17842 for ac_exec_ext in '' $ac_executable_extensions; do 17843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17844 ac_cv_prog_PKGHANDLER="$ac_prog" 17845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17846 break 2 17847 fi 17848 done 17849 done 17850 IFS=$as_save_IFS 17851 17852 fi 17853 fi 17854 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17855 if test -n "$PKGHANDLER"; then 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17857 $as_echo "$PKGHANDLER" >&6; } 17858 else 17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17860 $as_echo "no" >&6; } 17861 fi 17862 17863 17864 test -n "$PKGHANDLER" && break 17865 done 17866 17867 17868 17869 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17870 17871 17872 17873 # Publish this variable in the help. 17874 17875 17876 if [ -z "${MAKE+x}" ]; then 17877 # The variable is not set by user, try to locate tool using the code snippet 17878 17879 # Try our hardest to locate a correct version of GNU make 17880 for ac_prog in gmake 17881 do 17882 # Extract the first word of "$ac_prog", so it can be a program name with args. 17883 set dummy $ac_prog; ac_word=$2 17884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17885 $as_echo_n "checking for $ac_word... " >&6; } 17886 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17887 $as_echo_n "(cached) " >&6 17888 else 17889 case $CHECK_GMAKE in 17890 [\\/]* | ?:[\\/]*) 17891 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17892 ;; 17893 *) 17894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17895 for as_dir in $PATH 17896 do 17897 IFS=$as_save_IFS 17898 test -z "$as_dir" && as_dir=. 17899 for ac_exec_ext in '' $ac_executable_extensions; do 17900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17901 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17903 break 2 17904 fi 17905 done 17906 done 17907 IFS=$as_save_IFS 17908 17909 ;; 17910 esac 17911 fi 17912 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17913 if test -n "$CHECK_GMAKE"; then 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17915 $as_echo "$CHECK_GMAKE" >&6; } 17916 else 17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17918 $as_echo "no" >&6; } 17919 fi 17920 17921 17922 test -n "$CHECK_GMAKE" && break 17923 done 17924 17925 17926 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17927 DESCRIPTION="gmake in PATH" 17928 17929 # On Cygwin, we require a newer version of make than on other platforms 17930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17931 MAKE_VERSION_EXPR="-e 4\." 17932 MAKE_REQUIRED_VERSION="4.0" 17933 else 17934 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17935 MAKE_REQUIRED_VERSION="3.81" 17936 fi 17937 17938 if test "x$MAKE_CANDIDATE" != x; then 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17940 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17941 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17942 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17943 if test "x$IS_GNU_MAKE" = x; then 17944 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17945 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17946 else 17947 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17948 if test "x$IS_MODERN_MAKE" = x; then 17949 { $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 17950 $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;} 17951 else 17952 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17954 MAKE_EXPECTED_ENV='cygwin' 17955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17956 MAKE_EXPECTED_ENV='msys' 17957 else 17958 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17959 fi 17960 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17961 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17962 else 17963 # Not relevant for non-Windows 17964 IS_MAKE_CORRECT_ENV=true 17965 fi 17966 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17967 { $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 17968 $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;} 17969 else 17970 FOUND_MAKE=$MAKE_CANDIDATE 17971 17972 # Only process if variable expands to non-empty 17973 17974 if test "x$FOUND_MAKE" != x; then 17975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17976 17977 # First separate the path from the arguments. This will split at the first 17978 # space. 17979 complete="$FOUND_MAKE" 17980 path="${complete%% *}" 17981 tmp="$complete EOL" 17982 arguments="${tmp#* }" 17983 17984 # Input might be given as Windows format, start by converting to 17985 # unix format. 17986 new_path=`$CYGPATH -u "$path"` 17987 17988 # Now try to locate executable using which 17989 new_path=`$WHICH "$new_path" 2> /dev/null` 17990 # bat and cmd files are not always considered executable in cygwin causing which 17991 # to not find them 17992 if test "x$new_path" = x \ 17993 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17994 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17995 new_path=`$CYGPATH -u "$path"` 17996 fi 17997 if test "x$new_path" = x; then 17998 # Oops. Which didn't find the executable. 17999 # The splitting of arguments from the executable at a space might have been incorrect, 18000 # since paths with space are more likely in Windows. Give it another try with the whole 18001 # argument. 18002 path="$complete" 18003 arguments="EOL" 18004 new_path=`$CYGPATH -u "$path"` 18005 new_path=`$WHICH "$new_path" 2> /dev/null` 18006 # bat and cmd files are not always considered executable in cygwin causing which 18007 # to not find them 18008 if test "x$new_path" = x \ 18009 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18010 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18011 new_path=`$CYGPATH -u "$path"` 18012 fi 18013 if test "x$new_path" = x; then 18014 # It's still not found. Now this is an unrecoverable error. 18015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18016 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18017 has_space=`$ECHO "$complete" | $GREP " "` 18018 if test "x$has_space" != x; then 18019 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18020 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18021 fi 18022 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18023 fi 18024 fi 18025 18026 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18027 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18028 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18029 # "foo.exe" is OK but "foo" is an error. 18030 # 18031 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18032 # It is also a way to make sure we got the proper file name for the real test later on. 18033 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18034 if test "x$test_shortpath" = x; then 18035 # Short path failed, file does not exist as specified. 18036 # Try adding .exe or .cmd 18037 if test -f "${new_path}.exe"; then 18038 input_to_shortpath="${new_path}.exe" 18039 elif test -f "${new_path}.cmd"; then 18040 input_to_shortpath="${new_path}.cmd" 18041 else 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18043 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18044 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18045 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18046 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18047 fi 18048 else 18049 input_to_shortpath="$new_path" 18050 fi 18051 18052 # Call helper function which possibly converts this using DOS-style short mode. 18053 # If so, the updated path is stored in $new_path. 18054 new_path="$input_to_shortpath" 18055 18056 input_path="$input_to_shortpath" 18057 # Check if we need to convert this using DOS-style short mode. If the path 18058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18059 # take no chances and rewrite it. 18060 # Note: m4 eats our [], so we need to use [ and ] instead. 18061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18062 if test "x$has_forbidden_chars" != x; then 18063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18064 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18065 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18066 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18067 # Going to short mode and back again did indeed matter. Since short mode is 18068 # case insensitive, let's make it lowercase to improve readability. 18069 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18070 # Now convert it back to Unix-style (cygpath) 18071 input_path=`$CYGPATH -u "$shortmode_path"` 18072 new_path="$input_path" 18073 fi 18074 fi 18075 18076 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18077 if test "x$test_cygdrive_prefix" = x; then 18078 # As a simple fix, exclude /usr/bin since it's not a real path. 18079 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18080 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18081 # a path prefixed by /cygdrive for fixpath to work. 18082 new_path="$CYGWIN_ROOT_PATH$input_path" 18083 fi 18084 fi 18085 18086 # remove trailing .exe if any 18087 new_path="${new_path/%.exe/}" 18088 18089 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18090 18091 # First separate the path from the arguments. This will split at the first 18092 # space. 18093 complete="$FOUND_MAKE" 18094 path="${complete%% *}" 18095 tmp="$complete EOL" 18096 arguments="${tmp#* }" 18097 18098 # Input might be given as Windows format, start by converting to 18099 # unix format. 18100 new_path="$path" 18101 18102 windows_path="$new_path" 18103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18104 unix_path=`$CYGPATH -u "$windows_path"` 18105 new_path="$unix_path" 18106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18108 new_path="$unix_path" 18109 fi 18110 18111 18112 # Now try to locate executable using which 18113 new_path=`$WHICH "$new_path" 2> /dev/null` 18114 18115 if test "x$new_path" = x; then 18116 # Oops. Which didn't find the executable. 18117 # The splitting of arguments from the executable at a space might have been incorrect, 18118 # since paths with space are more likely in Windows. Give it another try with the whole 18119 # argument. 18120 path="$complete" 18121 arguments="EOL" 18122 new_path="$path" 18123 18124 windows_path="$new_path" 18125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18126 unix_path=`$CYGPATH -u "$windows_path"` 18127 new_path="$unix_path" 18128 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18129 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18130 new_path="$unix_path" 18131 fi 18132 18133 18134 new_path=`$WHICH "$new_path" 2> /dev/null` 18135 # bat and cmd files are not always considered executable in MSYS causing which 18136 # to not find them 18137 if test "x$new_path" = x \ 18138 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18139 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18140 new_path="$path" 18141 18142 windows_path="$new_path" 18143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18144 unix_path=`$CYGPATH -u "$windows_path"` 18145 new_path="$unix_path" 18146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18148 new_path="$unix_path" 18149 fi 18150 18151 fi 18152 18153 if test "x$new_path" = x; then 18154 # It's still not found. Now this is an unrecoverable error. 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18156 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18157 has_space=`$ECHO "$complete" | $GREP " "` 18158 if test "x$has_space" != x; then 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18160 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18161 fi 18162 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18163 fi 18164 fi 18165 18166 # Now new_path has a complete unix path to the binary 18167 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18168 # Keep paths in /bin as-is, but remove trailing .exe if any 18169 new_path="${new_path/%.exe/}" 18170 # Do not save /bin paths to all_fixpath_prefixes! 18171 else 18172 # Not in mixed or Windows style, start by that. 18173 new_path=`cmd //c echo $new_path` 18174 18175 input_path="$new_path" 18176 # Check if we need to convert this using DOS-style short mode. If the path 18177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18178 # take no chances and rewrite it. 18179 # Note: m4 eats our [], so we need to use [ and ] instead. 18180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18181 if test "x$has_forbidden_chars" != x; then 18182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18183 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18184 fi 18185 18186 # Output is in $new_path 18187 18188 windows_path="$new_path" 18189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18190 unix_path=`$CYGPATH -u "$windows_path"` 18191 new_path="$unix_path" 18192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18194 new_path="$unix_path" 18195 fi 18196 18197 # remove trailing .exe if any 18198 new_path="${new_path/%.exe/}" 18199 18200 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18201 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18202 fi 18203 18204 else 18205 # We're on a unix platform. Hooray! :) 18206 # First separate the path from the arguments. This will split at the first 18207 # space. 18208 complete="$FOUND_MAKE" 18209 path="${complete%% *}" 18210 tmp="$complete EOL" 18211 arguments="${tmp#* }" 18212 18213 # Cannot rely on the command "which" here since it doesn't always work. 18214 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18215 if test -z "$is_absolute_path"; then 18216 # Path to executable is not absolute. Find it. 18217 IFS_save="$IFS" 18218 IFS=: 18219 for p in $PATH; do 18220 if test -f "$p/$path" && test -x "$p/$path"; then 18221 new_path="$p/$path" 18222 break 18223 fi 18224 done 18225 IFS="$IFS_save" 18226 else 18227 # This is an absolute path, we can use it without further modifications. 18228 new_path="$path" 18229 fi 18230 18231 if test "x$new_path" = x; then 18232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18233 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18234 has_space=`$ECHO "$complete" | $GREP " "` 18235 if test "x$has_space" != x; then 18236 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18237 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18238 fi 18239 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18240 fi 18241 fi 18242 18243 # Now join together the path and the arguments once again 18244 if test "x$arguments" != xEOL; then 18245 new_complete="$new_path ${arguments% *}" 18246 else 18247 new_complete="$new_path" 18248 fi 18249 18250 if test "x$complete" != "x$new_complete"; then 18251 FOUND_MAKE="$new_complete" 18252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18253 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18254 fi 18255 fi 18256 18257 fi 18258 fi 18259 fi 18260 fi 18261 18262 18263 if test "x$FOUND_MAKE" = x; then 18264 for ac_prog in make 18265 do 18266 # Extract the first word of "$ac_prog", so it can be a program name with args. 18267 set dummy $ac_prog; ac_word=$2 18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18269 $as_echo_n "checking for $ac_word... " >&6; } 18270 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18271 $as_echo_n "(cached) " >&6 18272 else 18273 case $CHECK_MAKE in 18274 [\\/]* | ?:[\\/]*) 18275 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18276 ;; 18277 *) 18278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18279 for as_dir in $PATH 18280 do 18281 IFS=$as_save_IFS 18282 test -z "$as_dir" && as_dir=. 18283 for ac_exec_ext in '' $ac_executable_extensions; do 18284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18285 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18287 break 2 18288 fi 18289 done 18290 done 18291 IFS=$as_save_IFS 18292 18293 ;; 18294 esac 18295 fi 18296 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18297 if test -n "$CHECK_MAKE"; then 18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18299 $as_echo "$CHECK_MAKE" >&6; } 18300 else 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18302 $as_echo "no" >&6; } 18303 fi 18304 18305 18306 test -n "$CHECK_MAKE" && break 18307 done 18308 18309 18310 MAKE_CANDIDATE=""$CHECK_MAKE"" 18311 DESCRIPTION="make in PATH" 18312 18313 # On Cygwin, we require a newer version of make than on other platforms 18314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18315 MAKE_VERSION_EXPR="-e 4\." 18316 MAKE_REQUIRED_VERSION="4.0" 18317 else 18318 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18319 MAKE_REQUIRED_VERSION="3.81" 18320 fi 18321 18322 if test "x$MAKE_CANDIDATE" != x; then 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18324 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18325 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18326 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18327 if test "x$IS_GNU_MAKE" = x; then 18328 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18329 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18330 else 18331 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18332 if test "x$IS_MODERN_MAKE" = x; then 18333 { $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 18334 $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;} 18335 else 18336 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18338 MAKE_EXPECTED_ENV='cygwin' 18339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18340 MAKE_EXPECTED_ENV='msys' 18341 else 18342 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18343 fi 18344 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18345 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18346 else 18347 # Not relevant for non-Windows 18348 IS_MAKE_CORRECT_ENV=true 18349 fi 18350 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18351 { $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 18352 $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;} 18353 else 18354 FOUND_MAKE=$MAKE_CANDIDATE 18355 18356 # Only process if variable expands to non-empty 18357 18358 if test "x$FOUND_MAKE" != x; then 18359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18360 18361 # First separate the path from the arguments. This will split at the first 18362 # space. 18363 complete="$FOUND_MAKE" 18364 path="${complete%% *}" 18365 tmp="$complete EOL" 18366 arguments="${tmp#* }" 18367 18368 # Input might be given as Windows format, start by converting to 18369 # unix format. 18370 new_path=`$CYGPATH -u "$path"` 18371 18372 # Now try to locate executable using which 18373 new_path=`$WHICH "$new_path" 2> /dev/null` 18374 # bat and cmd files are not always considered executable in cygwin causing which 18375 # to not find them 18376 if test "x$new_path" = x \ 18377 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18378 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18379 new_path=`$CYGPATH -u "$path"` 18380 fi 18381 if test "x$new_path" = x; then 18382 # Oops. Which didn't find the executable. 18383 # The splitting of arguments from the executable at a space might have been incorrect, 18384 # since paths with space are more likely in Windows. Give it another try with the whole 18385 # argument. 18386 path="$complete" 18387 arguments="EOL" 18388 new_path=`$CYGPATH -u "$path"` 18389 new_path=`$WHICH "$new_path" 2> /dev/null` 18390 # bat and cmd files are not always considered executable in cygwin causing which 18391 # to not find them 18392 if test "x$new_path" = x \ 18393 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18394 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18395 new_path=`$CYGPATH -u "$path"` 18396 fi 18397 if test "x$new_path" = x; then 18398 # It's still not found. Now this is an unrecoverable error. 18399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18400 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18401 has_space=`$ECHO "$complete" | $GREP " "` 18402 if test "x$has_space" != x; then 18403 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18404 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18405 fi 18406 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18407 fi 18408 fi 18409 18410 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18411 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18412 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18413 # "foo.exe" is OK but "foo" is an error. 18414 # 18415 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18416 # It is also a way to make sure we got the proper file name for the real test later on. 18417 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18418 if test "x$test_shortpath" = x; then 18419 # Short path failed, file does not exist as specified. 18420 # Try adding .exe or .cmd 18421 if test -f "${new_path}.exe"; then 18422 input_to_shortpath="${new_path}.exe" 18423 elif test -f "${new_path}.cmd"; then 18424 input_to_shortpath="${new_path}.cmd" 18425 else 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18427 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18428 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18429 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18430 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18431 fi 18432 else 18433 input_to_shortpath="$new_path" 18434 fi 18435 18436 # Call helper function which possibly converts this using DOS-style short mode. 18437 # If so, the updated path is stored in $new_path. 18438 new_path="$input_to_shortpath" 18439 18440 input_path="$input_to_shortpath" 18441 # Check if we need to convert this using DOS-style short mode. If the path 18442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18443 # take no chances and rewrite it. 18444 # Note: m4 eats our [], so we need to use [ and ] instead. 18445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18446 if test "x$has_forbidden_chars" != x; then 18447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18448 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18449 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18450 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18451 # Going to short mode and back again did indeed matter. Since short mode is 18452 # case insensitive, let's make it lowercase to improve readability. 18453 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18454 # Now convert it back to Unix-style (cygpath) 18455 input_path=`$CYGPATH -u "$shortmode_path"` 18456 new_path="$input_path" 18457 fi 18458 fi 18459 18460 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18461 if test "x$test_cygdrive_prefix" = x; then 18462 # As a simple fix, exclude /usr/bin since it's not a real path. 18463 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18464 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18465 # a path prefixed by /cygdrive for fixpath to work. 18466 new_path="$CYGWIN_ROOT_PATH$input_path" 18467 fi 18468 fi 18469 18470 # remove trailing .exe if any 18471 new_path="${new_path/%.exe/}" 18472 18473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18474 18475 # First separate the path from the arguments. This will split at the first 18476 # space. 18477 complete="$FOUND_MAKE" 18478 path="${complete%% *}" 18479 tmp="$complete EOL" 18480 arguments="${tmp#* }" 18481 18482 # Input might be given as Windows format, start by converting to 18483 # unix format. 18484 new_path="$path" 18485 18486 windows_path="$new_path" 18487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18488 unix_path=`$CYGPATH -u "$windows_path"` 18489 new_path="$unix_path" 18490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18492 new_path="$unix_path" 18493 fi 18494 18495 18496 # Now try to locate executable using which 18497 new_path=`$WHICH "$new_path" 2> /dev/null` 18498 18499 if test "x$new_path" = x; then 18500 # Oops. Which didn't find the executable. 18501 # The splitting of arguments from the executable at a space might have been incorrect, 18502 # since paths with space are more likely in Windows. Give it another try with the whole 18503 # argument. 18504 path="$complete" 18505 arguments="EOL" 18506 new_path="$path" 18507 18508 windows_path="$new_path" 18509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18510 unix_path=`$CYGPATH -u "$windows_path"` 18511 new_path="$unix_path" 18512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18514 new_path="$unix_path" 18515 fi 18516 18517 18518 new_path=`$WHICH "$new_path" 2> /dev/null` 18519 # bat and cmd files are not always considered executable in MSYS causing which 18520 # to not find them 18521 if test "x$new_path" = x \ 18522 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18523 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18524 new_path="$path" 18525 18526 windows_path="$new_path" 18527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18528 unix_path=`$CYGPATH -u "$windows_path"` 18529 new_path="$unix_path" 18530 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18531 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18532 new_path="$unix_path" 18533 fi 18534 18535 fi 18536 18537 if test "x$new_path" = x; then 18538 # It's still not found. Now this is an unrecoverable error. 18539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18540 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18541 has_space=`$ECHO "$complete" | $GREP " "` 18542 if test "x$has_space" != x; then 18543 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18544 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18545 fi 18546 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18547 fi 18548 fi 18549 18550 # Now new_path has a complete unix path to the binary 18551 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18552 # Keep paths in /bin as-is, but remove trailing .exe if any 18553 new_path="${new_path/%.exe/}" 18554 # Do not save /bin paths to all_fixpath_prefixes! 18555 else 18556 # Not in mixed or Windows style, start by that. 18557 new_path=`cmd //c echo $new_path` 18558 18559 input_path="$new_path" 18560 # Check if we need to convert this using DOS-style short mode. If the path 18561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18562 # take no chances and rewrite it. 18563 # Note: m4 eats our [], so we need to use [ and ] instead. 18564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18565 if test "x$has_forbidden_chars" != x; then 18566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18567 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18568 fi 18569 18570 # Output is in $new_path 18571 18572 windows_path="$new_path" 18573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18574 unix_path=`$CYGPATH -u "$windows_path"` 18575 new_path="$unix_path" 18576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18578 new_path="$unix_path" 18579 fi 18580 18581 # remove trailing .exe if any 18582 new_path="${new_path/%.exe/}" 18583 18584 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18585 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18586 fi 18587 18588 else 18589 # We're on a unix platform. Hooray! :) 18590 # First separate the path from the arguments. This will split at the first 18591 # space. 18592 complete="$FOUND_MAKE" 18593 path="${complete%% *}" 18594 tmp="$complete EOL" 18595 arguments="${tmp#* }" 18596 18597 # Cannot rely on the command "which" here since it doesn't always work. 18598 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18599 if test -z "$is_absolute_path"; then 18600 # Path to executable is not absolute. Find it. 18601 IFS_save="$IFS" 18602 IFS=: 18603 for p in $PATH; do 18604 if test -f "$p/$path" && test -x "$p/$path"; then 18605 new_path="$p/$path" 18606 break 18607 fi 18608 done 18609 IFS="$IFS_save" 18610 else 18611 # This is an absolute path, we can use it without further modifications. 18612 new_path="$path" 18613 fi 18614 18615 if test "x$new_path" = x; then 18616 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18617 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18618 has_space=`$ECHO "$complete" | $GREP " "` 18619 if test "x$has_space" != x; then 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18621 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18622 fi 18623 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18624 fi 18625 fi 18626 18627 # Now join together the path and the arguments once again 18628 if test "x$arguments" != xEOL; then 18629 new_complete="$new_path ${arguments% *}" 18630 else 18631 new_complete="$new_path" 18632 fi 18633 18634 if test "x$complete" != "x$new_complete"; then 18635 FOUND_MAKE="$new_complete" 18636 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18637 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18638 fi 18639 fi 18640 18641 fi 18642 fi 18643 fi 18644 fi 18645 18646 fi 18647 18648 if test "x$FOUND_MAKE" = x; then 18649 if test "x$TOOLCHAIN_PATH" != x; then 18650 # We have a toolchain path, check that as well before giving up. 18651 OLD_PATH=$PATH 18652 PATH=$TOOLCHAIN_PATH:$PATH 18653 for ac_prog in gmake 18654 do 18655 # Extract the first word of "$ac_prog", so it can be a program name with args. 18656 set dummy $ac_prog; ac_word=$2 18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18658 $as_echo_n "checking for $ac_word... " >&6; } 18659 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18660 $as_echo_n "(cached) " >&6 18661 else 18662 case $CHECK_TOOLSDIR_GMAKE in 18663 [\\/]* | ?:[\\/]*) 18664 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18665 ;; 18666 *) 18667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18668 for as_dir in $PATH 18669 do 18670 IFS=$as_save_IFS 18671 test -z "$as_dir" && as_dir=. 18672 for ac_exec_ext in '' $ac_executable_extensions; do 18673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18674 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18676 break 2 18677 fi 18678 done 18679 done 18680 IFS=$as_save_IFS 18681 18682 ;; 18683 esac 18684 fi 18685 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18686 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18688 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18689 else 18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18691 $as_echo "no" >&6; } 18692 fi 18693 18694 18695 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18696 done 18697 18698 18699 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18700 DESCRIPTION="gmake in tools-dir" 18701 18702 # On Cygwin, we require a newer version of make than on other platforms 18703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18704 MAKE_VERSION_EXPR="-e 4\." 18705 MAKE_REQUIRED_VERSION="4.0" 18706 else 18707 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18708 MAKE_REQUIRED_VERSION="3.81" 18709 fi 18710 18711 if test "x$MAKE_CANDIDATE" != x; then 18712 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18713 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18714 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18715 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18716 if test "x$IS_GNU_MAKE" = x; then 18717 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18718 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18719 else 18720 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18721 if test "x$IS_MODERN_MAKE" = x; then 18722 { $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 18723 $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;} 18724 else 18725 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18727 MAKE_EXPECTED_ENV='cygwin' 18728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18729 MAKE_EXPECTED_ENV='msys' 18730 else 18731 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18732 fi 18733 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18734 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18735 else 18736 # Not relevant for non-Windows 18737 IS_MAKE_CORRECT_ENV=true 18738 fi 18739 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18740 { $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 18741 $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;} 18742 else 18743 FOUND_MAKE=$MAKE_CANDIDATE 18744 18745 # Only process if variable expands to non-empty 18746 18747 if test "x$FOUND_MAKE" != x; then 18748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18749 18750 # First separate the path from the arguments. This will split at the first 18751 # space. 18752 complete="$FOUND_MAKE" 18753 path="${complete%% *}" 18754 tmp="$complete EOL" 18755 arguments="${tmp#* }" 18756 18757 # Input might be given as Windows format, start by converting to 18758 # unix format. 18759 new_path=`$CYGPATH -u "$path"` 18760 18761 # Now try to locate executable using which 18762 new_path=`$WHICH "$new_path" 2> /dev/null` 18763 # bat and cmd files are not always considered executable in cygwin causing which 18764 # to not find them 18765 if test "x$new_path" = x \ 18766 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18767 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18768 new_path=`$CYGPATH -u "$path"` 18769 fi 18770 if test "x$new_path" = x; then 18771 # Oops. Which didn't find the executable. 18772 # The splitting of arguments from the executable at a space might have been incorrect, 18773 # since paths with space are more likely in Windows. Give it another try with the whole 18774 # argument. 18775 path="$complete" 18776 arguments="EOL" 18777 new_path=`$CYGPATH -u "$path"` 18778 new_path=`$WHICH "$new_path" 2> /dev/null` 18779 # bat and cmd files are not always considered executable in cygwin causing which 18780 # to not find them 18781 if test "x$new_path" = x \ 18782 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18783 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18784 new_path=`$CYGPATH -u "$path"` 18785 fi 18786 if test "x$new_path" = x; then 18787 # It's still not found. Now this is an unrecoverable error. 18788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18789 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18790 has_space=`$ECHO "$complete" | $GREP " "` 18791 if test "x$has_space" != x; then 18792 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18793 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18794 fi 18795 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18796 fi 18797 fi 18798 18799 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18800 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18801 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18802 # "foo.exe" is OK but "foo" is an error. 18803 # 18804 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18805 # It is also a way to make sure we got the proper file name for the real test later on. 18806 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18807 if test "x$test_shortpath" = x; then 18808 # Short path failed, file does not exist as specified. 18809 # Try adding .exe or .cmd 18810 if test -f "${new_path}.exe"; then 18811 input_to_shortpath="${new_path}.exe" 18812 elif test -f "${new_path}.cmd"; then 18813 input_to_shortpath="${new_path}.cmd" 18814 else 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18816 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18818 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18819 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18820 fi 18821 else 18822 input_to_shortpath="$new_path" 18823 fi 18824 18825 # Call helper function which possibly converts this using DOS-style short mode. 18826 # If so, the updated path is stored in $new_path. 18827 new_path="$input_to_shortpath" 18828 18829 input_path="$input_to_shortpath" 18830 # Check if we need to convert this using DOS-style short mode. If the path 18831 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18832 # take no chances and rewrite it. 18833 # Note: m4 eats our [], so we need to use [ and ] instead. 18834 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18835 if test "x$has_forbidden_chars" != x; then 18836 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18837 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18838 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18839 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18840 # Going to short mode and back again did indeed matter. Since short mode is 18841 # case insensitive, let's make it lowercase to improve readability. 18842 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18843 # Now convert it back to Unix-style (cygpath) 18844 input_path=`$CYGPATH -u "$shortmode_path"` 18845 new_path="$input_path" 18846 fi 18847 fi 18848 18849 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18850 if test "x$test_cygdrive_prefix" = x; then 18851 # As a simple fix, exclude /usr/bin since it's not a real path. 18852 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18853 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18854 # a path prefixed by /cygdrive for fixpath to work. 18855 new_path="$CYGWIN_ROOT_PATH$input_path" 18856 fi 18857 fi 18858 18859 # remove trailing .exe if any 18860 new_path="${new_path/%.exe/}" 18861 18862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18863 18864 # First separate the path from the arguments. This will split at the first 18865 # space. 18866 complete="$FOUND_MAKE" 18867 path="${complete%% *}" 18868 tmp="$complete EOL" 18869 arguments="${tmp#* }" 18870 18871 # Input might be given as Windows format, start by converting to 18872 # unix format. 18873 new_path="$path" 18874 18875 windows_path="$new_path" 18876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18877 unix_path=`$CYGPATH -u "$windows_path"` 18878 new_path="$unix_path" 18879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18881 new_path="$unix_path" 18882 fi 18883 18884 18885 # Now try to locate executable using which 18886 new_path=`$WHICH "$new_path" 2> /dev/null` 18887 18888 if test "x$new_path" = x; then 18889 # Oops. Which didn't find the executable. 18890 # The splitting of arguments from the executable at a space might have been incorrect, 18891 # since paths with space are more likely in Windows. Give it another try with the whole 18892 # argument. 18893 path="$complete" 18894 arguments="EOL" 18895 new_path="$path" 18896 18897 windows_path="$new_path" 18898 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18899 unix_path=`$CYGPATH -u "$windows_path"` 18900 new_path="$unix_path" 18901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18902 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18903 new_path="$unix_path" 18904 fi 18905 18906 18907 new_path=`$WHICH "$new_path" 2> /dev/null` 18908 # bat and cmd files are not always considered executable in MSYS causing which 18909 # to not find them 18910 if test "x$new_path" = x \ 18911 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18912 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18913 new_path="$path" 18914 18915 windows_path="$new_path" 18916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18917 unix_path=`$CYGPATH -u "$windows_path"` 18918 new_path="$unix_path" 18919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18921 new_path="$unix_path" 18922 fi 18923 18924 fi 18925 18926 if test "x$new_path" = x; then 18927 # It's still not found. Now this is an unrecoverable error. 18928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18929 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18930 has_space=`$ECHO "$complete" | $GREP " "` 18931 if test "x$has_space" != x; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18933 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18934 fi 18935 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18936 fi 18937 fi 18938 18939 # Now new_path has a complete unix path to the binary 18940 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18941 # Keep paths in /bin as-is, but remove trailing .exe if any 18942 new_path="${new_path/%.exe/}" 18943 # Do not save /bin paths to all_fixpath_prefixes! 18944 else 18945 # Not in mixed or Windows style, start by that. 18946 new_path=`cmd //c echo $new_path` 18947 18948 input_path="$new_path" 18949 # Check if we need to convert this using DOS-style short mode. If the path 18950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18951 # take no chances and rewrite it. 18952 # Note: m4 eats our [], so we need to use [ and ] instead. 18953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18954 if test "x$has_forbidden_chars" != x; then 18955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18957 fi 18958 18959 # Output is in $new_path 18960 18961 windows_path="$new_path" 18962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18963 unix_path=`$CYGPATH -u "$windows_path"` 18964 new_path="$unix_path" 18965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18967 new_path="$unix_path" 18968 fi 18969 18970 # remove trailing .exe if any 18971 new_path="${new_path/%.exe/}" 18972 18973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18975 fi 18976 18977 else 18978 # We're on a unix platform. Hooray! :) 18979 # First separate the path from the arguments. This will split at the first 18980 # space. 18981 complete="$FOUND_MAKE" 18982 path="${complete%% *}" 18983 tmp="$complete EOL" 18984 arguments="${tmp#* }" 18985 18986 # Cannot rely on the command "which" here since it doesn't always work. 18987 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18988 if test -z "$is_absolute_path"; then 18989 # Path to executable is not absolute. Find it. 18990 IFS_save="$IFS" 18991 IFS=: 18992 for p in $PATH; do 18993 if test -f "$p/$path" && test -x "$p/$path"; then 18994 new_path="$p/$path" 18995 break 18996 fi 18997 done 18998 IFS="$IFS_save" 18999 else 19000 # This is an absolute path, we can use it without further modifications. 19001 new_path="$path" 19002 fi 19003 19004 if test "x$new_path" = x; then 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19006 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19007 has_space=`$ECHO "$complete" | $GREP " "` 19008 if test "x$has_space" != x; then 19009 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19010 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19011 fi 19012 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19013 fi 19014 fi 19015 19016 # Now join together the path and the arguments once again 19017 if test "x$arguments" != xEOL; then 19018 new_complete="$new_path ${arguments% *}" 19019 else 19020 new_complete="$new_path" 19021 fi 19022 19023 if test "x$complete" != "x$new_complete"; then 19024 FOUND_MAKE="$new_complete" 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19026 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19027 fi 19028 fi 19029 19030 fi 19031 fi 19032 fi 19033 fi 19034 19035 if test "x$FOUND_MAKE" = x; then 19036 for ac_prog in make 19037 do 19038 # Extract the first word of "$ac_prog", so it can be a program name with args. 19039 set dummy $ac_prog; ac_word=$2 19040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19041 $as_echo_n "checking for $ac_word... " >&6; } 19042 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19043 $as_echo_n "(cached) " >&6 19044 else 19045 case $CHECK_TOOLSDIR_MAKE in 19046 [\\/]* | ?:[\\/]*) 19047 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19048 ;; 19049 *) 19050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19051 for as_dir in $PATH 19052 do 19053 IFS=$as_save_IFS 19054 test -z "$as_dir" && as_dir=. 19055 for ac_exec_ext in '' $ac_executable_extensions; do 19056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19057 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19059 break 2 19060 fi 19061 done 19062 done 19063 IFS=$as_save_IFS 19064 19065 ;; 19066 esac 19067 fi 19068 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19069 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19071 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19072 else 19073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19074 $as_echo "no" >&6; } 19075 fi 19076 19077 19078 test -n "$CHECK_TOOLSDIR_MAKE" && break 19079 done 19080 19081 19082 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19083 DESCRIPTION="make in tools-dir" 19084 19085 # On Cygwin, we require a newer version of make than on other platforms 19086 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19087 MAKE_VERSION_EXPR="-e 4\." 19088 MAKE_REQUIRED_VERSION="4.0" 19089 else 19090 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19091 MAKE_REQUIRED_VERSION="3.81" 19092 fi 19093 19094 if test "x$MAKE_CANDIDATE" != x; then 19095 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19096 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19097 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19098 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19099 if test "x$IS_GNU_MAKE" = x; then 19100 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19101 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19102 else 19103 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19104 if test "x$IS_MODERN_MAKE" = x; then 19105 { $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 19106 $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;} 19107 else 19108 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19110 MAKE_EXPECTED_ENV='cygwin' 19111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19112 MAKE_EXPECTED_ENV='msys' 19113 else 19114 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19115 fi 19116 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19117 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19118 else 19119 # Not relevant for non-Windows 19120 IS_MAKE_CORRECT_ENV=true 19121 fi 19122 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19123 { $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 19124 $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;} 19125 else 19126 FOUND_MAKE=$MAKE_CANDIDATE 19127 19128 # Only process if variable expands to non-empty 19129 19130 if test "x$FOUND_MAKE" != x; then 19131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19132 19133 # First separate the path from the arguments. This will split at the first 19134 # space. 19135 complete="$FOUND_MAKE" 19136 path="${complete%% *}" 19137 tmp="$complete EOL" 19138 arguments="${tmp#* }" 19139 19140 # Input might be given as Windows format, start by converting to 19141 # unix format. 19142 new_path=`$CYGPATH -u "$path"` 19143 19144 # Now try to locate executable using which 19145 new_path=`$WHICH "$new_path" 2> /dev/null` 19146 # bat and cmd files are not always considered executable in cygwin causing which 19147 # to not find them 19148 if test "x$new_path" = x \ 19149 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19150 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19151 new_path=`$CYGPATH -u "$path"` 19152 fi 19153 if test "x$new_path" = x; then 19154 # Oops. Which didn't find the executable. 19155 # The splitting of arguments from the executable at a space might have been incorrect, 19156 # since paths with space are more likely in Windows. Give it another try with the whole 19157 # argument. 19158 path="$complete" 19159 arguments="EOL" 19160 new_path=`$CYGPATH -u "$path"` 19161 new_path=`$WHICH "$new_path" 2> /dev/null` 19162 # bat and cmd files are not always considered executable in cygwin causing which 19163 # to not find them 19164 if test "x$new_path" = x \ 19165 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19166 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19167 new_path=`$CYGPATH -u "$path"` 19168 fi 19169 if test "x$new_path" = x; then 19170 # It's still not found. Now this is an unrecoverable error. 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19172 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19173 has_space=`$ECHO "$complete" | $GREP " "` 19174 if test "x$has_space" != x; then 19175 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19176 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19177 fi 19178 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19179 fi 19180 fi 19181 19182 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19183 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19184 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19185 # "foo.exe" is OK but "foo" is an error. 19186 # 19187 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19188 # It is also a way to make sure we got the proper file name for the real test later on. 19189 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19190 if test "x$test_shortpath" = x; then 19191 # Short path failed, file does not exist as specified. 19192 # Try adding .exe or .cmd 19193 if test -f "${new_path}.exe"; then 19194 input_to_shortpath="${new_path}.exe" 19195 elif test -f "${new_path}.cmd"; then 19196 input_to_shortpath="${new_path}.cmd" 19197 else 19198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19200 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19201 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19202 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19203 fi 19204 else 19205 input_to_shortpath="$new_path" 19206 fi 19207 19208 # Call helper function which possibly converts this using DOS-style short mode. 19209 # If so, the updated path is stored in $new_path. 19210 new_path="$input_to_shortpath" 19211 19212 input_path="$input_to_shortpath" 19213 # Check if we need to convert this using DOS-style short mode. If the path 19214 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19215 # take no chances and rewrite it. 19216 # Note: m4 eats our [], so we need to use [ and ] instead. 19217 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19218 if test "x$has_forbidden_chars" != x; then 19219 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19220 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19221 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19222 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19223 # Going to short mode and back again did indeed matter. Since short mode is 19224 # case insensitive, let's make it lowercase to improve readability. 19225 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19226 # Now convert it back to Unix-style (cygpath) 19227 input_path=`$CYGPATH -u "$shortmode_path"` 19228 new_path="$input_path" 19229 fi 19230 fi 19231 19232 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19233 if test "x$test_cygdrive_prefix" = x; then 19234 # As a simple fix, exclude /usr/bin since it's not a real path. 19235 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19236 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19237 # a path prefixed by /cygdrive for fixpath to work. 19238 new_path="$CYGWIN_ROOT_PATH$input_path" 19239 fi 19240 fi 19241 19242 # remove trailing .exe if any 19243 new_path="${new_path/%.exe/}" 19244 19245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19246 19247 # First separate the path from the arguments. This will split at the first 19248 # space. 19249 complete="$FOUND_MAKE" 19250 path="${complete%% *}" 19251 tmp="$complete EOL" 19252 arguments="${tmp#* }" 19253 19254 # Input might be given as Windows format, start by converting to 19255 # unix format. 19256 new_path="$path" 19257 19258 windows_path="$new_path" 19259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19260 unix_path=`$CYGPATH -u "$windows_path"` 19261 new_path="$unix_path" 19262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19264 new_path="$unix_path" 19265 fi 19266 19267 19268 # Now try to locate executable using which 19269 new_path=`$WHICH "$new_path" 2> /dev/null` 19270 19271 if test "x$new_path" = x; then 19272 # Oops. Which didn't find the executable. 19273 # The splitting of arguments from the executable at a space might have been incorrect, 19274 # since paths with space are more likely in Windows. Give it another try with the whole 19275 # argument. 19276 path="$complete" 19277 arguments="EOL" 19278 new_path="$path" 19279 19280 windows_path="$new_path" 19281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19282 unix_path=`$CYGPATH -u "$windows_path"` 19283 new_path="$unix_path" 19284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19286 new_path="$unix_path" 19287 fi 19288 19289 19290 new_path=`$WHICH "$new_path" 2> /dev/null` 19291 # bat and cmd files are not always considered executable in MSYS causing which 19292 # to not find them 19293 if test "x$new_path" = x \ 19294 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19295 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19296 new_path="$path" 19297 19298 windows_path="$new_path" 19299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19300 unix_path=`$CYGPATH -u "$windows_path"` 19301 new_path="$unix_path" 19302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19304 new_path="$unix_path" 19305 fi 19306 19307 fi 19308 19309 if test "x$new_path" = x; then 19310 # It's still not found. Now this is an unrecoverable error. 19311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19312 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19313 has_space=`$ECHO "$complete" | $GREP " "` 19314 if test "x$has_space" != x; then 19315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19317 fi 19318 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19319 fi 19320 fi 19321 19322 # Now new_path has a complete unix path to the binary 19323 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19324 # Keep paths in /bin as-is, but remove trailing .exe if any 19325 new_path="${new_path/%.exe/}" 19326 # Do not save /bin paths to all_fixpath_prefixes! 19327 else 19328 # Not in mixed or Windows style, start by that. 19329 new_path=`cmd //c echo $new_path` 19330 19331 input_path="$new_path" 19332 # Check if we need to convert this using DOS-style short mode. If the path 19333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19334 # take no chances and rewrite it. 19335 # Note: m4 eats our [], so we need to use [ and ] instead. 19336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19337 if test "x$has_forbidden_chars" != x; then 19338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19339 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19340 fi 19341 19342 # Output is in $new_path 19343 19344 windows_path="$new_path" 19345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19346 unix_path=`$CYGPATH -u "$windows_path"` 19347 new_path="$unix_path" 19348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19350 new_path="$unix_path" 19351 fi 19352 19353 # remove trailing .exe if any 19354 new_path="${new_path/%.exe/}" 19355 19356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19358 fi 19359 19360 else 19361 # We're on a unix platform. Hooray! :) 19362 # First separate the path from the arguments. This will split at the first 19363 # space. 19364 complete="$FOUND_MAKE" 19365 path="${complete%% *}" 19366 tmp="$complete EOL" 19367 arguments="${tmp#* }" 19368 19369 # Cannot rely on the command "which" here since it doesn't always work. 19370 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19371 if test -z "$is_absolute_path"; then 19372 # Path to executable is not absolute. Find it. 19373 IFS_save="$IFS" 19374 IFS=: 19375 for p in $PATH; do 19376 if test -f "$p/$path" && test -x "$p/$path"; then 19377 new_path="$p/$path" 19378 break 19379 fi 19380 done 19381 IFS="$IFS_save" 19382 else 19383 # This is an absolute path, we can use it without further modifications. 19384 new_path="$path" 19385 fi 19386 19387 if test "x$new_path" = x; then 19388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19389 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19390 has_space=`$ECHO "$complete" | $GREP " "` 19391 if test "x$has_space" != x; then 19392 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19393 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19394 fi 19395 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19396 fi 19397 fi 19398 19399 # Now join together the path and the arguments once again 19400 if test "x$arguments" != xEOL; then 19401 new_complete="$new_path ${arguments% *}" 19402 else 19403 new_complete="$new_path" 19404 fi 19405 19406 if test "x$complete" != "x$new_complete"; then 19407 FOUND_MAKE="$new_complete" 19408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19409 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19410 fi 19411 fi 19412 19413 fi 19414 fi 19415 fi 19416 fi 19417 19418 fi 19419 PATH=$OLD_PATH 19420 fi 19421 fi 19422 19423 if test "x$FOUND_MAKE" = x; then 19424 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 19425 fi 19426 19427 else 19428 # The variable is set, but is it from the command line or the environment? 19429 19430 # Try to remove the string !MAKE! from our list. 19431 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19432 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19433 # If it failed, the variable was not from the command line. Ignore it, 19434 # but warn the user (except for BASH, which is always set by the calling BASH). 19435 if test "xMAKE" != xBASH; then 19436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19437 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19438 fi 19439 # Try to locate tool using the code snippet 19440 19441 # Try our hardest to locate a correct version of GNU make 19442 for ac_prog in gmake 19443 do 19444 # Extract the first word of "$ac_prog", so it can be a program name with args. 19445 set dummy $ac_prog; ac_word=$2 19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19447 $as_echo_n "checking for $ac_word... " >&6; } 19448 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19449 $as_echo_n "(cached) " >&6 19450 else 19451 case $CHECK_GMAKE in 19452 [\\/]* | ?:[\\/]*) 19453 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19454 ;; 19455 *) 19456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19457 for as_dir in $PATH 19458 do 19459 IFS=$as_save_IFS 19460 test -z "$as_dir" && as_dir=. 19461 for ac_exec_ext in '' $ac_executable_extensions; do 19462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19463 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19465 break 2 19466 fi 19467 done 19468 done 19469 IFS=$as_save_IFS 19470 19471 ;; 19472 esac 19473 fi 19474 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19475 if test -n "$CHECK_GMAKE"; then 19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19477 $as_echo "$CHECK_GMAKE" >&6; } 19478 else 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19480 $as_echo "no" >&6; } 19481 fi 19482 19483 19484 test -n "$CHECK_GMAKE" && break 19485 done 19486 19487 19488 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19489 DESCRIPTION="gmake in PATH" 19490 19491 # On Cygwin, we require a newer version of make than on other platforms 19492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19493 MAKE_VERSION_EXPR="-e 4\." 19494 MAKE_REQUIRED_VERSION="4.0" 19495 else 19496 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19497 MAKE_REQUIRED_VERSION="3.81" 19498 fi 19499 19500 if test "x$MAKE_CANDIDATE" != x; then 19501 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19502 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19503 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19504 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19505 if test "x$IS_GNU_MAKE" = x; then 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19507 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19508 else 19509 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19510 if test "x$IS_MODERN_MAKE" = x; then 19511 { $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 19512 $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;} 19513 else 19514 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19516 MAKE_EXPECTED_ENV='cygwin' 19517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19518 MAKE_EXPECTED_ENV='msys' 19519 else 19520 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19521 fi 19522 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19523 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19524 else 19525 # Not relevant for non-Windows 19526 IS_MAKE_CORRECT_ENV=true 19527 fi 19528 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19529 { $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 19530 $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;} 19531 else 19532 FOUND_MAKE=$MAKE_CANDIDATE 19533 19534 # Only process if variable expands to non-empty 19535 19536 if test "x$FOUND_MAKE" != x; then 19537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19538 19539 # First separate the path from the arguments. This will split at the first 19540 # space. 19541 complete="$FOUND_MAKE" 19542 path="${complete%% *}" 19543 tmp="$complete EOL" 19544 arguments="${tmp#* }" 19545 19546 # Input might be given as Windows format, start by converting to 19547 # unix format. 19548 new_path=`$CYGPATH -u "$path"` 19549 19550 # Now try to locate executable using which 19551 new_path=`$WHICH "$new_path" 2> /dev/null` 19552 # bat and cmd files are not always considered executable in cygwin causing which 19553 # to not find them 19554 if test "x$new_path" = x \ 19555 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19556 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19557 new_path=`$CYGPATH -u "$path"` 19558 fi 19559 if test "x$new_path" = x; then 19560 # Oops. Which didn't find the executable. 19561 # The splitting of arguments from the executable at a space might have been incorrect, 19562 # since paths with space are more likely in Windows. Give it another try with the whole 19563 # argument. 19564 path="$complete" 19565 arguments="EOL" 19566 new_path=`$CYGPATH -u "$path"` 19567 new_path=`$WHICH "$new_path" 2> /dev/null` 19568 # bat and cmd files are not always considered executable in cygwin causing which 19569 # to not find them 19570 if test "x$new_path" = x \ 19571 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19572 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19573 new_path=`$CYGPATH -u "$path"` 19574 fi 19575 if test "x$new_path" = x; then 19576 # It's still not found. Now this is an unrecoverable error. 19577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19578 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19579 has_space=`$ECHO "$complete" | $GREP " "` 19580 if test "x$has_space" != x; then 19581 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19582 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19583 fi 19584 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19585 fi 19586 fi 19587 19588 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19589 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19590 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19591 # "foo.exe" is OK but "foo" is an error. 19592 # 19593 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19594 # It is also a way to make sure we got the proper file name for the real test later on. 19595 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19596 if test "x$test_shortpath" = x; then 19597 # Short path failed, file does not exist as specified. 19598 # Try adding .exe or .cmd 19599 if test -f "${new_path}.exe"; then 19600 input_to_shortpath="${new_path}.exe" 19601 elif test -f "${new_path}.cmd"; then 19602 input_to_shortpath="${new_path}.cmd" 19603 else 19604 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19605 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19606 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19607 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19608 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19609 fi 19610 else 19611 input_to_shortpath="$new_path" 19612 fi 19613 19614 # Call helper function which possibly converts this using DOS-style short mode. 19615 # If so, the updated path is stored in $new_path. 19616 new_path="$input_to_shortpath" 19617 19618 input_path="$input_to_shortpath" 19619 # Check if we need to convert this using DOS-style short mode. If the path 19620 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19621 # take no chances and rewrite it. 19622 # Note: m4 eats our [], so we need to use [ and ] instead. 19623 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19624 if test "x$has_forbidden_chars" != x; then 19625 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19626 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19627 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19628 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19629 # Going to short mode and back again did indeed matter. Since short mode is 19630 # case insensitive, let's make it lowercase to improve readability. 19631 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19632 # Now convert it back to Unix-style (cygpath) 19633 input_path=`$CYGPATH -u "$shortmode_path"` 19634 new_path="$input_path" 19635 fi 19636 fi 19637 19638 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19639 if test "x$test_cygdrive_prefix" = x; then 19640 # As a simple fix, exclude /usr/bin since it's not a real path. 19641 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19642 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19643 # a path prefixed by /cygdrive for fixpath to work. 19644 new_path="$CYGWIN_ROOT_PATH$input_path" 19645 fi 19646 fi 19647 19648 # remove trailing .exe if any 19649 new_path="${new_path/%.exe/}" 19650 19651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19652 19653 # First separate the path from the arguments. This will split at the first 19654 # space. 19655 complete="$FOUND_MAKE" 19656 path="${complete%% *}" 19657 tmp="$complete EOL" 19658 arguments="${tmp#* }" 19659 19660 # Input might be given as Windows format, start by converting to 19661 # unix format. 19662 new_path="$path" 19663 19664 windows_path="$new_path" 19665 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19666 unix_path=`$CYGPATH -u "$windows_path"` 19667 new_path="$unix_path" 19668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19669 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19670 new_path="$unix_path" 19671 fi 19672 19673 19674 # Now try to locate executable using which 19675 new_path=`$WHICH "$new_path" 2> /dev/null` 19676 19677 if test "x$new_path" = x; then 19678 # Oops. Which didn't find the executable. 19679 # The splitting of arguments from the executable at a space might have been incorrect, 19680 # since paths with space are more likely in Windows. Give it another try with the whole 19681 # argument. 19682 path="$complete" 19683 arguments="EOL" 19684 new_path="$path" 19685 19686 windows_path="$new_path" 19687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19688 unix_path=`$CYGPATH -u "$windows_path"` 19689 new_path="$unix_path" 19690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19692 new_path="$unix_path" 19693 fi 19694 19695 19696 new_path=`$WHICH "$new_path" 2> /dev/null` 19697 # bat and cmd files are not always considered executable in MSYS causing which 19698 # to not find them 19699 if test "x$new_path" = x \ 19700 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19701 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19702 new_path="$path" 19703 19704 windows_path="$new_path" 19705 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19706 unix_path=`$CYGPATH -u "$windows_path"` 19707 new_path="$unix_path" 19708 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19709 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19710 new_path="$unix_path" 19711 fi 19712 19713 fi 19714 19715 if test "x$new_path" = x; then 19716 # It's still not found. Now this is an unrecoverable error. 19717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19718 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19719 has_space=`$ECHO "$complete" | $GREP " "` 19720 if test "x$has_space" != x; then 19721 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19722 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19723 fi 19724 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19725 fi 19726 fi 19727 19728 # Now new_path has a complete unix path to the binary 19729 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19730 # Keep paths in /bin as-is, but remove trailing .exe if any 19731 new_path="${new_path/%.exe/}" 19732 # Do not save /bin paths to all_fixpath_prefixes! 19733 else 19734 # Not in mixed or Windows style, start by that. 19735 new_path=`cmd //c echo $new_path` 19736 19737 input_path="$new_path" 19738 # Check if we need to convert this using DOS-style short mode. If the path 19739 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19740 # take no chances and rewrite it. 19741 # Note: m4 eats our [], so we need to use [ and ] instead. 19742 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19743 if test "x$has_forbidden_chars" != x; then 19744 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19745 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19746 fi 19747 19748 # Output is in $new_path 19749 19750 windows_path="$new_path" 19751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19752 unix_path=`$CYGPATH -u "$windows_path"` 19753 new_path="$unix_path" 19754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19756 new_path="$unix_path" 19757 fi 19758 19759 # remove trailing .exe if any 19760 new_path="${new_path/%.exe/}" 19761 19762 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19763 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19764 fi 19765 19766 else 19767 # We're on a unix platform. Hooray! :) 19768 # First separate the path from the arguments. This will split at the first 19769 # space. 19770 complete="$FOUND_MAKE" 19771 path="${complete%% *}" 19772 tmp="$complete EOL" 19773 arguments="${tmp#* }" 19774 19775 # Cannot rely on the command "which" here since it doesn't always work. 19776 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19777 if test -z "$is_absolute_path"; then 19778 # Path to executable is not absolute. Find it. 19779 IFS_save="$IFS" 19780 IFS=: 19781 for p in $PATH; do 19782 if test -f "$p/$path" && test -x "$p/$path"; then 19783 new_path="$p/$path" 19784 break 19785 fi 19786 done 19787 IFS="$IFS_save" 19788 else 19789 # This is an absolute path, we can use it without further modifications. 19790 new_path="$path" 19791 fi 19792 19793 if test "x$new_path" = x; then 19794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19795 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19796 has_space=`$ECHO "$complete" | $GREP " "` 19797 if test "x$has_space" != x; then 19798 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19799 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19800 fi 19801 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19802 fi 19803 fi 19804 19805 # Now join together the path and the arguments once again 19806 if test "x$arguments" != xEOL; then 19807 new_complete="$new_path ${arguments% *}" 19808 else 19809 new_complete="$new_path" 19810 fi 19811 19812 if test "x$complete" != "x$new_complete"; then 19813 FOUND_MAKE="$new_complete" 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19815 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19816 fi 19817 fi 19818 19819 fi 19820 fi 19821 fi 19822 fi 19823 19824 19825 if test "x$FOUND_MAKE" = x; then 19826 for ac_prog in make 19827 do 19828 # Extract the first word of "$ac_prog", so it can be a program name with args. 19829 set dummy $ac_prog; ac_word=$2 19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19831 $as_echo_n "checking for $ac_word... " >&6; } 19832 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19833 $as_echo_n "(cached) " >&6 19834 else 19835 case $CHECK_MAKE in 19836 [\\/]* | ?:[\\/]*) 19837 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19838 ;; 19839 *) 19840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19841 for as_dir in $PATH 19842 do 19843 IFS=$as_save_IFS 19844 test -z "$as_dir" && as_dir=. 19845 for ac_exec_ext in '' $ac_executable_extensions; do 19846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19847 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19849 break 2 19850 fi 19851 done 19852 done 19853 IFS=$as_save_IFS 19854 19855 ;; 19856 esac 19857 fi 19858 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19859 if test -n "$CHECK_MAKE"; then 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19861 $as_echo "$CHECK_MAKE" >&6; } 19862 else 19863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19864 $as_echo "no" >&6; } 19865 fi 19866 19867 19868 test -n "$CHECK_MAKE" && break 19869 done 19870 19871 19872 MAKE_CANDIDATE=""$CHECK_MAKE"" 19873 DESCRIPTION="make in PATH" 19874 19875 # On Cygwin, we require a newer version of make than on other platforms 19876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19877 MAKE_VERSION_EXPR="-e 4\." 19878 MAKE_REQUIRED_VERSION="4.0" 19879 else 19880 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19881 MAKE_REQUIRED_VERSION="3.81" 19882 fi 19883 19884 if test "x$MAKE_CANDIDATE" != x; then 19885 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19886 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19887 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19888 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19889 if test "x$IS_GNU_MAKE" = x; then 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19891 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19892 else 19893 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19894 if test "x$IS_MODERN_MAKE" = x; then 19895 { $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 19896 $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;} 19897 else 19898 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19899 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19900 MAKE_EXPECTED_ENV='cygwin' 19901 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19902 MAKE_EXPECTED_ENV='msys' 19903 else 19904 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19905 fi 19906 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19907 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19908 else 19909 # Not relevant for non-Windows 19910 IS_MAKE_CORRECT_ENV=true 19911 fi 19912 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19913 { $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 19914 $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;} 19915 else 19916 FOUND_MAKE=$MAKE_CANDIDATE 19917 19918 # Only process if variable expands to non-empty 19919 19920 if test "x$FOUND_MAKE" != x; then 19921 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19922 19923 # First separate the path from the arguments. This will split at the first 19924 # space. 19925 complete="$FOUND_MAKE" 19926 path="${complete%% *}" 19927 tmp="$complete EOL" 19928 arguments="${tmp#* }" 19929 19930 # Input might be given as Windows format, start by converting to 19931 # unix format. 19932 new_path=`$CYGPATH -u "$path"` 19933 19934 # Now try to locate executable using which 19935 new_path=`$WHICH "$new_path" 2> /dev/null` 19936 # bat and cmd files are not always considered executable in cygwin causing which 19937 # to not find them 19938 if test "x$new_path" = x \ 19939 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19940 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19941 new_path=`$CYGPATH -u "$path"` 19942 fi 19943 if test "x$new_path" = x; then 19944 # Oops. Which didn't find the executable. 19945 # The splitting of arguments from the executable at a space might have been incorrect, 19946 # since paths with space are more likely in Windows. Give it another try with the whole 19947 # argument. 19948 path="$complete" 19949 arguments="EOL" 19950 new_path=`$CYGPATH -u "$path"` 19951 new_path=`$WHICH "$new_path" 2> /dev/null` 19952 # bat and cmd files are not always considered executable in cygwin causing which 19953 # to not find them 19954 if test "x$new_path" = x \ 19955 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19956 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19957 new_path=`$CYGPATH -u "$path"` 19958 fi 19959 if test "x$new_path" = x; then 19960 # It's still not found. Now this is an unrecoverable error. 19961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19962 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19963 has_space=`$ECHO "$complete" | $GREP " "` 19964 if test "x$has_space" != x; then 19965 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19966 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19967 fi 19968 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19969 fi 19970 fi 19971 19972 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19973 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19974 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19975 # "foo.exe" is OK but "foo" is an error. 19976 # 19977 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19978 # It is also a way to make sure we got the proper file name for the real test later on. 19979 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19980 if test "x$test_shortpath" = x; then 19981 # Short path failed, file does not exist as specified. 19982 # Try adding .exe or .cmd 19983 if test -f "${new_path}.exe"; then 19984 input_to_shortpath="${new_path}.exe" 19985 elif test -f "${new_path}.cmd"; then 19986 input_to_shortpath="${new_path}.cmd" 19987 else 19988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19989 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19990 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19991 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19992 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19993 fi 19994 else 19995 input_to_shortpath="$new_path" 19996 fi 19997 19998 # Call helper function which possibly converts this using DOS-style short mode. 19999 # If so, the updated path is stored in $new_path. 20000 new_path="$input_to_shortpath" 20001 20002 input_path="$input_to_shortpath" 20003 # Check if we need to convert this using DOS-style short mode. If the path 20004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20005 # take no chances and rewrite it. 20006 # Note: m4 eats our [], so we need to use [ and ] instead. 20007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20008 if test "x$has_forbidden_chars" != x; then 20009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20010 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20011 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20012 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20013 # Going to short mode and back again did indeed matter. Since short mode is 20014 # case insensitive, let's make it lowercase to improve readability. 20015 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20016 # Now convert it back to Unix-style (cygpath) 20017 input_path=`$CYGPATH -u "$shortmode_path"` 20018 new_path="$input_path" 20019 fi 20020 fi 20021 20022 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20023 if test "x$test_cygdrive_prefix" = x; then 20024 # As a simple fix, exclude /usr/bin since it's not a real path. 20025 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20026 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20027 # a path prefixed by /cygdrive for fixpath to work. 20028 new_path="$CYGWIN_ROOT_PATH$input_path" 20029 fi 20030 fi 20031 20032 # remove trailing .exe if any 20033 new_path="${new_path/%.exe/}" 20034 20035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20036 20037 # First separate the path from the arguments. This will split at the first 20038 # space. 20039 complete="$FOUND_MAKE" 20040 path="${complete%% *}" 20041 tmp="$complete EOL" 20042 arguments="${tmp#* }" 20043 20044 # Input might be given as Windows format, start by converting to 20045 # unix format. 20046 new_path="$path" 20047 20048 windows_path="$new_path" 20049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20050 unix_path=`$CYGPATH -u "$windows_path"` 20051 new_path="$unix_path" 20052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20054 new_path="$unix_path" 20055 fi 20056 20057 20058 # Now try to locate executable using which 20059 new_path=`$WHICH "$new_path" 2> /dev/null` 20060 20061 if test "x$new_path" = x; then 20062 # Oops. Which didn't find the executable. 20063 # The splitting of arguments from the executable at a space might have been incorrect, 20064 # since paths with space are more likely in Windows. Give it another try with the whole 20065 # argument. 20066 path="$complete" 20067 arguments="EOL" 20068 new_path="$path" 20069 20070 windows_path="$new_path" 20071 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20072 unix_path=`$CYGPATH -u "$windows_path"` 20073 new_path="$unix_path" 20074 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20075 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20076 new_path="$unix_path" 20077 fi 20078 20079 20080 new_path=`$WHICH "$new_path" 2> /dev/null` 20081 # bat and cmd files are not always considered executable in MSYS causing which 20082 # to not find them 20083 if test "x$new_path" = x \ 20084 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20085 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20086 new_path="$path" 20087 20088 windows_path="$new_path" 20089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20090 unix_path=`$CYGPATH -u "$windows_path"` 20091 new_path="$unix_path" 20092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20094 new_path="$unix_path" 20095 fi 20096 20097 fi 20098 20099 if test "x$new_path" = x; then 20100 # It's still not found. Now this is an unrecoverable error. 20101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20102 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20103 has_space=`$ECHO "$complete" | $GREP " "` 20104 if test "x$has_space" != x; then 20105 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20106 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20107 fi 20108 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20109 fi 20110 fi 20111 20112 # Now new_path has a complete unix path to the binary 20113 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20114 # Keep paths in /bin as-is, but remove trailing .exe if any 20115 new_path="${new_path/%.exe/}" 20116 # Do not save /bin paths to all_fixpath_prefixes! 20117 else 20118 # Not in mixed or Windows style, start by that. 20119 new_path=`cmd //c echo $new_path` 20120 20121 input_path="$new_path" 20122 # Check if we need to convert this using DOS-style short mode. If the path 20123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20124 # take no chances and rewrite it. 20125 # Note: m4 eats our [], so we need to use [ and ] instead. 20126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20127 if test "x$has_forbidden_chars" != x; then 20128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20129 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20130 fi 20131 20132 # Output is in $new_path 20133 20134 windows_path="$new_path" 20135 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20136 unix_path=`$CYGPATH -u "$windows_path"` 20137 new_path="$unix_path" 20138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20139 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20140 new_path="$unix_path" 20141 fi 20142 20143 # remove trailing .exe if any 20144 new_path="${new_path/%.exe/}" 20145 20146 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20147 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20148 fi 20149 20150 else 20151 # We're on a unix platform. Hooray! :) 20152 # First separate the path from the arguments. This will split at the first 20153 # space. 20154 complete="$FOUND_MAKE" 20155 path="${complete%% *}" 20156 tmp="$complete EOL" 20157 arguments="${tmp#* }" 20158 20159 # Cannot rely on the command "which" here since it doesn't always work. 20160 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20161 if test -z "$is_absolute_path"; then 20162 # Path to executable is not absolute. Find it. 20163 IFS_save="$IFS" 20164 IFS=: 20165 for p in $PATH; do 20166 if test -f "$p/$path" && test -x "$p/$path"; then 20167 new_path="$p/$path" 20168 break 20169 fi 20170 done 20171 IFS="$IFS_save" 20172 else 20173 # This is an absolute path, we can use it without further modifications. 20174 new_path="$path" 20175 fi 20176 20177 if test "x$new_path" = x; then 20178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20179 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20180 has_space=`$ECHO "$complete" | $GREP " "` 20181 if test "x$has_space" != x; then 20182 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20183 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20184 fi 20185 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20186 fi 20187 fi 20188 20189 # Now join together the path and the arguments once again 20190 if test "x$arguments" != xEOL; then 20191 new_complete="$new_path ${arguments% *}" 20192 else 20193 new_complete="$new_path" 20194 fi 20195 20196 if test "x$complete" != "x$new_complete"; then 20197 FOUND_MAKE="$new_complete" 20198 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20199 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20200 fi 20201 fi 20202 20203 fi 20204 fi 20205 fi 20206 fi 20207 20208 fi 20209 20210 if test "x$FOUND_MAKE" = x; then 20211 if test "x$TOOLCHAIN_PATH" != x; then 20212 # We have a toolchain path, check that as well before giving up. 20213 OLD_PATH=$PATH 20214 PATH=$TOOLCHAIN_PATH:$PATH 20215 for ac_prog in gmake 20216 do 20217 # Extract the first word of "$ac_prog", so it can be a program name with args. 20218 set dummy $ac_prog; ac_word=$2 20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20220 $as_echo_n "checking for $ac_word... " >&6; } 20221 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20222 $as_echo_n "(cached) " >&6 20223 else 20224 case $CHECK_TOOLSDIR_GMAKE in 20225 [\\/]* | ?:[\\/]*) 20226 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20227 ;; 20228 *) 20229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20230 for as_dir in $PATH 20231 do 20232 IFS=$as_save_IFS 20233 test -z "$as_dir" && as_dir=. 20234 for ac_exec_ext in '' $ac_executable_extensions; do 20235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20236 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20238 break 2 20239 fi 20240 done 20241 done 20242 IFS=$as_save_IFS 20243 20244 ;; 20245 esac 20246 fi 20247 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20248 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20250 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20251 else 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20253 $as_echo "no" >&6; } 20254 fi 20255 20256 20257 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20258 done 20259 20260 20261 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20262 DESCRIPTION="gmake in tools-dir" 20263 20264 # On Cygwin, we require a newer version of make than on other platforms 20265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20266 MAKE_VERSION_EXPR="-e 4\." 20267 MAKE_REQUIRED_VERSION="4.0" 20268 else 20269 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20270 MAKE_REQUIRED_VERSION="3.81" 20271 fi 20272 20273 if test "x$MAKE_CANDIDATE" != x; then 20274 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20275 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20276 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20277 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20278 if test "x$IS_GNU_MAKE" = x; then 20279 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20280 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20281 else 20282 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20283 if test "x$IS_MODERN_MAKE" = x; then 20284 { $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 20285 $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;} 20286 else 20287 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20289 MAKE_EXPECTED_ENV='cygwin' 20290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20291 MAKE_EXPECTED_ENV='msys' 20292 else 20293 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20294 fi 20295 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20296 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20297 else 20298 # Not relevant for non-Windows 20299 IS_MAKE_CORRECT_ENV=true 20300 fi 20301 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20302 { $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 20303 $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;} 20304 else 20305 FOUND_MAKE=$MAKE_CANDIDATE 20306 20307 # Only process if variable expands to non-empty 20308 20309 if test "x$FOUND_MAKE" != x; then 20310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20311 20312 # First separate the path from the arguments. This will split at the first 20313 # space. 20314 complete="$FOUND_MAKE" 20315 path="${complete%% *}" 20316 tmp="$complete EOL" 20317 arguments="${tmp#* }" 20318 20319 # Input might be given as Windows format, start by converting to 20320 # unix format. 20321 new_path=`$CYGPATH -u "$path"` 20322 20323 # Now try to locate executable using which 20324 new_path=`$WHICH "$new_path" 2> /dev/null` 20325 # bat and cmd files are not always considered executable in cygwin causing which 20326 # to not find them 20327 if test "x$new_path" = x \ 20328 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20329 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20330 new_path=`$CYGPATH -u "$path"` 20331 fi 20332 if test "x$new_path" = x; then 20333 # Oops. Which didn't find the executable. 20334 # The splitting of arguments from the executable at a space might have been incorrect, 20335 # since paths with space are more likely in Windows. Give it another try with the whole 20336 # argument. 20337 path="$complete" 20338 arguments="EOL" 20339 new_path=`$CYGPATH -u "$path"` 20340 new_path=`$WHICH "$new_path" 2> /dev/null` 20341 # bat and cmd files are not always considered executable in cygwin causing which 20342 # to not find them 20343 if test "x$new_path" = x \ 20344 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20345 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20346 new_path=`$CYGPATH -u "$path"` 20347 fi 20348 if test "x$new_path" = x; then 20349 # It's still not found. Now this is an unrecoverable error. 20350 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20351 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20352 has_space=`$ECHO "$complete" | $GREP " "` 20353 if test "x$has_space" != x; then 20354 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20355 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20356 fi 20357 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20358 fi 20359 fi 20360 20361 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20362 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20363 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20364 # "foo.exe" is OK but "foo" is an error. 20365 # 20366 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20367 # It is also a way to make sure we got the proper file name for the real test later on. 20368 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20369 if test "x$test_shortpath" = x; then 20370 # Short path failed, file does not exist as specified. 20371 # Try adding .exe or .cmd 20372 if test -f "${new_path}.exe"; then 20373 input_to_shortpath="${new_path}.exe" 20374 elif test -f "${new_path}.cmd"; then 20375 input_to_shortpath="${new_path}.cmd" 20376 else 20377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20380 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20381 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20382 fi 20383 else 20384 input_to_shortpath="$new_path" 20385 fi 20386 20387 # Call helper function which possibly converts this using DOS-style short mode. 20388 # If so, the updated path is stored in $new_path. 20389 new_path="$input_to_shortpath" 20390 20391 input_path="$input_to_shortpath" 20392 # Check if we need to convert this using DOS-style short mode. If the path 20393 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20394 # take no chances and rewrite it. 20395 # Note: m4 eats our [], so we need to use [ and ] instead. 20396 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20397 if test "x$has_forbidden_chars" != x; then 20398 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20399 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20400 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20401 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20402 # Going to short mode and back again did indeed matter. Since short mode is 20403 # case insensitive, let's make it lowercase to improve readability. 20404 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20405 # Now convert it back to Unix-style (cygpath) 20406 input_path=`$CYGPATH -u "$shortmode_path"` 20407 new_path="$input_path" 20408 fi 20409 fi 20410 20411 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20412 if test "x$test_cygdrive_prefix" = x; then 20413 # As a simple fix, exclude /usr/bin since it's not a real path. 20414 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20415 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20416 # a path prefixed by /cygdrive for fixpath to work. 20417 new_path="$CYGWIN_ROOT_PATH$input_path" 20418 fi 20419 fi 20420 20421 # remove trailing .exe if any 20422 new_path="${new_path/%.exe/}" 20423 20424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20425 20426 # First separate the path from the arguments. This will split at the first 20427 # space. 20428 complete="$FOUND_MAKE" 20429 path="${complete%% *}" 20430 tmp="$complete EOL" 20431 arguments="${tmp#* }" 20432 20433 # Input might be given as Windows format, start by converting to 20434 # unix format. 20435 new_path="$path" 20436 20437 windows_path="$new_path" 20438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20439 unix_path=`$CYGPATH -u "$windows_path"` 20440 new_path="$unix_path" 20441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20442 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20443 new_path="$unix_path" 20444 fi 20445 20446 20447 # Now try to locate executable using which 20448 new_path=`$WHICH "$new_path" 2> /dev/null` 20449 20450 if test "x$new_path" = x; then 20451 # Oops. Which didn't find the executable. 20452 # The splitting of arguments from the executable at a space might have been incorrect, 20453 # since paths with space are more likely in Windows. Give it another try with the whole 20454 # argument. 20455 path="$complete" 20456 arguments="EOL" 20457 new_path="$path" 20458 20459 windows_path="$new_path" 20460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20461 unix_path=`$CYGPATH -u "$windows_path"` 20462 new_path="$unix_path" 20463 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20464 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20465 new_path="$unix_path" 20466 fi 20467 20468 20469 new_path=`$WHICH "$new_path" 2> /dev/null` 20470 # bat and cmd files are not always considered executable in MSYS causing which 20471 # to not find them 20472 if test "x$new_path" = x \ 20473 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20474 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20475 new_path="$path" 20476 20477 windows_path="$new_path" 20478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20479 unix_path=`$CYGPATH -u "$windows_path"` 20480 new_path="$unix_path" 20481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20483 new_path="$unix_path" 20484 fi 20485 20486 fi 20487 20488 if test "x$new_path" = x; then 20489 # It's still not found. Now this is an unrecoverable error. 20490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20491 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20492 has_space=`$ECHO "$complete" | $GREP " "` 20493 if test "x$has_space" != x; then 20494 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20495 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20496 fi 20497 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20498 fi 20499 fi 20500 20501 # Now new_path has a complete unix path to the binary 20502 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20503 # Keep paths in /bin as-is, but remove trailing .exe if any 20504 new_path="${new_path/%.exe/}" 20505 # Do not save /bin paths to all_fixpath_prefixes! 20506 else 20507 # Not in mixed or Windows style, start by that. 20508 new_path=`cmd //c echo $new_path` 20509 20510 input_path="$new_path" 20511 # Check if we need to convert this using DOS-style short mode. If the path 20512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20513 # take no chances and rewrite it. 20514 # Note: m4 eats our [], so we need to use [ and ] instead. 20515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20516 if test "x$has_forbidden_chars" != x; then 20517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20518 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20519 fi 20520 20521 # Output is in $new_path 20522 20523 windows_path="$new_path" 20524 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20525 unix_path=`$CYGPATH -u "$windows_path"` 20526 new_path="$unix_path" 20527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20528 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20529 new_path="$unix_path" 20530 fi 20531 20532 # remove trailing .exe if any 20533 new_path="${new_path/%.exe/}" 20534 20535 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20536 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20537 fi 20538 20539 else 20540 # We're on a unix platform. Hooray! :) 20541 # First separate the path from the arguments. This will split at the first 20542 # space. 20543 complete="$FOUND_MAKE" 20544 path="${complete%% *}" 20545 tmp="$complete EOL" 20546 arguments="${tmp#* }" 20547 20548 # Cannot rely on the command "which" here since it doesn't always work. 20549 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20550 if test -z "$is_absolute_path"; then 20551 # Path to executable is not absolute. Find it. 20552 IFS_save="$IFS" 20553 IFS=: 20554 for p in $PATH; do 20555 if test -f "$p/$path" && test -x "$p/$path"; then 20556 new_path="$p/$path" 20557 break 20558 fi 20559 done 20560 IFS="$IFS_save" 20561 else 20562 # This is an absolute path, we can use it without further modifications. 20563 new_path="$path" 20564 fi 20565 20566 if test "x$new_path" = x; then 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20568 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20569 has_space=`$ECHO "$complete" | $GREP " "` 20570 if test "x$has_space" != x; then 20571 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20572 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20573 fi 20574 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20575 fi 20576 fi 20577 20578 # Now join together the path and the arguments once again 20579 if test "x$arguments" != xEOL; then 20580 new_complete="$new_path ${arguments% *}" 20581 else 20582 new_complete="$new_path" 20583 fi 20584 20585 if test "x$complete" != "x$new_complete"; then 20586 FOUND_MAKE="$new_complete" 20587 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20588 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20589 fi 20590 fi 20591 20592 fi 20593 fi 20594 fi 20595 fi 20596 20597 if test "x$FOUND_MAKE" = x; then 20598 for ac_prog in make 20599 do 20600 # Extract the first word of "$ac_prog", so it can be a program name with args. 20601 set dummy $ac_prog; ac_word=$2 20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20603 $as_echo_n "checking for $ac_word... " >&6; } 20604 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20605 $as_echo_n "(cached) " >&6 20606 else 20607 case $CHECK_TOOLSDIR_MAKE in 20608 [\\/]* | ?:[\\/]*) 20609 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20610 ;; 20611 *) 20612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20613 for as_dir in $PATH 20614 do 20615 IFS=$as_save_IFS 20616 test -z "$as_dir" && as_dir=. 20617 for ac_exec_ext in '' $ac_executable_extensions; do 20618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20619 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20621 break 2 20622 fi 20623 done 20624 done 20625 IFS=$as_save_IFS 20626 20627 ;; 20628 esac 20629 fi 20630 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20631 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20633 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20634 else 20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20636 $as_echo "no" >&6; } 20637 fi 20638 20639 20640 test -n "$CHECK_TOOLSDIR_MAKE" && break 20641 done 20642 20643 20644 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20645 DESCRIPTION="make in tools-dir" 20646 20647 # On Cygwin, we require a newer version of make than on other platforms 20648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20649 MAKE_VERSION_EXPR="-e 4\." 20650 MAKE_REQUIRED_VERSION="4.0" 20651 else 20652 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20653 MAKE_REQUIRED_VERSION="3.81" 20654 fi 20655 20656 if test "x$MAKE_CANDIDATE" != x; then 20657 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20658 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20659 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20660 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20661 if test "x$IS_GNU_MAKE" = x; then 20662 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20663 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20664 else 20665 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20666 if test "x$IS_MODERN_MAKE" = x; then 20667 { $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 20668 $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;} 20669 else 20670 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20672 MAKE_EXPECTED_ENV='cygwin' 20673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20674 MAKE_EXPECTED_ENV='msys' 20675 else 20676 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20677 fi 20678 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20679 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20680 else 20681 # Not relevant for non-Windows 20682 IS_MAKE_CORRECT_ENV=true 20683 fi 20684 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20685 { $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 20686 $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;} 20687 else 20688 FOUND_MAKE=$MAKE_CANDIDATE 20689 20690 # Only process if variable expands to non-empty 20691 20692 if test "x$FOUND_MAKE" != x; then 20693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20694 20695 # First separate the path from the arguments. This will split at the first 20696 # space. 20697 complete="$FOUND_MAKE" 20698 path="${complete%% *}" 20699 tmp="$complete EOL" 20700 arguments="${tmp#* }" 20701 20702 # Input might be given as Windows format, start by converting to 20703 # unix format. 20704 new_path=`$CYGPATH -u "$path"` 20705 20706 # Now try to locate executable using which 20707 new_path=`$WHICH "$new_path" 2> /dev/null` 20708 # bat and cmd files are not always considered executable in cygwin causing which 20709 # to not find them 20710 if test "x$new_path" = x \ 20711 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20712 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20713 new_path=`$CYGPATH -u "$path"` 20714 fi 20715 if test "x$new_path" = x; then 20716 # Oops. Which didn't find the executable. 20717 # The splitting of arguments from the executable at a space might have been incorrect, 20718 # since paths with space are more likely in Windows. Give it another try with the whole 20719 # argument. 20720 path="$complete" 20721 arguments="EOL" 20722 new_path=`$CYGPATH -u "$path"` 20723 new_path=`$WHICH "$new_path" 2> /dev/null` 20724 # bat and cmd files are not always considered executable in cygwin causing which 20725 # to not find them 20726 if test "x$new_path" = x \ 20727 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20728 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20729 new_path=`$CYGPATH -u "$path"` 20730 fi 20731 if test "x$new_path" = x; then 20732 # It's still not found. Now this is an unrecoverable error. 20733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20734 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20735 has_space=`$ECHO "$complete" | $GREP " "` 20736 if test "x$has_space" != x; then 20737 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20738 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20739 fi 20740 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20741 fi 20742 fi 20743 20744 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20745 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20746 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20747 # "foo.exe" is OK but "foo" is an error. 20748 # 20749 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20750 # It is also a way to make sure we got the proper file name for the real test later on. 20751 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20752 if test "x$test_shortpath" = x; then 20753 # Short path failed, file does not exist as specified. 20754 # Try adding .exe or .cmd 20755 if test -f "${new_path}.exe"; then 20756 input_to_shortpath="${new_path}.exe" 20757 elif test -f "${new_path}.cmd"; then 20758 input_to_shortpath="${new_path}.cmd" 20759 else 20760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20761 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20762 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20763 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20764 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20765 fi 20766 else 20767 input_to_shortpath="$new_path" 20768 fi 20769 20770 # Call helper function which possibly converts this using DOS-style short mode. 20771 # If so, the updated path is stored in $new_path. 20772 new_path="$input_to_shortpath" 20773 20774 input_path="$input_to_shortpath" 20775 # Check if we need to convert this using DOS-style short mode. If the path 20776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20777 # take no chances and rewrite it. 20778 # Note: m4 eats our [], so we need to use [ and ] instead. 20779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20780 if test "x$has_forbidden_chars" != x; then 20781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20782 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20783 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20784 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20785 # Going to short mode and back again did indeed matter. Since short mode is 20786 # case insensitive, let's make it lowercase to improve readability. 20787 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20788 # Now convert it back to Unix-style (cygpath) 20789 input_path=`$CYGPATH -u "$shortmode_path"` 20790 new_path="$input_path" 20791 fi 20792 fi 20793 20794 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20795 if test "x$test_cygdrive_prefix" = x; then 20796 # As a simple fix, exclude /usr/bin since it's not a real path. 20797 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20798 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20799 # a path prefixed by /cygdrive for fixpath to work. 20800 new_path="$CYGWIN_ROOT_PATH$input_path" 20801 fi 20802 fi 20803 20804 # remove trailing .exe if any 20805 new_path="${new_path/%.exe/}" 20806 20807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20808 20809 # First separate the path from the arguments. This will split at the first 20810 # space. 20811 complete="$FOUND_MAKE" 20812 path="${complete%% *}" 20813 tmp="$complete EOL" 20814 arguments="${tmp#* }" 20815 20816 # Input might be given as Windows format, start by converting to 20817 # unix format. 20818 new_path="$path" 20819 20820 windows_path="$new_path" 20821 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20822 unix_path=`$CYGPATH -u "$windows_path"` 20823 new_path="$unix_path" 20824 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20825 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20826 new_path="$unix_path" 20827 fi 20828 20829 20830 # Now try to locate executable using which 20831 new_path=`$WHICH "$new_path" 2> /dev/null` 20832 20833 if test "x$new_path" = x; then 20834 # Oops. Which didn't find the executable. 20835 # The splitting of arguments from the executable at a space might have been incorrect, 20836 # since paths with space are more likely in Windows. Give it another try with the whole 20837 # argument. 20838 path="$complete" 20839 arguments="EOL" 20840 new_path="$path" 20841 20842 windows_path="$new_path" 20843 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20844 unix_path=`$CYGPATH -u "$windows_path"` 20845 new_path="$unix_path" 20846 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20847 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20848 new_path="$unix_path" 20849 fi 20850 20851 20852 new_path=`$WHICH "$new_path" 2> /dev/null` 20853 # bat and cmd files are not always considered executable in MSYS causing which 20854 # to not find them 20855 if test "x$new_path" = x \ 20856 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20857 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20858 new_path="$path" 20859 20860 windows_path="$new_path" 20861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20862 unix_path=`$CYGPATH -u "$windows_path"` 20863 new_path="$unix_path" 20864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20865 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20866 new_path="$unix_path" 20867 fi 20868 20869 fi 20870 20871 if test "x$new_path" = x; then 20872 # It's still not found. Now this is an unrecoverable error. 20873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20874 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20875 has_space=`$ECHO "$complete" | $GREP " "` 20876 if test "x$has_space" != x; then 20877 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20878 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20879 fi 20880 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20881 fi 20882 fi 20883 20884 # Now new_path has a complete unix path to the binary 20885 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20886 # Keep paths in /bin as-is, but remove trailing .exe if any 20887 new_path="${new_path/%.exe/}" 20888 # Do not save /bin paths to all_fixpath_prefixes! 20889 else 20890 # Not in mixed or Windows style, start by that. 20891 new_path=`cmd //c echo $new_path` 20892 20893 input_path="$new_path" 20894 # Check if we need to convert this using DOS-style short mode. If the path 20895 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20896 # take no chances and rewrite it. 20897 # Note: m4 eats our [], so we need to use [ and ] instead. 20898 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20899 if test "x$has_forbidden_chars" != x; then 20900 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20901 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20902 fi 20903 20904 # Output is in $new_path 20905 20906 windows_path="$new_path" 20907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20908 unix_path=`$CYGPATH -u "$windows_path"` 20909 new_path="$unix_path" 20910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20912 new_path="$unix_path" 20913 fi 20914 20915 # remove trailing .exe if any 20916 new_path="${new_path/%.exe/}" 20917 20918 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20919 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20920 fi 20921 20922 else 20923 # We're on a unix platform. Hooray! :) 20924 # First separate the path from the arguments. This will split at the first 20925 # space. 20926 complete="$FOUND_MAKE" 20927 path="${complete%% *}" 20928 tmp="$complete EOL" 20929 arguments="${tmp#* }" 20930 20931 # Cannot rely on the command "which" here since it doesn't always work. 20932 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20933 if test -z "$is_absolute_path"; then 20934 # Path to executable is not absolute. Find it. 20935 IFS_save="$IFS" 20936 IFS=: 20937 for p in $PATH; do 20938 if test -f "$p/$path" && test -x "$p/$path"; then 20939 new_path="$p/$path" 20940 break 20941 fi 20942 done 20943 IFS="$IFS_save" 20944 else 20945 # This is an absolute path, we can use it without further modifications. 20946 new_path="$path" 20947 fi 20948 20949 if test "x$new_path" = x; then 20950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20951 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20952 has_space=`$ECHO "$complete" | $GREP " "` 20953 if test "x$has_space" != x; then 20954 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20955 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20956 fi 20957 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20958 fi 20959 fi 20960 20961 # Now join together the path and the arguments once again 20962 if test "x$arguments" != xEOL; then 20963 new_complete="$new_path ${arguments% *}" 20964 else 20965 new_complete="$new_path" 20966 fi 20967 20968 if test "x$complete" != "x$new_complete"; then 20969 FOUND_MAKE="$new_complete" 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20971 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20972 fi 20973 fi 20974 20975 fi 20976 fi 20977 fi 20978 fi 20979 20980 fi 20981 PATH=$OLD_PATH 20982 fi 20983 fi 20984 20985 if test "x$FOUND_MAKE" = x; then 20986 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 20987 fi 20988 20989 else 20990 # If it succeeded, then it was overridden by the user. We will use it 20991 # for the tool. 20992 20993 # First remove it from the list of overridden variables, so we can test 20994 # for unknown variables in the end. 20995 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20996 20997 # Check if we try to supply an empty value 20998 if test "x$MAKE" = x; then 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 21000 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21002 $as_echo_n "checking for MAKE... " >&6; } 21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21004 $as_echo "disabled" >&6; } 21005 else 21006 # Check if the provided tool contains a complete path. 21007 tool_specified="$MAKE" 21008 tool_basename="${tool_specified##*/}" 21009 if test "x$tool_basename" = "x$tool_specified"; then 21010 # A command without a complete path is provided, search $PATH. 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 21012 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 21013 # Extract the first word of "$tool_basename", so it can be a program name with args. 21014 set dummy $tool_basename; ac_word=$2 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21016 $as_echo_n "checking for $ac_word... " >&6; } 21017 if ${ac_cv_path_MAKE+:} false; then : 21018 $as_echo_n "(cached) " >&6 21019 else 21020 case $MAKE in 21021 [\\/]* | ?:[\\/]*) 21022 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 21023 ;; 21024 *) 21025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21026 for as_dir in $PATH 21027 do 21028 IFS=$as_save_IFS 21029 test -z "$as_dir" && as_dir=. 21030 for ac_exec_ext in '' $ac_executable_extensions; do 21031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21032 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 21033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21034 break 2 21035 fi 21036 done 21037 done 21038 IFS=$as_save_IFS 21039 21040 ;; 21041 esac 21042 fi 21043 MAKE=$ac_cv_path_MAKE 21044 if test -n "$MAKE"; then 21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21046 $as_echo "$MAKE" >&6; } 21047 else 21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21049 $as_echo "no" >&6; } 21050 fi 21051 21052 21053 if test "x$MAKE" = x; then 21054 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21055 fi 21056 else 21057 # Otherwise we believe it is a complete path. Use it as it is. 21058 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21059 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21061 $as_echo_n "checking for MAKE... " >&6; } 21062 if test ! -x "$tool_specified"; then 21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21064 $as_echo "not found" >&6; } 21065 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21066 fi 21067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21068 $as_echo "$tool_specified" >&6; } 21069 fi 21070 fi 21071 fi 21072 21073 # If MAKE was set by user, verify the version 21074 21075 MAKE_CANDIDATE=""$MAKE"" 21076 DESCRIPTION="user supplied MAKE=$MAKE" 21077 21078 # On Cygwin, we require a newer version of make than on other platforms 21079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21080 MAKE_VERSION_EXPR="-e 4\." 21081 MAKE_REQUIRED_VERSION="4.0" 21082 else 21083 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21084 MAKE_REQUIRED_VERSION="3.81" 21085 fi 21086 21087 if test "x$MAKE_CANDIDATE" != x; then 21088 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21089 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21090 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21091 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21092 if test "x$IS_GNU_MAKE" = x; then 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21094 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21095 else 21096 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21097 if test "x$IS_MODERN_MAKE" = x; then 21098 { $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 21099 $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;} 21100 else 21101 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21103 MAKE_EXPECTED_ENV='cygwin' 21104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21105 MAKE_EXPECTED_ENV='msys' 21106 else 21107 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21108 fi 21109 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21110 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21111 else 21112 # Not relevant for non-Windows 21113 IS_MAKE_CORRECT_ENV=true 21114 fi 21115 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21116 { $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 21117 $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;} 21118 else 21119 FOUND_MAKE=$MAKE_CANDIDATE 21120 21121 # Only process if variable expands to non-empty 21122 21123 if test "x$FOUND_MAKE" != x; then 21124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21125 21126 # First separate the path from the arguments. This will split at the first 21127 # space. 21128 complete="$FOUND_MAKE" 21129 path="${complete%% *}" 21130 tmp="$complete EOL" 21131 arguments="${tmp#* }" 21132 21133 # Input might be given as Windows format, start by converting to 21134 # unix format. 21135 new_path=`$CYGPATH -u "$path"` 21136 21137 # Now try to locate executable using which 21138 new_path=`$WHICH "$new_path" 2> /dev/null` 21139 # bat and cmd files are not always considered executable in cygwin causing which 21140 # to not find them 21141 if test "x$new_path" = x \ 21142 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21143 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21144 new_path=`$CYGPATH -u "$path"` 21145 fi 21146 if test "x$new_path" = x; then 21147 # Oops. Which didn't find the executable. 21148 # The splitting of arguments from the executable at a space might have been incorrect, 21149 # since paths with space are more likely in Windows. Give it another try with the whole 21150 # argument. 21151 path="$complete" 21152 arguments="EOL" 21153 new_path=`$CYGPATH -u "$path"` 21154 new_path=`$WHICH "$new_path" 2> /dev/null` 21155 # bat and cmd files are not always considered executable in cygwin causing which 21156 # to not find them 21157 if test "x$new_path" = x \ 21158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21160 new_path=`$CYGPATH -u "$path"` 21161 fi 21162 if test "x$new_path" = x; then 21163 # It's still not found. Now this is an unrecoverable error. 21164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21165 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21166 has_space=`$ECHO "$complete" | $GREP " "` 21167 if test "x$has_space" != x; then 21168 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21169 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21170 fi 21171 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21172 fi 21173 fi 21174 21175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21178 # "foo.exe" is OK but "foo" is an error. 21179 # 21180 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21181 # It is also a way to make sure we got the proper file name for the real test later on. 21182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21183 if test "x$test_shortpath" = x; then 21184 # Short path failed, file does not exist as specified. 21185 # Try adding .exe or .cmd 21186 if test -f "${new_path}.exe"; then 21187 input_to_shortpath="${new_path}.exe" 21188 elif test -f "${new_path}.cmd"; then 21189 input_to_shortpath="${new_path}.cmd" 21190 else 21191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21192 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21193 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21194 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21195 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21196 fi 21197 else 21198 input_to_shortpath="$new_path" 21199 fi 21200 21201 # Call helper function which possibly converts this using DOS-style short mode. 21202 # If so, the updated path is stored in $new_path. 21203 new_path="$input_to_shortpath" 21204 21205 input_path="$input_to_shortpath" 21206 # Check if we need to convert this using DOS-style short mode. If the path 21207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21208 # take no chances and rewrite it. 21209 # Note: m4 eats our [], so we need to use [ and ] instead. 21210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21211 if test "x$has_forbidden_chars" != x; then 21212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21213 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21214 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21215 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21216 # Going to short mode and back again did indeed matter. Since short mode is 21217 # case insensitive, let's make it lowercase to improve readability. 21218 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21219 # Now convert it back to Unix-style (cygpath) 21220 input_path=`$CYGPATH -u "$shortmode_path"` 21221 new_path="$input_path" 21222 fi 21223 fi 21224 21225 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21226 if test "x$test_cygdrive_prefix" = x; then 21227 # As a simple fix, exclude /usr/bin since it's not a real path. 21228 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21229 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21230 # a path prefixed by /cygdrive for fixpath to work. 21231 new_path="$CYGWIN_ROOT_PATH$input_path" 21232 fi 21233 fi 21234 21235 # remove trailing .exe if any 21236 new_path="${new_path/%.exe/}" 21237 21238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21239 21240 # First separate the path from the arguments. This will split at the first 21241 # space. 21242 complete="$FOUND_MAKE" 21243 path="${complete%% *}" 21244 tmp="$complete EOL" 21245 arguments="${tmp#* }" 21246 21247 # Input might be given as Windows format, start by converting to 21248 # unix format. 21249 new_path="$path" 21250 21251 windows_path="$new_path" 21252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21253 unix_path=`$CYGPATH -u "$windows_path"` 21254 new_path="$unix_path" 21255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21257 new_path="$unix_path" 21258 fi 21259 21260 21261 # Now try to locate executable using which 21262 new_path=`$WHICH "$new_path" 2> /dev/null` 21263 21264 if test "x$new_path" = x; then 21265 # Oops. Which didn't find the executable. 21266 # The splitting of arguments from the executable at a space might have been incorrect, 21267 # since paths with space are more likely in Windows. Give it another try with the whole 21268 # argument. 21269 path="$complete" 21270 arguments="EOL" 21271 new_path="$path" 21272 21273 windows_path="$new_path" 21274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21275 unix_path=`$CYGPATH -u "$windows_path"` 21276 new_path="$unix_path" 21277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21279 new_path="$unix_path" 21280 fi 21281 21282 21283 new_path=`$WHICH "$new_path" 2> /dev/null` 21284 # bat and cmd files are not always considered executable in MSYS causing which 21285 # to not find them 21286 if test "x$new_path" = x \ 21287 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21289 new_path="$path" 21290 21291 windows_path="$new_path" 21292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21293 unix_path=`$CYGPATH -u "$windows_path"` 21294 new_path="$unix_path" 21295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21297 new_path="$unix_path" 21298 fi 21299 21300 fi 21301 21302 if test "x$new_path" = x; then 21303 # It's still not found. Now this is an unrecoverable error. 21304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21305 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21306 has_space=`$ECHO "$complete" | $GREP " "` 21307 if test "x$has_space" != x; then 21308 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21309 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21310 fi 21311 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21312 fi 21313 fi 21314 21315 # Now new_path has a complete unix path to the binary 21316 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21317 # Keep paths in /bin as-is, but remove trailing .exe if any 21318 new_path="${new_path/%.exe/}" 21319 # Do not save /bin paths to all_fixpath_prefixes! 21320 else 21321 # Not in mixed or Windows style, start by that. 21322 new_path=`cmd //c echo $new_path` 21323 21324 input_path="$new_path" 21325 # Check if we need to convert this using DOS-style short mode. If the path 21326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21327 # take no chances and rewrite it. 21328 # Note: m4 eats our [], so we need to use [ and ] instead. 21329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21330 if test "x$has_forbidden_chars" != x; then 21331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21332 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21333 fi 21334 21335 # Output is in $new_path 21336 21337 windows_path="$new_path" 21338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21339 unix_path=`$CYGPATH -u "$windows_path"` 21340 new_path="$unix_path" 21341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21343 new_path="$unix_path" 21344 fi 21345 21346 # remove trailing .exe if any 21347 new_path="${new_path/%.exe/}" 21348 21349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21351 fi 21352 21353 else 21354 # We're on a unix platform. Hooray! :) 21355 # First separate the path from the arguments. This will split at the first 21356 # space. 21357 complete="$FOUND_MAKE" 21358 path="${complete%% *}" 21359 tmp="$complete EOL" 21360 arguments="${tmp#* }" 21361 21362 # Cannot rely on the command "which" here since it doesn't always work. 21363 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21364 if test -z "$is_absolute_path"; then 21365 # Path to executable is not absolute. Find it. 21366 IFS_save="$IFS" 21367 IFS=: 21368 for p in $PATH; do 21369 if test -f "$p/$path" && test -x "$p/$path"; then 21370 new_path="$p/$path" 21371 break 21372 fi 21373 done 21374 IFS="$IFS_save" 21375 else 21376 # This is an absolute path, we can use it without further modifications. 21377 new_path="$path" 21378 fi 21379 21380 if test "x$new_path" = x; then 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21382 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21383 has_space=`$ECHO "$complete" | $GREP " "` 21384 if test "x$has_space" != x; then 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21386 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21387 fi 21388 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21389 fi 21390 fi 21391 21392 # Now join together the path and the arguments once again 21393 if test "x$arguments" != xEOL; then 21394 new_complete="$new_path ${arguments% *}" 21395 else 21396 new_complete="$new_path" 21397 fi 21398 21399 if test "x$complete" != "x$new_complete"; then 21400 FOUND_MAKE="$new_complete" 21401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21402 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21403 fi 21404 fi 21405 21406 fi 21407 fi 21408 fi 21409 fi 21410 21411 if test "x$FOUND_MAKE" = x; then 21412 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21413 fi 21414 21415 fi 21416 21417 21418 MAKE=$FOUND_MAKE 21419 21420 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21421 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21422 21423 21424 # Check if make supports the output sync option and if so, setup using it. 21425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21426 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21427 if $MAKE --version -O > /dev/null 2>&1; then 21428 OUTPUT_SYNC_SUPPORTED=true 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21430 $as_echo "yes" >&6; } 21431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21432 $as_echo_n "checking for output-sync value... " >&6; } 21433 21434 # Check whether --with-output-sync was given. 21435 if test "${with_output_sync+set}" = set; then : 21436 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21437 fi 21438 21439 if test "x$OUTPUT_SYNC" = "x"; then 21440 OUTPUT_SYNC=none 21441 fi 21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21443 $as_echo "$OUTPUT_SYNC" >&6; } 21444 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21445 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21446 fi 21447 else 21448 OUTPUT_SYNC_SUPPORTED=false 21449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21450 $as_echo "no" >&6; } 21451 fi 21452 21453 21454 21455 21456 21457 21458 # Test if find supports -delete 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21460 $as_echo_n "checking if find supports -delete... " >&6; } 21461 FIND_DELETE="-delete" 21462 21463 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21464 21465 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21466 21467 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21468 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21469 # No, it does not. 21470 $RM $DELETEDIR/TestIfFindSupportsDelete 21471 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21472 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21473 FIND_DELETE="-print | $XARGS $RM" 21474 else 21475 FIND_DELETE="-exec $RM \{\} \+" 21476 fi 21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21478 $as_echo "no" >&6; } 21479 else 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21481 $as_echo "yes" >&6; } 21482 fi 21483 $RMDIR $DELETEDIR 21484 21485 21486 21487 # Test which kind of tar was found 21488 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21489 TAR_TYPE="gnu" 21490 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21491 TAR_TYPE="bsd" 21492 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21493 TAR_TYPE="bsd" 21494 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21495 TAR_TYPE="solaris" 21496 fi 21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21498 $as_echo_n "checking what type of tar was found... " >&6; } 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21500 $as_echo "$TAR_TYPE" >&6; } 21501 21502 TAR_CREATE_FILE_PARAM="" 21503 21504 if test "x$TAR_TYPE" = "xgnu"; then 21505 TAR_INCLUDE_PARAM="T" 21506 TAR_SUPPORTS_TRANSFORM="true" 21507 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21508 # When using gnu tar for Solaris targets, need to use compatibility mode 21509 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21510 fi 21511 else 21512 TAR_INCLUDE_PARAM="I" 21513 TAR_SUPPORTS_TRANSFORM="false" 21514 fi 21515 21516 21517 21518 21519 21520 21521 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21522 # This is a problem for the grep resident on AIX. 21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21524 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21525 # Multiple subsequent spaces.. 21526 STACK_SPACES='aaa bbb ccc' 21527 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21528 # patterns in it. 21529 STACK_LIST=${STACK_SPACES// /$'\n'} 21530 NEEDLE_SPACES='ccc bbb aaa' 21531 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21532 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21533 if test "x$RESULT" == "x"; then 21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21535 $as_echo "yes" >&6; } 21536 else 21537 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21538 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21539 fi 21540 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21541 fi 21542 21543 21544 # These tools might not be installed by default, 21545 # need hint on how to install them. 21546 21547 21548 21549 # Publish this variable in the help. 21550 21551 21552 if [ -z "${UNZIP+x}" ]; then 21553 # The variable is not set by user, try to locate tool using the code snippet 21554 for ac_prog in unzip 21555 do 21556 # Extract the first word of "$ac_prog", so it can be a program name with args. 21557 set dummy $ac_prog; ac_word=$2 21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21559 $as_echo_n "checking for $ac_word... " >&6; } 21560 if ${ac_cv_path_UNZIP+:} false; then : 21561 $as_echo_n "(cached) " >&6 21562 else 21563 case $UNZIP in 21564 [\\/]* | ?:[\\/]*) 21565 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21566 ;; 21567 *) 21568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21569 for as_dir in $PATH 21570 do 21571 IFS=$as_save_IFS 21572 test -z "$as_dir" && as_dir=. 21573 for ac_exec_ext in '' $ac_executable_extensions; do 21574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21575 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21577 break 2 21578 fi 21579 done 21580 done 21581 IFS=$as_save_IFS 21582 21583 ;; 21584 esac 21585 fi 21586 UNZIP=$ac_cv_path_UNZIP 21587 if test -n "$UNZIP"; then 21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21589 $as_echo "$UNZIP" >&6; } 21590 else 21591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21592 $as_echo "no" >&6; } 21593 fi 21594 21595 21596 test -n "$UNZIP" && break 21597 done 21598 21599 else 21600 # The variable is set, but is it from the command line or the environment? 21601 21602 # Try to remove the string !UNZIP! from our list. 21603 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21604 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21605 # If it failed, the variable was not from the command line. Ignore it, 21606 # but warn the user (except for BASH, which is always set by the calling BASH). 21607 if test "xUNZIP" != xBASH; then 21608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21609 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21610 fi 21611 # Try to locate tool using the code snippet 21612 for ac_prog in unzip 21613 do 21614 # Extract the first word of "$ac_prog", so it can be a program name with args. 21615 set dummy $ac_prog; ac_word=$2 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21617 $as_echo_n "checking for $ac_word... " >&6; } 21618 if ${ac_cv_path_UNZIP+:} false; then : 21619 $as_echo_n "(cached) " >&6 21620 else 21621 case $UNZIP in 21622 [\\/]* | ?:[\\/]*) 21623 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21624 ;; 21625 *) 21626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21627 for as_dir in $PATH 21628 do 21629 IFS=$as_save_IFS 21630 test -z "$as_dir" && as_dir=. 21631 for ac_exec_ext in '' $ac_executable_extensions; do 21632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21633 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21635 break 2 21636 fi 21637 done 21638 done 21639 IFS=$as_save_IFS 21640 21641 ;; 21642 esac 21643 fi 21644 UNZIP=$ac_cv_path_UNZIP 21645 if test -n "$UNZIP"; then 21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21647 $as_echo "$UNZIP" >&6; } 21648 else 21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21650 $as_echo "no" >&6; } 21651 fi 21652 21653 21654 test -n "$UNZIP" && break 21655 done 21656 21657 else 21658 # If it succeeded, then it was overridden by the user. We will use it 21659 # for the tool. 21660 21661 # First remove it from the list of overridden variables, so we can test 21662 # for unknown variables in the end. 21663 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21664 21665 # Check if we try to supply an empty value 21666 if test "x$UNZIP" = x; then 21667 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21668 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21670 $as_echo_n "checking for UNZIP... " >&6; } 21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21672 $as_echo "disabled" >&6; } 21673 else 21674 # Check if the provided tool contains a complete path. 21675 tool_specified="$UNZIP" 21676 tool_basename="${tool_specified##*/}" 21677 if test "x$tool_basename" = "x$tool_specified"; then 21678 # A command without a complete path is provided, search $PATH. 21679 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21680 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21681 # Extract the first word of "$tool_basename", so it can be a program name with args. 21682 set dummy $tool_basename; ac_word=$2 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21684 $as_echo_n "checking for $ac_word... " >&6; } 21685 if ${ac_cv_path_UNZIP+:} false; then : 21686 $as_echo_n "(cached) " >&6 21687 else 21688 case $UNZIP in 21689 [\\/]* | ?:[\\/]*) 21690 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21691 ;; 21692 *) 21693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21694 for as_dir in $PATH 21695 do 21696 IFS=$as_save_IFS 21697 test -z "$as_dir" && as_dir=. 21698 for ac_exec_ext in '' $ac_executable_extensions; do 21699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21700 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21702 break 2 21703 fi 21704 done 21705 done 21706 IFS=$as_save_IFS 21707 21708 ;; 21709 esac 21710 fi 21711 UNZIP=$ac_cv_path_UNZIP 21712 if test -n "$UNZIP"; then 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21714 $as_echo "$UNZIP" >&6; } 21715 else 21716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21717 $as_echo "no" >&6; } 21718 fi 21719 21720 21721 if test "x$UNZIP" = x; then 21722 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21723 fi 21724 else 21725 # Otherwise we believe it is a complete path. Use it as it is. 21726 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21727 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21729 $as_echo_n "checking for UNZIP... " >&6; } 21730 if test ! -x "$tool_specified"; then 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21732 $as_echo "not found" >&6; } 21733 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21734 fi 21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21736 $as_echo "$tool_specified" >&6; } 21737 fi 21738 fi 21739 fi 21740 21741 fi 21742 21743 21744 21745 if test "x$UNZIP" = x; then 21746 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21747 fi 21748 21749 21750 # Since zip uses "ZIP" as a environment variable for passing options, we need 21751 # to name our variable differently, hence ZIPEXE. 21752 21753 21754 21755 # Publish this variable in the help. 21756 21757 21758 if [ -z "${ZIPEXE+x}" ]; then 21759 # The variable is not set by user, try to locate tool using the code snippet 21760 for ac_prog in zip 21761 do 21762 # Extract the first word of "$ac_prog", so it can be a program name with args. 21763 set dummy $ac_prog; ac_word=$2 21764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21765 $as_echo_n "checking for $ac_word... " >&6; } 21766 if ${ac_cv_path_ZIPEXE+:} false; then : 21767 $as_echo_n "(cached) " >&6 21768 else 21769 case $ZIPEXE in 21770 [\\/]* | ?:[\\/]*) 21771 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21772 ;; 21773 *) 21774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21775 for as_dir in $PATH 21776 do 21777 IFS=$as_save_IFS 21778 test -z "$as_dir" && as_dir=. 21779 for ac_exec_ext in '' $ac_executable_extensions; do 21780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21781 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21783 break 2 21784 fi 21785 done 21786 done 21787 IFS=$as_save_IFS 21788 21789 ;; 21790 esac 21791 fi 21792 ZIPEXE=$ac_cv_path_ZIPEXE 21793 if test -n "$ZIPEXE"; then 21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21795 $as_echo "$ZIPEXE" >&6; } 21796 else 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21798 $as_echo "no" >&6; } 21799 fi 21800 21801 21802 test -n "$ZIPEXE" && break 21803 done 21804 21805 else 21806 # The variable is set, but is it from the command line or the environment? 21807 21808 # Try to remove the string !ZIPEXE! from our list. 21809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21811 # If it failed, the variable was not from the command line. Ignore it, 21812 # but warn the user (except for BASH, which is always set by the calling BASH). 21813 if test "xZIPEXE" != xBASH; then 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21815 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21816 fi 21817 # Try to locate tool using the code snippet 21818 for ac_prog in zip 21819 do 21820 # Extract the first word of "$ac_prog", so it can be a program name with args. 21821 set dummy $ac_prog; ac_word=$2 21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21823 $as_echo_n "checking for $ac_word... " >&6; } 21824 if ${ac_cv_path_ZIPEXE+:} false; then : 21825 $as_echo_n "(cached) " >&6 21826 else 21827 case $ZIPEXE in 21828 [\\/]* | ?:[\\/]*) 21829 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21830 ;; 21831 *) 21832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21833 for as_dir in $PATH 21834 do 21835 IFS=$as_save_IFS 21836 test -z "$as_dir" && as_dir=. 21837 for ac_exec_ext in '' $ac_executable_extensions; do 21838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21839 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21841 break 2 21842 fi 21843 done 21844 done 21845 IFS=$as_save_IFS 21846 21847 ;; 21848 esac 21849 fi 21850 ZIPEXE=$ac_cv_path_ZIPEXE 21851 if test -n "$ZIPEXE"; then 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21853 $as_echo "$ZIPEXE" >&6; } 21854 else 21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21856 $as_echo "no" >&6; } 21857 fi 21858 21859 21860 test -n "$ZIPEXE" && break 21861 done 21862 21863 else 21864 # If it succeeded, then it was overridden by the user. We will use it 21865 # for the tool. 21866 21867 # First remove it from the list of overridden variables, so we can test 21868 # for unknown variables in the end. 21869 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21870 21871 # Check if we try to supply an empty value 21872 if test "x$ZIPEXE" = x; then 21873 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21874 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21876 $as_echo_n "checking for ZIPEXE... " >&6; } 21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21878 $as_echo "disabled" >&6; } 21879 else 21880 # Check if the provided tool contains a complete path. 21881 tool_specified="$ZIPEXE" 21882 tool_basename="${tool_specified##*/}" 21883 if test "x$tool_basename" = "x$tool_specified"; then 21884 # A command without a complete path is provided, search $PATH. 21885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21886 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21887 # Extract the first word of "$tool_basename", so it can be a program name with args. 21888 set dummy $tool_basename; ac_word=$2 21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21890 $as_echo_n "checking for $ac_word... " >&6; } 21891 if ${ac_cv_path_ZIPEXE+:} false; then : 21892 $as_echo_n "(cached) " >&6 21893 else 21894 case $ZIPEXE in 21895 [\\/]* | ?:[\\/]*) 21896 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21897 ;; 21898 *) 21899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21900 for as_dir in $PATH 21901 do 21902 IFS=$as_save_IFS 21903 test -z "$as_dir" && as_dir=. 21904 for ac_exec_ext in '' $ac_executable_extensions; do 21905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21906 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21908 break 2 21909 fi 21910 done 21911 done 21912 IFS=$as_save_IFS 21913 21914 ;; 21915 esac 21916 fi 21917 ZIPEXE=$ac_cv_path_ZIPEXE 21918 if test -n "$ZIPEXE"; then 21919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21920 $as_echo "$ZIPEXE" >&6; } 21921 else 21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21923 $as_echo "no" >&6; } 21924 fi 21925 21926 21927 if test "x$ZIPEXE" = x; then 21928 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21929 fi 21930 else 21931 # Otherwise we believe it is a complete path. Use it as it is. 21932 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21933 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21935 $as_echo_n "checking for ZIPEXE... " >&6; } 21936 if test ! -x "$tool_specified"; then 21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21938 $as_echo "not found" >&6; } 21939 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21940 fi 21941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21942 $as_echo "$tool_specified" >&6; } 21943 fi 21944 fi 21945 fi 21946 21947 fi 21948 21949 21950 21951 if test "x$ZIPEXE" = x; then 21952 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21953 fi 21954 21955 21956 21957 # Non-required basic tools 21958 21959 21960 21961 # Publish this variable in the help. 21962 21963 21964 if [ -z "${LDD+x}" ]; then 21965 # The variable is not set by user, try to locate tool using the code snippet 21966 for ac_prog in ldd 21967 do 21968 # Extract the first word of "$ac_prog", so it can be a program name with args. 21969 set dummy $ac_prog; ac_word=$2 21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21971 $as_echo_n "checking for $ac_word... " >&6; } 21972 if ${ac_cv_path_LDD+:} false; then : 21973 $as_echo_n "(cached) " >&6 21974 else 21975 case $LDD in 21976 [\\/]* | ?:[\\/]*) 21977 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21978 ;; 21979 *) 21980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21981 for as_dir in $PATH 21982 do 21983 IFS=$as_save_IFS 21984 test -z "$as_dir" && as_dir=. 21985 for ac_exec_ext in '' $ac_executable_extensions; do 21986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21987 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21989 break 2 21990 fi 21991 done 21992 done 21993 IFS=$as_save_IFS 21994 21995 ;; 21996 esac 21997 fi 21998 LDD=$ac_cv_path_LDD 21999 if test -n "$LDD"; then 22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22001 $as_echo "$LDD" >&6; } 22002 else 22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22004 $as_echo "no" >&6; } 22005 fi 22006 22007 22008 test -n "$LDD" && break 22009 done 22010 22011 else 22012 # The variable is set, but is it from the command line or the environment? 22013 22014 # Try to remove the string !LDD! from our list. 22015 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 22016 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22017 # If it failed, the variable was not from the command line. Ignore it, 22018 # but warn the user (except for BASH, which is always set by the calling BASH). 22019 if test "xLDD" != xBASH; then 22020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 22021 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 22022 fi 22023 # Try to locate tool using the code snippet 22024 for ac_prog in ldd 22025 do 22026 # Extract the first word of "$ac_prog", so it can be a program name with args. 22027 set dummy $ac_prog; ac_word=$2 22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22029 $as_echo_n "checking for $ac_word... " >&6; } 22030 if ${ac_cv_path_LDD+:} false; then : 22031 $as_echo_n "(cached) " >&6 22032 else 22033 case $LDD in 22034 [\\/]* | ?:[\\/]*) 22035 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22036 ;; 22037 *) 22038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22039 for as_dir in $PATH 22040 do 22041 IFS=$as_save_IFS 22042 test -z "$as_dir" && as_dir=. 22043 for ac_exec_ext in '' $ac_executable_extensions; do 22044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22045 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22047 break 2 22048 fi 22049 done 22050 done 22051 IFS=$as_save_IFS 22052 22053 ;; 22054 esac 22055 fi 22056 LDD=$ac_cv_path_LDD 22057 if test -n "$LDD"; then 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22059 $as_echo "$LDD" >&6; } 22060 else 22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22062 $as_echo "no" >&6; } 22063 fi 22064 22065 22066 test -n "$LDD" && break 22067 done 22068 22069 else 22070 # If it succeeded, then it was overridden by the user. We will use it 22071 # for the tool. 22072 22073 # First remove it from the list of overridden variables, so we can test 22074 # for unknown variables in the end. 22075 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22076 22077 # Check if we try to supply an empty value 22078 if test "x$LDD" = x; then 22079 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22080 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22082 $as_echo_n "checking for LDD... " >&6; } 22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22084 $as_echo "disabled" >&6; } 22085 else 22086 # Check if the provided tool contains a complete path. 22087 tool_specified="$LDD" 22088 tool_basename="${tool_specified##*/}" 22089 if test "x$tool_basename" = "x$tool_specified"; then 22090 # A command without a complete path is provided, search $PATH. 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22092 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22093 # Extract the first word of "$tool_basename", so it can be a program name with args. 22094 set dummy $tool_basename; ac_word=$2 22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22096 $as_echo_n "checking for $ac_word... " >&6; } 22097 if ${ac_cv_path_LDD+:} false; then : 22098 $as_echo_n "(cached) " >&6 22099 else 22100 case $LDD in 22101 [\\/]* | ?:[\\/]*) 22102 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22103 ;; 22104 *) 22105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22106 for as_dir in $PATH 22107 do 22108 IFS=$as_save_IFS 22109 test -z "$as_dir" && as_dir=. 22110 for ac_exec_ext in '' $ac_executable_extensions; do 22111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22112 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22114 break 2 22115 fi 22116 done 22117 done 22118 IFS=$as_save_IFS 22119 22120 ;; 22121 esac 22122 fi 22123 LDD=$ac_cv_path_LDD 22124 if test -n "$LDD"; then 22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22126 $as_echo "$LDD" >&6; } 22127 else 22128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22129 $as_echo "no" >&6; } 22130 fi 22131 22132 22133 if test "x$LDD" = x; then 22134 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22135 fi 22136 else 22137 # Otherwise we believe it is a complete path. Use it as it is. 22138 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22139 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22141 $as_echo_n "checking for LDD... " >&6; } 22142 if test ! -x "$tool_specified"; then 22143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22144 $as_echo "not found" >&6; } 22145 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22146 fi 22147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22148 $as_echo "$tool_specified" >&6; } 22149 fi 22150 fi 22151 fi 22152 22153 fi 22154 22155 22156 if test "x$LDD" = "x"; then 22157 # List shared lib dependencies is used for 22158 # debug output and checking for forbidden dependencies. 22159 # We can build without it. 22160 LDD="true" 22161 fi 22162 22163 22164 # Publish this variable in the help. 22165 22166 22167 if [ -z "${READELF+x}" ]; then 22168 # The variable is not set by user, try to locate tool using the code snippet 22169 for ac_prog in greadelf readelf 22170 do 22171 # Extract the first word of "$ac_prog", so it can be a program name with args. 22172 set dummy $ac_prog; ac_word=$2 22173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22174 $as_echo_n "checking for $ac_word... " >&6; } 22175 if ${ac_cv_path_READELF+:} false; then : 22176 $as_echo_n "(cached) " >&6 22177 else 22178 case $READELF in 22179 [\\/]* | ?:[\\/]*) 22180 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22181 ;; 22182 *) 22183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22184 for as_dir in $PATH 22185 do 22186 IFS=$as_save_IFS 22187 test -z "$as_dir" && as_dir=. 22188 for ac_exec_ext in '' $ac_executable_extensions; do 22189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22190 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22192 break 2 22193 fi 22194 done 22195 done 22196 IFS=$as_save_IFS 22197 22198 ;; 22199 esac 22200 fi 22201 READELF=$ac_cv_path_READELF 22202 if test -n "$READELF"; then 22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22204 $as_echo "$READELF" >&6; } 22205 else 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22207 $as_echo "no" >&6; } 22208 fi 22209 22210 22211 test -n "$READELF" && break 22212 done 22213 22214 else 22215 # The variable is set, but is it from the command line or the environment? 22216 22217 # Try to remove the string !READELF! from our list. 22218 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22219 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22220 # If it failed, the variable was not from the command line. Ignore it, 22221 # but warn the user (except for BASH, which is always set by the calling BASH). 22222 if test "xREADELF" != xBASH; then 22223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22224 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22225 fi 22226 # Try to locate tool using the code snippet 22227 for ac_prog in greadelf readelf 22228 do 22229 # Extract the first word of "$ac_prog", so it can be a program name with args. 22230 set dummy $ac_prog; ac_word=$2 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22232 $as_echo_n "checking for $ac_word... " >&6; } 22233 if ${ac_cv_path_READELF+:} false; then : 22234 $as_echo_n "(cached) " >&6 22235 else 22236 case $READELF in 22237 [\\/]* | ?:[\\/]*) 22238 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22239 ;; 22240 *) 22241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22242 for as_dir in $PATH 22243 do 22244 IFS=$as_save_IFS 22245 test -z "$as_dir" && as_dir=. 22246 for ac_exec_ext in '' $ac_executable_extensions; do 22247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22248 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22250 break 2 22251 fi 22252 done 22253 done 22254 IFS=$as_save_IFS 22255 22256 ;; 22257 esac 22258 fi 22259 READELF=$ac_cv_path_READELF 22260 if test -n "$READELF"; then 22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22262 $as_echo "$READELF" >&6; } 22263 else 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22265 $as_echo "no" >&6; } 22266 fi 22267 22268 22269 test -n "$READELF" && break 22270 done 22271 22272 else 22273 # If it succeeded, then it was overridden by the user. We will use it 22274 # for the tool. 22275 22276 # First remove it from the list of overridden variables, so we can test 22277 # for unknown variables in the end. 22278 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22279 22280 # Check if we try to supply an empty value 22281 if test "x$READELF" = x; then 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22283 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22285 $as_echo_n "checking for READELF... " >&6; } 22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22287 $as_echo "disabled" >&6; } 22288 else 22289 # Check if the provided tool contains a complete path. 22290 tool_specified="$READELF" 22291 tool_basename="${tool_specified##*/}" 22292 if test "x$tool_basename" = "x$tool_specified"; then 22293 # A command without a complete path is provided, search $PATH. 22294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22295 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22296 # Extract the first word of "$tool_basename", so it can be a program name with args. 22297 set dummy $tool_basename; ac_word=$2 22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22299 $as_echo_n "checking for $ac_word... " >&6; } 22300 if ${ac_cv_path_READELF+:} false; then : 22301 $as_echo_n "(cached) " >&6 22302 else 22303 case $READELF in 22304 [\\/]* | ?:[\\/]*) 22305 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22306 ;; 22307 *) 22308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22309 for as_dir in $PATH 22310 do 22311 IFS=$as_save_IFS 22312 test -z "$as_dir" && as_dir=. 22313 for ac_exec_ext in '' $ac_executable_extensions; do 22314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22315 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22317 break 2 22318 fi 22319 done 22320 done 22321 IFS=$as_save_IFS 22322 22323 ;; 22324 esac 22325 fi 22326 READELF=$ac_cv_path_READELF 22327 if test -n "$READELF"; then 22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22329 $as_echo "$READELF" >&6; } 22330 else 22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22332 $as_echo "no" >&6; } 22333 fi 22334 22335 22336 if test "x$READELF" = x; then 22337 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22338 fi 22339 else 22340 # Otherwise we believe it is a complete path. Use it as it is. 22341 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22342 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22344 $as_echo_n "checking for READELF... " >&6; } 22345 if test ! -x "$tool_specified"; then 22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22347 $as_echo "not found" >&6; } 22348 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22349 fi 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22351 $as_echo "$tool_specified" >&6; } 22352 fi 22353 fi 22354 fi 22355 22356 fi 22357 22358 22359 22360 22361 # Publish this variable in the help. 22362 22363 22364 if [ -z "${DOT+x}" ]; then 22365 # The variable is not set by user, try to locate tool using the code snippet 22366 for ac_prog in dot 22367 do 22368 # Extract the first word of "$ac_prog", so it can be a program name with args. 22369 set dummy $ac_prog; ac_word=$2 22370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22371 $as_echo_n "checking for $ac_word... " >&6; } 22372 if ${ac_cv_path_DOT+:} false; then : 22373 $as_echo_n "(cached) " >&6 22374 else 22375 case $DOT in 22376 [\\/]* | ?:[\\/]*) 22377 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22378 ;; 22379 *) 22380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22381 for as_dir in $PATH 22382 do 22383 IFS=$as_save_IFS 22384 test -z "$as_dir" && as_dir=. 22385 for ac_exec_ext in '' $ac_executable_extensions; do 22386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22387 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22389 break 2 22390 fi 22391 done 22392 done 22393 IFS=$as_save_IFS 22394 22395 ;; 22396 esac 22397 fi 22398 DOT=$ac_cv_path_DOT 22399 if test -n "$DOT"; then 22400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22401 $as_echo "$DOT" >&6; } 22402 else 22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22404 $as_echo "no" >&6; } 22405 fi 22406 22407 22408 test -n "$DOT" && break 22409 done 22410 22411 else 22412 # The variable is set, but is it from the command line or the environment? 22413 22414 # Try to remove the string !DOT! from our list. 22415 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22416 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22417 # If it failed, the variable was not from the command line. Ignore it, 22418 # but warn the user (except for BASH, which is always set by the calling BASH). 22419 if test "xDOT" != xBASH; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22421 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22422 fi 22423 # Try to locate tool using the code snippet 22424 for ac_prog in dot 22425 do 22426 # Extract the first word of "$ac_prog", so it can be a program name with args. 22427 set dummy $ac_prog; ac_word=$2 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22429 $as_echo_n "checking for $ac_word... " >&6; } 22430 if ${ac_cv_path_DOT+:} false; then : 22431 $as_echo_n "(cached) " >&6 22432 else 22433 case $DOT in 22434 [\\/]* | ?:[\\/]*) 22435 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22436 ;; 22437 *) 22438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22439 for as_dir in $PATH 22440 do 22441 IFS=$as_save_IFS 22442 test -z "$as_dir" && as_dir=. 22443 for ac_exec_ext in '' $ac_executable_extensions; do 22444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22445 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22447 break 2 22448 fi 22449 done 22450 done 22451 IFS=$as_save_IFS 22452 22453 ;; 22454 esac 22455 fi 22456 DOT=$ac_cv_path_DOT 22457 if test -n "$DOT"; then 22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22459 $as_echo "$DOT" >&6; } 22460 else 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22462 $as_echo "no" >&6; } 22463 fi 22464 22465 22466 test -n "$DOT" && break 22467 done 22468 22469 else 22470 # If it succeeded, then it was overridden by the user. We will use it 22471 # for the tool. 22472 22473 # First remove it from the list of overridden variables, so we can test 22474 # for unknown variables in the end. 22475 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22476 22477 # Check if we try to supply an empty value 22478 if test "x$DOT" = x; then 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22480 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22482 $as_echo_n "checking for DOT... " >&6; } 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22484 $as_echo "disabled" >&6; } 22485 else 22486 # Check if the provided tool contains a complete path. 22487 tool_specified="$DOT" 22488 tool_basename="${tool_specified##*/}" 22489 if test "x$tool_basename" = "x$tool_specified"; then 22490 # A command without a complete path is provided, search $PATH. 22491 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22492 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22493 # Extract the first word of "$tool_basename", so it can be a program name with args. 22494 set dummy $tool_basename; ac_word=$2 22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22496 $as_echo_n "checking for $ac_word... " >&6; } 22497 if ${ac_cv_path_DOT+:} false; then : 22498 $as_echo_n "(cached) " >&6 22499 else 22500 case $DOT in 22501 [\\/]* | ?:[\\/]*) 22502 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22503 ;; 22504 *) 22505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22506 for as_dir in $PATH 22507 do 22508 IFS=$as_save_IFS 22509 test -z "$as_dir" && as_dir=. 22510 for ac_exec_ext in '' $ac_executable_extensions; do 22511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22512 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22514 break 2 22515 fi 22516 done 22517 done 22518 IFS=$as_save_IFS 22519 22520 ;; 22521 esac 22522 fi 22523 DOT=$ac_cv_path_DOT 22524 if test -n "$DOT"; then 22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22526 $as_echo "$DOT" >&6; } 22527 else 22528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22529 $as_echo "no" >&6; } 22530 fi 22531 22532 22533 if test "x$DOT" = x; then 22534 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22535 fi 22536 else 22537 # Otherwise we believe it is a complete path. Use it as it is. 22538 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22539 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22541 $as_echo_n "checking for DOT... " >&6; } 22542 if test ! -x "$tool_specified"; then 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22544 $as_echo "not found" >&6; } 22545 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22546 fi 22547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22548 $as_echo "$tool_specified" >&6; } 22549 fi 22550 fi 22551 fi 22552 22553 fi 22554 22555 22556 22557 22558 # Publish this variable in the help. 22559 22560 22561 if [ -z "${HG+x}" ]; then 22562 # The variable is not set by user, try to locate tool using the code snippet 22563 for ac_prog in hg 22564 do 22565 # Extract the first word of "$ac_prog", so it can be a program name with args. 22566 set dummy $ac_prog; ac_word=$2 22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22568 $as_echo_n "checking for $ac_word... " >&6; } 22569 if ${ac_cv_path_HG+:} false; then : 22570 $as_echo_n "(cached) " >&6 22571 else 22572 case $HG in 22573 [\\/]* | ?:[\\/]*) 22574 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22575 ;; 22576 *) 22577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22578 for as_dir in $PATH 22579 do 22580 IFS=$as_save_IFS 22581 test -z "$as_dir" && as_dir=. 22582 for ac_exec_ext in '' $ac_executable_extensions; do 22583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22584 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22586 break 2 22587 fi 22588 done 22589 done 22590 IFS=$as_save_IFS 22591 22592 ;; 22593 esac 22594 fi 22595 HG=$ac_cv_path_HG 22596 if test -n "$HG"; then 22597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22598 $as_echo "$HG" >&6; } 22599 else 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22601 $as_echo "no" >&6; } 22602 fi 22603 22604 22605 test -n "$HG" && break 22606 done 22607 22608 else 22609 # The variable is set, but is it from the command line or the environment? 22610 22611 # Try to remove the string !HG! from our list. 22612 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22613 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22614 # If it failed, the variable was not from the command line. Ignore it, 22615 # but warn the user (except for BASH, which is always set by the calling BASH). 22616 if test "xHG" != xBASH; then 22617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22618 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22619 fi 22620 # Try to locate tool using the code snippet 22621 for ac_prog in hg 22622 do 22623 # Extract the first word of "$ac_prog", so it can be a program name with args. 22624 set dummy $ac_prog; ac_word=$2 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22626 $as_echo_n "checking for $ac_word... " >&6; } 22627 if ${ac_cv_path_HG+:} false; then : 22628 $as_echo_n "(cached) " >&6 22629 else 22630 case $HG in 22631 [\\/]* | ?:[\\/]*) 22632 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22633 ;; 22634 *) 22635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22636 for as_dir in $PATH 22637 do 22638 IFS=$as_save_IFS 22639 test -z "$as_dir" && as_dir=. 22640 for ac_exec_ext in '' $ac_executable_extensions; do 22641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22642 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22644 break 2 22645 fi 22646 done 22647 done 22648 IFS=$as_save_IFS 22649 22650 ;; 22651 esac 22652 fi 22653 HG=$ac_cv_path_HG 22654 if test -n "$HG"; then 22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22656 $as_echo "$HG" >&6; } 22657 else 22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22659 $as_echo "no" >&6; } 22660 fi 22661 22662 22663 test -n "$HG" && break 22664 done 22665 22666 else 22667 # If it succeeded, then it was overridden by the user. We will use it 22668 # for the tool. 22669 22670 # First remove it from the list of overridden variables, so we can test 22671 # for unknown variables in the end. 22672 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22673 22674 # Check if we try to supply an empty value 22675 if test "x$HG" = x; then 22676 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22677 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22679 $as_echo_n "checking for HG... " >&6; } 22680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22681 $as_echo "disabled" >&6; } 22682 else 22683 # Check if the provided tool contains a complete path. 22684 tool_specified="$HG" 22685 tool_basename="${tool_specified##*/}" 22686 if test "x$tool_basename" = "x$tool_specified"; then 22687 # A command without a complete path is provided, search $PATH. 22688 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22689 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22690 # Extract the first word of "$tool_basename", so it can be a program name with args. 22691 set dummy $tool_basename; ac_word=$2 22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22693 $as_echo_n "checking for $ac_word... " >&6; } 22694 if ${ac_cv_path_HG+:} false; then : 22695 $as_echo_n "(cached) " >&6 22696 else 22697 case $HG in 22698 [\\/]* | ?:[\\/]*) 22699 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22700 ;; 22701 *) 22702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22703 for as_dir in $PATH 22704 do 22705 IFS=$as_save_IFS 22706 test -z "$as_dir" && as_dir=. 22707 for ac_exec_ext in '' $ac_executable_extensions; do 22708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22709 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22711 break 2 22712 fi 22713 done 22714 done 22715 IFS=$as_save_IFS 22716 22717 ;; 22718 esac 22719 fi 22720 HG=$ac_cv_path_HG 22721 if test -n "$HG"; then 22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22723 $as_echo "$HG" >&6; } 22724 else 22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22726 $as_echo "no" >&6; } 22727 fi 22728 22729 22730 if test "x$HG" = x; then 22731 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22732 fi 22733 else 22734 # Otherwise we believe it is a complete path. Use it as it is. 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22736 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22738 $as_echo_n "checking for HG... " >&6; } 22739 if test ! -x "$tool_specified"; then 22740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22741 $as_echo "not found" >&6; } 22742 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22743 fi 22744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22745 $as_echo "$tool_specified" >&6; } 22746 fi 22747 fi 22748 fi 22749 22750 fi 22751 22752 22753 22754 22755 # Publish this variable in the help. 22756 22757 22758 if [ -z "${STAT+x}" ]; then 22759 # The variable is not set by user, try to locate tool using the code snippet 22760 for ac_prog in stat 22761 do 22762 # Extract the first word of "$ac_prog", so it can be a program name with args. 22763 set dummy $ac_prog; ac_word=$2 22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22765 $as_echo_n "checking for $ac_word... " >&6; } 22766 if ${ac_cv_path_STAT+:} false; then : 22767 $as_echo_n "(cached) " >&6 22768 else 22769 case $STAT in 22770 [\\/]* | ?:[\\/]*) 22771 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22772 ;; 22773 *) 22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22775 for as_dir in $PATH 22776 do 22777 IFS=$as_save_IFS 22778 test -z "$as_dir" && as_dir=. 22779 for ac_exec_ext in '' $ac_executable_extensions; do 22780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22781 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22783 break 2 22784 fi 22785 done 22786 done 22787 IFS=$as_save_IFS 22788 22789 ;; 22790 esac 22791 fi 22792 STAT=$ac_cv_path_STAT 22793 if test -n "$STAT"; then 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22795 $as_echo "$STAT" >&6; } 22796 else 22797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22798 $as_echo "no" >&6; } 22799 fi 22800 22801 22802 test -n "$STAT" && break 22803 done 22804 22805 else 22806 # The variable is set, but is it from the command line or the environment? 22807 22808 # Try to remove the string !STAT! from our list. 22809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22811 # If it failed, the variable was not from the command line. Ignore it, 22812 # but warn the user (except for BASH, which is always set by the calling BASH). 22813 if test "xSTAT" != xBASH; then 22814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22815 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22816 fi 22817 # Try to locate tool using the code snippet 22818 for ac_prog in stat 22819 do 22820 # Extract the first word of "$ac_prog", so it can be a program name with args. 22821 set dummy $ac_prog; ac_word=$2 22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22823 $as_echo_n "checking for $ac_word... " >&6; } 22824 if ${ac_cv_path_STAT+:} false; then : 22825 $as_echo_n "(cached) " >&6 22826 else 22827 case $STAT in 22828 [\\/]* | ?:[\\/]*) 22829 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22830 ;; 22831 *) 22832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22833 for as_dir in $PATH 22834 do 22835 IFS=$as_save_IFS 22836 test -z "$as_dir" && as_dir=. 22837 for ac_exec_ext in '' $ac_executable_extensions; do 22838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22839 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22841 break 2 22842 fi 22843 done 22844 done 22845 IFS=$as_save_IFS 22846 22847 ;; 22848 esac 22849 fi 22850 STAT=$ac_cv_path_STAT 22851 if test -n "$STAT"; then 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22853 $as_echo "$STAT" >&6; } 22854 else 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22856 $as_echo "no" >&6; } 22857 fi 22858 22859 22860 test -n "$STAT" && break 22861 done 22862 22863 else 22864 # If it succeeded, then it was overridden by the user. We will use it 22865 # for the tool. 22866 22867 # First remove it from the list of overridden variables, so we can test 22868 # for unknown variables in the end. 22869 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22870 22871 # Check if we try to supply an empty value 22872 if test "x$STAT" = x; then 22873 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22874 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22876 $as_echo_n "checking for STAT... " >&6; } 22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22878 $as_echo "disabled" >&6; } 22879 else 22880 # Check if the provided tool contains a complete path. 22881 tool_specified="$STAT" 22882 tool_basename="${tool_specified##*/}" 22883 if test "x$tool_basename" = "x$tool_specified"; then 22884 # A command without a complete path is provided, search $PATH. 22885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22886 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22887 # Extract the first word of "$tool_basename", so it can be a program name with args. 22888 set dummy $tool_basename; ac_word=$2 22889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22890 $as_echo_n "checking for $ac_word... " >&6; } 22891 if ${ac_cv_path_STAT+:} false; then : 22892 $as_echo_n "(cached) " >&6 22893 else 22894 case $STAT in 22895 [\\/]* | ?:[\\/]*) 22896 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22897 ;; 22898 *) 22899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22900 for as_dir in $PATH 22901 do 22902 IFS=$as_save_IFS 22903 test -z "$as_dir" && as_dir=. 22904 for ac_exec_ext in '' $ac_executable_extensions; do 22905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22906 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22908 break 2 22909 fi 22910 done 22911 done 22912 IFS=$as_save_IFS 22913 22914 ;; 22915 esac 22916 fi 22917 STAT=$ac_cv_path_STAT 22918 if test -n "$STAT"; then 22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22920 $as_echo "$STAT" >&6; } 22921 else 22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22923 $as_echo "no" >&6; } 22924 fi 22925 22926 22927 if test "x$STAT" = x; then 22928 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22929 fi 22930 else 22931 # Otherwise we believe it is a complete path. Use it as it is. 22932 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22933 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22935 $as_echo_n "checking for STAT... " >&6; } 22936 if test ! -x "$tool_specified"; then 22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22938 $as_echo "not found" >&6; } 22939 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22940 fi 22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22942 $as_echo "$tool_specified" >&6; } 22943 fi 22944 fi 22945 fi 22946 22947 fi 22948 22949 22950 22951 22952 # Publish this variable in the help. 22953 22954 22955 if [ -z "${TIME+x}" ]; then 22956 # The variable is not set by user, try to locate tool using the code snippet 22957 for ac_prog in time 22958 do 22959 # Extract the first word of "$ac_prog", so it can be a program name with args. 22960 set dummy $ac_prog; ac_word=$2 22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22962 $as_echo_n "checking for $ac_word... " >&6; } 22963 if ${ac_cv_path_TIME+:} false; then : 22964 $as_echo_n "(cached) " >&6 22965 else 22966 case $TIME in 22967 [\\/]* | ?:[\\/]*) 22968 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22969 ;; 22970 *) 22971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22972 for as_dir in $PATH 22973 do 22974 IFS=$as_save_IFS 22975 test -z "$as_dir" && as_dir=. 22976 for ac_exec_ext in '' $ac_executable_extensions; do 22977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22978 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22980 break 2 22981 fi 22982 done 22983 done 22984 IFS=$as_save_IFS 22985 22986 ;; 22987 esac 22988 fi 22989 TIME=$ac_cv_path_TIME 22990 if test -n "$TIME"; then 22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22992 $as_echo "$TIME" >&6; } 22993 else 22994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22995 $as_echo "no" >&6; } 22996 fi 22997 22998 22999 test -n "$TIME" && break 23000 done 23001 23002 else 23003 # The variable is set, but is it from the command line or the environment? 23004 23005 # Try to remove the string !TIME! from our list. 23006 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 23007 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23008 # If it failed, the variable was not from the command line. Ignore it, 23009 # but warn the user (except for BASH, which is always set by the calling BASH). 23010 if test "xTIME" != xBASH; then 23011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 23012 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 23013 fi 23014 # Try to locate tool using the code snippet 23015 for ac_prog in time 23016 do 23017 # Extract the first word of "$ac_prog", so it can be a program name with args. 23018 set dummy $ac_prog; ac_word=$2 23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23020 $as_echo_n "checking for $ac_word... " >&6; } 23021 if ${ac_cv_path_TIME+:} false; then : 23022 $as_echo_n "(cached) " >&6 23023 else 23024 case $TIME in 23025 [\\/]* | ?:[\\/]*) 23026 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23027 ;; 23028 *) 23029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23030 for as_dir in $PATH 23031 do 23032 IFS=$as_save_IFS 23033 test -z "$as_dir" && as_dir=. 23034 for ac_exec_ext in '' $ac_executable_extensions; do 23035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23036 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23038 break 2 23039 fi 23040 done 23041 done 23042 IFS=$as_save_IFS 23043 23044 ;; 23045 esac 23046 fi 23047 TIME=$ac_cv_path_TIME 23048 if test -n "$TIME"; then 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23050 $as_echo "$TIME" >&6; } 23051 else 23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23053 $as_echo "no" >&6; } 23054 fi 23055 23056 23057 test -n "$TIME" && break 23058 done 23059 23060 else 23061 # If it succeeded, then it was overridden by the user. We will use it 23062 # for the tool. 23063 23064 # First remove it from the list of overridden variables, so we can test 23065 # for unknown variables in the end. 23066 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23067 23068 # Check if we try to supply an empty value 23069 if test "x$TIME" = x; then 23070 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23071 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23073 $as_echo_n "checking for TIME... " >&6; } 23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23075 $as_echo "disabled" >&6; } 23076 else 23077 # Check if the provided tool contains a complete path. 23078 tool_specified="$TIME" 23079 tool_basename="${tool_specified##*/}" 23080 if test "x$tool_basename" = "x$tool_specified"; then 23081 # A command without a complete path is provided, search $PATH. 23082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23083 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23084 # Extract the first word of "$tool_basename", so it can be a program name with args. 23085 set dummy $tool_basename; ac_word=$2 23086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23087 $as_echo_n "checking for $ac_word... " >&6; } 23088 if ${ac_cv_path_TIME+:} false; then : 23089 $as_echo_n "(cached) " >&6 23090 else 23091 case $TIME in 23092 [\\/]* | ?:[\\/]*) 23093 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23094 ;; 23095 *) 23096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23097 for as_dir in $PATH 23098 do 23099 IFS=$as_save_IFS 23100 test -z "$as_dir" && as_dir=. 23101 for ac_exec_ext in '' $ac_executable_extensions; do 23102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23103 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23105 break 2 23106 fi 23107 done 23108 done 23109 IFS=$as_save_IFS 23110 23111 ;; 23112 esac 23113 fi 23114 TIME=$ac_cv_path_TIME 23115 if test -n "$TIME"; then 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23117 $as_echo "$TIME" >&6; } 23118 else 23119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23120 $as_echo "no" >&6; } 23121 fi 23122 23123 23124 if test "x$TIME" = x; then 23125 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23126 fi 23127 else 23128 # Otherwise we believe it is a complete path. Use it as it is. 23129 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23130 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23132 $as_echo_n "checking for TIME... " >&6; } 23133 if test ! -x "$tool_specified"; then 23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23135 $as_echo "not found" >&6; } 23136 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23137 fi 23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23139 $as_echo "$tool_specified" >&6; } 23140 fi 23141 fi 23142 fi 23143 23144 fi 23145 23146 23147 23148 23149 # Publish this variable in the help. 23150 23151 23152 if [ -z "${FLOCK+x}" ]; then 23153 # The variable is not set by user, try to locate tool using the code snippet 23154 for ac_prog in flock 23155 do 23156 # Extract the first word of "$ac_prog", so it can be a program name with args. 23157 set dummy $ac_prog; ac_word=$2 23158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23159 $as_echo_n "checking for $ac_word... " >&6; } 23160 if ${ac_cv_path_FLOCK+:} false; then : 23161 $as_echo_n "(cached) " >&6 23162 else 23163 case $FLOCK in 23164 [\\/]* | ?:[\\/]*) 23165 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23166 ;; 23167 *) 23168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23169 for as_dir in $PATH 23170 do 23171 IFS=$as_save_IFS 23172 test -z "$as_dir" && as_dir=. 23173 for ac_exec_ext in '' $ac_executable_extensions; do 23174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23175 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23177 break 2 23178 fi 23179 done 23180 done 23181 IFS=$as_save_IFS 23182 23183 ;; 23184 esac 23185 fi 23186 FLOCK=$ac_cv_path_FLOCK 23187 if test -n "$FLOCK"; then 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23189 $as_echo "$FLOCK" >&6; } 23190 else 23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23192 $as_echo "no" >&6; } 23193 fi 23194 23195 23196 test -n "$FLOCK" && break 23197 done 23198 23199 else 23200 # The variable is set, but is it from the command line or the environment? 23201 23202 # Try to remove the string !FLOCK! from our list. 23203 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23204 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23205 # If it failed, the variable was not from the command line. Ignore it, 23206 # but warn the user (except for BASH, which is always set by the calling BASH). 23207 if test "xFLOCK" != xBASH; then 23208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23209 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23210 fi 23211 # Try to locate tool using the code snippet 23212 for ac_prog in flock 23213 do 23214 # Extract the first word of "$ac_prog", so it can be a program name with args. 23215 set dummy $ac_prog; ac_word=$2 23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23217 $as_echo_n "checking for $ac_word... " >&6; } 23218 if ${ac_cv_path_FLOCK+:} false; then : 23219 $as_echo_n "(cached) " >&6 23220 else 23221 case $FLOCK in 23222 [\\/]* | ?:[\\/]*) 23223 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23224 ;; 23225 *) 23226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23227 for as_dir in $PATH 23228 do 23229 IFS=$as_save_IFS 23230 test -z "$as_dir" && as_dir=. 23231 for ac_exec_ext in '' $ac_executable_extensions; do 23232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23233 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23235 break 2 23236 fi 23237 done 23238 done 23239 IFS=$as_save_IFS 23240 23241 ;; 23242 esac 23243 fi 23244 FLOCK=$ac_cv_path_FLOCK 23245 if test -n "$FLOCK"; then 23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23247 $as_echo "$FLOCK" >&6; } 23248 else 23249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23250 $as_echo "no" >&6; } 23251 fi 23252 23253 23254 test -n "$FLOCK" && break 23255 done 23256 23257 else 23258 # If it succeeded, then it was overridden by the user. We will use it 23259 # for the tool. 23260 23261 # First remove it from the list of overridden variables, so we can test 23262 # for unknown variables in the end. 23263 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23264 23265 # Check if we try to supply an empty value 23266 if test "x$FLOCK" = x; then 23267 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23268 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23270 $as_echo_n "checking for FLOCK... " >&6; } 23271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23272 $as_echo "disabled" >&6; } 23273 else 23274 # Check if the provided tool contains a complete path. 23275 tool_specified="$FLOCK" 23276 tool_basename="${tool_specified##*/}" 23277 if test "x$tool_basename" = "x$tool_specified"; then 23278 # A command without a complete path is provided, search $PATH. 23279 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23280 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23281 # Extract the first word of "$tool_basename", so it can be a program name with args. 23282 set dummy $tool_basename; ac_word=$2 23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23284 $as_echo_n "checking for $ac_word... " >&6; } 23285 if ${ac_cv_path_FLOCK+:} false; then : 23286 $as_echo_n "(cached) " >&6 23287 else 23288 case $FLOCK in 23289 [\\/]* | ?:[\\/]*) 23290 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23291 ;; 23292 *) 23293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23294 for as_dir in $PATH 23295 do 23296 IFS=$as_save_IFS 23297 test -z "$as_dir" && as_dir=. 23298 for ac_exec_ext in '' $ac_executable_extensions; do 23299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23300 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23302 break 2 23303 fi 23304 done 23305 done 23306 IFS=$as_save_IFS 23307 23308 ;; 23309 esac 23310 fi 23311 FLOCK=$ac_cv_path_FLOCK 23312 if test -n "$FLOCK"; then 23313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23314 $as_echo "$FLOCK" >&6; } 23315 else 23316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23317 $as_echo "no" >&6; } 23318 fi 23319 23320 23321 if test "x$FLOCK" = x; then 23322 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23323 fi 23324 else 23325 # Otherwise we believe it is a complete path. Use it as it is. 23326 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23327 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23329 $as_echo_n "checking for FLOCK... " >&6; } 23330 if test ! -x "$tool_specified"; then 23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23332 $as_echo "not found" >&6; } 23333 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23334 fi 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23336 $as_echo "$tool_specified" >&6; } 23337 fi 23338 fi 23339 fi 23340 23341 fi 23342 23343 23344 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23345 # be in the user path. 23346 23347 23348 # Publish this variable in the help. 23349 23350 23351 if [ -z "${DTRACE+x}" ]; then 23352 # The variable is not set by user, try to locate tool using the code snippet 23353 for ac_prog in dtrace 23354 do 23355 # Extract the first word of "$ac_prog", so it can be a program name with args. 23356 set dummy $ac_prog; ac_word=$2 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23358 $as_echo_n "checking for $ac_word... " >&6; } 23359 if ${ac_cv_path_DTRACE+:} false; then : 23360 $as_echo_n "(cached) " >&6 23361 else 23362 case $DTRACE in 23363 [\\/]* | ?:[\\/]*) 23364 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23365 ;; 23366 *) 23367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23368 as_dummy="$PATH:/usr/sbin" 23369 for as_dir in $as_dummy 23370 do 23371 IFS=$as_save_IFS 23372 test -z "$as_dir" && as_dir=. 23373 for ac_exec_ext in '' $ac_executable_extensions; do 23374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23375 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23377 break 2 23378 fi 23379 done 23380 done 23381 IFS=$as_save_IFS 23382 23383 ;; 23384 esac 23385 fi 23386 DTRACE=$ac_cv_path_DTRACE 23387 if test -n "$DTRACE"; then 23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23389 $as_echo "$DTRACE" >&6; } 23390 else 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23392 $as_echo "no" >&6; } 23393 fi 23394 23395 23396 test -n "$DTRACE" && break 23397 done 23398 23399 else 23400 # The variable is set, but is it from the command line or the environment? 23401 23402 # Try to remove the string !DTRACE! from our list. 23403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23405 # If it failed, the variable was not from the command line. Ignore it, 23406 # but warn the user (except for BASH, which is always set by the calling BASH). 23407 if test "xDTRACE" != xBASH; then 23408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23409 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23410 fi 23411 # Try to locate tool using the code snippet 23412 for ac_prog in dtrace 23413 do 23414 # Extract the first word of "$ac_prog", so it can be a program name with args. 23415 set dummy $ac_prog; ac_word=$2 23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23417 $as_echo_n "checking for $ac_word... " >&6; } 23418 if ${ac_cv_path_DTRACE+:} false; then : 23419 $as_echo_n "(cached) " >&6 23420 else 23421 case $DTRACE in 23422 [\\/]* | ?:[\\/]*) 23423 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23424 ;; 23425 *) 23426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23427 as_dummy="$PATH:/usr/sbin" 23428 for as_dir in $as_dummy 23429 do 23430 IFS=$as_save_IFS 23431 test -z "$as_dir" && as_dir=. 23432 for ac_exec_ext in '' $ac_executable_extensions; do 23433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23434 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23436 break 2 23437 fi 23438 done 23439 done 23440 IFS=$as_save_IFS 23441 23442 ;; 23443 esac 23444 fi 23445 DTRACE=$ac_cv_path_DTRACE 23446 if test -n "$DTRACE"; then 23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23448 $as_echo "$DTRACE" >&6; } 23449 else 23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23451 $as_echo "no" >&6; } 23452 fi 23453 23454 23455 test -n "$DTRACE" && break 23456 done 23457 23458 else 23459 # If it succeeded, then it was overridden by the user. We will use it 23460 # for the tool. 23461 23462 # First remove it from the list of overridden variables, so we can test 23463 # for unknown variables in the end. 23464 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23465 23466 # Check if we try to supply an empty value 23467 if test "x$DTRACE" = x; then 23468 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23469 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23471 $as_echo_n "checking for DTRACE... " >&6; } 23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23473 $as_echo "disabled" >&6; } 23474 else 23475 # Check if the provided tool contains a complete path. 23476 tool_specified="$DTRACE" 23477 tool_basename="${tool_specified##*/}" 23478 if test "x$tool_basename" = "x$tool_specified"; then 23479 # A command without a complete path is provided, search $PATH. 23480 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23481 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23482 # Extract the first word of "$tool_basename", so it can be a program name with args. 23483 set dummy $tool_basename; ac_word=$2 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23485 $as_echo_n "checking for $ac_word... " >&6; } 23486 if ${ac_cv_path_DTRACE+:} false; then : 23487 $as_echo_n "(cached) " >&6 23488 else 23489 case $DTRACE in 23490 [\\/]* | ?:[\\/]*) 23491 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23492 ;; 23493 *) 23494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23495 for as_dir in $PATH 23496 do 23497 IFS=$as_save_IFS 23498 test -z "$as_dir" && as_dir=. 23499 for ac_exec_ext in '' $ac_executable_extensions; do 23500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23501 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23503 break 2 23504 fi 23505 done 23506 done 23507 IFS=$as_save_IFS 23508 23509 ;; 23510 esac 23511 fi 23512 DTRACE=$ac_cv_path_DTRACE 23513 if test -n "$DTRACE"; then 23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23515 $as_echo "$DTRACE" >&6; } 23516 else 23517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23518 $as_echo "no" >&6; } 23519 fi 23520 23521 23522 if test "x$DTRACE" = x; then 23523 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23524 fi 23525 else 23526 # Otherwise we believe it is a complete path. Use it as it is. 23527 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23528 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23530 $as_echo_n "checking for DTRACE... " >&6; } 23531 if test ! -x "$tool_specified"; then 23532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23533 $as_echo "not found" >&6; } 23534 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23535 fi 23536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23537 $as_echo "$tool_specified" >&6; } 23538 fi 23539 fi 23540 fi 23541 23542 fi 23543 23544 23545 23546 23547 # Publish this variable in the help. 23548 23549 23550 if [ -z "${PATCH+x}" ]; then 23551 # The variable is not set by user, try to locate tool using the code snippet 23552 for ac_prog in gpatch patch 23553 do 23554 # Extract the first word of "$ac_prog", so it can be a program name with args. 23555 set dummy $ac_prog; ac_word=$2 23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23557 $as_echo_n "checking for $ac_word... " >&6; } 23558 if ${ac_cv_path_PATCH+:} false; then : 23559 $as_echo_n "(cached) " >&6 23560 else 23561 case $PATCH in 23562 [\\/]* | ?:[\\/]*) 23563 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23564 ;; 23565 *) 23566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23567 for as_dir in $PATH 23568 do 23569 IFS=$as_save_IFS 23570 test -z "$as_dir" && as_dir=. 23571 for ac_exec_ext in '' $ac_executable_extensions; do 23572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23573 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23575 break 2 23576 fi 23577 done 23578 done 23579 IFS=$as_save_IFS 23580 23581 ;; 23582 esac 23583 fi 23584 PATCH=$ac_cv_path_PATCH 23585 if test -n "$PATCH"; then 23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23587 $as_echo "$PATCH" >&6; } 23588 else 23589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23590 $as_echo "no" >&6; } 23591 fi 23592 23593 23594 test -n "$PATCH" && break 23595 done 23596 23597 else 23598 # The variable is set, but is it from the command line or the environment? 23599 23600 # Try to remove the string !PATCH! from our list. 23601 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23602 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23603 # If it failed, the variable was not from the command line. Ignore it, 23604 # but warn the user (except for BASH, which is always set by the calling BASH). 23605 if test "xPATCH" != xBASH; then 23606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23607 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23608 fi 23609 # Try to locate tool using the code snippet 23610 for ac_prog in gpatch patch 23611 do 23612 # Extract the first word of "$ac_prog", so it can be a program name with args. 23613 set dummy $ac_prog; ac_word=$2 23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23615 $as_echo_n "checking for $ac_word... " >&6; } 23616 if ${ac_cv_path_PATCH+:} false; then : 23617 $as_echo_n "(cached) " >&6 23618 else 23619 case $PATCH in 23620 [\\/]* | ?:[\\/]*) 23621 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23622 ;; 23623 *) 23624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23625 for as_dir in $PATH 23626 do 23627 IFS=$as_save_IFS 23628 test -z "$as_dir" && as_dir=. 23629 for ac_exec_ext in '' $ac_executable_extensions; do 23630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23631 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23633 break 2 23634 fi 23635 done 23636 done 23637 IFS=$as_save_IFS 23638 23639 ;; 23640 esac 23641 fi 23642 PATCH=$ac_cv_path_PATCH 23643 if test -n "$PATCH"; then 23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23645 $as_echo "$PATCH" >&6; } 23646 else 23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23648 $as_echo "no" >&6; } 23649 fi 23650 23651 23652 test -n "$PATCH" && break 23653 done 23654 23655 else 23656 # If it succeeded, then it was overridden by the user. We will use it 23657 # for the tool. 23658 23659 # First remove it from the list of overridden variables, so we can test 23660 # for unknown variables in the end. 23661 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23662 23663 # Check if we try to supply an empty value 23664 if test "x$PATCH" = x; then 23665 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23666 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23668 $as_echo_n "checking for PATCH... " >&6; } 23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23670 $as_echo "disabled" >&6; } 23671 else 23672 # Check if the provided tool contains a complete path. 23673 tool_specified="$PATCH" 23674 tool_basename="${tool_specified##*/}" 23675 if test "x$tool_basename" = "x$tool_specified"; then 23676 # A command without a complete path is provided, search $PATH. 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23678 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23679 # Extract the first word of "$tool_basename", so it can be a program name with args. 23680 set dummy $tool_basename; ac_word=$2 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23682 $as_echo_n "checking for $ac_word... " >&6; } 23683 if ${ac_cv_path_PATCH+:} false; then : 23684 $as_echo_n "(cached) " >&6 23685 else 23686 case $PATCH in 23687 [\\/]* | ?:[\\/]*) 23688 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23689 ;; 23690 *) 23691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23692 for as_dir in $PATH 23693 do 23694 IFS=$as_save_IFS 23695 test -z "$as_dir" && as_dir=. 23696 for ac_exec_ext in '' $ac_executable_extensions; do 23697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23698 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23700 break 2 23701 fi 23702 done 23703 done 23704 IFS=$as_save_IFS 23705 23706 ;; 23707 esac 23708 fi 23709 PATCH=$ac_cv_path_PATCH 23710 if test -n "$PATCH"; then 23711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23712 $as_echo "$PATCH" >&6; } 23713 else 23714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23715 $as_echo "no" >&6; } 23716 fi 23717 23718 23719 if test "x$PATCH" = x; then 23720 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23721 fi 23722 else 23723 # Otherwise we believe it is a complete path. Use it as it is. 23724 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23725 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23727 $as_echo_n "checking for PATCH... " >&6; } 23728 if test ! -x "$tool_specified"; then 23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23730 $as_echo "not found" >&6; } 23731 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23732 fi 23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23734 $as_echo "$tool_specified" >&6; } 23735 fi 23736 fi 23737 fi 23738 23739 fi 23740 23741 23742 # Check if it's GNU time 23743 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23744 if test "x$IS_GNU_TIME" != x; then 23745 IS_GNU_TIME=yes 23746 else 23747 IS_GNU_TIME=no 23748 fi 23749 23750 23751 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23752 23753 23754 23755 # Publish this variable in the help. 23756 23757 23758 if [ -z "${DSYMUTIL+x}" ]; then 23759 # The variable is not set by user, try to locate tool using the code snippet 23760 for ac_prog in dsymutil 23761 do 23762 # Extract the first word of "$ac_prog", so it can be a program name with args. 23763 set dummy $ac_prog; ac_word=$2 23764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23765 $as_echo_n "checking for $ac_word... " >&6; } 23766 if ${ac_cv_path_DSYMUTIL+:} false; then : 23767 $as_echo_n "(cached) " >&6 23768 else 23769 case $DSYMUTIL in 23770 [\\/]* | ?:[\\/]*) 23771 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23772 ;; 23773 *) 23774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23775 for as_dir in $PATH 23776 do 23777 IFS=$as_save_IFS 23778 test -z "$as_dir" && as_dir=. 23779 for ac_exec_ext in '' $ac_executable_extensions; do 23780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23781 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23783 break 2 23784 fi 23785 done 23786 done 23787 IFS=$as_save_IFS 23788 23789 ;; 23790 esac 23791 fi 23792 DSYMUTIL=$ac_cv_path_DSYMUTIL 23793 if test -n "$DSYMUTIL"; then 23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23795 $as_echo "$DSYMUTIL" >&6; } 23796 else 23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23798 $as_echo "no" >&6; } 23799 fi 23800 23801 23802 test -n "$DSYMUTIL" && break 23803 done 23804 23805 else 23806 # The variable is set, but is it from the command line or the environment? 23807 23808 # Try to remove the string !DSYMUTIL! from our list. 23809 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23810 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23811 # If it failed, the variable was not from the command line. Ignore it, 23812 # but warn the user (except for BASH, which is always set by the calling BASH). 23813 if test "xDSYMUTIL" != xBASH; then 23814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23815 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23816 fi 23817 # Try to locate tool using the code snippet 23818 for ac_prog in dsymutil 23819 do 23820 # Extract the first word of "$ac_prog", so it can be a program name with args. 23821 set dummy $ac_prog; ac_word=$2 23822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23823 $as_echo_n "checking for $ac_word... " >&6; } 23824 if ${ac_cv_path_DSYMUTIL+:} false; then : 23825 $as_echo_n "(cached) " >&6 23826 else 23827 case $DSYMUTIL in 23828 [\\/]* | ?:[\\/]*) 23829 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23830 ;; 23831 *) 23832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23833 for as_dir in $PATH 23834 do 23835 IFS=$as_save_IFS 23836 test -z "$as_dir" && as_dir=. 23837 for ac_exec_ext in '' $ac_executable_extensions; do 23838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23839 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23841 break 2 23842 fi 23843 done 23844 done 23845 IFS=$as_save_IFS 23846 23847 ;; 23848 esac 23849 fi 23850 DSYMUTIL=$ac_cv_path_DSYMUTIL 23851 if test -n "$DSYMUTIL"; then 23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23853 $as_echo "$DSYMUTIL" >&6; } 23854 else 23855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23856 $as_echo "no" >&6; } 23857 fi 23858 23859 23860 test -n "$DSYMUTIL" && break 23861 done 23862 23863 else 23864 # If it succeeded, then it was overridden by the user. We will use it 23865 # for the tool. 23866 23867 # First remove it from the list of overridden variables, so we can test 23868 # for unknown variables in the end. 23869 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23870 23871 # Check if we try to supply an empty value 23872 if test "x$DSYMUTIL" = x; then 23873 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23874 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23876 $as_echo_n "checking for DSYMUTIL... " >&6; } 23877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23878 $as_echo "disabled" >&6; } 23879 else 23880 # Check if the provided tool contains a complete path. 23881 tool_specified="$DSYMUTIL" 23882 tool_basename="${tool_specified##*/}" 23883 if test "x$tool_basename" = "x$tool_specified"; then 23884 # A command without a complete path is provided, search $PATH. 23885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23886 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23887 # Extract the first word of "$tool_basename", so it can be a program name with args. 23888 set dummy $tool_basename; ac_word=$2 23889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23890 $as_echo_n "checking for $ac_word... " >&6; } 23891 if ${ac_cv_path_DSYMUTIL+:} false; then : 23892 $as_echo_n "(cached) " >&6 23893 else 23894 case $DSYMUTIL in 23895 [\\/]* | ?:[\\/]*) 23896 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23897 ;; 23898 *) 23899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23900 for as_dir in $PATH 23901 do 23902 IFS=$as_save_IFS 23903 test -z "$as_dir" && as_dir=. 23904 for ac_exec_ext in '' $ac_executable_extensions; do 23905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23906 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23908 break 2 23909 fi 23910 done 23911 done 23912 IFS=$as_save_IFS 23913 23914 ;; 23915 esac 23916 fi 23917 DSYMUTIL=$ac_cv_path_DSYMUTIL 23918 if test -n "$DSYMUTIL"; then 23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23920 $as_echo "$DSYMUTIL" >&6; } 23921 else 23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23923 $as_echo "no" >&6; } 23924 fi 23925 23926 23927 if test "x$DSYMUTIL" = x; then 23928 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23929 fi 23930 else 23931 # Otherwise we believe it is a complete path. Use it as it is. 23932 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23933 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23935 $as_echo_n "checking for DSYMUTIL... " >&6; } 23936 if test ! -x "$tool_specified"; then 23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23938 $as_echo "not found" >&6; } 23939 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23940 fi 23941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23942 $as_echo "$tool_specified" >&6; } 23943 fi 23944 fi 23945 fi 23946 23947 fi 23948 23949 23950 23951 if test "x$DSYMUTIL" = x; then 23952 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23953 fi 23954 23955 23956 23957 23958 23959 # Publish this variable in the help. 23960 23961 23962 if [ -z "${XATTR+x}" ]; then 23963 # The variable is not set by user, try to locate tool using the code snippet 23964 for ac_prog in xattr 23965 do 23966 # Extract the first word of "$ac_prog", so it can be a program name with args. 23967 set dummy $ac_prog; ac_word=$2 23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23969 $as_echo_n "checking for $ac_word... " >&6; } 23970 if ${ac_cv_path_XATTR+:} false; then : 23971 $as_echo_n "(cached) " >&6 23972 else 23973 case $XATTR in 23974 [\\/]* | ?:[\\/]*) 23975 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23976 ;; 23977 *) 23978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23979 for as_dir in $PATH 23980 do 23981 IFS=$as_save_IFS 23982 test -z "$as_dir" && as_dir=. 23983 for ac_exec_ext in '' $ac_executable_extensions; do 23984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23985 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23987 break 2 23988 fi 23989 done 23990 done 23991 IFS=$as_save_IFS 23992 23993 ;; 23994 esac 23995 fi 23996 XATTR=$ac_cv_path_XATTR 23997 if test -n "$XATTR"; then 23998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23999 $as_echo "$XATTR" >&6; } 24000 else 24001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24002 $as_echo "no" >&6; } 24003 fi 24004 24005 24006 test -n "$XATTR" && break 24007 done 24008 24009 else 24010 # The variable is set, but is it from the command line or the environment? 24011 24012 # Try to remove the string !XATTR! from our list. 24013 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 24014 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24015 # If it failed, the variable was not from the command line. Ignore it, 24016 # but warn the user (except for BASH, which is always set by the calling BASH). 24017 if test "xXATTR" != xBASH; then 24018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 24019 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 24020 fi 24021 # Try to locate tool using the code snippet 24022 for ac_prog in xattr 24023 do 24024 # Extract the first word of "$ac_prog", so it can be a program name with args. 24025 set dummy $ac_prog; ac_word=$2 24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24027 $as_echo_n "checking for $ac_word... " >&6; } 24028 if ${ac_cv_path_XATTR+:} false; then : 24029 $as_echo_n "(cached) " >&6 24030 else 24031 case $XATTR in 24032 [\\/]* | ?:[\\/]*) 24033 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24034 ;; 24035 *) 24036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24037 for as_dir in $PATH 24038 do 24039 IFS=$as_save_IFS 24040 test -z "$as_dir" && as_dir=. 24041 for ac_exec_ext in '' $ac_executable_extensions; do 24042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24043 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24045 break 2 24046 fi 24047 done 24048 done 24049 IFS=$as_save_IFS 24050 24051 ;; 24052 esac 24053 fi 24054 XATTR=$ac_cv_path_XATTR 24055 if test -n "$XATTR"; then 24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24057 $as_echo "$XATTR" >&6; } 24058 else 24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24060 $as_echo "no" >&6; } 24061 fi 24062 24063 24064 test -n "$XATTR" && break 24065 done 24066 24067 else 24068 # If it succeeded, then it was overridden by the user. We will use it 24069 # for the tool. 24070 24071 # First remove it from the list of overridden variables, so we can test 24072 # for unknown variables in the end. 24073 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24074 24075 # Check if we try to supply an empty value 24076 if test "x$XATTR" = x; then 24077 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24078 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24080 $as_echo_n "checking for XATTR... " >&6; } 24081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24082 $as_echo "disabled" >&6; } 24083 else 24084 # Check if the provided tool contains a complete path. 24085 tool_specified="$XATTR" 24086 tool_basename="${tool_specified##*/}" 24087 if test "x$tool_basename" = "x$tool_specified"; then 24088 # A command without a complete path is provided, search $PATH. 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24090 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24091 # Extract the first word of "$tool_basename", so it can be a program name with args. 24092 set dummy $tool_basename; ac_word=$2 24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24094 $as_echo_n "checking for $ac_word... " >&6; } 24095 if ${ac_cv_path_XATTR+:} false; then : 24096 $as_echo_n "(cached) " >&6 24097 else 24098 case $XATTR in 24099 [\\/]* | ?:[\\/]*) 24100 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24101 ;; 24102 *) 24103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24104 for as_dir in $PATH 24105 do 24106 IFS=$as_save_IFS 24107 test -z "$as_dir" && as_dir=. 24108 for ac_exec_ext in '' $ac_executable_extensions; do 24109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24110 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24112 break 2 24113 fi 24114 done 24115 done 24116 IFS=$as_save_IFS 24117 24118 ;; 24119 esac 24120 fi 24121 XATTR=$ac_cv_path_XATTR 24122 if test -n "$XATTR"; then 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24124 $as_echo "$XATTR" >&6; } 24125 else 24126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24127 $as_echo "no" >&6; } 24128 fi 24129 24130 24131 if test "x$XATTR" = x; then 24132 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24133 fi 24134 else 24135 # Otherwise we believe it is a complete path. Use it as it is. 24136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24137 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24139 $as_echo_n "checking for XATTR... " >&6; } 24140 if test ! -x "$tool_specified"; then 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24142 $as_echo "not found" >&6; } 24143 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24144 fi 24145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24146 $as_echo "$tool_specified" >&6; } 24147 fi 24148 fi 24149 fi 24150 24151 fi 24152 24153 24154 24155 if test "x$XATTR" = x; then 24156 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24157 fi 24158 24159 24160 24161 24162 # Publish this variable in the help. 24163 24164 24165 if [ -z "${CODESIGN+x}" ]; then 24166 # The variable is not set by user, try to locate tool using the code snippet 24167 for ac_prog in codesign 24168 do 24169 # Extract the first word of "$ac_prog", so it can be a program name with args. 24170 set dummy $ac_prog; ac_word=$2 24171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24172 $as_echo_n "checking for $ac_word... " >&6; } 24173 if ${ac_cv_path_CODESIGN+:} false; then : 24174 $as_echo_n "(cached) " >&6 24175 else 24176 case $CODESIGN in 24177 [\\/]* | ?:[\\/]*) 24178 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24179 ;; 24180 *) 24181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24182 for as_dir in $PATH 24183 do 24184 IFS=$as_save_IFS 24185 test -z "$as_dir" && as_dir=. 24186 for ac_exec_ext in '' $ac_executable_extensions; do 24187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24188 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24190 break 2 24191 fi 24192 done 24193 done 24194 IFS=$as_save_IFS 24195 24196 ;; 24197 esac 24198 fi 24199 CODESIGN=$ac_cv_path_CODESIGN 24200 if test -n "$CODESIGN"; then 24201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24202 $as_echo "$CODESIGN" >&6; } 24203 else 24204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24205 $as_echo "no" >&6; } 24206 fi 24207 24208 24209 test -n "$CODESIGN" && break 24210 done 24211 24212 else 24213 # The variable is set, but is it from the command line or the environment? 24214 24215 # Try to remove the string !CODESIGN! from our list. 24216 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24217 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24218 # If it failed, the variable was not from the command line. Ignore it, 24219 # but warn the user (except for BASH, which is always set by the calling BASH). 24220 if test "xCODESIGN" != xBASH; then 24221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24222 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24223 fi 24224 # Try to locate tool using the code snippet 24225 for ac_prog in codesign 24226 do 24227 # Extract the first word of "$ac_prog", so it can be a program name with args. 24228 set dummy $ac_prog; ac_word=$2 24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24230 $as_echo_n "checking for $ac_word... " >&6; } 24231 if ${ac_cv_path_CODESIGN+:} false; then : 24232 $as_echo_n "(cached) " >&6 24233 else 24234 case $CODESIGN in 24235 [\\/]* | ?:[\\/]*) 24236 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24237 ;; 24238 *) 24239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24240 for as_dir in $PATH 24241 do 24242 IFS=$as_save_IFS 24243 test -z "$as_dir" && as_dir=. 24244 for ac_exec_ext in '' $ac_executable_extensions; do 24245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24246 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24248 break 2 24249 fi 24250 done 24251 done 24252 IFS=$as_save_IFS 24253 24254 ;; 24255 esac 24256 fi 24257 CODESIGN=$ac_cv_path_CODESIGN 24258 if test -n "$CODESIGN"; then 24259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24260 $as_echo "$CODESIGN" >&6; } 24261 else 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24263 $as_echo "no" >&6; } 24264 fi 24265 24266 24267 test -n "$CODESIGN" && break 24268 done 24269 24270 else 24271 # If it succeeded, then it was overridden by the user. We will use it 24272 # for the tool. 24273 24274 # First remove it from the list of overridden variables, so we can test 24275 # for unknown variables in the end. 24276 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24277 24278 # Check if we try to supply an empty value 24279 if test "x$CODESIGN" = x; then 24280 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24281 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24283 $as_echo_n "checking for CODESIGN... " >&6; } 24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24285 $as_echo "disabled" >&6; } 24286 else 24287 # Check if the provided tool contains a complete path. 24288 tool_specified="$CODESIGN" 24289 tool_basename="${tool_specified##*/}" 24290 if test "x$tool_basename" = "x$tool_specified"; then 24291 # A command without a complete path is provided, search $PATH. 24292 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24293 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24294 # Extract the first word of "$tool_basename", so it can be a program name with args. 24295 set dummy $tool_basename; ac_word=$2 24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24297 $as_echo_n "checking for $ac_word... " >&6; } 24298 if ${ac_cv_path_CODESIGN+:} false; then : 24299 $as_echo_n "(cached) " >&6 24300 else 24301 case $CODESIGN in 24302 [\\/]* | ?:[\\/]*) 24303 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24304 ;; 24305 *) 24306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24307 for as_dir in $PATH 24308 do 24309 IFS=$as_save_IFS 24310 test -z "$as_dir" && as_dir=. 24311 for ac_exec_ext in '' $ac_executable_extensions; do 24312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24313 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24315 break 2 24316 fi 24317 done 24318 done 24319 IFS=$as_save_IFS 24320 24321 ;; 24322 esac 24323 fi 24324 CODESIGN=$ac_cv_path_CODESIGN 24325 if test -n "$CODESIGN"; then 24326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24327 $as_echo "$CODESIGN" >&6; } 24328 else 24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24330 $as_echo "no" >&6; } 24331 fi 24332 24333 24334 if test "x$CODESIGN" = x; then 24335 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24336 fi 24337 else 24338 # Otherwise we believe it is a complete path. Use it as it is. 24339 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24340 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24342 $as_echo_n "checking for CODESIGN... " >&6; } 24343 if test ! -x "$tool_specified"; then 24344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24345 $as_echo "not found" >&6; } 24346 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24347 fi 24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24349 $as_echo "$tool_specified" >&6; } 24350 fi 24351 fi 24352 fi 24353 24354 fi 24355 24356 24357 if test "x$CODESIGN" != "x"; then 24358 # Verify that the openjdk_codesign certificate is present 24359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24360 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24361 $RM codesign-testfile 24362 $TOUCH codesign-testfile 24363 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24364 $RM codesign-testfile 24365 if test "x$CODESIGN" = x; then 24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24367 $as_echo "no" >&6; } 24368 else 24369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24370 $as_echo "yes" >&6; } 24371 fi 24372 fi 24373 24374 24375 24376 # Publish this variable in the help. 24377 24378 24379 if [ -z "${SETFILE+x}" ]; then 24380 # The variable is not set by user, try to locate tool using the code snippet 24381 for ac_prog in SetFile 24382 do 24383 # Extract the first word of "$ac_prog", so it can be a program name with args. 24384 set dummy $ac_prog; ac_word=$2 24385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24386 $as_echo_n "checking for $ac_word... " >&6; } 24387 if ${ac_cv_path_SETFILE+:} false; then : 24388 $as_echo_n "(cached) " >&6 24389 else 24390 case $SETFILE in 24391 [\\/]* | ?:[\\/]*) 24392 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24393 ;; 24394 *) 24395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24396 for as_dir in $PATH 24397 do 24398 IFS=$as_save_IFS 24399 test -z "$as_dir" && as_dir=. 24400 for ac_exec_ext in '' $ac_executable_extensions; do 24401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24402 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24404 break 2 24405 fi 24406 done 24407 done 24408 IFS=$as_save_IFS 24409 24410 ;; 24411 esac 24412 fi 24413 SETFILE=$ac_cv_path_SETFILE 24414 if test -n "$SETFILE"; then 24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24416 $as_echo "$SETFILE" >&6; } 24417 else 24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24419 $as_echo "no" >&6; } 24420 fi 24421 24422 24423 test -n "$SETFILE" && break 24424 done 24425 24426 else 24427 # The variable is set, but is it from the command line or the environment? 24428 24429 # Try to remove the string !SETFILE! from our list. 24430 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24431 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24432 # If it failed, the variable was not from the command line. Ignore it, 24433 # but warn the user (except for BASH, which is always set by the calling BASH). 24434 if test "xSETFILE" != xBASH; then 24435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24436 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24437 fi 24438 # Try to locate tool using the code snippet 24439 for ac_prog in SetFile 24440 do 24441 # Extract the first word of "$ac_prog", so it can be a program name with args. 24442 set dummy $ac_prog; ac_word=$2 24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24444 $as_echo_n "checking for $ac_word... " >&6; } 24445 if ${ac_cv_path_SETFILE+:} false; then : 24446 $as_echo_n "(cached) " >&6 24447 else 24448 case $SETFILE in 24449 [\\/]* | ?:[\\/]*) 24450 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24451 ;; 24452 *) 24453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24454 for as_dir in $PATH 24455 do 24456 IFS=$as_save_IFS 24457 test -z "$as_dir" && as_dir=. 24458 for ac_exec_ext in '' $ac_executable_extensions; do 24459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24460 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24462 break 2 24463 fi 24464 done 24465 done 24466 IFS=$as_save_IFS 24467 24468 ;; 24469 esac 24470 fi 24471 SETFILE=$ac_cv_path_SETFILE 24472 if test -n "$SETFILE"; then 24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24474 $as_echo "$SETFILE" >&6; } 24475 else 24476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24477 $as_echo "no" >&6; } 24478 fi 24479 24480 24481 test -n "$SETFILE" && break 24482 done 24483 24484 else 24485 # If it succeeded, then it was overridden by the user. We will use it 24486 # for the tool. 24487 24488 # First remove it from the list of overridden variables, so we can test 24489 # for unknown variables in the end. 24490 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24491 24492 # Check if we try to supply an empty value 24493 if test "x$SETFILE" = x; then 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24495 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24497 $as_echo_n "checking for SETFILE... " >&6; } 24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24499 $as_echo "disabled" >&6; } 24500 else 24501 # Check if the provided tool contains a complete path. 24502 tool_specified="$SETFILE" 24503 tool_basename="${tool_specified##*/}" 24504 if test "x$tool_basename" = "x$tool_specified"; then 24505 # A command without a complete path is provided, search $PATH. 24506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24507 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24508 # Extract the first word of "$tool_basename", so it can be a program name with args. 24509 set dummy $tool_basename; ac_word=$2 24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24511 $as_echo_n "checking for $ac_word... " >&6; } 24512 if ${ac_cv_path_SETFILE+:} false; then : 24513 $as_echo_n "(cached) " >&6 24514 else 24515 case $SETFILE in 24516 [\\/]* | ?:[\\/]*) 24517 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24518 ;; 24519 *) 24520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24521 for as_dir in $PATH 24522 do 24523 IFS=$as_save_IFS 24524 test -z "$as_dir" && as_dir=. 24525 for ac_exec_ext in '' $ac_executable_extensions; do 24526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24527 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24529 break 2 24530 fi 24531 done 24532 done 24533 IFS=$as_save_IFS 24534 24535 ;; 24536 esac 24537 fi 24538 SETFILE=$ac_cv_path_SETFILE 24539 if test -n "$SETFILE"; then 24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24541 $as_echo "$SETFILE" >&6; } 24542 else 24543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24544 $as_echo "no" >&6; } 24545 fi 24546 24547 24548 if test "x$SETFILE" = x; then 24549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24550 fi 24551 else 24552 # Otherwise we believe it is a complete path. Use it as it is. 24553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24554 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24556 $as_echo_n "checking for SETFILE... " >&6; } 24557 if test ! -x "$tool_specified"; then 24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24559 $as_echo "not found" >&6; } 24560 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24561 fi 24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24563 $as_echo "$tool_specified" >&6; } 24564 fi 24565 fi 24566 fi 24567 24568 fi 24569 24570 24571 24572 if test "x$SETFILE" = x; then 24573 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24574 fi 24575 24576 24577 fi 24578 24579 24580 # Check bash version 24581 # Extra [ ] to stop m4 mangling 24582 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24584 $as_echo_n "checking bash version... " >&6; } 24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24586 $as_echo "$BASH_VER" >&6; } 24587 24588 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24589 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24590 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24591 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24592 fi 24593 24594 # Test if bash supports pipefail. 24595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24596 $as_echo_n "checking if bash supports pipefail... " >&6; } 24597 if ${BASH} -c 'set -o pipefail'; then 24598 BASH_ARGS="$BASH_ARGS -o pipefail" 24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24600 $as_echo "yes" >&6; } 24601 else 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24603 $as_echo "no" >&6; } 24604 fi 24605 24606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24607 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24608 if ${BASH} -e -c 'true'; then 24609 BASH_ARGS="$BASH_ARGS -e" 24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24611 $as_echo "yes" >&6; } 24612 else 24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24614 $as_echo "no" >&6; } 24615 fi 24616 24617 24618 24619 24620 # Check if pkg-config is available. 24621 24622 24623 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24624 if test -n "$ac_tool_prefix"; then 24625 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24626 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24628 $as_echo_n "checking for $ac_word... " >&6; } 24629 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24630 $as_echo_n "(cached) " >&6 24631 else 24632 case $PKG_CONFIG in 24633 [\\/]* | ?:[\\/]*) 24634 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24635 ;; 24636 *) 24637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24638 for as_dir in $PATH 24639 do 24640 IFS=$as_save_IFS 24641 test -z "$as_dir" && as_dir=. 24642 for ac_exec_ext in '' $ac_executable_extensions; do 24643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24644 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24646 break 2 24647 fi 24648 done 24649 done 24650 IFS=$as_save_IFS 24651 24652 ;; 24653 esac 24654 fi 24655 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24656 if test -n "$PKG_CONFIG"; then 24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24658 $as_echo "$PKG_CONFIG" >&6; } 24659 else 24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24661 $as_echo "no" >&6; } 24662 fi 24663 24664 24665 fi 24666 if test -z "$ac_cv_path_PKG_CONFIG"; then 24667 ac_pt_PKG_CONFIG=$PKG_CONFIG 24668 # Extract the first word of "pkg-config", so it can be a program name with args. 24669 set dummy pkg-config; ac_word=$2 24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24671 $as_echo_n "checking for $ac_word... " >&6; } 24672 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24673 $as_echo_n "(cached) " >&6 24674 else 24675 case $ac_pt_PKG_CONFIG in 24676 [\\/]* | ?:[\\/]*) 24677 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24678 ;; 24679 *) 24680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24681 for as_dir in $PATH 24682 do 24683 IFS=$as_save_IFS 24684 test -z "$as_dir" && as_dir=. 24685 for ac_exec_ext in '' $ac_executable_extensions; do 24686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24687 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24689 break 2 24690 fi 24691 done 24692 done 24693 IFS=$as_save_IFS 24694 24695 ;; 24696 esac 24697 fi 24698 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24699 if test -n "$ac_pt_PKG_CONFIG"; then 24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24701 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24702 else 24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24704 $as_echo "no" >&6; } 24705 fi 24706 24707 if test "x$ac_pt_PKG_CONFIG" = x; then 24708 PKG_CONFIG="" 24709 else 24710 case $cross_compiling:$ac_tool_warned in 24711 yes:) 24712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24714 ac_tool_warned=yes ;; 24715 esac 24716 PKG_CONFIG=$ac_pt_PKG_CONFIG 24717 fi 24718 else 24719 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24720 fi 24721 24722 fi 24723 if test -n "$PKG_CONFIG"; then 24724 _pkg_min_version=0.9.0 24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24726 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24727 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24729 $as_echo "yes" >&6; } 24730 else 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24732 $as_echo "no" >&6; } 24733 PKG_CONFIG="" 24734 fi 24735 24736 fi 24737 24738 # After basic tools have been setup, we can check build os specific details. 24739 24740 ############################################################################### 24741 24742 # Note that this is the build platform OS version! 24743 24744 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24745 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24746 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24747 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24748 24749 24750 24751 24752 24753 # Misc basic settings 24754 24755 24756 # Check whether --with-default-make-target was given. 24757 if test "${with_default_make_target+set}" = set; then : 24758 withval=$with_default_make_target; 24759 fi 24760 24761 if test "x$with_default_make_target" = "x" \ 24762 || test "x$with_default_make_target" = "xyes"; then 24763 DEFAULT_MAKE_TARGET="exploded-image" 24764 elif test "x$with_default_make_target" = "xno"; then 24765 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24766 else 24767 DEFAULT_MAKE_TARGET="$with_default_make_target" 24768 fi 24769 24770 24771 24772 24773 ############################################################################### 24774 # 24775 # Determine OpenJDK variants, options and version numbers. 24776 # 24777 ############################################################################### 24778 24779 # We need build & target for this. 24780 24781 # Should we build a JDK without a graphical UI? 24782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24783 $as_echo_n "checking headless only... " >&6; } 24784 # Check whether --enable-headless-only was given. 24785 if test "${enable_headless_only+set}" = set; then : 24786 enableval=$enable_headless_only; 24787 fi 24788 24789 24790 if test "x$enable_headless_only" = "xyes"; then 24791 ENABLE_HEADLESS_ONLY="true" 24792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24793 $as_echo "yes" >&6; } 24794 elif test "x$enable_headless_only" = "xno"; then 24795 ENABLE_HEADLESS_ONLY="false" 24796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24797 $as_echo "no" >&6; } 24798 elif test "x$enable_headless_only" = "x"; then 24799 ENABLE_HEADLESS_ONLY="false" 24800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24801 $as_echo "no" >&6; } 24802 else 24803 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24804 fi 24805 24806 24807 24808 # Should we build the complete docs, or just a lightweight version? 24809 # Check whether --enable-full-docs was given. 24810 if test "${enable_full_docs+set}" = set; then : 24811 enableval=$enable_full_docs; 24812 fi 24813 24814 24815 # Verify dependencies 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 24817 $as_echo_n "checking for graphviz dot... " >&6; } 24818 if test "x$DOT" != "x"; then 24819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24820 $as_echo "yes" >&6; } 24821 else 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24823 $as_echo "no, cannot generate full docs" >&6; } 24824 FULL_DOCS_DEP_MISSING=true 24825 fi 24826 24827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 24828 $as_echo_n "checking for pandoc... " >&6; } 24829 if test "x$PANDOC" != "x"; then 24830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24831 $as_echo "yes" >&6; } 24832 else 24833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24834 $as_echo "no, cannot generate full docs" >&6; } 24835 FULL_DOCS_DEP_MISSING=true 24836 fi 24837 24838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 24839 $as_echo_n "checking full docs... " >&6; } 24840 if test "x$enable_full_docs" = xyes; then 24841 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24843 $as_echo "no, missing dependencies" >&6; } 24844 24845 # Print a helpful message on how to acquire the necessary build dependency. 24846 # dot is the help tag: freetype, cups, alsa etc 24847 MISSING_DEPENDENCY=dot 24848 24849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24850 cygwin_help $MISSING_DEPENDENCY 24851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24852 msys_help $MISSING_DEPENDENCY 24853 else 24854 PKGHANDLER_COMMAND= 24855 24856 case $PKGHANDLER in 24857 apt-get) 24858 apt_help $MISSING_DEPENDENCY ;; 24859 yum) 24860 yum_help $MISSING_DEPENDENCY ;; 24861 brew) 24862 brew_help $MISSING_DEPENDENCY ;; 24863 port) 24864 port_help $MISSING_DEPENDENCY ;; 24865 pkgutil) 24866 pkgutil_help $MISSING_DEPENDENCY ;; 24867 pkgadd) 24868 pkgadd_help $MISSING_DEPENDENCY ;; 24869 esac 24870 24871 if test "x$PKGHANDLER_COMMAND" != x; then 24872 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24873 fi 24874 fi 24875 24876 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 24877 else 24878 ENABLE_FULL_DOCS=true 24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 24880 $as_echo "yes, forced" >&6; } 24881 fi 24882 elif test "x$enable_full_docs" = xno; then 24883 ENABLE_FULL_DOCS=false 24884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 24885 $as_echo "no, forced" >&6; } 24886 elif test "x$enable_full_docs" = x; then 24887 # Check for prerequisites 24888 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 24889 ENABLE_FULL_DOCS=false 24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24891 $as_echo "no, missing dependencies" >&6; } 24892 else 24893 ENABLE_FULL_DOCS=true 24894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 24895 $as_echo "yes, dependencies present" >&6; } 24896 fi 24897 else 24898 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 24899 fi 24900 24901 24902 24903 # Choose cacerts source file 24904 24905 # Check whether --with-cacerts-file was given. 24906 if test "${with_cacerts_file+set}" = set; then : 24907 withval=$with_cacerts_file; 24908 fi 24909 24910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5 24911 $as_echo_n "checking for cacerts file... " >&6; } 24912 if test "x$with_cacerts_file" == x; then 24913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 24914 $as_echo "default" >&6; } 24915 else 24916 CACERTS_FILE=$with_cacerts_file 24917 if test ! -f "$CACERTS_FILE"; then 24918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 24919 $as_echo "fail" >&6; } 24920 as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5 24921 fi 24922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5 24923 $as_echo "$CACERTS_FILE" >&6; } 24924 fi 24925 24926 24927 # Enable or disable unlimited crypto 24928 # Check whether --enable-unlimited-crypto was given. 24929 if test "${enable_unlimited_crypto+set}" = set; then : 24930 enableval=$enable_unlimited_crypto; 24931 else 24932 enable_unlimited_crypto=yes 24933 fi 24934 24935 if test "x$enable_unlimited_crypto" = "xyes"; then 24936 UNLIMITED_CRYPTO=true 24937 else 24938 UNLIMITED_CRYPTO=false 24939 fi 24940 24941 24942 # Should we build the serviceability agent (SA)? 24943 INCLUDE_SA=true 24944 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 24945 INCLUDE_SA=false 24946 fi 24947 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24948 INCLUDE_SA=false 24949 fi 24950 24951 24952 # Compress jars 24953 COMPRESS_JARS=false 24954 24955 24956 24957 # Setup default copyright year. Mostly overridden when building close to a new year. 24958 24959 # Check whether --with-copyright-year was given. 24960 if test "${with_copyright_year+set}" = set; then : 24961 withval=$with_copyright_year; 24962 fi 24963 24964 if test "x$with_copyright_year" = xyes; then 24965 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24966 elif test "x$with_copyright_year" != x; then 24967 COPYRIGHT_YEAR="$with_copyright_year" 24968 else 24969 COPYRIGHT_YEAR=`$DATE +'%Y'` 24970 fi 24971 24972 24973 24974 # Check whether --enable-keep-packaged-modules was given. 24975 if test "${enable_keep_packaged_modules+set}" = set; then : 24976 enableval=$enable_keep_packaged_modules; 24977 fi 24978 24979 24980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24981 $as_echo_n "checking if packaged modules are kept... " >&6; } 24982 if test "x$enable_keep_packaged_modules" = "xyes"; then 24983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24984 $as_echo "yes" >&6; } 24985 JLINK_KEEP_PACKAGED_MODULES=true 24986 elif test "x$enable_keep_packaged_modules" = "xno"; then 24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24988 $as_echo "no" >&6; } 24989 JLINK_KEEP_PACKAGED_MODULES=false 24990 elif test "x$enable_keep_packaged_modules" = "x"; then 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24992 $as_echo "yes (default)" >&6; } 24993 JLINK_KEEP_PACKAGED_MODULES=true 24994 else 24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 24996 $as_echo "error" >&6; } 24997 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24998 fi 24999 25000 25001 25002 25003 # Warn user that old version arguments are deprecated. 25004 25005 25006 # Check whether --with-milestone was given. 25007 if test "${with_milestone+set}" = set; then : 25008 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 25009 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 25010 fi 25011 25012 25013 25014 25015 # Check whether --with-update-version was given. 25016 if test "${with_update_version+set}" = set; then : 25017 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 25018 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 25019 fi 25020 25021 25022 25023 25024 # Check whether --with-user-release-suffix was given. 25025 if test "${with_user_release_suffix+set}" = set; then : 25026 withval=$with_user_release_suffix; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&5 25027 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 25028 fi 25029 25030 25031 25032 25033 # Check whether --with-build-number was given. 25034 if test "${with_build_number+set}" = set; then : 25035 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25036 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25037 fi 25038 25039 25040 25041 25042 # Check whether --with-version-major was given. 25043 if test "${with_version_major+set}" = set; then : 25044 withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5 25045 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;} 25046 fi 25047 25048 25049 25050 25051 # Check whether --with-version-minor was given. 25052 if test "${with_version_minor+set}" = set; then : 25053 withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5 25054 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;} 25055 fi 25056 25057 25058 25059 25060 # Check whether --with-version-security was given. 25061 if test "${with_version_security+set}" = set; then : 25062 withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5 25063 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;} 25064 fi 25065 25066 25067 25068 # Source the version numbers file 25069 . $AUTOCONF_DIR/version-numbers 25070 25071 # Some non-version number information is set in that file 25072 25073 25074 25075 25076 25077 25078 25079 25080 # The vendor name, if any 25081 25082 # Check whether --with-vendor-name was given. 25083 if test "${with_vendor_name+set}" = set; then : 25084 withval=$with_vendor_name; 25085 fi 25086 25087 if test "x$with_vendor_name" = xyes; then 25088 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 25089 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 25090 as_fn_error $? "--with-vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 25091 elif test "x$with_vendor_name" != x; then 25092 # Only set COMPANY_NAME if '--with-vendor-name' was used and is not empty. 25093 # Otherwise we will use the value from "version-numbers" included above. 25094 COMPANY_NAME="$with_vendor_name" 25095 fi 25096 25097 25098 # The vendor URL, if any 25099 25100 # Check whether --with-vendor-url was given. 25101 if test "${with_vendor_url+set}" = set; then : 25102 withval=$with_vendor_url; 25103 fi 25104 25105 if test "x$with_vendor_url" = xyes; then 25106 as_fn_error $? "--with-vendor-url must have a value" "$LINENO" 5 25107 elif ! [[ $with_vendor_url =~ ^[[:print:]]*$ ]] ; then 25108 as_fn_error $? "--with-vendor-url contains non-printing characters: $with_vendor_url" "$LINENO" 5 25109 else 25110 VENDOR_URL="$with_vendor_url" 25111 fi 25112 25113 25114 # The vendor bug URL, if any 25115 25116 # Check whether --with-vendor-bug-url was given. 25117 if test "${with_vendor_bug_url+set}" = set; then : 25118 withval=$with_vendor_bug_url; 25119 fi 25120 25121 if test "x$with_vendor_bug_url" = xyes; then 25122 as_fn_error $? "--with-vendor-bug-url must have a value" "$LINENO" 5 25123 elif ! [[ $with_vendor_bug_url =~ ^[[:print:]]*$ ]] ; then 25124 as_fn_error $? "--with-vendor-bug-url contains non-printing characters: $with_vendor_bug_url" "$LINENO" 5 25125 else 25126 VENDOR_URL_BUG="$with_vendor_bug_url" 25127 fi 25128 25129 25130 # The vendor VM bug URL, if any 25131 25132 # Check whether --with-vendor-vm-bug-url was given. 25133 if test "${with_vendor_vm_bug_url+set}" = set; then : 25134 withval=$with_vendor_vm_bug_url; 25135 fi 25136 25137 if test "x$with_vendor_vm_bug_url" = xyes; then 25138 as_fn_error $? "--with-vendor-vm-bug-url must have a value" "$LINENO" 5 25139 elif ! [[ $with_vendor_vm_bug_url =~ ^[[:print:]]*$ ]] ; then 25140 as_fn_error $? "--with-vendor-vm-bug-url contains non-printing characters: $with_vendor_vm_bug_url" "$LINENO" 5 25141 else 25142 VENDOR_URL_VM_BUG="$with_vendor_vm_bug_url" 25143 fi 25144 25145 25146 # Override version from arguments 25147 25148 # If --with-version-string is set, process it first. It is possible to 25149 # override parts with more specific flags, since these are processed later. 25150 25151 # Check whether --with-version-string was given. 25152 if test "${with_version_string+set}" = set; then : 25153 withval=$with_version_string; 25154 fi 25155 25156 if test "x$with_version_string" = xyes; then 25157 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25158 elif test "x$with_version_string" != x; then 25159 # Additional [] needed to keep m4 from mangling shell constructs. 25160 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25161 VERSION_FEATURE=${BASH_REMATCH[1]} 25162 VERSION_INTERIM=${BASH_REMATCH[3]} 25163 VERSION_UPDATE=${BASH_REMATCH[5]} 25164 VERSION_PATCH=${BASH_REMATCH[7]} 25165 VERSION_PRE=${BASH_REMATCH[9]} 25166 version_plus_separator=${BASH_REMATCH[11]} 25167 VERSION_BUILD=${BASH_REMATCH[12]} 25168 VERSION_OPT=${BASH_REMATCH[14]} 25169 # Unspecified numerical fields are interpreted as 0. 25170 if test "x$VERSION_INTERIM" = x; then 25171 VERSION_INTERIM=0 25172 fi 25173 if test "x$VERSION_UPDATE" = x; then 25174 VERSION_UPDATE=0 25175 fi 25176 if test "x$VERSION_PATCH" = x; then 25177 VERSION_PATCH=0 25178 fi 25179 if test "x$version_plus_separator" != x \ 25180 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25181 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25182 fi 25183 # Stop the version part process from setting default values. 25184 # We still allow them to explicitly override though. 25185 NO_DEFAULT_VERSION_PARTS=true 25186 else 25187 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25188 fi 25189 fi 25190 25191 25192 # Check whether --with-version-pre was given. 25193 if test "${with_version_pre+set}" = set; then : 25194 withval=$with_version_pre; with_version_pre_present=true 25195 else 25196 with_version_pre_present=false 25197 fi 25198 25199 25200 if test "x$with_version_pre_present" = xtrue; then 25201 if test "x$with_version_pre" = xyes; then 25202 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25203 elif test "x$with_version_pre" = xno; then 25204 # Interpret --without-* as empty string instead of the literal "no" 25205 VERSION_PRE= 25206 else 25207 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25208 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25209 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25211 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25212 fi 25213 fi 25214 else 25215 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25216 # Default is to use "internal" as pre 25217 VERSION_PRE="internal" 25218 fi 25219 fi 25220 25221 25222 # Check whether --with-version-opt was given. 25223 if test "${with_version_opt+set}" = set; then : 25224 withval=$with_version_opt; with_version_opt_present=true 25225 else 25226 with_version_opt_present=false 25227 fi 25228 25229 25230 if test "x$with_version_opt_present" = xtrue; then 25231 if test "x$with_version_opt" = xyes; then 25232 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25233 elif test "x$with_version_opt" = xno; then 25234 # Interpret --without-* as empty string instead of the literal "no" 25235 VERSION_OPT= 25236 else 25237 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25238 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25239 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25241 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25242 fi 25243 fi 25244 else 25245 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25246 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25247 # Outer [ ] to quote m4. 25248 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25249 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25250 fi 25251 fi 25252 25253 25254 # Check whether --with-version-build was given. 25255 if test "${with_version_build+set}" = set; then : 25256 withval=$with_version_build; with_version_build_present=true 25257 else 25258 with_version_build_present=false 25259 fi 25260 25261 25262 if test "x$with_version_build_present" = xtrue; then 25263 if test "x$with_version_build" = xyes; then 25264 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25265 elif test "x$with_version_build" = xno; then 25266 # Interpret --without-* as empty string instead of the literal "no" 25267 VERSION_BUILD= 25268 elif test "x$with_version_build" = x; then 25269 VERSION_BUILD= 25270 else 25271 25272 # Additional [] needed to keep m4 from mangling shell constructs. 25273 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25274 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25275 fi 25276 # Extract the version number without leading zeros. 25277 cleaned_value=${BASH_REMATCH[1]} 25278 if test "x$cleaned_value" = x; then 25279 # Special case for zero 25280 cleaned_value=${BASH_REMATCH[2]} 25281 fi 25282 25283 if test $cleaned_value -gt 255; then 25284 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25285 fi 25286 if test "x$cleaned_value" != "x$with_version_build"; then 25287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25288 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25289 fi 25290 VERSION_BUILD=$cleaned_value 25291 25292 fi 25293 else 25294 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25295 # Default is to not have a build number. 25296 VERSION_BUILD="" 25297 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25298 VERSION_BUILD=0 25299 fi 25300 fi 25301 25302 25303 # Check whether --with-version-feature was given. 25304 if test "${with_version_feature+set}" = set; then : 25305 withval=$with_version_feature; with_version_feature_present=true 25306 else 25307 with_version_feature_present=false 25308 fi 25309 25310 25311 if test "x$with_version_feature_present" = xtrue; then 25312 if test "x$with_version_feature" = xyes; then 25313 as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5 25314 else 25315 25316 # Additional [] needed to keep m4 from mangling shell constructs. 25317 if ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25318 as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5 25319 fi 25320 # Extract the version number without leading zeros. 25321 cleaned_value=${BASH_REMATCH[1]} 25322 if test "x$cleaned_value" = x; then 25323 # Special case for zero 25324 cleaned_value=${BASH_REMATCH[2]} 25325 fi 25326 25327 if test $cleaned_value -gt 255; then 25328 as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5 25329 fi 25330 if test "x$cleaned_value" != "x$with_version_feature"; then 25331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5 25332 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;} 25333 fi 25334 VERSION_FEATURE=$cleaned_value 25335 25336 fi 25337 else 25338 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25339 # Default is to get value from version-numbers 25340 VERSION_FEATURE="$DEFAULT_VERSION_FEATURE" 25341 fi 25342 fi 25343 25344 25345 # Check whether --with-version-interim was given. 25346 if test "${with_version_interim+set}" = set; then : 25347 withval=$with_version_interim; with_version_interim_present=true 25348 else 25349 with_version_interim_present=false 25350 fi 25351 25352 25353 if test "x$with_version_interim_present" = xtrue; then 25354 if test "x$with_version_interim" = xyes; then 25355 as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5 25356 elif test "x$with_version_interim" = xno; then 25357 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25358 VERSION_INTERIM=0 25359 elif test "x$with_version_interim" = x; then 25360 VERSION_INTERIM=0 25361 else 25362 25363 # Additional [] needed to keep m4 from mangling shell constructs. 25364 if ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25365 as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5 25366 fi 25367 # Extract the version number without leading zeros. 25368 cleaned_value=${BASH_REMATCH[1]} 25369 if test "x$cleaned_value" = x; then 25370 # Special case for zero 25371 cleaned_value=${BASH_REMATCH[2]} 25372 fi 25373 25374 if test $cleaned_value -gt 255; then 25375 as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5 25376 fi 25377 if test "x$cleaned_value" != "x$with_version_interim"; then 25378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5 25379 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;} 25380 fi 25381 VERSION_INTERIM=$cleaned_value 25382 25383 fi 25384 else 25385 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25386 # Default is 0, if unspecified 25387 VERSION_INTERIM=$DEFAULT_VERSION_INTERIM 25388 fi 25389 fi 25390 25391 25392 # Check whether --with-version-update was given. 25393 if test "${with_version_update+set}" = set; then : 25394 withval=$with_version_update; with_version_update_present=true 25395 else 25396 with_version_update_present=false 25397 fi 25398 25399 25400 if test "x$with_version_update_present" = xtrue; then 25401 if test "x$with_version_update" = xyes; then 25402 as_fn_error $? "--with-version-update must have a value" "$LINENO" 5 25403 elif test "x$with_version_update" = xno; then 25404 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25405 VERSION_UPDATE=0 25406 elif test "x$with_version_update" = x; then 25407 VERSION_UPDATE=0 25408 else 25409 25410 # Additional [] needed to keep m4 from mangling shell constructs. 25411 if ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25412 as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5 25413 fi 25414 # Extract the version number without leading zeros. 25415 cleaned_value=${BASH_REMATCH[1]} 25416 if test "x$cleaned_value" = x; then 25417 # Special case for zero 25418 cleaned_value=${BASH_REMATCH[2]} 25419 fi 25420 25421 if test $cleaned_value -gt 255; then 25422 as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5 25423 fi 25424 if test "x$cleaned_value" != "x$with_version_update"; then 25425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5 25426 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;} 25427 fi 25428 VERSION_UPDATE=$cleaned_value 25429 25430 fi 25431 else 25432 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25433 # Default is 0, if unspecified 25434 VERSION_UPDATE=$DEFAULT_VERSION_UPDATE 25435 fi 25436 fi 25437 25438 25439 # Check whether --with-version-patch was given. 25440 if test "${with_version_patch+set}" = set; then : 25441 withval=$with_version_patch; with_version_patch_present=true 25442 else 25443 with_version_patch_present=false 25444 fi 25445 25446 25447 if test "x$with_version_patch_present" = xtrue; then 25448 if test "x$with_version_patch" = xyes; then 25449 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25450 elif test "x$with_version_patch" = xno; then 25451 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25452 VERSION_PATCH=0 25453 elif test "x$with_version_patch" = x; then 25454 VERSION_PATCH=0 25455 else 25456 25457 # Additional [] needed to keep m4 from mangling shell constructs. 25458 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25459 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25460 fi 25461 # Extract the version number without leading zeros. 25462 cleaned_value=${BASH_REMATCH[1]} 25463 if test "x$cleaned_value" = x; then 25464 # Special case for zero 25465 cleaned_value=${BASH_REMATCH[2]} 25466 fi 25467 25468 if test $cleaned_value -gt 255; then 25469 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25470 fi 25471 if test "x$cleaned_value" != "x$with_version_patch"; then 25472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25473 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25474 fi 25475 VERSION_PATCH=$cleaned_value 25476 25477 fi 25478 else 25479 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25480 # Default is 0, if unspecified 25481 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25482 fi 25483 fi 25484 25485 # Calculate derived version properties 25486 25487 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25488 if test "x$VERSION_PRE" = x; then 25489 VERSION_IS_GA=true 25490 else 25491 VERSION_IS_GA=false 25492 fi 25493 25494 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25495 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH 25496 25497 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25498 # Strip trailing zeroes from stripped_version_number 25499 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25500 VERSION_NUMBER=$stripped_version_number 25501 25502 # The complete version string, with additional build information 25503 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25504 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25505 else 25506 # If either build or opt is set, we need a + separator 25507 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25508 fi 25509 25510 # The short version string, just VERSION_NUMBER and PRE, if present. 25511 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25512 25513 # The version date 25514 25515 # Check whether --with-version-date was given. 25516 if test "${with_version_date+set}" = set; then : 25517 withval=$with_version_date; 25518 fi 25519 25520 if test "x$with_version_date" = xyes; then 25521 as_fn_error $? "--with-version-date must have a value" "$LINENO" 5 25522 elif test "x$with_version_date" != x; then 25523 if ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then 25524 as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5 25525 else 25526 VERSION_DATE="$with_version_date" 25527 fi 25528 else 25529 VERSION_DATE="$DEFAULT_VERSION_DATE" 25530 fi 25531 25532 # The vendor version string, if any 25533 25534 # Check whether --with-vendor-version-string was given. 25535 if test "${with_vendor_version_string+set}" = set; then : 25536 withval=$with_vendor_version_string; 25537 fi 25538 25539 if test "x$with_vendor_version_string" = xyes; then 25540 as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5 25541 elif ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then 25542 as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5 25543 else 25544 VENDOR_VERSION_STRING="$with_vendor_version_string" 25545 fi 25546 25547 # We could define --with flags for these, if really needed 25548 VERSION_CLASSFILE_MAJOR="$DEFAULT_VERSION_CLASSFILE_MAJOR" 25549 VERSION_CLASSFILE_MINOR="$DEFAULT_VERSION_CLASSFILE_MINOR" 25550 25551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25552 $as_echo_n "checking for version string... " >&6; } 25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25554 $as_echo "$VERSION_STRING" >&6; } 25555 25556 25557 25558 25559 25560 25561 25562 25563 25564 25565 25566 25567 25568 25569 25570 25571 25572 25573 25574 25575 ############################################################################### 25576 # 25577 # Setup BootJDK, used to bootstrap the build. 25578 # 25579 ############################################################################### 25580 25581 25582 BOOT_JDK_FOUND=no 25583 25584 # Check whether --with-boot-jdk was given. 25585 if test "${with_boot_jdk+set}" = set; then : 25586 withval=$with_boot_jdk; 25587 fi 25588 25589 25590 # We look for the Boot JDK through various means, going from more certain to 25591 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25592 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25593 # must check if this is indeed valid; otherwise we'll continue looking. 25594 25595 # Test: Is bootjdk explicitly set by command line arguments? 25596 25597 if test "x$BOOT_JDK_FOUND" = xno; then 25598 # Now execute the test 25599 25600 if test "x$with_boot_jdk" != x; then 25601 BOOT_JDK=$with_boot_jdk 25602 BOOT_JDK_FOUND=maybe 25603 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25604 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25605 fi 25606 25607 25608 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25609 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25610 # Do we have a bin/java? 25611 if test ! -x "$BOOT_JDK/bin/java"; then 25612 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25613 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25614 BOOT_JDK_FOUND=no 25615 else 25616 # Do we have a bin/javac? 25617 if test ! -x "$BOOT_JDK/bin/javac"; then 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25620 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25621 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25622 BOOT_JDK_FOUND=no 25623 else 25624 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25625 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25626 25627 # Extra M4 quote needed to protect [] in grep expression. 25628 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25629 if test "x$FOUND_CORRECT_VERSION" = x; then 25630 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25633 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25634 BOOT_JDK_FOUND=no 25635 else 25636 # We're done! :-) 25637 BOOT_JDK_FOUND=yes 25638 25639 # Only process if variable expands to non-empty 25640 25641 if test "x$BOOT_JDK" != x; then 25642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25643 25644 # Input might be given as Windows format, start by converting to 25645 # unix format. 25646 path="$BOOT_JDK" 25647 new_path=`$CYGPATH -u "$path"` 25648 25649 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25650 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25651 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25652 # "foo.exe" is OK but "foo" is an error. 25653 # 25654 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25655 # It is also a way to make sure we got the proper file name for the real test later on. 25656 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25657 if test "x$test_shortpath" = x; then 25658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25659 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25660 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25661 fi 25662 25663 # Call helper function which possibly converts this using DOS-style short mode. 25664 # If so, the updated path is stored in $new_path. 25665 25666 input_path="$new_path" 25667 # Check if we need to convert this using DOS-style short mode. If the path 25668 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25669 # take no chances and rewrite it. 25670 # Note: m4 eats our [], so we need to use [ and ] instead. 25671 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25672 if test "x$has_forbidden_chars" != x; then 25673 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25674 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25675 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25676 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25677 # Going to short mode and back again did indeed matter. Since short mode is 25678 # case insensitive, let's make it lowercase to improve readability. 25679 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25680 # Now convert it back to Unix-style (cygpath) 25681 input_path=`$CYGPATH -u "$shortmode_path"` 25682 new_path="$input_path" 25683 fi 25684 fi 25685 25686 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25687 if test "x$test_cygdrive_prefix" = x; then 25688 # As a simple fix, exclude /usr/bin since it's not a real path. 25689 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25690 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25691 # a path prefixed by /cygdrive for fixpath to work. 25692 new_path="$CYGWIN_ROOT_PATH$input_path" 25693 fi 25694 fi 25695 25696 25697 if test "x$path" != "x$new_path"; then 25698 BOOT_JDK="$new_path" 25699 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25700 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25701 fi 25702 25703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25704 25705 path="$BOOT_JDK" 25706 has_colon=`$ECHO $path | $GREP ^.:` 25707 new_path="$path" 25708 if test "x$has_colon" = x; then 25709 # Not in mixed or Windows style, start by that. 25710 new_path=`cmd //c echo $path` 25711 fi 25712 25713 25714 input_path="$new_path" 25715 # Check if we need to convert this using DOS-style short mode. If the path 25716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25717 # take no chances and rewrite it. 25718 # Note: m4 eats our [], so we need to use [ and ] instead. 25719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25720 if test "x$has_forbidden_chars" != x; then 25721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25722 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25723 fi 25724 25725 25726 windows_path="$new_path" 25727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25728 unix_path=`$CYGPATH -u "$windows_path"` 25729 new_path="$unix_path" 25730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25732 new_path="$unix_path" 25733 fi 25734 25735 if test "x$path" != "x$new_path"; then 25736 BOOT_JDK="$new_path" 25737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25738 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25739 fi 25740 25741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25743 25744 else 25745 # We're on a unix platform. Hooray! :) 25746 path="$BOOT_JDK" 25747 has_space=`$ECHO "$path" | $GREP " "` 25748 if test "x$has_space" != x; then 25749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25750 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25751 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25752 fi 25753 25754 # Use eval to expand a potential ~ 25755 eval path="$path" 25756 if test ! -f "$path" && test ! -d "$path"; then 25757 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25758 fi 25759 25760 if test -d "$path"; then 25761 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25762 else 25763 dir="`$DIRNAME "$path"`" 25764 base="`$BASENAME "$path"`" 25765 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25766 fi 25767 fi 25768 fi 25769 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25771 $as_echo_n "checking for Boot JDK... " >&6; } 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25773 $as_echo "$BOOT_JDK" >&6; } 25774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25775 $as_echo_n "checking Boot JDK version... " >&6; } 25776 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25778 $as_echo "$BOOT_JDK_VERSION" >&6; } 25779 fi # end check jdk version 25780 fi # end check javac 25781 fi # end check java 25782 fi # end check boot jdk found 25783 fi 25784 25785 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25786 # Having specified an argument which is incorrect will produce an instant failure; 25787 # we should not go on looking 25788 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25789 fi 25790 25791 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25792 25793 if test "x$BOOT_JDK_FOUND" = xno; then 25794 # Now execute the test 25795 25796 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25797 # First check at user selected default 25798 25799 if test "x$BOOT_JDK_FOUND" = xno; then 25800 # Now execute the test 25801 25802 if test -x /usr/libexec/java_home; then 25803 BOOT_JDK=`/usr/libexec/java_home ` 25804 BOOT_JDK_FOUND=maybe 25805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25806 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25807 fi 25808 25809 25810 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25811 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25812 # Do we have a bin/java? 25813 if test ! -x "$BOOT_JDK/bin/java"; then 25814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25816 BOOT_JDK_FOUND=no 25817 else 25818 # Do we have a bin/javac? 25819 if test ! -x "$BOOT_JDK/bin/javac"; then 25820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25822 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25823 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25824 BOOT_JDK_FOUND=no 25825 else 25826 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25827 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25828 25829 # Extra M4 quote needed to protect [] in grep expression. 25830 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25831 if test "x$FOUND_CORRECT_VERSION" = x; then 25832 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25834 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25835 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25836 BOOT_JDK_FOUND=no 25837 else 25838 # We're done! :-) 25839 BOOT_JDK_FOUND=yes 25840 25841 # Only process if variable expands to non-empty 25842 25843 if test "x$BOOT_JDK" != x; then 25844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25845 25846 # Input might be given as Windows format, start by converting to 25847 # unix format. 25848 path="$BOOT_JDK" 25849 new_path=`$CYGPATH -u "$path"` 25850 25851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25854 # "foo.exe" is OK but "foo" is an error. 25855 # 25856 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25857 # It is also a way to make sure we got the proper file name for the real test later on. 25858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25859 if test "x$test_shortpath" = x; then 25860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25861 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25862 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25863 fi 25864 25865 # Call helper function which possibly converts this using DOS-style short mode. 25866 # If so, the updated path is stored in $new_path. 25867 25868 input_path="$new_path" 25869 # Check if we need to convert this using DOS-style short mode. If the path 25870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25871 # take no chances and rewrite it. 25872 # Note: m4 eats our [], so we need to use [ and ] instead. 25873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25874 if test "x$has_forbidden_chars" != x; then 25875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25879 # Going to short mode and back again did indeed matter. Since short mode is 25880 # case insensitive, let's make it lowercase to improve readability. 25881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25882 # Now convert it back to Unix-style (cygpath) 25883 input_path=`$CYGPATH -u "$shortmode_path"` 25884 new_path="$input_path" 25885 fi 25886 fi 25887 25888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25889 if test "x$test_cygdrive_prefix" = x; then 25890 # As a simple fix, exclude /usr/bin since it's not a real path. 25891 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25893 # a path prefixed by /cygdrive for fixpath to work. 25894 new_path="$CYGWIN_ROOT_PATH$input_path" 25895 fi 25896 fi 25897 25898 25899 if test "x$path" != "x$new_path"; then 25900 BOOT_JDK="$new_path" 25901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25902 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25903 fi 25904 25905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25906 25907 path="$BOOT_JDK" 25908 has_colon=`$ECHO $path | $GREP ^.:` 25909 new_path="$path" 25910 if test "x$has_colon" = x; then 25911 # Not in mixed or Windows style, start by that. 25912 new_path=`cmd //c echo $path` 25913 fi 25914 25915 25916 input_path="$new_path" 25917 # Check if we need to convert this using DOS-style short mode. If the path 25918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25919 # take no chances and rewrite it. 25920 # Note: m4 eats our [], so we need to use [ and ] instead. 25921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25922 if test "x$has_forbidden_chars" != x; then 25923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25925 fi 25926 25927 25928 windows_path="$new_path" 25929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25930 unix_path=`$CYGPATH -u "$windows_path"` 25931 new_path="$unix_path" 25932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25934 new_path="$unix_path" 25935 fi 25936 25937 if test "x$path" != "x$new_path"; then 25938 BOOT_JDK="$new_path" 25939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25940 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25941 fi 25942 25943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25945 25946 else 25947 # We're on a unix platform. Hooray! :) 25948 path="$BOOT_JDK" 25949 has_space=`$ECHO "$path" | $GREP " "` 25950 if test "x$has_space" != x; then 25951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25952 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25953 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25954 fi 25955 25956 # Use eval to expand a potential ~ 25957 eval path="$path" 25958 if test ! -f "$path" && test ! -d "$path"; then 25959 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25960 fi 25961 25962 if test -d "$path"; then 25963 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25964 else 25965 dir="`$DIRNAME "$path"`" 25966 base="`$BASENAME "$path"`" 25967 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25968 fi 25969 fi 25970 fi 25971 25972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25973 $as_echo_n "checking for Boot JDK... " >&6; } 25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25975 $as_echo "$BOOT_JDK" >&6; } 25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25977 $as_echo_n "checking Boot JDK version... " >&6; } 25978 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25980 $as_echo "$BOOT_JDK_VERSION" >&6; } 25981 fi # end check jdk version 25982 fi # end check javac 25983 fi # end check java 25984 fi # end check boot jdk found 25985 fi 25986 25987 # If that did not work out (e.g. too old), try explicit versions instead 25988 25989 if test "x$BOOT_JDK_FOUND" = xno; then 25990 # Now execute the test 25991 25992 if test -x /usr/libexec/java_home; then 25993 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25994 BOOT_JDK_FOUND=maybe 25995 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25996 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25997 fi 25998 25999 26000 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26001 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26002 # Do we have a bin/java? 26003 if test ! -x "$BOOT_JDK/bin/java"; then 26004 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26006 BOOT_JDK_FOUND=no 26007 else 26008 # Do we have a bin/javac? 26009 if test ! -x "$BOOT_JDK/bin/javac"; then 26010 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26011 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26012 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26013 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26014 BOOT_JDK_FOUND=no 26015 else 26016 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26017 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26018 26019 # Extra M4 quote needed to protect [] in grep expression. 26020 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26021 if test "x$FOUND_CORRECT_VERSION" = x; then 26022 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26024 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26025 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26026 BOOT_JDK_FOUND=no 26027 else 26028 # We're done! :-) 26029 BOOT_JDK_FOUND=yes 26030 26031 # Only process if variable expands to non-empty 26032 26033 if test "x$BOOT_JDK" != x; then 26034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26035 26036 # Input might be given as Windows format, start by converting to 26037 # unix format. 26038 path="$BOOT_JDK" 26039 new_path=`$CYGPATH -u "$path"` 26040 26041 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26042 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26043 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26044 # "foo.exe" is OK but "foo" is an error. 26045 # 26046 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26047 # It is also a way to make sure we got the proper file name for the real test later on. 26048 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26049 if test "x$test_shortpath" = x; then 26050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26051 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26052 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26053 fi 26054 26055 # Call helper function which possibly converts this using DOS-style short mode. 26056 # If so, the updated path is stored in $new_path. 26057 26058 input_path="$new_path" 26059 # Check if we need to convert this using DOS-style short mode. If the path 26060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26061 # take no chances and rewrite it. 26062 # Note: m4 eats our [], so we need to use [ and ] instead. 26063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26064 if test "x$has_forbidden_chars" != x; then 26065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26066 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26067 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26068 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26069 # Going to short mode and back again did indeed matter. Since short mode is 26070 # case insensitive, let's make it lowercase to improve readability. 26071 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26072 # Now convert it back to Unix-style (cygpath) 26073 input_path=`$CYGPATH -u "$shortmode_path"` 26074 new_path="$input_path" 26075 fi 26076 fi 26077 26078 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26079 if test "x$test_cygdrive_prefix" = x; then 26080 # As a simple fix, exclude /usr/bin since it's not a real path. 26081 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26082 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26083 # a path prefixed by /cygdrive for fixpath to work. 26084 new_path="$CYGWIN_ROOT_PATH$input_path" 26085 fi 26086 fi 26087 26088 26089 if test "x$path" != "x$new_path"; then 26090 BOOT_JDK="$new_path" 26091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26093 fi 26094 26095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26096 26097 path="$BOOT_JDK" 26098 has_colon=`$ECHO $path | $GREP ^.:` 26099 new_path="$path" 26100 if test "x$has_colon" = x; then 26101 # Not in mixed or Windows style, start by that. 26102 new_path=`cmd //c echo $path` 26103 fi 26104 26105 26106 input_path="$new_path" 26107 # Check if we need to convert this using DOS-style short mode. If the path 26108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26109 # take no chances and rewrite it. 26110 # Note: m4 eats our [], so we need to use [ and ] instead. 26111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26112 if test "x$has_forbidden_chars" != x; then 26113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26114 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26115 fi 26116 26117 26118 windows_path="$new_path" 26119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26120 unix_path=`$CYGPATH -u "$windows_path"` 26121 new_path="$unix_path" 26122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26124 new_path="$unix_path" 26125 fi 26126 26127 if test "x$path" != "x$new_path"; then 26128 BOOT_JDK="$new_path" 26129 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26130 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26131 fi 26132 26133 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26134 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26135 26136 else 26137 # We're on a unix platform. Hooray! :) 26138 path="$BOOT_JDK" 26139 has_space=`$ECHO "$path" | $GREP " "` 26140 if test "x$has_space" != x; then 26141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26142 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26143 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26144 fi 26145 26146 # Use eval to expand a potential ~ 26147 eval path="$path" 26148 if test ! -f "$path" && test ! -d "$path"; then 26149 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26150 fi 26151 26152 if test -d "$path"; then 26153 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26154 else 26155 dir="`$DIRNAME "$path"`" 26156 base="`$BASENAME "$path"`" 26157 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26158 fi 26159 fi 26160 fi 26161 26162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26163 $as_echo_n "checking for Boot JDK... " >&6; } 26164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26165 $as_echo "$BOOT_JDK" >&6; } 26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26167 $as_echo_n "checking Boot JDK version... " >&6; } 26168 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26170 $as_echo "$BOOT_JDK_VERSION" >&6; } 26171 fi # end check jdk version 26172 fi # end check javac 26173 fi # end check java 26174 fi # end check boot jdk found 26175 fi 26176 26177 26178 if test "x$BOOT_JDK_FOUND" = xno; then 26179 # Now execute the test 26180 26181 if test -x /usr/libexec/java_home; then 26182 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26183 BOOT_JDK_FOUND=maybe 26184 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26185 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26186 fi 26187 26188 26189 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26190 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26191 # Do we have a bin/java? 26192 if test ! -x "$BOOT_JDK/bin/java"; then 26193 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26194 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26195 BOOT_JDK_FOUND=no 26196 else 26197 # Do we have a bin/javac? 26198 if test ! -x "$BOOT_JDK/bin/javac"; then 26199 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26200 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26201 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26202 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26203 BOOT_JDK_FOUND=no 26204 else 26205 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26206 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26207 26208 # Extra M4 quote needed to protect [] in grep expression. 26209 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26210 if test "x$FOUND_CORRECT_VERSION" = x; then 26211 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26212 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26213 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26214 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26215 BOOT_JDK_FOUND=no 26216 else 26217 # We're done! :-) 26218 BOOT_JDK_FOUND=yes 26219 26220 # Only process if variable expands to non-empty 26221 26222 if test "x$BOOT_JDK" != x; then 26223 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26224 26225 # Input might be given as Windows format, start by converting to 26226 # unix format. 26227 path="$BOOT_JDK" 26228 new_path=`$CYGPATH -u "$path"` 26229 26230 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26231 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26232 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26233 # "foo.exe" is OK but "foo" is an error. 26234 # 26235 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26236 # It is also a way to make sure we got the proper file name for the real test later on. 26237 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26238 if test "x$test_shortpath" = x; then 26239 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26240 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26241 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26242 fi 26243 26244 # Call helper function which possibly converts this using DOS-style short mode. 26245 # If so, the updated path is stored in $new_path. 26246 26247 input_path="$new_path" 26248 # Check if we need to convert this using DOS-style short mode. If the path 26249 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26250 # take no chances and rewrite it. 26251 # Note: m4 eats our [], so we need to use [ and ] instead. 26252 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26253 if test "x$has_forbidden_chars" != x; then 26254 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26255 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26256 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26257 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26258 # Going to short mode and back again did indeed matter. Since short mode is 26259 # case insensitive, let's make it lowercase to improve readability. 26260 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26261 # Now convert it back to Unix-style (cygpath) 26262 input_path=`$CYGPATH -u "$shortmode_path"` 26263 new_path="$input_path" 26264 fi 26265 fi 26266 26267 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26268 if test "x$test_cygdrive_prefix" = x; then 26269 # As a simple fix, exclude /usr/bin since it's not a real path. 26270 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26271 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26272 # a path prefixed by /cygdrive for fixpath to work. 26273 new_path="$CYGWIN_ROOT_PATH$input_path" 26274 fi 26275 fi 26276 26277 26278 if test "x$path" != "x$new_path"; then 26279 BOOT_JDK="$new_path" 26280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26281 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26282 fi 26283 26284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26285 26286 path="$BOOT_JDK" 26287 has_colon=`$ECHO $path | $GREP ^.:` 26288 new_path="$path" 26289 if test "x$has_colon" = x; then 26290 # Not in mixed or Windows style, start by that. 26291 new_path=`cmd //c echo $path` 26292 fi 26293 26294 26295 input_path="$new_path" 26296 # Check if we need to convert this using DOS-style short mode. If the path 26297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26298 # take no chances and rewrite it. 26299 # Note: m4 eats our [], so we need to use [ and ] instead. 26300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26301 if test "x$has_forbidden_chars" != x; then 26302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26303 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26304 fi 26305 26306 26307 windows_path="$new_path" 26308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26309 unix_path=`$CYGPATH -u "$windows_path"` 26310 new_path="$unix_path" 26311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26312 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26313 new_path="$unix_path" 26314 fi 26315 26316 if test "x$path" != "x$new_path"; then 26317 BOOT_JDK="$new_path" 26318 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26319 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26320 fi 26321 26322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26324 26325 else 26326 # We're on a unix platform. Hooray! :) 26327 path="$BOOT_JDK" 26328 has_space=`$ECHO "$path" | $GREP " "` 26329 if test "x$has_space" != x; then 26330 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26331 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26332 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26333 fi 26334 26335 # Use eval to expand a potential ~ 26336 eval path="$path" 26337 if test ! -f "$path" && test ! -d "$path"; then 26338 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26339 fi 26340 26341 if test -d "$path"; then 26342 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26343 else 26344 dir="`$DIRNAME "$path"`" 26345 base="`$BASENAME "$path"`" 26346 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26347 fi 26348 fi 26349 fi 26350 26351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26352 $as_echo_n "checking for Boot JDK... " >&6; } 26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26354 $as_echo "$BOOT_JDK" >&6; } 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26356 $as_echo_n "checking Boot JDK version... " >&6; } 26357 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26359 $as_echo "$BOOT_JDK_VERSION" >&6; } 26360 fi # end check jdk version 26361 fi # end check javac 26362 fi # end check java 26363 fi # end check boot jdk found 26364 fi 26365 26366 26367 if test "x$BOOT_JDK_FOUND" = xno; then 26368 # Now execute the test 26369 26370 if test -x /usr/libexec/java_home; then 26371 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26372 BOOT_JDK_FOUND=maybe 26373 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26374 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26375 fi 26376 26377 26378 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26379 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26380 # Do we have a bin/java? 26381 if test ! -x "$BOOT_JDK/bin/java"; then 26382 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26383 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26384 BOOT_JDK_FOUND=no 26385 else 26386 # Do we have a bin/javac? 26387 if test ! -x "$BOOT_JDK/bin/javac"; then 26388 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26390 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26391 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26392 BOOT_JDK_FOUND=no 26393 else 26394 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26395 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26396 26397 # Extra M4 quote needed to protect [] in grep expression. 26398 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26399 if test "x$FOUND_CORRECT_VERSION" = x; then 26400 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26402 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26403 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26404 BOOT_JDK_FOUND=no 26405 else 26406 # We're done! :-) 26407 BOOT_JDK_FOUND=yes 26408 26409 # Only process if variable expands to non-empty 26410 26411 if test "x$BOOT_JDK" != x; then 26412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26413 26414 # Input might be given as Windows format, start by converting to 26415 # unix format. 26416 path="$BOOT_JDK" 26417 new_path=`$CYGPATH -u "$path"` 26418 26419 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26420 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26421 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26422 # "foo.exe" is OK but "foo" is an error. 26423 # 26424 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26425 # It is also a way to make sure we got the proper file name for the real test later on. 26426 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26427 if test "x$test_shortpath" = x; then 26428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26429 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26430 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26431 fi 26432 26433 # Call helper function which possibly converts this using DOS-style short mode. 26434 # If so, the updated path is stored in $new_path. 26435 26436 input_path="$new_path" 26437 # Check if we need to convert this using DOS-style short mode. If the path 26438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26439 # take no chances and rewrite it. 26440 # Note: m4 eats our [], so we need to use [ and ] instead. 26441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26442 if test "x$has_forbidden_chars" != x; then 26443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26444 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26445 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26446 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26447 # Going to short mode and back again did indeed matter. Since short mode is 26448 # case insensitive, let's make it lowercase to improve readability. 26449 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26450 # Now convert it back to Unix-style (cygpath) 26451 input_path=`$CYGPATH -u "$shortmode_path"` 26452 new_path="$input_path" 26453 fi 26454 fi 26455 26456 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26457 if test "x$test_cygdrive_prefix" = x; then 26458 # As a simple fix, exclude /usr/bin since it's not a real path. 26459 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26460 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26461 # a path prefixed by /cygdrive for fixpath to work. 26462 new_path="$CYGWIN_ROOT_PATH$input_path" 26463 fi 26464 fi 26465 26466 26467 if test "x$path" != "x$new_path"; then 26468 BOOT_JDK="$new_path" 26469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26470 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26471 fi 26472 26473 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26474 26475 path="$BOOT_JDK" 26476 has_colon=`$ECHO $path | $GREP ^.:` 26477 new_path="$path" 26478 if test "x$has_colon" = x; then 26479 # Not in mixed or Windows style, start by that. 26480 new_path=`cmd //c echo $path` 26481 fi 26482 26483 26484 input_path="$new_path" 26485 # Check if we need to convert this using DOS-style short mode. If the path 26486 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26487 # take no chances and rewrite it. 26488 # Note: m4 eats our [], so we need to use [ and ] instead. 26489 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26490 if test "x$has_forbidden_chars" != x; then 26491 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26492 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26493 fi 26494 26495 26496 windows_path="$new_path" 26497 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26498 unix_path=`$CYGPATH -u "$windows_path"` 26499 new_path="$unix_path" 26500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26501 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26502 new_path="$unix_path" 26503 fi 26504 26505 if test "x$path" != "x$new_path"; then 26506 BOOT_JDK="$new_path" 26507 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26508 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26509 fi 26510 26511 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26512 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26513 26514 else 26515 # We're on a unix platform. Hooray! :) 26516 path="$BOOT_JDK" 26517 has_space=`$ECHO "$path" | $GREP " "` 26518 if test "x$has_space" != x; then 26519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26521 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26522 fi 26523 26524 # Use eval to expand a potential ~ 26525 eval path="$path" 26526 if test ! -f "$path" && test ! -d "$path"; then 26527 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26528 fi 26529 26530 if test -d "$path"; then 26531 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26532 else 26533 dir="`$DIRNAME "$path"`" 26534 base="`$BASENAME "$path"`" 26535 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26536 fi 26537 fi 26538 fi 26539 26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26541 $as_echo_n "checking for Boot JDK... " >&6; } 26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26543 $as_echo "$BOOT_JDK" >&6; } 26544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26545 $as_echo_n "checking Boot JDK version... " >&6; } 26546 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26548 $as_echo "$BOOT_JDK_VERSION" >&6; } 26549 fi # end check jdk version 26550 fi # end check javac 26551 fi # end check java 26552 fi # end check boot jdk found 26553 fi 26554 26555 fi 26556 26557 26558 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26559 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26560 # Do we have a bin/java? 26561 if test ! -x "$BOOT_JDK/bin/java"; then 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26563 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26564 BOOT_JDK_FOUND=no 26565 else 26566 # Do we have a bin/javac? 26567 if test ! -x "$BOOT_JDK/bin/javac"; then 26568 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26569 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26570 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26571 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26572 BOOT_JDK_FOUND=no 26573 else 26574 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26575 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26576 26577 # Extra M4 quote needed to protect [] in grep expression. 26578 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26579 if test "x$FOUND_CORRECT_VERSION" = x; then 26580 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26581 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26582 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26583 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26584 BOOT_JDK_FOUND=no 26585 else 26586 # We're done! :-) 26587 BOOT_JDK_FOUND=yes 26588 26589 # Only process if variable expands to non-empty 26590 26591 if test "x$BOOT_JDK" != x; then 26592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26593 26594 # Input might be given as Windows format, start by converting to 26595 # unix format. 26596 path="$BOOT_JDK" 26597 new_path=`$CYGPATH -u "$path"` 26598 26599 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26600 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26601 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26602 # "foo.exe" is OK but "foo" is an error. 26603 # 26604 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26605 # It is also a way to make sure we got the proper file name for the real test later on. 26606 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26607 if test "x$test_shortpath" = x; then 26608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26609 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26610 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26611 fi 26612 26613 # Call helper function which possibly converts this using DOS-style short mode. 26614 # If so, the updated path is stored in $new_path. 26615 26616 input_path="$new_path" 26617 # Check if we need to convert this using DOS-style short mode. If the path 26618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26619 # take no chances and rewrite it. 26620 # Note: m4 eats our [], so we need to use [ and ] instead. 26621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26622 if test "x$has_forbidden_chars" != x; then 26623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26624 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26625 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26626 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26627 # Going to short mode and back again did indeed matter. Since short mode is 26628 # case insensitive, let's make it lowercase to improve readability. 26629 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26630 # Now convert it back to Unix-style (cygpath) 26631 input_path=`$CYGPATH -u "$shortmode_path"` 26632 new_path="$input_path" 26633 fi 26634 fi 26635 26636 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26637 if test "x$test_cygdrive_prefix" = x; then 26638 # As a simple fix, exclude /usr/bin since it's not a real path. 26639 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26640 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26641 # a path prefixed by /cygdrive for fixpath to work. 26642 new_path="$CYGWIN_ROOT_PATH$input_path" 26643 fi 26644 fi 26645 26646 26647 if test "x$path" != "x$new_path"; then 26648 BOOT_JDK="$new_path" 26649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26650 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26651 fi 26652 26653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26654 26655 path="$BOOT_JDK" 26656 has_colon=`$ECHO $path | $GREP ^.:` 26657 new_path="$path" 26658 if test "x$has_colon" = x; then 26659 # Not in mixed or Windows style, start by that. 26660 new_path=`cmd //c echo $path` 26661 fi 26662 26663 26664 input_path="$new_path" 26665 # Check if we need to convert this using DOS-style short mode. If the path 26666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26667 # take no chances and rewrite it. 26668 # Note: m4 eats our [], so we need to use [ and ] instead. 26669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26670 if test "x$has_forbidden_chars" != x; then 26671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26672 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26673 fi 26674 26675 26676 windows_path="$new_path" 26677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26678 unix_path=`$CYGPATH -u "$windows_path"` 26679 new_path="$unix_path" 26680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26682 new_path="$unix_path" 26683 fi 26684 26685 if test "x$path" != "x$new_path"; then 26686 BOOT_JDK="$new_path" 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26688 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26689 fi 26690 26691 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26692 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26693 26694 else 26695 # We're on a unix platform. Hooray! :) 26696 path="$BOOT_JDK" 26697 has_space=`$ECHO "$path" | $GREP " "` 26698 if test "x$has_space" != x; then 26699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26700 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26701 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26702 fi 26703 26704 # Use eval to expand a potential ~ 26705 eval path="$path" 26706 if test ! -f "$path" && test ! -d "$path"; then 26707 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26708 fi 26709 26710 if test -d "$path"; then 26711 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26712 else 26713 dir="`$DIRNAME "$path"`" 26714 base="`$BASENAME "$path"`" 26715 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26716 fi 26717 fi 26718 fi 26719 26720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26721 $as_echo_n "checking for Boot JDK... " >&6; } 26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26723 $as_echo "$BOOT_JDK" >&6; } 26724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26725 $as_echo_n "checking Boot JDK version... " >&6; } 26726 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26728 $as_echo "$BOOT_JDK_VERSION" >&6; } 26729 fi # end check jdk version 26730 fi # end check javac 26731 fi # end check java 26732 fi # end check boot jdk found 26733 fi 26734 26735 26736 # Test: Is $JAVA_HOME set? 26737 26738 if test "x$BOOT_JDK_FOUND" = xno; then 26739 # Now execute the test 26740 26741 if test "x$JAVA_HOME" != x; then 26742 JAVA_HOME_PROCESSED="$JAVA_HOME" 26743 26744 # Only process if variable expands to non-empty 26745 26746 if test "x$JAVA_HOME_PROCESSED" != x; then 26747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26748 26749 # Input might be given as Windows format, start by converting to 26750 # unix format. 26751 path="$JAVA_HOME_PROCESSED" 26752 new_path=`$CYGPATH -u "$path"` 26753 26754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26757 # "foo.exe" is OK but "foo" is an error. 26758 # 26759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26760 # It is also a way to make sure we got the proper file name for the real test later on. 26761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26762 if test "x$test_shortpath" = x; then 26763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26764 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26765 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26766 fi 26767 26768 # Call helper function which possibly converts this using DOS-style short mode. 26769 # If so, the updated path is stored in $new_path. 26770 26771 input_path="$new_path" 26772 # Check if we need to convert this using DOS-style short mode. If the path 26773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26774 # take no chances and rewrite it. 26775 # Note: m4 eats our [], so we need to use [ and ] instead. 26776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26777 if test "x$has_forbidden_chars" != x; then 26778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26782 # Going to short mode and back again did indeed matter. Since short mode is 26783 # case insensitive, let's make it lowercase to improve readability. 26784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26785 # Now convert it back to Unix-style (cygpath) 26786 input_path=`$CYGPATH -u "$shortmode_path"` 26787 new_path="$input_path" 26788 fi 26789 fi 26790 26791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26792 if test "x$test_cygdrive_prefix" = x; then 26793 # As a simple fix, exclude /usr/bin since it's not a real path. 26794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26796 # a path prefixed by /cygdrive for fixpath to work. 26797 new_path="$CYGWIN_ROOT_PATH$input_path" 26798 fi 26799 fi 26800 26801 26802 if test "x$path" != "x$new_path"; then 26803 JAVA_HOME_PROCESSED="$new_path" 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26805 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26806 fi 26807 26808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26809 26810 path="$JAVA_HOME_PROCESSED" 26811 has_colon=`$ECHO $path | $GREP ^.:` 26812 new_path="$path" 26813 if test "x$has_colon" = x; then 26814 # Not in mixed or Windows style, start by that. 26815 new_path=`cmd //c echo $path` 26816 fi 26817 26818 26819 input_path="$new_path" 26820 # Check if we need to convert this using DOS-style short mode. If the path 26821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26822 # take no chances and rewrite it. 26823 # Note: m4 eats our [], so we need to use [ and ] instead. 26824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26825 if test "x$has_forbidden_chars" != x; then 26826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26828 fi 26829 26830 26831 windows_path="$new_path" 26832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26833 unix_path=`$CYGPATH -u "$windows_path"` 26834 new_path="$unix_path" 26835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26837 new_path="$unix_path" 26838 fi 26839 26840 if test "x$path" != "x$new_path"; then 26841 JAVA_HOME_PROCESSED="$new_path" 26842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26843 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26844 fi 26845 26846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26848 26849 else 26850 # We're on a unix platform. Hooray! :) 26851 path="$JAVA_HOME_PROCESSED" 26852 has_space=`$ECHO "$path" | $GREP " "` 26853 if test "x$has_space" != x; then 26854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26855 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26857 fi 26858 26859 # Use eval to expand a potential ~ 26860 eval path="$path" 26861 if test ! -f "$path" && test ! -d "$path"; then 26862 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26863 fi 26864 26865 if test -d "$path"; then 26866 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26867 else 26868 dir="`$DIRNAME "$path"`" 26869 base="`$BASENAME "$path"`" 26870 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26871 fi 26872 fi 26873 fi 26874 26875 if test ! -d "$JAVA_HOME_PROCESSED"; then 26876 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26877 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26878 else 26879 # Aha, the user has set a JAVA_HOME 26880 # let us use that as the Boot JDK. 26881 BOOT_JDK="$JAVA_HOME_PROCESSED" 26882 BOOT_JDK_FOUND=maybe 26883 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26884 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26885 fi 26886 fi 26887 26888 26889 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26890 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26891 # Do we have a bin/java? 26892 if test ! -x "$BOOT_JDK/bin/java"; then 26893 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26895 BOOT_JDK_FOUND=no 26896 else 26897 # Do we have a bin/javac? 26898 if test ! -x "$BOOT_JDK/bin/javac"; then 26899 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26900 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26901 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26902 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26903 BOOT_JDK_FOUND=no 26904 else 26905 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26906 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26907 26908 # Extra M4 quote needed to protect [] in grep expression. 26909 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26910 if test "x$FOUND_CORRECT_VERSION" = x; then 26911 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26912 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26913 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26914 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26915 BOOT_JDK_FOUND=no 26916 else 26917 # We're done! :-) 26918 BOOT_JDK_FOUND=yes 26919 26920 # Only process if variable expands to non-empty 26921 26922 if test "x$BOOT_JDK" != x; then 26923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26924 26925 # Input might be given as Windows format, start by converting to 26926 # unix format. 26927 path="$BOOT_JDK" 26928 new_path=`$CYGPATH -u "$path"` 26929 26930 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26931 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26932 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26933 # "foo.exe" is OK but "foo" is an error. 26934 # 26935 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26936 # It is also a way to make sure we got the proper file name for the real test later on. 26937 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26938 if test "x$test_shortpath" = x; then 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26941 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26942 fi 26943 26944 # Call helper function which possibly converts this using DOS-style short mode. 26945 # If so, the updated path is stored in $new_path. 26946 26947 input_path="$new_path" 26948 # Check if we need to convert this using DOS-style short mode. If the path 26949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26950 # take no chances and rewrite it. 26951 # Note: m4 eats our [], so we need to use [ and ] instead. 26952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26953 if test "x$has_forbidden_chars" != x; then 26954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26958 # Going to short mode and back again did indeed matter. Since short mode is 26959 # case insensitive, let's make it lowercase to improve readability. 26960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26961 # Now convert it back to Unix-style (cygpath) 26962 input_path=`$CYGPATH -u "$shortmode_path"` 26963 new_path="$input_path" 26964 fi 26965 fi 26966 26967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26968 if test "x$test_cygdrive_prefix" = x; then 26969 # As a simple fix, exclude /usr/bin since it's not a real path. 26970 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26972 # a path prefixed by /cygdrive for fixpath to work. 26973 new_path="$CYGWIN_ROOT_PATH$input_path" 26974 fi 26975 fi 26976 26977 26978 if test "x$path" != "x$new_path"; then 26979 BOOT_JDK="$new_path" 26980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26982 fi 26983 26984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26985 26986 path="$BOOT_JDK" 26987 has_colon=`$ECHO $path | $GREP ^.:` 26988 new_path="$path" 26989 if test "x$has_colon" = x; then 26990 # Not in mixed or Windows style, start by that. 26991 new_path=`cmd //c echo $path` 26992 fi 26993 26994 26995 input_path="$new_path" 26996 # Check if we need to convert this using DOS-style short mode. If the path 26997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26998 # take no chances and rewrite it. 26999 # Note: m4 eats our [], so we need to use [ and ] instead. 27000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27001 if test "x$has_forbidden_chars" != x; then 27002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27004 fi 27005 27006 27007 windows_path="$new_path" 27008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27009 unix_path=`$CYGPATH -u "$windows_path"` 27010 new_path="$unix_path" 27011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27013 new_path="$unix_path" 27014 fi 27015 27016 if test "x$path" != "x$new_path"; then 27017 BOOT_JDK="$new_path" 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27019 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27020 fi 27021 27022 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27023 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27024 27025 else 27026 # We're on a unix platform. Hooray! :) 27027 path="$BOOT_JDK" 27028 has_space=`$ECHO "$path" | $GREP " "` 27029 if test "x$has_space" != x; then 27030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27031 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27032 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27033 fi 27034 27035 # Use eval to expand a potential ~ 27036 eval path="$path" 27037 if test ! -f "$path" && test ! -d "$path"; then 27038 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27039 fi 27040 27041 if test -d "$path"; then 27042 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27043 else 27044 dir="`$DIRNAME "$path"`" 27045 base="`$BASENAME "$path"`" 27046 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27047 fi 27048 fi 27049 fi 27050 27051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27052 $as_echo_n "checking for Boot JDK... " >&6; } 27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27054 $as_echo "$BOOT_JDK" >&6; } 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27056 $as_echo_n "checking Boot JDK version... " >&6; } 27057 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27059 $as_echo "$BOOT_JDK_VERSION" >&6; } 27060 fi # end check jdk version 27061 fi # end check javac 27062 fi # end check java 27063 fi # end check boot jdk found 27064 fi 27065 27066 27067 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 27068 27069 if test "x$BOOT_JDK_FOUND" = xno; then 27070 # Now execute the test 27071 27072 # Extract the first word of "javac", so it can be a program name with args. 27073 set dummy javac; ac_word=$2 27074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27075 $as_echo_n "checking for $ac_word... " >&6; } 27076 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 27077 $as_echo_n "(cached) " >&6 27078 else 27079 case $JAVAC_CHECK in 27080 [\\/]* | ?:[\\/]*) 27081 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 27082 ;; 27083 *) 27084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27085 for as_dir in $PATH 27086 do 27087 IFS=$as_save_IFS 27088 test -z "$as_dir" && as_dir=. 27089 for ac_exec_ext in '' $ac_executable_extensions; do 27090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27091 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27093 break 2 27094 fi 27095 done 27096 done 27097 IFS=$as_save_IFS 27098 27099 ;; 27100 esac 27101 fi 27102 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27103 if test -n "$JAVAC_CHECK"; then 27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27105 $as_echo "$JAVAC_CHECK" >&6; } 27106 else 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27108 $as_echo "no" >&6; } 27109 fi 27110 27111 27112 # Extract the first word of "java", so it can be a program name with args. 27113 set dummy java; ac_word=$2 27114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27115 $as_echo_n "checking for $ac_word... " >&6; } 27116 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27117 $as_echo_n "(cached) " >&6 27118 else 27119 case $JAVA_CHECK in 27120 [\\/]* | ?:[\\/]*) 27121 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27122 ;; 27123 *) 27124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27125 for as_dir in $PATH 27126 do 27127 IFS=$as_save_IFS 27128 test -z "$as_dir" && as_dir=. 27129 for ac_exec_ext in '' $ac_executable_extensions; do 27130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27131 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27133 break 2 27134 fi 27135 done 27136 done 27137 IFS=$as_save_IFS 27138 27139 ;; 27140 esac 27141 fi 27142 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27143 if test -n "$JAVA_CHECK"; then 27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27145 $as_echo "$JAVA_CHECK" >&6; } 27146 else 27147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27148 $as_echo "no" >&6; } 27149 fi 27150 27151 27152 BINARY="$JAVAC_CHECK" 27153 if test "x$JAVAC_CHECK" = x; then 27154 BINARY="$JAVA_CHECK" 27155 fi 27156 if test "x$BINARY" != x; then 27157 # So there is a java(c) binary, it might be part of a JDK. 27158 # Lets find the JDK/JRE directory by following symbolic links. 27159 # Linux/GNU systems often have links from /usr/bin/java to 27160 # /etc/alternatives/java to the real JDK binary. 27161 27162 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27163 # Follow a chain of symbolic links. Use readlink 27164 # where it exists, else fall back to horribly 27165 # complicated shell code. 27166 if test "x$READLINK_TESTED" != yes; then 27167 # On MacOSX there is a readlink tool with a different 27168 # purpose than the GNU readlink tool. Check the found readlink. 27169 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27170 if test "x$ISGNU" = x; then 27171 # A readlink that we do not know how to use. 27172 # Are there other non-GNU readlinks out there? 27173 READLINK_TESTED=yes 27174 READLINK= 27175 fi 27176 fi 27177 27178 if test "x$READLINK" != x; then 27179 BINARY=`$READLINK -f $BINARY` 27180 else 27181 # Save the current directory for restoring afterwards 27182 STARTDIR=$PWD 27183 COUNTER=0 27184 sym_link_dir=`$DIRNAME $BINARY` 27185 sym_link_file=`$BASENAME $BINARY` 27186 cd $sym_link_dir 27187 # Use -P flag to resolve symlinks in directories. 27188 cd `$THEPWDCMD -P` 27189 sym_link_dir=`$THEPWDCMD -P` 27190 # Resolve file symlinks 27191 while test $COUNTER -lt 20; do 27192 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27193 if test "x$ISLINK" == x; then 27194 # This is not a symbolic link! We are done! 27195 break 27196 fi 27197 # Again resolve directory symlinks since the target of the just found 27198 # link could be in a different directory 27199 cd `$DIRNAME $ISLINK` 27200 sym_link_dir=`$THEPWDCMD -P` 27201 sym_link_file=`$BASENAME $ISLINK` 27202 let COUNTER=COUNTER+1 27203 done 27204 cd $STARTDIR 27205 BINARY=$sym_link_dir/$sym_link_file 27206 fi 27207 fi 27208 27209 BOOT_JDK=`dirname "$BINARY"` 27210 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27211 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27212 # Looks like we found ourselves an JDK 27213 BOOT_JDK_FOUND=maybe 27214 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27215 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27216 fi 27217 fi 27218 27219 27220 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27221 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27222 # Do we have a bin/java? 27223 if test ! -x "$BOOT_JDK/bin/java"; then 27224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27226 BOOT_JDK_FOUND=no 27227 else 27228 # Do we have a bin/javac? 27229 if test ! -x "$BOOT_JDK/bin/javac"; then 27230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27232 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27233 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27234 BOOT_JDK_FOUND=no 27235 else 27236 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27237 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27238 27239 # Extra M4 quote needed to protect [] in grep expression. 27240 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27241 if test "x$FOUND_CORRECT_VERSION" = x; then 27242 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27243 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27244 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27245 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27246 BOOT_JDK_FOUND=no 27247 else 27248 # We're done! :-) 27249 BOOT_JDK_FOUND=yes 27250 27251 # Only process if variable expands to non-empty 27252 27253 if test "x$BOOT_JDK" != x; then 27254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27255 27256 # Input might be given as Windows format, start by converting to 27257 # unix format. 27258 path="$BOOT_JDK" 27259 new_path=`$CYGPATH -u "$path"` 27260 27261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27264 # "foo.exe" is OK but "foo" is an error. 27265 # 27266 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27267 # It is also a way to make sure we got the proper file name for the real test later on. 27268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27269 if test "x$test_shortpath" = x; then 27270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27271 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27272 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27273 fi 27274 27275 # Call helper function which possibly converts this using DOS-style short mode. 27276 # If so, the updated path is stored in $new_path. 27277 27278 input_path="$new_path" 27279 # Check if we need to convert this using DOS-style short mode. If the path 27280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27281 # take no chances and rewrite it. 27282 # Note: m4 eats our [], so we need to use [ and ] instead. 27283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27284 if test "x$has_forbidden_chars" != x; then 27285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27289 # Going to short mode and back again did indeed matter. Since short mode is 27290 # case insensitive, let's make it lowercase to improve readability. 27291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27292 # Now convert it back to Unix-style (cygpath) 27293 input_path=`$CYGPATH -u "$shortmode_path"` 27294 new_path="$input_path" 27295 fi 27296 fi 27297 27298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27299 if test "x$test_cygdrive_prefix" = x; then 27300 # As a simple fix, exclude /usr/bin since it's not a real path. 27301 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27303 # a path prefixed by /cygdrive for fixpath to work. 27304 new_path="$CYGWIN_ROOT_PATH$input_path" 27305 fi 27306 fi 27307 27308 27309 if test "x$path" != "x$new_path"; then 27310 BOOT_JDK="$new_path" 27311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27312 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27313 fi 27314 27315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27316 27317 path="$BOOT_JDK" 27318 has_colon=`$ECHO $path | $GREP ^.:` 27319 new_path="$path" 27320 if test "x$has_colon" = x; then 27321 # Not in mixed or Windows style, start by that. 27322 new_path=`cmd //c echo $path` 27323 fi 27324 27325 27326 input_path="$new_path" 27327 # Check if we need to convert this using DOS-style short mode. If the path 27328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27329 # take no chances and rewrite it. 27330 # Note: m4 eats our [], so we need to use [ and ] instead. 27331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27332 if test "x$has_forbidden_chars" != x; then 27333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27335 fi 27336 27337 27338 windows_path="$new_path" 27339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27340 unix_path=`$CYGPATH -u "$windows_path"` 27341 new_path="$unix_path" 27342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27344 new_path="$unix_path" 27345 fi 27346 27347 if test "x$path" != "x$new_path"; then 27348 BOOT_JDK="$new_path" 27349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27350 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27351 fi 27352 27353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27355 27356 else 27357 # We're on a unix platform. Hooray! :) 27358 path="$BOOT_JDK" 27359 has_space=`$ECHO "$path" | $GREP " "` 27360 if test "x$has_space" != x; then 27361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27362 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27363 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27364 fi 27365 27366 # Use eval to expand a potential ~ 27367 eval path="$path" 27368 if test ! -f "$path" && test ! -d "$path"; then 27369 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27370 fi 27371 27372 if test -d "$path"; then 27373 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27374 else 27375 dir="`$DIRNAME "$path"`" 27376 base="`$BASENAME "$path"`" 27377 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27378 fi 27379 fi 27380 fi 27381 27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27383 $as_echo_n "checking for Boot JDK... " >&6; } 27384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27385 $as_echo "$BOOT_JDK" >&6; } 27386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27387 $as_echo_n "checking Boot JDK version... " >&6; } 27388 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27390 $as_echo "$BOOT_JDK_VERSION" >&6; } 27391 fi # end check jdk version 27392 fi # end check javac 27393 fi # end check java 27394 fi # end check boot jdk found 27395 fi 27396 27397 27398 # Test: Is there a JDK installed in default, well-known locations? 27399 27400 if test "x$BOOT_JDK_FOUND" = xno; then 27401 # Now execute the test 27402 27403 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27404 27405 if test "x$BOOT_JDK_FOUND" = xno; then 27406 # Now execute the test 27407 27408 if test "x$ProgramW6432" != x; then 27409 VIRTUAL_DIR="$ProgramW6432/Java" 27410 27411 windows_path="$VIRTUAL_DIR" 27412 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27413 unix_path=`$CYGPATH -u "$windows_path"` 27414 VIRTUAL_DIR="$unix_path" 27415 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27416 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27417 VIRTUAL_DIR="$unix_path" 27418 fi 27419 27420 27421 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27422 BOOT_JDK_SUFFIX="" 27423 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27424 if test "x$ALL_JDKS_FOUND" != x; then 27425 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27426 27427 if test "x$BOOT_JDK_FOUND" = xno; then 27428 # Now execute the test 27429 27430 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27431 if test -d "$BOOT_JDK"; then 27432 BOOT_JDK_FOUND=maybe 27433 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27434 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27435 fi 27436 27437 27438 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27439 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27440 # Do we have a bin/java? 27441 if test ! -x "$BOOT_JDK/bin/java"; then 27442 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27443 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27444 BOOT_JDK_FOUND=no 27445 else 27446 # Do we have a bin/javac? 27447 if test ! -x "$BOOT_JDK/bin/javac"; then 27448 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27449 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27450 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27451 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27452 BOOT_JDK_FOUND=no 27453 else 27454 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27455 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27456 27457 # Extra M4 quote needed to protect [] in grep expression. 27458 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27459 if test "x$FOUND_CORRECT_VERSION" = x; then 27460 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27461 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27462 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27463 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27464 BOOT_JDK_FOUND=no 27465 else 27466 # We're done! :-) 27467 BOOT_JDK_FOUND=yes 27468 27469 # Only process if variable expands to non-empty 27470 27471 if test "x$BOOT_JDK" != x; then 27472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27473 27474 # Input might be given as Windows format, start by converting to 27475 # unix format. 27476 path="$BOOT_JDK" 27477 new_path=`$CYGPATH -u "$path"` 27478 27479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27482 # "foo.exe" is OK but "foo" is an error. 27483 # 27484 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27485 # It is also a way to make sure we got the proper file name for the real test later on. 27486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27487 if test "x$test_shortpath" = x; then 27488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27489 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27490 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27491 fi 27492 27493 # Call helper function which possibly converts this using DOS-style short mode. 27494 # If so, the updated path is stored in $new_path. 27495 27496 input_path="$new_path" 27497 # Check if we need to convert this using DOS-style short mode. If the path 27498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27499 # take no chances and rewrite it. 27500 # Note: m4 eats our [], so we need to use [ and ] instead. 27501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27502 if test "x$has_forbidden_chars" != x; then 27503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27504 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27505 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27506 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27507 # Going to short mode and back again did indeed matter. Since short mode is 27508 # case insensitive, let's make it lowercase to improve readability. 27509 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27510 # Now convert it back to Unix-style (cygpath) 27511 input_path=`$CYGPATH -u "$shortmode_path"` 27512 new_path="$input_path" 27513 fi 27514 fi 27515 27516 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27517 if test "x$test_cygdrive_prefix" = x; then 27518 # As a simple fix, exclude /usr/bin since it's not a real path. 27519 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27520 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27521 # a path prefixed by /cygdrive for fixpath to work. 27522 new_path="$CYGWIN_ROOT_PATH$input_path" 27523 fi 27524 fi 27525 27526 27527 if test "x$path" != "x$new_path"; then 27528 BOOT_JDK="$new_path" 27529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27530 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27531 fi 27532 27533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27534 27535 path="$BOOT_JDK" 27536 has_colon=`$ECHO $path | $GREP ^.:` 27537 new_path="$path" 27538 if test "x$has_colon" = x; then 27539 # Not in mixed or Windows style, start by that. 27540 new_path=`cmd //c echo $path` 27541 fi 27542 27543 27544 input_path="$new_path" 27545 # Check if we need to convert this using DOS-style short mode. If the path 27546 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27547 # take no chances and rewrite it. 27548 # Note: m4 eats our [], so we need to use [ and ] instead. 27549 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27550 if test "x$has_forbidden_chars" != x; then 27551 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27552 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27553 fi 27554 27555 27556 windows_path="$new_path" 27557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27558 unix_path=`$CYGPATH -u "$windows_path"` 27559 new_path="$unix_path" 27560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27562 new_path="$unix_path" 27563 fi 27564 27565 if test "x$path" != "x$new_path"; then 27566 BOOT_JDK="$new_path" 27567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27568 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27569 fi 27570 27571 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27572 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27573 27574 else 27575 # We're on a unix platform. Hooray! :) 27576 path="$BOOT_JDK" 27577 has_space=`$ECHO "$path" | $GREP " "` 27578 if test "x$has_space" != x; then 27579 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27580 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27581 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27582 fi 27583 27584 # Use eval to expand a potential ~ 27585 eval path="$path" 27586 if test ! -f "$path" && test ! -d "$path"; then 27587 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27588 fi 27589 27590 if test -d "$path"; then 27591 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27592 else 27593 dir="`$DIRNAME "$path"`" 27594 base="`$BASENAME "$path"`" 27595 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27596 fi 27597 fi 27598 fi 27599 27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27601 $as_echo_n "checking for Boot JDK... " >&6; } 27602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27603 $as_echo "$BOOT_JDK" >&6; } 27604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27605 $as_echo_n "checking Boot JDK version... " >&6; } 27606 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27608 $as_echo "$BOOT_JDK_VERSION" >&6; } 27609 fi # end check jdk version 27610 fi # end check javac 27611 fi # end check java 27612 fi # end check boot jdk found 27613 fi 27614 27615 done 27616 fi 27617 27618 fi 27619 27620 27621 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27622 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27623 # Do we have a bin/java? 27624 if test ! -x "$BOOT_JDK/bin/java"; then 27625 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27626 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27627 BOOT_JDK_FOUND=no 27628 else 27629 # Do we have a bin/javac? 27630 if test ! -x "$BOOT_JDK/bin/javac"; then 27631 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27633 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27634 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27635 BOOT_JDK_FOUND=no 27636 else 27637 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27638 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27639 27640 # Extra M4 quote needed to protect [] in grep expression. 27641 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27642 if test "x$FOUND_CORRECT_VERSION" = x; then 27643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27645 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27646 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27647 BOOT_JDK_FOUND=no 27648 else 27649 # We're done! :-) 27650 BOOT_JDK_FOUND=yes 27651 27652 # Only process if variable expands to non-empty 27653 27654 if test "x$BOOT_JDK" != x; then 27655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27656 27657 # Input might be given as Windows format, start by converting to 27658 # unix format. 27659 path="$BOOT_JDK" 27660 new_path=`$CYGPATH -u "$path"` 27661 27662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27665 # "foo.exe" is OK but "foo" is an error. 27666 # 27667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27668 # It is also a way to make sure we got the proper file name for the real test later on. 27669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27670 if test "x$test_shortpath" = x; then 27671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27672 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27673 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27674 fi 27675 27676 # Call helper function which possibly converts this using DOS-style short mode. 27677 # If so, the updated path is stored in $new_path. 27678 27679 input_path="$new_path" 27680 # Check if we need to convert this using DOS-style short mode. If the path 27681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27682 # take no chances and rewrite it. 27683 # Note: m4 eats our [], so we need to use [ and ] instead. 27684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27685 if test "x$has_forbidden_chars" != x; then 27686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27687 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27688 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27689 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27690 # Going to short mode and back again did indeed matter. Since short mode is 27691 # case insensitive, let's make it lowercase to improve readability. 27692 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27693 # Now convert it back to Unix-style (cygpath) 27694 input_path=`$CYGPATH -u "$shortmode_path"` 27695 new_path="$input_path" 27696 fi 27697 fi 27698 27699 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27700 if test "x$test_cygdrive_prefix" = x; then 27701 # As a simple fix, exclude /usr/bin since it's not a real path. 27702 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27703 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27704 # a path prefixed by /cygdrive for fixpath to work. 27705 new_path="$CYGWIN_ROOT_PATH$input_path" 27706 fi 27707 fi 27708 27709 27710 if test "x$path" != "x$new_path"; then 27711 BOOT_JDK="$new_path" 27712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27713 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27714 fi 27715 27716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27717 27718 path="$BOOT_JDK" 27719 has_colon=`$ECHO $path | $GREP ^.:` 27720 new_path="$path" 27721 if test "x$has_colon" = x; then 27722 # Not in mixed or Windows style, start by that. 27723 new_path=`cmd //c echo $path` 27724 fi 27725 27726 27727 input_path="$new_path" 27728 # Check if we need to convert this using DOS-style short mode. If the path 27729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27730 # take no chances and rewrite it. 27731 # Note: m4 eats our [], so we need to use [ and ] instead. 27732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27733 if test "x$has_forbidden_chars" != x; then 27734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27736 fi 27737 27738 27739 windows_path="$new_path" 27740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27741 unix_path=`$CYGPATH -u "$windows_path"` 27742 new_path="$unix_path" 27743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27745 new_path="$unix_path" 27746 fi 27747 27748 if test "x$path" != "x$new_path"; then 27749 BOOT_JDK="$new_path" 27750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27751 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27752 fi 27753 27754 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27755 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27756 27757 else 27758 # We're on a unix platform. Hooray! :) 27759 path="$BOOT_JDK" 27760 has_space=`$ECHO "$path" | $GREP " "` 27761 if test "x$has_space" != x; then 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27763 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27764 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27765 fi 27766 27767 # Use eval to expand a potential ~ 27768 eval path="$path" 27769 if test ! -f "$path" && test ! -d "$path"; then 27770 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27771 fi 27772 27773 if test -d "$path"; then 27774 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27775 else 27776 dir="`$DIRNAME "$path"`" 27777 base="`$BASENAME "$path"`" 27778 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27779 fi 27780 fi 27781 fi 27782 27783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27784 $as_echo_n "checking for Boot JDK... " >&6; } 27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27786 $as_echo "$BOOT_JDK" >&6; } 27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27788 $as_echo_n "checking Boot JDK version... " >&6; } 27789 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27791 $as_echo "$BOOT_JDK_VERSION" >&6; } 27792 fi # end check jdk version 27793 fi # end check javac 27794 fi # end check java 27795 fi # end check boot jdk found 27796 fi 27797 27798 27799 if test "x$BOOT_JDK_FOUND" = xno; then 27800 # Now execute the test 27801 27802 if test "x$PROGRAMW6432" != x; then 27803 VIRTUAL_DIR="$PROGRAMW6432/Java" 27804 27805 windows_path="$VIRTUAL_DIR" 27806 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27807 unix_path=`$CYGPATH -u "$windows_path"` 27808 VIRTUAL_DIR="$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 VIRTUAL_DIR="$unix_path" 27812 fi 27813 27814 27815 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27816 BOOT_JDK_SUFFIX="" 27817 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27818 if test "x$ALL_JDKS_FOUND" != x; then 27819 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27820 27821 if test "x$BOOT_JDK_FOUND" = xno; then 27822 # Now execute the test 27823 27824 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27825 if test -d "$BOOT_JDK"; then 27826 BOOT_JDK_FOUND=maybe 27827 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27828 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27829 fi 27830 27831 27832 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27833 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27834 # Do we have a bin/java? 27835 if test ! -x "$BOOT_JDK/bin/java"; then 27836 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27837 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27838 BOOT_JDK_FOUND=no 27839 else 27840 # Do we have a bin/javac? 27841 if test ! -x "$BOOT_JDK/bin/javac"; then 27842 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27843 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27844 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27845 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27846 BOOT_JDK_FOUND=no 27847 else 27848 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27849 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27850 27851 # Extra M4 quote needed to protect [] in grep expression. 27852 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27853 if test "x$FOUND_CORRECT_VERSION" = x; then 27854 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27855 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27856 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27857 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27858 BOOT_JDK_FOUND=no 27859 else 27860 # We're done! :-) 27861 BOOT_JDK_FOUND=yes 27862 27863 # Only process if variable expands to non-empty 27864 27865 if test "x$BOOT_JDK" != x; then 27866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27867 27868 # Input might be given as Windows format, start by converting to 27869 # unix format. 27870 path="$BOOT_JDK" 27871 new_path=`$CYGPATH -u "$path"` 27872 27873 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27874 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27875 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27876 # "foo.exe" is OK but "foo" is an error. 27877 # 27878 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27879 # It is also a way to make sure we got the proper file name for the real test later on. 27880 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27881 if test "x$test_shortpath" = x; then 27882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27883 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27884 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27885 fi 27886 27887 # Call helper function which possibly converts this using DOS-style short mode. 27888 # If so, the updated path is stored in $new_path. 27889 27890 input_path="$new_path" 27891 # Check if we need to convert this using DOS-style short mode. If the path 27892 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27893 # take no chances and rewrite it. 27894 # Note: m4 eats our [], so we need to use [ and ] instead. 27895 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27896 if test "x$has_forbidden_chars" != x; then 27897 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27898 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27899 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27900 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27901 # Going to short mode and back again did indeed matter. Since short mode is 27902 # case insensitive, let's make it lowercase to improve readability. 27903 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27904 # Now convert it back to Unix-style (cygpath) 27905 input_path=`$CYGPATH -u "$shortmode_path"` 27906 new_path="$input_path" 27907 fi 27908 fi 27909 27910 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27911 if test "x$test_cygdrive_prefix" = x; then 27912 # As a simple fix, exclude /usr/bin since it's not a real path. 27913 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27914 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27915 # a path prefixed by /cygdrive for fixpath to work. 27916 new_path="$CYGWIN_ROOT_PATH$input_path" 27917 fi 27918 fi 27919 27920 27921 if test "x$path" != "x$new_path"; then 27922 BOOT_JDK="$new_path" 27923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27924 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27925 fi 27926 27927 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27928 27929 path="$BOOT_JDK" 27930 has_colon=`$ECHO $path | $GREP ^.:` 27931 new_path="$path" 27932 if test "x$has_colon" = x; then 27933 # Not in mixed or Windows style, start by that. 27934 new_path=`cmd //c echo $path` 27935 fi 27936 27937 27938 input_path="$new_path" 27939 # Check if we need to convert this using DOS-style short mode. If the path 27940 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27941 # take no chances and rewrite it. 27942 # Note: m4 eats our [], so we need to use [ and ] instead. 27943 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27944 if test "x$has_forbidden_chars" != x; then 27945 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27946 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27947 fi 27948 27949 27950 windows_path="$new_path" 27951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27952 unix_path=`$CYGPATH -u "$windows_path"` 27953 new_path="$unix_path" 27954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27956 new_path="$unix_path" 27957 fi 27958 27959 if test "x$path" != "x$new_path"; then 27960 BOOT_JDK="$new_path" 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27962 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27963 fi 27964 27965 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27966 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27967 27968 else 27969 # We're on a unix platform. Hooray! :) 27970 path="$BOOT_JDK" 27971 has_space=`$ECHO "$path" | $GREP " "` 27972 if test "x$has_space" != x; then 27973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27974 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27975 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27976 fi 27977 27978 # Use eval to expand a potential ~ 27979 eval path="$path" 27980 if test ! -f "$path" && test ! -d "$path"; then 27981 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27982 fi 27983 27984 if test -d "$path"; then 27985 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27986 else 27987 dir="`$DIRNAME "$path"`" 27988 base="`$BASENAME "$path"`" 27989 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27990 fi 27991 fi 27992 fi 27993 27994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27995 $as_echo_n "checking for Boot JDK... " >&6; } 27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27997 $as_echo "$BOOT_JDK" >&6; } 27998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27999 $as_echo_n "checking Boot JDK version... " >&6; } 28000 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28002 $as_echo "$BOOT_JDK_VERSION" >&6; } 28003 fi # end check jdk version 28004 fi # end check javac 28005 fi # end check java 28006 fi # end check boot jdk found 28007 fi 28008 28009 done 28010 fi 28011 28012 fi 28013 28014 28015 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28016 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28017 # Do we have a bin/java? 28018 if test ! -x "$BOOT_JDK/bin/java"; then 28019 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28020 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28021 BOOT_JDK_FOUND=no 28022 else 28023 # Do we have a bin/javac? 28024 if test ! -x "$BOOT_JDK/bin/javac"; then 28025 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28026 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28027 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28028 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28029 BOOT_JDK_FOUND=no 28030 else 28031 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28032 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28033 28034 # Extra M4 quote needed to protect [] in grep expression. 28035 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28036 if test "x$FOUND_CORRECT_VERSION" = x; then 28037 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28038 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28039 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28040 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28041 BOOT_JDK_FOUND=no 28042 else 28043 # We're done! :-) 28044 BOOT_JDK_FOUND=yes 28045 28046 # Only process if variable expands to non-empty 28047 28048 if test "x$BOOT_JDK" != x; then 28049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28050 28051 # Input might be given as Windows format, start by converting to 28052 # unix format. 28053 path="$BOOT_JDK" 28054 new_path=`$CYGPATH -u "$path"` 28055 28056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28059 # "foo.exe" is OK but "foo" is an error. 28060 # 28061 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28062 # It is also a way to make sure we got the proper file name for the real test later on. 28063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28064 if test "x$test_shortpath" = x; then 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28066 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28067 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28068 fi 28069 28070 # Call helper function which possibly converts this using DOS-style short mode. 28071 # If so, the updated path is stored in $new_path. 28072 28073 input_path="$new_path" 28074 # Check if we need to convert this using DOS-style short mode. If the path 28075 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28076 # take no chances and rewrite it. 28077 # Note: m4 eats our [], so we need to use [ and ] instead. 28078 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28079 if test "x$has_forbidden_chars" != x; then 28080 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28081 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28082 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28083 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28084 # Going to short mode and back again did indeed matter. Since short mode is 28085 # case insensitive, let's make it lowercase to improve readability. 28086 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28087 # Now convert it back to Unix-style (cygpath) 28088 input_path=`$CYGPATH -u "$shortmode_path"` 28089 new_path="$input_path" 28090 fi 28091 fi 28092 28093 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28094 if test "x$test_cygdrive_prefix" = x; then 28095 # As a simple fix, exclude /usr/bin since it's not a real path. 28096 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28097 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28098 # a path prefixed by /cygdrive for fixpath to work. 28099 new_path="$CYGWIN_ROOT_PATH$input_path" 28100 fi 28101 fi 28102 28103 28104 if test "x$path" != "x$new_path"; then 28105 BOOT_JDK="$new_path" 28106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28107 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28108 fi 28109 28110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28111 28112 path="$BOOT_JDK" 28113 has_colon=`$ECHO $path | $GREP ^.:` 28114 new_path="$path" 28115 if test "x$has_colon" = x; then 28116 # Not in mixed or Windows style, start by that. 28117 new_path=`cmd //c echo $path` 28118 fi 28119 28120 28121 input_path="$new_path" 28122 # Check if we need to convert this using DOS-style short mode. If the path 28123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28124 # take no chances and rewrite it. 28125 # Note: m4 eats our [], so we need to use [ and ] instead. 28126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28127 if test "x$has_forbidden_chars" != x; then 28128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28129 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28130 fi 28131 28132 28133 windows_path="$new_path" 28134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28135 unix_path=`$CYGPATH -u "$windows_path"` 28136 new_path="$unix_path" 28137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28139 new_path="$unix_path" 28140 fi 28141 28142 if test "x$path" != "x$new_path"; then 28143 BOOT_JDK="$new_path" 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28145 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28146 fi 28147 28148 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28149 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28150 28151 else 28152 # We're on a unix platform. Hooray! :) 28153 path="$BOOT_JDK" 28154 has_space=`$ECHO "$path" | $GREP " "` 28155 if test "x$has_space" != x; then 28156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28157 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28158 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28159 fi 28160 28161 # Use eval to expand a potential ~ 28162 eval path="$path" 28163 if test ! -f "$path" && test ! -d "$path"; then 28164 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28165 fi 28166 28167 if test -d "$path"; then 28168 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28169 else 28170 dir="`$DIRNAME "$path"`" 28171 base="`$BASENAME "$path"`" 28172 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28173 fi 28174 fi 28175 fi 28176 28177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28178 $as_echo_n "checking for Boot JDK... " >&6; } 28179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28180 $as_echo "$BOOT_JDK" >&6; } 28181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28182 $as_echo_n "checking Boot JDK version... " >&6; } 28183 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28185 $as_echo "$BOOT_JDK_VERSION" >&6; } 28186 fi # end check jdk version 28187 fi # end check javac 28188 fi # end check java 28189 fi # end check boot jdk found 28190 fi 28191 28192 28193 if test "x$BOOT_JDK_FOUND" = xno; then 28194 # Now execute the test 28195 28196 if test "x$PROGRAMFILES" != x; then 28197 VIRTUAL_DIR="$PROGRAMFILES/Java" 28198 28199 windows_path="$VIRTUAL_DIR" 28200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28201 unix_path=`$CYGPATH -u "$windows_path"` 28202 VIRTUAL_DIR="$unix_path" 28203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28205 VIRTUAL_DIR="$unix_path" 28206 fi 28207 28208 28209 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28210 BOOT_JDK_SUFFIX="" 28211 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28212 if test "x$ALL_JDKS_FOUND" != x; then 28213 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28214 28215 if test "x$BOOT_JDK_FOUND" = xno; then 28216 # Now execute the test 28217 28218 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28219 if test -d "$BOOT_JDK"; then 28220 BOOT_JDK_FOUND=maybe 28221 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28222 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28223 fi 28224 28225 28226 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28227 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28228 # Do we have a bin/java? 28229 if test ! -x "$BOOT_JDK/bin/java"; then 28230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28232 BOOT_JDK_FOUND=no 28233 else 28234 # Do we have a bin/javac? 28235 if test ! -x "$BOOT_JDK/bin/javac"; then 28236 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28237 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28238 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28239 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28240 BOOT_JDK_FOUND=no 28241 else 28242 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28243 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28244 28245 # Extra M4 quote needed to protect [] in grep expression. 28246 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28247 if test "x$FOUND_CORRECT_VERSION" = x; then 28248 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28249 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28250 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28251 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28252 BOOT_JDK_FOUND=no 28253 else 28254 # We're done! :-) 28255 BOOT_JDK_FOUND=yes 28256 28257 # Only process if variable expands to non-empty 28258 28259 if test "x$BOOT_JDK" != x; then 28260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28261 28262 # Input might be given as Windows format, start by converting to 28263 # unix format. 28264 path="$BOOT_JDK" 28265 new_path=`$CYGPATH -u "$path"` 28266 28267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28270 # "foo.exe" is OK but "foo" is an error. 28271 # 28272 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28273 # It is also a way to make sure we got the proper file name for the real test later on. 28274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28275 if test "x$test_shortpath" = x; then 28276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28277 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28278 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28279 fi 28280 28281 # Call helper function which possibly converts this using DOS-style short mode. 28282 # If so, the updated path is stored in $new_path. 28283 28284 input_path="$new_path" 28285 # Check if we need to convert this using DOS-style short mode. If the path 28286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28287 # take no chances and rewrite it. 28288 # Note: m4 eats our [], so we need to use [ and ] instead. 28289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28290 if test "x$has_forbidden_chars" != x; then 28291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28292 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28293 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28294 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28295 # Going to short mode and back again did indeed matter. Since short mode is 28296 # case insensitive, let's make it lowercase to improve readability. 28297 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28298 # Now convert it back to Unix-style (cygpath) 28299 input_path=`$CYGPATH -u "$shortmode_path"` 28300 new_path="$input_path" 28301 fi 28302 fi 28303 28304 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28305 if test "x$test_cygdrive_prefix" = x; then 28306 # As a simple fix, exclude /usr/bin since it's not a real path. 28307 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28308 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28309 # a path prefixed by /cygdrive for fixpath to work. 28310 new_path="$CYGWIN_ROOT_PATH$input_path" 28311 fi 28312 fi 28313 28314 28315 if test "x$path" != "x$new_path"; then 28316 BOOT_JDK="$new_path" 28317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28318 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28319 fi 28320 28321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28322 28323 path="$BOOT_JDK" 28324 has_colon=`$ECHO $path | $GREP ^.:` 28325 new_path="$path" 28326 if test "x$has_colon" = x; then 28327 # Not in mixed or Windows style, start by that. 28328 new_path=`cmd //c echo $path` 28329 fi 28330 28331 28332 input_path="$new_path" 28333 # Check if we need to convert this using DOS-style short mode. If the path 28334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28335 # take no chances and rewrite it. 28336 # Note: m4 eats our [], so we need to use [ and ] instead. 28337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28338 if test "x$has_forbidden_chars" != x; then 28339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28340 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28341 fi 28342 28343 28344 windows_path="$new_path" 28345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28346 unix_path=`$CYGPATH -u "$windows_path"` 28347 new_path="$unix_path" 28348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28350 new_path="$unix_path" 28351 fi 28352 28353 if test "x$path" != "x$new_path"; then 28354 BOOT_JDK="$new_path" 28355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28356 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28357 fi 28358 28359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28361 28362 else 28363 # We're on a unix platform. Hooray! :) 28364 path="$BOOT_JDK" 28365 has_space=`$ECHO "$path" | $GREP " "` 28366 if test "x$has_space" != x; then 28367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28368 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28369 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28370 fi 28371 28372 # Use eval to expand a potential ~ 28373 eval path="$path" 28374 if test ! -f "$path" && test ! -d "$path"; then 28375 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28376 fi 28377 28378 if test -d "$path"; then 28379 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28380 else 28381 dir="`$DIRNAME "$path"`" 28382 base="`$BASENAME "$path"`" 28383 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28384 fi 28385 fi 28386 fi 28387 28388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28389 $as_echo_n "checking for Boot JDK... " >&6; } 28390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28391 $as_echo "$BOOT_JDK" >&6; } 28392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28393 $as_echo_n "checking Boot JDK version... " >&6; } 28394 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28396 $as_echo "$BOOT_JDK_VERSION" >&6; } 28397 fi # end check jdk version 28398 fi # end check javac 28399 fi # end check java 28400 fi # end check boot jdk found 28401 fi 28402 28403 done 28404 fi 28405 28406 fi 28407 28408 28409 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28410 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28411 # Do we have a bin/java? 28412 if test ! -x "$BOOT_JDK/bin/java"; then 28413 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28415 BOOT_JDK_FOUND=no 28416 else 28417 # Do we have a bin/javac? 28418 if test ! -x "$BOOT_JDK/bin/javac"; then 28419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28421 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28422 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28423 BOOT_JDK_FOUND=no 28424 else 28425 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28426 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28427 28428 # Extra M4 quote needed to protect [] in grep expression. 28429 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28430 if test "x$FOUND_CORRECT_VERSION" = x; then 28431 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28433 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28434 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28435 BOOT_JDK_FOUND=no 28436 else 28437 # We're done! :-) 28438 BOOT_JDK_FOUND=yes 28439 28440 # Only process if variable expands to non-empty 28441 28442 if test "x$BOOT_JDK" != x; then 28443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28444 28445 # Input might be given as Windows format, start by converting to 28446 # unix format. 28447 path="$BOOT_JDK" 28448 new_path=`$CYGPATH -u "$path"` 28449 28450 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28451 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28452 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28453 # "foo.exe" is OK but "foo" is an error. 28454 # 28455 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28456 # It is also a way to make sure we got the proper file name for the real test later on. 28457 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28458 if test "x$test_shortpath" = x; then 28459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28461 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28462 fi 28463 28464 # Call helper function which possibly converts this using DOS-style short mode. 28465 # If so, the updated path is stored in $new_path. 28466 28467 input_path="$new_path" 28468 # Check if we need to convert this using DOS-style short mode. If the path 28469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28470 # take no chances and rewrite it. 28471 # Note: m4 eats our [], so we need to use [ and ] instead. 28472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28473 if test "x$has_forbidden_chars" != x; then 28474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28478 # Going to short mode and back again did indeed matter. Since short mode is 28479 # case insensitive, let's make it lowercase to improve readability. 28480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28481 # Now convert it back to Unix-style (cygpath) 28482 input_path=`$CYGPATH -u "$shortmode_path"` 28483 new_path="$input_path" 28484 fi 28485 fi 28486 28487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28488 if test "x$test_cygdrive_prefix" = x; then 28489 # As a simple fix, exclude /usr/bin since it's not a real path. 28490 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28492 # a path prefixed by /cygdrive for fixpath to work. 28493 new_path="$CYGWIN_ROOT_PATH$input_path" 28494 fi 28495 fi 28496 28497 28498 if test "x$path" != "x$new_path"; then 28499 BOOT_JDK="$new_path" 28500 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28502 fi 28503 28504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28505 28506 path="$BOOT_JDK" 28507 has_colon=`$ECHO $path | $GREP ^.:` 28508 new_path="$path" 28509 if test "x$has_colon" = x; then 28510 # Not in mixed or Windows style, start by that. 28511 new_path=`cmd //c echo $path` 28512 fi 28513 28514 28515 input_path="$new_path" 28516 # Check if we need to convert this using DOS-style short mode. If the path 28517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28518 # take no chances and rewrite it. 28519 # Note: m4 eats our [], so we need to use [ and ] instead. 28520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28521 if test "x$has_forbidden_chars" != x; then 28522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28523 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28524 fi 28525 28526 28527 windows_path="$new_path" 28528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28529 unix_path=`$CYGPATH -u "$windows_path"` 28530 new_path="$unix_path" 28531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28533 new_path="$unix_path" 28534 fi 28535 28536 if test "x$path" != "x$new_path"; then 28537 BOOT_JDK="$new_path" 28538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28539 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28540 fi 28541 28542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28544 28545 else 28546 # We're on a unix platform. Hooray! :) 28547 path="$BOOT_JDK" 28548 has_space=`$ECHO "$path" | $GREP " "` 28549 if test "x$has_space" != x; then 28550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28552 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28553 fi 28554 28555 # Use eval to expand a potential ~ 28556 eval path="$path" 28557 if test ! -f "$path" && test ! -d "$path"; then 28558 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28559 fi 28560 28561 if test -d "$path"; then 28562 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28563 else 28564 dir="`$DIRNAME "$path"`" 28565 base="`$BASENAME "$path"`" 28566 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28567 fi 28568 fi 28569 fi 28570 28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28572 $as_echo_n "checking for Boot JDK... " >&6; } 28573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28574 $as_echo "$BOOT_JDK" >&6; } 28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28576 $as_echo_n "checking Boot JDK version... " >&6; } 28577 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28579 $as_echo "$BOOT_JDK_VERSION" >&6; } 28580 fi # end check jdk version 28581 fi # end check javac 28582 fi # end check java 28583 fi # end check boot jdk found 28584 fi 28585 28586 28587 if test "x$BOOT_JDK_FOUND" = xno; then 28588 # Now execute the test 28589 28590 if test "x$ProgramFiles" != x; then 28591 VIRTUAL_DIR="$ProgramFiles/Java" 28592 28593 windows_path="$VIRTUAL_DIR" 28594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28595 unix_path=`$CYGPATH -u "$windows_path"` 28596 VIRTUAL_DIR="$unix_path" 28597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28598 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28599 VIRTUAL_DIR="$unix_path" 28600 fi 28601 28602 28603 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28604 BOOT_JDK_SUFFIX="" 28605 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28606 if test "x$ALL_JDKS_FOUND" != x; then 28607 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28608 28609 if test "x$BOOT_JDK_FOUND" = xno; then 28610 # Now execute the test 28611 28612 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28613 if test -d "$BOOT_JDK"; then 28614 BOOT_JDK_FOUND=maybe 28615 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28616 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28617 fi 28618 28619 28620 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28621 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28622 # Do we have a bin/java? 28623 if test ! -x "$BOOT_JDK/bin/java"; then 28624 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28626 BOOT_JDK_FOUND=no 28627 else 28628 # Do we have a bin/javac? 28629 if test ! -x "$BOOT_JDK/bin/javac"; then 28630 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28631 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28632 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28633 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28634 BOOT_JDK_FOUND=no 28635 else 28636 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28637 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28638 28639 # Extra M4 quote needed to protect [] in grep expression. 28640 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28641 if test "x$FOUND_CORRECT_VERSION" = x; then 28642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28644 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28645 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28646 BOOT_JDK_FOUND=no 28647 else 28648 # We're done! :-) 28649 BOOT_JDK_FOUND=yes 28650 28651 # Only process if variable expands to non-empty 28652 28653 if test "x$BOOT_JDK" != x; then 28654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28655 28656 # Input might be given as Windows format, start by converting to 28657 # unix format. 28658 path="$BOOT_JDK" 28659 new_path=`$CYGPATH -u "$path"` 28660 28661 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28662 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28663 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28664 # "foo.exe" is OK but "foo" is an error. 28665 # 28666 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28667 # It is also a way to make sure we got the proper file name for the real test later on. 28668 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28669 if test "x$test_shortpath" = x; then 28670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28671 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28672 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28673 fi 28674 28675 # Call helper function which possibly converts this using DOS-style short mode. 28676 # If so, the updated path is stored in $new_path. 28677 28678 input_path="$new_path" 28679 # Check if we need to convert this using DOS-style short mode. If the path 28680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28681 # take no chances and rewrite it. 28682 # Note: m4 eats our [], so we need to use [ and ] instead. 28683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28684 if test "x$has_forbidden_chars" != x; then 28685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28686 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28687 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28688 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28689 # Going to short mode and back again did indeed matter. Since short mode is 28690 # case insensitive, let's make it lowercase to improve readability. 28691 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28692 # Now convert it back to Unix-style (cygpath) 28693 input_path=`$CYGPATH -u "$shortmode_path"` 28694 new_path="$input_path" 28695 fi 28696 fi 28697 28698 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28699 if test "x$test_cygdrive_prefix" = x; then 28700 # As a simple fix, exclude /usr/bin since it's not a real path. 28701 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28702 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28703 # a path prefixed by /cygdrive for fixpath to work. 28704 new_path="$CYGWIN_ROOT_PATH$input_path" 28705 fi 28706 fi 28707 28708 28709 if test "x$path" != "x$new_path"; then 28710 BOOT_JDK="$new_path" 28711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28712 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28713 fi 28714 28715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28716 28717 path="$BOOT_JDK" 28718 has_colon=`$ECHO $path | $GREP ^.:` 28719 new_path="$path" 28720 if test "x$has_colon" = x; then 28721 # Not in mixed or Windows style, start by that. 28722 new_path=`cmd //c echo $path` 28723 fi 28724 28725 28726 input_path="$new_path" 28727 # Check if we need to convert this using DOS-style short mode. If the path 28728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28729 # take no chances and rewrite it. 28730 # Note: m4 eats our [], so we need to use [ and ] instead. 28731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28732 if test "x$has_forbidden_chars" != x; then 28733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28734 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28735 fi 28736 28737 28738 windows_path="$new_path" 28739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28740 unix_path=`$CYGPATH -u "$windows_path"` 28741 new_path="$unix_path" 28742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28744 new_path="$unix_path" 28745 fi 28746 28747 if test "x$path" != "x$new_path"; then 28748 BOOT_JDK="$new_path" 28749 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28750 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28751 fi 28752 28753 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28754 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28755 28756 else 28757 # We're on a unix platform. Hooray! :) 28758 path="$BOOT_JDK" 28759 has_space=`$ECHO "$path" | $GREP " "` 28760 if test "x$has_space" != x; then 28761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28762 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28763 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28764 fi 28765 28766 # Use eval to expand a potential ~ 28767 eval path="$path" 28768 if test ! -f "$path" && test ! -d "$path"; then 28769 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28770 fi 28771 28772 if test -d "$path"; then 28773 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28774 else 28775 dir="`$DIRNAME "$path"`" 28776 base="`$BASENAME "$path"`" 28777 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28778 fi 28779 fi 28780 fi 28781 28782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28783 $as_echo_n "checking for Boot JDK... " >&6; } 28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28785 $as_echo "$BOOT_JDK" >&6; } 28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28787 $as_echo_n "checking Boot JDK version... " >&6; } 28788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28790 $as_echo "$BOOT_JDK_VERSION" >&6; } 28791 fi # end check jdk version 28792 fi # end check javac 28793 fi # end check java 28794 fi # end check boot jdk found 28795 fi 28796 28797 done 28798 fi 28799 28800 fi 28801 28802 28803 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28804 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28805 # Do we have a bin/java? 28806 if test ! -x "$BOOT_JDK/bin/java"; then 28807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28809 BOOT_JDK_FOUND=no 28810 else 28811 # Do we have a bin/javac? 28812 if test ! -x "$BOOT_JDK/bin/javac"; then 28813 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28814 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28815 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28816 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28817 BOOT_JDK_FOUND=no 28818 else 28819 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28820 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28821 28822 # Extra M4 quote needed to protect [] in grep expression. 28823 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28824 if test "x$FOUND_CORRECT_VERSION" = x; then 28825 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28826 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28827 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28828 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28829 BOOT_JDK_FOUND=no 28830 else 28831 # We're done! :-) 28832 BOOT_JDK_FOUND=yes 28833 28834 # Only process if variable expands to non-empty 28835 28836 if test "x$BOOT_JDK" != x; then 28837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28838 28839 # Input might be given as Windows format, start by converting to 28840 # unix format. 28841 path="$BOOT_JDK" 28842 new_path=`$CYGPATH -u "$path"` 28843 28844 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28845 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28846 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28847 # "foo.exe" is OK but "foo" is an error. 28848 # 28849 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28850 # It is also a way to make sure we got the proper file name for the real test later on. 28851 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28852 if test "x$test_shortpath" = x; then 28853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28854 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28855 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28856 fi 28857 28858 # Call helper function which possibly converts this using DOS-style short mode. 28859 # If so, the updated path is stored in $new_path. 28860 28861 input_path="$new_path" 28862 # Check if we need to convert this using DOS-style short mode. If the path 28863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28864 # take no chances and rewrite it. 28865 # Note: m4 eats our [], so we need to use [ and ] instead. 28866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28867 if test "x$has_forbidden_chars" != x; then 28868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28869 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28870 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28871 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28872 # Going to short mode and back again did indeed matter. Since short mode is 28873 # case insensitive, let's make it lowercase to improve readability. 28874 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28875 # Now convert it back to Unix-style (cygpath) 28876 input_path=`$CYGPATH -u "$shortmode_path"` 28877 new_path="$input_path" 28878 fi 28879 fi 28880 28881 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28882 if test "x$test_cygdrive_prefix" = x; then 28883 # As a simple fix, exclude /usr/bin since it's not a real path. 28884 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28885 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28886 # a path prefixed by /cygdrive for fixpath to work. 28887 new_path="$CYGWIN_ROOT_PATH$input_path" 28888 fi 28889 fi 28890 28891 28892 if test "x$path" != "x$new_path"; then 28893 BOOT_JDK="$new_path" 28894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28895 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28896 fi 28897 28898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28899 28900 path="$BOOT_JDK" 28901 has_colon=`$ECHO $path | $GREP ^.:` 28902 new_path="$path" 28903 if test "x$has_colon" = x; then 28904 # Not in mixed or Windows style, start by that. 28905 new_path=`cmd //c echo $path` 28906 fi 28907 28908 28909 input_path="$new_path" 28910 # Check if we need to convert this using DOS-style short mode. If the path 28911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28912 # take no chances and rewrite it. 28913 # Note: m4 eats our [], so we need to use [ and ] instead. 28914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28915 if test "x$has_forbidden_chars" != x; then 28916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28917 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28918 fi 28919 28920 28921 windows_path="$new_path" 28922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28923 unix_path=`$CYGPATH -u "$windows_path"` 28924 new_path="$unix_path" 28925 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28926 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28927 new_path="$unix_path" 28928 fi 28929 28930 if test "x$path" != "x$new_path"; then 28931 BOOT_JDK="$new_path" 28932 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28933 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28934 fi 28935 28936 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28937 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28938 28939 else 28940 # We're on a unix platform. Hooray! :) 28941 path="$BOOT_JDK" 28942 has_space=`$ECHO "$path" | $GREP " "` 28943 if test "x$has_space" != x; then 28944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28945 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28946 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28947 fi 28948 28949 # Use eval to expand a potential ~ 28950 eval path="$path" 28951 if test ! -f "$path" && test ! -d "$path"; then 28952 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28953 fi 28954 28955 if test -d "$path"; then 28956 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28957 else 28958 dir="`$DIRNAME "$path"`" 28959 base="`$BASENAME "$path"`" 28960 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28961 fi 28962 fi 28963 fi 28964 28965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28966 $as_echo_n "checking for Boot JDK... " >&6; } 28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28968 $as_echo "$BOOT_JDK" >&6; } 28969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28970 $as_echo_n "checking Boot JDK version... " >&6; } 28971 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28973 $as_echo "$BOOT_JDK_VERSION" >&6; } 28974 fi # end check jdk version 28975 fi # end check javac 28976 fi # end check java 28977 fi # end check boot jdk found 28978 fi 28979 28980 28981 if test "x$BOOT_JDK_FOUND" = xno; then 28982 # Now execute the test 28983 28984 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28985 BOOT_JDK_SUFFIX="" 28986 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28987 if test "x$ALL_JDKS_FOUND" != x; then 28988 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28989 28990 if test "x$BOOT_JDK_FOUND" = xno; then 28991 # Now execute the test 28992 28993 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28994 if test -d "$BOOT_JDK"; then 28995 BOOT_JDK_FOUND=maybe 28996 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28997 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28998 fi 28999 29000 29001 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29002 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29003 # Do we have a bin/java? 29004 if test ! -x "$BOOT_JDK/bin/java"; then 29005 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29007 BOOT_JDK_FOUND=no 29008 else 29009 # Do we have a bin/javac? 29010 if test ! -x "$BOOT_JDK/bin/javac"; then 29011 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29012 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29013 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29014 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29015 BOOT_JDK_FOUND=no 29016 else 29017 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29018 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29019 29020 # Extra M4 quote needed to protect [] in grep expression. 29021 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29022 if test "x$FOUND_CORRECT_VERSION" = x; then 29023 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29024 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29025 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29026 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29027 BOOT_JDK_FOUND=no 29028 else 29029 # We're done! :-) 29030 BOOT_JDK_FOUND=yes 29031 29032 # Only process if variable expands to non-empty 29033 29034 if test "x$BOOT_JDK" != x; then 29035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29036 29037 # Input might be given as Windows format, start by converting to 29038 # unix format. 29039 path="$BOOT_JDK" 29040 new_path=`$CYGPATH -u "$path"` 29041 29042 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29043 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29044 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29045 # "foo.exe" is OK but "foo" is an error. 29046 # 29047 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29048 # It is also a way to make sure we got the proper file name for the real test later on. 29049 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29050 if test "x$test_shortpath" = x; then 29051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29052 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29053 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29054 fi 29055 29056 # Call helper function which possibly converts this using DOS-style short mode. 29057 # If so, the updated path is stored in $new_path. 29058 29059 input_path="$new_path" 29060 # Check if we need to convert this using DOS-style short mode. If the path 29061 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29062 # take no chances and rewrite it. 29063 # Note: m4 eats our [], so we need to use [ and ] instead. 29064 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29065 if test "x$has_forbidden_chars" != x; then 29066 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29067 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29068 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29069 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29070 # Going to short mode and back again did indeed matter. Since short mode is 29071 # case insensitive, let's make it lowercase to improve readability. 29072 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29073 # Now convert it back to Unix-style (cygpath) 29074 input_path=`$CYGPATH -u "$shortmode_path"` 29075 new_path="$input_path" 29076 fi 29077 fi 29078 29079 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29080 if test "x$test_cygdrive_prefix" = x; then 29081 # As a simple fix, exclude /usr/bin since it's not a real path. 29082 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29083 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29084 # a path prefixed by /cygdrive for fixpath to work. 29085 new_path="$CYGWIN_ROOT_PATH$input_path" 29086 fi 29087 fi 29088 29089 29090 if test "x$path" != "x$new_path"; then 29091 BOOT_JDK="$new_path" 29092 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29093 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29094 fi 29095 29096 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29097 29098 path="$BOOT_JDK" 29099 has_colon=`$ECHO $path | $GREP ^.:` 29100 new_path="$path" 29101 if test "x$has_colon" = x; then 29102 # Not in mixed or Windows style, start by that. 29103 new_path=`cmd //c echo $path` 29104 fi 29105 29106 29107 input_path="$new_path" 29108 # Check if we need to convert this using DOS-style short mode. If the path 29109 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29110 # take no chances and rewrite it. 29111 # Note: m4 eats our [], so we need to use [ and ] instead. 29112 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29113 if test "x$has_forbidden_chars" != x; then 29114 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29115 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29116 fi 29117 29118 29119 windows_path="$new_path" 29120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29121 unix_path=`$CYGPATH -u "$windows_path"` 29122 new_path="$unix_path" 29123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29124 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29125 new_path="$unix_path" 29126 fi 29127 29128 if test "x$path" != "x$new_path"; then 29129 BOOT_JDK="$new_path" 29130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29131 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29132 fi 29133 29134 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29135 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29136 29137 else 29138 # We're on a unix platform. Hooray! :) 29139 path="$BOOT_JDK" 29140 has_space=`$ECHO "$path" | $GREP " "` 29141 if test "x$has_space" != x; then 29142 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29143 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29144 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29145 fi 29146 29147 # Use eval to expand a potential ~ 29148 eval path="$path" 29149 if test ! -f "$path" && test ! -d "$path"; then 29150 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29151 fi 29152 29153 if test -d "$path"; then 29154 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29155 else 29156 dir="`$DIRNAME "$path"`" 29157 base="`$BASENAME "$path"`" 29158 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29159 fi 29160 fi 29161 fi 29162 29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29164 $as_echo_n "checking for Boot JDK... " >&6; } 29165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29166 $as_echo "$BOOT_JDK" >&6; } 29167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29168 $as_echo_n "checking Boot JDK version... " >&6; } 29169 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29171 $as_echo "$BOOT_JDK_VERSION" >&6; } 29172 fi # end check jdk version 29173 fi # end check javac 29174 fi # end check java 29175 fi # end check boot jdk found 29176 fi 29177 29178 done 29179 fi 29180 29181 29182 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29183 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29184 # Do we have a bin/java? 29185 if test ! -x "$BOOT_JDK/bin/java"; then 29186 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29188 BOOT_JDK_FOUND=no 29189 else 29190 # Do we have a bin/javac? 29191 if test ! -x "$BOOT_JDK/bin/javac"; then 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29193 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29194 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29195 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29196 BOOT_JDK_FOUND=no 29197 else 29198 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29199 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29200 29201 # Extra M4 quote needed to protect [] in grep expression. 29202 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29203 if test "x$FOUND_CORRECT_VERSION" = x; then 29204 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29205 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29206 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29207 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29208 BOOT_JDK_FOUND=no 29209 else 29210 # We're done! :-) 29211 BOOT_JDK_FOUND=yes 29212 29213 # Only process if variable expands to non-empty 29214 29215 if test "x$BOOT_JDK" != x; then 29216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29217 29218 # Input might be given as Windows format, start by converting to 29219 # unix format. 29220 path="$BOOT_JDK" 29221 new_path=`$CYGPATH -u "$path"` 29222 29223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29226 # "foo.exe" is OK but "foo" is an error. 29227 # 29228 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29229 # It is also a way to make sure we got the proper file name for the real test later on. 29230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29231 if test "x$test_shortpath" = x; then 29232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29233 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29234 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29235 fi 29236 29237 # Call helper function which possibly converts this using DOS-style short mode. 29238 # If so, the updated path is stored in $new_path. 29239 29240 input_path="$new_path" 29241 # Check if we need to convert this using DOS-style short mode. If the path 29242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29243 # take no chances and rewrite it. 29244 # Note: m4 eats our [], so we need to use [ and ] instead. 29245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29246 if test "x$has_forbidden_chars" != x; then 29247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29251 # Going to short mode and back again did indeed matter. Since short mode is 29252 # case insensitive, let's make it lowercase to improve readability. 29253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29254 # Now convert it back to Unix-style (cygpath) 29255 input_path=`$CYGPATH -u "$shortmode_path"` 29256 new_path="$input_path" 29257 fi 29258 fi 29259 29260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29261 if test "x$test_cygdrive_prefix" = x; then 29262 # As a simple fix, exclude /usr/bin since it's not a real path. 29263 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29265 # a path prefixed by /cygdrive for fixpath to work. 29266 new_path="$CYGWIN_ROOT_PATH$input_path" 29267 fi 29268 fi 29269 29270 29271 if test "x$path" != "x$new_path"; then 29272 BOOT_JDK="$new_path" 29273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29274 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29275 fi 29276 29277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29278 29279 path="$BOOT_JDK" 29280 has_colon=`$ECHO $path | $GREP ^.:` 29281 new_path="$path" 29282 if test "x$has_colon" = x; then 29283 # Not in mixed or Windows style, start by that. 29284 new_path=`cmd //c echo $path` 29285 fi 29286 29287 29288 input_path="$new_path" 29289 # Check if we need to convert this using DOS-style short mode. If the path 29290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29291 # take no chances and rewrite it. 29292 # Note: m4 eats our [], so we need to use [ and ] instead. 29293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29294 if test "x$has_forbidden_chars" != x; then 29295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29297 fi 29298 29299 29300 windows_path="$new_path" 29301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29302 unix_path=`$CYGPATH -u "$windows_path"` 29303 new_path="$unix_path" 29304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29306 new_path="$unix_path" 29307 fi 29308 29309 if test "x$path" != "x$new_path"; then 29310 BOOT_JDK="$new_path" 29311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29312 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29313 fi 29314 29315 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29316 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29317 29318 else 29319 # We're on a unix platform. Hooray! :) 29320 path="$BOOT_JDK" 29321 has_space=`$ECHO "$path" | $GREP " "` 29322 if test "x$has_space" != x; then 29323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29324 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29325 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29326 fi 29327 29328 # Use eval to expand a potential ~ 29329 eval path="$path" 29330 if test ! -f "$path" && test ! -d "$path"; then 29331 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29332 fi 29333 29334 if test -d "$path"; then 29335 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29336 else 29337 dir="`$DIRNAME "$path"`" 29338 base="`$BASENAME "$path"`" 29339 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29340 fi 29341 fi 29342 fi 29343 29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29345 $as_echo_n "checking for Boot JDK... " >&6; } 29346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29347 $as_echo "$BOOT_JDK" >&6; } 29348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29349 $as_echo_n "checking Boot JDK version... " >&6; } 29350 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29352 $as_echo "$BOOT_JDK_VERSION" >&6; } 29353 fi # end check jdk version 29354 fi # end check javac 29355 fi # end check java 29356 fi # end check boot jdk found 29357 fi 29358 29359 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29360 29361 if test "x$BOOT_JDK_FOUND" = xno; then 29362 # Now execute the test 29363 29364 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29365 BOOT_JDK_SUFFIX="/Contents/Home" 29366 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29367 if test "x$ALL_JDKS_FOUND" != x; then 29368 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29369 29370 if test "x$BOOT_JDK_FOUND" = xno; then 29371 # Now execute the test 29372 29373 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29374 if test -d "$BOOT_JDK"; then 29375 BOOT_JDK_FOUND=maybe 29376 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29377 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29378 fi 29379 29380 29381 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29382 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29383 # Do we have a bin/java? 29384 if test ! -x "$BOOT_JDK/bin/java"; then 29385 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29386 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29387 BOOT_JDK_FOUND=no 29388 else 29389 # Do we have a bin/javac? 29390 if test ! -x "$BOOT_JDK/bin/javac"; then 29391 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29393 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29394 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29395 BOOT_JDK_FOUND=no 29396 else 29397 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29398 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29399 29400 # Extra M4 quote needed to protect [] in grep expression. 29401 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29402 if test "x$FOUND_CORRECT_VERSION" = x; then 29403 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29404 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29405 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29406 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29407 BOOT_JDK_FOUND=no 29408 else 29409 # We're done! :-) 29410 BOOT_JDK_FOUND=yes 29411 29412 # Only process if variable expands to non-empty 29413 29414 if test "x$BOOT_JDK" != x; then 29415 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29416 29417 # Input might be given as Windows format, start by converting to 29418 # unix format. 29419 path="$BOOT_JDK" 29420 new_path=`$CYGPATH -u "$path"` 29421 29422 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29423 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29424 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29425 # "foo.exe" is OK but "foo" is an error. 29426 # 29427 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29428 # It is also a way to make sure we got the proper file name for the real test later on. 29429 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29430 if test "x$test_shortpath" = x; then 29431 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29432 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29433 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29434 fi 29435 29436 # Call helper function which possibly converts this using DOS-style short mode. 29437 # If so, the updated path is stored in $new_path. 29438 29439 input_path="$new_path" 29440 # Check if we need to convert this using DOS-style short mode. If the path 29441 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29442 # take no chances and rewrite it. 29443 # Note: m4 eats our [], so we need to use [ and ] instead. 29444 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29445 if test "x$has_forbidden_chars" != x; then 29446 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29447 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29448 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29449 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29450 # Going to short mode and back again did indeed matter. Since short mode is 29451 # case insensitive, let's make it lowercase to improve readability. 29452 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29453 # Now convert it back to Unix-style (cygpath) 29454 input_path=`$CYGPATH -u "$shortmode_path"` 29455 new_path="$input_path" 29456 fi 29457 fi 29458 29459 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29460 if test "x$test_cygdrive_prefix" = x; then 29461 # As a simple fix, exclude /usr/bin since it's not a real path. 29462 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29463 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29464 # a path prefixed by /cygdrive for fixpath to work. 29465 new_path="$CYGWIN_ROOT_PATH$input_path" 29466 fi 29467 fi 29468 29469 29470 if test "x$path" != "x$new_path"; then 29471 BOOT_JDK="$new_path" 29472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29473 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29474 fi 29475 29476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29477 29478 path="$BOOT_JDK" 29479 has_colon=`$ECHO $path | $GREP ^.:` 29480 new_path="$path" 29481 if test "x$has_colon" = x; then 29482 # Not in mixed or Windows style, start by that. 29483 new_path=`cmd //c echo $path` 29484 fi 29485 29486 29487 input_path="$new_path" 29488 # Check if we need to convert this using DOS-style short mode. If the path 29489 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29490 # take no chances and rewrite it. 29491 # Note: m4 eats our [], so we need to use [ and ] instead. 29492 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29493 if test "x$has_forbidden_chars" != x; then 29494 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29495 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29496 fi 29497 29498 29499 windows_path="$new_path" 29500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29501 unix_path=`$CYGPATH -u "$windows_path"` 29502 new_path="$unix_path" 29503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29504 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29505 new_path="$unix_path" 29506 fi 29507 29508 if test "x$path" != "x$new_path"; then 29509 BOOT_JDK="$new_path" 29510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29511 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29512 fi 29513 29514 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29515 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29516 29517 else 29518 # We're on a unix platform. Hooray! :) 29519 path="$BOOT_JDK" 29520 has_space=`$ECHO "$path" | $GREP " "` 29521 if test "x$has_space" != x; then 29522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29523 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29524 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29525 fi 29526 29527 # Use eval to expand a potential ~ 29528 eval path="$path" 29529 if test ! -f "$path" && test ! -d "$path"; then 29530 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29531 fi 29532 29533 if test -d "$path"; then 29534 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29535 else 29536 dir="`$DIRNAME "$path"`" 29537 base="`$BASENAME "$path"`" 29538 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29539 fi 29540 fi 29541 fi 29542 29543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29544 $as_echo_n "checking for Boot JDK... " >&6; } 29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29546 $as_echo "$BOOT_JDK" >&6; } 29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29548 $as_echo_n "checking Boot JDK version... " >&6; } 29549 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29551 $as_echo "$BOOT_JDK_VERSION" >&6; } 29552 fi # end check jdk version 29553 fi # end check javac 29554 fi # end check java 29555 fi # end check boot jdk found 29556 fi 29557 29558 done 29559 fi 29560 29561 29562 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29563 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29564 # Do we have a bin/java? 29565 if test ! -x "$BOOT_JDK/bin/java"; then 29566 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29567 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29568 BOOT_JDK_FOUND=no 29569 else 29570 # Do we have a bin/javac? 29571 if test ! -x "$BOOT_JDK/bin/javac"; then 29572 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29573 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29574 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29575 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29576 BOOT_JDK_FOUND=no 29577 else 29578 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29579 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29580 29581 # Extra M4 quote needed to protect [] in grep expression. 29582 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29583 if test "x$FOUND_CORRECT_VERSION" = x; then 29584 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29585 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29586 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29587 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29588 BOOT_JDK_FOUND=no 29589 else 29590 # We're done! :-) 29591 BOOT_JDK_FOUND=yes 29592 29593 # Only process if variable expands to non-empty 29594 29595 if test "x$BOOT_JDK" != x; then 29596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29597 29598 # Input might be given as Windows format, start by converting to 29599 # unix format. 29600 path="$BOOT_JDK" 29601 new_path=`$CYGPATH -u "$path"` 29602 29603 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29604 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29605 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29606 # "foo.exe" is OK but "foo" is an error. 29607 # 29608 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29609 # It is also a way to make sure we got the proper file name for the real test later on. 29610 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29611 if test "x$test_shortpath" = x; then 29612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29613 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29614 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29615 fi 29616 29617 # Call helper function which possibly converts this using DOS-style short mode. 29618 # If so, the updated path is stored in $new_path. 29619 29620 input_path="$new_path" 29621 # Check if we need to convert this using DOS-style short mode. If the path 29622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29623 # take no chances and rewrite it. 29624 # Note: m4 eats our [], so we need to use [ and ] instead. 29625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29626 if test "x$has_forbidden_chars" != x; then 29627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29628 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29629 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29630 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29631 # Going to short mode and back again did indeed matter. Since short mode is 29632 # case insensitive, let's make it lowercase to improve readability. 29633 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29634 # Now convert it back to Unix-style (cygpath) 29635 input_path=`$CYGPATH -u "$shortmode_path"` 29636 new_path="$input_path" 29637 fi 29638 fi 29639 29640 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29641 if test "x$test_cygdrive_prefix" = x; then 29642 # As a simple fix, exclude /usr/bin since it's not a real path. 29643 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29644 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29645 # a path prefixed by /cygdrive for fixpath to work. 29646 new_path="$CYGWIN_ROOT_PATH$input_path" 29647 fi 29648 fi 29649 29650 29651 if test "x$path" != "x$new_path"; then 29652 BOOT_JDK="$new_path" 29653 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29654 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29655 fi 29656 29657 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29658 29659 path="$BOOT_JDK" 29660 has_colon=`$ECHO $path | $GREP ^.:` 29661 new_path="$path" 29662 if test "x$has_colon" = x; then 29663 # Not in mixed or Windows style, start by that. 29664 new_path=`cmd //c echo $path` 29665 fi 29666 29667 29668 input_path="$new_path" 29669 # Check if we need to convert this using DOS-style short mode. If the path 29670 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29671 # take no chances and rewrite it. 29672 # Note: m4 eats our [], so we need to use [ and ] instead. 29673 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29674 if test "x$has_forbidden_chars" != x; then 29675 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29676 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29677 fi 29678 29679 29680 windows_path="$new_path" 29681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29682 unix_path=`$CYGPATH -u "$windows_path"` 29683 new_path="$unix_path" 29684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29686 new_path="$unix_path" 29687 fi 29688 29689 if test "x$path" != "x$new_path"; then 29690 BOOT_JDK="$new_path" 29691 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29692 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29693 fi 29694 29695 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29696 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29697 29698 else 29699 # We're on a unix platform. Hooray! :) 29700 path="$BOOT_JDK" 29701 has_space=`$ECHO "$path" | $GREP " "` 29702 if test "x$has_space" != x; then 29703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29704 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29705 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29706 fi 29707 29708 # Use eval to expand a potential ~ 29709 eval path="$path" 29710 if test ! -f "$path" && test ! -d "$path"; then 29711 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29712 fi 29713 29714 if test -d "$path"; then 29715 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29716 else 29717 dir="`$DIRNAME "$path"`" 29718 base="`$BASENAME "$path"`" 29719 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29720 fi 29721 fi 29722 fi 29723 29724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29725 $as_echo_n "checking for Boot JDK... " >&6; } 29726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29727 $as_echo "$BOOT_JDK" >&6; } 29728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29729 $as_echo_n "checking Boot JDK version... " >&6; } 29730 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29732 $as_echo "$BOOT_JDK_VERSION" >&6; } 29733 fi # end check jdk version 29734 fi # end check javac 29735 fi # end check java 29736 fi # end check boot jdk found 29737 fi 29738 29739 29740 if test "x$BOOT_JDK_FOUND" = xno; then 29741 # Now execute the test 29742 29743 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29744 BOOT_JDK_SUFFIX="/Contents/Home" 29745 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29746 if test "x$ALL_JDKS_FOUND" != x; then 29747 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29748 29749 if test "x$BOOT_JDK_FOUND" = xno; then 29750 # Now execute the test 29751 29752 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29753 if test -d "$BOOT_JDK"; then 29754 BOOT_JDK_FOUND=maybe 29755 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29756 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29757 fi 29758 29759 29760 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29761 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29762 # Do we have a bin/java? 29763 if test ! -x "$BOOT_JDK/bin/java"; then 29764 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29765 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29766 BOOT_JDK_FOUND=no 29767 else 29768 # Do we have a bin/javac? 29769 if test ! -x "$BOOT_JDK/bin/javac"; then 29770 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29771 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29772 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29773 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29774 BOOT_JDK_FOUND=no 29775 else 29776 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29777 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29778 29779 # Extra M4 quote needed to protect [] in grep expression. 29780 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29781 if test "x$FOUND_CORRECT_VERSION" = x; then 29782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29784 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29785 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29786 BOOT_JDK_FOUND=no 29787 else 29788 # We're done! :-) 29789 BOOT_JDK_FOUND=yes 29790 29791 # Only process if variable expands to non-empty 29792 29793 if test "x$BOOT_JDK" != x; then 29794 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29795 29796 # Input might be given as Windows format, start by converting to 29797 # unix format. 29798 path="$BOOT_JDK" 29799 new_path=`$CYGPATH -u "$path"` 29800 29801 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29802 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29803 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29804 # "foo.exe" is OK but "foo" is an error. 29805 # 29806 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29807 # It is also a way to make sure we got the proper file name for the real test later on. 29808 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29809 if test "x$test_shortpath" = x; then 29810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29811 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29812 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29813 fi 29814 29815 # Call helper function which possibly converts this using DOS-style short mode. 29816 # If so, the updated path is stored in $new_path. 29817 29818 input_path="$new_path" 29819 # Check if we need to convert this using DOS-style short mode. If the path 29820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29821 # take no chances and rewrite it. 29822 # Note: m4 eats our [], so we need to use [ and ] instead. 29823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29824 if test "x$has_forbidden_chars" != x; then 29825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29826 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29827 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29828 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29829 # Going to short mode and back again did indeed matter. Since short mode is 29830 # case insensitive, let's make it lowercase to improve readability. 29831 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29832 # Now convert it back to Unix-style (cygpath) 29833 input_path=`$CYGPATH -u "$shortmode_path"` 29834 new_path="$input_path" 29835 fi 29836 fi 29837 29838 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29839 if test "x$test_cygdrive_prefix" = x; then 29840 # As a simple fix, exclude /usr/bin since it's not a real path. 29841 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29842 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29843 # a path prefixed by /cygdrive for fixpath to work. 29844 new_path="$CYGWIN_ROOT_PATH$input_path" 29845 fi 29846 fi 29847 29848 29849 if test "x$path" != "x$new_path"; then 29850 BOOT_JDK="$new_path" 29851 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29852 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29853 fi 29854 29855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29856 29857 path="$BOOT_JDK" 29858 has_colon=`$ECHO $path | $GREP ^.:` 29859 new_path="$path" 29860 if test "x$has_colon" = x; then 29861 # Not in mixed or Windows style, start by that. 29862 new_path=`cmd //c echo $path` 29863 fi 29864 29865 29866 input_path="$new_path" 29867 # Check if we need to convert this using DOS-style short mode. If the path 29868 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29869 # take no chances and rewrite it. 29870 # Note: m4 eats our [], so we need to use [ and ] instead. 29871 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29872 if test "x$has_forbidden_chars" != x; then 29873 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29874 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29875 fi 29876 29877 29878 windows_path="$new_path" 29879 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29880 unix_path=`$CYGPATH -u "$windows_path"` 29881 new_path="$unix_path" 29882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29883 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29884 new_path="$unix_path" 29885 fi 29886 29887 if test "x$path" != "x$new_path"; then 29888 BOOT_JDK="$new_path" 29889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29891 fi 29892 29893 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29894 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29895 29896 else 29897 # We're on a unix platform. Hooray! :) 29898 path="$BOOT_JDK" 29899 has_space=`$ECHO "$path" | $GREP " "` 29900 if test "x$has_space" != x; then 29901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29902 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29903 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29904 fi 29905 29906 # Use eval to expand a potential ~ 29907 eval path="$path" 29908 if test ! -f "$path" && test ! -d "$path"; then 29909 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29910 fi 29911 29912 if test -d "$path"; then 29913 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29914 else 29915 dir="`$DIRNAME "$path"`" 29916 base="`$BASENAME "$path"`" 29917 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29918 fi 29919 fi 29920 fi 29921 29922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29923 $as_echo_n "checking for Boot JDK... " >&6; } 29924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29925 $as_echo "$BOOT_JDK" >&6; } 29926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29927 $as_echo_n "checking Boot JDK version... " >&6; } 29928 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29930 $as_echo "$BOOT_JDK_VERSION" >&6; } 29931 fi # end check jdk version 29932 fi # end check javac 29933 fi # end check java 29934 fi # end check boot jdk found 29935 fi 29936 29937 done 29938 fi 29939 29940 29941 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29942 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29943 # Do we have a bin/java? 29944 if test ! -x "$BOOT_JDK/bin/java"; then 29945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29947 BOOT_JDK_FOUND=no 29948 else 29949 # Do we have a bin/javac? 29950 if test ! -x "$BOOT_JDK/bin/javac"; then 29951 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29952 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29953 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29954 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29955 BOOT_JDK_FOUND=no 29956 else 29957 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29958 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29959 29960 # Extra M4 quote needed to protect [] in grep expression. 29961 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29962 if test "x$FOUND_CORRECT_VERSION" = x; then 29963 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29965 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29966 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29967 BOOT_JDK_FOUND=no 29968 else 29969 # We're done! :-) 29970 BOOT_JDK_FOUND=yes 29971 29972 # Only process if variable expands to non-empty 29973 29974 if test "x$BOOT_JDK" != x; then 29975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29976 29977 # Input might be given as Windows format, start by converting to 29978 # unix format. 29979 path="$BOOT_JDK" 29980 new_path=`$CYGPATH -u "$path"` 29981 29982 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29983 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29984 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29985 # "foo.exe" is OK but "foo" is an error. 29986 # 29987 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29988 # It is also a way to make sure we got the proper file name for the real test later on. 29989 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29990 if test "x$test_shortpath" = x; then 29991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29992 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29993 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29994 fi 29995 29996 # Call helper function which possibly converts this using DOS-style short mode. 29997 # If so, the updated path is stored in $new_path. 29998 29999 input_path="$new_path" 30000 # Check if we need to convert this using DOS-style short mode. If the path 30001 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30002 # take no chances and rewrite it. 30003 # Note: m4 eats our [], so we need to use [ and ] instead. 30004 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30005 if test "x$has_forbidden_chars" != x; then 30006 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30007 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30008 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30009 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30010 # Going to short mode and back again did indeed matter. Since short mode is 30011 # case insensitive, let's make it lowercase to improve readability. 30012 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30013 # Now convert it back to Unix-style (cygpath) 30014 input_path=`$CYGPATH -u "$shortmode_path"` 30015 new_path="$input_path" 30016 fi 30017 fi 30018 30019 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30020 if test "x$test_cygdrive_prefix" = x; then 30021 # As a simple fix, exclude /usr/bin since it's not a real path. 30022 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30023 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30024 # a path prefixed by /cygdrive for fixpath to work. 30025 new_path="$CYGWIN_ROOT_PATH$input_path" 30026 fi 30027 fi 30028 30029 30030 if test "x$path" != "x$new_path"; then 30031 BOOT_JDK="$new_path" 30032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30033 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30034 fi 30035 30036 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30037 30038 path="$BOOT_JDK" 30039 has_colon=`$ECHO $path | $GREP ^.:` 30040 new_path="$path" 30041 if test "x$has_colon" = x; then 30042 # Not in mixed or Windows style, start by that. 30043 new_path=`cmd //c echo $path` 30044 fi 30045 30046 30047 input_path="$new_path" 30048 # Check if we need to convert this using DOS-style short mode. If the path 30049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30050 # take no chances and rewrite it. 30051 # Note: m4 eats our [], so we need to use [ and ] instead. 30052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30053 if test "x$has_forbidden_chars" != x; then 30054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30055 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30056 fi 30057 30058 30059 windows_path="$new_path" 30060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30061 unix_path=`$CYGPATH -u "$windows_path"` 30062 new_path="$unix_path" 30063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30065 new_path="$unix_path" 30066 fi 30067 30068 if test "x$path" != "x$new_path"; then 30069 BOOT_JDK="$new_path" 30070 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30071 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30072 fi 30073 30074 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30075 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30076 30077 else 30078 # We're on a unix platform. Hooray! :) 30079 path="$BOOT_JDK" 30080 has_space=`$ECHO "$path" | $GREP " "` 30081 if test "x$has_space" != x; then 30082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30083 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30084 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30085 fi 30086 30087 # Use eval to expand a potential ~ 30088 eval path="$path" 30089 if test ! -f "$path" && test ! -d "$path"; then 30090 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30091 fi 30092 30093 if test -d "$path"; then 30094 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30095 else 30096 dir="`$DIRNAME "$path"`" 30097 base="`$BASENAME "$path"`" 30098 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30099 fi 30100 fi 30101 fi 30102 30103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30104 $as_echo_n "checking for Boot JDK... " >&6; } 30105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30106 $as_echo "$BOOT_JDK" >&6; } 30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30108 $as_echo_n "checking Boot JDK version... " >&6; } 30109 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30111 $as_echo "$BOOT_JDK_VERSION" >&6; } 30112 fi # end check jdk version 30113 fi # end check javac 30114 fi # end check java 30115 fi # end check boot jdk found 30116 fi 30117 30118 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30119 30120 if test "x$BOOT_JDK_FOUND" = xno; then 30121 # Now execute the test 30122 30123 BOOT_JDK_PREFIX="/usr/lib/jvm" 30124 BOOT_JDK_SUFFIX="" 30125 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30126 if test "x$ALL_JDKS_FOUND" != x; then 30127 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30128 30129 if test "x$BOOT_JDK_FOUND" = xno; then 30130 # Now execute the test 30131 30132 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30133 if test -d "$BOOT_JDK"; then 30134 BOOT_JDK_FOUND=maybe 30135 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30136 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30137 fi 30138 30139 30140 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30141 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30142 # Do we have a bin/java? 30143 if test ! -x "$BOOT_JDK/bin/java"; then 30144 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30146 BOOT_JDK_FOUND=no 30147 else 30148 # Do we have a bin/javac? 30149 if test ! -x "$BOOT_JDK/bin/javac"; then 30150 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30151 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30152 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30153 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30154 BOOT_JDK_FOUND=no 30155 else 30156 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30157 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30158 30159 # Extra M4 quote needed to protect [] in grep expression. 30160 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30161 if test "x$FOUND_CORRECT_VERSION" = x; then 30162 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30163 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30164 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30165 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30166 BOOT_JDK_FOUND=no 30167 else 30168 # We're done! :-) 30169 BOOT_JDK_FOUND=yes 30170 30171 # Only process if variable expands to non-empty 30172 30173 if test "x$BOOT_JDK" != x; then 30174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30175 30176 # Input might be given as Windows format, start by converting to 30177 # unix format. 30178 path="$BOOT_JDK" 30179 new_path=`$CYGPATH -u "$path"` 30180 30181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30184 # "foo.exe" is OK but "foo" is an error. 30185 # 30186 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30187 # It is also a way to make sure we got the proper file name for the real test later on. 30188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30189 if test "x$test_shortpath" = x; then 30190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30191 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30192 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30193 fi 30194 30195 # Call helper function which possibly converts this using DOS-style short mode. 30196 # If so, the updated path is stored in $new_path. 30197 30198 input_path="$new_path" 30199 # Check if we need to convert this using DOS-style short mode. If the path 30200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30201 # take no chances and rewrite it. 30202 # Note: m4 eats our [], so we need to use [ and ] instead. 30203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30204 if test "x$has_forbidden_chars" != x; then 30205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30206 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30207 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30208 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30209 # Going to short mode and back again did indeed matter. Since short mode is 30210 # case insensitive, let's make it lowercase to improve readability. 30211 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30212 # Now convert it back to Unix-style (cygpath) 30213 input_path=`$CYGPATH -u "$shortmode_path"` 30214 new_path="$input_path" 30215 fi 30216 fi 30217 30218 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30219 if test "x$test_cygdrive_prefix" = x; then 30220 # As a simple fix, exclude /usr/bin since it's not a real path. 30221 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30222 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30223 # a path prefixed by /cygdrive for fixpath to work. 30224 new_path="$CYGWIN_ROOT_PATH$input_path" 30225 fi 30226 fi 30227 30228 30229 if test "x$path" != "x$new_path"; then 30230 BOOT_JDK="$new_path" 30231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30232 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30233 fi 30234 30235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30236 30237 path="$BOOT_JDK" 30238 has_colon=`$ECHO $path | $GREP ^.:` 30239 new_path="$path" 30240 if test "x$has_colon" = x; then 30241 # Not in mixed or Windows style, start by that. 30242 new_path=`cmd //c echo $path` 30243 fi 30244 30245 30246 input_path="$new_path" 30247 # Check if we need to convert this using DOS-style short mode. If the path 30248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30249 # take no chances and rewrite it. 30250 # Note: m4 eats our [], so we need to use [ and ] instead. 30251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30252 if test "x$has_forbidden_chars" != x; then 30253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30254 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30255 fi 30256 30257 30258 windows_path="$new_path" 30259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30260 unix_path=`$CYGPATH -u "$windows_path"` 30261 new_path="$unix_path" 30262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30264 new_path="$unix_path" 30265 fi 30266 30267 if test "x$path" != "x$new_path"; then 30268 BOOT_JDK="$new_path" 30269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30270 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30271 fi 30272 30273 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30274 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30275 30276 else 30277 # We're on a unix platform. Hooray! :) 30278 path="$BOOT_JDK" 30279 has_space=`$ECHO "$path" | $GREP " "` 30280 if test "x$has_space" != x; then 30281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30282 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30283 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30284 fi 30285 30286 # Use eval to expand a potential ~ 30287 eval path="$path" 30288 if test ! -f "$path" && test ! -d "$path"; then 30289 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30290 fi 30291 30292 if test -d "$path"; then 30293 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30294 else 30295 dir="`$DIRNAME "$path"`" 30296 base="`$BASENAME "$path"`" 30297 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30298 fi 30299 fi 30300 fi 30301 30302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30303 $as_echo_n "checking for Boot JDK... " >&6; } 30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30305 $as_echo "$BOOT_JDK" >&6; } 30306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30307 $as_echo_n "checking Boot JDK version... " >&6; } 30308 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30310 $as_echo "$BOOT_JDK_VERSION" >&6; } 30311 fi # end check jdk version 30312 fi # end check javac 30313 fi # end check java 30314 fi # end check boot jdk found 30315 fi 30316 30317 done 30318 fi 30319 30320 30321 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30322 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30323 # Do we have a bin/java? 30324 if test ! -x "$BOOT_JDK/bin/java"; then 30325 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30327 BOOT_JDK_FOUND=no 30328 else 30329 # Do we have a bin/javac? 30330 if test ! -x "$BOOT_JDK/bin/javac"; then 30331 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30332 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30333 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30334 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30335 BOOT_JDK_FOUND=no 30336 else 30337 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30338 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30339 30340 # Extra M4 quote needed to protect [] in grep expression. 30341 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30342 if test "x$FOUND_CORRECT_VERSION" = x; then 30343 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30344 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30345 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30346 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30347 BOOT_JDK_FOUND=no 30348 else 30349 # We're done! :-) 30350 BOOT_JDK_FOUND=yes 30351 30352 # Only process if variable expands to non-empty 30353 30354 if test "x$BOOT_JDK" != x; then 30355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30356 30357 # Input might be given as Windows format, start by converting to 30358 # unix format. 30359 path="$BOOT_JDK" 30360 new_path=`$CYGPATH -u "$path"` 30361 30362 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30363 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30364 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30365 # "foo.exe" is OK but "foo" is an error. 30366 # 30367 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30368 # It is also a way to make sure we got the proper file name for the real test later on. 30369 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30370 if test "x$test_shortpath" = x; then 30371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30372 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30373 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30374 fi 30375 30376 # Call helper function which possibly converts this using DOS-style short mode. 30377 # If so, the updated path is stored in $new_path. 30378 30379 input_path="$new_path" 30380 # Check if we need to convert this using DOS-style short mode. If the path 30381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30382 # take no chances and rewrite it. 30383 # Note: m4 eats our [], so we need to use [ and ] instead. 30384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30385 if test "x$has_forbidden_chars" != x; then 30386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30390 # Going to short mode and back again did indeed matter. Since short mode is 30391 # case insensitive, let's make it lowercase to improve readability. 30392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30393 # Now convert it back to Unix-style (cygpath) 30394 input_path=`$CYGPATH -u "$shortmode_path"` 30395 new_path="$input_path" 30396 fi 30397 fi 30398 30399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30400 if test "x$test_cygdrive_prefix" = x; then 30401 # As a simple fix, exclude /usr/bin since it's not a real path. 30402 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30404 # a path prefixed by /cygdrive for fixpath to work. 30405 new_path="$CYGWIN_ROOT_PATH$input_path" 30406 fi 30407 fi 30408 30409 30410 if test "x$path" != "x$new_path"; then 30411 BOOT_JDK="$new_path" 30412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30413 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30414 fi 30415 30416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30417 30418 path="$BOOT_JDK" 30419 has_colon=`$ECHO $path | $GREP ^.:` 30420 new_path="$path" 30421 if test "x$has_colon" = x; then 30422 # Not in mixed or Windows style, start by that. 30423 new_path=`cmd //c echo $path` 30424 fi 30425 30426 30427 input_path="$new_path" 30428 # Check if we need to convert this using DOS-style short mode. If the path 30429 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30430 # take no chances and rewrite it. 30431 # Note: m4 eats our [], so we need to use [ and ] instead. 30432 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30433 if test "x$has_forbidden_chars" != x; then 30434 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30435 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30436 fi 30437 30438 30439 windows_path="$new_path" 30440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30441 unix_path=`$CYGPATH -u "$windows_path"` 30442 new_path="$unix_path" 30443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30445 new_path="$unix_path" 30446 fi 30447 30448 if test "x$path" != "x$new_path"; then 30449 BOOT_JDK="$new_path" 30450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30451 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30452 fi 30453 30454 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30455 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30456 30457 else 30458 # We're on a unix platform. Hooray! :) 30459 path="$BOOT_JDK" 30460 has_space=`$ECHO "$path" | $GREP " "` 30461 if test "x$has_space" != x; then 30462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30463 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30464 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30465 fi 30466 30467 # Use eval to expand a potential ~ 30468 eval path="$path" 30469 if test ! -f "$path" && test ! -d "$path"; then 30470 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30471 fi 30472 30473 if test -d "$path"; then 30474 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30475 else 30476 dir="`$DIRNAME "$path"`" 30477 base="`$BASENAME "$path"`" 30478 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30479 fi 30480 fi 30481 fi 30482 30483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30484 $as_echo_n "checking for Boot JDK... " >&6; } 30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30486 $as_echo "$BOOT_JDK" >&6; } 30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30488 $as_echo_n "checking Boot JDK version... " >&6; } 30489 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30491 $as_echo "$BOOT_JDK_VERSION" >&6; } 30492 fi # end check jdk version 30493 fi # end check javac 30494 fi # end check java 30495 fi # end check boot jdk found 30496 fi 30497 30498 fi 30499 30500 30501 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30502 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30503 # Do we have a bin/java? 30504 if test ! -x "$BOOT_JDK/bin/java"; then 30505 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30507 BOOT_JDK_FOUND=no 30508 else 30509 # Do we have a bin/javac? 30510 if test ! -x "$BOOT_JDK/bin/javac"; then 30511 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30512 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30514 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30515 BOOT_JDK_FOUND=no 30516 else 30517 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30518 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30519 30520 # Extra M4 quote needed to protect [] in grep expression. 30521 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30522 if test "x$FOUND_CORRECT_VERSION" = x; then 30523 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30525 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30526 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30527 BOOT_JDK_FOUND=no 30528 else 30529 # We're done! :-) 30530 BOOT_JDK_FOUND=yes 30531 30532 # Only process if variable expands to non-empty 30533 30534 if test "x$BOOT_JDK" != x; then 30535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30536 30537 # Input might be given as Windows format, start by converting to 30538 # unix format. 30539 path="$BOOT_JDK" 30540 new_path=`$CYGPATH -u "$path"` 30541 30542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30545 # "foo.exe" is OK but "foo" is an error. 30546 # 30547 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30548 # It is also a way to make sure we got the proper file name for the real test later on. 30549 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30550 if test "x$test_shortpath" = x; then 30551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30552 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30553 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30554 fi 30555 30556 # Call helper function which possibly converts this using DOS-style short mode. 30557 # If so, the updated path is stored in $new_path. 30558 30559 input_path="$new_path" 30560 # Check if we need to convert this using DOS-style short mode. If the path 30561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30562 # take no chances and rewrite it. 30563 # Note: m4 eats our [], so we need to use [ and ] instead. 30564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30565 if test "x$has_forbidden_chars" != x; then 30566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30570 # Going to short mode and back again did indeed matter. Since short mode is 30571 # case insensitive, let's make it lowercase to improve readability. 30572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30573 # Now convert it back to Unix-style (cygpath) 30574 input_path=`$CYGPATH -u "$shortmode_path"` 30575 new_path="$input_path" 30576 fi 30577 fi 30578 30579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30580 if test "x$test_cygdrive_prefix" = x; then 30581 # As a simple fix, exclude /usr/bin since it's not a real path. 30582 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30584 # a path prefixed by /cygdrive for fixpath to work. 30585 new_path="$CYGWIN_ROOT_PATH$input_path" 30586 fi 30587 fi 30588 30589 30590 if test "x$path" != "x$new_path"; then 30591 BOOT_JDK="$new_path" 30592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30593 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30594 fi 30595 30596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30597 30598 path="$BOOT_JDK" 30599 has_colon=`$ECHO $path | $GREP ^.:` 30600 new_path="$path" 30601 if test "x$has_colon" = x; then 30602 # Not in mixed or Windows style, start by that. 30603 new_path=`cmd //c echo $path` 30604 fi 30605 30606 30607 input_path="$new_path" 30608 # Check if we need to convert this using DOS-style short mode. If the path 30609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30610 # take no chances and rewrite it. 30611 # Note: m4 eats our [], so we need to use [ and ] instead. 30612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30613 if test "x$has_forbidden_chars" != x; then 30614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30615 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30616 fi 30617 30618 30619 windows_path="$new_path" 30620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30621 unix_path=`$CYGPATH -u "$windows_path"` 30622 new_path="$unix_path" 30623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30625 new_path="$unix_path" 30626 fi 30627 30628 if test "x$path" != "x$new_path"; then 30629 BOOT_JDK="$new_path" 30630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30631 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30632 fi 30633 30634 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30635 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30636 30637 else 30638 # We're on a unix platform. Hooray! :) 30639 path="$BOOT_JDK" 30640 has_space=`$ECHO "$path" | $GREP " "` 30641 if test "x$has_space" != x; then 30642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30643 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30644 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30645 fi 30646 30647 # Use eval to expand a potential ~ 30648 eval path="$path" 30649 if test ! -f "$path" && test ! -d "$path"; then 30650 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30651 fi 30652 30653 if test -d "$path"; then 30654 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30655 else 30656 dir="`$DIRNAME "$path"`" 30657 base="`$BASENAME "$path"`" 30658 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30659 fi 30660 fi 30661 fi 30662 30663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30664 $as_echo_n "checking for Boot JDK... " >&6; } 30665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30666 $as_echo "$BOOT_JDK" >&6; } 30667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30668 $as_echo_n "checking Boot JDK version... " >&6; } 30669 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30671 $as_echo "$BOOT_JDK_VERSION" >&6; } 30672 fi # end check jdk version 30673 fi # end check javac 30674 fi # end check java 30675 fi # end check boot jdk found 30676 fi 30677 30678 30679 # If we haven't found anything yet, we've truly lost. Give up. 30680 if test "x$BOOT_JDK_FOUND" = xno; then 30681 30682 # Print a helpful message on how to acquire the necessary build dependency. 30683 # openjdk is the help tag: freetype, cups, alsa etc 30684 MISSING_DEPENDENCY=openjdk 30685 30686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30687 cygwin_help $MISSING_DEPENDENCY 30688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30689 msys_help $MISSING_DEPENDENCY 30690 else 30691 PKGHANDLER_COMMAND= 30692 30693 case $PKGHANDLER in 30694 apt-get) 30695 apt_help $MISSING_DEPENDENCY ;; 30696 yum) 30697 yum_help $MISSING_DEPENDENCY ;; 30698 brew) 30699 brew_help $MISSING_DEPENDENCY ;; 30700 port) 30701 port_help $MISSING_DEPENDENCY ;; 30702 pkgutil) 30703 pkgutil_help $MISSING_DEPENDENCY ;; 30704 pkgadd) 30705 pkgadd_help $MISSING_DEPENDENCY ;; 30706 esac 30707 30708 if test "x$PKGHANDLER_COMMAND" != x; then 30709 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30710 fi 30711 fi 30712 30713 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30714 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30715 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30716 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30717 as_fn_error $? "Cannot continue" "$LINENO" 5 30718 fi 30719 30720 30721 30722 # Setup tools from the Boot JDK. 30723 30724 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30725 30726 # Publish this variable in the help. 30727 30728 30729 if [ -z "${JAVA+x}" ]; then 30730 # The variable is not set by user, try to locate tool using the code snippet 30731 30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30733 $as_echo_n "checking for java in Boot JDK... " >&6; } 30734 JAVA=$BOOT_JDK/bin/java 30735 if test ! -x $JAVA; then 30736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30737 $as_echo "not found" >&6; } 30738 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30739 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30740 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30741 fi 30742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30743 $as_echo "ok" >&6; } 30744 30745 30746 else 30747 # The variable is set, but is it from the command line or the environment? 30748 30749 # Try to remove the string !JAVA! from our list. 30750 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30751 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30752 # If it failed, the variable was not from the command line. Ignore it, 30753 # but warn the user (except for BASH, which is always set by the calling BASH). 30754 if test "xJAVA" != xBASH; then 30755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30756 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30757 fi 30758 # Try to locate tool using the code snippet 30759 30760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30761 $as_echo_n "checking for java in Boot JDK... " >&6; } 30762 JAVA=$BOOT_JDK/bin/java 30763 if test ! -x $JAVA; then 30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30765 $as_echo "not found" >&6; } 30766 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30767 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30768 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30769 fi 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30771 $as_echo "ok" >&6; } 30772 30773 30774 else 30775 # If it succeeded, then it was overridden by the user. We will use it 30776 # for the tool. 30777 30778 # First remove it from the list of overridden variables, so we can test 30779 # for unknown variables in the end. 30780 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30781 30782 # Check if we try to supply an empty value 30783 if test "x$JAVA" = x; then 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30785 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30787 $as_echo_n "checking for JAVA... " >&6; } 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30789 $as_echo "disabled" >&6; } 30790 else 30791 # Check if the provided tool contains a complete path. 30792 tool_specified="$JAVA" 30793 tool_basename="${tool_specified##*/}" 30794 if test "x$tool_basename" = "x$tool_specified"; then 30795 # A command without a complete path is provided, search $PATH. 30796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30797 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30798 # Extract the first word of "$tool_basename", so it can be a program name with args. 30799 set dummy $tool_basename; ac_word=$2 30800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30801 $as_echo_n "checking for $ac_word... " >&6; } 30802 if ${ac_cv_path_JAVA+:} false; then : 30803 $as_echo_n "(cached) " >&6 30804 else 30805 case $JAVA in 30806 [\\/]* | ?:[\\/]*) 30807 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30808 ;; 30809 *) 30810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30811 for as_dir in $PATH 30812 do 30813 IFS=$as_save_IFS 30814 test -z "$as_dir" && as_dir=. 30815 for ac_exec_ext in '' $ac_executable_extensions; do 30816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30817 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30819 break 2 30820 fi 30821 done 30822 done 30823 IFS=$as_save_IFS 30824 30825 ;; 30826 esac 30827 fi 30828 JAVA=$ac_cv_path_JAVA 30829 if test -n "$JAVA"; then 30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30831 $as_echo "$JAVA" >&6; } 30832 else 30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30834 $as_echo "no" >&6; } 30835 fi 30836 30837 30838 if test "x$JAVA" = x; then 30839 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30840 fi 30841 else 30842 # Otherwise we believe it is a complete path. Use it as it is. 30843 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30844 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30846 $as_echo_n "checking for JAVA... " >&6; } 30847 if test ! -x "$tool_specified"; then 30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30849 $as_echo "not found" >&6; } 30850 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30851 fi 30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30853 $as_echo "$tool_specified" >&6; } 30854 fi 30855 fi 30856 fi 30857 30858 fi 30859 30860 30861 30862 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30863 30864 # Publish this variable in the help. 30865 30866 30867 if [ -z "${JAVAC+x}" ]; then 30868 # The variable is not set by user, try to locate tool using the code snippet 30869 30870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30871 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30872 JAVAC=$BOOT_JDK/bin/javac 30873 if test ! -x $JAVAC; then 30874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30875 $as_echo "not found" >&6; } 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30877 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30878 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30879 fi 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30881 $as_echo "ok" >&6; } 30882 30883 30884 else 30885 # The variable is set, but is it from the command line or the environment? 30886 30887 # Try to remove the string !JAVAC! from our list. 30888 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30889 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30890 # If it failed, the variable was not from the command line. Ignore it, 30891 # but warn the user (except for BASH, which is always set by the calling BASH). 30892 if test "xJAVAC" != xBASH; then 30893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30894 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30895 fi 30896 # Try to locate tool using the code snippet 30897 30898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30899 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30900 JAVAC=$BOOT_JDK/bin/javac 30901 if test ! -x $JAVAC; then 30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30903 $as_echo "not found" >&6; } 30904 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30905 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30906 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30907 fi 30908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30909 $as_echo "ok" >&6; } 30910 30911 30912 else 30913 # If it succeeded, then it was overridden by the user. We will use it 30914 # for the tool. 30915 30916 # First remove it from the list of overridden variables, so we can test 30917 # for unknown variables in the end. 30918 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30919 30920 # Check if we try to supply an empty value 30921 if test "x$JAVAC" = x; then 30922 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30923 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30925 $as_echo_n "checking for JAVAC... " >&6; } 30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30927 $as_echo "disabled" >&6; } 30928 else 30929 # Check if the provided tool contains a complete path. 30930 tool_specified="$JAVAC" 30931 tool_basename="${tool_specified##*/}" 30932 if test "x$tool_basename" = "x$tool_specified"; then 30933 # A command without a complete path is provided, search $PATH. 30934 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30935 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30936 # Extract the first word of "$tool_basename", so it can be a program name with args. 30937 set dummy $tool_basename; ac_word=$2 30938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30939 $as_echo_n "checking for $ac_word... " >&6; } 30940 if ${ac_cv_path_JAVAC+:} false; then : 30941 $as_echo_n "(cached) " >&6 30942 else 30943 case $JAVAC in 30944 [\\/]* | ?:[\\/]*) 30945 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30946 ;; 30947 *) 30948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30949 for as_dir in $PATH 30950 do 30951 IFS=$as_save_IFS 30952 test -z "$as_dir" && as_dir=. 30953 for ac_exec_ext in '' $ac_executable_extensions; do 30954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30955 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30957 break 2 30958 fi 30959 done 30960 done 30961 IFS=$as_save_IFS 30962 30963 ;; 30964 esac 30965 fi 30966 JAVAC=$ac_cv_path_JAVAC 30967 if test -n "$JAVAC"; then 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30969 $as_echo "$JAVAC" >&6; } 30970 else 30971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30972 $as_echo "no" >&6; } 30973 fi 30974 30975 30976 if test "x$JAVAC" = x; then 30977 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30978 fi 30979 else 30980 # Otherwise we believe it is a complete path. Use it as it is. 30981 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30982 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30984 $as_echo_n "checking for JAVAC... " >&6; } 30985 if test ! -x "$tool_specified"; then 30986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30987 $as_echo "not found" >&6; } 30988 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30989 fi 30990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30991 $as_echo "$tool_specified" >&6; } 30992 fi 30993 fi 30994 fi 30995 30996 fi 30997 30998 30999 31000 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31001 31002 # Publish this variable in the help. 31003 31004 31005 if [ -z "${JAVADOC+x}" ]; then 31006 # The variable is not set by user, try to locate tool using the code snippet 31007 31008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31009 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31010 JAVADOC=$BOOT_JDK/bin/javadoc 31011 if test ! -x $JAVADOC; then 31012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31013 $as_echo "not found" >&6; } 31014 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31015 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31016 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31017 fi 31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31019 $as_echo "ok" >&6; } 31020 31021 31022 else 31023 # The variable is set, but is it from the command line or the environment? 31024 31025 # Try to remove the string !JAVADOC! from our list. 31026 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVADOC!/} 31027 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31028 # If it failed, the variable was not from the command line. Ignore it, 31029 # but warn the user (except for BASH, which is always set by the calling BASH). 31030 if test "xJAVADOC" != xBASH; then 31031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&5 31032 $as_echo "$as_me: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&2;} 31033 fi 31034 # Try to locate tool using the code snippet 31035 31036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 31037 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 31038 JAVADOC=$BOOT_JDK/bin/javadoc 31039 if test ! -x $JAVADOC; then 31040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31041 $as_echo "not found" >&6; } 31042 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31043 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31044 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 31045 fi 31046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31047 $as_echo "ok" >&6; } 31048 31049 31050 else 31051 # If it succeeded, then it was overridden by the user. We will use it 31052 # for the tool. 31053 31054 # First remove it from the list of overridden variables, so we can test 31055 # for unknown variables in the end. 31056 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31057 31058 # Check if we try to supply an empty value 31059 if test "x$JAVADOC" = x; then 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVADOC= (no value)" >&5 31061 $as_echo "$as_me: Setting user supplied tool JAVADOC= (no value)" >&6;} 31062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31063 $as_echo_n "checking for JAVADOC... " >&6; } 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31065 $as_echo "disabled" >&6; } 31066 else 31067 # Check if the provided tool contains a complete path. 31068 tool_specified="$JAVADOC" 31069 tool_basename="${tool_specified##*/}" 31070 if test "x$tool_basename" = "x$tool_specified"; then 31071 # A command without a complete path is provided, search $PATH. 31072 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVADOC=$tool_basename" >&5 31073 $as_echo "$as_me: Will search for user supplied tool JAVADOC=$tool_basename" >&6;} 31074 # Extract the first word of "$tool_basename", so it can be a program name with args. 31075 set dummy $tool_basename; ac_word=$2 31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31077 $as_echo_n "checking for $ac_word... " >&6; } 31078 if ${ac_cv_path_JAVADOC+:} false; then : 31079 $as_echo_n "(cached) " >&6 31080 else 31081 case $JAVADOC in 31082 [\\/]* | ?:[\\/]*) 31083 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. 31084 ;; 31085 *) 31086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31087 for as_dir in $PATH 31088 do 31089 IFS=$as_save_IFS 31090 test -z "$as_dir" && as_dir=. 31091 for ac_exec_ext in '' $ac_executable_extensions; do 31092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31093 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" 31094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31095 break 2 31096 fi 31097 done 31098 done 31099 IFS=$as_save_IFS 31100 31101 ;; 31102 esac 31103 fi 31104 JAVADOC=$ac_cv_path_JAVADOC 31105 if test -n "$JAVADOC"; then 31106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 31107 $as_echo "$JAVADOC" >&6; } 31108 else 31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31110 $as_echo "no" >&6; } 31111 fi 31112 31113 31114 if test "x$JAVADOC" = x; then 31115 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31116 fi 31117 else 31118 # Otherwise we believe it is a complete path. Use it as it is. 31119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVADOC=$tool_specified" >&5 31120 $as_echo "$as_me: Will use user supplied tool JAVADOC=$tool_specified" >&6;} 31121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31122 $as_echo_n "checking for JAVADOC... " >&6; } 31123 if test ! -x "$tool_specified"; then 31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31125 $as_echo "not found" >&6; } 31126 as_fn_error $? "User supplied tool JAVADOC=$tool_specified does not exist or is not executable" "$LINENO" 5 31127 fi 31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31129 $as_echo "$tool_specified" >&6; } 31130 fi 31131 fi 31132 fi 31133 31134 fi 31135 31136 31137 31138 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31139 31140 # Publish this variable in the help. 31141 31142 31143 if [ -z "${JAR+x}" ]; then 31144 # The variable is not set by user, try to locate tool using the code snippet 31145 31146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31147 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31148 JAR=$BOOT_JDK/bin/jar 31149 if test ! -x $JAR; then 31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31151 $as_echo "not found" >&6; } 31152 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31153 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31154 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31155 fi 31156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31157 $as_echo "ok" >&6; } 31158 31159 31160 else 31161 # The variable is set, but is it from the command line or the environment? 31162 31163 # Try to remove the string !JAR! from our list. 31164 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31165 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31166 # If it failed, the variable was not from the command line. Ignore it, 31167 # but warn the user (except for BASH, which is always set by the calling BASH). 31168 if test "xJAR" != xBASH; then 31169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31170 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31171 fi 31172 # Try to locate tool using the code snippet 31173 31174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31175 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31176 JAR=$BOOT_JDK/bin/jar 31177 if test ! -x $JAR; then 31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31179 $as_echo "not found" >&6; } 31180 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31181 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31182 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31183 fi 31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31185 $as_echo "ok" >&6; } 31186 31187 31188 else 31189 # If it succeeded, then it was overridden by the user. We will use it 31190 # for the tool. 31191 31192 # First remove it from the list of overridden variables, so we can test 31193 # for unknown variables in the end. 31194 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31195 31196 # Check if we try to supply an empty value 31197 if test "x$JAR" = x; then 31198 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31199 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31201 $as_echo_n "checking for JAR... " >&6; } 31202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31203 $as_echo "disabled" >&6; } 31204 else 31205 # Check if the provided tool contains a complete path. 31206 tool_specified="$JAR" 31207 tool_basename="${tool_specified##*/}" 31208 if test "x$tool_basename" = "x$tool_specified"; then 31209 # A command without a complete path is provided, search $PATH. 31210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31211 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31212 # Extract the first word of "$tool_basename", so it can be a program name with args. 31213 set dummy $tool_basename; ac_word=$2 31214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31215 $as_echo_n "checking for $ac_word... " >&6; } 31216 if ${ac_cv_path_JAR+:} false; then : 31217 $as_echo_n "(cached) " >&6 31218 else 31219 case $JAR in 31220 [\\/]* | ?:[\\/]*) 31221 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31222 ;; 31223 *) 31224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31225 for as_dir in $PATH 31226 do 31227 IFS=$as_save_IFS 31228 test -z "$as_dir" && as_dir=. 31229 for ac_exec_ext in '' $ac_executable_extensions; do 31230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31231 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31233 break 2 31234 fi 31235 done 31236 done 31237 IFS=$as_save_IFS 31238 31239 ;; 31240 esac 31241 fi 31242 JAR=$ac_cv_path_JAR 31243 if test -n "$JAR"; then 31244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31245 $as_echo "$JAR" >&6; } 31246 else 31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31248 $as_echo "no" >&6; } 31249 fi 31250 31251 31252 if test "x$JAR" = x; then 31253 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31254 fi 31255 else 31256 # Otherwise we believe it is a complete path. Use it as it is. 31257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31258 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31260 $as_echo_n "checking for JAR... " >&6; } 31261 if test ! -x "$tool_specified"; then 31262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31263 $as_echo "not found" >&6; } 31264 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31265 fi 31266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31267 $as_echo "$tool_specified" >&6; } 31268 fi 31269 fi 31270 fi 31271 31272 fi 31273 31274 31275 31276 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31277 31278 # Publish this variable in the help. 31279 31280 31281 if [ -z "${JARSIGNER+x}" ]; then 31282 # The variable is not set by user, try to locate tool using the code snippet 31283 31284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31285 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31286 JARSIGNER=$BOOT_JDK/bin/jarsigner 31287 if test ! -x $JARSIGNER; then 31288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31289 $as_echo "not found" >&6; } 31290 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31291 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31292 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31293 fi 31294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31295 $as_echo "ok" >&6; } 31296 31297 31298 else 31299 # The variable is set, but is it from the command line or the environment? 31300 31301 # Try to remove the string !JARSIGNER! from our list. 31302 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31303 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31304 # If it failed, the variable was not from the command line. Ignore it, 31305 # but warn the user (except for BASH, which is always set by the calling BASH). 31306 if test "xJARSIGNER" != xBASH; then 31307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31308 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31309 fi 31310 # Try to locate tool using the code snippet 31311 31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31313 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31314 JARSIGNER=$BOOT_JDK/bin/jarsigner 31315 if test ! -x $JARSIGNER; then 31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31317 $as_echo "not found" >&6; } 31318 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31319 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31320 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31321 fi 31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31323 $as_echo "ok" >&6; } 31324 31325 31326 else 31327 # If it succeeded, then it was overridden by the user. We will use it 31328 # for the tool. 31329 31330 # First remove it from the list of overridden variables, so we can test 31331 # for unknown variables in the end. 31332 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31333 31334 # Check if we try to supply an empty value 31335 if test "x$JARSIGNER" = x; then 31336 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31337 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31339 $as_echo_n "checking for JARSIGNER... " >&6; } 31340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31341 $as_echo "disabled" >&6; } 31342 else 31343 # Check if the provided tool contains a complete path. 31344 tool_specified="$JARSIGNER" 31345 tool_basename="${tool_specified##*/}" 31346 if test "x$tool_basename" = "x$tool_specified"; then 31347 # A command without a complete path is provided, search $PATH. 31348 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31349 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31350 # Extract the first word of "$tool_basename", so it can be a program name with args. 31351 set dummy $tool_basename; ac_word=$2 31352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31353 $as_echo_n "checking for $ac_word... " >&6; } 31354 if ${ac_cv_path_JARSIGNER+:} false; then : 31355 $as_echo_n "(cached) " >&6 31356 else 31357 case $JARSIGNER in 31358 [\\/]* | ?:[\\/]*) 31359 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31360 ;; 31361 *) 31362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31363 for as_dir in $PATH 31364 do 31365 IFS=$as_save_IFS 31366 test -z "$as_dir" && as_dir=. 31367 for ac_exec_ext in '' $ac_executable_extensions; do 31368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31369 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31371 break 2 31372 fi 31373 done 31374 done 31375 IFS=$as_save_IFS 31376 31377 ;; 31378 esac 31379 fi 31380 JARSIGNER=$ac_cv_path_JARSIGNER 31381 if test -n "$JARSIGNER"; then 31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31383 $as_echo "$JARSIGNER" >&6; } 31384 else 31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31386 $as_echo "no" >&6; } 31387 fi 31388 31389 31390 if test "x$JARSIGNER" = x; then 31391 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31392 fi 31393 else 31394 # Otherwise we believe it is a complete path. Use it as it is. 31395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31396 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31398 $as_echo_n "checking for JARSIGNER... " >&6; } 31399 if test ! -x "$tool_specified"; then 31400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31401 $as_echo "not found" >&6; } 31402 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31403 fi 31404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31405 $as_echo "$tool_specified" >&6; } 31406 fi 31407 fi 31408 fi 31409 31410 fi 31411 31412 31413 31414 # Finally, set some other options... 31415 31416 # When compiling code to be executed by the Boot JDK, force compatibility with the 31417 # oldest supported bootjdk. 31418 BOOT_JDK_SOURCETARGET="-source 9 -target 9" 31419 31420 31421 31422 31423 # Check if the boot jdk is 32 or 64 bit 31424 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31425 BOOT_JDK_BITS="64" 31426 else 31427 BOOT_JDK_BITS="32" 31428 fi 31429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31430 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31432 $as_echo "$BOOT_JDK_BITS" >&6; } 31433 31434 # Try to enable CDS 31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Boot JDK Class Data Sharing (CDS)" >&5 31436 $as_echo_n "checking for local Boot JDK Class Data Sharing (CDS)... " >&6; } 31437 BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa 31438 31439 $ECHO "Check if jvm arg is ok: -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" >&5 31440 $ECHO "Command: $JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version" >&5 31441 OUTPUT=`$JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version 2>&1` 31442 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 31443 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 31444 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 31445 boot_jdk_cds_args="$boot_jdk_cds_args -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" 31446 JVM_ARG_OK=true 31447 else 31448 $ECHO "Arg failed:" >&5 31449 $ECHO "$OUTPUT" >&5 31450 JVM_ARG_OK=false 31451 fi 31452 31453 31454 if test "x$boot_jdk_cds_args" != x; then 31455 # Try creating a CDS archive 31456 "$JAVA" $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1 31457 if test $? -eq 0; then 31458 BOOTJDK_USE_LOCAL_CDS=true 31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, created" >&5 31460 $as_echo "yes, created" >&6; } 31461 else 31462 # Generation failed, don't use CDS. 31463 BOOTJDK_USE_LOCAL_CDS=false 31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, creation failed" >&5 31465 $as_echo "no, creation failed" >&6; } 31466 fi 31467 else 31468 BOOTJDK_USE_LOCAL_CDS=false 31469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, -XX:SharedArchiveFile not supported" >&5 31470 $as_echo "no, -XX:SharedArchiveFile not supported" >&6; } 31471 fi 31472 31473 31474 31475 # Check whether --with-build-jdk was given. 31476 if test "${with_build_jdk+set}" = set; then : 31477 withval=$with_build_jdk; 31478 fi 31479 31480 31481 CREATE_BUILDJDK=false 31482 EXTERNAL_BUILDJDK=false 31483 BUILD_JDK_FOUND="no" 31484 if test "x$with_build_jdk" != "x"; then 31485 31486 if test "x$BUILD_JDK_FOUND" = xno; then 31487 # Execute the test 31488 31489 if test "x$with_build_jdk" != x; then 31490 BUILD_JDK=$with_build_jdk 31491 BUILD_JDK_FOUND=maybe 31492 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31493 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31494 fi 31495 31496 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31497 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31498 # Do we have a bin/java? 31499 if test ! -x "$BUILD_JDK/bin/java"; then 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31501 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31502 BUILD_JDK_FOUND=no 31503 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31504 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31505 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31506 BUILD_JDK_FOUND=no 31507 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31508 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31509 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31510 BUILD_JDK_FOUND=no 31511 elif test ! -x "$BUILD_JDK/bin/javac"; then 31512 # Do we have a bin/javac? 31513 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31514 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31515 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31516 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31517 BUILD_JDK_FOUND=no 31518 else 31519 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31520 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31521 31522 # Extra M4 quote needed to protect [] in grep expression. 31523 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"'` 31524 if test "x$FOUND_CORRECT_VERSION" = x; then 31525 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31526 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31527 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 10)" >&5 31528 $as_echo "$as_me: (Your Build JDK must be version 10)" >&6;} 31529 BUILD_JDK_FOUND=no 31530 else 31531 # We're done! 31532 BUILD_JDK_FOUND=yes 31533 31534 # Only process if variable expands to non-empty 31535 31536 if test "x$BUILD_JDK" != x; then 31537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31538 31539 # Input might be given as Windows format, start by converting to 31540 # unix format. 31541 path="$BUILD_JDK" 31542 new_path=`$CYGPATH -u "$path"` 31543 31544 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31545 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31546 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31547 # "foo.exe" is OK but "foo" is an error. 31548 # 31549 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31550 # It is also a way to make sure we got the proper file name for the real test later on. 31551 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31552 if test "x$test_shortpath" = x; then 31553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31554 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31555 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31556 fi 31557 31558 # Call helper function which possibly converts this using DOS-style short mode. 31559 # If so, the updated path is stored in $new_path. 31560 31561 input_path="$new_path" 31562 # Check if we need to convert this using DOS-style short mode. If the path 31563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31564 # take no chances and rewrite it. 31565 # Note: m4 eats our [], so we need to use [ and ] instead. 31566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31567 if test "x$has_forbidden_chars" != x; then 31568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31569 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31570 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31571 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31572 # Going to short mode and back again did indeed matter. Since short mode is 31573 # case insensitive, let's make it lowercase to improve readability. 31574 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31575 # Now convert it back to Unix-style (cygpath) 31576 input_path=`$CYGPATH -u "$shortmode_path"` 31577 new_path="$input_path" 31578 fi 31579 fi 31580 31581 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31582 if test "x$test_cygdrive_prefix" = x; then 31583 # As a simple fix, exclude /usr/bin since it's not a real path. 31584 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31585 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31586 # a path prefixed by /cygdrive for fixpath to work. 31587 new_path="$CYGWIN_ROOT_PATH$input_path" 31588 fi 31589 fi 31590 31591 31592 if test "x$path" != "x$new_path"; then 31593 BUILD_JDK="$new_path" 31594 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31595 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31596 fi 31597 31598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31599 31600 path="$BUILD_JDK" 31601 has_colon=`$ECHO $path | $GREP ^.:` 31602 new_path="$path" 31603 if test "x$has_colon" = x; then 31604 # Not in mixed or Windows style, start by that. 31605 new_path=`cmd //c echo $path` 31606 fi 31607 31608 31609 input_path="$new_path" 31610 # Check if we need to convert this using DOS-style short mode. If the path 31611 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31612 # take no chances and rewrite it. 31613 # Note: m4 eats our [], so we need to use [ and ] instead. 31614 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31615 if test "x$has_forbidden_chars" != x; then 31616 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31617 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31618 fi 31619 31620 31621 windows_path="$new_path" 31622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31623 unix_path=`$CYGPATH -u "$windows_path"` 31624 new_path="$unix_path" 31625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31627 new_path="$unix_path" 31628 fi 31629 31630 if test "x$path" != "x$new_path"; then 31631 BUILD_JDK="$new_path" 31632 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31633 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31634 fi 31635 31636 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31637 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31638 31639 else 31640 # We're on a unix platform. Hooray! :) 31641 path="$BUILD_JDK" 31642 has_space=`$ECHO "$path" | $GREP " "` 31643 if test "x$has_space" != x; then 31644 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31645 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31646 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31647 fi 31648 31649 # Use eval to expand a potential ~ 31650 eval path="$path" 31651 if test ! -f "$path" && test ! -d "$path"; then 31652 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31653 fi 31654 31655 if test -d "$path"; then 31656 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31657 else 31658 dir="`$DIRNAME "$path"`" 31659 base="`$BASENAME "$path"`" 31660 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31661 fi 31662 fi 31663 fi 31664 31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31666 $as_echo_n "checking for Build JDK... " >&6; } 31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31668 $as_echo "$BUILD_JDK" >&6; } 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31670 $as_echo_n "checking Build JDK version... " >&6; } 31671 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31673 $as_echo "$BUILD_JDK_VERSION" >&6; } 31674 fi # end check jdk version 31675 fi # end check java 31676 fi # end check build jdk found 31677 fi 31678 31679 EXTERNAL_BUILDJDK=true 31680 else 31681 if test "x$COMPILE_TYPE" = "xcross"; then 31682 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31683 BUILD_JDK_FOUND=yes 31684 CREATE_BUILDJDK=true 31685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31686 $as_echo_n "checking for Build JDK... " >&6; } 31687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31688 $as_echo "yes, will build it for the host platform" >&6; } 31689 else 31690 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31691 BUILD_JDK_FOUND=yes 31692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31693 $as_echo_n "checking for Build JDK... " >&6; } 31694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31695 $as_echo "yes, will use output dir" >&6; } 31696 fi 31697 fi 31698 31699 JMOD="$BUILD_JDK/bin/jmod" 31700 JLINK="$BUILD_JDK/bin/jlink" 31701 31702 31703 31704 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31706 $as_echo_n "checking for Build JDK... " >&6; } 31707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31708 $as_echo "no" >&6; } 31709 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31710 fi 31711 31712 31713 31714 31715 31716 31717 ############################################################################### 31718 # 31719 # Configure the sources to use. We can add or override individual directories. 31720 # 31721 ############################################################################### 31722 31723 31724 OUTPUTDIR="$OUTPUTDIR" 31725 31726 JDK_OUTPUTDIR="$OUTPUTDIR/jdk" 31727 31728 # Where are the sources. 31729 31730 31731 31732 31733 # Check whether --with-import-modules was given. 31734 if test "${with_import_modules+set}" = set; then : 31735 withval=$with_import_modules; 31736 fi 31737 31738 31739 if test "x$with_import_modules" != x \ 31740 && test "x$with_import_modules" != "xno"; then 31741 if test -d "$with_import_modules"; then 31742 IMPORT_MODULES_TOPDIR="$with_import_modules" 31743 31744 # Only process if variable expands to non-empty 31745 31746 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31748 31749 # Input might be given as Windows format, start by converting to 31750 # unix format. 31751 path="$IMPORT_MODULES_TOPDIR" 31752 new_path=`$CYGPATH -u "$path"` 31753 31754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31757 # "foo.exe" is OK but "foo" is an error. 31758 # 31759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31760 # It is also a way to make sure we got the proper file name for the real test later on. 31761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31762 if test "x$test_shortpath" = x; then 31763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31764 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31765 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31766 fi 31767 31768 # Call helper function which possibly converts this using DOS-style short mode. 31769 # If so, the updated path is stored in $new_path. 31770 31771 input_path="$new_path" 31772 # Check if we need to convert this using DOS-style short mode. If the path 31773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31774 # take no chances and rewrite it. 31775 # Note: m4 eats our [], so we need to use [ and ] instead. 31776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31777 if test "x$has_forbidden_chars" != x; then 31778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31782 # Going to short mode and back again did indeed matter. Since short mode is 31783 # case insensitive, let's make it lowercase to improve readability. 31784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31785 # Now convert it back to Unix-style (cygpath) 31786 input_path=`$CYGPATH -u "$shortmode_path"` 31787 new_path="$input_path" 31788 fi 31789 fi 31790 31791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31792 if test "x$test_cygdrive_prefix" = x; then 31793 # As a simple fix, exclude /usr/bin since it's not a real path. 31794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31796 # a path prefixed by /cygdrive for fixpath to work. 31797 new_path="$CYGWIN_ROOT_PATH$input_path" 31798 fi 31799 fi 31800 31801 31802 if test "x$path" != "x$new_path"; then 31803 IMPORT_MODULES_TOPDIR="$new_path" 31804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31805 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31806 fi 31807 31808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31809 31810 path="$IMPORT_MODULES_TOPDIR" 31811 has_colon=`$ECHO $path | $GREP ^.:` 31812 new_path="$path" 31813 if test "x$has_colon" = x; then 31814 # Not in mixed or Windows style, start by that. 31815 new_path=`cmd //c echo $path` 31816 fi 31817 31818 31819 input_path="$new_path" 31820 # Check if we need to convert this using DOS-style short mode. If the path 31821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31822 # take no chances and rewrite it. 31823 # Note: m4 eats our [], so we need to use [ and ] instead. 31824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31825 if test "x$has_forbidden_chars" != x; then 31826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31828 fi 31829 31830 31831 windows_path="$new_path" 31832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31833 unix_path=`$CYGPATH -u "$windows_path"` 31834 new_path="$unix_path" 31835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31837 new_path="$unix_path" 31838 fi 31839 31840 if test "x$path" != "x$new_path"; then 31841 IMPORT_MODULES_TOPDIR="$new_path" 31842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31843 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31844 fi 31845 31846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31848 31849 else 31850 # We're on a unix platform. Hooray! :) 31851 path="$IMPORT_MODULES_TOPDIR" 31852 has_space=`$ECHO "$path" | $GREP " "` 31853 if test "x$has_space" != x; then 31854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31855 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31857 fi 31858 31859 # Use eval to expand a potential ~ 31860 eval path="$path" 31861 if test ! -f "$path" && test ! -d "$path"; then 31862 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31863 fi 31864 31865 if test -d "$path"; then 31866 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31867 else 31868 dir="`$DIRNAME "$path"`" 31869 base="`$BASENAME "$path"`" 31870 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31871 fi 31872 fi 31873 fi 31874 31875 elif test -e "$with_import_modules"; then 31876 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31877 $RM -rf "$IMPORT_MODULES_TOPDIR" 31878 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31879 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31880 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31881 fi 31882 else 31883 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31884 fi 31885 fi 31886 31887 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31888 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31889 fi 31890 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31891 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31892 fi 31893 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31894 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31895 fi 31896 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31897 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31898 fi 31899 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31900 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31901 fi 31902 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31903 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31904 fi 31905 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31906 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31907 fi 31908 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31909 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31910 fi 31911 31912 31913 31914 31915 31916 31917 31918 31919 31920 31921 31922 ############################################################################### 31923 # 31924 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31925 # native code. 31926 # 31927 ############################################################################### 31928 31929 # See if we are doing a complete static build or not 31930 31931 # Check whether --enable-static-build was given. 31932 if test "${enable_static_build+set}" = set; then : 31933 enableval=$enable_static_build; 31934 fi 31935 31936 STATIC_BUILD=false 31937 if test "x$enable_static_build" = "xyes"; then 31938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31939 $as_echo_n "checking if static build is enabled... " >&6; } 31940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31941 $as_echo "yes" >&6; } 31942 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31943 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31944 fi 31945 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31946 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31947 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31948 STATIC_BUILD=true 31949 elif test "x$enable_static_build" = "xno"; then 31950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31951 $as_echo_n "checking if static build is enabled... " >&6; } 31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31953 $as_echo "no" >&6; } 31954 elif test "x$enable_static_build" != "x"; then 31955 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31956 fi 31957 31958 31959 31960 31961 # First determine the toolchain type (compiler family) 31962 31963 31964 # Check whether --with-toolchain-type was given. 31965 if test "${with_toolchain_type+set}" = set; then : 31966 withval=$with_toolchain_type; 31967 fi 31968 31969 31970 # Use indirect variable referencing 31971 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31972 VALID_TOOLCHAINS=${!toolchain_var_name} 31973 31974 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31975 if test -n "$XCODEBUILD"; then 31976 # On Mac OS X, default toolchain to clang after Xcode 5 31977 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31978 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31979 if test $? -ne 0; then 31980 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31981 fi 31982 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31983 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31984 $CUT -f 1 -d .` 31985 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31986 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31987 if test $XCODE_MAJOR_VERSION -ge 5; then 31988 DEFAULT_TOOLCHAIN="clang" 31989 else 31990 DEFAULT_TOOLCHAIN="gcc" 31991 fi 31992 else 31993 # If Xcode is not installed, but the command line tools are 31994 # then we can't run xcodebuild. On these systems we should 31995 # default to clang 31996 DEFAULT_TOOLCHAIN="clang" 31997 fi 31998 else 31999 # First toolchain type in the list is the default 32000 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 32001 fi 32002 32003 if test "x$with_toolchain_type" = xlist; then 32004 # List all toolchains 32005 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 32006 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 32007 for toolchain in $VALID_TOOLCHAINS; do 32008 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 32009 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32010 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 32011 done 32012 32013 exit 0 32014 elif test "x$with_toolchain_type" != x; then 32015 # User override; check that it is valid 32016 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 32017 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 32018 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 32019 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 32020 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 32021 as_fn_error $? "Cannot continue." "$LINENO" 5 32022 fi 32023 TOOLCHAIN_TYPE=$with_toolchain_type 32024 else 32025 # No flag given, use default 32026 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 32027 fi 32028 32029 32030 TOOLCHAIN_CC_BINARY_clang="clang" 32031 TOOLCHAIN_CC_BINARY_gcc="gcc" 32032 TOOLCHAIN_CC_BINARY_microsoft="cl" 32033 TOOLCHAIN_CC_BINARY_solstudio="cc" 32034 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 32035 32036 TOOLCHAIN_CXX_BINARY_clang="clang++" 32037 TOOLCHAIN_CXX_BINARY_gcc="g++" 32038 TOOLCHAIN_CXX_BINARY_microsoft="cl" 32039 TOOLCHAIN_CXX_BINARY_solstudio="CC" 32040 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 32041 32042 # Use indirect variable referencing 32043 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 32044 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 32045 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 32046 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 32047 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 32048 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 32049 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 32050 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 32051 32052 32053 # Define filename patterns 32054 if test "x$OPENJDK_TARGET_OS" = xwindows; then 32055 LIBRARY_PREFIX= 32056 SHARED_LIBRARY_SUFFIX='.dll' 32057 STATIC_LIBRARY_SUFFIX='.lib' 32058 SHARED_LIBRARY='$1.dll' 32059 STATIC_LIBRARY='$1.lib' 32060 OBJ_SUFFIX='.obj' 32061 EXE_SUFFIX='.exe' 32062 else 32063 LIBRARY_PREFIX=lib 32064 SHARED_LIBRARY_SUFFIX='.so' 32065 STATIC_LIBRARY_SUFFIX='.a' 32066 SHARED_LIBRARY='lib$1.so' 32067 STATIC_LIBRARY='lib$1.a' 32068 OBJ_SUFFIX='.o' 32069 EXE_SUFFIX='' 32070 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32071 # For full static builds, we're overloading the SHARED_LIBRARY 32072 # variables in order to limit the amount of changes required. 32073 # It would be better to remove SHARED and just use LIBRARY and 32074 # LIBRARY_SUFFIX for libraries that can be built either 32075 # shared or static and use STATIC_* for libraries that are 32076 # always built statically. 32077 if test "x$STATIC_BUILD" = xtrue; then 32078 SHARED_LIBRARY='lib$1.a' 32079 SHARED_LIBRARY_SUFFIX='.a' 32080 else 32081 SHARED_LIBRARY='lib$1.dylib' 32082 SHARED_LIBRARY_SUFFIX='.dylib' 32083 fi 32084 fi 32085 fi 32086 32087 32088 32089 32090 32091 32092 32093 32094 32095 32096 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32097 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32098 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32099 else 32100 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32101 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32102 fi 32103 32104 32105 # User supplied flags should be used when configure detects compilers 32106 32107 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32109 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32110 fi 32111 32112 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32114 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32115 fi 32116 32117 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32119 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32120 fi 32121 32122 32123 # Check whether --with-extra-cflags was given. 32124 if test "${with_extra_cflags+set}" = set; then : 32125 withval=$with_extra_cflags; 32126 fi 32127 32128 32129 32130 # Check whether --with-extra-cxxflags was given. 32131 if test "${with_extra_cxxflags+set}" = set; then : 32132 withval=$with_extra_cxxflags; 32133 fi 32134 32135 32136 32137 # Check whether --with-extra-ldflags was given. 32138 if test "${with_extra_ldflags+set}" = set; then : 32139 withval=$with_extra_ldflags; 32140 fi 32141 32142 32143 EXTRA_CFLAGS="$with_extra_cflags" 32144 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32145 EXTRA_LDFLAGS="$with_extra_ldflags" 32146 32147 32148 32149 32150 32151 # The global CFLAGS and LDLAGS variables are used by configure tests and 32152 # should include the extra parameters 32153 CFLAGS="$EXTRA_CFLAGS" 32154 CXXFLAGS="$EXTRA_CXXFLAGS" 32155 LDFLAGS="$EXTRA_LDFLAGS" 32156 CPPFLAGS="" 32157 32158 # The sysroot cflags are needed for configure to be able to run the compilers 32159 32160 if test "x$SYSROOT" != "x"; then 32161 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32162 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32163 # Solaris Studio does not have a concept of sysroot. Instead we must 32164 # make sure the default include and lib dirs are appended to each 32165 # compile and link command line. Must also add -I-xbuiltin to enable 32166 # inlining of system functions and intrinsics. 32167 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32168 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32169 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32170 fi 32171 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32172 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32173 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32174 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32175 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32176 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32177 fi 32178 # The global CFLAGS and LDFLAGS variables need these for configure to function 32179 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32180 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32181 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32182 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32183 fi 32184 32185 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32186 # We also need -iframework<path>/System/Library/Frameworks 32187 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32188 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32189 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32190 # set this here so it doesn't have to be peppered throughout the forest 32191 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32192 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32193 fi 32194 32195 32196 32197 32198 32199 # Then detect the actual binaries needed 32200 32201 # FIXME: Is this needed? 32202 ac_ext=cpp 32203 ac_cpp='$CXXCPP $CPPFLAGS' 32204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32207 32208 32209 # Store the CFLAGS etc passed to the configure script. 32210 ORG_CFLAGS="$CFLAGS" 32211 ORG_CXXFLAGS="$CXXFLAGS" 32212 32213 # autoconf magic only relies on PATH, so update it if tools dir is specified 32214 OLD_PATH="$PATH" 32215 32216 # On Windows, we need to detect the visual studio installation first. 32217 # This will change the PATH, but we need to keep that new PATH even 32218 # after toolchain detection is done, since the compiler (on x86) uses 32219 # it for DLL resolution in runtime. 32220 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32221 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32222 32223 # Store path to cygwin link.exe to help excluding it when searching for 32224 # VS linker. This must be done before changing the PATH when looking for VS. 32225 # Extract the first word of "link", so it can be a program name with args. 32226 set dummy link; ac_word=$2 32227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32228 $as_echo_n "checking for $ac_word... " >&6; } 32229 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32230 $as_echo_n "(cached) " >&6 32231 else 32232 case $CYGWIN_LINK in 32233 [\\/]* | ?:[\\/]*) 32234 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32235 ;; 32236 *) 32237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32238 for as_dir in $PATH 32239 do 32240 IFS=$as_save_IFS 32241 test -z "$as_dir" && as_dir=. 32242 for ac_exec_ext in '' $ac_executable_extensions; do 32243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32244 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32246 break 2 32247 fi 32248 done 32249 done 32250 IFS=$as_save_IFS 32251 32252 ;; 32253 esac 32254 fi 32255 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32256 if test -n "$CYGWIN_LINK"; then 32257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32258 $as_echo "$CYGWIN_LINK" >&6; } 32259 else 32260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32261 $as_echo "no" >&6; } 32262 fi 32263 32264 32265 if test "x$CYGWIN_LINK" != x; then 32266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32267 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32268 "$CYGWIN_LINK" --version > /dev/null 32269 if test $? -eq 0 ; then 32270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32271 $as_echo "yes" >&6; } 32272 else 32273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32274 $as_echo "no" >&6; } 32275 # This might be the VS linker. Don't exclude it later on. 32276 CYGWIN_LINK="" 32277 fi 32278 fi 32279 32280 # First-hand choice is to locate and run the vsvars bat file. 32281 32282 32283 # Check whether --with-toolchain-version was given. 32284 if test "${with_toolchain_version+set}" = set; then : 32285 withval=$with_toolchain_version; 32286 fi 32287 32288 32289 if test "x$with_toolchain_version" = xlist; then 32290 # List all toolchains 32291 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32292 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32293 for version in $VALID_VS_VERSIONS; do 32294 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32295 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32296 done 32297 32298 exit 0 32299 elif test "x$DEVKIT_VS_VERSION" != x; then 32300 VS_VERSION=$DEVKIT_VS_VERSION 32301 TOOLCHAIN_VERSION=$VS_VERSION 32302 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32303 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32304 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32305 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32306 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32307 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32308 32309 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32310 # can still be exported as INCLUDE for compiler invocations without 32311 # SYSROOT_CFLAGS 32312 OLDIFS="$IFS" 32313 IFS=";" 32314 for i in $DEVKIT_VS_INCLUDE; do 32315 ipath=$i 32316 32317 unix_path="$ipath" 32318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32319 windows_path=`$CYGPATH -m "$unix_path"` 32320 ipath="$windows_path" 32321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32322 windows_path=`cmd //c echo $unix_path` 32323 ipath="$windows_path" 32324 fi 32325 32326 VS_INCLUDE="$VS_INCLUDE;$ipath" 32327 done 32328 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32329 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32330 for i in $DEVKIT_VS_LIB; do 32331 libpath=$i 32332 32333 unix_path="$libpath" 32334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32335 windows_path=`$CYGPATH -m "$unix_path"` 32336 libpath="$windows_path" 32337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32338 windows_path=`cmd //c echo $unix_path` 32339 libpath="$windows_path" 32340 fi 32341 32342 VS_LIB="$VS_LIB;$libpath" 32343 done 32344 IFS="$OLDIFS" 32345 32346 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32347 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32348 32349 elif test "x$with_toolchain_version" != x; then 32350 # User override; check that it is valid 32351 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32352 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32353 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32354 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32355 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32356 as_fn_error $? "Cannot continue." "$LINENO" 5 32357 fi 32358 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32359 else 32360 # No flag given, use default 32361 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32362 fi 32363 32364 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32365 32366 VS_VERSION="$VS_VERSION" 32367 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32368 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32369 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32370 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32371 32372 # When using --with-tools-dir, assume it points to the correct and default 32373 # version of Visual Studio or that --with-toolchain-version was also set. 32374 if test "x$with_tools_dir" != x; then 32375 32376 if test "x$VS_ENV_CMD" = x; then 32377 VS_VERSION="${VS_VERSION}" 32378 VS_BASE="$with_tools_dir/../.." 32379 METHOD="--with-tools-dir" 32380 32381 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32382 VCVARSFILE="vc/bin/vcvars32.bat" 32383 else 32384 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32385 fi 32386 32387 32388 windows_path="$VS_BASE" 32389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32390 unix_path=`$CYGPATH -u "$windows_path"` 32391 VS_BASE="$unix_path" 32392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32394 VS_BASE="$unix_path" 32395 fi 32396 32397 if test -d "$VS_BASE"; then 32398 if test -f "$VS_BASE/$VCVARSFILE"; then 32399 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32400 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32401 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32402 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32403 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32404 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32405 else 32406 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32407 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32408 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32409 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32410 fi 32411 fi 32412 fi 32413 32414 32415 if test "x$VS_ENV_CMD" = x; then 32416 VS_VERSION="${VS_VERSION}" 32417 VS_BASE="$with_tools_dir/../../.." 32418 METHOD="--with-tools-dir" 32419 32420 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32421 VCVARSFILE="vc/bin/vcvars32.bat" 32422 else 32423 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32424 fi 32425 32426 32427 windows_path="$VS_BASE" 32428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32429 unix_path=`$CYGPATH -u "$windows_path"` 32430 VS_BASE="$unix_path" 32431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32433 VS_BASE="$unix_path" 32434 fi 32435 32436 if test -d "$VS_BASE"; then 32437 if test -f "$VS_BASE/$VCVARSFILE"; then 32438 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32439 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32440 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32441 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32442 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32443 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32444 else 32445 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32446 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32447 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32448 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32449 fi 32450 fi 32451 fi 32452 32453 if test "x$VS_ENV_CMD" = x; then 32454 # Having specified an argument which is incorrect will produce an instant failure; 32455 # we should not go on looking 32456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32457 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32458 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32459 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32460 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32461 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32462 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32463 fi 32464 fi 32465 32466 VS_ENV_CMD="" 32467 VS_ENV_ARGS="" 32468 32469 if test "x$VS_COMNTOOLS" != x; then 32470 32471 if test "x$VS_ENV_CMD" = x; then 32472 VS_VERSION="${VS_VERSION}" 32473 VS_BASE="$VS_COMNTOOLS/../.." 32474 METHOD="$VS_COMNTOOLS_VAR variable" 32475 32476 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32477 VCVARSFILE="vc/bin/vcvars32.bat" 32478 else 32479 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32480 fi 32481 32482 32483 windows_path="$VS_BASE" 32484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32485 unix_path=`$CYGPATH -u "$windows_path"` 32486 VS_BASE="$unix_path" 32487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32489 VS_BASE="$unix_path" 32490 fi 32491 32492 if test -d "$VS_BASE"; then 32493 if test -f "$VS_BASE/$VCVARSFILE"; then 32494 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32495 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32496 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32497 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32498 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32499 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32500 else 32501 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32502 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32503 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32504 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32505 fi 32506 fi 32507 fi 32508 32509 fi 32510 if test "x$PROGRAMFILES" != x; then 32511 32512 if test "x$VS_ENV_CMD" = x; then 32513 VS_VERSION="${VS_VERSION}" 32514 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32515 METHOD="well-known name" 32516 32517 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32518 VCVARSFILE="vc/bin/vcvars32.bat" 32519 else 32520 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32521 fi 32522 32523 32524 windows_path="$VS_BASE" 32525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32526 unix_path=`$CYGPATH -u "$windows_path"` 32527 VS_BASE="$unix_path" 32528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32530 VS_BASE="$unix_path" 32531 fi 32532 32533 if test -d "$VS_BASE"; then 32534 if test -f "$VS_BASE/$VCVARSFILE"; then 32535 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32536 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32537 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32538 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32539 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32540 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32541 else 32542 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32543 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32544 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32545 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32546 fi 32547 fi 32548 fi 32549 32550 fi 32551 # Work around the insanely named ProgramFiles(x86) env variable 32552 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32553 if test "x$PROGRAMFILES_X86" != x; then 32554 32555 if test "x$VS_ENV_CMD" = x; then 32556 VS_VERSION="${VS_VERSION}" 32557 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32558 METHOD="well-known name" 32559 32560 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32561 VCVARSFILE="vc/bin/vcvars32.bat" 32562 else 32563 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32564 fi 32565 32566 32567 windows_path="$VS_BASE" 32568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32569 unix_path=`$CYGPATH -u "$windows_path"` 32570 VS_BASE="$unix_path" 32571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32572 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32573 VS_BASE="$unix_path" 32574 fi 32575 32576 if test -d "$VS_BASE"; then 32577 if test -f "$VS_BASE/$VCVARSFILE"; then 32578 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32579 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32580 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32581 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32582 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32583 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32584 else 32585 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32586 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32587 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32588 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32589 fi 32590 fi 32591 fi 32592 32593 fi 32594 32595 if test "x$VS_ENV_CMD" = x; then 32596 VS_VERSION="${VS_VERSION}" 32597 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32598 METHOD="well-known name" 32599 32600 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32601 VCVARSFILE="vc/bin/vcvars32.bat" 32602 else 32603 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32604 fi 32605 32606 32607 windows_path="$VS_BASE" 32608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32609 unix_path=`$CYGPATH -u "$windows_path"` 32610 VS_BASE="$unix_path" 32611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32613 VS_BASE="$unix_path" 32614 fi 32615 32616 if test -d "$VS_BASE"; then 32617 if test -f "$VS_BASE/$VCVARSFILE"; then 32618 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32619 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32620 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32621 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32622 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32623 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32624 else 32625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32626 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32627 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32628 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32629 fi 32630 fi 32631 fi 32632 32633 32634 if test "x$VS_ENV_CMD" = x; then 32635 VS_VERSION="${VS_VERSION}" 32636 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32637 METHOD="well-known name" 32638 32639 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32640 VCVARSFILE="vc/bin/vcvars32.bat" 32641 else 32642 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32643 fi 32644 32645 32646 windows_path="$VS_BASE" 32647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32648 unix_path=`$CYGPATH -u "$windows_path"` 32649 VS_BASE="$unix_path" 32650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32652 VS_BASE="$unix_path" 32653 fi 32654 32655 if test -d "$VS_BASE"; then 32656 if test -f "$VS_BASE/$VCVARSFILE"; then 32657 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32658 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32659 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32660 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32661 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32662 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32663 else 32664 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32665 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32666 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32667 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32668 fi 32669 fi 32670 fi 32671 32672 32673 if test "x$SDK_INSTALL_DIR" != x; then 32674 if test "x$ProgramW6432" != x; then 32675 32676 if test "x$VS_ENV_CMD" = x; then 32677 VS_VERSION="${VS_VERSION}" 32678 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32679 METHOD="well-known name" 32680 32681 windows_path="$WIN_SDK_BASE" 32682 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32683 unix_path=`$CYGPATH -u "$windows_path"` 32684 WIN_SDK_BASE="$unix_path" 32685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32686 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32687 WIN_SDK_BASE="$unix_path" 32688 fi 32689 32690 if test -d "$WIN_SDK_BASE"; then 32691 # There have been cases of partial or broken SDK installations. A missing 32692 # lib dir is not going to work. 32693 if test ! -d "$WIN_SDK_BASE/lib"; then 32694 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32695 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32697 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32698 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32699 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32700 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32701 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32702 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32703 VS_ENV_ARGS="/x86" 32704 else 32705 VS_ENV_ARGS="/x64" 32706 fi 32707 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32708 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32709 # TODO: improve detection for other versions of SDK 32710 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32711 else 32712 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32713 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32714 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32715 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32716 fi 32717 fi 32718 fi 32719 32720 fi 32721 if test "x$PROGRAMW6432" != x; then 32722 32723 if test "x$VS_ENV_CMD" = x; then 32724 VS_VERSION="${VS_VERSION}" 32725 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32726 METHOD="well-known name" 32727 32728 windows_path="$WIN_SDK_BASE" 32729 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32730 unix_path=`$CYGPATH -u "$windows_path"` 32731 WIN_SDK_BASE="$unix_path" 32732 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32733 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32734 WIN_SDK_BASE="$unix_path" 32735 fi 32736 32737 if test -d "$WIN_SDK_BASE"; then 32738 # There have been cases of partial or broken SDK installations. A missing 32739 # lib dir is not going to work. 32740 if test ! -d "$WIN_SDK_BASE/lib"; then 32741 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32742 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32743 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32744 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32745 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32746 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32747 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32748 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32749 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32750 VS_ENV_ARGS="/x86" 32751 else 32752 VS_ENV_ARGS="/x64" 32753 fi 32754 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32755 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32756 # TODO: improve detection for other versions of SDK 32757 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32758 else 32759 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32760 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32761 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32762 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32763 fi 32764 fi 32765 fi 32766 32767 fi 32768 if test "x$PROGRAMFILES" != x; then 32769 32770 if test "x$VS_ENV_CMD" = x; then 32771 VS_VERSION="${VS_VERSION}" 32772 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32773 METHOD="well-known name" 32774 32775 windows_path="$WIN_SDK_BASE" 32776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32777 unix_path=`$CYGPATH -u "$windows_path"` 32778 WIN_SDK_BASE="$unix_path" 32779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32781 WIN_SDK_BASE="$unix_path" 32782 fi 32783 32784 if test -d "$WIN_SDK_BASE"; then 32785 # There have been cases of partial or broken SDK installations. A missing 32786 # lib dir is not going to work. 32787 if test ! -d "$WIN_SDK_BASE/lib"; then 32788 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32789 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32790 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32791 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32792 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32793 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32794 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32795 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32796 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32797 VS_ENV_ARGS="/x86" 32798 else 32799 VS_ENV_ARGS="/x64" 32800 fi 32801 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32802 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32803 # TODO: improve detection for other versions of SDK 32804 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32805 else 32806 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32807 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32808 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32809 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32810 fi 32811 fi 32812 fi 32813 32814 fi 32815 32816 if test "x$VS_ENV_CMD" = x; then 32817 VS_VERSION="${VS_VERSION}" 32818 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32819 METHOD="well-known name" 32820 32821 windows_path="$WIN_SDK_BASE" 32822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32823 unix_path=`$CYGPATH -u "$windows_path"` 32824 WIN_SDK_BASE="$unix_path" 32825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32827 WIN_SDK_BASE="$unix_path" 32828 fi 32829 32830 if test -d "$WIN_SDK_BASE"; then 32831 # There have been cases of partial or broken SDK installations. A missing 32832 # lib dir is not going to work. 32833 if test ! -d "$WIN_SDK_BASE/lib"; then 32834 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32835 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32836 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32837 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32838 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32839 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32840 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32841 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32842 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32843 VS_ENV_ARGS="/x86" 32844 else 32845 VS_ENV_ARGS="/x64" 32846 fi 32847 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32848 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32849 # TODO: improve detection for other versions of SDK 32850 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32851 else 32852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32853 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32854 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32855 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32856 fi 32857 fi 32858 fi 32859 32860 32861 if test "x$VS_ENV_CMD" = x; then 32862 VS_VERSION="${VS_VERSION}" 32863 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32864 METHOD="well-known name" 32865 32866 windows_path="$WIN_SDK_BASE" 32867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32868 unix_path=`$CYGPATH -u "$windows_path"` 32869 WIN_SDK_BASE="$unix_path" 32870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32872 WIN_SDK_BASE="$unix_path" 32873 fi 32874 32875 if test -d "$WIN_SDK_BASE"; then 32876 # There have been cases of partial or broken SDK installations. A missing 32877 # lib dir is not going to work. 32878 if test ! -d "$WIN_SDK_BASE/lib"; then 32879 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32880 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32881 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32882 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32883 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32884 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32885 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32886 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32887 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32888 VS_ENV_ARGS="/x86" 32889 else 32890 VS_ENV_ARGS="/x64" 32891 fi 32892 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32893 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32894 # TODO: improve detection for other versions of SDK 32895 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32896 else 32897 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32898 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32899 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32900 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32901 fi 32902 fi 32903 fi 32904 32905 fi 32906 32907 if test "x$VS_ENV_CMD" != x; then 32908 TOOLCHAIN_VERSION=$VS_VERSION 32909 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32910 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32911 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32912 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32913 # The rest of the variables are already evaled while probing 32914 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32915 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32916 break 32917 fi 32918 done 32919 32920 32921 # If we have a devkit, skip all of the below. 32922 if test "x$DEVKIT_VS_VERSION" = x; then 32923 if test "x$VS_ENV_CMD" != x; then 32924 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32925 32926 # Only process if variable expands to non-empty 32927 32928 if test "x$VS_ENV_CMD" != x; then 32929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32930 32931 # First separate the path from the arguments. This will split at the first 32932 # space. 32933 complete="$VS_ENV_CMD" 32934 path="${complete%% *}" 32935 tmp="$complete EOL" 32936 arguments="${tmp#* }" 32937 32938 # Input might be given as Windows format, start by converting to 32939 # unix format. 32940 new_path=`$CYGPATH -u "$path"` 32941 32942 # Now try to locate executable using which 32943 new_path=`$WHICH "$new_path" 2> /dev/null` 32944 # bat and cmd files are not always considered executable in cygwin causing which 32945 # to not find them 32946 if test "x$new_path" = x \ 32947 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32948 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32949 new_path=`$CYGPATH -u "$path"` 32950 fi 32951 if test "x$new_path" = x; then 32952 # Oops. Which didn't find the executable. 32953 # The splitting of arguments from the executable at a space might have been incorrect, 32954 # since paths with space are more likely in Windows. Give it another try with the whole 32955 # argument. 32956 path="$complete" 32957 arguments="EOL" 32958 new_path=`$CYGPATH -u "$path"` 32959 new_path=`$WHICH "$new_path" 2> /dev/null` 32960 # bat and cmd files are not always considered executable in cygwin causing which 32961 # to not find them 32962 if test "x$new_path" = x \ 32963 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32964 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32965 new_path=`$CYGPATH -u "$path"` 32966 fi 32967 if test "x$new_path" = x; then 32968 # It's still not found. Now this is an unrecoverable error. 32969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32970 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32971 has_space=`$ECHO "$complete" | $GREP " "` 32972 if test "x$has_space" != x; then 32973 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32974 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32975 fi 32976 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32977 fi 32978 fi 32979 32980 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32981 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32982 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32983 # "foo.exe" is OK but "foo" is an error. 32984 # 32985 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32986 # It is also a way to make sure we got the proper file name for the real test later on. 32987 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32988 if test "x$test_shortpath" = x; then 32989 # Short path failed, file does not exist as specified. 32990 # Try adding .exe or .cmd 32991 if test -f "${new_path}.exe"; then 32992 input_to_shortpath="${new_path}.exe" 32993 elif test -f "${new_path}.cmd"; then 32994 input_to_shortpath="${new_path}.cmd" 32995 else 32996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32997 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32998 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32999 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33000 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33001 fi 33002 else 33003 input_to_shortpath="$new_path" 33004 fi 33005 33006 # Call helper function which possibly converts this using DOS-style short mode. 33007 # If so, the updated path is stored in $new_path. 33008 new_path="$input_to_shortpath" 33009 33010 input_path="$input_to_shortpath" 33011 # Check if we need to convert this using DOS-style short mode. If the path 33012 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33013 # take no chances and rewrite it. 33014 # Note: m4 eats our [], so we need to use [ and ] instead. 33015 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33016 if test "x$has_forbidden_chars" != x; then 33017 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33018 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33019 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33020 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33021 # Going to short mode and back again did indeed matter. Since short mode is 33022 # case insensitive, let's make it lowercase to improve readability. 33023 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33024 # Now convert it back to Unix-style (cygpath) 33025 input_path=`$CYGPATH -u "$shortmode_path"` 33026 new_path="$input_path" 33027 fi 33028 fi 33029 33030 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33031 if test "x$test_cygdrive_prefix" = x; then 33032 # As a simple fix, exclude /usr/bin since it's not a real path. 33033 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33034 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33035 # a path prefixed by /cygdrive for fixpath to work. 33036 new_path="$CYGWIN_ROOT_PATH$input_path" 33037 fi 33038 fi 33039 33040 # remove trailing .exe if any 33041 new_path="${new_path/%.exe/}" 33042 33043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33044 33045 # First separate the path from the arguments. This will split at the first 33046 # space. 33047 complete="$VS_ENV_CMD" 33048 path="${complete%% *}" 33049 tmp="$complete EOL" 33050 arguments="${tmp#* }" 33051 33052 # Input might be given as Windows format, start by converting to 33053 # unix format. 33054 new_path="$path" 33055 33056 windows_path="$new_path" 33057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33058 unix_path=`$CYGPATH -u "$windows_path"` 33059 new_path="$unix_path" 33060 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33061 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33062 new_path="$unix_path" 33063 fi 33064 33065 33066 # Now try to locate executable using which 33067 new_path=`$WHICH "$new_path" 2> /dev/null` 33068 33069 if test "x$new_path" = x; then 33070 # Oops. Which didn't find the executable. 33071 # The splitting of arguments from the executable at a space might have been incorrect, 33072 # since paths with space are more likely in Windows. Give it another try with the whole 33073 # argument. 33074 path="$complete" 33075 arguments="EOL" 33076 new_path="$path" 33077 33078 windows_path="$new_path" 33079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33080 unix_path=`$CYGPATH -u "$windows_path"` 33081 new_path="$unix_path" 33082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33083 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33084 new_path="$unix_path" 33085 fi 33086 33087 33088 new_path=`$WHICH "$new_path" 2> /dev/null` 33089 # bat and cmd files are not always considered executable in MSYS causing which 33090 # to not find them 33091 if test "x$new_path" = x \ 33092 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33093 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33094 new_path="$path" 33095 33096 windows_path="$new_path" 33097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33098 unix_path=`$CYGPATH -u "$windows_path"` 33099 new_path="$unix_path" 33100 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33101 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33102 new_path="$unix_path" 33103 fi 33104 33105 fi 33106 33107 if test "x$new_path" = x; then 33108 # It's still not found. Now this is an unrecoverable error. 33109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33110 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33111 has_space=`$ECHO "$complete" | $GREP " "` 33112 if test "x$has_space" != x; then 33113 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33114 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33115 fi 33116 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33117 fi 33118 fi 33119 33120 # Now new_path has a complete unix path to the binary 33121 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33122 # Keep paths in /bin as-is, but remove trailing .exe if any 33123 new_path="${new_path/%.exe/}" 33124 # Do not save /bin paths to all_fixpath_prefixes! 33125 else 33126 # Not in mixed or Windows style, start by that. 33127 new_path=`cmd //c echo $new_path` 33128 33129 input_path="$new_path" 33130 # Check if we need to convert this using DOS-style short mode. If the path 33131 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33132 # take no chances and rewrite it. 33133 # Note: m4 eats our [], so we need to use [ and ] instead. 33134 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33135 if test "x$has_forbidden_chars" != x; then 33136 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33137 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33138 fi 33139 33140 # Output is in $new_path 33141 33142 windows_path="$new_path" 33143 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33144 unix_path=`$CYGPATH -u "$windows_path"` 33145 new_path="$unix_path" 33146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33147 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33148 new_path="$unix_path" 33149 fi 33150 33151 # remove trailing .exe if any 33152 new_path="${new_path/%.exe/}" 33153 33154 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33155 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33156 fi 33157 33158 else 33159 # We're on a unix platform. Hooray! :) 33160 # First separate the path from the arguments. This will split at the first 33161 # space. 33162 complete="$VS_ENV_CMD" 33163 path="${complete%% *}" 33164 tmp="$complete EOL" 33165 arguments="${tmp#* }" 33166 33167 # Cannot rely on the command "which" here since it doesn't always work. 33168 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33169 if test -z "$is_absolute_path"; then 33170 # Path to executable is not absolute. Find it. 33171 IFS_save="$IFS" 33172 IFS=: 33173 for p in $PATH; do 33174 if test -f "$p/$path" && test -x "$p/$path"; then 33175 new_path="$p/$path" 33176 break 33177 fi 33178 done 33179 IFS="$IFS_save" 33180 else 33181 # This is an absolute path, we can use it without further modifications. 33182 new_path="$path" 33183 fi 33184 33185 if test "x$new_path" = x; then 33186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33187 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33188 has_space=`$ECHO "$complete" | $GREP " "` 33189 if test "x$has_space" != x; then 33190 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33191 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33192 fi 33193 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33194 fi 33195 fi 33196 33197 # Now join together the path and the arguments once again 33198 if test "x$arguments" != xEOL; then 33199 new_complete="$new_path ${arguments% *}" 33200 else 33201 new_complete="$new_path" 33202 fi 33203 33204 if test "x$complete" != "x$new_complete"; then 33205 VS_ENV_CMD="$new_complete" 33206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33207 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33208 fi 33209 fi 33210 33211 33212 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33213 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33214 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33215 33216 # We need to create a couple of temporary files. 33217 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33218 $MKDIR -p $VS_ENV_TMP_DIR 33219 33220 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33221 # Instead create a shell script which will set the relevant variables when run. 33222 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33223 33224 unix_path="$WINPATH_VS_ENV_CMD" 33225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33226 windows_path=`$CYGPATH -m "$unix_path"` 33227 WINPATH_VS_ENV_CMD="$windows_path" 33228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33229 windows_path=`cmd //c echo $unix_path` 33230 WINPATH_VS_ENV_CMD="$windows_path" 33231 fi 33232 33233 WINPATH_BASH="$BASH" 33234 33235 unix_path="$WINPATH_BASH" 33236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33237 windows_path=`$CYGPATH -m "$unix_path"` 33238 WINPATH_BASH="$windows_path" 33239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33240 windows_path=`cmd //c echo $unix_path` 33241 WINPATH_BASH="$windows_path" 33242 fi 33243 33244 33245 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33246 # script (executable by bash) that will setup the important variables. 33247 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33248 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33249 # This will end up something like: 33250 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33251 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33252 # These will end up something like: 33253 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33254 # The trailing space for everyone except PATH is no typo, but is needed due 33255 # to trailing \ in the Windows paths. These will be stripped later. 33256 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33257 >> $EXTRACT_VC_ENV_BAT_FILE 33258 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33259 >> $EXTRACT_VC_ENV_BAT_FILE 33260 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33261 >> $EXTRACT_VC_ENV_BAT_FILE 33262 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33263 >> $EXTRACT_VC_ENV_BAT_FILE 33264 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33265 >> $EXTRACT_VC_ENV_BAT_FILE 33266 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33267 >> $EXTRACT_VC_ENV_BAT_FILE 33268 33269 # Now execute the newly created bat file. 33270 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33271 # Change directory so we don't need to mess with Windows paths in redirects. 33272 cd $VS_ENV_TMP_DIR 33273 cmd /c extract-vs-env.bat | $CAT 33274 cd $CURDIR 33275 33276 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33277 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33278 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33279 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33280 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33281 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33282 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33283 as_fn_error $? "Cannot continue" "$LINENO" 5 33284 fi 33285 33286 # Now set all paths and other env variables. This will allow the rest of 33287 # the configure script to find and run the compiler in the proper way. 33288 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33289 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33290 . $VS_ENV_TMP_DIR/set-vs-env.sh 33291 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33292 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33293 else 33294 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33295 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33296 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33297 fi 33298 fi 33299 33300 # At this point, we should have correct variables in the environment, or we can't continue. 33301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33302 $as_echo_n "checking for Visual Studio variables... " >&6; } 33303 33304 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33305 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33306 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33308 $as_echo "present but broken" >&6; } 33309 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33310 else 33311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33312 $as_echo "ok" >&6; } 33313 # Remove any trailing "\" ";" and " " from the variables. 33314 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33315 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33316 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33317 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33318 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33319 # Remove any paths containing # (typically F#) as that messes up make. This 33320 # is needed if visual studio was installed with F# support. 33321 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33322 33323 33324 33325 33326 33327 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33328 OLDIFS="$IFS" 33329 IFS=";" 33330 for i in $VS_INCLUDE; do 33331 ipath=$i 33332 # Only process non-empty elements 33333 if test "x$ipath" != x; then 33334 IFS="$OLDIFS" 33335 # Check that directory exists before calling fixup_path 33336 testpath=$ipath 33337 33338 windows_path="$testpath" 33339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33340 unix_path=`$CYGPATH -u "$windows_path"` 33341 testpath="$unix_path" 33342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33344 testpath="$unix_path" 33345 fi 33346 33347 if test -d "$testpath"; then 33348 33349 # Only process if variable expands to non-empty 33350 33351 if test "x$ipath" != x; then 33352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33353 33354 # Input might be given as Windows format, start by converting to 33355 # unix format. 33356 path="$ipath" 33357 new_path=`$CYGPATH -u "$path"` 33358 33359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33362 # "foo.exe" is OK but "foo" is an error. 33363 # 33364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33365 # It is also a way to make sure we got the proper file name for the real test later on. 33366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33367 if test "x$test_shortpath" = x; then 33368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33369 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33370 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33371 fi 33372 33373 # Call helper function which possibly converts this using DOS-style short mode. 33374 # If so, the updated path is stored in $new_path. 33375 33376 input_path="$new_path" 33377 # Check if we need to convert this using DOS-style short mode. If the path 33378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33379 # take no chances and rewrite it. 33380 # Note: m4 eats our [], so we need to use [ and ] instead. 33381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33382 if test "x$has_forbidden_chars" != x; then 33383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33387 # Going to short mode and back again did indeed matter. Since short mode is 33388 # case insensitive, let's make it lowercase to improve readability. 33389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33390 # Now convert it back to Unix-style (cygpath) 33391 input_path=`$CYGPATH -u "$shortmode_path"` 33392 new_path="$input_path" 33393 fi 33394 fi 33395 33396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33397 if test "x$test_cygdrive_prefix" = x; then 33398 # As a simple fix, exclude /usr/bin since it's not a real path. 33399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33401 # a path prefixed by /cygdrive for fixpath to work. 33402 new_path="$CYGWIN_ROOT_PATH$input_path" 33403 fi 33404 fi 33405 33406 33407 if test "x$path" != "x$new_path"; then 33408 ipath="$new_path" 33409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33410 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33411 fi 33412 33413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33414 33415 path="$ipath" 33416 has_colon=`$ECHO $path | $GREP ^.:` 33417 new_path="$path" 33418 if test "x$has_colon" = x; then 33419 # Not in mixed or Windows style, start by that. 33420 new_path=`cmd //c echo $path` 33421 fi 33422 33423 33424 input_path="$new_path" 33425 # Check if we need to convert this using DOS-style short mode. If the path 33426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33427 # take no chances and rewrite it. 33428 # Note: m4 eats our [], so we need to use [ and ] instead. 33429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33430 if test "x$has_forbidden_chars" != x; then 33431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33433 fi 33434 33435 33436 windows_path="$new_path" 33437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33438 unix_path=`$CYGPATH -u "$windows_path"` 33439 new_path="$unix_path" 33440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33442 new_path="$unix_path" 33443 fi 33444 33445 if test "x$path" != "x$new_path"; then 33446 ipath="$new_path" 33447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33448 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33449 fi 33450 33451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33453 33454 else 33455 # We're on a unix platform. Hooray! :) 33456 path="$ipath" 33457 has_space=`$ECHO "$path" | $GREP " "` 33458 if test "x$has_space" != x; then 33459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33460 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33462 fi 33463 33464 # Use eval to expand a potential ~ 33465 eval path="$path" 33466 if test ! -f "$path" && test ! -d "$path"; then 33467 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33468 fi 33469 33470 if test -d "$path"; then 33471 ipath="`cd "$path"; $THEPWDCMD -L`" 33472 else 33473 dir="`$DIRNAME "$path"`" 33474 base="`$BASENAME "$path"`" 33475 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33476 fi 33477 fi 33478 fi 33479 33480 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33481 fi 33482 IFS=";" 33483 fi 33484 done 33485 # Convert VS_LIB into SYSROOT_LDFLAGS 33486 for i in $VS_LIB; do 33487 libpath=$i 33488 # Only process non-empty elements 33489 if test "x$libpath" != x; then 33490 IFS="$OLDIFS" 33491 # Check that directory exists before calling fixup_path 33492 testpath=$libpath 33493 33494 windows_path="$testpath" 33495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33496 unix_path=`$CYGPATH -u "$windows_path"` 33497 testpath="$unix_path" 33498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33500 testpath="$unix_path" 33501 fi 33502 33503 if test -d "$testpath"; then 33504 33505 # Only process if variable expands to non-empty 33506 33507 if test "x$libpath" != x; then 33508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33509 33510 # Input might be given as Windows format, start by converting to 33511 # unix format. 33512 path="$libpath" 33513 new_path=`$CYGPATH -u "$path"` 33514 33515 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33516 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33517 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33518 # "foo.exe" is OK but "foo" is an error. 33519 # 33520 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33521 # It is also a way to make sure we got the proper file name for the real test later on. 33522 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33523 if test "x$test_shortpath" = x; then 33524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33525 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33526 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33527 fi 33528 33529 # Call helper function which possibly converts this using DOS-style short mode. 33530 # If so, the updated path is stored in $new_path. 33531 33532 input_path="$new_path" 33533 # Check if we need to convert this using DOS-style short mode. If the path 33534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33535 # take no chances and rewrite it. 33536 # Note: m4 eats our [], so we need to use [ and ] instead. 33537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33538 if test "x$has_forbidden_chars" != x; then 33539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33543 # Going to short mode and back again did indeed matter. Since short mode is 33544 # case insensitive, let's make it lowercase to improve readability. 33545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33546 # Now convert it back to Unix-style (cygpath) 33547 input_path=`$CYGPATH -u "$shortmode_path"` 33548 new_path="$input_path" 33549 fi 33550 fi 33551 33552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33553 if test "x$test_cygdrive_prefix" = x; then 33554 # As a simple fix, exclude /usr/bin since it's not a real path. 33555 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33557 # a path prefixed by /cygdrive for fixpath to work. 33558 new_path="$CYGWIN_ROOT_PATH$input_path" 33559 fi 33560 fi 33561 33562 33563 if test "x$path" != "x$new_path"; then 33564 libpath="$new_path" 33565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33566 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33567 fi 33568 33569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33570 33571 path="$libpath" 33572 has_colon=`$ECHO $path | $GREP ^.:` 33573 new_path="$path" 33574 if test "x$has_colon" = x; then 33575 # Not in mixed or Windows style, start by that. 33576 new_path=`cmd //c echo $path` 33577 fi 33578 33579 33580 input_path="$new_path" 33581 # Check if we need to convert this using DOS-style short mode. If the path 33582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33583 # take no chances and rewrite it. 33584 # Note: m4 eats our [], so we need to use [ and ] instead. 33585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33586 if test "x$has_forbidden_chars" != x; then 33587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33588 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33589 fi 33590 33591 33592 windows_path="$new_path" 33593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33594 unix_path=`$CYGPATH -u "$windows_path"` 33595 new_path="$unix_path" 33596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33598 new_path="$unix_path" 33599 fi 33600 33601 if test "x$path" != "x$new_path"; then 33602 libpath="$new_path" 33603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33604 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33605 fi 33606 33607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33609 33610 else 33611 # We're on a unix platform. Hooray! :) 33612 path="$libpath" 33613 has_space=`$ECHO "$path" | $GREP " "` 33614 if test "x$has_space" != x; then 33615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33616 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33617 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33618 fi 33619 33620 # Use eval to expand a potential ~ 33621 eval path="$path" 33622 if test ! -f "$path" && test ! -d "$path"; then 33623 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33624 fi 33625 33626 if test -d "$path"; then 33627 libpath="`cd "$path"; $THEPWDCMD -L`" 33628 else 33629 dir="`$DIRNAME "$path"`" 33630 base="`$BASENAME "$path"`" 33631 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33632 fi 33633 fi 33634 fi 33635 33636 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33637 fi 33638 IFS=";" 33639 fi 33640 done 33641 IFS="$OLDIFS" 33642 fi 33643 else 33644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33645 $as_echo "not found" >&6; } 33646 33647 if test "x$VS_ENV_CMD" = x; then 33648 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33649 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33650 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33651 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33652 else 33653 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33654 $as_echo "$as_me: Running the extraction script failed." >&6;} 33655 fi 33656 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33657 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33658 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33659 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33660 as_fn_error $? "Cannot continue" "$LINENO" 5 33661 fi 33662 33663 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33664 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33665 PATH="$VS_PATH" 33666 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33667 export INCLUDE="$VS_INCLUDE" 33668 export LIB="$VS_LIB" 33669 else 33670 if test "x$XCODE_VERSION_OUTPUT" != x; then 33671 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33672 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33673 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33674 else 33675 # Currently we do not define this for other toolchains. This might change as the need arise. 33676 TOOLCHAIN_VERSION= 33677 fi 33678 fi 33679 33680 33681 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33682 # override all other locations. 33683 if test "x$TOOLCHAIN_PATH" != x; then 33684 PATH=$TOOLCHAIN_PATH:$PATH 33685 fi 33686 33687 33688 # 33689 # Setup the compilers (CC and CXX) 33690 # 33691 33692 COMPILER_NAME=C 33693 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33694 33695 if test "x$CC" != x; then 33696 # User has supplied compiler name already, always let that override. 33697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33698 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33699 if test "x`basename $CC`" = "x$CC"; then 33700 # A command without a complete path is provided, search $PATH. 33701 33702 for ac_prog in $CC 33703 do 33704 # Extract the first word of "$ac_prog", so it can be a program name with args. 33705 set dummy $ac_prog; ac_word=$2 33706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33707 $as_echo_n "checking for $ac_word... " >&6; } 33708 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33709 $as_echo_n "(cached) " >&6 33710 else 33711 case $POTENTIAL_CC in 33712 [\\/]* | ?:[\\/]*) 33713 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33714 ;; 33715 *) 33716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33717 for as_dir in $PATH 33718 do 33719 IFS=$as_save_IFS 33720 test -z "$as_dir" && as_dir=. 33721 for ac_exec_ext in '' $ac_executable_extensions; do 33722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33723 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33725 break 2 33726 fi 33727 done 33728 done 33729 IFS=$as_save_IFS 33730 33731 ;; 33732 esac 33733 fi 33734 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33735 if test -n "$POTENTIAL_CC"; then 33736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33737 $as_echo "$POTENTIAL_CC" >&6; } 33738 else 33739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33740 $as_echo "no" >&6; } 33741 fi 33742 33743 33744 test -n "$POTENTIAL_CC" && break 33745 done 33746 33747 if test "x$POTENTIAL_CC" != x; then 33748 CC=$POTENTIAL_CC 33749 else 33750 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33751 fi 33752 else 33753 # Otherwise it might already be a complete path 33754 if test ! -x "$CC"; then 33755 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33756 fi 33757 fi 33758 else 33759 # No user supplied value. Locate compiler ourselves. 33760 33761 # If we are cross compiling, assume cross compilation tools follows the 33762 # cross compilation standard where they are prefixed with the autoconf 33763 # standard name for the target. For example the binary 33764 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33765 # If we are not cross compiling, then the default compiler name will be 33766 # used. 33767 33768 CC= 33769 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33770 # before checking the rest of the PATH. 33771 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33772 # step, this should not be necessary. 33773 if test -n "$TOOLCHAIN_PATH"; then 33774 PATH_save="$PATH" 33775 PATH="$TOOLCHAIN_PATH" 33776 if test -n "$ac_tool_prefix"; then 33777 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33778 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33780 $as_echo_n "checking for $ac_word... " >&6; } 33781 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33782 $as_echo_n "(cached) " >&6 33783 else 33784 case $TOOLCHAIN_PATH_CC in 33785 [\\/]* | ?:[\\/]*) 33786 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33787 ;; 33788 *) 33789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33790 for as_dir in $PATH 33791 do 33792 IFS=$as_save_IFS 33793 test -z "$as_dir" && as_dir=. 33794 for ac_exec_ext in '' $ac_executable_extensions; do 33795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33796 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33798 break 2 33799 fi 33800 done 33801 done 33802 IFS=$as_save_IFS 33803 33804 ;; 33805 esac 33806 fi 33807 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33808 if test -n "$TOOLCHAIN_PATH_CC"; then 33809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33810 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33811 else 33812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33813 $as_echo "no" >&6; } 33814 fi 33815 33816 33817 fi 33818 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33819 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33820 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33821 set dummy $SEARCH_LIST; ac_word=$2 33822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33823 $as_echo_n "checking for $ac_word... " >&6; } 33824 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33825 $as_echo_n "(cached) " >&6 33826 else 33827 case $ac_pt_TOOLCHAIN_PATH_CC in 33828 [\\/]* | ?:[\\/]*) 33829 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33830 ;; 33831 *) 33832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33833 for as_dir in $PATH 33834 do 33835 IFS=$as_save_IFS 33836 test -z "$as_dir" && as_dir=. 33837 for ac_exec_ext in '' $ac_executable_extensions; do 33838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33839 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33841 break 2 33842 fi 33843 done 33844 done 33845 IFS=$as_save_IFS 33846 33847 ;; 33848 esac 33849 fi 33850 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33851 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33853 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33854 else 33855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33856 $as_echo "no" >&6; } 33857 fi 33858 33859 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33860 TOOLCHAIN_PATH_CC="" 33861 else 33862 case $cross_compiling:$ac_tool_warned in 33863 yes:) 33864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33866 ac_tool_warned=yes ;; 33867 esac 33868 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 33869 fi 33870 else 33871 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 33872 fi 33873 33874 CC=$TOOLCHAIN_PATH_CC 33875 PATH="$PATH_save" 33876 fi 33877 33878 # AC_PATH_TOOL can't be run multiple times with the same variable, 33879 # so create a new name for this run. 33880 if test "x$CC" = x; then 33881 if test -n "$ac_tool_prefix"; then 33882 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33883 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33885 $as_echo_n "checking for $ac_word... " >&6; } 33886 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33887 $as_echo_n "(cached) " >&6 33888 else 33889 case $POTENTIAL_CC in 33890 [\\/]* | ?:[\\/]*) 33891 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33892 ;; 33893 *) 33894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33895 for as_dir in $PATH 33896 do 33897 IFS=$as_save_IFS 33898 test -z "$as_dir" && as_dir=. 33899 for ac_exec_ext in '' $ac_executable_extensions; do 33900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33901 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33903 break 2 33904 fi 33905 done 33906 done 33907 IFS=$as_save_IFS 33908 33909 ;; 33910 esac 33911 fi 33912 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33913 if test -n "$POTENTIAL_CC"; then 33914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33915 $as_echo "$POTENTIAL_CC" >&6; } 33916 else 33917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33918 $as_echo "no" >&6; } 33919 fi 33920 33921 33922 fi 33923 if test -z "$ac_cv_path_POTENTIAL_CC"; then 33924 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 33925 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33926 set dummy $SEARCH_LIST; ac_word=$2 33927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33928 $as_echo_n "checking for $ac_word... " >&6; } 33929 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 33930 $as_echo_n "(cached) " >&6 33931 else 33932 case $ac_pt_POTENTIAL_CC in 33933 [\\/]* | ?:[\\/]*) 33934 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 33935 ;; 33936 *) 33937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33938 for as_dir in $PATH 33939 do 33940 IFS=$as_save_IFS 33941 test -z "$as_dir" && as_dir=. 33942 for ac_exec_ext in '' $ac_executable_extensions; do 33943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33944 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33946 break 2 33947 fi 33948 done 33949 done 33950 IFS=$as_save_IFS 33951 33952 ;; 33953 esac 33954 fi 33955 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 33956 if test -n "$ac_pt_POTENTIAL_CC"; then 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 33958 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 33959 else 33960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33961 $as_echo "no" >&6; } 33962 fi 33963 33964 if test "x$ac_pt_POTENTIAL_CC" = x; then 33965 POTENTIAL_CC="" 33966 else 33967 case $cross_compiling:$ac_tool_warned in 33968 yes:) 33969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33971 ac_tool_warned=yes ;; 33972 esac 33973 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 33974 fi 33975 else 33976 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 33977 fi 33978 33979 CC=$POTENTIAL_CC 33980 fi 33981 33982 if test "x$CC" = x; then 33983 33984 # Print a helpful message on how to acquire the necessary build dependency. 33985 # devkit is the help tag: freetype, cups, alsa etc 33986 MISSING_DEPENDENCY=devkit 33987 33988 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33989 cygwin_help $MISSING_DEPENDENCY 33990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33991 msys_help $MISSING_DEPENDENCY 33992 else 33993 PKGHANDLER_COMMAND= 33994 33995 case $PKGHANDLER in 33996 apt-get) 33997 apt_help $MISSING_DEPENDENCY ;; 33998 yum) 33999 yum_help $MISSING_DEPENDENCY ;; 34000 brew) 34001 brew_help $MISSING_DEPENDENCY ;; 34002 port) 34003 port_help $MISSING_DEPENDENCY ;; 34004 pkgutil) 34005 pkgutil_help $MISSING_DEPENDENCY ;; 34006 pkgadd) 34007 pkgadd_help $MISSING_DEPENDENCY ;; 34008 esac 34009 34010 if test "x$PKGHANDLER_COMMAND" != x; then 34011 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 34012 fi 34013 fi 34014 34015 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 34016 fi 34017 fi 34018 34019 # Now we have a compiler binary in CC. Make sure it's okay. 34020 34021 # Only process if variable expands to non-empty 34022 34023 if test "x$CC" != x; then 34024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34025 34026 # First separate the path from the arguments. This will split at the first 34027 # space. 34028 complete="$CC" 34029 path="${complete%% *}" 34030 tmp="$complete EOL" 34031 arguments="${tmp#* }" 34032 34033 # Input might be given as Windows format, start by converting to 34034 # unix format. 34035 new_path=`$CYGPATH -u "$path"` 34036 34037 # Now try to locate executable using which 34038 new_path=`$WHICH "$new_path" 2> /dev/null` 34039 # bat and cmd files are not always considered executable in cygwin causing which 34040 # to not find them 34041 if test "x$new_path" = x \ 34042 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34043 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34044 new_path=`$CYGPATH -u "$path"` 34045 fi 34046 if test "x$new_path" = x; then 34047 # Oops. Which didn't find the executable. 34048 # The splitting of arguments from the executable at a space might have been incorrect, 34049 # since paths with space are more likely in Windows. Give it another try with the whole 34050 # argument. 34051 path="$complete" 34052 arguments="EOL" 34053 new_path=`$CYGPATH -u "$path"` 34054 new_path=`$WHICH "$new_path" 2> /dev/null` 34055 # bat and cmd files are not always considered executable in cygwin causing which 34056 # to not find them 34057 if test "x$new_path" = x \ 34058 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34059 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34060 new_path=`$CYGPATH -u "$path"` 34061 fi 34062 if test "x$new_path" = x; then 34063 # It's still not found. Now this is an unrecoverable error. 34064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34065 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34066 has_space=`$ECHO "$complete" | $GREP " "` 34067 if test "x$has_space" != x; then 34068 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34069 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34070 fi 34071 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34072 fi 34073 fi 34074 34075 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34076 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34077 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34078 # "foo.exe" is OK but "foo" is an error. 34079 # 34080 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34081 # It is also a way to make sure we got the proper file name for the real test later on. 34082 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34083 if test "x$test_shortpath" = x; then 34084 # Short path failed, file does not exist as specified. 34085 # Try adding .exe or .cmd 34086 if test -f "${new_path}.exe"; then 34087 input_to_shortpath="${new_path}.exe" 34088 elif test -f "${new_path}.cmd"; then 34089 input_to_shortpath="${new_path}.cmd" 34090 else 34091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34092 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34093 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34094 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34095 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34096 fi 34097 else 34098 input_to_shortpath="$new_path" 34099 fi 34100 34101 # Call helper function which possibly converts this using DOS-style short mode. 34102 # If so, the updated path is stored in $new_path. 34103 new_path="$input_to_shortpath" 34104 34105 input_path="$input_to_shortpath" 34106 # Check if we need to convert this using DOS-style short mode. If the path 34107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34108 # take no chances and rewrite it. 34109 # Note: m4 eats our [], so we need to use [ and ] instead. 34110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34111 if test "x$has_forbidden_chars" != x; then 34112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34113 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34114 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34115 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34116 # Going to short mode and back again did indeed matter. Since short mode is 34117 # case insensitive, let's make it lowercase to improve readability. 34118 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34119 # Now convert it back to Unix-style (cygpath) 34120 input_path=`$CYGPATH -u "$shortmode_path"` 34121 new_path="$input_path" 34122 fi 34123 fi 34124 34125 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34126 if test "x$test_cygdrive_prefix" = x; then 34127 # As a simple fix, exclude /usr/bin since it's not a real path. 34128 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34129 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34130 # a path prefixed by /cygdrive for fixpath to work. 34131 new_path="$CYGWIN_ROOT_PATH$input_path" 34132 fi 34133 fi 34134 34135 # remove trailing .exe if any 34136 new_path="${new_path/%.exe/}" 34137 34138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34139 34140 # First separate the path from the arguments. This will split at the first 34141 # space. 34142 complete="$CC" 34143 path="${complete%% *}" 34144 tmp="$complete EOL" 34145 arguments="${tmp#* }" 34146 34147 # Input might be given as Windows format, start by converting to 34148 # unix format. 34149 new_path="$path" 34150 34151 windows_path="$new_path" 34152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34153 unix_path=`$CYGPATH -u "$windows_path"` 34154 new_path="$unix_path" 34155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34157 new_path="$unix_path" 34158 fi 34159 34160 34161 # Now try to locate executable using which 34162 new_path=`$WHICH "$new_path" 2> /dev/null` 34163 34164 if test "x$new_path" = x; then 34165 # Oops. Which didn't find the executable. 34166 # The splitting of arguments from the executable at a space might have been incorrect, 34167 # since paths with space are more likely in Windows. Give it another try with the whole 34168 # argument. 34169 path="$complete" 34170 arguments="EOL" 34171 new_path="$path" 34172 34173 windows_path="$new_path" 34174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34175 unix_path=`$CYGPATH -u "$windows_path"` 34176 new_path="$unix_path" 34177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34179 new_path="$unix_path" 34180 fi 34181 34182 34183 new_path=`$WHICH "$new_path" 2> /dev/null` 34184 # bat and cmd files are not always considered executable in MSYS causing which 34185 # to not find them 34186 if test "x$new_path" = x \ 34187 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34188 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34189 new_path="$path" 34190 34191 windows_path="$new_path" 34192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34193 unix_path=`$CYGPATH -u "$windows_path"` 34194 new_path="$unix_path" 34195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34197 new_path="$unix_path" 34198 fi 34199 34200 fi 34201 34202 if test "x$new_path" = x; then 34203 # It's still not found. Now this is an unrecoverable error. 34204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34205 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34206 has_space=`$ECHO "$complete" | $GREP " "` 34207 if test "x$has_space" != x; then 34208 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34209 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34210 fi 34211 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34212 fi 34213 fi 34214 34215 # Now new_path has a complete unix path to the binary 34216 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34217 # Keep paths in /bin as-is, but remove trailing .exe if any 34218 new_path="${new_path/%.exe/}" 34219 # Do not save /bin paths to all_fixpath_prefixes! 34220 else 34221 # Not in mixed or Windows style, start by that. 34222 new_path=`cmd //c echo $new_path` 34223 34224 input_path="$new_path" 34225 # Check if we need to convert this using DOS-style short mode. If the path 34226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34227 # take no chances and rewrite it. 34228 # Note: m4 eats our [], so we need to use [ and ] instead. 34229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34230 if test "x$has_forbidden_chars" != x; then 34231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34232 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34233 fi 34234 34235 # Output is in $new_path 34236 34237 windows_path="$new_path" 34238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34239 unix_path=`$CYGPATH -u "$windows_path"` 34240 new_path="$unix_path" 34241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34243 new_path="$unix_path" 34244 fi 34245 34246 # remove trailing .exe if any 34247 new_path="${new_path/%.exe/}" 34248 34249 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34250 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34251 fi 34252 34253 else 34254 # We're on a unix platform. Hooray! :) 34255 # First separate the path from the arguments. This will split at the first 34256 # space. 34257 complete="$CC" 34258 path="${complete%% *}" 34259 tmp="$complete EOL" 34260 arguments="${tmp#* }" 34261 34262 # Cannot rely on the command "which" here since it doesn't always work. 34263 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34264 if test -z "$is_absolute_path"; then 34265 # Path to executable is not absolute. Find it. 34266 IFS_save="$IFS" 34267 IFS=: 34268 for p in $PATH; do 34269 if test -f "$p/$path" && test -x "$p/$path"; then 34270 new_path="$p/$path" 34271 break 34272 fi 34273 done 34274 IFS="$IFS_save" 34275 else 34276 # This is an absolute path, we can use it without further modifications. 34277 new_path="$path" 34278 fi 34279 34280 if test "x$new_path" = x; then 34281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34282 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34283 has_space=`$ECHO "$complete" | $GREP " "` 34284 if test "x$has_space" != x; then 34285 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34286 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34287 fi 34288 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34289 fi 34290 fi 34291 34292 # Now join together the path and the arguments once again 34293 if test "x$arguments" != xEOL; then 34294 new_complete="$new_path ${arguments% *}" 34295 else 34296 new_complete="$new_path" 34297 fi 34298 34299 if test "x$complete" != "x$new_complete"; then 34300 CC="$new_complete" 34301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34302 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34303 fi 34304 fi 34305 34306 TEST_COMPILER="$CC" 34307 34308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34309 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34310 SYMLINK_ORIGINAL="$TEST_COMPILER" 34311 34312 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34313 # Follow a chain of symbolic links. Use readlink 34314 # where it exists, else fall back to horribly 34315 # complicated shell code. 34316 if test "x$READLINK_TESTED" != yes; then 34317 # On MacOSX there is a readlink tool with a different 34318 # purpose than the GNU readlink tool. Check the found readlink. 34319 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34320 if test "x$ISGNU" = x; then 34321 # A readlink that we do not know how to use. 34322 # Are there other non-GNU readlinks out there? 34323 READLINK_TESTED=yes 34324 READLINK= 34325 fi 34326 fi 34327 34328 if test "x$READLINK" != x; then 34329 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34330 else 34331 # Save the current directory for restoring afterwards 34332 STARTDIR=$PWD 34333 COUNTER=0 34334 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34335 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34336 cd $sym_link_dir 34337 # Use -P flag to resolve symlinks in directories. 34338 cd `$THEPWDCMD -P` 34339 sym_link_dir=`$THEPWDCMD -P` 34340 # Resolve file symlinks 34341 while test $COUNTER -lt 20; do 34342 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34343 if test "x$ISLINK" == x; then 34344 # This is not a symbolic link! We are done! 34345 break 34346 fi 34347 # Again resolve directory symlinks since the target of the just found 34348 # link could be in a different directory 34349 cd `$DIRNAME $ISLINK` 34350 sym_link_dir=`$THEPWDCMD -P` 34351 sym_link_file=`$BASENAME $ISLINK` 34352 let COUNTER=COUNTER+1 34353 done 34354 cd $STARTDIR 34355 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34356 fi 34357 fi 34358 34359 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34361 $as_echo "no symlink" >&6; } 34362 else 34363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34364 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34365 34366 # We can't handle ccache by gcc wrappers, since we need to know if we're 34367 # using ccache. Instead ccache usage must be controlled by a configure option. 34368 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34369 if test "x$COMPILER_BASENAME" = "xccache"; then 34370 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34371 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34372 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34373 fi 34374 fi 34375 34376 34377 COMPILER=$CC 34378 COMPILER_NAME=$COMPILER_NAME 34379 34380 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34381 # cc -V output typically looks like 34382 # cc: Sun C 5.12 Linux_i386 2011/11/16 34383 # or 34384 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34385 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34386 # Check that this is likely to be the Solaris Studio cc. 34387 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34388 if test $? -ne 0; then 34389 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34390 { $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 34391 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34392 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34393 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34394 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34395 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34396 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34397 fi 34398 # Remove usage instructions (if present), and 34399 # collapse compiler output into a single line 34400 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34401 $SED -e 's/ *[Uu]sage:.*//'` 34402 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34403 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34404 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34405 # xlc -qversion output typically looks like 34406 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34407 # Version: 11.01.0000.0015 34408 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34409 # Check that this is likely to be the IBM XL C compiler. 34410 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34411 if test $? -ne 0; then 34412 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34413 { $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 34414 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34415 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34416 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34417 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34418 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34419 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34420 fi 34421 # Collapse compiler output into a single line 34422 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34423 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34424 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34425 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34426 # There is no specific version flag, but all output starts with a version string. 34427 # First line typically looks something like: 34428 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34429 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34430 # Check that this is likely to be Microsoft CL.EXE. 34431 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34432 if test $? -ne 0; then 34433 { $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 34434 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34435 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34436 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34437 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34438 fi 34439 # Collapse compiler output into a single line 34440 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34441 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34442 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34443 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34444 # gcc --version output typically looks like 34445 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34446 # Copyright (C) 2013 Free Software Foundation, Inc. 34447 # This is free software; see the source for copying conditions. There is NO 34448 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34449 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34450 # Check that this is likely to be GCC. 34451 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34452 if test $? -ne 0; then 34453 { $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 34454 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34455 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34456 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34457 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34458 fi 34459 # Remove Copyright and legalese from version string, and 34460 # collapse into a single line 34461 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34462 $SED -e 's/ *Copyright .*//'` 34463 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34464 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34465 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34466 # clang --version output typically looks like 34467 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34468 # clang version 3.3 (tags/RELEASE_33/final) 34469 # or 34470 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34471 # Target: x86_64-pc-linux-gnu 34472 # Thread model: posix 34473 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34474 # Check that this is likely to be clang 34475 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34476 if test $? -ne 0; then 34477 { $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 34478 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34479 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34480 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34481 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34482 fi 34483 # Collapse compiler output into a single line 34484 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34485 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34486 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34487 else 34488 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34489 fi 34490 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34491 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34492 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34493 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34494 34495 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34496 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34497 34498 34499 # Now that we have resolved CC ourself, let autoconf have its go at it 34500 ac_ext=c 34501 ac_cpp='$CPP $CPPFLAGS' 34502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34504 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34505 if test -n "$ac_tool_prefix"; then 34506 for ac_prog in $CC 34507 do 34508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34511 $as_echo_n "checking for $ac_word... " >&6; } 34512 if ${ac_cv_prog_CC+:} false; then : 34513 $as_echo_n "(cached) " >&6 34514 else 34515 if test -n "$CC"; then 34516 ac_cv_prog_CC="$CC" # Let the user override the test. 34517 else 34518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34519 for as_dir in $PATH 34520 do 34521 IFS=$as_save_IFS 34522 test -z "$as_dir" && as_dir=. 34523 for ac_exec_ext in '' $ac_executable_extensions; do 34524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34525 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34527 break 2 34528 fi 34529 done 34530 done 34531 IFS=$as_save_IFS 34532 34533 fi 34534 fi 34535 CC=$ac_cv_prog_CC 34536 if test -n "$CC"; then 34537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34538 $as_echo "$CC" >&6; } 34539 else 34540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34541 $as_echo "no" >&6; } 34542 fi 34543 34544 34545 test -n "$CC" && break 34546 done 34547 fi 34548 if test -z "$CC"; then 34549 ac_ct_CC=$CC 34550 for ac_prog in $CC 34551 do 34552 # Extract the first word of "$ac_prog", so it can be a program name with args. 34553 set dummy $ac_prog; ac_word=$2 34554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34555 $as_echo_n "checking for $ac_word... " >&6; } 34556 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34557 $as_echo_n "(cached) " >&6 34558 else 34559 if test -n "$ac_ct_CC"; then 34560 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34561 else 34562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34563 for as_dir in $PATH 34564 do 34565 IFS=$as_save_IFS 34566 test -z "$as_dir" && as_dir=. 34567 for ac_exec_ext in '' $ac_executable_extensions; do 34568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34569 ac_cv_prog_ac_ct_CC="$ac_prog" 34570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34571 break 2 34572 fi 34573 done 34574 done 34575 IFS=$as_save_IFS 34576 34577 fi 34578 fi 34579 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34580 if test -n "$ac_ct_CC"; then 34581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34582 $as_echo "$ac_ct_CC" >&6; } 34583 else 34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34585 $as_echo "no" >&6; } 34586 fi 34587 34588 34589 test -n "$ac_ct_CC" && break 34590 done 34591 34592 if test "x$ac_ct_CC" = x; then 34593 CC="" 34594 else 34595 case $cross_compiling:$ac_tool_warned in 34596 yes:) 34597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34599 ac_tool_warned=yes ;; 34600 esac 34601 CC=$ac_ct_CC 34602 fi 34603 fi 34604 34605 34606 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34608 as_fn_error $? "no acceptable C compiler found in \$PATH 34609 See \`config.log' for more details" "$LINENO" 5; } 34610 34611 # Provide some information about the compiler. 34612 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34613 set X $ac_compile 34614 ac_compiler=$2 34615 for ac_option in --version -v -V -qversion; do 34616 { { ac_try="$ac_compiler $ac_option >&5" 34617 case "(($ac_try" in 34618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34619 *) ac_try_echo=$ac_try;; 34620 esac 34621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34622 $as_echo "$ac_try_echo"; } >&5 34623 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34624 ac_status=$? 34625 if test -s conftest.err; then 34626 sed '10a\ 34627 ... rest of stderr output deleted ... 34628 10q' conftest.err >conftest.er1 34629 cat conftest.er1 >&5 34630 fi 34631 rm -f conftest.er1 conftest.err 34632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34633 test $ac_status = 0; } 34634 done 34635 34636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34637 /* end confdefs.h. */ 34638 34639 int 34640 main () 34641 { 34642 34643 ; 34644 return 0; 34645 } 34646 _ACEOF 34647 ac_clean_files_save=$ac_clean_files 34648 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34649 # Try to create an executable without -o first, disregard a.out. 34650 # It will help us diagnose broken compilers, and finding out an intuition 34651 # of exeext. 34652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34653 $as_echo_n "checking whether the C compiler works... " >&6; } 34654 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34655 34656 # The possible output files: 34657 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34658 34659 ac_rmfiles= 34660 for ac_file in $ac_files 34661 do 34662 case $ac_file in 34663 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34664 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34665 esac 34666 done 34667 rm -f $ac_rmfiles 34668 34669 if { { ac_try="$ac_link_default" 34670 case "(($ac_try" in 34671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34672 *) ac_try_echo=$ac_try;; 34673 esac 34674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34675 $as_echo "$ac_try_echo"; } >&5 34676 (eval "$ac_link_default") 2>&5 34677 ac_status=$? 34678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34679 test $ac_status = 0; }; then : 34680 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34681 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34682 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34683 # so that the user can short-circuit this test for compilers unknown to 34684 # Autoconf. 34685 for ac_file in $ac_files '' 34686 do 34687 test -f "$ac_file" || continue 34688 case $ac_file in 34689 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34690 ;; 34691 [ab].out ) 34692 # We found the default executable, but exeext='' is most 34693 # certainly right. 34694 break;; 34695 *.* ) 34696 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34697 then :; else 34698 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34699 fi 34700 # We set ac_cv_exeext here because the later test for it is not 34701 # safe: cross compilers may not add the suffix if given an `-o' 34702 # argument, so we may need to know it at that point already. 34703 # Even if this section looks crufty: it has the advantage of 34704 # actually working. 34705 break;; 34706 * ) 34707 break;; 34708 esac 34709 done 34710 test "$ac_cv_exeext" = no && ac_cv_exeext= 34711 34712 else 34713 ac_file='' 34714 fi 34715 if test -z "$ac_file"; then : 34716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34717 $as_echo "no" >&6; } 34718 $as_echo "$as_me: failed program was:" >&5 34719 sed 's/^/| /' conftest.$ac_ext >&5 34720 34721 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34723 as_fn_error 77 "C compiler cannot create executables 34724 See \`config.log' for more details" "$LINENO" 5; } 34725 else 34726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34727 $as_echo "yes" >&6; } 34728 fi 34729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34730 $as_echo_n "checking for C compiler default output file name... " >&6; } 34731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34732 $as_echo "$ac_file" >&6; } 34733 ac_exeext=$ac_cv_exeext 34734 34735 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34736 ac_clean_files=$ac_clean_files_save 34737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34738 $as_echo_n "checking for suffix of executables... " >&6; } 34739 if { { ac_try="$ac_link" 34740 case "(($ac_try" in 34741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34742 *) ac_try_echo=$ac_try;; 34743 esac 34744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34745 $as_echo "$ac_try_echo"; } >&5 34746 (eval "$ac_link") 2>&5 34747 ac_status=$? 34748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34749 test $ac_status = 0; }; then : 34750 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34751 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34752 # work properly (i.e., refer to `conftest.exe'), while it won't with 34753 # `rm'. 34754 for ac_file in conftest.exe conftest conftest.*; do 34755 test -f "$ac_file" || continue 34756 case $ac_file in 34757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34758 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34759 break;; 34760 * ) break;; 34761 esac 34762 done 34763 else 34764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34766 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34767 See \`config.log' for more details" "$LINENO" 5; } 34768 fi 34769 rm -f conftest conftest$ac_cv_exeext 34770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34771 $as_echo "$ac_cv_exeext" >&6; } 34772 34773 rm -f conftest.$ac_ext 34774 EXEEXT=$ac_cv_exeext 34775 ac_exeext=$EXEEXT 34776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34777 /* end confdefs.h. */ 34778 #include <stdio.h> 34779 int 34780 main () 34781 { 34782 FILE *f = fopen ("conftest.out", "w"); 34783 return ferror (f) || fclose (f) != 0; 34784 34785 ; 34786 return 0; 34787 } 34788 _ACEOF 34789 ac_clean_files="$ac_clean_files conftest.out" 34790 # Check that the compiler produces executables we can run. If not, either 34791 # the compiler is broken, or we cross compile. 34792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34793 $as_echo_n "checking whether we are cross compiling... " >&6; } 34794 if test "$cross_compiling" != yes; then 34795 { { ac_try="$ac_link" 34796 case "(($ac_try" in 34797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34798 *) ac_try_echo=$ac_try;; 34799 esac 34800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34801 $as_echo "$ac_try_echo"; } >&5 34802 (eval "$ac_link") 2>&5 34803 ac_status=$? 34804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34805 test $ac_status = 0; } 34806 if { ac_try='./conftest$ac_cv_exeext' 34807 { { case "(($ac_try" in 34808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34809 *) ac_try_echo=$ac_try;; 34810 esac 34811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34812 $as_echo "$ac_try_echo"; } >&5 34813 (eval "$ac_try") 2>&5 34814 ac_status=$? 34815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34816 test $ac_status = 0; }; }; then 34817 cross_compiling=no 34818 else 34819 if test "$cross_compiling" = maybe; then 34820 cross_compiling=yes 34821 else 34822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34824 as_fn_error $? "cannot run C compiled programs. 34825 If you meant to cross compile, use \`--host'. 34826 See \`config.log' for more details" "$LINENO" 5; } 34827 fi 34828 fi 34829 fi 34830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34831 $as_echo "$cross_compiling" >&6; } 34832 34833 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34834 ac_clean_files=$ac_clean_files_save 34835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34836 $as_echo_n "checking for suffix of object files... " >&6; } 34837 if ${ac_cv_objext+:} false; then : 34838 $as_echo_n "(cached) " >&6 34839 else 34840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34841 /* end confdefs.h. */ 34842 34843 int 34844 main () 34845 { 34846 34847 ; 34848 return 0; 34849 } 34850 _ACEOF 34851 rm -f conftest.o conftest.obj 34852 if { { ac_try="$ac_compile" 34853 case "(($ac_try" in 34854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34855 *) ac_try_echo=$ac_try;; 34856 esac 34857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34858 $as_echo "$ac_try_echo"; } >&5 34859 (eval "$ac_compile") 2>&5 34860 ac_status=$? 34861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34862 test $ac_status = 0; }; then : 34863 for ac_file in conftest.o conftest.obj conftest.*; do 34864 test -f "$ac_file" || continue; 34865 case $ac_file in 34866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34867 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34868 break;; 34869 esac 34870 done 34871 else 34872 $as_echo "$as_me: failed program was:" >&5 34873 sed 's/^/| /' conftest.$ac_ext >&5 34874 34875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34877 as_fn_error $? "cannot compute suffix of object files: cannot compile 34878 See \`config.log' for more details" "$LINENO" 5; } 34879 fi 34880 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34881 fi 34882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34883 $as_echo "$ac_cv_objext" >&6; } 34884 OBJEXT=$ac_cv_objext 34885 ac_objext=$OBJEXT 34886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34887 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34888 if ${ac_cv_c_compiler_gnu+:} false; then : 34889 $as_echo_n "(cached) " >&6 34890 else 34891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34892 /* end confdefs.h. */ 34893 34894 int 34895 main () 34896 { 34897 #ifndef __GNUC__ 34898 choke me 34899 #endif 34900 34901 ; 34902 return 0; 34903 } 34904 _ACEOF 34905 if ac_fn_c_try_compile "$LINENO"; then : 34906 ac_compiler_gnu=yes 34907 else 34908 ac_compiler_gnu=no 34909 fi 34910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34911 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34912 34913 fi 34914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34915 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34916 if test $ac_compiler_gnu = yes; then 34917 GCC=yes 34918 else 34919 GCC= 34920 fi 34921 ac_test_CFLAGS=${CFLAGS+set} 34922 ac_save_CFLAGS=$CFLAGS 34923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34924 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34925 if ${ac_cv_prog_cc_g+:} false; then : 34926 $as_echo_n "(cached) " >&6 34927 else 34928 ac_save_c_werror_flag=$ac_c_werror_flag 34929 ac_c_werror_flag=yes 34930 ac_cv_prog_cc_g=no 34931 CFLAGS="-g" 34932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34933 /* end confdefs.h. */ 34934 34935 int 34936 main () 34937 { 34938 34939 ; 34940 return 0; 34941 } 34942 _ACEOF 34943 if ac_fn_c_try_compile "$LINENO"; then : 34944 ac_cv_prog_cc_g=yes 34945 else 34946 CFLAGS="" 34947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34948 /* end confdefs.h. */ 34949 34950 int 34951 main () 34952 { 34953 34954 ; 34955 return 0; 34956 } 34957 _ACEOF 34958 if ac_fn_c_try_compile "$LINENO"; then : 34959 34960 else 34961 ac_c_werror_flag=$ac_save_c_werror_flag 34962 CFLAGS="-g" 34963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34964 /* end confdefs.h. */ 34965 34966 int 34967 main () 34968 { 34969 34970 ; 34971 return 0; 34972 } 34973 _ACEOF 34974 if ac_fn_c_try_compile "$LINENO"; then : 34975 ac_cv_prog_cc_g=yes 34976 fi 34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34978 fi 34979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34980 fi 34981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34982 ac_c_werror_flag=$ac_save_c_werror_flag 34983 fi 34984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34985 $as_echo "$ac_cv_prog_cc_g" >&6; } 34986 if test "$ac_test_CFLAGS" = set; then 34987 CFLAGS=$ac_save_CFLAGS 34988 elif test $ac_cv_prog_cc_g = yes; then 34989 if test "$GCC" = yes; then 34990 CFLAGS="-g -O2" 34991 else 34992 CFLAGS="-g" 34993 fi 34994 else 34995 if test "$GCC" = yes; then 34996 CFLAGS="-O2" 34997 else 34998 CFLAGS= 34999 fi 35000 fi 35001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 35002 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 35003 if ${ac_cv_prog_cc_c89+:} false; then : 35004 $as_echo_n "(cached) " >&6 35005 else 35006 ac_cv_prog_cc_c89=no 35007 ac_save_CC=$CC 35008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35009 /* end confdefs.h. */ 35010 #include <stdarg.h> 35011 #include <stdio.h> 35012 struct stat; 35013 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 35014 struct buf { int x; }; 35015 FILE * (*rcsopen) (struct buf *, struct stat *, int); 35016 static char *e (p, i) 35017 char **p; 35018 int i; 35019 { 35020 return p[i]; 35021 } 35022 static char *f (char * (*g) (char **, int), char **p, ...) 35023 { 35024 char *s; 35025 va_list v; 35026 va_start (v,p); 35027 s = g (p, va_arg (v,int)); 35028 va_end (v); 35029 return s; 35030 } 35031 35032 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 35033 function prototypes and stuff, but not '\xHH' hex character constants. 35034 These don't provoke an error unfortunately, instead are silently treated 35035 as 'x'. The following induces an error, until -std is added to get 35036 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 35037 array size at least. It's necessary to write '\x00'==0 to get something 35038 that's true only with -std. */ 35039 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 35040 35041 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 35042 inside strings and character constants. */ 35043 #define FOO(x) 'x' 35044 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 35045 35046 int test (int i, double x); 35047 struct s1 {int (*f) (int a);}; 35048 struct s2 {int (*f) (double a);}; 35049 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 35050 int argc; 35051 char **argv; 35052 int 35053 main () 35054 { 35055 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 35056 ; 35057 return 0; 35058 } 35059 _ACEOF 35060 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 35061 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 35062 do 35063 CC="$ac_save_CC $ac_arg" 35064 if ac_fn_c_try_compile "$LINENO"; then : 35065 ac_cv_prog_cc_c89=$ac_arg 35066 fi 35067 rm -f core conftest.err conftest.$ac_objext 35068 test "x$ac_cv_prog_cc_c89" != "xno" && break 35069 done 35070 rm -f conftest.$ac_ext 35071 CC=$ac_save_CC 35072 35073 fi 35074 # AC_CACHE_VAL 35075 case "x$ac_cv_prog_cc_c89" in 35076 x) 35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 35078 $as_echo "none needed" >&6; } ;; 35079 xno) 35080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 35081 $as_echo "unsupported" >&6; } ;; 35082 *) 35083 CC="$CC $ac_cv_prog_cc_c89" 35084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 35085 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 35086 esac 35087 if test "x$ac_cv_prog_cc_c89" != xno; then : 35088 35089 fi 35090 35091 ac_ext=cpp 35092 ac_cpp='$CXXCPP $CPPFLAGS' 35093 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35094 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35095 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35096 35097 35098 35099 COMPILER_NAME=C++ 35100 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35101 35102 if test "x$CXX" != x; then 35103 # User has supplied compiler name already, always let that override. 35104 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35105 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35106 if test "x`basename $CXX`" = "x$CXX"; then 35107 # A command without a complete path is provided, search $PATH. 35108 35109 for ac_prog in $CXX 35110 do 35111 # Extract the first word of "$ac_prog", so it can be a program name with args. 35112 set dummy $ac_prog; ac_word=$2 35113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35114 $as_echo_n "checking for $ac_word... " >&6; } 35115 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35116 $as_echo_n "(cached) " >&6 35117 else 35118 case $POTENTIAL_CXX in 35119 [\\/]* | ?:[\\/]*) 35120 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35121 ;; 35122 *) 35123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35124 for as_dir in $PATH 35125 do 35126 IFS=$as_save_IFS 35127 test -z "$as_dir" && as_dir=. 35128 for ac_exec_ext in '' $ac_executable_extensions; do 35129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35130 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35132 break 2 35133 fi 35134 done 35135 done 35136 IFS=$as_save_IFS 35137 35138 ;; 35139 esac 35140 fi 35141 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35142 if test -n "$POTENTIAL_CXX"; then 35143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35144 $as_echo "$POTENTIAL_CXX" >&6; } 35145 else 35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35147 $as_echo "no" >&6; } 35148 fi 35149 35150 35151 test -n "$POTENTIAL_CXX" && break 35152 done 35153 35154 if test "x$POTENTIAL_CXX" != x; then 35155 CXX=$POTENTIAL_CXX 35156 else 35157 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35158 fi 35159 else 35160 # Otherwise it might already be a complete path 35161 if test ! -x "$CXX"; then 35162 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35163 fi 35164 fi 35165 else 35166 # No user supplied value. Locate compiler ourselves. 35167 35168 # If we are cross compiling, assume cross compilation tools follows the 35169 # cross compilation standard where they are prefixed with the autoconf 35170 # standard name for the target. For example the binary 35171 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35172 # If we are not cross compiling, then the default compiler name will be 35173 # used. 35174 35175 CXX= 35176 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35177 # before checking the rest of the PATH. 35178 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35179 # step, this should not be necessary. 35180 if test -n "$TOOLCHAIN_PATH"; then 35181 PATH_save="$PATH" 35182 PATH="$TOOLCHAIN_PATH" 35183 if test -n "$ac_tool_prefix"; then 35184 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35185 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35187 $as_echo_n "checking for $ac_word... " >&6; } 35188 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35189 $as_echo_n "(cached) " >&6 35190 else 35191 case $TOOLCHAIN_PATH_CXX in 35192 [\\/]* | ?:[\\/]*) 35193 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35194 ;; 35195 *) 35196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35197 for as_dir in $PATH 35198 do 35199 IFS=$as_save_IFS 35200 test -z "$as_dir" && as_dir=. 35201 for ac_exec_ext in '' $ac_executable_extensions; do 35202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35203 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35205 break 2 35206 fi 35207 done 35208 done 35209 IFS=$as_save_IFS 35210 35211 ;; 35212 esac 35213 fi 35214 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35215 if test -n "$TOOLCHAIN_PATH_CXX"; then 35216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35217 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35218 else 35219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35220 $as_echo "no" >&6; } 35221 fi 35222 35223 35224 fi 35225 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35226 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35227 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35228 set dummy $SEARCH_LIST; ac_word=$2 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35230 $as_echo_n "checking for $ac_word... " >&6; } 35231 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35232 $as_echo_n "(cached) " >&6 35233 else 35234 case $ac_pt_TOOLCHAIN_PATH_CXX in 35235 [\\/]* | ?:[\\/]*) 35236 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35237 ;; 35238 *) 35239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35240 for as_dir in $PATH 35241 do 35242 IFS=$as_save_IFS 35243 test -z "$as_dir" && as_dir=. 35244 for ac_exec_ext in '' $ac_executable_extensions; do 35245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35246 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35248 break 2 35249 fi 35250 done 35251 done 35252 IFS=$as_save_IFS 35253 35254 ;; 35255 esac 35256 fi 35257 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35258 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35260 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35261 else 35262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35263 $as_echo "no" >&6; } 35264 fi 35265 35266 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35267 TOOLCHAIN_PATH_CXX="" 35268 else 35269 case $cross_compiling:$ac_tool_warned in 35270 yes:) 35271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35273 ac_tool_warned=yes ;; 35274 esac 35275 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35276 fi 35277 else 35278 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35279 fi 35280 35281 CXX=$TOOLCHAIN_PATH_CXX 35282 PATH="$PATH_save" 35283 fi 35284 35285 # AC_PATH_TOOL can't be run multiple times with the same variable, 35286 # so create a new name for this run. 35287 if test "x$CXX" = x; then 35288 if test -n "$ac_tool_prefix"; then 35289 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35290 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35292 $as_echo_n "checking for $ac_word... " >&6; } 35293 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35294 $as_echo_n "(cached) " >&6 35295 else 35296 case $POTENTIAL_CXX in 35297 [\\/]* | ?:[\\/]*) 35298 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35299 ;; 35300 *) 35301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35302 for as_dir in $PATH 35303 do 35304 IFS=$as_save_IFS 35305 test -z "$as_dir" && as_dir=. 35306 for ac_exec_ext in '' $ac_executable_extensions; do 35307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35308 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35310 break 2 35311 fi 35312 done 35313 done 35314 IFS=$as_save_IFS 35315 35316 ;; 35317 esac 35318 fi 35319 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35320 if test -n "$POTENTIAL_CXX"; then 35321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35322 $as_echo "$POTENTIAL_CXX" >&6; } 35323 else 35324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35325 $as_echo "no" >&6; } 35326 fi 35327 35328 35329 fi 35330 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35331 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35332 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35333 set dummy $SEARCH_LIST; ac_word=$2 35334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35335 $as_echo_n "checking for $ac_word... " >&6; } 35336 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35337 $as_echo_n "(cached) " >&6 35338 else 35339 case $ac_pt_POTENTIAL_CXX in 35340 [\\/]* | ?:[\\/]*) 35341 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35342 ;; 35343 *) 35344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35345 for as_dir in $PATH 35346 do 35347 IFS=$as_save_IFS 35348 test -z "$as_dir" && as_dir=. 35349 for ac_exec_ext in '' $ac_executable_extensions; do 35350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35351 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35353 break 2 35354 fi 35355 done 35356 done 35357 IFS=$as_save_IFS 35358 35359 ;; 35360 esac 35361 fi 35362 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35363 if test -n "$ac_pt_POTENTIAL_CXX"; then 35364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35365 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35366 else 35367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35368 $as_echo "no" >&6; } 35369 fi 35370 35371 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35372 POTENTIAL_CXX="" 35373 else 35374 case $cross_compiling:$ac_tool_warned in 35375 yes:) 35376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35378 ac_tool_warned=yes ;; 35379 esac 35380 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35381 fi 35382 else 35383 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35384 fi 35385 35386 CXX=$POTENTIAL_CXX 35387 fi 35388 35389 if test "x$CXX" = x; then 35390 35391 # Print a helpful message on how to acquire the necessary build dependency. 35392 # devkit is the help tag: freetype, cups, alsa etc 35393 MISSING_DEPENDENCY=devkit 35394 35395 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35396 cygwin_help $MISSING_DEPENDENCY 35397 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35398 msys_help $MISSING_DEPENDENCY 35399 else 35400 PKGHANDLER_COMMAND= 35401 35402 case $PKGHANDLER in 35403 apt-get) 35404 apt_help $MISSING_DEPENDENCY ;; 35405 yum) 35406 yum_help $MISSING_DEPENDENCY ;; 35407 brew) 35408 brew_help $MISSING_DEPENDENCY ;; 35409 port) 35410 port_help $MISSING_DEPENDENCY ;; 35411 pkgutil) 35412 pkgutil_help $MISSING_DEPENDENCY ;; 35413 pkgadd) 35414 pkgadd_help $MISSING_DEPENDENCY ;; 35415 esac 35416 35417 if test "x$PKGHANDLER_COMMAND" != x; then 35418 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35419 fi 35420 fi 35421 35422 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35423 fi 35424 fi 35425 35426 # Now we have a compiler binary in CXX. Make sure it's okay. 35427 35428 # Only process if variable expands to non-empty 35429 35430 if test "x$CXX" != x; then 35431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35432 35433 # First separate the path from the arguments. This will split at the first 35434 # space. 35435 complete="$CXX" 35436 path="${complete%% *}" 35437 tmp="$complete EOL" 35438 arguments="${tmp#* }" 35439 35440 # Input might be given as Windows format, start by converting to 35441 # unix format. 35442 new_path=`$CYGPATH -u "$path"` 35443 35444 # Now try to locate executable using which 35445 new_path=`$WHICH "$new_path" 2> /dev/null` 35446 # bat and cmd files are not always considered executable in cygwin causing which 35447 # to not find them 35448 if test "x$new_path" = x \ 35449 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35450 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35451 new_path=`$CYGPATH -u "$path"` 35452 fi 35453 if test "x$new_path" = x; then 35454 # Oops. Which didn't find the executable. 35455 # The splitting of arguments from the executable at a space might have been incorrect, 35456 # since paths with space are more likely in Windows. Give it another try with the whole 35457 # argument. 35458 path="$complete" 35459 arguments="EOL" 35460 new_path=`$CYGPATH -u "$path"` 35461 new_path=`$WHICH "$new_path" 2> /dev/null` 35462 # bat and cmd files are not always considered executable in cygwin causing which 35463 # to not find them 35464 if test "x$new_path" = x \ 35465 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35466 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35467 new_path=`$CYGPATH -u "$path"` 35468 fi 35469 if test "x$new_path" = x; then 35470 # It's still not found. Now this is an unrecoverable error. 35471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35472 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35473 has_space=`$ECHO "$complete" | $GREP " "` 35474 if test "x$has_space" != x; then 35475 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35476 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35477 fi 35478 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35479 fi 35480 fi 35481 35482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35485 # "foo.exe" is OK but "foo" is an error. 35486 # 35487 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35488 # It is also a way to make sure we got the proper file name for the real test later on. 35489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35490 if test "x$test_shortpath" = x; then 35491 # Short path failed, file does not exist as specified. 35492 # Try adding .exe or .cmd 35493 if test -f "${new_path}.exe"; then 35494 input_to_shortpath="${new_path}.exe" 35495 elif test -f "${new_path}.cmd"; then 35496 input_to_shortpath="${new_path}.cmd" 35497 else 35498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35499 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35500 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35501 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35502 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35503 fi 35504 else 35505 input_to_shortpath="$new_path" 35506 fi 35507 35508 # Call helper function which possibly converts this using DOS-style short mode. 35509 # If so, the updated path is stored in $new_path. 35510 new_path="$input_to_shortpath" 35511 35512 input_path="$input_to_shortpath" 35513 # Check if we need to convert this using DOS-style short mode. If the path 35514 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35515 # take no chances and rewrite it. 35516 # Note: m4 eats our [], so we need to use [ and ] instead. 35517 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35518 if test "x$has_forbidden_chars" != x; then 35519 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35520 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35521 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35522 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35523 # Going to short mode and back again did indeed matter. Since short mode is 35524 # case insensitive, let's make it lowercase to improve readability. 35525 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35526 # Now convert it back to Unix-style (cygpath) 35527 input_path=`$CYGPATH -u "$shortmode_path"` 35528 new_path="$input_path" 35529 fi 35530 fi 35531 35532 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35533 if test "x$test_cygdrive_prefix" = x; then 35534 # As a simple fix, exclude /usr/bin since it's not a real path. 35535 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35536 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35537 # a path prefixed by /cygdrive for fixpath to work. 35538 new_path="$CYGWIN_ROOT_PATH$input_path" 35539 fi 35540 fi 35541 35542 # remove trailing .exe if any 35543 new_path="${new_path/%.exe/}" 35544 35545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35546 35547 # First separate the path from the arguments. This will split at the first 35548 # space. 35549 complete="$CXX" 35550 path="${complete%% *}" 35551 tmp="$complete EOL" 35552 arguments="${tmp#* }" 35553 35554 # Input might be given as Windows format, start by converting to 35555 # unix format. 35556 new_path="$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 35568 # Now try to locate executable using which 35569 new_path=`$WHICH "$new_path" 2> /dev/null` 35570 35571 if test "x$new_path" = x; then 35572 # Oops. Which didn't find the executable. 35573 # The splitting of arguments from the executable at a space might have been incorrect, 35574 # since paths with space are more likely in Windows. Give it another try with the whole 35575 # argument. 35576 path="$complete" 35577 arguments="EOL" 35578 new_path="$path" 35579 35580 windows_path="$new_path" 35581 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35582 unix_path=`$CYGPATH -u "$windows_path"` 35583 new_path="$unix_path" 35584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35585 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35586 new_path="$unix_path" 35587 fi 35588 35589 35590 new_path=`$WHICH "$new_path" 2> /dev/null` 35591 # bat and cmd files are not always considered executable in MSYS causing which 35592 # to not find them 35593 if test "x$new_path" = x \ 35594 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35595 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35596 new_path="$path" 35597 35598 windows_path="$new_path" 35599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35600 unix_path=`$CYGPATH -u "$windows_path"` 35601 new_path="$unix_path" 35602 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35603 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35604 new_path="$unix_path" 35605 fi 35606 35607 fi 35608 35609 if test "x$new_path" = x; then 35610 # It's still not found. Now this is an unrecoverable error. 35611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35612 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35613 has_space=`$ECHO "$complete" | $GREP " "` 35614 if test "x$has_space" != x; then 35615 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35616 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35617 fi 35618 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35619 fi 35620 fi 35621 35622 # Now new_path has a complete unix path to the binary 35623 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35624 # Keep paths in /bin as-is, but remove trailing .exe if any 35625 new_path="${new_path/%.exe/}" 35626 # Do not save /bin paths to all_fixpath_prefixes! 35627 else 35628 # Not in mixed or Windows style, start by that. 35629 new_path=`cmd //c echo $new_path` 35630 35631 input_path="$new_path" 35632 # Check if we need to convert this using DOS-style short mode. If the path 35633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35634 # take no chances and rewrite it. 35635 # Note: m4 eats our [], so we need to use [ and ] instead. 35636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35637 if test "x$has_forbidden_chars" != x; then 35638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35640 fi 35641 35642 # Output is in $new_path 35643 35644 windows_path="$new_path" 35645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35646 unix_path=`$CYGPATH -u "$windows_path"` 35647 new_path="$unix_path" 35648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35649 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35650 new_path="$unix_path" 35651 fi 35652 35653 # remove trailing .exe if any 35654 new_path="${new_path/%.exe/}" 35655 35656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35658 fi 35659 35660 else 35661 # We're on a unix platform. Hooray! :) 35662 # First separate the path from the arguments. This will split at the first 35663 # space. 35664 complete="$CXX" 35665 path="${complete%% *}" 35666 tmp="$complete EOL" 35667 arguments="${tmp#* }" 35668 35669 # Cannot rely on the command "which" here since it doesn't always work. 35670 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35671 if test -z "$is_absolute_path"; then 35672 # Path to executable is not absolute. Find it. 35673 IFS_save="$IFS" 35674 IFS=: 35675 for p in $PATH; do 35676 if test -f "$p/$path" && test -x "$p/$path"; then 35677 new_path="$p/$path" 35678 break 35679 fi 35680 done 35681 IFS="$IFS_save" 35682 else 35683 # This is an absolute path, we can use it without further modifications. 35684 new_path="$path" 35685 fi 35686 35687 if test "x$new_path" = x; then 35688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35689 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35690 has_space=`$ECHO "$complete" | $GREP " "` 35691 if test "x$has_space" != x; then 35692 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35693 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35694 fi 35695 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35696 fi 35697 fi 35698 35699 # Now join together the path and the arguments once again 35700 if test "x$arguments" != xEOL; then 35701 new_complete="$new_path ${arguments% *}" 35702 else 35703 new_complete="$new_path" 35704 fi 35705 35706 if test "x$complete" != "x$new_complete"; then 35707 CXX="$new_complete" 35708 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35709 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35710 fi 35711 fi 35712 35713 TEST_COMPILER="$CXX" 35714 35715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35716 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35717 SYMLINK_ORIGINAL="$TEST_COMPILER" 35718 35719 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35720 # Follow a chain of symbolic links. Use readlink 35721 # where it exists, else fall back to horribly 35722 # complicated shell code. 35723 if test "x$READLINK_TESTED" != yes; then 35724 # On MacOSX there is a readlink tool with a different 35725 # purpose than the GNU readlink tool. Check the found readlink. 35726 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35727 if test "x$ISGNU" = x; then 35728 # A readlink that we do not know how to use. 35729 # Are there other non-GNU readlinks out there? 35730 READLINK_TESTED=yes 35731 READLINK= 35732 fi 35733 fi 35734 35735 if test "x$READLINK" != x; then 35736 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35737 else 35738 # Save the current directory for restoring afterwards 35739 STARTDIR=$PWD 35740 COUNTER=0 35741 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35742 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35743 cd $sym_link_dir 35744 # Use -P flag to resolve symlinks in directories. 35745 cd `$THEPWDCMD -P` 35746 sym_link_dir=`$THEPWDCMD -P` 35747 # Resolve file symlinks 35748 while test $COUNTER -lt 20; do 35749 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35750 if test "x$ISLINK" == x; then 35751 # This is not a symbolic link! We are done! 35752 break 35753 fi 35754 # Again resolve directory symlinks since the target of the just found 35755 # link could be in a different directory 35756 cd `$DIRNAME $ISLINK` 35757 sym_link_dir=`$THEPWDCMD -P` 35758 sym_link_file=`$BASENAME $ISLINK` 35759 let COUNTER=COUNTER+1 35760 done 35761 cd $STARTDIR 35762 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35763 fi 35764 fi 35765 35766 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35768 $as_echo "no symlink" >&6; } 35769 else 35770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35771 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35772 35773 # We can't handle ccache by gcc wrappers, since we need to know if we're 35774 # using ccache. Instead ccache usage must be controlled by a configure option. 35775 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35776 if test "x$COMPILER_BASENAME" = "xccache"; then 35777 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35778 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35779 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35780 fi 35781 fi 35782 35783 35784 COMPILER=$CXX 35785 COMPILER_NAME=$COMPILER_NAME 35786 35787 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35788 # cc -V output typically looks like 35789 # cc: Sun C 5.12 Linux_i386 2011/11/16 35790 # or 35791 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35792 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35793 # Check that this is likely to be the Solaris Studio cc. 35794 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35795 if test $? -ne 0; then 35796 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35797 { $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 35798 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35799 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35800 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35801 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35802 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35803 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35804 fi 35805 # Remove usage instructions (if present), and 35806 # collapse compiler output into a single line 35807 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35808 $SED -e 's/ *[Uu]sage:.*//'` 35809 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35810 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35811 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35812 # xlc -qversion output typically looks like 35813 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35814 # Version: 11.01.0000.0015 35815 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35816 # Check that this is likely to be the IBM XL C compiler. 35817 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35818 if test $? -ne 0; then 35819 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35820 { $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 35821 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35822 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35823 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35824 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35825 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35826 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35827 fi 35828 # Collapse compiler output into a single line 35829 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35830 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35831 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35832 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35833 # There is no specific version flag, but all output starts with a version string. 35834 # First line typically looks something like: 35835 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35836 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35837 # Check that this is likely to be Microsoft CL.EXE. 35838 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35839 if test $? -ne 0; then 35840 { $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 35841 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35842 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35843 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35844 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35845 fi 35846 # Collapse compiler output into a single line 35847 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35848 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35849 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35850 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35851 # gcc --version output typically looks like 35852 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35853 # Copyright (C) 2013 Free Software Foundation, Inc. 35854 # This is free software; see the source for copying conditions. There is NO 35855 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35856 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35857 # Check that this is likely to be GCC. 35858 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35859 if test $? -ne 0; then 35860 { $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 35861 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35862 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35863 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35864 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35865 fi 35866 # Remove Copyright and legalese from version string, and 35867 # collapse into a single line 35868 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35869 $SED -e 's/ *Copyright .*//'` 35870 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35871 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35872 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35873 # clang --version output typically looks like 35874 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35875 # clang version 3.3 (tags/RELEASE_33/final) 35876 # or 35877 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35878 # Target: x86_64-pc-linux-gnu 35879 # Thread model: posix 35880 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35881 # Check that this is likely to be clang 35882 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35883 if test $? -ne 0; then 35884 { $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 35885 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35886 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35887 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35888 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35889 fi 35890 # Collapse compiler output into a single line 35891 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35892 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35893 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35894 else 35895 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35896 fi 35897 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35898 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35899 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35900 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35901 35902 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35903 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35904 35905 35906 # Now that we have resolved CXX ourself, let autoconf have its go at it 35907 ac_ext=cpp 35908 ac_cpp='$CXXCPP $CPPFLAGS' 35909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35912 if test -z "$CXX"; then 35913 if test -n "$CCC"; then 35914 CXX=$CCC 35915 else 35916 if test -n "$ac_tool_prefix"; then 35917 for ac_prog in $CXX 35918 do 35919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35922 $as_echo_n "checking for $ac_word... " >&6; } 35923 if ${ac_cv_prog_CXX+:} false; then : 35924 $as_echo_n "(cached) " >&6 35925 else 35926 if test -n "$CXX"; then 35927 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35928 else 35929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35930 for as_dir in $PATH 35931 do 35932 IFS=$as_save_IFS 35933 test -z "$as_dir" && as_dir=. 35934 for ac_exec_ext in '' $ac_executable_extensions; do 35935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35936 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35938 break 2 35939 fi 35940 done 35941 done 35942 IFS=$as_save_IFS 35943 35944 fi 35945 fi 35946 CXX=$ac_cv_prog_CXX 35947 if test -n "$CXX"; then 35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35949 $as_echo "$CXX" >&6; } 35950 else 35951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35952 $as_echo "no" >&6; } 35953 fi 35954 35955 35956 test -n "$CXX" && break 35957 done 35958 fi 35959 if test -z "$CXX"; then 35960 ac_ct_CXX=$CXX 35961 for ac_prog in $CXX 35962 do 35963 # Extract the first word of "$ac_prog", so it can be a program name with args. 35964 set dummy $ac_prog; ac_word=$2 35965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35966 $as_echo_n "checking for $ac_word... " >&6; } 35967 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35968 $as_echo_n "(cached) " >&6 35969 else 35970 if test -n "$ac_ct_CXX"; then 35971 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35972 else 35973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35974 for as_dir in $PATH 35975 do 35976 IFS=$as_save_IFS 35977 test -z "$as_dir" && as_dir=. 35978 for ac_exec_ext in '' $ac_executable_extensions; do 35979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35980 ac_cv_prog_ac_ct_CXX="$ac_prog" 35981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35982 break 2 35983 fi 35984 done 35985 done 35986 IFS=$as_save_IFS 35987 35988 fi 35989 fi 35990 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35991 if test -n "$ac_ct_CXX"; then 35992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35993 $as_echo "$ac_ct_CXX" >&6; } 35994 else 35995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35996 $as_echo "no" >&6; } 35997 fi 35998 35999 36000 test -n "$ac_ct_CXX" && break 36001 done 36002 36003 if test "x$ac_ct_CXX" = x; then 36004 CXX="g++" 36005 else 36006 case $cross_compiling:$ac_tool_warned in 36007 yes:) 36008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36010 ac_tool_warned=yes ;; 36011 esac 36012 CXX=$ac_ct_CXX 36013 fi 36014 fi 36015 36016 fi 36017 fi 36018 # Provide some information about the compiler. 36019 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 36020 set X $ac_compile 36021 ac_compiler=$2 36022 for ac_option in --version -v -V -qversion; do 36023 { { ac_try="$ac_compiler $ac_option >&5" 36024 case "(($ac_try" in 36025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 36026 *) ac_try_echo=$ac_try;; 36027 esac 36028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 36029 $as_echo "$ac_try_echo"; } >&5 36030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 36031 ac_status=$? 36032 if test -s conftest.err; then 36033 sed '10a\ 36034 ... rest of stderr output deleted ... 36035 10q' conftest.err >conftest.er1 36036 cat conftest.er1 >&5 36037 fi 36038 rm -f conftest.er1 conftest.err 36039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 36040 test $ac_status = 0; } 36041 done 36042 36043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 36044 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 36045 if ${ac_cv_cxx_compiler_gnu+:} false; then : 36046 $as_echo_n "(cached) " >&6 36047 else 36048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36049 /* end confdefs.h. */ 36050 36051 int 36052 main () 36053 { 36054 #ifndef __GNUC__ 36055 choke me 36056 #endif 36057 36058 ; 36059 return 0; 36060 } 36061 _ACEOF 36062 if ac_fn_cxx_try_compile "$LINENO"; then : 36063 ac_compiler_gnu=yes 36064 else 36065 ac_compiler_gnu=no 36066 fi 36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36068 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 36069 36070 fi 36071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 36072 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 36073 if test $ac_compiler_gnu = yes; then 36074 GXX=yes 36075 else 36076 GXX= 36077 fi 36078 ac_test_CXXFLAGS=${CXXFLAGS+set} 36079 ac_save_CXXFLAGS=$CXXFLAGS 36080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 36081 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 36082 if ${ac_cv_prog_cxx_g+:} false; then : 36083 $as_echo_n "(cached) " >&6 36084 else 36085 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 36086 ac_cxx_werror_flag=yes 36087 ac_cv_prog_cxx_g=no 36088 CXXFLAGS="-g" 36089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36090 /* end confdefs.h. */ 36091 36092 int 36093 main () 36094 { 36095 36096 ; 36097 return 0; 36098 } 36099 _ACEOF 36100 if ac_fn_cxx_try_compile "$LINENO"; then : 36101 ac_cv_prog_cxx_g=yes 36102 else 36103 CXXFLAGS="" 36104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36105 /* end confdefs.h. */ 36106 36107 int 36108 main () 36109 { 36110 36111 ; 36112 return 0; 36113 } 36114 _ACEOF 36115 if ac_fn_cxx_try_compile "$LINENO"; then : 36116 36117 else 36118 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36119 CXXFLAGS="-g" 36120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36121 /* end confdefs.h. */ 36122 36123 int 36124 main () 36125 { 36126 36127 ; 36128 return 0; 36129 } 36130 _ACEOF 36131 if ac_fn_cxx_try_compile "$LINENO"; then : 36132 ac_cv_prog_cxx_g=yes 36133 fi 36134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36135 fi 36136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36137 fi 36138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36139 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36140 fi 36141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36142 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36143 if test "$ac_test_CXXFLAGS" = set; then 36144 CXXFLAGS=$ac_save_CXXFLAGS 36145 elif test $ac_cv_prog_cxx_g = yes; then 36146 if test "$GXX" = yes; then 36147 CXXFLAGS="-g -O2" 36148 else 36149 CXXFLAGS="-g" 36150 fi 36151 else 36152 if test "$GXX" = yes; then 36153 CXXFLAGS="-O2" 36154 else 36155 CXXFLAGS= 36156 fi 36157 fi 36158 ac_ext=cpp 36159 ac_cpp='$CXXCPP $CPPFLAGS' 36160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36163 36164 36165 # This is the compiler version number on the form X.Y[.Z] 36166 36167 36168 36169 36170 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36172 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36174 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36175 fi 36176 36177 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36178 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 36180 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36181 fi 36182 36183 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 36185 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36186 fi 36187 36188 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36189 36190 36191 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36192 36193 36194 36195 36196 36197 36198 36199 36200 36201 36202 36203 36204 36205 36206 36207 36208 36209 36210 36211 36212 36213 36214 36215 36216 36217 36218 36219 36220 36221 36222 36223 36224 36225 36226 36227 36228 36229 36230 36231 36232 36233 36234 36235 36236 36237 36238 36239 36240 36241 # Execute function body 36242 36243 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36244 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36245 36246 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36247 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36248 fi 36249 36250 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36251 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36252 fi 36253 36254 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36255 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36256 36257 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36258 : 36259 36260 else 36261 : 36262 36263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&5 36264 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36265 36266 36267 fi 36268 36269 36270 36271 36272 36273 36274 36275 36276 36277 36278 36279 36280 36281 36282 fi 36283 36284 # 36285 # Setup the preprocessor (CPP and CXXCPP) 36286 # 36287 ac_ext=c 36288 ac_cpp='$CPP $CPPFLAGS' 36289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36291 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36293 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36294 # On Suns, sometimes $CPP names a directory. 36295 if test -n "$CPP" && test -d "$CPP"; then 36296 CPP= 36297 fi 36298 if test -z "$CPP"; then 36299 if ${ac_cv_prog_CPP+:} false; then : 36300 $as_echo_n "(cached) " >&6 36301 else 36302 # Double quotes because CPP needs to be expanded 36303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36304 do 36305 ac_preproc_ok=false 36306 for ac_c_preproc_warn_flag in '' yes 36307 do 36308 # Use a header file that comes with gcc, so configuring glibc 36309 # with a fresh cross-compiler works. 36310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36311 # <limits.h> exists even on freestanding compilers. 36312 # On the NeXT, cc -E runs the code through the compiler's parser, 36313 # not just through cpp. "Syntax error" is here to catch this case. 36314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36315 /* end confdefs.h. */ 36316 #ifdef __STDC__ 36317 # include <limits.h> 36318 #else 36319 # include <assert.h> 36320 #endif 36321 Syntax error 36322 _ACEOF 36323 if ac_fn_c_try_cpp "$LINENO"; then : 36324 36325 else 36326 # Broken: fails on valid input. 36327 continue 36328 fi 36329 rm -f conftest.err conftest.i conftest.$ac_ext 36330 36331 # OK, works on sane cases. Now check whether nonexistent headers 36332 # can be detected and how. 36333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36334 /* end confdefs.h. */ 36335 #include <ac_nonexistent.h> 36336 _ACEOF 36337 if ac_fn_c_try_cpp "$LINENO"; then : 36338 # Broken: success on invalid input. 36339 continue 36340 else 36341 # Passes both tests. 36342 ac_preproc_ok=: 36343 break 36344 fi 36345 rm -f conftest.err conftest.i conftest.$ac_ext 36346 36347 done 36348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36349 rm -f conftest.i conftest.err conftest.$ac_ext 36350 if $ac_preproc_ok; then : 36351 break 36352 fi 36353 36354 done 36355 ac_cv_prog_CPP=$CPP 36356 36357 fi 36358 CPP=$ac_cv_prog_CPP 36359 else 36360 ac_cv_prog_CPP=$CPP 36361 fi 36362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36363 $as_echo "$CPP" >&6; } 36364 ac_preproc_ok=false 36365 for ac_c_preproc_warn_flag in '' yes 36366 do 36367 # Use a header file that comes with gcc, so configuring glibc 36368 # with a fresh cross-compiler works. 36369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36370 # <limits.h> exists even on freestanding compilers. 36371 # On the NeXT, cc -E runs the code through the compiler's parser, 36372 # not just through cpp. "Syntax error" is here to catch this case. 36373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36374 /* end confdefs.h. */ 36375 #ifdef __STDC__ 36376 # include <limits.h> 36377 #else 36378 # include <assert.h> 36379 #endif 36380 Syntax error 36381 _ACEOF 36382 if ac_fn_c_try_cpp "$LINENO"; then : 36383 36384 else 36385 # Broken: fails on valid input. 36386 continue 36387 fi 36388 rm -f conftest.err conftest.i conftest.$ac_ext 36389 36390 # OK, works on sane cases. Now check whether nonexistent headers 36391 # can be detected and how. 36392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36393 /* end confdefs.h. */ 36394 #include <ac_nonexistent.h> 36395 _ACEOF 36396 if ac_fn_c_try_cpp "$LINENO"; then : 36397 # Broken: success on invalid input. 36398 continue 36399 else 36400 # Passes both tests. 36401 ac_preproc_ok=: 36402 break 36403 fi 36404 rm -f conftest.err conftest.i conftest.$ac_ext 36405 36406 done 36407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36408 rm -f conftest.i conftest.err conftest.$ac_ext 36409 if $ac_preproc_ok; then : 36410 36411 else 36412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36414 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36415 See \`config.log' for more details" "$LINENO" 5; } 36416 fi 36417 36418 ac_ext=cpp 36419 ac_cpp='$CXXCPP $CPPFLAGS' 36420 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36421 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36422 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36423 36424 36425 # Only process if variable expands to non-empty 36426 36427 if test "x$CPP" != x; then 36428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36429 36430 # First separate the path from the arguments. This will split at the first 36431 # space. 36432 complete="$CPP" 36433 path="${complete%% *}" 36434 tmp="$complete EOL" 36435 arguments="${tmp#* }" 36436 36437 # Input might be given as Windows format, start by converting to 36438 # unix format. 36439 new_path=`$CYGPATH -u "$path"` 36440 36441 # Now try to locate executable using which 36442 new_path=`$WHICH "$new_path" 2> /dev/null` 36443 # bat and cmd files are not always considered executable in cygwin causing which 36444 # to not find them 36445 if test "x$new_path" = x \ 36446 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36447 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36448 new_path=`$CYGPATH -u "$path"` 36449 fi 36450 if test "x$new_path" = x; then 36451 # Oops. Which didn't find the executable. 36452 # The splitting of arguments from the executable at a space might have been incorrect, 36453 # since paths with space are more likely in Windows. Give it another try with the whole 36454 # argument. 36455 path="$complete" 36456 arguments="EOL" 36457 new_path=`$CYGPATH -u "$path"` 36458 new_path=`$WHICH "$new_path" 2> /dev/null` 36459 # bat and cmd files are not always considered executable in cygwin causing which 36460 # to not find them 36461 if test "x$new_path" = x \ 36462 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36463 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36464 new_path=`$CYGPATH -u "$path"` 36465 fi 36466 if test "x$new_path" = x; then 36467 # It's still not found. Now this is an unrecoverable error. 36468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36469 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36470 has_space=`$ECHO "$complete" | $GREP " "` 36471 if test "x$has_space" != x; then 36472 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36473 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36474 fi 36475 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36476 fi 36477 fi 36478 36479 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36480 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36481 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36482 # "foo.exe" is OK but "foo" is an error. 36483 # 36484 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36485 # It is also a way to make sure we got the proper file name for the real test later on. 36486 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36487 if test "x$test_shortpath" = x; then 36488 # Short path failed, file does not exist as specified. 36489 # Try adding .exe or .cmd 36490 if test -f "${new_path}.exe"; then 36491 input_to_shortpath="${new_path}.exe" 36492 elif test -f "${new_path}.cmd"; then 36493 input_to_shortpath="${new_path}.cmd" 36494 else 36495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36496 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36497 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36498 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36499 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36500 fi 36501 else 36502 input_to_shortpath="$new_path" 36503 fi 36504 36505 # Call helper function which possibly converts this using DOS-style short mode. 36506 # If so, the updated path is stored in $new_path. 36507 new_path="$input_to_shortpath" 36508 36509 input_path="$input_to_shortpath" 36510 # Check if we need to convert this using DOS-style short mode. If the path 36511 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36512 # take no chances and rewrite it. 36513 # Note: m4 eats our [], so we need to use [ and ] instead. 36514 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36515 if test "x$has_forbidden_chars" != x; then 36516 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36517 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36518 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36519 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36520 # Going to short mode and back again did indeed matter. Since short mode is 36521 # case insensitive, let's make it lowercase to improve readability. 36522 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36523 # Now convert it back to Unix-style (cygpath) 36524 input_path=`$CYGPATH -u "$shortmode_path"` 36525 new_path="$input_path" 36526 fi 36527 fi 36528 36529 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36530 if test "x$test_cygdrive_prefix" = x; then 36531 # As a simple fix, exclude /usr/bin since it's not a real path. 36532 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36533 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36534 # a path prefixed by /cygdrive for fixpath to work. 36535 new_path="$CYGWIN_ROOT_PATH$input_path" 36536 fi 36537 fi 36538 36539 # remove trailing .exe if any 36540 new_path="${new_path/%.exe/}" 36541 36542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36543 36544 # First separate the path from the arguments. This will split at the first 36545 # space. 36546 complete="$CPP" 36547 path="${complete%% *}" 36548 tmp="$complete EOL" 36549 arguments="${tmp#* }" 36550 36551 # Input might be given as Windows format, start by converting to 36552 # unix format. 36553 new_path="$path" 36554 36555 windows_path="$new_path" 36556 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36557 unix_path=`$CYGPATH -u "$windows_path"` 36558 new_path="$unix_path" 36559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36560 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36561 new_path="$unix_path" 36562 fi 36563 36564 36565 # Now try to locate executable using which 36566 new_path=`$WHICH "$new_path" 2> /dev/null` 36567 36568 if test "x$new_path" = x; then 36569 # Oops. Which didn't find the executable. 36570 # The splitting of arguments from the executable at a space might have been incorrect, 36571 # since paths with space are more likely in Windows. Give it another try with the whole 36572 # argument. 36573 path="$complete" 36574 arguments="EOL" 36575 new_path="$path" 36576 36577 windows_path="$new_path" 36578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36579 unix_path=`$CYGPATH -u "$windows_path"` 36580 new_path="$unix_path" 36581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36583 new_path="$unix_path" 36584 fi 36585 36586 36587 new_path=`$WHICH "$new_path" 2> /dev/null` 36588 # bat and cmd files are not always considered executable in MSYS causing which 36589 # to not find them 36590 if test "x$new_path" = x \ 36591 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36592 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36593 new_path="$path" 36594 36595 windows_path="$new_path" 36596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36597 unix_path=`$CYGPATH -u "$windows_path"` 36598 new_path="$unix_path" 36599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36601 new_path="$unix_path" 36602 fi 36603 36604 fi 36605 36606 if test "x$new_path" = x; then 36607 # It's still not found. Now this is an unrecoverable error. 36608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36609 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36610 has_space=`$ECHO "$complete" | $GREP " "` 36611 if test "x$has_space" != x; then 36612 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36614 fi 36615 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36616 fi 36617 fi 36618 36619 # Now new_path has a complete unix path to the binary 36620 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36621 # Keep paths in /bin as-is, but remove trailing .exe if any 36622 new_path="${new_path/%.exe/}" 36623 # Do not save /bin paths to all_fixpath_prefixes! 36624 else 36625 # Not in mixed or Windows style, start by that. 36626 new_path=`cmd //c echo $new_path` 36627 36628 input_path="$new_path" 36629 # Check if we need to convert this using DOS-style short mode. If the path 36630 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36631 # take no chances and rewrite it. 36632 # Note: m4 eats our [], so we need to use [ and ] instead. 36633 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36634 if test "x$has_forbidden_chars" != x; then 36635 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36636 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36637 fi 36638 36639 # Output is in $new_path 36640 36641 windows_path="$new_path" 36642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36643 unix_path=`$CYGPATH -u "$windows_path"` 36644 new_path="$unix_path" 36645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36647 new_path="$unix_path" 36648 fi 36649 36650 # remove trailing .exe if any 36651 new_path="${new_path/%.exe/}" 36652 36653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36655 fi 36656 36657 else 36658 # We're on a unix platform. Hooray! :) 36659 # First separate the path from the arguments. This will split at the first 36660 # space. 36661 complete="$CPP" 36662 path="${complete%% *}" 36663 tmp="$complete EOL" 36664 arguments="${tmp#* }" 36665 36666 # Cannot rely on the command "which" here since it doesn't always work. 36667 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36668 if test -z "$is_absolute_path"; then 36669 # Path to executable is not absolute. Find it. 36670 IFS_save="$IFS" 36671 IFS=: 36672 for p in $PATH; do 36673 if test -f "$p/$path" && test -x "$p/$path"; then 36674 new_path="$p/$path" 36675 break 36676 fi 36677 done 36678 IFS="$IFS_save" 36679 else 36680 # This is an absolute path, we can use it without further modifications. 36681 new_path="$path" 36682 fi 36683 36684 if test "x$new_path" = x; then 36685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36686 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36687 has_space=`$ECHO "$complete" | $GREP " "` 36688 if test "x$has_space" != x; then 36689 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36690 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36691 fi 36692 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36693 fi 36694 fi 36695 36696 # Now join together the path and the arguments once again 36697 if test "x$arguments" != xEOL; then 36698 new_complete="$new_path ${arguments% *}" 36699 else 36700 new_complete="$new_path" 36701 fi 36702 36703 if test "x$complete" != "x$new_complete"; then 36704 CPP="$new_complete" 36705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36706 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36707 fi 36708 fi 36709 36710 ac_ext=cpp 36711 ac_cpp='$CXXCPP $CPPFLAGS' 36712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36716 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36717 if test -z "$CXXCPP"; then 36718 if ${ac_cv_prog_CXXCPP+:} false; then : 36719 $as_echo_n "(cached) " >&6 36720 else 36721 # Double quotes because CXXCPP needs to be expanded 36722 for CXXCPP in "$CXX -E" "/lib/cpp" 36723 do 36724 ac_preproc_ok=false 36725 for ac_cxx_preproc_warn_flag in '' yes 36726 do 36727 # Use a header file that comes with gcc, so configuring glibc 36728 # with a fresh cross-compiler works. 36729 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36730 # <limits.h> exists even on freestanding compilers. 36731 # On the NeXT, cc -E runs the code through the compiler's parser, 36732 # not just through cpp. "Syntax error" is here to catch this case. 36733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36734 /* end confdefs.h. */ 36735 #ifdef __STDC__ 36736 # include <limits.h> 36737 #else 36738 # include <assert.h> 36739 #endif 36740 Syntax error 36741 _ACEOF 36742 if ac_fn_cxx_try_cpp "$LINENO"; then : 36743 36744 else 36745 # Broken: fails on valid input. 36746 continue 36747 fi 36748 rm -f conftest.err conftest.i conftest.$ac_ext 36749 36750 # OK, works on sane cases. Now check whether nonexistent headers 36751 # can be detected and how. 36752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36753 /* end confdefs.h. */ 36754 #include <ac_nonexistent.h> 36755 _ACEOF 36756 if ac_fn_cxx_try_cpp "$LINENO"; then : 36757 # Broken: success on invalid input. 36758 continue 36759 else 36760 # Passes both tests. 36761 ac_preproc_ok=: 36762 break 36763 fi 36764 rm -f conftest.err conftest.i conftest.$ac_ext 36765 36766 done 36767 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36768 rm -f conftest.i conftest.err conftest.$ac_ext 36769 if $ac_preproc_ok; then : 36770 break 36771 fi 36772 36773 done 36774 ac_cv_prog_CXXCPP=$CXXCPP 36775 36776 fi 36777 CXXCPP=$ac_cv_prog_CXXCPP 36778 else 36779 ac_cv_prog_CXXCPP=$CXXCPP 36780 fi 36781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36782 $as_echo "$CXXCPP" >&6; } 36783 ac_preproc_ok=false 36784 for ac_cxx_preproc_warn_flag in '' yes 36785 do 36786 # Use a header file that comes with gcc, so configuring glibc 36787 # with a fresh cross-compiler works. 36788 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36789 # <limits.h> exists even on freestanding compilers. 36790 # On the NeXT, cc -E runs the code through the compiler's parser, 36791 # not just through cpp. "Syntax error" is here to catch this case. 36792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36793 /* end confdefs.h. */ 36794 #ifdef __STDC__ 36795 # include <limits.h> 36796 #else 36797 # include <assert.h> 36798 #endif 36799 Syntax error 36800 _ACEOF 36801 if ac_fn_cxx_try_cpp "$LINENO"; then : 36802 36803 else 36804 # Broken: fails on valid input. 36805 continue 36806 fi 36807 rm -f conftest.err conftest.i conftest.$ac_ext 36808 36809 # OK, works on sane cases. Now check whether nonexistent headers 36810 # can be detected and how. 36811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36812 /* end confdefs.h. */ 36813 #include <ac_nonexistent.h> 36814 _ACEOF 36815 if ac_fn_cxx_try_cpp "$LINENO"; then : 36816 # Broken: success on invalid input. 36817 continue 36818 else 36819 # Passes both tests. 36820 ac_preproc_ok=: 36821 break 36822 fi 36823 rm -f conftest.err conftest.i conftest.$ac_ext 36824 36825 done 36826 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36827 rm -f conftest.i conftest.err conftest.$ac_ext 36828 if $ac_preproc_ok; then : 36829 36830 else 36831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36833 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36834 See \`config.log' for more details" "$LINENO" 5; } 36835 fi 36836 36837 ac_ext=cpp 36838 ac_cpp='$CXXCPP $CPPFLAGS' 36839 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36840 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36841 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36842 36843 36844 # Only process if variable expands to non-empty 36845 36846 if test "x$CXXCPP" != x; then 36847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36848 36849 # First separate the path from the arguments. This will split at the first 36850 # space. 36851 complete="$CXXCPP" 36852 path="${complete%% *}" 36853 tmp="$complete EOL" 36854 arguments="${tmp#* }" 36855 36856 # Input might be given as Windows format, start by converting to 36857 # unix format. 36858 new_path=`$CYGPATH -u "$path"` 36859 36860 # Now try to locate executable using which 36861 new_path=`$WHICH "$new_path" 2> /dev/null` 36862 # bat and cmd files are not always considered executable in cygwin causing which 36863 # to not find them 36864 if test "x$new_path" = x \ 36865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36867 new_path=`$CYGPATH -u "$path"` 36868 fi 36869 if test "x$new_path" = x; then 36870 # Oops. Which didn't find the executable. 36871 # The splitting of arguments from the executable at a space might have been incorrect, 36872 # since paths with space are more likely in Windows. Give it another try with the whole 36873 # argument. 36874 path="$complete" 36875 arguments="EOL" 36876 new_path=`$CYGPATH -u "$path"` 36877 new_path=`$WHICH "$new_path" 2> /dev/null` 36878 # bat and cmd files are not always considered executable in cygwin causing which 36879 # to not find them 36880 if test "x$new_path" = x \ 36881 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36882 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36883 new_path=`$CYGPATH -u "$path"` 36884 fi 36885 if test "x$new_path" = x; then 36886 # It's still not found. Now this is an unrecoverable error. 36887 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36888 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36889 has_space=`$ECHO "$complete" | $GREP " "` 36890 if test "x$has_space" != x; then 36891 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36892 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36893 fi 36894 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36895 fi 36896 fi 36897 36898 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36899 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36900 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36901 # "foo.exe" is OK but "foo" is an error. 36902 # 36903 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36904 # It is also a way to make sure we got the proper file name for the real test later on. 36905 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36906 if test "x$test_shortpath" = x; then 36907 # Short path failed, file does not exist as specified. 36908 # Try adding .exe or .cmd 36909 if test -f "${new_path}.exe"; then 36910 input_to_shortpath="${new_path}.exe" 36911 elif test -f "${new_path}.cmd"; then 36912 input_to_shortpath="${new_path}.cmd" 36913 else 36914 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36915 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36916 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36917 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36918 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36919 fi 36920 else 36921 input_to_shortpath="$new_path" 36922 fi 36923 36924 # Call helper function which possibly converts this using DOS-style short mode. 36925 # If so, the updated path is stored in $new_path. 36926 new_path="$input_to_shortpath" 36927 36928 input_path="$input_to_shortpath" 36929 # Check if we need to convert this using DOS-style short mode. If the path 36930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36931 # take no chances and rewrite it. 36932 # Note: m4 eats our [], so we need to use [ and ] instead. 36933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36934 if test "x$has_forbidden_chars" != x; then 36935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36939 # Going to short mode and back again did indeed matter. Since short mode is 36940 # case insensitive, let's make it lowercase to improve readability. 36941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36942 # Now convert it back to Unix-style (cygpath) 36943 input_path=`$CYGPATH -u "$shortmode_path"` 36944 new_path="$input_path" 36945 fi 36946 fi 36947 36948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36949 if test "x$test_cygdrive_prefix" = x; then 36950 # As a simple fix, exclude /usr/bin since it's not a real path. 36951 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36953 # a path prefixed by /cygdrive for fixpath to work. 36954 new_path="$CYGWIN_ROOT_PATH$input_path" 36955 fi 36956 fi 36957 36958 # remove trailing .exe if any 36959 new_path="${new_path/%.exe/}" 36960 36961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36962 36963 # First separate the path from the arguments. This will split at the first 36964 # space. 36965 complete="$CXXCPP" 36966 path="${complete%% *}" 36967 tmp="$complete EOL" 36968 arguments="${tmp#* }" 36969 36970 # Input might be given as Windows format, start by converting to 36971 # unix format. 36972 new_path="$path" 36973 36974 windows_path="$new_path" 36975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36976 unix_path=`$CYGPATH -u "$windows_path"` 36977 new_path="$unix_path" 36978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36980 new_path="$unix_path" 36981 fi 36982 36983 36984 # Now try to locate executable using which 36985 new_path=`$WHICH "$new_path" 2> /dev/null` 36986 36987 if test "x$new_path" = x; then 36988 # Oops. Which didn't find the executable. 36989 # The splitting of arguments from the executable at a space might have been incorrect, 36990 # since paths with space are more likely in Windows. Give it another try with the whole 36991 # argument. 36992 path="$complete" 36993 arguments="EOL" 36994 new_path="$path" 36995 36996 windows_path="$new_path" 36997 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36998 unix_path=`$CYGPATH -u "$windows_path"` 36999 new_path="$unix_path" 37000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37001 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37002 new_path="$unix_path" 37003 fi 37004 37005 37006 new_path=`$WHICH "$new_path" 2> /dev/null` 37007 # bat and cmd files are not always considered executable in MSYS causing which 37008 # to not find them 37009 if test "x$new_path" = x \ 37010 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37011 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37012 new_path="$path" 37013 37014 windows_path="$new_path" 37015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37016 unix_path=`$CYGPATH -u "$windows_path"` 37017 new_path="$unix_path" 37018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37020 new_path="$unix_path" 37021 fi 37022 37023 fi 37024 37025 if test "x$new_path" = x; then 37026 # It's still not found. Now this is an unrecoverable error. 37027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37028 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37029 has_space=`$ECHO "$complete" | $GREP " "` 37030 if test "x$has_space" != x; then 37031 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37032 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37033 fi 37034 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37035 fi 37036 fi 37037 37038 # Now new_path has a complete unix path to the binary 37039 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37040 # Keep paths in /bin as-is, but remove trailing .exe if any 37041 new_path="${new_path/%.exe/}" 37042 # Do not save /bin paths to all_fixpath_prefixes! 37043 else 37044 # Not in mixed or Windows style, start by that. 37045 new_path=`cmd //c echo $new_path` 37046 37047 input_path="$new_path" 37048 # Check if we need to convert this using DOS-style short mode. If the path 37049 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37050 # take no chances and rewrite it. 37051 # Note: m4 eats our [], so we need to use [ and ] instead. 37052 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37053 if test "x$has_forbidden_chars" != x; then 37054 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37055 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37056 fi 37057 37058 # Output is in $new_path 37059 37060 windows_path="$new_path" 37061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37062 unix_path=`$CYGPATH -u "$windows_path"` 37063 new_path="$unix_path" 37064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37065 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37066 new_path="$unix_path" 37067 fi 37068 37069 # remove trailing .exe if any 37070 new_path="${new_path/%.exe/}" 37071 37072 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37073 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37074 fi 37075 37076 else 37077 # We're on a unix platform. Hooray! :) 37078 # First separate the path from the arguments. This will split at the first 37079 # space. 37080 complete="$CXXCPP" 37081 path="${complete%% *}" 37082 tmp="$complete EOL" 37083 arguments="${tmp#* }" 37084 37085 # Cannot rely on the command "which" here since it doesn't always work. 37086 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37087 if test -z "$is_absolute_path"; then 37088 # Path to executable is not absolute. Find it. 37089 IFS_save="$IFS" 37090 IFS=: 37091 for p in $PATH; do 37092 if test -f "$p/$path" && test -x "$p/$path"; then 37093 new_path="$p/$path" 37094 break 37095 fi 37096 done 37097 IFS="$IFS_save" 37098 else 37099 # This is an absolute path, we can use it without further modifications. 37100 new_path="$path" 37101 fi 37102 37103 if test "x$new_path" = x; then 37104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37105 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37106 has_space=`$ECHO "$complete" | $GREP " "` 37107 if test "x$has_space" != x; then 37108 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37109 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37110 fi 37111 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37112 fi 37113 fi 37114 37115 # Now join together the path and the arguments once again 37116 if test "x$arguments" != xEOL; then 37117 new_complete="$new_path ${arguments% *}" 37118 else 37119 new_complete="$new_path" 37120 fi 37121 37122 if test "x$complete" != "x$new_complete"; then 37123 CXXCPP="$new_complete" 37124 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37125 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37126 fi 37127 fi 37128 37129 37130 # 37131 # Setup the linker (LD) 37132 # 37133 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37134 # In the Microsoft toolchain we have a separate LD command "link". 37135 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37136 # a cygwin program for something completely different. 37137 # Extract the first word of "link", so it can be a program name with args. 37138 set dummy link; ac_word=$2 37139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37140 $as_echo_n "checking for $ac_word... " >&6; } 37141 if ${ac_cv_prog_LD+:} false; then : 37142 $as_echo_n "(cached) " >&6 37143 else 37144 if test -n "$LD"; then 37145 ac_cv_prog_LD="$LD" # Let the user override the test. 37146 else 37147 ac_prog_rejected=no 37148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37149 for as_dir in $PATH 37150 do 37151 IFS=$as_save_IFS 37152 test -z "$as_dir" && as_dir=. 37153 for ac_exec_ext in '' $ac_executable_extensions; do 37154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37155 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37156 ac_prog_rejected=yes 37157 continue 37158 fi 37159 ac_cv_prog_LD="link" 37160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37161 break 2 37162 fi 37163 done 37164 done 37165 IFS=$as_save_IFS 37166 37167 if test $ac_prog_rejected = yes; then 37168 # We found a bogon in the path, so make sure we never use it. 37169 set dummy $ac_cv_prog_LD 37170 shift 37171 if test $# != 0; then 37172 # We chose a different compiler from the bogus one. 37173 # However, it has the same basename, so the bogon will be chosen 37174 # first if we set LD to just the basename; use the full file name. 37175 shift 37176 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37177 fi 37178 fi 37179 fi 37180 fi 37181 LD=$ac_cv_prog_LD 37182 if test -n "$LD"; then 37183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37184 $as_echo "$LD" >&6; } 37185 else 37186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37187 $as_echo "no" >&6; } 37188 fi 37189 37190 37191 37192 # Only process if variable expands to non-empty 37193 37194 if test "x$LD" != x; then 37195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37196 37197 # First separate the path from the arguments. This will split at the first 37198 # space. 37199 complete="$LD" 37200 path="${complete%% *}" 37201 tmp="$complete EOL" 37202 arguments="${tmp#* }" 37203 37204 # Input might be given as Windows format, start by converting to 37205 # unix format. 37206 new_path=`$CYGPATH -u "$path"` 37207 37208 # Now try to locate executable using which 37209 new_path=`$WHICH "$new_path" 2> /dev/null` 37210 # bat and cmd files are not always considered executable in cygwin causing which 37211 # to not find them 37212 if test "x$new_path" = x \ 37213 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37214 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37215 new_path=`$CYGPATH -u "$path"` 37216 fi 37217 if test "x$new_path" = x; then 37218 # Oops. Which didn't find the executable. 37219 # The splitting of arguments from the executable at a space might have been incorrect, 37220 # since paths with space are more likely in Windows. Give it another try with the whole 37221 # argument. 37222 path="$complete" 37223 arguments="EOL" 37224 new_path=`$CYGPATH -u "$path"` 37225 new_path=`$WHICH "$new_path" 2> /dev/null` 37226 # bat and cmd files are not always considered executable in cygwin causing which 37227 # to not find them 37228 if test "x$new_path" = x \ 37229 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37230 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37231 new_path=`$CYGPATH -u "$path"` 37232 fi 37233 if test "x$new_path" = x; then 37234 # It's still not found. Now this is an unrecoverable error. 37235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37236 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37237 has_space=`$ECHO "$complete" | $GREP " "` 37238 if test "x$has_space" != x; then 37239 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37240 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37241 fi 37242 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37243 fi 37244 fi 37245 37246 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37247 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37248 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37249 # "foo.exe" is OK but "foo" is an error. 37250 # 37251 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37252 # It is also a way to make sure we got the proper file name for the real test later on. 37253 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37254 if test "x$test_shortpath" = x; then 37255 # Short path failed, file does not exist as specified. 37256 # Try adding .exe or .cmd 37257 if test -f "${new_path}.exe"; then 37258 input_to_shortpath="${new_path}.exe" 37259 elif test -f "${new_path}.cmd"; then 37260 input_to_shortpath="${new_path}.cmd" 37261 else 37262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37263 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37264 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37265 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37266 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37267 fi 37268 else 37269 input_to_shortpath="$new_path" 37270 fi 37271 37272 # Call helper function which possibly converts this using DOS-style short mode. 37273 # If so, the updated path is stored in $new_path. 37274 new_path="$input_to_shortpath" 37275 37276 input_path="$input_to_shortpath" 37277 # Check if we need to convert this using DOS-style short mode. If the path 37278 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37279 # take no chances and rewrite it. 37280 # Note: m4 eats our [], so we need to use [ and ] instead. 37281 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37282 if test "x$has_forbidden_chars" != x; then 37283 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37284 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37285 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37286 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37287 # Going to short mode and back again did indeed matter. Since short mode is 37288 # case insensitive, let's make it lowercase to improve readability. 37289 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37290 # Now convert it back to Unix-style (cygpath) 37291 input_path=`$CYGPATH -u "$shortmode_path"` 37292 new_path="$input_path" 37293 fi 37294 fi 37295 37296 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37297 if test "x$test_cygdrive_prefix" = x; then 37298 # As a simple fix, exclude /usr/bin since it's not a real path. 37299 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37300 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37301 # a path prefixed by /cygdrive for fixpath to work. 37302 new_path="$CYGWIN_ROOT_PATH$input_path" 37303 fi 37304 fi 37305 37306 # remove trailing .exe if any 37307 new_path="${new_path/%.exe/}" 37308 37309 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37310 37311 # First separate the path from the arguments. This will split at the first 37312 # space. 37313 complete="$LD" 37314 path="${complete%% *}" 37315 tmp="$complete EOL" 37316 arguments="${tmp#* }" 37317 37318 # Input might be given as Windows format, start by converting to 37319 # unix format. 37320 new_path="$path" 37321 37322 windows_path="$new_path" 37323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37324 unix_path=`$CYGPATH -u "$windows_path"` 37325 new_path="$unix_path" 37326 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37327 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37328 new_path="$unix_path" 37329 fi 37330 37331 37332 # Now try to locate executable using which 37333 new_path=`$WHICH "$new_path" 2> /dev/null` 37334 37335 if test "x$new_path" = x; then 37336 # Oops. Which didn't find the executable. 37337 # The splitting of arguments from the executable at a space might have been incorrect, 37338 # since paths with space are more likely in Windows. Give it another try with the whole 37339 # argument. 37340 path="$complete" 37341 arguments="EOL" 37342 new_path="$path" 37343 37344 windows_path="$new_path" 37345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37346 unix_path=`$CYGPATH -u "$windows_path"` 37347 new_path="$unix_path" 37348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37350 new_path="$unix_path" 37351 fi 37352 37353 37354 new_path=`$WHICH "$new_path" 2> /dev/null` 37355 # bat and cmd files are not always considered executable in MSYS causing which 37356 # to not find them 37357 if test "x$new_path" = x \ 37358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37360 new_path="$path" 37361 37362 windows_path="$new_path" 37363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37364 unix_path=`$CYGPATH -u "$windows_path"` 37365 new_path="$unix_path" 37366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37368 new_path="$unix_path" 37369 fi 37370 37371 fi 37372 37373 if test "x$new_path" = x; then 37374 # It's still not found. Now this is an unrecoverable error. 37375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37376 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37377 has_space=`$ECHO "$complete" | $GREP " "` 37378 if test "x$has_space" != x; then 37379 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37380 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37381 fi 37382 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37383 fi 37384 fi 37385 37386 # Now new_path has a complete unix path to the binary 37387 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37388 # Keep paths in /bin as-is, but remove trailing .exe if any 37389 new_path="${new_path/%.exe/}" 37390 # Do not save /bin paths to all_fixpath_prefixes! 37391 else 37392 # Not in mixed or Windows style, start by that. 37393 new_path=`cmd //c echo $new_path` 37394 37395 input_path="$new_path" 37396 # Check if we need to convert this using DOS-style short mode. If the path 37397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37398 # take no chances and rewrite it. 37399 # Note: m4 eats our [], so we need to use [ and ] instead. 37400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37401 if test "x$has_forbidden_chars" != x; then 37402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37404 fi 37405 37406 # Output is in $new_path 37407 37408 windows_path="$new_path" 37409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37410 unix_path=`$CYGPATH -u "$windows_path"` 37411 new_path="$unix_path" 37412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37414 new_path="$unix_path" 37415 fi 37416 37417 # remove trailing .exe if any 37418 new_path="${new_path/%.exe/}" 37419 37420 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37421 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37422 fi 37423 37424 else 37425 # We're on a unix platform. Hooray! :) 37426 # First separate the path from the arguments. This will split at the first 37427 # space. 37428 complete="$LD" 37429 path="${complete%% *}" 37430 tmp="$complete EOL" 37431 arguments="${tmp#* }" 37432 37433 # Cannot rely on the command "which" here since it doesn't always work. 37434 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37435 if test -z "$is_absolute_path"; then 37436 # Path to executable is not absolute. Find it. 37437 IFS_save="$IFS" 37438 IFS=: 37439 for p in $PATH; do 37440 if test -f "$p/$path" && test -x "$p/$path"; then 37441 new_path="$p/$path" 37442 break 37443 fi 37444 done 37445 IFS="$IFS_save" 37446 else 37447 # This is an absolute path, we can use it without further modifications. 37448 new_path="$path" 37449 fi 37450 37451 if test "x$new_path" = x; then 37452 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37453 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37454 has_space=`$ECHO "$complete" | $GREP " "` 37455 if test "x$has_space" != x; then 37456 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37457 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37458 fi 37459 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37460 fi 37461 fi 37462 37463 # Now join together the path and the arguments once again 37464 if test "x$arguments" != xEOL; then 37465 new_complete="$new_path ${arguments% *}" 37466 else 37467 new_complete="$new_path" 37468 fi 37469 37470 if test "x$complete" != "x$new_complete"; then 37471 LD="$new_complete" 37472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37473 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37474 fi 37475 fi 37476 37477 # Verify that we indeed succeeded with this trick. 37478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37479 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37480 "$LD" --version > /dev/null 37481 if test $? -eq 0 ; then 37482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37483 $as_echo "no" >&6; } 37484 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37485 else 37486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37487 $as_echo "yes" >&6; } 37488 fi 37489 LDCXX="$LD" 37490 else 37491 # All other toolchains use the compiler to link. 37492 LD="$CC" 37493 LDCXX="$CXX" 37494 fi 37495 37496 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37497 37498 37499 # 37500 # Setup the assembler (AS) 37501 # 37502 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37503 37504 37505 # Publish this variable in the help. 37506 37507 37508 if [ -z "${AS+x}" ]; then 37509 # The variable is not set by user, try to locate tool using the code snippet 37510 for ac_prog in as 37511 do 37512 # Extract the first word of "$ac_prog", so it can be a program name with args. 37513 set dummy $ac_prog; ac_word=$2 37514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37515 $as_echo_n "checking for $ac_word... " >&6; } 37516 if ${ac_cv_path_AS+:} false; then : 37517 $as_echo_n "(cached) " >&6 37518 else 37519 case $AS in 37520 [\\/]* | ?:[\\/]*) 37521 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37522 ;; 37523 *) 37524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37525 for as_dir in $PATH 37526 do 37527 IFS=$as_save_IFS 37528 test -z "$as_dir" && as_dir=. 37529 for ac_exec_ext in '' $ac_executable_extensions; do 37530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37531 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37533 break 2 37534 fi 37535 done 37536 done 37537 IFS=$as_save_IFS 37538 37539 ;; 37540 esac 37541 fi 37542 AS=$ac_cv_path_AS 37543 if test -n "$AS"; then 37544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37545 $as_echo "$AS" >&6; } 37546 else 37547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37548 $as_echo "no" >&6; } 37549 fi 37550 37551 37552 test -n "$AS" && break 37553 done 37554 37555 else 37556 # The variable is set, but is it from the command line or the environment? 37557 37558 # Try to remove the string !AS! from our list. 37559 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37560 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37561 # If it failed, the variable was not from the command line. Ignore it, 37562 # but warn the user (except for BASH, which is always set by the calling BASH). 37563 if test "xAS" != xBASH; then 37564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37565 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37566 fi 37567 # Try to locate tool using the code snippet 37568 for ac_prog in as 37569 do 37570 # Extract the first word of "$ac_prog", so it can be a program name with args. 37571 set dummy $ac_prog; ac_word=$2 37572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37573 $as_echo_n "checking for $ac_word... " >&6; } 37574 if ${ac_cv_path_AS+:} false; then : 37575 $as_echo_n "(cached) " >&6 37576 else 37577 case $AS in 37578 [\\/]* | ?:[\\/]*) 37579 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37580 ;; 37581 *) 37582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37583 for as_dir in $PATH 37584 do 37585 IFS=$as_save_IFS 37586 test -z "$as_dir" && as_dir=. 37587 for ac_exec_ext in '' $ac_executable_extensions; do 37588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37589 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37591 break 2 37592 fi 37593 done 37594 done 37595 IFS=$as_save_IFS 37596 37597 ;; 37598 esac 37599 fi 37600 AS=$ac_cv_path_AS 37601 if test -n "$AS"; then 37602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37603 $as_echo "$AS" >&6; } 37604 else 37605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37606 $as_echo "no" >&6; } 37607 fi 37608 37609 37610 test -n "$AS" && break 37611 done 37612 37613 else 37614 # If it succeeded, then it was overridden by the user. We will use it 37615 # for the tool. 37616 37617 # First remove it from the list of overridden variables, so we can test 37618 # for unknown variables in the end. 37619 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37620 37621 # Check if we try to supply an empty value 37622 if test "x$AS" = x; then 37623 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37624 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37626 $as_echo_n "checking for AS... " >&6; } 37627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37628 $as_echo "disabled" >&6; } 37629 else 37630 # Check if the provided tool contains a complete path. 37631 tool_specified="$AS" 37632 tool_basename="${tool_specified##*/}" 37633 if test "x$tool_basename" = "x$tool_specified"; then 37634 # A command without a complete path is provided, search $PATH. 37635 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37636 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37637 # Extract the first word of "$tool_basename", so it can be a program name with args. 37638 set dummy $tool_basename; ac_word=$2 37639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37640 $as_echo_n "checking for $ac_word... " >&6; } 37641 if ${ac_cv_path_AS+:} false; then : 37642 $as_echo_n "(cached) " >&6 37643 else 37644 case $AS in 37645 [\\/]* | ?:[\\/]*) 37646 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37647 ;; 37648 *) 37649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37650 for as_dir in $PATH 37651 do 37652 IFS=$as_save_IFS 37653 test -z "$as_dir" && as_dir=. 37654 for ac_exec_ext in '' $ac_executable_extensions; do 37655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37656 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37658 break 2 37659 fi 37660 done 37661 done 37662 IFS=$as_save_IFS 37663 37664 ;; 37665 esac 37666 fi 37667 AS=$ac_cv_path_AS 37668 if test -n "$AS"; then 37669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37670 $as_echo "$AS" >&6; } 37671 else 37672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37673 $as_echo "no" >&6; } 37674 fi 37675 37676 37677 if test "x$AS" = x; then 37678 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37679 fi 37680 else 37681 # Otherwise we believe it is a complete path. Use it as it is. 37682 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37683 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37685 $as_echo_n "checking for AS... " >&6; } 37686 if test ! -x "$tool_specified"; then 37687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37688 $as_echo "not found" >&6; } 37689 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37690 fi 37691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37692 $as_echo "$tool_specified" >&6; } 37693 fi 37694 fi 37695 fi 37696 37697 fi 37698 37699 37700 37701 # Only process if variable expands to non-empty 37702 37703 if test "x$AS" != x; then 37704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37705 37706 # First separate the path from the arguments. This will split at the first 37707 # space. 37708 complete="$AS" 37709 path="${complete%% *}" 37710 tmp="$complete EOL" 37711 arguments="${tmp#* }" 37712 37713 # Input might be given as Windows format, start by converting to 37714 # unix format. 37715 new_path=`$CYGPATH -u "$path"` 37716 37717 # Now try to locate executable using which 37718 new_path=`$WHICH "$new_path" 2> /dev/null` 37719 # bat and cmd files are not always considered executable in cygwin causing which 37720 # to not find them 37721 if test "x$new_path" = x \ 37722 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37723 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37724 new_path=`$CYGPATH -u "$path"` 37725 fi 37726 if test "x$new_path" = x; then 37727 # Oops. Which didn't find the executable. 37728 # The splitting of arguments from the executable at a space might have been incorrect, 37729 # since paths with space are more likely in Windows. Give it another try with the whole 37730 # argument. 37731 path="$complete" 37732 arguments="EOL" 37733 new_path=`$CYGPATH -u "$path"` 37734 new_path=`$WHICH "$new_path" 2> /dev/null` 37735 # bat and cmd files are not always considered executable in cygwin causing which 37736 # to not find them 37737 if test "x$new_path" = x \ 37738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37740 new_path=`$CYGPATH -u "$path"` 37741 fi 37742 if test "x$new_path" = x; then 37743 # It's still not found. Now this is an unrecoverable error. 37744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37745 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37746 has_space=`$ECHO "$complete" | $GREP " "` 37747 if test "x$has_space" != x; then 37748 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37749 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37750 fi 37751 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37752 fi 37753 fi 37754 37755 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37756 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37757 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37758 # "foo.exe" is OK but "foo" is an error. 37759 # 37760 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37761 # It is also a way to make sure we got the proper file name for the real test later on. 37762 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37763 if test "x$test_shortpath" = x; then 37764 # Short path failed, file does not exist as specified. 37765 # Try adding .exe or .cmd 37766 if test -f "${new_path}.exe"; then 37767 input_to_shortpath="${new_path}.exe" 37768 elif test -f "${new_path}.cmd"; then 37769 input_to_shortpath="${new_path}.cmd" 37770 else 37771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37772 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37773 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37774 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37775 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37776 fi 37777 else 37778 input_to_shortpath="$new_path" 37779 fi 37780 37781 # Call helper function which possibly converts this using DOS-style short mode. 37782 # If so, the updated path is stored in $new_path. 37783 new_path="$input_to_shortpath" 37784 37785 input_path="$input_to_shortpath" 37786 # Check if we need to convert this using DOS-style short mode. If the path 37787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37788 # take no chances and rewrite it. 37789 # Note: m4 eats our [], so we need to use [ and ] instead. 37790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37791 if test "x$has_forbidden_chars" != x; then 37792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37793 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37794 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37795 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37796 # Going to short mode and back again did indeed matter. Since short mode is 37797 # case insensitive, let's make it lowercase to improve readability. 37798 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37799 # Now convert it back to Unix-style (cygpath) 37800 input_path=`$CYGPATH -u "$shortmode_path"` 37801 new_path="$input_path" 37802 fi 37803 fi 37804 37805 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37806 if test "x$test_cygdrive_prefix" = x; then 37807 # As a simple fix, exclude /usr/bin since it's not a real path. 37808 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37809 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37810 # a path prefixed by /cygdrive for fixpath to work. 37811 new_path="$CYGWIN_ROOT_PATH$input_path" 37812 fi 37813 fi 37814 37815 # remove trailing .exe if any 37816 new_path="${new_path/%.exe/}" 37817 37818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37819 37820 # First separate the path from the arguments. This will split at the first 37821 # space. 37822 complete="$AS" 37823 path="${complete%% *}" 37824 tmp="$complete EOL" 37825 arguments="${tmp#* }" 37826 37827 # Input might be given as Windows format, start by converting to 37828 # unix format. 37829 new_path="$path" 37830 37831 windows_path="$new_path" 37832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37833 unix_path=`$CYGPATH -u "$windows_path"` 37834 new_path="$unix_path" 37835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37837 new_path="$unix_path" 37838 fi 37839 37840 37841 # Now try to locate executable using which 37842 new_path=`$WHICH "$new_path" 2> /dev/null` 37843 37844 if test "x$new_path" = x; then 37845 # Oops. Which didn't find the executable. 37846 # The splitting of arguments from the executable at a space might have been incorrect, 37847 # since paths with space are more likely in Windows. Give it another try with the whole 37848 # argument. 37849 path="$complete" 37850 arguments="EOL" 37851 new_path="$path" 37852 37853 windows_path="$new_path" 37854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37855 unix_path=`$CYGPATH -u "$windows_path"` 37856 new_path="$unix_path" 37857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37859 new_path="$unix_path" 37860 fi 37861 37862 37863 new_path=`$WHICH "$new_path" 2> /dev/null` 37864 # bat and cmd files are not always considered executable in MSYS causing which 37865 # to not find them 37866 if test "x$new_path" = x \ 37867 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37868 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37869 new_path="$path" 37870 37871 windows_path="$new_path" 37872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37873 unix_path=`$CYGPATH -u "$windows_path"` 37874 new_path="$unix_path" 37875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37877 new_path="$unix_path" 37878 fi 37879 37880 fi 37881 37882 if test "x$new_path" = x; then 37883 # It's still not found. Now this is an unrecoverable error. 37884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37885 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37886 has_space=`$ECHO "$complete" | $GREP " "` 37887 if test "x$has_space" != x; then 37888 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37889 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37890 fi 37891 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37892 fi 37893 fi 37894 37895 # Now new_path has a complete unix path to the binary 37896 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37897 # Keep paths in /bin as-is, but remove trailing .exe if any 37898 new_path="${new_path/%.exe/}" 37899 # Do not save /bin paths to all_fixpath_prefixes! 37900 else 37901 # Not in mixed or Windows style, start by that. 37902 new_path=`cmd //c echo $new_path` 37903 37904 input_path="$new_path" 37905 # Check if we need to convert this using DOS-style short mode. If the path 37906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37907 # take no chances and rewrite it. 37908 # Note: m4 eats our [], so we need to use [ and ] instead. 37909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37910 if test "x$has_forbidden_chars" != x; then 37911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37913 fi 37914 37915 # Output is in $new_path 37916 37917 windows_path="$new_path" 37918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37919 unix_path=`$CYGPATH -u "$windows_path"` 37920 new_path="$unix_path" 37921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37923 new_path="$unix_path" 37924 fi 37925 37926 # remove trailing .exe if any 37927 new_path="${new_path/%.exe/}" 37928 37929 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37930 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37931 fi 37932 37933 else 37934 # We're on a unix platform. Hooray! :) 37935 # First separate the path from the arguments. This will split at the first 37936 # space. 37937 complete="$AS" 37938 path="${complete%% *}" 37939 tmp="$complete EOL" 37940 arguments="${tmp#* }" 37941 37942 # Cannot rely on the command "which" here since it doesn't always work. 37943 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37944 if test -z "$is_absolute_path"; then 37945 # Path to executable is not absolute. Find it. 37946 IFS_save="$IFS" 37947 IFS=: 37948 for p in $PATH; do 37949 if test -f "$p/$path" && test -x "$p/$path"; then 37950 new_path="$p/$path" 37951 break 37952 fi 37953 done 37954 IFS="$IFS_save" 37955 else 37956 # This is an absolute path, we can use it without further modifications. 37957 new_path="$path" 37958 fi 37959 37960 if test "x$new_path" = x; then 37961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37962 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37963 has_space=`$ECHO "$complete" | $GREP " "` 37964 if test "x$has_space" != x; then 37965 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37966 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37967 fi 37968 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37969 fi 37970 fi 37971 37972 # Now join together the path and the arguments once again 37973 if test "x$arguments" != xEOL; then 37974 new_complete="$new_path ${arguments% *}" 37975 else 37976 new_complete="$new_path" 37977 fi 37978 37979 if test "x$complete" != "x$new_complete"; then 37980 AS="$new_complete" 37981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37982 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37983 fi 37984 fi 37985 37986 if test "x$AS" = x; then 37987 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37988 fi 37989 else 37990 # FIXME: is this correct for microsoft? 37991 AS="$CC -c" 37992 fi 37993 37994 37995 # 37996 # Setup the archiver (AR) 37997 # 37998 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37999 # The corresponding ar tool is lib.exe (used to create static libraries) 38000 # Extract the first word of "lib", so it can be a program name with args. 38001 set dummy lib; ac_word=$2 38002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38003 $as_echo_n "checking for $ac_word... " >&6; } 38004 if ${ac_cv_prog_AR+:} false; then : 38005 $as_echo_n "(cached) " >&6 38006 else 38007 if test -n "$AR"; then 38008 ac_cv_prog_AR="$AR" # Let the user override the test. 38009 else 38010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38011 for as_dir in $PATH 38012 do 38013 IFS=$as_save_IFS 38014 test -z "$as_dir" && as_dir=. 38015 for ac_exec_ext in '' $ac_executable_extensions; do 38016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38017 ac_cv_prog_AR="lib" 38018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38019 break 2 38020 fi 38021 done 38022 done 38023 IFS=$as_save_IFS 38024 38025 fi 38026 fi 38027 AR=$ac_cv_prog_AR 38028 if test -n "$AR"; then 38029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38030 $as_echo "$AR" >&6; } 38031 else 38032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38033 $as_echo "no" >&6; } 38034 fi 38035 38036 38037 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 38038 38039 38040 # Publish this variable in the help. 38041 38042 38043 if [ -z "${AR+x}" ]; then 38044 # The variable is not set by user, try to locate tool using the code snippet 38045 if test -n "$ac_tool_prefix"; then 38046 for ac_prog in ar gcc-ar 38047 do 38048 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38049 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38051 $as_echo_n "checking for $ac_word... " >&6; } 38052 if ${ac_cv_prog_AR+:} false; then : 38053 $as_echo_n "(cached) " >&6 38054 else 38055 if test -n "$AR"; then 38056 ac_cv_prog_AR="$AR" # Let the user override the test. 38057 else 38058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38059 for as_dir in $PATH 38060 do 38061 IFS=$as_save_IFS 38062 test -z "$as_dir" && as_dir=. 38063 for ac_exec_ext in '' $ac_executable_extensions; do 38064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38065 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38067 break 2 38068 fi 38069 done 38070 done 38071 IFS=$as_save_IFS 38072 38073 fi 38074 fi 38075 AR=$ac_cv_prog_AR 38076 if test -n "$AR"; then 38077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38078 $as_echo "$AR" >&6; } 38079 else 38080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38081 $as_echo "no" >&6; } 38082 fi 38083 38084 38085 test -n "$AR" && break 38086 done 38087 fi 38088 if test -z "$AR"; then 38089 ac_ct_AR=$AR 38090 for ac_prog in ar gcc-ar 38091 do 38092 # Extract the first word of "$ac_prog", so it can be a program name with args. 38093 set dummy $ac_prog; ac_word=$2 38094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38095 $as_echo_n "checking for $ac_word... " >&6; } 38096 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38097 $as_echo_n "(cached) " >&6 38098 else 38099 if test -n "$ac_ct_AR"; then 38100 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38101 else 38102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38103 for as_dir in $PATH 38104 do 38105 IFS=$as_save_IFS 38106 test -z "$as_dir" && as_dir=. 38107 for ac_exec_ext in '' $ac_executable_extensions; do 38108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38109 ac_cv_prog_ac_ct_AR="$ac_prog" 38110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38111 break 2 38112 fi 38113 done 38114 done 38115 IFS=$as_save_IFS 38116 38117 fi 38118 fi 38119 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38120 if test -n "$ac_ct_AR"; then 38121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38122 $as_echo "$ac_ct_AR" >&6; } 38123 else 38124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38125 $as_echo "no" >&6; } 38126 fi 38127 38128 38129 test -n "$ac_ct_AR" && break 38130 done 38131 38132 if test "x$ac_ct_AR" = x; then 38133 AR="" 38134 else 38135 case $cross_compiling:$ac_tool_warned in 38136 yes:) 38137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38139 ac_tool_warned=yes ;; 38140 esac 38141 AR=$ac_ct_AR 38142 fi 38143 fi 38144 38145 else 38146 # The variable is set, but is it from the command line or the environment? 38147 38148 # Try to remove the string !AR! from our list. 38149 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38150 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38151 # If it failed, the variable was not from the command line. Ignore it, 38152 # but warn the user (except for BASH, which is always set by the calling BASH). 38153 if test "xAR" != xBASH; then 38154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38155 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38156 fi 38157 # Try to locate tool using the code snippet 38158 if test -n "$ac_tool_prefix"; then 38159 for ac_prog in ar gcc-ar 38160 do 38161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38164 $as_echo_n "checking for $ac_word... " >&6; } 38165 if ${ac_cv_prog_AR+:} false; then : 38166 $as_echo_n "(cached) " >&6 38167 else 38168 if test -n "$AR"; then 38169 ac_cv_prog_AR="$AR" # Let the user override the test. 38170 else 38171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38172 for as_dir in $PATH 38173 do 38174 IFS=$as_save_IFS 38175 test -z "$as_dir" && as_dir=. 38176 for ac_exec_ext in '' $ac_executable_extensions; do 38177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38178 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38180 break 2 38181 fi 38182 done 38183 done 38184 IFS=$as_save_IFS 38185 38186 fi 38187 fi 38188 AR=$ac_cv_prog_AR 38189 if test -n "$AR"; then 38190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38191 $as_echo "$AR" >&6; } 38192 else 38193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38194 $as_echo "no" >&6; } 38195 fi 38196 38197 38198 test -n "$AR" && break 38199 done 38200 fi 38201 if test -z "$AR"; then 38202 ac_ct_AR=$AR 38203 for ac_prog in ar gcc-ar 38204 do 38205 # Extract the first word of "$ac_prog", so it can be a program name with args. 38206 set dummy $ac_prog; ac_word=$2 38207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38208 $as_echo_n "checking for $ac_word... " >&6; } 38209 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38210 $as_echo_n "(cached) " >&6 38211 else 38212 if test -n "$ac_ct_AR"; then 38213 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38214 else 38215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38216 for as_dir in $PATH 38217 do 38218 IFS=$as_save_IFS 38219 test -z "$as_dir" && as_dir=. 38220 for ac_exec_ext in '' $ac_executable_extensions; do 38221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38222 ac_cv_prog_ac_ct_AR="$ac_prog" 38223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38224 break 2 38225 fi 38226 done 38227 done 38228 IFS=$as_save_IFS 38229 38230 fi 38231 fi 38232 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38233 if test -n "$ac_ct_AR"; then 38234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38235 $as_echo "$ac_ct_AR" >&6; } 38236 else 38237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38238 $as_echo "no" >&6; } 38239 fi 38240 38241 38242 test -n "$ac_ct_AR" && break 38243 done 38244 38245 if test "x$ac_ct_AR" = x; then 38246 AR="" 38247 else 38248 case $cross_compiling:$ac_tool_warned in 38249 yes:) 38250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38252 ac_tool_warned=yes ;; 38253 esac 38254 AR=$ac_ct_AR 38255 fi 38256 fi 38257 38258 else 38259 # If it succeeded, then it was overridden by the user. We will use it 38260 # for the tool. 38261 38262 # First remove it from the list of overridden variables, so we can test 38263 # for unknown variables in the end. 38264 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38265 38266 # Check if we try to supply an empty value 38267 if test "x$AR" = x; then 38268 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38269 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38271 $as_echo_n "checking for AR... " >&6; } 38272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38273 $as_echo "disabled" >&6; } 38274 else 38275 # Check if the provided tool contains a complete path. 38276 tool_specified="$AR" 38277 tool_basename="${tool_specified##*/}" 38278 if test "x$tool_basename" = "x$tool_specified"; then 38279 # A command without a complete path is provided, search $PATH. 38280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38281 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38282 # Extract the first word of "$tool_basename", so it can be a program name with args. 38283 set dummy $tool_basename; ac_word=$2 38284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38285 $as_echo_n "checking for $ac_word... " >&6; } 38286 if ${ac_cv_path_AR+:} false; then : 38287 $as_echo_n "(cached) " >&6 38288 else 38289 case $AR in 38290 [\\/]* | ?:[\\/]*) 38291 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38292 ;; 38293 *) 38294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38295 for as_dir in $PATH 38296 do 38297 IFS=$as_save_IFS 38298 test -z "$as_dir" && as_dir=. 38299 for ac_exec_ext in '' $ac_executable_extensions; do 38300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38301 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38303 break 2 38304 fi 38305 done 38306 done 38307 IFS=$as_save_IFS 38308 38309 ;; 38310 esac 38311 fi 38312 AR=$ac_cv_path_AR 38313 if test -n "$AR"; then 38314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38315 $as_echo "$AR" >&6; } 38316 else 38317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38318 $as_echo "no" >&6; } 38319 fi 38320 38321 38322 if test "x$AR" = x; then 38323 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38324 fi 38325 else 38326 # Otherwise we believe it is a complete path. Use it as it is. 38327 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38328 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38330 $as_echo_n "checking for AR... " >&6; } 38331 if test ! -x "$tool_specified"; then 38332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38333 $as_echo "not found" >&6; } 38334 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38335 fi 38336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38337 $as_echo "$tool_specified" >&6; } 38338 fi 38339 fi 38340 fi 38341 38342 fi 38343 38344 38345 else 38346 38347 38348 # Publish this variable in the help. 38349 38350 38351 if [ -z "${AR+x}" ]; then 38352 # The variable is not set by user, try to locate tool using the code snippet 38353 if test -n "$ac_tool_prefix"; then 38354 for ac_prog in ar 38355 do 38356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38359 $as_echo_n "checking for $ac_word... " >&6; } 38360 if ${ac_cv_prog_AR+:} false; then : 38361 $as_echo_n "(cached) " >&6 38362 else 38363 if test -n "$AR"; then 38364 ac_cv_prog_AR="$AR" # Let the user override the test. 38365 else 38366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38367 for as_dir in $PATH 38368 do 38369 IFS=$as_save_IFS 38370 test -z "$as_dir" && as_dir=. 38371 for ac_exec_ext in '' $ac_executable_extensions; do 38372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38373 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38375 break 2 38376 fi 38377 done 38378 done 38379 IFS=$as_save_IFS 38380 38381 fi 38382 fi 38383 AR=$ac_cv_prog_AR 38384 if test -n "$AR"; then 38385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38386 $as_echo "$AR" >&6; } 38387 else 38388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38389 $as_echo "no" >&6; } 38390 fi 38391 38392 38393 test -n "$AR" && break 38394 done 38395 fi 38396 if test -z "$AR"; then 38397 ac_ct_AR=$AR 38398 for ac_prog in ar 38399 do 38400 # Extract the first word of "$ac_prog", so it can be a program name with args. 38401 set dummy $ac_prog; ac_word=$2 38402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38403 $as_echo_n "checking for $ac_word... " >&6; } 38404 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38405 $as_echo_n "(cached) " >&6 38406 else 38407 if test -n "$ac_ct_AR"; then 38408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38409 else 38410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38411 for as_dir in $PATH 38412 do 38413 IFS=$as_save_IFS 38414 test -z "$as_dir" && as_dir=. 38415 for ac_exec_ext in '' $ac_executable_extensions; do 38416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38417 ac_cv_prog_ac_ct_AR="$ac_prog" 38418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38419 break 2 38420 fi 38421 done 38422 done 38423 IFS=$as_save_IFS 38424 38425 fi 38426 fi 38427 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38428 if test -n "$ac_ct_AR"; then 38429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38430 $as_echo "$ac_ct_AR" >&6; } 38431 else 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38433 $as_echo "no" >&6; } 38434 fi 38435 38436 38437 test -n "$ac_ct_AR" && break 38438 done 38439 38440 if test "x$ac_ct_AR" = x; then 38441 AR="" 38442 else 38443 case $cross_compiling:$ac_tool_warned in 38444 yes:) 38445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38447 ac_tool_warned=yes ;; 38448 esac 38449 AR=$ac_ct_AR 38450 fi 38451 fi 38452 38453 else 38454 # The variable is set, but is it from the command line or the environment? 38455 38456 # Try to remove the string !AR! from our list. 38457 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38458 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38459 # If it failed, the variable was not from the command line. Ignore it, 38460 # but warn the user (except for BASH, which is always set by the calling BASH). 38461 if test "xAR" != xBASH; then 38462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38463 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38464 fi 38465 # Try to locate tool using the code snippet 38466 if test -n "$ac_tool_prefix"; then 38467 for ac_prog in ar 38468 do 38469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38472 $as_echo_n "checking for $ac_word... " >&6; } 38473 if ${ac_cv_prog_AR+:} false; then : 38474 $as_echo_n "(cached) " >&6 38475 else 38476 if test -n "$AR"; then 38477 ac_cv_prog_AR="$AR" # Let the user override the test. 38478 else 38479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38480 for as_dir in $PATH 38481 do 38482 IFS=$as_save_IFS 38483 test -z "$as_dir" && as_dir=. 38484 for ac_exec_ext in '' $ac_executable_extensions; do 38485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38486 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38488 break 2 38489 fi 38490 done 38491 done 38492 IFS=$as_save_IFS 38493 38494 fi 38495 fi 38496 AR=$ac_cv_prog_AR 38497 if test -n "$AR"; then 38498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38499 $as_echo "$AR" >&6; } 38500 else 38501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38502 $as_echo "no" >&6; } 38503 fi 38504 38505 38506 test -n "$AR" && break 38507 done 38508 fi 38509 if test -z "$AR"; then 38510 ac_ct_AR=$AR 38511 for ac_prog in ar 38512 do 38513 # Extract the first word of "$ac_prog", so it can be a program name with args. 38514 set dummy $ac_prog; ac_word=$2 38515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38516 $as_echo_n "checking for $ac_word... " >&6; } 38517 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38518 $as_echo_n "(cached) " >&6 38519 else 38520 if test -n "$ac_ct_AR"; then 38521 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38522 else 38523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38524 for as_dir in $PATH 38525 do 38526 IFS=$as_save_IFS 38527 test -z "$as_dir" && as_dir=. 38528 for ac_exec_ext in '' $ac_executable_extensions; do 38529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38530 ac_cv_prog_ac_ct_AR="$ac_prog" 38531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38532 break 2 38533 fi 38534 done 38535 done 38536 IFS=$as_save_IFS 38537 38538 fi 38539 fi 38540 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38541 if test -n "$ac_ct_AR"; then 38542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38543 $as_echo "$ac_ct_AR" >&6; } 38544 else 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38546 $as_echo "no" >&6; } 38547 fi 38548 38549 38550 test -n "$ac_ct_AR" && break 38551 done 38552 38553 if test "x$ac_ct_AR" = x; then 38554 AR="" 38555 else 38556 case $cross_compiling:$ac_tool_warned in 38557 yes:) 38558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38560 ac_tool_warned=yes ;; 38561 esac 38562 AR=$ac_ct_AR 38563 fi 38564 fi 38565 38566 else 38567 # If it succeeded, then it was overridden by the user. We will use it 38568 # for the tool. 38569 38570 # First remove it from the list of overridden variables, so we can test 38571 # for unknown variables in the end. 38572 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38573 38574 # Check if we try to supply an empty value 38575 if test "x$AR" = x; then 38576 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38577 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38579 $as_echo_n "checking for AR... " >&6; } 38580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38581 $as_echo "disabled" >&6; } 38582 else 38583 # Check if the provided tool contains a complete path. 38584 tool_specified="$AR" 38585 tool_basename="${tool_specified##*/}" 38586 if test "x$tool_basename" = "x$tool_specified"; then 38587 # A command without a complete path is provided, search $PATH. 38588 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38589 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38590 # Extract the first word of "$tool_basename", so it can be a program name with args. 38591 set dummy $tool_basename; ac_word=$2 38592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38593 $as_echo_n "checking for $ac_word... " >&6; } 38594 if ${ac_cv_path_AR+:} false; then : 38595 $as_echo_n "(cached) " >&6 38596 else 38597 case $AR in 38598 [\\/]* | ?:[\\/]*) 38599 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38600 ;; 38601 *) 38602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38603 for as_dir in $PATH 38604 do 38605 IFS=$as_save_IFS 38606 test -z "$as_dir" && as_dir=. 38607 for ac_exec_ext in '' $ac_executable_extensions; do 38608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38609 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38611 break 2 38612 fi 38613 done 38614 done 38615 IFS=$as_save_IFS 38616 38617 ;; 38618 esac 38619 fi 38620 AR=$ac_cv_path_AR 38621 if test -n "$AR"; then 38622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38623 $as_echo "$AR" >&6; } 38624 else 38625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38626 $as_echo "no" >&6; } 38627 fi 38628 38629 38630 if test "x$AR" = x; then 38631 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38632 fi 38633 else 38634 # Otherwise we believe it is a complete path. Use it as it is. 38635 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38636 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38638 $as_echo_n "checking for AR... " >&6; } 38639 if test ! -x "$tool_specified"; then 38640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38641 $as_echo "not found" >&6; } 38642 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38643 fi 38644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38645 $as_echo "$tool_specified" >&6; } 38646 fi 38647 fi 38648 fi 38649 38650 fi 38651 38652 38653 fi 38654 38655 # Only process if variable expands to non-empty 38656 38657 if test "x$AR" != x; then 38658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38659 38660 # First separate the path from the arguments. This will split at the first 38661 # space. 38662 complete="$AR" 38663 path="${complete%% *}" 38664 tmp="$complete EOL" 38665 arguments="${tmp#* }" 38666 38667 # Input might be given as Windows format, start by converting to 38668 # unix format. 38669 new_path=`$CYGPATH -u "$path"` 38670 38671 # Now try to locate executable using which 38672 new_path=`$WHICH "$new_path" 2> /dev/null` 38673 # bat and cmd files are not always considered executable in cygwin causing which 38674 # to not find them 38675 if test "x$new_path" = x \ 38676 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38677 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38678 new_path=`$CYGPATH -u "$path"` 38679 fi 38680 if test "x$new_path" = x; then 38681 # Oops. Which didn't find the executable. 38682 # The splitting of arguments from the executable at a space might have been incorrect, 38683 # since paths with space are more likely in Windows. Give it another try with the whole 38684 # argument. 38685 path="$complete" 38686 arguments="EOL" 38687 new_path=`$CYGPATH -u "$path"` 38688 new_path=`$WHICH "$new_path" 2> /dev/null` 38689 # bat and cmd files are not always considered executable in cygwin causing which 38690 # to not find them 38691 if test "x$new_path" = x \ 38692 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38693 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38694 new_path=`$CYGPATH -u "$path"` 38695 fi 38696 if test "x$new_path" = x; then 38697 # It's still not found. Now this is an unrecoverable error. 38698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38699 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38700 has_space=`$ECHO "$complete" | $GREP " "` 38701 if test "x$has_space" != x; then 38702 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38703 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38704 fi 38705 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38706 fi 38707 fi 38708 38709 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38710 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38711 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38712 # "foo.exe" is OK but "foo" is an error. 38713 # 38714 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38715 # It is also a way to make sure we got the proper file name for the real test later on. 38716 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38717 if test "x$test_shortpath" = x; then 38718 # Short path failed, file does not exist as specified. 38719 # Try adding .exe or .cmd 38720 if test -f "${new_path}.exe"; then 38721 input_to_shortpath="${new_path}.exe" 38722 elif test -f "${new_path}.cmd"; then 38723 input_to_shortpath="${new_path}.cmd" 38724 else 38725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38726 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38727 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38728 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38729 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38730 fi 38731 else 38732 input_to_shortpath="$new_path" 38733 fi 38734 38735 # Call helper function which possibly converts this using DOS-style short mode. 38736 # If so, the updated path is stored in $new_path. 38737 new_path="$input_to_shortpath" 38738 38739 input_path="$input_to_shortpath" 38740 # Check if we need to convert this using DOS-style short mode. If the path 38741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38742 # take no chances and rewrite it. 38743 # Note: m4 eats our [], so we need to use [ and ] instead. 38744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38745 if test "x$has_forbidden_chars" != x; then 38746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38747 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38748 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38749 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38750 # Going to short mode and back again did indeed matter. Since short mode is 38751 # case insensitive, let's make it lowercase to improve readability. 38752 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38753 # Now convert it back to Unix-style (cygpath) 38754 input_path=`$CYGPATH -u "$shortmode_path"` 38755 new_path="$input_path" 38756 fi 38757 fi 38758 38759 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38760 if test "x$test_cygdrive_prefix" = x; then 38761 # As a simple fix, exclude /usr/bin since it's not a real path. 38762 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38763 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38764 # a path prefixed by /cygdrive for fixpath to work. 38765 new_path="$CYGWIN_ROOT_PATH$input_path" 38766 fi 38767 fi 38768 38769 # remove trailing .exe if any 38770 new_path="${new_path/%.exe/}" 38771 38772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38773 38774 # First separate the path from the arguments. This will split at the first 38775 # space. 38776 complete="$AR" 38777 path="${complete%% *}" 38778 tmp="$complete EOL" 38779 arguments="${tmp#* }" 38780 38781 # Input might be given as Windows format, start by converting to 38782 # unix format. 38783 new_path="$path" 38784 38785 windows_path="$new_path" 38786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38787 unix_path=`$CYGPATH -u "$windows_path"` 38788 new_path="$unix_path" 38789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38791 new_path="$unix_path" 38792 fi 38793 38794 38795 # Now try to locate executable using which 38796 new_path=`$WHICH "$new_path" 2> /dev/null` 38797 38798 if test "x$new_path" = x; then 38799 # Oops. Which didn't find the executable. 38800 # The splitting of arguments from the executable at a space might have been incorrect, 38801 # since paths with space are more likely in Windows. Give it another try with the whole 38802 # argument. 38803 path="$complete" 38804 arguments="EOL" 38805 new_path="$path" 38806 38807 windows_path="$new_path" 38808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38809 unix_path=`$CYGPATH -u "$windows_path"` 38810 new_path="$unix_path" 38811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38813 new_path="$unix_path" 38814 fi 38815 38816 38817 new_path=`$WHICH "$new_path" 2> /dev/null` 38818 # bat and cmd files are not always considered executable in MSYS causing which 38819 # to not find them 38820 if test "x$new_path" = x \ 38821 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38822 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38823 new_path="$path" 38824 38825 windows_path="$new_path" 38826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38827 unix_path=`$CYGPATH -u "$windows_path"` 38828 new_path="$unix_path" 38829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38831 new_path="$unix_path" 38832 fi 38833 38834 fi 38835 38836 if test "x$new_path" = x; then 38837 # It's still not found. Now this is an unrecoverable error. 38838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38839 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38840 has_space=`$ECHO "$complete" | $GREP " "` 38841 if test "x$has_space" != x; then 38842 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38843 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38844 fi 38845 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38846 fi 38847 fi 38848 38849 # Now new_path has a complete unix path to the binary 38850 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38851 # Keep paths in /bin as-is, but remove trailing .exe if any 38852 new_path="${new_path/%.exe/}" 38853 # Do not save /bin paths to all_fixpath_prefixes! 38854 else 38855 # Not in mixed or Windows style, start by that. 38856 new_path=`cmd //c echo $new_path` 38857 38858 input_path="$new_path" 38859 # Check if we need to convert this using DOS-style short mode. If the path 38860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38861 # take no chances and rewrite it. 38862 # Note: m4 eats our [], so we need to use [ and ] instead. 38863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38864 if test "x$has_forbidden_chars" != x; then 38865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38866 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38867 fi 38868 38869 # Output is in $new_path 38870 38871 windows_path="$new_path" 38872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38873 unix_path=`$CYGPATH -u "$windows_path"` 38874 new_path="$unix_path" 38875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38877 new_path="$unix_path" 38878 fi 38879 38880 # remove trailing .exe if any 38881 new_path="${new_path/%.exe/}" 38882 38883 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38884 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38885 fi 38886 38887 else 38888 # We're on a unix platform. Hooray! :) 38889 # First separate the path from the arguments. This will split at the first 38890 # space. 38891 complete="$AR" 38892 path="${complete%% *}" 38893 tmp="$complete EOL" 38894 arguments="${tmp#* }" 38895 38896 # Cannot rely on the command "which" here since it doesn't always work. 38897 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38898 if test -z "$is_absolute_path"; then 38899 # Path to executable is not absolute. Find it. 38900 IFS_save="$IFS" 38901 IFS=: 38902 for p in $PATH; do 38903 if test -f "$p/$path" && test -x "$p/$path"; then 38904 new_path="$p/$path" 38905 break 38906 fi 38907 done 38908 IFS="$IFS_save" 38909 else 38910 # This is an absolute path, we can use it without further modifications. 38911 new_path="$path" 38912 fi 38913 38914 if test "x$new_path" = x; then 38915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38916 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38917 has_space=`$ECHO "$complete" | $GREP " "` 38918 if test "x$has_space" != x; then 38919 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38920 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38921 fi 38922 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38923 fi 38924 fi 38925 38926 # Now join together the path and the arguments once again 38927 if test "x$arguments" != xEOL; then 38928 new_complete="$new_path ${arguments% *}" 38929 else 38930 new_complete="$new_path" 38931 fi 38932 38933 if test "x$complete" != "x$new_complete"; then 38934 AR="$new_complete" 38935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38936 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38937 fi 38938 fi 38939 38940 38941 38942 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38943 38944 38945 # Publish this variable in the help. 38946 38947 38948 if [ -z "${LIPO+x}" ]; then 38949 # The variable is not set by user, try to locate tool using the code snippet 38950 for ac_prog in lipo 38951 do 38952 # Extract the first word of "$ac_prog", so it can be a program name with args. 38953 set dummy $ac_prog; ac_word=$2 38954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38955 $as_echo_n "checking for $ac_word... " >&6; } 38956 if ${ac_cv_path_LIPO+:} false; then : 38957 $as_echo_n "(cached) " >&6 38958 else 38959 case $LIPO in 38960 [\\/]* | ?:[\\/]*) 38961 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38962 ;; 38963 *) 38964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38965 for as_dir in $PATH 38966 do 38967 IFS=$as_save_IFS 38968 test -z "$as_dir" && as_dir=. 38969 for ac_exec_ext in '' $ac_executable_extensions; do 38970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38971 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38973 break 2 38974 fi 38975 done 38976 done 38977 IFS=$as_save_IFS 38978 38979 ;; 38980 esac 38981 fi 38982 LIPO=$ac_cv_path_LIPO 38983 if test -n "$LIPO"; then 38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38985 $as_echo "$LIPO" >&6; } 38986 else 38987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38988 $as_echo "no" >&6; } 38989 fi 38990 38991 38992 test -n "$LIPO" && break 38993 done 38994 38995 else 38996 # The variable is set, but is it from the command line or the environment? 38997 38998 # Try to remove the string !LIPO! from our list. 38999 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 39000 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39001 # If it failed, the variable was not from the command line. Ignore it, 39002 # but warn the user (except for BASH, which is always set by the calling BASH). 39003 if test "xLIPO" != xBASH; then 39004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 39005 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 39006 fi 39007 # Try to locate tool using the code snippet 39008 for ac_prog in lipo 39009 do 39010 # Extract the first word of "$ac_prog", so it can be a program name with args. 39011 set dummy $ac_prog; ac_word=$2 39012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39013 $as_echo_n "checking for $ac_word... " >&6; } 39014 if ${ac_cv_path_LIPO+:} false; then : 39015 $as_echo_n "(cached) " >&6 39016 else 39017 case $LIPO in 39018 [\\/]* | ?:[\\/]*) 39019 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39020 ;; 39021 *) 39022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39023 for as_dir in $PATH 39024 do 39025 IFS=$as_save_IFS 39026 test -z "$as_dir" && as_dir=. 39027 for ac_exec_ext in '' $ac_executable_extensions; do 39028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39029 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39031 break 2 39032 fi 39033 done 39034 done 39035 IFS=$as_save_IFS 39036 39037 ;; 39038 esac 39039 fi 39040 LIPO=$ac_cv_path_LIPO 39041 if test -n "$LIPO"; then 39042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39043 $as_echo "$LIPO" >&6; } 39044 else 39045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39046 $as_echo "no" >&6; } 39047 fi 39048 39049 39050 test -n "$LIPO" && break 39051 done 39052 39053 else 39054 # If it succeeded, then it was overridden by the user. We will use it 39055 # for the tool. 39056 39057 # First remove it from the list of overridden variables, so we can test 39058 # for unknown variables in the end. 39059 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39060 39061 # Check if we try to supply an empty value 39062 if test "x$LIPO" = x; then 39063 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 39064 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 39065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39066 $as_echo_n "checking for LIPO... " >&6; } 39067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39068 $as_echo "disabled" >&6; } 39069 else 39070 # Check if the provided tool contains a complete path. 39071 tool_specified="$LIPO" 39072 tool_basename="${tool_specified##*/}" 39073 if test "x$tool_basename" = "x$tool_specified"; then 39074 # A command without a complete path is provided, search $PATH. 39075 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 39076 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 39077 # Extract the first word of "$tool_basename", so it can be a program name with args. 39078 set dummy $tool_basename; ac_word=$2 39079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39080 $as_echo_n "checking for $ac_word... " >&6; } 39081 if ${ac_cv_path_LIPO+:} false; then : 39082 $as_echo_n "(cached) " >&6 39083 else 39084 case $LIPO in 39085 [\\/]* | ?:[\\/]*) 39086 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 39087 ;; 39088 *) 39089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39090 for as_dir in $PATH 39091 do 39092 IFS=$as_save_IFS 39093 test -z "$as_dir" && as_dir=. 39094 for ac_exec_ext in '' $ac_executable_extensions; do 39095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39096 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39098 break 2 39099 fi 39100 done 39101 done 39102 IFS=$as_save_IFS 39103 39104 ;; 39105 esac 39106 fi 39107 LIPO=$ac_cv_path_LIPO 39108 if test -n "$LIPO"; then 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39110 $as_echo "$LIPO" >&6; } 39111 else 39112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39113 $as_echo "no" >&6; } 39114 fi 39115 39116 39117 if test "x$LIPO" = x; then 39118 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39119 fi 39120 else 39121 # Otherwise we believe it is a complete path. Use it as it is. 39122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39123 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39125 $as_echo_n "checking for LIPO... " >&6; } 39126 if test ! -x "$tool_specified"; then 39127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39128 $as_echo "not found" >&6; } 39129 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39130 fi 39131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39132 $as_echo "$tool_specified" >&6; } 39133 fi 39134 fi 39135 fi 39136 39137 fi 39138 39139 39140 39141 # Only process if variable expands to non-empty 39142 39143 if test "x$LIPO" != x; then 39144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39145 39146 # First separate the path from the arguments. This will split at the first 39147 # space. 39148 complete="$LIPO" 39149 path="${complete%% *}" 39150 tmp="$complete EOL" 39151 arguments="${tmp#* }" 39152 39153 # Input might be given as Windows format, start by converting to 39154 # unix format. 39155 new_path=`$CYGPATH -u "$path"` 39156 39157 # Now try to locate executable using which 39158 new_path=`$WHICH "$new_path" 2> /dev/null` 39159 # bat and cmd files are not always considered executable in cygwin causing which 39160 # to not find them 39161 if test "x$new_path" = x \ 39162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39164 new_path=`$CYGPATH -u "$path"` 39165 fi 39166 if test "x$new_path" = x; then 39167 # Oops. Which didn't find the executable. 39168 # The splitting of arguments from the executable at a space might have been incorrect, 39169 # since paths with space are more likely in Windows. Give it another try with the whole 39170 # argument. 39171 path="$complete" 39172 arguments="EOL" 39173 new_path=`$CYGPATH -u "$path"` 39174 new_path=`$WHICH "$new_path" 2> /dev/null` 39175 # bat and cmd files are not always considered executable in cygwin causing which 39176 # to not find them 39177 if test "x$new_path" = x \ 39178 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39179 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39180 new_path=`$CYGPATH -u "$path"` 39181 fi 39182 if test "x$new_path" = x; then 39183 # It's still not found. Now this is an unrecoverable error. 39184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39185 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39186 has_space=`$ECHO "$complete" | $GREP " "` 39187 if test "x$has_space" != x; then 39188 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39189 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39190 fi 39191 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39192 fi 39193 fi 39194 39195 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39196 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39197 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39198 # "foo.exe" is OK but "foo" is an error. 39199 # 39200 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39201 # It is also a way to make sure we got the proper file name for the real test later on. 39202 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39203 if test "x$test_shortpath" = x; then 39204 # Short path failed, file does not exist as specified. 39205 # Try adding .exe or .cmd 39206 if test -f "${new_path}.exe"; then 39207 input_to_shortpath="${new_path}.exe" 39208 elif test -f "${new_path}.cmd"; then 39209 input_to_shortpath="${new_path}.cmd" 39210 else 39211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39212 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39213 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39214 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39215 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39216 fi 39217 else 39218 input_to_shortpath="$new_path" 39219 fi 39220 39221 # Call helper function which possibly converts this using DOS-style short mode. 39222 # If so, the updated path is stored in $new_path. 39223 new_path="$input_to_shortpath" 39224 39225 input_path="$input_to_shortpath" 39226 # Check if we need to convert this using DOS-style short mode. If the path 39227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39228 # take no chances and rewrite it. 39229 # Note: m4 eats our [], so we need to use [ and ] instead. 39230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39231 if test "x$has_forbidden_chars" != x; then 39232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39233 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39234 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39235 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39236 # Going to short mode and back again did indeed matter. Since short mode is 39237 # case insensitive, let's make it lowercase to improve readability. 39238 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39239 # Now convert it back to Unix-style (cygpath) 39240 input_path=`$CYGPATH -u "$shortmode_path"` 39241 new_path="$input_path" 39242 fi 39243 fi 39244 39245 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39246 if test "x$test_cygdrive_prefix" = x; then 39247 # As a simple fix, exclude /usr/bin since it's not a real path. 39248 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39249 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39250 # a path prefixed by /cygdrive for fixpath to work. 39251 new_path="$CYGWIN_ROOT_PATH$input_path" 39252 fi 39253 fi 39254 39255 # remove trailing .exe if any 39256 new_path="${new_path/%.exe/}" 39257 39258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39259 39260 # First separate the path from the arguments. This will split at the first 39261 # space. 39262 complete="$LIPO" 39263 path="${complete%% *}" 39264 tmp="$complete EOL" 39265 arguments="${tmp#* }" 39266 39267 # Input might be given as Windows format, start by converting to 39268 # unix format. 39269 new_path="$path" 39270 39271 windows_path="$new_path" 39272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39273 unix_path=`$CYGPATH -u "$windows_path"` 39274 new_path="$unix_path" 39275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39277 new_path="$unix_path" 39278 fi 39279 39280 39281 # Now try to locate executable using which 39282 new_path=`$WHICH "$new_path" 2> /dev/null` 39283 39284 if test "x$new_path" = x; then 39285 # Oops. Which didn't find the executable. 39286 # The splitting of arguments from the executable at a space might have been incorrect, 39287 # since paths with space are more likely in Windows. Give it another try with the whole 39288 # argument. 39289 path="$complete" 39290 arguments="EOL" 39291 new_path="$path" 39292 39293 windows_path="$new_path" 39294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39295 unix_path=`$CYGPATH -u "$windows_path"` 39296 new_path="$unix_path" 39297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39298 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39299 new_path="$unix_path" 39300 fi 39301 39302 39303 new_path=`$WHICH "$new_path" 2> /dev/null` 39304 # bat and cmd files are not always considered executable in MSYS causing which 39305 # to not find them 39306 if test "x$new_path" = x \ 39307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39309 new_path="$path" 39310 39311 windows_path="$new_path" 39312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39313 unix_path=`$CYGPATH -u "$windows_path"` 39314 new_path="$unix_path" 39315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39317 new_path="$unix_path" 39318 fi 39319 39320 fi 39321 39322 if test "x$new_path" = x; then 39323 # It's still not found. Now this is an unrecoverable error. 39324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39325 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39326 has_space=`$ECHO "$complete" | $GREP " "` 39327 if test "x$has_space" != x; then 39328 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39329 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39330 fi 39331 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39332 fi 39333 fi 39334 39335 # Now new_path has a complete unix path to the binary 39336 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39337 # Keep paths in /bin as-is, but remove trailing .exe if any 39338 new_path="${new_path/%.exe/}" 39339 # Do not save /bin paths to all_fixpath_prefixes! 39340 else 39341 # Not in mixed or Windows style, start by that. 39342 new_path=`cmd //c echo $new_path` 39343 39344 input_path="$new_path" 39345 # Check if we need to convert this using DOS-style short mode. If the path 39346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39347 # take no chances and rewrite it. 39348 # Note: m4 eats our [], so we need to use [ and ] instead. 39349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39350 if test "x$has_forbidden_chars" != x; then 39351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39352 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39353 fi 39354 39355 # Output is in $new_path 39356 39357 windows_path="$new_path" 39358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39359 unix_path=`$CYGPATH -u "$windows_path"` 39360 new_path="$unix_path" 39361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39363 new_path="$unix_path" 39364 fi 39365 39366 # remove trailing .exe if any 39367 new_path="${new_path/%.exe/}" 39368 39369 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39370 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39371 fi 39372 39373 else 39374 # We're on a unix platform. Hooray! :) 39375 # First separate the path from the arguments. This will split at the first 39376 # space. 39377 complete="$LIPO" 39378 path="${complete%% *}" 39379 tmp="$complete EOL" 39380 arguments="${tmp#* }" 39381 39382 # Cannot rely on the command "which" here since it doesn't always work. 39383 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39384 if test -z "$is_absolute_path"; then 39385 # Path to executable is not absolute. Find it. 39386 IFS_save="$IFS" 39387 IFS=: 39388 for p in $PATH; do 39389 if test -f "$p/$path" && test -x "$p/$path"; then 39390 new_path="$p/$path" 39391 break 39392 fi 39393 done 39394 IFS="$IFS_save" 39395 else 39396 # This is an absolute path, we can use it without further modifications. 39397 new_path="$path" 39398 fi 39399 39400 if test "x$new_path" = x; then 39401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39402 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39403 has_space=`$ECHO "$complete" | $GREP " "` 39404 if test "x$has_space" != x; then 39405 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39406 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39407 fi 39408 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39409 fi 39410 fi 39411 39412 # Now join together the path and the arguments once again 39413 if test "x$arguments" != xEOL; then 39414 new_complete="$new_path ${arguments% *}" 39415 else 39416 new_complete="$new_path" 39417 fi 39418 39419 if test "x$complete" != "x$new_complete"; then 39420 LIPO="$new_complete" 39421 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39422 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39423 fi 39424 fi 39425 39426 39427 39428 39429 # Publish this variable in the help. 39430 39431 39432 if [ -z "${OTOOL+x}" ]; then 39433 # The variable is not set by user, try to locate tool using the code snippet 39434 for ac_prog in otool 39435 do 39436 # Extract the first word of "$ac_prog", so it can be a program name with args. 39437 set dummy $ac_prog; ac_word=$2 39438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39439 $as_echo_n "checking for $ac_word... " >&6; } 39440 if ${ac_cv_path_OTOOL+:} false; then : 39441 $as_echo_n "(cached) " >&6 39442 else 39443 case $OTOOL in 39444 [\\/]* | ?:[\\/]*) 39445 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39446 ;; 39447 *) 39448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39449 for as_dir in $PATH 39450 do 39451 IFS=$as_save_IFS 39452 test -z "$as_dir" && as_dir=. 39453 for ac_exec_ext in '' $ac_executable_extensions; do 39454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39455 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39457 break 2 39458 fi 39459 done 39460 done 39461 IFS=$as_save_IFS 39462 39463 ;; 39464 esac 39465 fi 39466 OTOOL=$ac_cv_path_OTOOL 39467 if test -n "$OTOOL"; then 39468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39469 $as_echo "$OTOOL" >&6; } 39470 else 39471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39472 $as_echo "no" >&6; } 39473 fi 39474 39475 39476 test -n "$OTOOL" && break 39477 done 39478 39479 else 39480 # The variable is set, but is it from the command line or the environment? 39481 39482 # Try to remove the string !OTOOL! from our list. 39483 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 39484 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39485 # If it failed, the variable was not from the command line. Ignore it, 39486 # but warn the user (except for BASH, which is always set by the calling BASH). 39487 if test "xOTOOL" != xBASH; then 39488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 39489 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 39490 fi 39491 # Try to locate tool using the code snippet 39492 for ac_prog in otool 39493 do 39494 # Extract the first word of "$ac_prog", so it can be a program name with args. 39495 set dummy $ac_prog; ac_word=$2 39496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39497 $as_echo_n "checking for $ac_word... " >&6; } 39498 if ${ac_cv_path_OTOOL+:} false; then : 39499 $as_echo_n "(cached) " >&6 39500 else 39501 case $OTOOL in 39502 [\\/]* | ?:[\\/]*) 39503 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39504 ;; 39505 *) 39506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39507 for as_dir in $PATH 39508 do 39509 IFS=$as_save_IFS 39510 test -z "$as_dir" && as_dir=. 39511 for ac_exec_ext in '' $ac_executable_extensions; do 39512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39513 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39515 break 2 39516 fi 39517 done 39518 done 39519 IFS=$as_save_IFS 39520 39521 ;; 39522 esac 39523 fi 39524 OTOOL=$ac_cv_path_OTOOL 39525 if test -n "$OTOOL"; then 39526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39527 $as_echo "$OTOOL" >&6; } 39528 else 39529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39530 $as_echo "no" >&6; } 39531 fi 39532 39533 39534 test -n "$OTOOL" && break 39535 done 39536 39537 else 39538 # If it succeeded, then it was overridden by the user. We will use it 39539 # for the tool. 39540 39541 # First remove it from the list of overridden variables, so we can test 39542 # for unknown variables in the end. 39543 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39544 39545 # Check if we try to supply an empty value 39546 if test "x$OTOOL" = x; then 39547 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 39548 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 39549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39550 $as_echo_n "checking for OTOOL... " >&6; } 39551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39552 $as_echo "disabled" >&6; } 39553 else 39554 # Check if the provided tool contains a complete path. 39555 tool_specified="$OTOOL" 39556 tool_basename="${tool_specified##*/}" 39557 if test "x$tool_basename" = "x$tool_specified"; then 39558 # A command without a complete path is provided, search $PATH. 39559 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 39560 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 39561 # Extract the first word of "$tool_basename", so it can be a program name with args. 39562 set dummy $tool_basename; ac_word=$2 39563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39564 $as_echo_n "checking for $ac_word... " >&6; } 39565 if ${ac_cv_path_OTOOL+:} false; then : 39566 $as_echo_n "(cached) " >&6 39567 else 39568 case $OTOOL in 39569 [\\/]* | ?:[\\/]*) 39570 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39571 ;; 39572 *) 39573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39574 for as_dir in $PATH 39575 do 39576 IFS=$as_save_IFS 39577 test -z "$as_dir" && as_dir=. 39578 for ac_exec_ext in '' $ac_executable_extensions; do 39579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39580 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39582 break 2 39583 fi 39584 done 39585 done 39586 IFS=$as_save_IFS 39587 39588 ;; 39589 esac 39590 fi 39591 OTOOL=$ac_cv_path_OTOOL 39592 if test -n "$OTOOL"; then 39593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39594 $as_echo "$OTOOL" >&6; } 39595 else 39596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39597 $as_echo "no" >&6; } 39598 fi 39599 39600 39601 if test "x$OTOOL" = x; then 39602 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39603 fi 39604 else 39605 # Otherwise we believe it is a complete path. Use it as it is. 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 39607 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 39608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39609 $as_echo_n "checking for OTOOL... " >&6; } 39610 if test ! -x "$tool_specified"; then 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39612 $as_echo "not found" >&6; } 39613 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 39614 fi 39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39616 $as_echo "$tool_specified" >&6; } 39617 fi 39618 fi 39619 fi 39620 39621 fi 39622 39623 39624 39625 if test "x$OTOOL" = x; then 39626 as_fn_error $? "Could not find required tool for OTOOL" "$LINENO" 5 39627 fi 39628 39629 39630 39631 # Only process if variable expands to non-empty 39632 39633 if test "x$OTOOL" != x; then 39634 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39635 39636 # First separate the path from the arguments. This will split at the first 39637 # space. 39638 complete="$OTOOL" 39639 path="${complete%% *}" 39640 tmp="$complete EOL" 39641 arguments="${tmp#* }" 39642 39643 # Input might be given as Windows format, start by converting to 39644 # unix format. 39645 new_path=`$CYGPATH -u "$path"` 39646 39647 # Now try to locate executable using which 39648 new_path=`$WHICH "$new_path" 2> /dev/null` 39649 # bat and cmd files are not always considered executable in cygwin causing which 39650 # to not find them 39651 if test "x$new_path" = x \ 39652 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39653 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39654 new_path=`$CYGPATH -u "$path"` 39655 fi 39656 if test "x$new_path" = x; then 39657 # Oops. Which didn't find the executable. 39658 # The splitting of arguments from the executable at a space might have been incorrect, 39659 # since paths with space are more likely in Windows. Give it another try with the whole 39660 # argument. 39661 path="$complete" 39662 arguments="EOL" 39663 new_path=`$CYGPATH -u "$path"` 39664 new_path=`$WHICH "$new_path" 2> /dev/null` 39665 # bat and cmd files are not always considered executable in cygwin causing which 39666 # to not find them 39667 if test "x$new_path" = x \ 39668 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39669 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39670 new_path=`$CYGPATH -u "$path"` 39671 fi 39672 if test "x$new_path" = x; then 39673 # It's still not found. Now this is an unrecoverable error. 39674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39675 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39676 has_space=`$ECHO "$complete" | $GREP " "` 39677 if test "x$has_space" != x; then 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39679 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39680 fi 39681 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39682 fi 39683 fi 39684 39685 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39686 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39687 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39688 # "foo.exe" is OK but "foo" is an error. 39689 # 39690 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39691 # It is also a way to make sure we got the proper file name for the real test later on. 39692 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39693 if test "x$test_shortpath" = x; then 39694 # Short path failed, file does not exist as specified. 39695 # Try adding .exe or .cmd 39696 if test -f "${new_path}.exe"; then 39697 input_to_shortpath="${new_path}.exe" 39698 elif test -f "${new_path}.cmd"; then 39699 input_to_shortpath="${new_path}.cmd" 39700 else 39701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&5 39702 $as_echo "$as_me: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&6;} 39703 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39704 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39705 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39706 fi 39707 else 39708 input_to_shortpath="$new_path" 39709 fi 39710 39711 # Call helper function which possibly converts this using DOS-style short mode. 39712 # If so, the updated path is stored in $new_path. 39713 new_path="$input_to_shortpath" 39714 39715 input_path="$input_to_shortpath" 39716 # Check if we need to convert this using DOS-style short mode. If the path 39717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39718 # take no chances and rewrite it. 39719 # Note: m4 eats our [], so we need to use [ and ] instead. 39720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39721 if test "x$has_forbidden_chars" != x; then 39722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39723 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39724 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39725 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39726 # Going to short mode and back again did indeed matter. Since short mode is 39727 # case insensitive, let's make it lowercase to improve readability. 39728 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39729 # Now convert it back to Unix-style (cygpath) 39730 input_path=`$CYGPATH -u "$shortmode_path"` 39731 new_path="$input_path" 39732 fi 39733 fi 39734 39735 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39736 if test "x$test_cygdrive_prefix" = x; then 39737 # As a simple fix, exclude /usr/bin since it's not a real path. 39738 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39739 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39740 # a path prefixed by /cygdrive for fixpath to work. 39741 new_path="$CYGWIN_ROOT_PATH$input_path" 39742 fi 39743 fi 39744 39745 # remove trailing .exe if any 39746 new_path="${new_path/%.exe/}" 39747 39748 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39749 39750 # First separate the path from the arguments. This will split at the first 39751 # space. 39752 complete="$OTOOL" 39753 path="${complete%% *}" 39754 tmp="$complete EOL" 39755 arguments="${tmp#* }" 39756 39757 # Input might be given as Windows format, start by converting to 39758 # unix format. 39759 new_path="$path" 39760 39761 windows_path="$new_path" 39762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39763 unix_path=`$CYGPATH -u "$windows_path"` 39764 new_path="$unix_path" 39765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39767 new_path="$unix_path" 39768 fi 39769 39770 39771 # Now try to locate executable using which 39772 new_path=`$WHICH "$new_path" 2> /dev/null` 39773 39774 if test "x$new_path" = x; then 39775 # Oops. Which didn't find the executable. 39776 # The splitting of arguments from the executable at a space might have been incorrect, 39777 # since paths with space are more likely in Windows. Give it another try with the whole 39778 # argument. 39779 path="$complete" 39780 arguments="EOL" 39781 new_path="$path" 39782 39783 windows_path="$new_path" 39784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39785 unix_path=`$CYGPATH -u "$windows_path"` 39786 new_path="$unix_path" 39787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39789 new_path="$unix_path" 39790 fi 39791 39792 39793 new_path=`$WHICH "$new_path" 2> /dev/null` 39794 # bat and cmd files are not always considered executable in MSYS causing which 39795 # to not find them 39796 if test "x$new_path" = x \ 39797 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39798 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39799 new_path="$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 fi 39811 39812 if test "x$new_path" = x; then 39813 # It's still not found. Now this is an unrecoverable error. 39814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39815 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39816 has_space=`$ECHO "$complete" | $GREP " "` 39817 if test "x$has_space" != x; then 39818 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39819 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39820 fi 39821 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39822 fi 39823 fi 39824 39825 # Now new_path has a complete unix path to the binary 39826 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39827 # Keep paths in /bin as-is, but remove trailing .exe if any 39828 new_path="${new_path/%.exe/}" 39829 # Do not save /bin paths to all_fixpath_prefixes! 39830 else 39831 # Not in mixed or Windows style, start by that. 39832 new_path=`cmd //c echo $new_path` 39833 39834 input_path="$new_path" 39835 # Check if we need to convert this using DOS-style short mode. If the path 39836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39837 # take no chances and rewrite it. 39838 # Note: m4 eats our [], so we need to use [ and ] instead. 39839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39840 if test "x$has_forbidden_chars" != x; then 39841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39843 fi 39844 39845 # Output is in $new_path 39846 39847 windows_path="$new_path" 39848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39849 unix_path=`$CYGPATH -u "$windows_path"` 39850 new_path="$unix_path" 39851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39853 new_path="$unix_path" 39854 fi 39855 39856 # remove trailing .exe if any 39857 new_path="${new_path/%.exe/}" 39858 39859 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39860 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39861 fi 39862 39863 else 39864 # We're on a unix platform. Hooray! :) 39865 # First separate the path from the arguments. This will split at the first 39866 # space. 39867 complete="$OTOOL" 39868 path="${complete%% *}" 39869 tmp="$complete EOL" 39870 arguments="${tmp#* }" 39871 39872 # Cannot rely on the command "which" here since it doesn't always work. 39873 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39874 if test -z "$is_absolute_path"; then 39875 # Path to executable is not absolute. Find it. 39876 IFS_save="$IFS" 39877 IFS=: 39878 for p in $PATH; do 39879 if test -f "$p/$path" && test -x "$p/$path"; then 39880 new_path="$p/$path" 39881 break 39882 fi 39883 done 39884 IFS="$IFS_save" 39885 else 39886 # This is an absolute path, we can use it without further modifications. 39887 new_path="$path" 39888 fi 39889 39890 if test "x$new_path" = x; then 39891 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39892 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39893 has_space=`$ECHO "$complete" | $GREP " "` 39894 if test "x$has_space" != x; then 39895 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39896 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39897 fi 39898 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39899 fi 39900 fi 39901 39902 # Now join together the path and the arguments once again 39903 if test "x$arguments" != xEOL; then 39904 new_complete="$new_path ${arguments% *}" 39905 else 39906 new_complete="$new_path" 39907 fi 39908 39909 if test "x$complete" != "x$new_complete"; then 39910 OTOOL="$new_complete" 39911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OTOOL to \"$new_complete\"" >&5 39912 $as_echo "$as_me: Rewriting OTOOL to \"$new_complete\"" >&6;} 39913 fi 39914 fi 39915 39916 39917 39918 39919 # Publish this variable in the help. 39920 39921 39922 if [ -z "${INSTALL_NAME_TOOL+x}" ]; then 39923 # The variable is not set by user, try to locate tool using the code snippet 39924 for ac_prog in install_name_tool 39925 do 39926 # Extract the first word of "$ac_prog", so it can be a program name with args. 39927 set dummy $ac_prog; ac_word=$2 39928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39929 $as_echo_n "checking for $ac_word... " >&6; } 39930 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39931 $as_echo_n "(cached) " >&6 39932 else 39933 case $INSTALL_NAME_TOOL in 39934 [\\/]* | ?:[\\/]*) 39935 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39936 ;; 39937 *) 39938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39939 for as_dir in $PATH 39940 do 39941 IFS=$as_save_IFS 39942 test -z "$as_dir" && as_dir=. 39943 for ac_exec_ext in '' $ac_executable_extensions; do 39944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39945 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39947 break 2 39948 fi 39949 done 39950 done 39951 IFS=$as_save_IFS 39952 39953 ;; 39954 esac 39955 fi 39956 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 39957 if test -n "$INSTALL_NAME_TOOL"; then 39958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 39959 $as_echo "$INSTALL_NAME_TOOL" >&6; } 39960 else 39961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39962 $as_echo "no" >&6; } 39963 fi 39964 39965 39966 test -n "$INSTALL_NAME_TOOL" && break 39967 done 39968 39969 else 39970 # The variable is set, but is it from the command line or the environment? 39971 39972 # Try to remove the string !INSTALL_NAME_TOOL! from our list. 39973 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!INSTALL_NAME_TOOL!/} 39974 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39975 # If it failed, the variable was not from the command line. Ignore it, 39976 # but warn the user (except for BASH, which is always set by the calling BASH). 39977 if test "xINSTALL_NAME_TOOL" != xBASH; then 39978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&5 39979 $as_echo "$as_me: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&2;} 39980 fi 39981 # Try to locate tool using the code snippet 39982 for ac_prog in install_name_tool 39983 do 39984 # Extract the first word of "$ac_prog", so it can be a program name with args. 39985 set dummy $ac_prog; ac_word=$2 39986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39987 $as_echo_n "checking for $ac_word... " >&6; } 39988 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39989 $as_echo_n "(cached) " >&6 39990 else 39991 case $INSTALL_NAME_TOOL in 39992 [\\/]* | ?:[\\/]*) 39993 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39994 ;; 39995 *) 39996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39997 for as_dir in $PATH 39998 do 39999 IFS=$as_save_IFS 40000 test -z "$as_dir" && as_dir=. 40001 for ac_exec_ext in '' $ac_executable_extensions; do 40002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40003 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 40004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40005 break 2 40006 fi 40007 done 40008 done 40009 IFS=$as_save_IFS 40010 40011 ;; 40012 esac 40013 fi 40014 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 40015 if test -n "$INSTALL_NAME_TOOL"; then 40016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40017 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40018 else 40019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40020 $as_echo "no" >&6; } 40021 fi 40022 40023 40024 test -n "$INSTALL_NAME_TOOL" && break 40025 done 40026 40027 else 40028 # If it succeeded, then it was overridden by the user. We will use it 40029 # for the tool. 40030 40031 # First remove it from the list of overridden variables, so we can test 40032 # for unknown variables in the end. 40033 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40034 40035 # Check if we try to supply an empty value 40036 if test "x$INSTALL_NAME_TOOL" = x; then 40037 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&5 40038 $as_echo "$as_me: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&6;} 40039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40040 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 40042 $as_echo "disabled" >&6; } 40043 else 40044 # Check if the provided tool contains a complete path. 40045 tool_specified="$INSTALL_NAME_TOOL" 40046 tool_basename="${tool_specified##*/}" 40047 if test "x$tool_basename" = "x$tool_specified"; then 40048 # A command without a complete path is provided, search $PATH. 40049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&5 40050 $as_echo "$as_me: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&6;} 40051 # Extract the first word of "$tool_basename", so it can be a program name with args. 40052 set dummy $tool_basename; ac_word=$2 40053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40054 $as_echo_n "checking for $ac_word... " >&6; } 40055 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 40056 $as_echo_n "(cached) " >&6 40057 else 40058 case $INSTALL_NAME_TOOL in 40059 [\\/]* | ?:[\\/]*) 40060 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 40061 ;; 40062 *) 40063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40064 for as_dir in $PATH 40065 do 40066 IFS=$as_save_IFS 40067 test -z "$as_dir" && as_dir=. 40068 for ac_exec_ext in '' $ac_executable_extensions; do 40069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40070 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 40071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40072 break 2 40073 fi 40074 done 40075 done 40076 IFS=$as_save_IFS 40077 40078 ;; 40079 esac 40080 fi 40081 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 40082 if test -n "$INSTALL_NAME_TOOL"; then 40083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 40084 $as_echo "$INSTALL_NAME_TOOL" >&6; } 40085 else 40086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40087 $as_echo "no" >&6; } 40088 fi 40089 40090 40091 if test "x$INSTALL_NAME_TOOL" = x; then 40092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40093 fi 40094 else 40095 # Otherwise we believe it is a complete path. Use it as it is. 40096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&5 40097 $as_echo "$as_me: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&6;} 40098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40099 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40100 if test ! -x "$tool_specified"; then 40101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40102 $as_echo "not found" >&6; } 40103 as_fn_error $? "User supplied tool INSTALL_NAME_TOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 40104 fi 40105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40106 $as_echo "$tool_specified" >&6; } 40107 fi 40108 fi 40109 fi 40110 40111 fi 40112 40113 40114 40115 if test "x$INSTALL_NAME_TOOL" = x; then 40116 as_fn_error $? "Could not find required tool for INSTALL_NAME_TOOL" "$LINENO" 5 40117 fi 40118 40119 40120 40121 # Only process if variable expands to non-empty 40122 40123 if test "x$INSTALL_NAME_TOOL" != x; then 40124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40125 40126 # First separate the path from the arguments. This will split at the first 40127 # space. 40128 complete="$INSTALL_NAME_TOOL" 40129 path="${complete%% *}" 40130 tmp="$complete EOL" 40131 arguments="${tmp#* }" 40132 40133 # Input might be given as Windows format, start by converting to 40134 # unix format. 40135 new_path=`$CYGPATH -u "$path"` 40136 40137 # Now try to locate executable using which 40138 new_path=`$WHICH "$new_path" 2> /dev/null` 40139 # bat and cmd files are not always considered executable in cygwin causing which 40140 # to not find them 40141 if test "x$new_path" = x \ 40142 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40143 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40144 new_path=`$CYGPATH -u "$path"` 40145 fi 40146 if test "x$new_path" = x; then 40147 # Oops. Which didn't find the executable. 40148 # The splitting of arguments from the executable at a space might have been incorrect, 40149 # since paths with space are more likely in Windows. Give it another try with the whole 40150 # argument. 40151 path="$complete" 40152 arguments="EOL" 40153 new_path=`$CYGPATH -u "$path"` 40154 new_path=`$WHICH "$new_path" 2> /dev/null` 40155 # bat and cmd files are not always considered executable in cygwin causing which 40156 # to not find them 40157 if test "x$new_path" = x \ 40158 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40159 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40160 new_path=`$CYGPATH -u "$path"` 40161 fi 40162 if test "x$new_path" = x; then 40163 # It's still not found. Now this is an unrecoverable error. 40164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40165 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40166 has_space=`$ECHO "$complete" | $GREP " "` 40167 if test "x$has_space" != x; then 40168 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40169 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40170 fi 40171 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40172 fi 40173 fi 40174 40175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40178 # "foo.exe" is OK but "foo" is an error. 40179 # 40180 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40181 # It is also a way to make sure we got the proper file name for the real test later on. 40182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40183 if test "x$test_shortpath" = x; then 40184 # Short path failed, file does not exist as specified. 40185 # Try adding .exe or .cmd 40186 if test -f "${new_path}.exe"; then 40187 input_to_shortpath="${new_path}.exe" 40188 elif test -f "${new_path}.cmd"; then 40189 input_to_shortpath="${new_path}.cmd" 40190 else 40191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&5 40192 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&6;} 40193 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40194 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40195 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40196 fi 40197 else 40198 input_to_shortpath="$new_path" 40199 fi 40200 40201 # Call helper function which possibly converts this using DOS-style short mode. 40202 # If so, the updated path is stored in $new_path. 40203 new_path="$input_to_shortpath" 40204 40205 input_path="$input_to_shortpath" 40206 # Check if we need to convert this using DOS-style short mode. If the path 40207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40208 # take no chances and rewrite it. 40209 # Note: m4 eats our [], so we need to use [ and ] instead. 40210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40211 if test "x$has_forbidden_chars" != x; then 40212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40213 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40214 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40215 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40216 # Going to short mode and back again did indeed matter. Since short mode is 40217 # case insensitive, let's make it lowercase to improve readability. 40218 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40219 # Now convert it back to Unix-style (cygpath) 40220 input_path=`$CYGPATH -u "$shortmode_path"` 40221 new_path="$input_path" 40222 fi 40223 fi 40224 40225 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40226 if test "x$test_cygdrive_prefix" = x; then 40227 # As a simple fix, exclude /usr/bin since it's not a real path. 40228 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40229 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40230 # a path prefixed by /cygdrive for fixpath to work. 40231 new_path="$CYGWIN_ROOT_PATH$input_path" 40232 fi 40233 fi 40234 40235 # remove trailing .exe if any 40236 new_path="${new_path/%.exe/}" 40237 40238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40239 40240 # First separate the path from the arguments. This will split at the first 40241 # space. 40242 complete="$INSTALL_NAME_TOOL" 40243 path="${complete%% *}" 40244 tmp="$complete EOL" 40245 arguments="${tmp#* }" 40246 40247 # Input might be given as Windows format, start by converting to 40248 # unix format. 40249 new_path="$path" 40250 40251 windows_path="$new_path" 40252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40253 unix_path=`$CYGPATH -u "$windows_path"` 40254 new_path="$unix_path" 40255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40257 new_path="$unix_path" 40258 fi 40259 40260 40261 # Now try to locate executable using which 40262 new_path=`$WHICH "$new_path" 2> /dev/null` 40263 40264 if test "x$new_path" = x; then 40265 # Oops. Which didn't find the executable. 40266 # The splitting of arguments from the executable at a space might have been incorrect, 40267 # since paths with space are more likely in Windows. Give it another try with the whole 40268 # argument. 40269 path="$complete" 40270 arguments="EOL" 40271 new_path="$path" 40272 40273 windows_path="$new_path" 40274 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40275 unix_path=`$CYGPATH -u "$windows_path"` 40276 new_path="$unix_path" 40277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40278 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40279 new_path="$unix_path" 40280 fi 40281 40282 40283 new_path=`$WHICH "$new_path" 2> /dev/null` 40284 # bat and cmd files are not always considered executable in MSYS causing which 40285 # to not find them 40286 if test "x$new_path" = x \ 40287 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40289 new_path="$path" 40290 40291 windows_path="$new_path" 40292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40293 unix_path=`$CYGPATH -u "$windows_path"` 40294 new_path="$unix_path" 40295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40296 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40297 new_path="$unix_path" 40298 fi 40299 40300 fi 40301 40302 if test "x$new_path" = x; then 40303 # It's still not found. Now this is an unrecoverable error. 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40305 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40306 has_space=`$ECHO "$complete" | $GREP " "` 40307 if test "x$has_space" != x; then 40308 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40309 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40310 fi 40311 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40312 fi 40313 fi 40314 40315 # Now new_path has a complete unix path to the binary 40316 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40317 # Keep paths in /bin as-is, but remove trailing .exe if any 40318 new_path="${new_path/%.exe/}" 40319 # Do not save /bin paths to all_fixpath_prefixes! 40320 else 40321 # Not in mixed or Windows style, start by that. 40322 new_path=`cmd //c echo $new_path` 40323 40324 input_path="$new_path" 40325 # Check if we need to convert this using DOS-style short mode. If the path 40326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40327 # take no chances and rewrite it. 40328 # Note: m4 eats our [], so we need to use [ and ] instead. 40329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40330 if test "x$has_forbidden_chars" != x; then 40331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40332 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40333 fi 40334 40335 # Output is in $new_path 40336 40337 windows_path="$new_path" 40338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40339 unix_path=`$CYGPATH -u "$windows_path"` 40340 new_path="$unix_path" 40341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40343 new_path="$unix_path" 40344 fi 40345 40346 # remove trailing .exe if any 40347 new_path="${new_path/%.exe/}" 40348 40349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40351 fi 40352 40353 else 40354 # We're on a unix platform. Hooray! :) 40355 # First separate the path from the arguments. This will split at the first 40356 # space. 40357 complete="$INSTALL_NAME_TOOL" 40358 path="${complete%% *}" 40359 tmp="$complete EOL" 40360 arguments="${tmp#* }" 40361 40362 # Cannot rely on the command "which" here since it doesn't always work. 40363 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40364 if test -z "$is_absolute_path"; then 40365 # Path to executable is not absolute. Find it. 40366 IFS_save="$IFS" 40367 IFS=: 40368 for p in $PATH; do 40369 if test -f "$p/$path" && test -x "$p/$path"; then 40370 new_path="$p/$path" 40371 break 40372 fi 40373 done 40374 IFS="$IFS_save" 40375 else 40376 # This is an absolute path, we can use it without further modifications. 40377 new_path="$path" 40378 fi 40379 40380 if test "x$new_path" = x; then 40381 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40382 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40383 has_space=`$ECHO "$complete" | $GREP " "` 40384 if test "x$has_space" != x; then 40385 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40386 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40387 fi 40388 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40389 fi 40390 fi 40391 40392 # Now join together the path and the arguments once again 40393 if test "x$arguments" != xEOL; then 40394 new_complete="$new_path ${arguments% *}" 40395 else 40396 new_complete="$new_path" 40397 fi 40398 40399 if test "x$complete" != "x$new_complete"; then 40400 INSTALL_NAME_TOOL="$new_complete" 40401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&5 40402 $as_echo "$as_me: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&6;} 40403 fi 40404 fi 40405 40406 fi 40407 40408 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40409 # Extract the first word of "mt", so it can be a program name with args. 40410 set dummy mt; ac_word=$2 40411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40412 $as_echo_n "checking for $ac_word... " >&6; } 40413 if ${ac_cv_prog_MT+:} false; then : 40414 $as_echo_n "(cached) " >&6 40415 else 40416 if test -n "$MT"; then 40417 ac_cv_prog_MT="$MT" # Let the user override the test. 40418 else 40419 ac_prog_rejected=no 40420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40421 for as_dir in $PATH 40422 do 40423 IFS=$as_save_IFS 40424 test -z "$as_dir" && as_dir=. 40425 for ac_exec_ext in '' $ac_executable_extensions; do 40426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 40428 ac_prog_rejected=yes 40429 continue 40430 fi 40431 ac_cv_prog_MT="mt" 40432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40433 break 2 40434 fi 40435 done 40436 done 40437 IFS=$as_save_IFS 40438 40439 if test $ac_prog_rejected = yes; then 40440 # We found a bogon in the path, so make sure we never use it. 40441 set dummy $ac_cv_prog_MT 40442 shift 40443 if test $# != 0; then 40444 # We chose a different compiler from the bogus one. 40445 # However, it has the same basename, so the bogon will be chosen 40446 # first if we set MT to just the basename; use the full file name. 40447 shift 40448 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 40449 fi 40450 fi 40451 fi 40452 fi 40453 MT=$ac_cv_prog_MT 40454 if test -n "$MT"; then 40455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 40456 $as_echo "$MT" >&6; } 40457 else 40458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40459 $as_echo "no" >&6; } 40460 fi 40461 40462 40463 40464 # Only process if variable expands to non-empty 40465 40466 if test "x$MT" != x; then 40467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40468 40469 # First separate the path from the arguments. This will split at the first 40470 # space. 40471 complete="$MT" 40472 path="${complete%% *}" 40473 tmp="$complete EOL" 40474 arguments="${tmp#* }" 40475 40476 # Input might be given as Windows format, start by converting to 40477 # unix format. 40478 new_path=`$CYGPATH -u "$path"` 40479 40480 # Now try to locate executable using which 40481 new_path=`$WHICH "$new_path" 2> /dev/null` 40482 # bat and cmd files are not always considered executable in cygwin causing which 40483 # to not find them 40484 if test "x$new_path" = x \ 40485 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40486 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40487 new_path=`$CYGPATH -u "$path"` 40488 fi 40489 if test "x$new_path" = x; then 40490 # Oops. Which didn't find the executable. 40491 # The splitting of arguments from the executable at a space might have been incorrect, 40492 # since paths with space are more likely in Windows. Give it another try with the whole 40493 # argument. 40494 path="$complete" 40495 arguments="EOL" 40496 new_path=`$CYGPATH -u "$path"` 40497 new_path=`$WHICH "$new_path" 2> /dev/null` 40498 # bat and cmd files are not always considered executable in cygwin causing which 40499 # to not find them 40500 if test "x$new_path" = x \ 40501 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40502 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40503 new_path=`$CYGPATH -u "$path"` 40504 fi 40505 if test "x$new_path" = x; then 40506 # It's still not found. Now this is an unrecoverable error. 40507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40508 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40509 has_space=`$ECHO "$complete" | $GREP " "` 40510 if test "x$has_space" != x; then 40511 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40512 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40513 fi 40514 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40515 fi 40516 fi 40517 40518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40521 # "foo.exe" is OK but "foo" is an error. 40522 # 40523 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40524 # It is also a way to make sure we got the proper file name for the real test later on. 40525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40526 if test "x$test_shortpath" = x; then 40527 # Short path failed, file does not exist as specified. 40528 # Try adding .exe or .cmd 40529 if test -f "${new_path}.exe"; then 40530 input_to_shortpath="${new_path}.exe" 40531 elif test -f "${new_path}.cmd"; then 40532 input_to_shortpath="${new_path}.cmd" 40533 else 40534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 40535 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 40536 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40537 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40538 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40539 fi 40540 else 40541 input_to_shortpath="$new_path" 40542 fi 40543 40544 # Call helper function which possibly converts this using DOS-style short mode. 40545 # If so, the updated path is stored in $new_path. 40546 new_path="$input_to_shortpath" 40547 40548 input_path="$input_to_shortpath" 40549 # Check if we need to convert this using DOS-style short mode. If the path 40550 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40551 # take no chances and rewrite it. 40552 # Note: m4 eats our [], so we need to use [ and ] instead. 40553 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40554 if test "x$has_forbidden_chars" != x; then 40555 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40556 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40557 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40558 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40559 # Going to short mode and back again did indeed matter. Since short mode is 40560 # case insensitive, let's make it lowercase to improve readability. 40561 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40562 # Now convert it back to Unix-style (cygpath) 40563 input_path=`$CYGPATH -u "$shortmode_path"` 40564 new_path="$input_path" 40565 fi 40566 fi 40567 40568 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40569 if test "x$test_cygdrive_prefix" = x; then 40570 # As a simple fix, exclude /usr/bin since it's not a real path. 40571 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40572 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40573 # a path prefixed by /cygdrive for fixpath to work. 40574 new_path="$CYGWIN_ROOT_PATH$input_path" 40575 fi 40576 fi 40577 40578 # remove trailing .exe if any 40579 new_path="${new_path/%.exe/}" 40580 40581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40582 40583 # First separate the path from the arguments. This will split at the first 40584 # space. 40585 complete="$MT" 40586 path="${complete%% *}" 40587 tmp="$complete EOL" 40588 arguments="${tmp#* }" 40589 40590 # Input might be given as Windows format, start by converting to 40591 # unix format. 40592 new_path="$path" 40593 40594 windows_path="$new_path" 40595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40596 unix_path=`$CYGPATH -u "$windows_path"` 40597 new_path="$unix_path" 40598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40600 new_path="$unix_path" 40601 fi 40602 40603 40604 # Now try to locate executable using which 40605 new_path=`$WHICH "$new_path" 2> /dev/null` 40606 40607 if test "x$new_path" = x; then 40608 # Oops. Which didn't find the executable. 40609 # The splitting of arguments from the executable at a space might have been incorrect, 40610 # since paths with space are more likely in Windows. Give it another try with the whole 40611 # argument. 40612 path="$complete" 40613 arguments="EOL" 40614 new_path="$path" 40615 40616 windows_path="$new_path" 40617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40618 unix_path=`$CYGPATH -u "$windows_path"` 40619 new_path="$unix_path" 40620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40622 new_path="$unix_path" 40623 fi 40624 40625 40626 new_path=`$WHICH "$new_path" 2> /dev/null` 40627 # bat and cmd files are not always considered executable in MSYS causing which 40628 # to not find them 40629 if test "x$new_path" = x \ 40630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40632 new_path="$path" 40633 40634 windows_path="$new_path" 40635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40636 unix_path=`$CYGPATH -u "$windows_path"` 40637 new_path="$unix_path" 40638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40640 new_path="$unix_path" 40641 fi 40642 40643 fi 40644 40645 if test "x$new_path" = x; then 40646 # It's still not found. Now this is an unrecoverable error. 40647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40648 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40649 has_space=`$ECHO "$complete" | $GREP " "` 40650 if test "x$has_space" != x; then 40651 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40652 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40653 fi 40654 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40655 fi 40656 fi 40657 40658 # Now new_path has a complete unix path to the binary 40659 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40660 # Keep paths in /bin as-is, but remove trailing .exe if any 40661 new_path="${new_path/%.exe/}" 40662 # Do not save /bin paths to all_fixpath_prefixes! 40663 else 40664 # Not in mixed or Windows style, start by that. 40665 new_path=`cmd //c echo $new_path` 40666 40667 input_path="$new_path" 40668 # Check if we need to convert this using DOS-style short mode. If the path 40669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40670 # take no chances and rewrite it. 40671 # Note: m4 eats our [], so we need to use [ and ] instead. 40672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40673 if test "x$has_forbidden_chars" != x; then 40674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40675 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40676 fi 40677 40678 # Output is in $new_path 40679 40680 windows_path="$new_path" 40681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40682 unix_path=`$CYGPATH -u "$windows_path"` 40683 new_path="$unix_path" 40684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40686 new_path="$unix_path" 40687 fi 40688 40689 # remove trailing .exe if any 40690 new_path="${new_path/%.exe/}" 40691 40692 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40693 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40694 fi 40695 40696 else 40697 # We're on a unix platform. Hooray! :) 40698 # First separate the path from the arguments. This will split at the first 40699 # space. 40700 complete="$MT" 40701 path="${complete%% *}" 40702 tmp="$complete EOL" 40703 arguments="${tmp#* }" 40704 40705 # Cannot rely on the command "which" here since it doesn't always work. 40706 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40707 if test -z "$is_absolute_path"; then 40708 # Path to executable is not absolute. Find it. 40709 IFS_save="$IFS" 40710 IFS=: 40711 for p in $PATH; do 40712 if test -f "$p/$path" && test -x "$p/$path"; then 40713 new_path="$p/$path" 40714 break 40715 fi 40716 done 40717 IFS="$IFS_save" 40718 else 40719 # This is an absolute path, we can use it without further modifications. 40720 new_path="$path" 40721 fi 40722 40723 if test "x$new_path" = x; then 40724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40725 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40726 has_space=`$ECHO "$complete" | $GREP " "` 40727 if test "x$has_space" != x; then 40728 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40729 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40730 fi 40731 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40732 fi 40733 fi 40734 40735 # Now join together the path and the arguments once again 40736 if test "x$arguments" != xEOL; then 40737 new_complete="$new_path ${arguments% *}" 40738 else 40739 new_complete="$new_path" 40740 fi 40741 40742 if test "x$complete" != "x$new_complete"; then 40743 MT="$new_complete" 40744 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 40745 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 40746 fi 40747 fi 40748 40749 # Setup the resource compiler (RC) 40750 # Extract the first word of "rc", so it can be a program name with args. 40751 set dummy rc; ac_word=$2 40752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40753 $as_echo_n "checking for $ac_word... " >&6; } 40754 if ${ac_cv_prog_RC+:} false; then : 40755 $as_echo_n "(cached) " >&6 40756 else 40757 if test -n "$RC"; then 40758 ac_cv_prog_RC="$RC" # Let the user override the test. 40759 else 40760 ac_prog_rejected=no 40761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40762 for as_dir in $PATH 40763 do 40764 IFS=$as_save_IFS 40765 test -z "$as_dir" && as_dir=. 40766 for ac_exec_ext in '' $ac_executable_extensions; do 40767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40768 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 40769 ac_prog_rejected=yes 40770 continue 40771 fi 40772 ac_cv_prog_RC="rc" 40773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40774 break 2 40775 fi 40776 done 40777 done 40778 IFS=$as_save_IFS 40779 40780 if test $ac_prog_rejected = yes; then 40781 # We found a bogon in the path, so make sure we never use it. 40782 set dummy $ac_cv_prog_RC 40783 shift 40784 if test $# != 0; then 40785 # We chose a different compiler from the bogus one. 40786 # However, it has the same basename, so the bogon will be chosen 40787 # first if we set RC to just the basename; use the full file name. 40788 shift 40789 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 40790 fi 40791 fi 40792 fi 40793 fi 40794 RC=$ac_cv_prog_RC 40795 if test -n "$RC"; then 40796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 40797 $as_echo "$RC" >&6; } 40798 else 40799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40800 $as_echo "no" >&6; } 40801 fi 40802 40803 40804 40805 # Only process if variable expands to non-empty 40806 40807 if test "x$RC" != x; then 40808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40809 40810 # First separate the path from the arguments. This will split at the first 40811 # space. 40812 complete="$RC" 40813 path="${complete%% *}" 40814 tmp="$complete EOL" 40815 arguments="${tmp#* }" 40816 40817 # Input might be given as Windows format, start by converting to 40818 # unix format. 40819 new_path=`$CYGPATH -u "$path"` 40820 40821 # Now try to locate executable using which 40822 new_path=`$WHICH "$new_path" 2> /dev/null` 40823 # bat and cmd files are not always considered executable in cygwin causing which 40824 # to not find them 40825 if test "x$new_path" = x \ 40826 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40827 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40828 new_path=`$CYGPATH -u "$path"` 40829 fi 40830 if test "x$new_path" = x; then 40831 # Oops. Which didn't find the executable. 40832 # The splitting of arguments from the executable at a space might have been incorrect, 40833 # since paths with space are more likely in Windows. Give it another try with the whole 40834 # argument. 40835 path="$complete" 40836 arguments="EOL" 40837 new_path=`$CYGPATH -u "$path"` 40838 new_path=`$WHICH "$new_path" 2> /dev/null` 40839 # bat and cmd files are not always considered executable in cygwin causing which 40840 # to not find them 40841 if test "x$new_path" = x \ 40842 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40843 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40844 new_path=`$CYGPATH -u "$path"` 40845 fi 40846 if test "x$new_path" = x; then 40847 # It's still not found. Now this is an unrecoverable error. 40848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40849 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40850 has_space=`$ECHO "$complete" | $GREP " "` 40851 if test "x$has_space" != x; then 40852 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40853 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40854 fi 40855 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40856 fi 40857 fi 40858 40859 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40860 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40861 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40862 # "foo.exe" is OK but "foo" is an error. 40863 # 40864 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40865 # It is also a way to make sure we got the proper file name for the real test later on. 40866 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40867 if test "x$test_shortpath" = x; then 40868 # Short path failed, file does not exist as specified. 40869 # Try adding .exe or .cmd 40870 if test -f "${new_path}.exe"; then 40871 input_to_shortpath="${new_path}.exe" 40872 elif test -f "${new_path}.cmd"; then 40873 input_to_shortpath="${new_path}.cmd" 40874 else 40875 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40876 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40877 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40878 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40879 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40880 fi 40881 else 40882 input_to_shortpath="$new_path" 40883 fi 40884 40885 # Call helper function which possibly converts this using DOS-style short mode. 40886 # If so, the updated path is stored in $new_path. 40887 new_path="$input_to_shortpath" 40888 40889 input_path="$input_to_shortpath" 40890 # Check if we need to convert this using DOS-style short mode. If the path 40891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40892 # take no chances and rewrite it. 40893 # Note: m4 eats our [], so we need to use [ and ] instead. 40894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40895 if test "x$has_forbidden_chars" != x; then 40896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40897 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40898 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40899 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40900 # Going to short mode and back again did indeed matter. Since short mode is 40901 # case insensitive, let's make it lowercase to improve readability. 40902 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40903 # Now convert it back to Unix-style (cygpath) 40904 input_path=`$CYGPATH -u "$shortmode_path"` 40905 new_path="$input_path" 40906 fi 40907 fi 40908 40909 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40910 if test "x$test_cygdrive_prefix" = x; then 40911 # As a simple fix, exclude /usr/bin since it's not a real path. 40912 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40913 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40914 # a path prefixed by /cygdrive for fixpath to work. 40915 new_path="$CYGWIN_ROOT_PATH$input_path" 40916 fi 40917 fi 40918 40919 # remove trailing .exe if any 40920 new_path="${new_path/%.exe/}" 40921 40922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40923 40924 # First separate the path from the arguments. This will split at the first 40925 # space. 40926 complete="$RC" 40927 path="${complete%% *}" 40928 tmp="$complete EOL" 40929 arguments="${tmp#* }" 40930 40931 # Input might be given as Windows format, start by converting to 40932 # unix format. 40933 new_path="$path" 40934 40935 windows_path="$new_path" 40936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40937 unix_path=`$CYGPATH -u "$windows_path"` 40938 new_path="$unix_path" 40939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40940 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40941 new_path="$unix_path" 40942 fi 40943 40944 40945 # Now try to locate executable using which 40946 new_path=`$WHICH "$new_path" 2> /dev/null` 40947 40948 if test "x$new_path" = x; then 40949 # Oops. Which didn't find the executable. 40950 # The splitting of arguments from the executable at a space might have been incorrect, 40951 # since paths with space are more likely in Windows. Give it another try with the whole 40952 # argument. 40953 path="$complete" 40954 arguments="EOL" 40955 new_path="$path" 40956 40957 windows_path="$new_path" 40958 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40959 unix_path=`$CYGPATH -u "$windows_path"` 40960 new_path="$unix_path" 40961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40962 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40963 new_path="$unix_path" 40964 fi 40965 40966 40967 new_path=`$WHICH "$new_path" 2> /dev/null` 40968 # bat and cmd files are not always considered executable in MSYS causing which 40969 # to not find them 40970 if test "x$new_path" = x \ 40971 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40972 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40973 new_path="$path" 40974 40975 windows_path="$new_path" 40976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40977 unix_path=`$CYGPATH -u "$windows_path"` 40978 new_path="$unix_path" 40979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40980 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40981 new_path="$unix_path" 40982 fi 40983 40984 fi 40985 40986 if test "x$new_path" = x; then 40987 # It's still not found. Now this is an unrecoverable error. 40988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40989 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40990 has_space=`$ECHO "$complete" | $GREP " "` 40991 if test "x$has_space" != x; then 40992 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40994 fi 40995 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40996 fi 40997 fi 40998 40999 # Now new_path has a complete unix path to the binary 41000 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41001 # Keep paths in /bin as-is, but remove trailing .exe if any 41002 new_path="${new_path/%.exe/}" 41003 # Do not save /bin paths to all_fixpath_prefixes! 41004 else 41005 # Not in mixed or Windows style, start by that. 41006 new_path=`cmd //c echo $new_path` 41007 41008 input_path="$new_path" 41009 # Check if we need to convert this using DOS-style short mode. If the path 41010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41011 # take no chances and rewrite it. 41012 # Note: m4 eats our [], so we need to use [ and ] instead. 41013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41014 if test "x$has_forbidden_chars" != x; then 41015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41016 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41017 fi 41018 41019 # Output is in $new_path 41020 41021 windows_path="$new_path" 41022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41023 unix_path=`$CYGPATH -u "$windows_path"` 41024 new_path="$unix_path" 41025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41027 new_path="$unix_path" 41028 fi 41029 41030 # remove trailing .exe if any 41031 new_path="${new_path/%.exe/}" 41032 41033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41035 fi 41036 41037 else 41038 # We're on a unix platform. Hooray! :) 41039 # First separate the path from the arguments. This will split at the first 41040 # space. 41041 complete="$RC" 41042 path="${complete%% *}" 41043 tmp="$complete EOL" 41044 arguments="${tmp#* }" 41045 41046 # Cannot rely on the command "which" here since it doesn't always work. 41047 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41048 if test -z "$is_absolute_path"; then 41049 # Path to executable is not absolute. Find it. 41050 IFS_save="$IFS" 41051 IFS=: 41052 for p in $PATH; do 41053 if test -f "$p/$path" && test -x "$p/$path"; then 41054 new_path="$p/$path" 41055 break 41056 fi 41057 done 41058 IFS="$IFS_save" 41059 else 41060 # This is an absolute path, we can use it without further modifications. 41061 new_path="$path" 41062 fi 41063 41064 if test "x$new_path" = x; then 41065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 41066 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 41067 has_space=`$ECHO "$complete" | $GREP " "` 41068 if test "x$has_space" != x; then 41069 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41070 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41071 fi 41072 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 41073 fi 41074 fi 41075 41076 # Now join together the path and the arguments once again 41077 if test "x$arguments" != xEOL; then 41078 new_complete="$new_path ${arguments% *}" 41079 else 41080 new_complete="$new_path" 41081 fi 41082 41083 if test "x$complete" != "x$new_complete"; then 41084 RC="$new_complete" 41085 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 41086 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 41087 fi 41088 fi 41089 41090 # Extract the first word of "dumpbin", so it can be a program name with args. 41091 set dummy dumpbin; ac_word=$2 41092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41093 $as_echo_n "checking for $ac_word... " >&6; } 41094 if ${ac_cv_prog_DUMPBIN+:} false; then : 41095 $as_echo_n "(cached) " >&6 41096 else 41097 if test -n "$DUMPBIN"; then 41098 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 41099 else 41100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41101 for as_dir in $PATH 41102 do 41103 IFS=$as_save_IFS 41104 test -z "$as_dir" && as_dir=. 41105 for ac_exec_ext in '' $ac_executable_extensions; do 41106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41107 ac_cv_prog_DUMPBIN="dumpbin" 41108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41109 break 2 41110 fi 41111 done 41112 done 41113 IFS=$as_save_IFS 41114 41115 fi 41116 fi 41117 DUMPBIN=$ac_cv_prog_DUMPBIN 41118 if test -n "$DUMPBIN"; then 41119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 41120 $as_echo "$DUMPBIN" >&6; } 41121 else 41122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41123 $as_echo "no" >&6; } 41124 fi 41125 41126 41127 41128 # Only process if variable expands to non-empty 41129 41130 if test "x$DUMPBIN" != x; then 41131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41132 41133 # First separate the path from the arguments. This will split at the first 41134 # space. 41135 complete="$DUMPBIN" 41136 path="${complete%% *}" 41137 tmp="$complete EOL" 41138 arguments="${tmp#* }" 41139 41140 # Input might be given as Windows format, start by converting to 41141 # unix format. 41142 new_path=`$CYGPATH -u "$path"` 41143 41144 # Now try to locate executable using which 41145 new_path=`$WHICH "$new_path" 2> /dev/null` 41146 # bat and cmd files are not always considered executable in cygwin causing which 41147 # to not find them 41148 if test "x$new_path" = x \ 41149 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41150 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41151 new_path=`$CYGPATH -u "$path"` 41152 fi 41153 if test "x$new_path" = x; then 41154 # Oops. Which didn't find the executable. 41155 # The splitting of arguments from the executable at a space might have been incorrect, 41156 # since paths with space are more likely in Windows. Give it another try with the whole 41157 # argument. 41158 path="$complete" 41159 arguments="EOL" 41160 new_path=`$CYGPATH -u "$path"` 41161 new_path=`$WHICH "$new_path" 2> /dev/null` 41162 # bat and cmd files are not always considered executable in cygwin causing which 41163 # to not find them 41164 if test "x$new_path" = x \ 41165 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41166 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41167 new_path=`$CYGPATH -u "$path"` 41168 fi 41169 if test "x$new_path" = x; then 41170 # It's still not found. Now this is an unrecoverable error. 41171 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41172 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41173 has_space=`$ECHO "$complete" | $GREP " "` 41174 if test "x$has_space" != x; then 41175 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41176 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41177 fi 41178 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41179 fi 41180 fi 41181 41182 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41183 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41184 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41185 # "foo.exe" is OK but "foo" is an error. 41186 # 41187 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41188 # It is also a way to make sure we got the proper file name for the real test later on. 41189 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41190 if test "x$test_shortpath" = x; then 41191 # Short path failed, file does not exist as specified. 41192 # Try adding .exe or .cmd 41193 if test -f "${new_path}.exe"; then 41194 input_to_shortpath="${new_path}.exe" 41195 elif test -f "${new_path}.cmd"; then 41196 input_to_shortpath="${new_path}.cmd" 41197 else 41198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 41199 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 41200 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41201 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41202 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41203 fi 41204 else 41205 input_to_shortpath="$new_path" 41206 fi 41207 41208 # Call helper function which possibly converts this using DOS-style short mode. 41209 # If so, the updated path is stored in $new_path. 41210 new_path="$input_to_shortpath" 41211 41212 input_path="$input_to_shortpath" 41213 # Check if we need to convert this using DOS-style short mode. If the path 41214 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41215 # take no chances and rewrite it. 41216 # Note: m4 eats our [], so we need to use [ and ] instead. 41217 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41218 if test "x$has_forbidden_chars" != x; then 41219 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41220 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41221 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41222 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41223 # Going to short mode and back again did indeed matter. Since short mode is 41224 # case insensitive, let's make it lowercase to improve readability. 41225 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41226 # Now convert it back to Unix-style (cygpath) 41227 input_path=`$CYGPATH -u "$shortmode_path"` 41228 new_path="$input_path" 41229 fi 41230 fi 41231 41232 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41233 if test "x$test_cygdrive_prefix" = x; then 41234 # As a simple fix, exclude /usr/bin since it's not a real path. 41235 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41236 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41237 # a path prefixed by /cygdrive for fixpath to work. 41238 new_path="$CYGWIN_ROOT_PATH$input_path" 41239 fi 41240 fi 41241 41242 # remove trailing .exe if any 41243 new_path="${new_path/%.exe/}" 41244 41245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41246 41247 # First separate the path from the arguments. This will split at the first 41248 # space. 41249 complete="$DUMPBIN" 41250 path="${complete%% *}" 41251 tmp="$complete EOL" 41252 arguments="${tmp#* }" 41253 41254 # Input might be given as Windows format, start by converting to 41255 # unix format. 41256 new_path="$path" 41257 41258 windows_path="$new_path" 41259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41260 unix_path=`$CYGPATH -u "$windows_path"` 41261 new_path="$unix_path" 41262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41264 new_path="$unix_path" 41265 fi 41266 41267 41268 # Now try to locate executable using which 41269 new_path=`$WHICH "$new_path" 2> /dev/null` 41270 41271 if test "x$new_path" = x; then 41272 # Oops. Which didn't find the executable. 41273 # The splitting of arguments from the executable at a space might have been incorrect, 41274 # since paths with space are more likely in Windows. Give it another try with the whole 41275 # argument. 41276 path="$complete" 41277 arguments="EOL" 41278 new_path="$path" 41279 41280 windows_path="$new_path" 41281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41282 unix_path=`$CYGPATH -u "$windows_path"` 41283 new_path="$unix_path" 41284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41286 new_path="$unix_path" 41287 fi 41288 41289 41290 new_path=`$WHICH "$new_path" 2> /dev/null` 41291 # bat and cmd files are not always considered executable in MSYS causing which 41292 # to not find them 41293 if test "x$new_path" = x \ 41294 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41295 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41296 new_path="$path" 41297 41298 windows_path="$new_path" 41299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41300 unix_path=`$CYGPATH -u "$windows_path"` 41301 new_path="$unix_path" 41302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41304 new_path="$unix_path" 41305 fi 41306 41307 fi 41308 41309 if test "x$new_path" = x; then 41310 # It's still not found. Now this is an unrecoverable error. 41311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41312 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41313 has_space=`$ECHO "$complete" | $GREP " "` 41314 if test "x$has_space" != x; then 41315 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41316 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41317 fi 41318 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41319 fi 41320 fi 41321 41322 # Now new_path has a complete unix path to the binary 41323 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41324 # Keep paths in /bin as-is, but remove trailing .exe if any 41325 new_path="${new_path/%.exe/}" 41326 # Do not save /bin paths to all_fixpath_prefixes! 41327 else 41328 # Not in mixed or Windows style, start by that. 41329 new_path=`cmd //c echo $new_path` 41330 41331 input_path="$new_path" 41332 # Check if we need to convert this using DOS-style short mode. If the path 41333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41334 # take no chances and rewrite it. 41335 # Note: m4 eats our [], so we need to use [ and ] instead. 41336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41337 if test "x$has_forbidden_chars" != x; then 41338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41339 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41340 fi 41341 41342 # Output is in $new_path 41343 41344 windows_path="$new_path" 41345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41346 unix_path=`$CYGPATH -u "$windows_path"` 41347 new_path="$unix_path" 41348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41350 new_path="$unix_path" 41351 fi 41352 41353 # remove trailing .exe if any 41354 new_path="${new_path/%.exe/}" 41355 41356 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41357 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41358 fi 41359 41360 else 41361 # We're on a unix platform. Hooray! :) 41362 # First separate the path from the arguments. This will split at the first 41363 # space. 41364 complete="$DUMPBIN" 41365 path="${complete%% *}" 41366 tmp="$complete EOL" 41367 arguments="${tmp#* }" 41368 41369 # Cannot rely on the command "which" here since it doesn't always work. 41370 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41371 if test -z "$is_absolute_path"; then 41372 # Path to executable is not absolute. Find it. 41373 IFS_save="$IFS" 41374 IFS=: 41375 for p in $PATH; do 41376 if test -f "$p/$path" && test -x "$p/$path"; then 41377 new_path="$p/$path" 41378 break 41379 fi 41380 done 41381 IFS="$IFS_save" 41382 else 41383 # This is an absolute path, we can use it without further modifications. 41384 new_path="$path" 41385 fi 41386 41387 if test "x$new_path" = x; then 41388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41389 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41390 has_space=`$ECHO "$complete" | $GREP " "` 41391 if test "x$has_space" != x; then 41392 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41393 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41394 fi 41395 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41396 fi 41397 fi 41398 41399 # Now join together the path and the arguments once again 41400 if test "x$arguments" != xEOL; then 41401 new_complete="$new_path ${arguments% *}" 41402 else 41403 new_complete="$new_path" 41404 fi 41405 41406 if test "x$complete" != "x$new_complete"; then 41407 DUMPBIN="$new_complete" 41408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 41409 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 41410 fi 41411 fi 41412 41413 # We need to check for 'msbuild.exe' because at the place where we expect to 41414 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 41415 # won't find the 'msbuild.exe' executable in that case (and the 41416 # 'ac_executable_extensions' is unusable due to performance reasons). 41417 # Notice that we intentionally don't fix up the path to MSBUILD because we 41418 # will call it in a DOS shell during freetype detection on Windows (see 41419 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 41420 # Extract the first word of "msbuild.exe", so it can be a program name with args. 41421 set dummy msbuild.exe; ac_word=$2 41422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41423 $as_echo_n "checking for $ac_word... " >&6; } 41424 if ${ac_cv_prog_MSBUILD+:} false; then : 41425 $as_echo_n "(cached) " >&6 41426 else 41427 if test -n "$MSBUILD"; then 41428 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 41429 else 41430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41431 for as_dir in $PATH 41432 do 41433 IFS=$as_save_IFS 41434 test -z "$as_dir" && as_dir=. 41435 for ac_exec_ext in '' $ac_executable_extensions; do 41436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41437 ac_cv_prog_MSBUILD="msbuild.exe" 41438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41439 break 2 41440 fi 41441 done 41442 done 41443 IFS=$as_save_IFS 41444 41445 fi 41446 fi 41447 MSBUILD=$ac_cv_prog_MSBUILD 41448 if test -n "$MSBUILD"; then 41449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 41450 $as_echo "$MSBUILD" >&6; } 41451 else 41452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41453 $as_echo "no" >&6; } 41454 fi 41455 41456 41457 fi 41458 41459 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41460 41461 41462 # Publish this variable in the help. 41463 41464 41465 if [ -z "${STRIP+x}" ]; then 41466 # The variable is not set by user, try to locate tool using the code snippet 41467 for ac_prog in strip 41468 do 41469 # Extract the first word of "$ac_prog", so it can be a program name with args. 41470 set dummy $ac_prog; ac_word=$2 41471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41472 $as_echo_n "checking for $ac_word... " >&6; } 41473 if ${ac_cv_path_STRIP+:} false; then : 41474 $as_echo_n "(cached) " >&6 41475 else 41476 case $STRIP in 41477 [\\/]* | ?:[\\/]*) 41478 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41479 ;; 41480 *) 41481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41482 for as_dir in $PATH 41483 do 41484 IFS=$as_save_IFS 41485 test -z "$as_dir" && as_dir=. 41486 for ac_exec_ext in '' $ac_executable_extensions; do 41487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41488 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41490 break 2 41491 fi 41492 done 41493 done 41494 IFS=$as_save_IFS 41495 41496 ;; 41497 esac 41498 fi 41499 STRIP=$ac_cv_path_STRIP 41500 if test -n "$STRIP"; then 41501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41502 $as_echo "$STRIP" >&6; } 41503 else 41504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41505 $as_echo "no" >&6; } 41506 fi 41507 41508 41509 test -n "$STRIP" && break 41510 done 41511 41512 else 41513 # The variable is set, but is it from the command line or the environment? 41514 41515 # Try to remove the string !STRIP! from our list. 41516 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41517 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41518 # If it failed, the variable was not from the command line. Ignore it, 41519 # but warn the user (except for BASH, which is always set by the calling BASH). 41520 if test "xSTRIP" != xBASH; then 41521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41522 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41523 fi 41524 # Try to locate tool using the code snippet 41525 for ac_prog in strip 41526 do 41527 # Extract the first word of "$ac_prog", so it can be a program name with args. 41528 set dummy $ac_prog; ac_word=$2 41529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41530 $as_echo_n "checking for $ac_word... " >&6; } 41531 if ${ac_cv_path_STRIP+:} false; then : 41532 $as_echo_n "(cached) " >&6 41533 else 41534 case $STRIP in 41535 [\\/]* | ?:[\\/]*) 41536 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41537 ;; 41538 *) 41539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41540 for as_dir in $PATH 41541 do 41542 IFS=$as_save_IFS 41543 test -z "$as_dir" && as_dir=. 41544 for ac_exec_ext in '' $ac_executable_extensions; do 41545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41546 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41548 break 2 41549 fi 41550 done 41551 done 41552 IFS=$as_save_IFS 41553 41554 ;; 41555 esac 41556 fi 41557 STRIP=$ac_cv_path_STRIP 41558 if test -n "$STRIP"; then 41559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41560 $as_echo "$STRIP" >&6; } 41561 else 41562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41563 $as_echo "no" >&6; } 41564 fi 41565 41566 41567 test -n "$STRIP" && break 41568 done 41569 41570 else 41571 # If it succeeded, then it was overridden by the user. We will use it 41572 # for the tool. 41573 41574 # First remove it from the list of overridden variables, so we can test 41575 # for unknown variables in the end. 41576 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41577 41578 # Check if we try to supply an empty value 41579 if test "x$STRIP" = x; then 41580 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41581 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41583 $as_echo_n "checking for STRIP... " >&6; } 41584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41585 $as_echo "disabled" >&6; } 41586 else 41587 # Check if the provided tool contains a complete path. 41588 tool_specified="$STRIP" 41589 tool_basename="${tool_specified##*/}" 41590 if test "x$tool_basename" = "x$tool_specified"; then 41591 # A command without a complete path is provided, search $PATH. 41592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41593 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41594 # Extract the first word of "$tool_basename", so it can be a program name with args. 41595 set dummy $tool_basename; ac_word=$2 41596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41597 $as_echo_n "checking for $ac_word... " >&6; } 41598 if ${ac_cv_path_STRIP+:} false; then : 41599 $as_echo_n "(cached) " >&6 41600 else 41601 case $STRIP in 41602 [\\/]* | ?:[\\/]*) 41603 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41604 ;; 41605 *) 41606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41607 for as_dir in $PATH 41608 do 41609 IFS=$as_save_IFS 41610 test -z "$as_dir" && as_dir=. 41611 for ac_exec_ext in '' $ac_executable_extensions; do 41612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41613 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41615 break 2 41616 fi 41617 done 41618 done 41619 IFS=$as_save_IFS 41620 41621 ;; 41622 esac 41623 fi 41624 STRIP=$ac_cv_path_STRIP 41625 if test -n "$STRIP"; then 41626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41627 $as_echo "$STRIP" >&6; } 41628 else 41629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41630 $as_echo "no" >&6; } 41631 fi 41632 41633 41634 if test "x$STRIP" = x; then 41635 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41636 fi 41637 else 41638 # Otherwise we believe it is a complete path. Use it as it is. 41639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41640 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41642 $as_echo_n "checking for STRIP... " >&6; } 41643 if test ! -x "$tool_specified"; then 41644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41645 $as_echo "not found" >&6; } 41646 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41647 fi 41648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41649 $as_echo "$tool_specified" >&6; } 41650 fi 41651 fi 41652 fi 41653 41654 fi 41655 41656 41657 41658 # Only process if variable expands to non-empty 41659 41660 if test "x$STRIP" != x; then 41661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41662 41663 # First separate the path from the arguments. This will split at the first 41664 # space. 41665 complete="$STRIP" 41666 path="${complete%% *}" 41667 tmp="$complete EOL" 41668 arguments="${tmp#* }" 41669 41670 # Input might be given as Windows format, start by converting to 41671 # unix format. 41672 new_path=`$CYGPATH -u "$path"` 41673 41674 # Now try to locate executable using which 41675 new_path=`$WHICH "$new_path" 2> /dev/null` 41676 # bat and cmd files are not always considered executable in cygwin causing which 41677 # to not find them 41678 if test "x$new_path" = x \ 41679 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41680 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41681 new_path=`$CYGPATH -u "$path"` 41682 fi 41683 if test "x$new_path" = x; then 41684 # Oops. Which didn't find the executable. 41685 # The splitting of arguments from the executable at a space might have been incorrect, 41686 # since paths with space are more likely in Windows. Give it another try with the whole 41687 # argument. 41688 path="$complete" 41689 arguments="EOL" 41690 new_path=`$CYGPATH -u "$path"` 41691 new_path=`$WHICH "$new_path" 2> /dev/null` 41692 # bat and cmd files are not always considered executable in cygwin causing which 41693 # to not find them 41694 if test "x$new_path" = x \ 41695 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41696 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41697 new_path=`$CYGPATH -u "$path"` 41698 fi 41699 if test "x$new_path" = x; then 41700 # It's still not found. Now this is an unrecoverable error. 41701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41702 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41703 has_space=`$ECHO "$complete" | $GREP " "` 41704 if test "x$has_space" != x; then 41705 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41706 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41707 fi 41708 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41709 fi 41710 fi 41711 41712 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41713 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41714 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41715 # "foo.exe" is OK but "foo" is an error. 41716 # 41717 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41718 # It is also a way to make sure we got the proper file name for the real test later on. 41719 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41720 if test "x$test_shortpath" = x; then 41721 # Short path failed, file does not exist as specified. 41722 # Try adding .exe or .cmd 41723 if test -f "${new_path}.exe"; then 41724 input_to_shortpath="${new_path}.exe" 41725 elif test -f "${new_path}.cmd"; then 41726 input_to_shortpath="${new_path}.cmd" 41727 else 41728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41729 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41730 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41731 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41732 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41733 fi 41734 else 41735 input_to_shortpath="$new_path" 41736 fi 41737 41738 # Call helper function which possibly converts this using DOS-style short mode. 41739 # If so, the updated path is stored in $new_path. 41740 new_path="$input_to_shortpath" 41741 41742 input_path="$input_to_shortpath" 41743 # Check if we need to convert this using DOS-style short mode. If the path 41744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41745 # take no chances and rewrite it. 41746 # Note: m4 eats our [], so we need to use [ and ] instead. 41747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41748 if test "x$has_forbidden_chars" != x; then 41749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41750 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41751 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41752 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41753 # Going to short mode and back again did indeed matter. Since short mode is 41754 # case insensitive, let's make it lowercase to improve readability. 41755 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41756 # Now convert it back to Unix-style (cygpath) 41757 input_path=`$CYGPATH -u "$shortmode_path"` 41758 new_path="$input_path" 41759 fi 41760 fi 41761 41762 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41763 if test "x$test_cygdrive_prefix" = x; then 41764 # As a simple fix, exclude /usr/bin since it's not a real path. 41765 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41766 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41767 # a path prefixed by /cygdrive for fixpath to work. 41768 new_path="$CYGWIN_ROOT_PATH$input_path" 41769 fi 41770 fi 41771 41772 # remove trailing .exe if any 41773 new_path="${new_path/%.exe/}" 41774 41775 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41776 41777 # First separate the path from the arguments. This will split at the first 41778 # space. 41779 complete="$STRIP" 41780 path="${complete%% *}" 41781 tmp="$complete EOL" 41782 arguments="${tmp#* }" 41783 41784 # Input might be given as Windows format, start by converting to 41785 # unix format. 41786 new_path="$path" 41787 41788 windows_path="$new_path" 41789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41790 unix_path=`$CYGPATH -u "$windows_path"` 41791 new_path="$unix_path" 41792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41794 new_path="$unix_path" 41795 fi 41796 41797 41798 # Now try to locate executable using which 41799 new_path=`$WHICH "$new_path" 2> /dev/null` 41800 41801 if test "x$new_path" = x; then 41802 # Oops. Which didn't find the executable. 41803 # The splitting of arguments from the executable at a space might have been incorrect, 41804 # since paths with space are more likely in Windows. Give it another try with the whole 41805 # argument. 41806 path="$complete" 41807 arguments="EOL" 41808 new_path="$path" 41809 41810 windows_path="$new_path" 41811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41812 unix_path=`$CYGPATH -u "$windows_path"` 41813 new_path="$unix_path" 41814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41815 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41816 new_path="$unix_path" 41817 fi 41818 41819 41820 new_path=`$WHICH "$new_path" 2> /dev/null` 41821 # bat and cmd files are not always considered executable in MSYS causing which 41822 # to not find them 41823 if test "x$new_path" = x \ 41824 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41825 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41826 new_path="$path" 41827 41828 windows_path="$new_path" 41829 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41830 unix_path=`$CYGPATH -u "$windows_path"` 41831 new_path="$unix_path" 41832 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41833 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41834 new_path="$unix_path" 41835 fi 41836 41837 fi 41838 41839 if test "x$new_path" = x; then 41840 # It's still not found. Now this is an unrecoverable error. 41841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41842 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41843 has_space=`$ECHO "$complete" | $GREP " "` 41844 if test "x$has_space" != x; then 41845 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41846 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41847 fi 41848 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41849 fi 41850 fi 41851 41852 # Now new_path has a complete unix path to the binary 41853 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41854 # Keep paths in /bin as-is, but remove trailing .exe if any 41855 new_path="${new_path/%.exe/}" 41856 # Do not save /bin paths to all_fixpath_prefixes! 41857 else 41858 # Not in mixed or Windows style, start by that. 41859 new_path=`cmd //c echo $new_path` 41860 41861 input_path="$new_path" 41862 # Check if we need to convert this using DOS-style short mode. If the path 41863 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41864 # take no chances and rewrite it. 41865 # Note: m4 eats our [], so we need to use [ and ] instead. 41866 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41867 if test "x$has_forbidden_chars" != x; then 41868 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41869 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41870 fi 41871 41872 # Output is in $new_path 41873 41874 windows_path="$new_path" 41875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41876 unix_path=`$CYGPATH -u "$windows_path"` 41877 new_path="$unix_path" 41878 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41879 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41880 new_path="$unix_path" 41881 fi 41882 41883 # remove trailing .exe if any 41884 new_path="${new_path/%.exe/}" 41885 41886 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41887 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41888 fi 41889 41890 else 41891 # We're on a unix platform. Hooray! :) 41892 # First separate the path from the arguments. This will split at the first 41893 # space. 41894 complete="$STRIP" 41895 path="${complete%% *}" 41896 tmp="$complete EOL" 41897 arguments="${tmp#* }" 41898 41899 # Cannot rely on the command "which" here since it doesn't always work. 41900 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41901 if test -z "$is_absolute_path"; then 41902 # Path to executable is not absolute. Find it. 41903 IFS_save="$IFS" 41904 IFS=: 41905 for p in $PATH; do 41906 if test -f "$p/$path" && test -x "$p/$path"; then 41907 new_path="$p/$path" 41908 break 41909 fi 41910 done 41911 IFS="$IFS_save" 41912 else 41913 # This is an absolute path, we can use it without further modifications. 41914 new_path="$path" 41915 fi 41916 41917 if test "x$new_path" = x; then 41918 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41919 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41920 has_space=`$ECHO "$complete" | $GREP " "` 41921 if test "x$has_space" != x; then 41922 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41923 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41924 fi 41925 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41926 fi 41927 fi 41928 41929 # Now join together the path and the arguments once again 41930 if test "x$arguments" != xEOL; then 41931 new_complete="$new_path ${arguments% *}" 41932 else 41933 new_complete="$new_path" 41934 fi 41935 41936 if test "x$complete" != "x$new_complete"; then 41937 STRIP="$new_complete" 41938 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41939 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41940 fi 41941 fi 41942 41943 41944 41945 # Publish this variable in the help. 41946 41947 41948 if [ -z "${NM+x}" ]; then 41949 # The variable is not set by user, try to locate tool using the code snippet 41950 for ac_prog in nm 41951 do 41952 # Extract the first word of "$ac_prog", so it can be a program name with args. 41953 set dummy $ac_prog; ac_word=$2 41954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41955 $as_echo_n "checking for $ac_word... " >&6; } 41956 if ${ac_cv_path_NM+:} false; then : 41957 $as_echo_n "(cached) " >&6 41958 else 41959 case $NM in 41960 [\\/]* | ?:[\\/]*) 41961 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41962 ;; 41963 *) 41964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41965 for as_dir in $PATH 41966 do 41967 IFS=$as_save_IFS 41968 test -z "$as_dir" && as_dir=. 41969 for ac_exec_ext in '' $ac_executable_extensions; do 41970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41971 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41973 break 2 41974 fi 41975 done 41976 done 41977 IFS=$as_save_IFS 41978 41979 ;; 41980 esac 41981 fi 41982 NM=$ac_cv_path_NM 41983 if test -n "$NM"; then 41984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41985 $as_echo "$NM" >&6; } 41986 else 41987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41988 $as_echo "no" >&6; } 41989 fi 41990 41991 41992 test -n "$NM" && break 41993 done 41994 41995 else 41996 # The variable is set, but is it from the command line or the environment? 41997 41998 # Try to remove the string !NM! from our list. 41999 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 42000 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42001 # If it failed, the variable was not from the command line. Ignore it, 42002 # but warn the user (except for BASH, which is always set by the calling BASH). 42003 if test "xNM" != xBASH; then 42004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 42005 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 42006 fi 42007 # Try to locate tool using the code snippet 42008 for ac_prog in nm 42009 do 42010 # Extract the first word of "$ac_prog", so it can be a program name with args. 42011 set dummy $ac_prog; ac_word=$2 42012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42013 $as_echo_n "checking for $ac_word... " >&6; } 42014 if ${ac_cv_path_NM+:} false; then : 42015 $as_echo_n "(cached) " >&6 42016 else 42017 case $NM in 42018 [\\/]* | ?:[\\/]*) 42019 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42020 ;; 42021 *) 42022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42023 for as_dir in $PATH 42024 do 42025 IFS=$as_save_IFS 42026 test -z "$as_dir" && as_dir=. 42027 for ac_exec_ext in '' $ac_executable_extensions; do 42028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42029 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42031 break 2 42032 fi 42033 done 42034 done 42035 IFS=$as_save_IFS 42036 42037 ;; 42038 esac 42039 fi 42040 NM=$ac_cv_path_NM 42041 if test -n "$NM"; then 42042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42043 $as_echo "$NM" >&6; } 42044 else 42045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42046 $as_echo "no" >&6; } 42047 fi 42048 42049 42050 test -n "$NM" && break 42051 done 42052 42053 else 42054 # If it succeeded, then it was overridden by the user. We will use it 42055 # for the tool. 42056 42057 # First remove it from the list of overridden variables, so we can test 42058 # for unknown variables in the end. 42059 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42060 42061 # Check if we try to supply an empty value 42062 if test "x$NM" = x; then 42063 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 42064 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 42065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42066 $as_echo_n "checking for NM... " >&6; } 42067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42068 $as_echo "disabled" >&6; } 42069 else 42070 # Check if the provided tool contains a complete path. 42071 tool_specified="$NM" 42072 tool_basename="${tool_specified##*/}" 42073 if test "x$tool_basename" = "x$tool_specified"; then 42074 # A command without a complete path is provided, search $PATH. 42075 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 42076 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 42077 # Extract the first word of "$tool_basename", so it can be a program name with args. 42078 set dummy $tool_basename; ac_word=$2 42079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42080 $as_echo_n "checking for $ac_word... " >&6; } 42081 if ${ac_cv_path_NM+:} false; then : 42082 $as_echo_n "(cached) " >&6 42083 else 42084 case $NM in 42085 [\\/]* | ?:[\\/]*) 42086 ac_cv_path_NM="$NM" # Let the user override the test with a path. 42087 ;; 42088 *) 42089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42090 for as_dir in $PATH 42091 do 42092 IFS=$as_save_IFS 42093 test -z "$as_dir" && as_dir=. 42094 for ac_exec_ext in '' $ac_executable_extensions; do 42095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42096 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42098 break 2 42099 fi 42100 done 42101 done 42102 IFS=$as_save_IFS 42103 42104 ;; 42105 esac 42106 fi 42107 NM=$ac_cv_path_NM 42108 if test -n "$NM"; then 42109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42110 $as_echo "$NM" >&6; } 42111 else 42112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42113 $as_echo "no" >&6; } 42114 fi 42115 42116 42117 if test "x$NM" = x; then 42118 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42119 fi 42120 else 42121 # Otherwise we believe it is a complete path. Use it as it is. 42122 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42123 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42125 $as_echo_n "checking for NM... " >&6; } 42126 if test ! -x "$tool_specified"; then 42127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42128 $as_echo "not found" >&6; } 42129 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42130 fi 42131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42132 $as_echo "$tool_specified" >&6; } 42133 fi 42134 fi 42135 fi 42136 42137 fi 42138 42139 42140 42141 # Only process if variable expands to non-empty 42142 42143 if test "x$NM" != x; then 42144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42145 42146 # First separate the path from the arguments. This will split at the first 42147 # space. 42148 complete="$NM" 42149 path="${complete%% *}" 42150 tmp="$complete EOL" 42151 arguments="${tmp#* }" 42152 42153 # Input might be given as Windows format, start by converting to 42154 # unix format. 42155 new_path=`$CYGPATH -u "$path"` 42156 42157 # Now try to locate executable using which 42158 new_path=`$WHICH "$new_path" 2> /dev/null` 42159 # bat and cmd files are not always considered executable in cygwin causing which 42160 # to not find them 42161 if test "x$new_path" = x \ 42162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42164 new_path=`$CYGPATH -u "$path"` 42165 fi 42166 if test "x$new_path" = x; then 42167 # Oops. Which didn't find the executable. 42168 # The splitting of arguments from the executable at a space might have been incorrect, 42169 # since paths with space are more likely in Windows. Give it another try with the whole 42170 # argument. 42171 path="$complete" 42172 arguments="EOL" 42173 new_path=`$CYGPATH -u "$path"` 42174 new_path=`$WHICH "$new_path" 2> /dev/null` 42175 # bat and cmd files are not always considered executable in cygwin causing which 42176 # to not find them 42177 if test "x$new_path" = x \ 42178 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42179 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42180 new_path=`$CYGPATH -u "$path"` 42181 fi 42182 if test "x$new_path" = x; then 42183 # It's still not found. Now this is an unrecoverable error. 42184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42185 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42186 has_space=`$ECHO "$complete" | $GREP " "` 42187 if test "x$has_space" != x; then 42188 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42189 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42190 fi 42191 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42192 fi 42193 fi 42194 42195 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42196 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42197 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42198 # "foo.exe" is OK but "foo" is an error. 42199 # 42200 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42201 # It is also a way to make sure we got the proper file name for the real test later on. 42202 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42203 if test "x$test_shortpath" = x; then 42204 # Short path failed, file does not exist as specified. 42205 # Try adding .exe or .cmd 42206 if test -f "${new_path}.exe"; then 42207 input_to_shortpath="${new_path}.exe" 42208 elif test -f "${new_path}.cmd"; then 42209 input_to_shortpath="${new_path}.cmd" 42210 else 42211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42212 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42213 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42214 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42215 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42216 fi 42217 else 42218 input_to_shortpath="$new_path" 42219 fi 42220 42221 # Call helper function which possibly converts this using DOS-style short mode. 42222 # If so, the updated path is stored in $new_path. 42223 new_path="$input_to_shortpath" 42224 42225 input_path="$input_to_shortpath" 42226 # Check if we need to convert this using DOS-style short mode. If the path 42227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42228 # take no chances and rewrite it. 42229 # Note: m4 eats our [], so we need to use [ and ] instead. 42230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42231 if test "x$has_forbidden_chars" != x; then 42232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42233 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42234 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42235 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42236 # Going to short mode and back again did indeed matter. Since short mode is 42237 # case insensitive, let's make it lowercase to improve readability. 42238 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42239 # Now convert it back to Unix-style (cygpath) 42240 input_path=`$CYGPATH -u "$shortmode_path"` 42241 new_path="$input_path" 42242 fi 42243 fi 42244 42245 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42246 if test "x$test_cygdrive_prefix" = x; then 42247 # As a simple fix, exclude /usr/bin since it's not a real path. 42248 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42249 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42250 # a path prefixed by /cygdrive for fixpath to work. 42251 new_path="$CYGWIN_ROOT_PATH$input_path" 42252 fi 42253 fi 42254 42255 # remove trailing .exe if any 42256 new_path="${new_path/%.exe/}" 42257 42258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42259 42260 # First separate the path from the arguments. This will split at the first 42261 # space. 42262 complete="$NM" 42263 path="${complete%% *}" 42264 tmp="$complete EOL" 42265 arguments="${tmp#* }" 42266 42267 # Input might be given as Windows format, start by converting to 42268 # unix format. 42269 new_path="$path" 42270 42271 windows_path="$new_path" 42272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42273 unix_path=`$CYGPATH -u "$windows_path"` 42274 new_path="$unix_path" 42275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42277 new_path="$unix_path" 42278 fi 42279 42280 42281 # Now try to locate executable using which 42282 new_path=`$WHICH "$new_path" 2> /dev/null` 42283 42284 if test "x$new_path" = x; then 42285 # Oops. Which didn't find the executable. 42286 # The splitting of arguments from the executable at a space might have been incorrect, 42287 # since paths with space are more likely in Windows. Give it another try with the whole 42288 # argument. 42289 path="$complete" 42290 arguments="EOL" 42291 new_path="$path" 42292 42293 windows_path="$new_path" 42294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42295 unix_path=`$CYGPATH -u "$windows_path"` 42296 new_path="$unix_path" 42297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42298 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42299 new_path="$unix_path" 42300 fi 42301 42302 42303 new_path=`$WHICH "$new_path" 2> /dev/null` 42304 # bat and cmd files are not always considered executable in MSYS causing which 42305 # to not find them 42306 if test "x$new_path" = x \ 42307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42309 new_path="$path" 42310 42311 windows_path="$new_path" 42312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42313 unix_path=`$CYGPATH -u "$windows_path"` 42314 new_path="$unix_path" 42315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42317 new_path="$unix_path" 42318 fi 42319 42320 fi 42321 42322 if test "x$new_path" = x; then 42323 # It's still not found. Now this is an unrecoverable error. 42324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42325 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42326 has_space=`$ECHO "$complete" | $GREP " "` 42327 if test "x$has_space" != x; then 42328 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42329 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42330 fi 42331 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42332 fi 42333 fi 42334 42335 # Now new_path has a complete unix path to the binary 42336 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42337 # Keep paths in /bin as-is, but remove trailing .exe if any 42338 new_path="${new_path/%.exe/}" 42339 # Do not save /bin paths to all_fixpath_prefixes! 42340 else 42341 # Not in mixed or Windows style, start by that. 42342 new_path=`cmd //c echo $new_path` 42343 42344 input_path="$new_path" 42345 # Check if we need to convert this using DOS-style short mode. If the path 42346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42347 # take no chances and rewrite it. 42348 # Note: m4 eats our [], so we need to use [ and ] instead. 42349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42350 if test "x$has_forbidden_chars" != x; then 42351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42352 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42353 fi 42354 42355 # Output is in $new_path 42356 42357 windows_path="$new_path" 42358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42359 unix_path=`$CYGPATH -u "$windows_path"` 42360 new_path="$unix_path" 42361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42363 new_path="$unix_path" 42364 fi 42365 42366 # remove trailing .exe if any 42367 new_path="${new_path/%.exe/}" 42368 42369 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42370 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42371 fi 42372 42373 else 42374 # We're on a unix platform. Hooray! :) 42375 # First separate the path from the arguments. This will split at the first 42376 # space. 42377 complete="$NM" 42378 path="${complete%% *}" 42379 tmp="$complete EOL" 42380 arguments="${tmp#* }" 42381 42382 # Cannot rely on the command "which" here since it doesn't always work. 42383 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42384 if test -z "$is_absolute_path"; then 42385 # Path to executable is not absolute. Find it. 42386 IFS_save="$IFS" 42387 IFS=: 42388 for p in $PATH; do 42389 if test -f "$p/$path" && test -x "$p/$path"; then 42390 new_path="$p/$path" 42391 break 42392 fi 42393 done 42394 IFS="$IFS_save" 42395 else 42396 # This is an absolute path, we can use it without further modifications. 42397 new_path="$path" 42398 fi 42399 42400 if test "x$new_path" = x; then 42401 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42402 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42403 has_space=`$ECHO "$complete" | $GREP " "` 42404 if test "x$has_space" != x; then 42405 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42406 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42407 fi 42408 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42409 fi 42410 fi 42411 42412 # Now join together the path and the arguments once again 42413 if test "x$arguments" != xEOL; then 42414 new_complete="$new_path ${arguments% *}" 42415 else 42416 new_complete="$new_path" 42417 fi 42418 42419 if test "x$complete" != "x$new_complete"; then 42420 NM="$new_complete" 42421 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42422 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42423 fi 42424 fi 42425 42426 42427 42428 # Publish this variable in the help. 42429 42430 42431 if [ -z "${GNM+x}" ]; then 42432 # The variable is not set by user, try to locate tool using the code snippet 42433 for ac_prog in gnm 42434 do 42435 # Extract the first word of "$ac_prog", so it can be a program name with args. 42436 set dummy $ac_prog; ac_word=$2 42437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42438 $as_echo_n "checking for $ac_word... " >&6; } 42439 if ${ac_cv_path_GNM+:} false; then : 42440 $as_echo_n "(cached) " >&6 42441 else 42442 case $GNM in 42443 [\\/]* | ?:[\\/]*) 42444 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42445 ;; 42446 *) 42447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42448 for as_dir in $PATH 42449 do 42450 IFS=$as_save_IFS 42451 test -z "$as_dir" && as_dir=. 42452 for ac_exec_ext in '' $ac_executable_extensions; do 42453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42454 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42456 break 2 42457 fi 42458 done 42459 done 42460 IFS=$as_save_IFS 42461 42462 ;; 42463 esac 42464 fi 42465 GNM=$ac_cv_path_GNM 42466 if test -n "$GNM"; then 42467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42468 $as_echo "$GNM" >&6; } 42469 else 42470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42471 $as_echo "no" >&6; } 42472 fi 42473 42474 42475 test -n "$GNM" && break 42476 done 42477 42478 else 42479 # The variable is set, but is it from the command line or the environment? 42480 42481 # Try to remove the string !GNM! from our list. 42482 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 42483 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42484 # If it failed, the variable was not from the command line. Ignore it, 42485 # but warn the user (except for BASH, which is always set by the calling BASH). 42486 if test "xGNM" != xBASH; then 42487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 42488 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 42489 fi 42490 # Try to locate tool using the code snippet 42491 for ac_prog in gnm 42492 do 42493 # Extract the first word of "$ac_prog", so it can be a program name with args. 42494 set dummy $ac_prog; ac_word=$2 42495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42496 $as_echo_n "checking for $ac_word... " >&6; } 42497 if ${ac_cv_path_GNM+:} false; then : 42498 $as_echo_n "(cached) " >&6 42499 else 42500 case $GNM in 42501 [\\/]* | ?:[\\/]*) 42502 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42503 ;; 42504 *) 42505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42506 for as_dir in $PATH 42507 do 42508 IFS=$as_save_IFS 42509 test -z "$as_dir" && as_dir=. 42510 for ac_exec_ext in '' $ac_executable_extensions; do 42511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42512 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42514 break 2 42515 fi 42516 done 42517 done 42518 IFS=$as_save_IFS 42519 42520 ;; 42521 esac 42522 fi 42523 GNM=$ac_cv_path_GNM 42524 if test -n "$GNM"; then 42525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42526 $as_echo "$GNM" >&6; } 42527 else 42528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42529 $as_echo "no" >&6; } 42530 fi 42531 42532 42533 test -n "$GNM" && break 42534 done 42535 42536 else 42537 # If it succeeded, then it was overridden by the user. We will use it 42538 # for the tool. 42539 42540 # First remove it from the list of overridden variables, so we can test 42541 # for unknown variables in the end. 42542 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42543 42544 # Check if we try to supply an empty value 42545 if test "x$GNM" = x; then 42546 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 42547 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 42548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42549 $as_echo_n "checking for GNM... " >&6; } 42550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42551 $as_echo "disabled" >&6; } 42552 else 42553 # Check if the provided tool contains a complete path. 42554 tool_specified="$GNM" 42555 tool_basename="${tool_specified##*/}" 42556 if test "x$tool_basename" = "x$tool_specified"; then 42557 # A command without a complete path is provided, search $PATH. 42558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 42559 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 42560 # Extract the first word of "$tool_basename", so it can be a program name with args. 42561 set dummy $tool_basename; ac_word=$2 42562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42563 $as_echo_n "checking for $ac_word... " >&6; } 42564 if ${ac_cv_path_GNM+:} false; then : 42565 $as_echo_n "(cached) " >&6 42566 else 42567 case $GNM in 42568 [\\/]* | ?:[\\/]*) 42569 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42570 ;; 42571 *) 42572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42573 for as_dir in $PATH 42574 do 42575 IFS=$as_save_IFS 42576 test -z "$as_dir" && as_dir=. 42577 for ac_exec_ext in '' $ac_executable_extensions; do 42578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42579 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42581 break 2 42582 fi 42583 done 42584 done 42585 IFS=$as_save_IFS 42586 42587 ;; 42588 esac 42589 fi 42590 GNM=$ac_cv_path_GNM 42591 if test -n "$GNM"; then 42592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42593 $as_echo "$GNM" >&6; } 42594 else 42595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42596 $as_echo "no" >&6; } 42597 fi 42598 42599 42600 if test "x$GNM" = x; then 42601 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42602 fi 42603 else 42604 # Otherwise we believe it is a complete path. Use it as it is. 42605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 42606 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 42607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42608 $as_echo_n "checking for GNM... " >&6; } 42609 if test ! -x "$tool_specified"; then 42610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42611 $as_echo "not found" >&6; } 42612 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 42613 fi 42614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42615 $as_echo "$tool_specified" >&6; } 42616 fi 42617 fi 42618 fi 42619 42620 fi 42621 42622 42623 42624 # Only process if variable expands to non-empty 42625 42626 if test "x$GNM" != x; then 42627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42628 42629 # First separate the path from the arguments. This will split at the first 42630 # space. 42631 complete="$GNM" 42632 path="${complete%% *}" 42633 tmp="$complete EOL" 42634 arguments="${tmp#* }" 42635 42636 # Input might be given as Windows format, start by converting to 42637 # unix format. 42638 new_path=`$CYGPATH -u "$path"` 42639 42640 # Now try to locate executable using which 42641 new_path=`$WHICH "$new_path" 2> /dev/null` 42642 # bat and cmd files are not always considered executable in cygwin causing which 42643 # to not find them 42644 if test "x$new_path" = x \ 42645 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42646 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42647 new_path=`$CYGPATH -u "$path"` 42648 fi 42649 if test "x$new_path" = x; then 42650 # Oops. Which didn't find the executable. 42651 # The splitting of arguments from the executable at a space might have been incorrect, 42652 # since paths with space are more likely in Windows. Give it another try with the whole 42653 # argument. 42654 path="$complete" 42655 arguments="EOL" 42656 new_path=`$CYGPATH -u "$path"` 42657 new_path=`$WHICH "$new_path" 2> /dev/null` 42658 # bat and cmd files are not always considered executable in cygwin causing which 42659 # to not find them 42660 if test "x$new_path" = x \ 42661 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42662 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42663 new_path=`$CYGPATH -u "$path"` 42664 fi 42665 if test "x$new_path" = x; then 42666 # It's still not found. Now this is an unrecoverable error. 42667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42668 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42669 has_space=`$ECHO "$complete" | $GREP " "` 42670 if test "x$has_space" != x; then 42671 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42672 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42673 fi 42674 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42675 fi 42676 fi 42677 42678 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42679 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42680 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42681 # "foo.exe" is OK but "foo" is an error. 42682 # 42683 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42684 # It is also a way to make sure we got the proper file name for the real test later on. 42685 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42686 if test "x$test_shortpath" = x; then 42687 # Short path failed, file does not exist as specified. 42688 # Try adding .exe or .cmd 42689 if test -f "${new_path}.exe"; then 42690 input_to_shortpath="${new_path}.exe" 42691 elif test -f "${new_path}.cmd"; then 42692 input_to_shortpath="${new_path}.cmd" 42693 else 42694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 42695 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 42696 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42697 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42698 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42699 fi 42700 else 42701 input_to_shortpath="$new_path" 42702 fi 42703 42704 # Call helper function which possibly converts this using DOS-style short mode. 42705 # If so, the updated path is stored in $new_path. 42706 new_path="$input_to_shortpath" 42707 42708 input_path="$input_to_shortpath" 42709 # Check if we need to convert this using DOS-style short mode. If the path 42710 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42711 # take no chances and rewrite it. 42712 # Note: m4 eats our [], so we need to use [ and ] instead. 42713 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42714 if test "x$has_forbidden_chars" != x; then 42715 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42716 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42717 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42718 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42719 # Going to short mode and back again did indeed matter. Since short mode is 42720 # case insensitive, let's make it lowercase to improve readability. 42721 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42722 # Now convert it back to Unix-style (cygpath) 42723 input_path=`$CYGPATH -u "$shortmode_path"` 42724 new_path="$input_path" 42725 fi 42726 fi 42727 42728 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42729 if test "x$test_cygdrive_prefix" = x; then 42730 # As a simple fix, exclude /usr/bin since it's not a real path. 42731 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42732 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42733 # a path prefixed by /cygdrive for fixpath to work. 42734 new_path="$CYGWIN_ROOT_PATH$input_path" 42735 fi 42736 fi 42737 42738 # remove trailing .exe if any 42739 new_path="${new_path/%.exe/}" 42740 42741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42742 42743 # First separate the path from the arguments. This will split at the first 42744 # space. 42745 complete="$GNM" 42746 path="${complete%% *}" 42747 tmp="$complete EOL" 42748 arguments="${tmp#* }" 42749 42750 # Input might be given as Windows format, start by converting to 42751 # unix format. 42752 new_path="$path" 42753 42754 windows_path="$new_path" 42755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42756 unix_path=`$CYGPATH -u "$windows_path"` 42757 new_path="$unix_path" 42758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42760 new_path="$unix_path" 42761 fi 42762 42763 42764 # Now try to locate executable using which 42765 new_path=`$WHICH "$new_path" 2> /dev/null` 42766 42767 if test "x$new_path" = x; then 42768 # Oops. Which didn't find the executable. 42769 # The splitting of arguments from the executable at a space might have been incorrect, 42770 # since paths with space are more likely in Windows. Give it another try with the whole 42771 # argument. 42772 path="$complete" 42773 arguments="EOL" 42774 new_path="$path" 42775 42776 windows_path="$new_path" 42777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42778 unix_path=`$CYGPATH -u "$windows_path"` 42779 new_path="$unix_path" 42780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42782 new_path="$unix_path" 42783 fi 42784 42785 42786 new_path=`$WHICH "$new_path" 2> /dev/null` 42787 # bat and cmd files are not always considered executable in MSYS causing which 42788 # to not find them 42789 if test "x$new_path" = x \ 42790 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42791 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42792 new_path="$path" 42793 42794 windows_path="$new_path" 42795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42796 unix_path=`$CYGPATH -u "$windows_path"` 42797 new_path="$unix_path" 42798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42800 new_path="$unix_path" 42801 fi 42802 42803 fi 42804 42805 if test "x$new_path" = x; then 42806 # It's still not found. Now this is an unrecoverable error. 42807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42808 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42809 has_space=`$ECHO "$complete" | $GREP " "` 42810 if test "x$has_space" != x; then 42811 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42812 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42813 fi 42814 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42815 fi 42816 fi 42817 42818 # Now new_path has a complete unix path to the binary 42819 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42820 # Keep paths in /bin as-is, but remove trailing .exe if any 42821 new_path="${new_path/%.exe/}" 42822 # Do not save /bin paths to all_fixpath_prefixes! 42823 else 42824 # Not in mixed or Windows style, start by that. 42825 new_path=`cmd //c echo $new_path` 42826 42827 input_path="$new_path" 42828 # Check if we need to convert this using DOS-style short mode. If the path 42829 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42830 # take no chances and rewrite it. 42831 # Note: m4 eats our [], so we need to use [ and ] instead. 42832 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42833 if test "x$has_forbidden_chars" != x; then 42834 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42835 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42836 fi 42837 42838 # Output is in $new_path 42839 42840 windows_path="$new_path" 42841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42842 unix_path=`$CYGPATH -u "$windows_path"` 42843 new_path="$unix_path" 42844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42846 new_path="$unix_path" 42847 fi 42848 42849 # remove trailing .exe if any 42850 new_path="${new_path/%.exe/}" 42851 42852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42854 fi 42855 42856 else 42857 # We're on a unix platform. Hooray! :) 42858 # First separate the path from the arguments. This will split at the first 42859 # space. 42860 complete="$GNM" 42861 path="${complete%% *}" 42862 tmp="$complete EOL" 42863 arguments="${tmp#* }" 42864 42865 # Cannot rely on the command "which" here since it doesn't always work. 42866 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42867 if test -z "$is_absolute_path"; then 42868 # Path to executable is not absolute. Find it. 42869 IFS_save="$IFS" 42870 IFS=: 42871 for p in $PATH; do 42872 if test -f "$p/$path" && test -x "$p/$path"; then 42873 new_path="$p/$path" 42874 break 42875 fi 42876 done 42877 IFS="$IFS_save" 42878 else 42879 # This is an absolute path, we can use it without further modifications. 42880 new_path="$path" 42881 fi 42882 42883 if test "x$new_path" = x; then 42884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42885 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42886 has_space=`$ECHO "$complete" | $GREP " "` 42887 if test "x$has_space" != x; then 42888 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42889 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42890 fi 42891 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42892 fi 42893 fi 42894 42895 # Now join together the path and the arguments once again 42896 if test "x$arguments" != xEOL; then 42897 new_complete="$new_path ${arguments% *}" 42898 else 42899 new_complete="$new_path" 42900 fi 42901 42902 if test "x$complete" != "x$new_complete"; then 42903 GNM="$new_complete" 42904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42905 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42906 fi 42907 fi 42908 42909 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42910 # FIXME: we should unify this with the solaris case above. 42911 42912 42913 # Publish this variable in the help. 42914 42915 42916 if [ -z "${STRIP+x}" ]; then 42917 # The variable is not set by user, try to locate tool using the code snippet 42918 if test -n "$ac_tool_prefix"; then 42919 for ac_prog in strip 42920 do 42921 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42922 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42924 $as_echo_n "checking for $ac_word... " >&6; } 42925 if ${ac_cv_prog_STRIP+:} false; then : 42926 $as_echo_n "(cached) " >&6 42927 else 42928 if test -n "$STRIP"; then 42929 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42930 else 42931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42932 for as_dir in $PATH 42933 do 42934 IFS=$as_save_IFS 42935 test -z "$as_dir" && as_dir=. 42936 for ac_exec_ext in '' $ac_executable_extensions; do 42937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42938 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42940 break 2 42941 fi 42942 done 42943 done 42944 IFS=$as_save_IFS 42945 42946 fi 42947 fi 42948 STRIP=$ac_cv_prog_STRIP 42949 if test -n "$STRIP"; then 42950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42951 $as_echo "$STRIP" >&6; } 42952 else 42953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42954 $as_echo "no" >&6; } 42955 fi 42956 42957 42958 test -n "$STRIP" && break 42959 done 42960 fi 42961 if test -z "$STRIP"; then 42962 ac_ct_STRIP=$STRIP 42963 for ac_prog in strip 42964 do 42965 # Extract the first word of "$ac_prog", so it can be a program name with args. 42966 set dummy $ac_prog; ac_word=$2 42967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42968 $as_echo_n "checking for $ac_word... " >&6; } 42969 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42970 $as_echo_n "(cached) " >&6 42971 else 42972 if test -n "$ac_ct_STRIP"; then 42973 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42974 else 42975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42976 for as_dir in $PATH 42977 do 42978 IFS=$as_save_IFS 42979 test -z "$as_dir" && as_dir=. 42980 for ac_exec_ext in '' $ac_executable_extensions; do 42981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42982 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42984 break 2 42985 fi 42986 done 42987 done 42988 IFS=$as_save_IFS 42989 42990 fi 42991 fi 42992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42993 if test -n "$ac_ct_STRIP"; then 42994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42995 $as_echo "$ac_ct_STRIP" >&6; } 42996 else 42997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42998 $as_echo "no" >&6; } 42999 fi 43000 43001 43002 test -n "$ac_ct_STRIP" && break 43003 done 43004 43005 if test "x$ac_ct_STRIP" = x; then 43006 STRIP="" 43007 else 43008 case $cross_compiling:$ac_tool_warned in 43009 yes:) 43010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43012 ac_tool_warned=yes ;; 43013 esac 43014 STRIP=$ac_ct_STRIP 43015 fi 43016 fi 43017 43018 else 43019 # The variable is set, but is it from the command line or the environment? 43020 43021 # Try to remove the string !STRIP! from our list. 43022 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 43023 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43024 # If it failed, the variable was not from the command line. Ignore it, 43025 # but warn the user (except for BASH, which is always set by the calling BASH). 43026 if test "xSTRIP" != xBASH; then 43027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 43028 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 43029 fi 43030 # Try to locate tool using the code snippet 43031 if test -n "$ac_tool_prefix"; then 43032 for ac_prog in strip 43033 do 43034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43037 $as_echo_n "checking for $ac_word... " >&6; } 43038 if ${ac_cv_prog_STRIP+:} false; then : 43039 $as_echo_n "(cached) " >&6 43040 else 43041 if test -n "$STRIP"; then 43042 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 43043 else 43044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43045 for as_dir in $PATH 43046 do 43047 IFS=$as_save_IFS 43048 test -z "$as_dir" && as_dir=. 43049 for ac_exec_ext in '' $ac_executable_extensions; do 43050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43051 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 43052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43053 break 2 43054 fi 43055 done 43056 done 43057 IFS=$as_save_IFS 43058 43059 fi 43060 fi 43061 STRIP=$ac_cv_prog_STRIP 43062 if test -n "$STRIP"; then 43063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43064 $as_echo "$STRIP" >&6; } 43065 else 43066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43067 $as_echo "no" >&6; } 43068 fi 43069 43070 43071 test -n "$STRIP" && break 43072 done 43073 fi 43074 if test -z "$STRIP"; then 43075 ac_ct_STRIP=$STRIP 43076 for ac_prog in strip 43077 do 43078 # Extract the first word of "$ac_prog", so it can be a program name with args. 43079 set dummy $ac_prog; ac_word=$2 43080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43081 $as_echo_n "checking for $ac_word... " >&6; } 43082 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 43083 $as_echo_n "(cached) " >&6 43084 else 43085 if test -n "$ac_ct_STRIP"; then 43086 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 43087 else 43088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43089 for as_dir in $PATH 43090 do 43091 IFS=$as_save_IFS 43092 test -z "$as_dir" && as_dir=. 43093 for ac_exec_ext in '' $ac_executable_extensions; do 43094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43095 ac_cv_prog_ac_ct_STRIP="$ac_prog" 43096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43097 break 2 43098 fi 43099 done 43100 done 43101 IFS=$as_save_IFS 43102 43103 fi 43104 fi 43105 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 43106 if test -n "$ac_ct_STRIP"; then 43107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 43108 $as_echo "$ac_ct_STRIP" >&6; } 43109 else 43110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43111 $as_echo "no" >&6; } 43112 fi 43113 43114 43115 test -n "$ac_ct_STRIP" && break 43116 done 43117 43118 if test "x$ac_ct_STRIP" = x; then 43119 STRIP="" 43120 else 43121 case $cross_compiling:$ac_tool_warned in 43122 yes:) 43123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43125 ac_tool_warned=yes ;; 43126 esac 43127 STRIP=$ac_ct_STRIP 43128 fi 43129 fi 43130 43131 else 43132 # If it succeeded, then it was overridden by the user. We will use it 43133 # for the tool. 43134 43135 # First remove it from the list of overridden variables, so we can test 43136 # for unknown variables in the end. 43137 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43138 43139 # Check if we try to supply an empty value 43140 if test "x$STRIP" = x; then 43141 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 43142 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 43143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43144 $as_echo_n "checking for STRIP... " >&6; } 43145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43146 $as_echo "disabled" >&6; } 43147 else 43148 # Check if the provided tool contains a complete path. 43149 tool_specified="$STRIP" 43150 tool_basename="${tool_specified##*/}" 43151 if test "x$tool_basename" = "x$tool_specified"; then 43152 # A command without a complete path is provided, search $PATH. 43153 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 43154 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 43155 # Extract the first word of "$tool_basename", so it can be a program name with args. 43156 set dummy $tool_basename; ac_word=$2 43157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43158 $as_echo_n "checking for $ac_word... " >&6; } 43159 if ${ac_cv_path_STRIP+:} false; then : 43160 $as_echo_n "(cached) " >&6 43161 else 43162 case $STRIP in 43163 [\\/]* | ?:[\\/]*) 43164 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 43165 ;; 43166 *) 43167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43168 for as_dir in $PATH 43169 do 43170 IFS=$as_save_IFS 43171 test -z "$as_dir" && as_dir=. 43172 for ac_exec_ext in '' $ac_executable_extensions; do 43173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43174 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 43175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43176 break 2 43177 fi 43178 done 43179 done 43180 IFS=$as_save_IFS 43181 43182 ;; 43183 esac 43184 fi 43185 STRIP=$ac_cv_path_STRIP 43186 if test -n "$STRIP"; then 43187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43188 $as_echo "$STRIP" >&6; } 43189 else 43190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43191 $as_echo "no" >&6; } 43192 fi 43193 43194 43195 if test "x$STRIP" = x; then 43196 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43197 fi 43198 else 43199 # Otherwise we believe it is a complete path. Use it as it is. 43200 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 43201 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 43202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43203 $as_echo_n "checking for STRIP... " >&6; } 43204 if test ! -x "$tool_specified"; then 43205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43206 $as_echo "not found" >&6; } 43207 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 43208 fi 43209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43210 $as_echo "$tool_specified" >&6; } 43211 fi 43212 fi 43213 fi 43214 43215 fi 43216 43217 43218 43219 # Only process if variable expands to non-empty 43220 43221 if test "x$STRIP" != x; then 43222 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43223 43224 # First separate the path from the arguments. This will split at the first 43225 # space. 43226 complete="$STRIP" 43227 path="${complete%% *}" 43228 tmp="$complete EOL" 43229 arguments="${tmp#* }" 43230 43231 # Input might be given as Windows format, start by converting to 43232 # unix format. 43233 new_path=`$CYGPATH -u "$path"` 43234 43235 # Now try to locate executable using which 43236 new_path=`$WHICH "$new_path" 2> /dev/null` 43237 # bat and cmd files are not always considered executable in cygwin causing which 43238 # to not find them 43239 if test "x$new_path" = x \ 43240 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43241 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43242 new_path=`$CYGPATH -u "$path"` 43243 fi 43244 if test "x$new_path" = x; then 43245 # Oops. Which didn't find the executable. 43246 # The splitting of arguments from the executable at a space might have been incorrect, 43247 # since paths with space are more likely in Windows. Give it another try with the whole 43248 # argument. 43249 path="$complete" 43250 arguments="EOL" 43251 new_path=`$CYGPATH -u "$path"` 43252 new_path=`$WHICH "$new_path" 2> /dev/null` 43253 # bat and cmd files are not always considered executable in cygwin causing which 43254 # to not find them 43255 if test "x$new_path" = x \ 43256 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43257 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43258 new_path=`$CYGPATH -u "$path"` 43259 fi 43260 if test "x$new_path" = x; then 43261 # It's still not found. Now this is an unrecoverable error. 43262 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43263 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43264 has_space=`$ECHO "$complete" | $GREP " "` 43265 if test "x$has_space" != x; then 43266 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43267 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43268 fi 43269 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43270 fi 43271 fi 43272 43273 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43274 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43275 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43276 # "foo.exe" is OK but "foo" is an error. 43277 # 43278 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43279 # It is also a way to make sure we got the proper file name for the real test later on. 43280 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43281 if test "x$test_shortpath" = x; then 43282 # Short path failed, file does not exist as specified. 43283 # Try adding .exe or .cmd 43284 if test -f "${new_path}.exe"; then 43285 input_to_shortpath="${new_path}.exe" 43286 elif test -f "${new_path}.cmd"; then 43287 input_to_shortpath="${new_path}.cmd" 43288 else 43289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 43290 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 43291 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43292 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43293 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43294 fi 43295 else 43296 input_to_shortpath="$new_path" 43297 fi 43298 43299 # Call helper function which possibly converts this using DOS-style short mode. 43300 # If so, the updated path is stored in $new_path. 43301 new_path="$input_to_shortpath" 43302 43303 input_path="$input_to_shortpath" 43304 # Check if we need to convert this using DOS-style short mode. If the path 43305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43306 # take no chances and rewrite it. 43307 # Note: m4 eats our [], so we need to use [ and ] instead. 43308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43309 if test "x$has_forbidden_chars" != x; then 43310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43311 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43312 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43313 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43314 # Going to short mode and back again did indeed matter. Since short mode is 43315 # case insensitive, let's make it lowercase to improve readability. 43316 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43317 # Now convert it back to Unix-style (cygpath) 43318 input_path=`$CYGPATH -u "$shortmode_path"` 43319 new_path="$input_path" 43320 fi 43321 fi 43322 43323 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43324 if test "x$test_cygdrive_prefix" = x; then 43325 # As a simple fix, exclude /usr/bin since it's not a real path. 43326 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43327 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43328 # a path prefixed by /cygdrive for fixpath to work. 43329 new_path="$CYGWIN_ROOT_PATH$input_path" 43330 fi 43331 fi 43332 43333 # remove trailing .exe if any 43334 new_path="${new_path/%.exe/}" 43335 43336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43337 43338 # First separate the path from the arguments. This will split at the first 43339 # space. 43340 complete="$STRIP" 43341 path="${complete%% *}" 43342 tmp="$complete EOL" 43343 arguments="${tmp#* }" 43344 43345 # Input might be given as Windows format, start by converting to 43346 # unix format. 43347 new_path="$path" 43348 43349 windows_path="$new_path" 43350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43351 unix_path=`$CYGPATH -u "$windows_path"` 43352 new_path="$unix_path" 43353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43355 new_path="$unix_path" 43356 fi 43357 43358 43359 # Now try to locate executable using which 43360 new_path=`$WHICH "$new_path" 2> /dev/null` 43361 43362 if test "x$new_path" = x; then 43363 # Oops. Which didn't find the executable. 43364 # The splitting of arguments from the executable at a space might have been incorrect, 43365 # since paths with space are more likely in Windows. Give it another try with the whole 43366 # argument. 43367 path="$complete" 43368 arguments="EOL" 43369 new_path="$path" 43370 43371 windows_path="$new_path" 43372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43373 unix_path=`$CYGPATH -u "$windows_path"` 43374 new_path="$unix_path" 43375 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43376 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43377 new_path="$unix_path" 43378 fi 43379 43380 43381 new_path=`$WHICH "$new_path" 2> /dev/null` 43382 # bat and cmd files are not always considered executable in MSYS causing which 43383 # to not find them 43384 if test "x$new_path" = x \ 43385 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43386 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43387 new_path="$path" 43388 43389 windows_path="$new_path" 43390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43391 unix_path=`$CYGPATH -u "$windows_path"` 43392 new_path="$unix_path" 43393 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43394 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43395 new_path="$unix_path" 43396 fi 43397 43398 fi 43399 43400 if test "x$new_path" = x; then 43401 # It's still not found. Now this is an unrecoverable error. 43402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43403 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43404 has_space=`$ECHO "$complete" | $GREP " "` 43405 if test "x$has_space" != x; then 43406 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43407 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43408 fi 43409 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43410 fi 43411 fi 43412 43413 # Now new_path has a complete unix path to the binary 43414 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43415 # Keep paths in /bin as-is, but remove trailing .exe if any 43416 new_path="${new_path/%.exe/}" 43417 # Do not save /bin paths to all_fixpath_prefixes! 43418 else 43419 # Not in mixed or Windows style, start by that. 43420 new_path=`cmd //c echo $new_path` 43421 43422 input_path="$new_path" 43423 # Check if we need to convert this using DOS-style short mode. If the path 43424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43425 # take no chances and rewrite it. 43426 # Note: m4 eats our [], so we need to use [ and ] instead. 43427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43428 if test "x$has_forbidden_chars" != x; then 43429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43430 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43431 fi 43432 43433 # Output is in $new_path 43434 43435 windows_path="$new_path" 43436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43437 unix_path=`$CYGPATH -u "$windows_path"` 43438 new_path="$unix_path" 43439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43441 new_path="$unix_path" 43442 fi 43443 43444 # remove trailing .exe if any 43445 new_path="${new_path/%.exe/}" 43446 43447 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43448 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43449 fi 43450 43451 else 43452 # We're on a unix platform. Hooray! :) 43453 # First separate the path from the arguments. This will split at the first 43454 # space. 43455 complete="$STRIP" 43456 path="${complete%% *}" 43457 tmp="$complete EOL" 43458 arguments="${tmp#* }" 43459 43460 # Cannot rely on the command "which" here since it doesn't always work. 43461 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43462 if test -z "$is_absolute_path"; then 43463 # Path to executable is not absolute. Find it. 43464 IFS_save="$IFS" 43465 IFS=: 43466 for p in $PATH; do 43467 if test -f "$p/$path" && test -x "$p/$path"; then 43468 new_path="$p/$path" 43469 break 43470 fi 43471 done 43472 IFS="$IFS_save" 43473 else 43474 # This is an absolute path, we can use it without further modifications. 43475 new_path="$path" 43476 fi 43477 43478 if test "x$new_path" = x; then 43479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43480 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43481 has_space=`$ECHO "$complete" | $GREP " "` 43482 if test "x$has_space" != x; then 43483 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43484 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43485 fi 43486 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43487 fi 43488 fi 43489 43490 # Now join together the path and the arguments once again 43491 if test "x$arguments" != xEOL; then 43492 new_complete="$new_path ${arguments% *}" 43493 else 43494 new_complete="$new_path" 43495 fi 43496 43497 if test "x$complete" != "x$new_complete"; then 43498 STRIP="$new_complete" 43499 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 43500 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 43501 fi 43502 fi 43503 43504 if test "x$TOOLCHAIN_TYPE" = xgcc; then 43505 43506 43507 # Publish this variable in the help. 43508 43509 43510 if [ -z "${NM+x}" ]; then 43511 # The variable is not set by user, try to locate tool using the code snippet 43512 if test -n "$ac_tool_prefix"; then 43513 for ac_prog in nm gcc-nm 43514 do 43515 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43518 $as_echo_n "checking for $ac_word... " >&6; } 43519 if ${ac_cv_prog_NM+:} false; then : 43520 $as_echo_n "(cached) " >&6 43521 else 43522 if test -n "$NM"; then 43523 ac_cv_prog_NM="$NM" # Let the user override the test. 43524 else 43525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43526 for as_dir in $PATH 43527 do 43528 IFS=$as_save_IFS 43529 test -z "$as_dir" && as_dir=. 43530 for ac_exec_ext in '' $ac_executable_extensions; do 43531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43532 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43534 break 2 43535 fi 43536 done 43537 done 43538 IFS=$as_save_IFS 43539 43540 fi 43541 fi 43542 NM=$ac_cv_prog_NM 43543 if test -n "$NM"; then 43544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43545 $as_echo "$NM" >&6; } 43546 else 43547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43548 $as_echo "no" >&6; } 43549 fi 43550 43551 43552 test -n "$NM" && break 43553 done 43554 fi 43555 if test -z "$NM"; then 43556 ac_ct_NM=$NM 43557 for ac_prog in nm gcc-nm 43558 do 43559 # Extract the first word of "$ac_prog", so it can be a program name with args. 43560 set dummy $ac_prog; ac_word=$2 43561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43562 $as_echo_n "checking for $ac_word... " >&6; } 43563 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43564 $as_echo_n "(cached) " >&6 43565 else 43566 if test -n "$ac_ct_NM"; then 43567 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43568 else 43569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43570 for as_dir in $PATH 43571 do 43572 IFS=$as_save_IFS 43573 test -z "$as_dir" && as_dir=. 43574 for ac_exec_ext in '' $ac_executable_extensions; do 43575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43576 ac_cv_prog_ac_ct_NM="$ac_prog" 43577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43578 break 2 43579 fi 43580 done 43581 done 43582 IFS=$as_save_IFS 43583 43584 fi 43585 fi 43586 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43587 if test -n "$ac_ct_NM"; then 43588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43589 $as_echo "$ac_ct_NM" >&6; } 43590 else 43591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43592 $as_echo "no" >&6; } 43593 fi 43594 43595 43596 test -n "$ac_ct_NM" && break 43597 done 43598 43599 if test "x$ac_ct_NM" = x; then 43600 NM="" 43601 else 43602 case $cross_compiling:$ac_tool_warned in 43603 yes:) 43604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43606 ac_tool_warned=yes ;; 43607 esac 43608 NM=$ac_ct_NM 43609 fi 43610 fi 43611 43612 else 43613 # The variable is set, but is it from the command line or the environment? 43614 43615 # Try to remove the string !NM! from our list. 43616 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43617 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43618 # If it failed, the variable was not from the command line. Ignore it, 43619 # but warn the user (except for BASH, which is always set by the calling BASH). 43620 if test "xNM" != xBASH; then 43621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43622 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43623 fi 43624 # Try to locate tool using the code snippet 43625 if test -n "$ac_tool_prefix"; then 43626 for ac_prog in nm gcc-nm 43627 do 43628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43629 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43631 $as_echo_n "checking for $ac_word... " >&6; } 43632 if ${ac_cv_prog_NM+:} false; then : 43633 $as_echo_n "(cached) " >&6 43634 else 43635 if test -n "$NM"; then 43636 ac_cv_prog_NM="$NM" # Let the user override the test. 43637 else 43638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43639 for as_dir in $PATH 43640 do 43641 IFS=$as_save_IFS 43642 test -z "$as_dir" && as_dir=. 43643 for ac_exec_ext in '' $ac_executable_extensions; do 43644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43645 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43647 break 2 43648 fi 43649 done 43650 done 43651 IFS=$as_save_IFS 43652 43653 fi 43654 fi 43655 NM=$ac_cv_prog_NM 43656 if test -n "$NM"; then 43657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43658 $as_echo "$NM" >&6; } 43659 else 43660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43661 $as_echo "no" >&6; } 43662 fi 43663 43664 43665 test -n "$NM" && break 43666 done 43667 fi 43668 if test -z "$NM"; then 43669 ac_ct_NM=$NM 43670 for ac_prog in nm gcc-nm 43671 do 43672 # Extract the first word of "$ac_prog", so it can be a program name with args. 43673 set dummy $ac_prog; ac_word=$2 43674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43675 $as_echo_n "checking for $ac_word... " >&6; } 43676 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43677 $as_echo_n "(cached) " >&6 43678 else 43679 if test -n "$ac_ct_NM"; then 43680 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43681 else 43682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43683 for as_dir in $PATH 43684 do 43685 IFS=$as_save_IFS 43686 test -z "$as_dir" && as_dir=. 43687 for ac_exec_ext in '' $ac_executable_extensions; do 43688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43689 ac_cv_prog_ac_ct_NM="$ac_prog" 43690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43691 break 2 43692 fi 43693 done 43694 done 43695 IFS=$as_save_IFS 43696 43697 fi 43698 fi 43699 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43700 if test -n "$ac_ct_NM"; then 43701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43702 $as_echo "$ac_ct_NM" >&6; } 43703 else 43704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43705 $as_echo "no" >&6; } 43706 fi 43707 43708 43709 test -n "$ac_ct_NM" && break 43710 done 43711 43712 if test "x$ac_ct_NM" = x; then 43713 NM="" 43714 else 43715 case $cross_compiling:$ac_tool_warned in 43716 yes:) 43717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43719 ac_tool_warned=yes ;; 43720 esac 43721 NM=$ac_ct_NM 43722 fi 43723 fi 43724 43725 else 43726 # If it succeeded, then it was overridden by the user. We will use it 43727 # for the tool. 43728 43729 # First remove it from the list of overridden variables, so we can test 43730 # for unknown variables in the end. 43731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43732 43733 # Check if we try to supply an empty value 43734 if test "x$NM" = x; then 43735 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43736 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43738 $as_echo_n "checking for NM... " >&6; } 43739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43740 $as_echo "disabled" >&6; } 43741 else 43742 # Check if the provided tool contains a complete path. 43743 tool_specified="$NM" 43744 tool_basename="${tool_specified##*/}" 43745 if test "x$tool_basename" = "x$tool_specified"; then 43746 # A command without a complete path is provided, search $PATH. 43747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43748 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43749 # Extract the first word of "$tool_basename", so it can be a program name with args. 43750 set dummy $tool_basename; ac_word=$2 43751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43752 $as_echo_n "checking for $ac_word... " >&6; } 43753 if ${ac_cv_path_NM+:} false; then : 43754 $as_echo_n "(cached) " >&6 43755 else 43756 case $NM in 43757 [\\/]* | ?:[\\/]*) 43758 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43759 ;; 43760 *) 43761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43762 for as_dir in $PATH 43763 do 43764 IFS=$as_save_IFS 43765 test -z "$as_dir" && as_dir=. 43766 for ac_exec_ext in '' $ac_executable_extensions; do 43767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43768 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43770 break 2 43771 fi 43772 done 43773 done 43774 IFS=$as_save_IFS 43775 43776 ;; 43777 esac 43778 fi 43779 NM=$ac_cv_path_NM 43780 if test -n "$NM"; then 43781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43782 $as_echo "$NM" >&6; } 43783 else 43784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43785 $as_echo "no" >&6; } 43786 fi 43787 43788 43789 if test "x$NM" = x; then 43790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43791 fi 43792 else 43793 # Otherwise we believe it is a complete path. Use it as it is. 43794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43795 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43797 $as_echo_n "checking for NM... " >&6; } 43798 if test ! -x "$tool_specified"; then 43799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43800 $as_echo "not found" >&6; } 43801 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43802 fi 43803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43804 $as_echo "$tool_specified" >&6; } 43805 fi 43806 fi 43807 fi 43808 43809 fi 43810 43811 43812 else 43813 43814 43815 # Publish this variable in the help. 43816 43817 43818 if [ -z "${NM+x}" ]; then 43819 # The variable is not set by user, try to locate tool using the code snippet 43820 if test -n "$ac_tool_prefix"; then 43821 for ac_prog in nm 43822 do 43823 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43824 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43826 $as_echo_n "checking for $ac_word... " >&6; } 43827 if ${ac_cv_prog_NM+:} false; then : 43828 $as_echo_n "(cached) " >&6 43829 else 43830 if test -n "$NM"; then 43831 ac_cv_prog_NM="$NM" # Let the user override the test. 43832 else 43833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43834 for as_dir in $PATH 43835 do 43836 IFS=$as_save_IFS 43837 test -z "$as_dir" && as_dir=. 43838 for ac_exec_ext in '' $ac_executable_extensions; do 43839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43840 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43842 break 2 43843 fi 43844 done 43845 done 43846 IFS=$as_save_IFS 43847 43848 fi 43849 fi 43850 NM=$ac_cv_prog_NM 43851 if test -n "$NM"; then 43852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43853 $as_echo "$NM" >&6; } 43854 else 43855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43856 $as_echo "no" >&6; } 43857 fi 43858 43859 43860 test -n "$NM" && break 43861 done 43862 fi 43863 if test -z "$NM"; then 43864 ac_ct_NM=$NM 43865 for ac_prog in nm 43866 do 43867 # Extract the first word of "$ac_prog", so it can be a program name with args. 43868 set dummy $ac_prog; ac_word=$2 43869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43870 $as_echo_n "checking for $ac_word... " >&6; } 43871 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43872 $as_echo_n "(cached) " >&6 43873 else 43874 if test -n "$ac_ct_NM"; then 43875 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43876 else 43877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43878 for as_dir in $PATH 43879 do 43880 IFS=$as_save_IFS 43881 test -z "$as_dir" && as_dir=. 43882 for ac_exec_ext in '' $ac_executable_extensions; do 43883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43884 ac_cv_prog_ac_ct_NM="$ac_prog" 43885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43886 break 2 43887 fi 43888 done 43889 done 43890 IFS=$as_save_IFS 43891 43892 fi 43893 fi 43894 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43895 if test -n "$ac_ct_NM"; then 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43897 $as_echo "$ac_ct_NM" >&6; } 43898 else 43899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43900 $as_echo "no" >&6; } 43901 fi 43902 43903 43904 test -n "$ac_ct_NM" && break 43905 done 43906 43907 if test "x$ac_ct_NM" = x; then 43908 NM="" 43909 else 43910 case $cross_compiling:$ac_tool_warned in 43911 yes:) 43912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43914 ac_tool_warned=yes ;; 43915 esac 43916 NM=$ac_ct_NM 43917 fi 43918 fi 43919 43920 else 43921 # The variable is set, but is it from the command line or the environment? 43922 43923 # Try to remove the string !NM! from our list. 43924 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43925 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43926 # If it failed, the variable was not from the command line. Ignore it, 43927 # but warn the user (except for BASH, which is always set by the calling BASH). 43928 if test "xNM" != xBASH; then 43929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43930 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43931 fi 43932 # Try to locate tool using the code snippet 43933 if test -n "$ac_tool_prefix"; then 43934 for ac_prog in nm 43935 do 43936 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43939 $as_echo_n "checking for $ac_word... " >&6; } 43940 if ${ac_cv_prog_NM+:} false; then : 43941 $as_echo_n "(cached) " >&6 43942 else 43943 if test -n "$NM"; then 43944 ac_cv_prog_NM="$NM" # Let the user override the test. 43945 else 43946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43947 for as_dir in $PATH 43948 do 43949 IFS=$as_save_IFS 43950 test -z "$as_dir" && as_dir=. 43951 for ac_exec_ext in '' $ac_executable_extensions; do 43952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43953 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43955 break 2 43956 fi 43957 done 43958 done 43959 IFS=$as_save_IFS 43960 43961 fi 43962 fi 43963 NM=$ac_cv_prog_NM 43964 if test -n "$NM"; then 43965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43966 $as_echo "$NM" >&6; } 43967 else 43968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43969 $as_echo "no" >&6; } 43970 fi 43971 43972 43973 test -n "$NM" && break 43974 done 43975 fi 43976 if test -z "$NM"; then 43977 ac_ct_NM=$NM 43978 for ac_prog in nm 43979 do 43980 # Extract the first word of "$ac_prog", so it can be a program name with args. 43981 set dummy $ac_prog; ac_word=$2 43982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43983 $as_echo_n "checking for $ac_word... " >&6; } 43984 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43985 $as_echo_n "(cached) " >&6 43986 else 43987 if test -n "$ac_ct_NM"; then 43988 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43989 else 43990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43991 for as_dir in $PATH 43992 do 43993 IFS=$as_save_IFS 43994 test -z "$as_dir" && as_dir=. 43995 for ac_exec_ext in '' $ac_executable_extensions; do 43996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43997 ac_cv_prog_ac_ct_NM="$ac_prog" 43998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43999 break 2 44000 fi 44001 done 44002 done 44003 IFS=$as_save_IFS 44004 44005 fi 44006 fi 44007 ac_ct_NM=$ac_cv_prog_ac_ct_NM 44008 if test -n "$ac_ct_NM"; then 44009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 44010 $as_echo "$ac_ct_NM" >&6; } 44011 else 44012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44013 $as_echo "no" >&6; } 44014 fi 44015 44016 44017 test -n "$ac_ct_NM" && break 44018 done 44019 44020 if test "x$ac_ct_NM" = x; then 44021 NM="" 44022 else 44023 case $cross_compiling:$ac_tool_warned in 44024 yes:) 44025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44027 ac_tool_warned=yes ;; 44028 esac 44029 NM=$ac_ct_NM 44030 fi 44031 fi 44032 44033 else 44034 # If it succeeded, then it was overridden by the user. We will use it 44035 # for the tool. 44036 44037 # First remove it from the list of overridden variables, so we can test 44038 # for unknown variables in the end. 44039 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44040 44041 # Check if we try to supply an empty value 44042 if test "x$NM" = x; then 44043 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 44044 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 44045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44046 $as_echo_n "checking for NM... " >&6; } 44047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44048 $as_echo "disabled" >&6; } 44049 else 44050 # Check if the provided tool contains a complete path. 44051 tool_specified="$NM" 44052 tool_basename="${tool_specified##*/}" 44053 if test "x$tool_basename" = "x$tool_specified"; then 44054 # A command without a complete path is provided, search $PATH. 44055 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 44056 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 44057 # Extract the first word of "$tool_basename", so it can be a program name with args. 44058 set dummy $tool_basename; ac_word=$2 44059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44060 $as_echo_n "checking for $ac_word... " >&6; } 44061 if ${ac_cv_path_NM+:} false; then : 44062 $as_echo_n "(cached) " >&6 44063 else 44064 case $NM in 44065 [\\/]* | ?:[\\/]*) 44066 ac_cv_path_NM="$NM" # Let the user override the test with a path. 44067 ;; 44068 *) 44069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44070 for as_dir in $PATH 44071 do 44072 IFS=$as_save_IFS 44073 test -z "$as_dir" && as_dir=. 44074 for ac_exec_ext in '' $ac_executable_extensions; do 44075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44076 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 44077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44078 break 2 44079 fi 44080 done 44081 done 44082 IFS=$as_save_IFS 44083 44084 ;; 44085 esac 44086 fi 44087 NM=$ac_cv_path_NM 44088 if test -n "$NM"; then 44089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 44090 $as_echo "$NM" >&6; } 44091 else 44092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44093 $as_echo "no" >&6; } 44094 fi 44095 44096 44097 if test "x$NM" = x; then 44098 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44099 fi 44100 else 44101 # Otherwise we believe it is a complete path. Use it as it is. 44102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 44103 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 44104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44105 $as_echo_n "checking for NM... " >&6; } 44106 if test ! -x "$tool_specified"; then 44107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44108 $as_echo "not found" >&6; } 44109 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 44110 fi 44111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44112 $as_echo "$tool_specified" >&6; } 44113 fi 44114 fi 44115 fi 44116 44117 fi 44118 44119 44120 fi 44121 44122 # Only process if variable expands to non-empty 44123 44124 if test "x$NM" != x; then 44125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44126 44127 # First separate the path from the arguments. This will split at the first 44128 # space. 44129 complete="$NM" 44130 path="${complete%% *}" 44131 tmp="$complete EOL" 44132 arguments="${tmp#* }" 44133 44134 # Input might be given as Windows format, start by converting to 44135 # unix format. 44136 new_path=`$CYGPATH -u "$path"` 44137 44138 # Now try to locate executable using which 44139 new_path=`$WHICH "$new_path" 2> /dev/null` 44140 # bat and cmd files are not always considered executable in cygwin causing which 44141 # to not find them 44142 if test "x$new_path" = x \ 44143 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44144 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44145 new_path=`$CYGPATH -u "$path"` 44146 fi 44147 if test "x$new_path" = x; then 44148 # Oops. Which didn't find the executable. 44149 # The splitting of arguments from the executable at a space might have been incorrect, 44150 # since paths with space are more likely in Windows. Give it another try with the whole 44151 # argument. 44152 path="$complete" 44153 arguments="EOL" 44154 new_path=`$CYGPATH -u "$path"` 44155 new_path=`$WHICH "$new_path" 2> /dev/null` 44156 # bat and cmd files are not always considered executable in cygwin causing which 44157 # to not find them 44158 if test "x$new_path" = x \ 44159 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44160 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44161 new_path=`$CYGPATH -u "$path"` 44162 fi 44163 if test "x$new_path" = x; then 44164 # It's still not found. Now this is an unrecoverable error. 44165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44166 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44167 has_space=`$ECHO "$complete" | $GREP " "` 44168 if test "x$has_space" != x; then 44169 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44170 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44171 fi 44172 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44173 fi 44174 fi 44175 44176 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44177 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44178 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44179 # "foo.exe" is OK but "foo" is an error. 44180 # 44181 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44182 # It is also a way to make sure we got the proper file name for the real test later on. 44183 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44184 if test "x$test_shortpath" = x; then 44185 # Short path failed, file does not exist as specified. 44186 # Try adding .exe or .cmd 44187 if test -f "${new_path}.exe"; then 44188 input_to_shortpath="${new_path}.exe" 44189 elif test -f "${new_path}.cmd"; then 44190 input_to_shortpath="${new_path}.cmd" 44191 else 44192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 44193 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 44194 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44195 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44196 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44197 fi 44198 else 44199 input_to_shortpath="$new_path" 44200 fi 44201 44202 # Call helper function which possibly converts this using DOS-style short mode. 44203 # If so, the updated path is stored in $new_path. 44204 new_path="$input_to_shortpath" 44205 44206 input_path="$input_to_shortpath" 44207 # Check if we need to convert this using DOS-style short mode. If the path 44208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44209 # take no chances and rewrite it. 44210 # Note: m4 eats our [], so we need to use [ and ] instead. 44211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44212 if test "x$has_forbidden_chars" != x; then 44213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44214 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44215 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44216 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44217 # Going to short mode and back again did indeed matter. Since short mode is 44218 # case insensitive, let's make it lowercase to improve readability. 44219 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44220 # Now convert it back to Unix-style (cygpath) 44221 input_path=`$CYGPATH -u "$shortmode_path"` 44222 new_path="$input_path" 44223 fi 44224 fi 44225 44226 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44227 if test "x$test_cygdrive_prefix" = x; then 44228 # As a simple fix, exclude /usr/bin since it's not a real path. 44229 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44230 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44231 # a path prefixed by /cygdrive for fixpath to work. 44232 new_path="$CYGWIN_ROOT_PATH$input_path" 44233 fi 44234 fi 44235 44236 # remove trailing .exe if any 44237 new_path="${new_path/%.exe/}" 44238 44239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44240 44241 # First separate the path from the arguments. This will split at the first 44242 # space. 44243 complete="$NM" 44244 path="${complete%% *}" 44245 tmp="$complete EOL" 44246 arguments="${tmp#* }" 44247 44248 # Input might be given as Windows format, start by converting to 44249 # unix format. 44250 new_path="$path" 44251 44252 windows_path="$new_path" 44253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44254 unix_path=`$CYGPATH -u "$windows_path"` 44255 new_path="$unix_path" 44256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44258 new_path="$unix_path" 44259 fi 44260 44261 44262 # Now try to locate executable using which 44263 new_path=`$WHICH "$new_path" 2> /dev/null` 44264 44265 if test "x$new_path" = x; then 44266 # Oops. Which didn't find the executable. 44267 # The splitting of arguments from the executable at a space might have been incorrect, 44268 # since paths with space are more likely in Windows. Give it another try with the whole 44269 # argument. 44270 path="$complete" 44271 arguments="EOL" 44272 new_path="$path" 44273 44274 windows_path="$new_path" 44275 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44276 unix_path=`$CYGPATH -u "$windows_path"` 44277 new_path="$unix_path" 44278 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44279 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44280 new_path="$unix_path" 44281 fi 44282 44283 44284 new_path=`$WHICH "$new_path" 2> /dev/null` 44285 # bat and cmd files are not always considered executable in MSYS causing which 44286 # to not find them 44287 if test "x$new_path" = x \ 44288 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44289 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44290 new_path="$path" 44291 44292 windows_path="$new_path" 44293 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44294 unix_path=`$CYGPATH -u "$windows_path"` 44295 new_path="$unix_path" 44296 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44297 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44298 new_path="$unix_path" 44299 fi 44300 44301 fi 44302 44303 if test "x$new_path" = x; then 44304 # It's still not found. Now this is an unrecoverable error. 44305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44306 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44307 has_space=`$ECHO "$complete" | $GREP " "` 44308 if test "x$has_space" != x; then 44309 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44310 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44311 fi 44312 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44313 fi 44314 fi 44315 44316 # Now new_path has a complete unix path to the binary 44317 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44318 # Keep paths in /bin as-is, but remove trailing .exe if any 44319 new_path="${new_path/%.exe/}" 44320 # Do not save /bin paths to all_fixpath_prefixes! 44321 else 44322 # Not in mixed or Windows style, start by that. 44323 new_path=`cmd //c echo $new_path` 44324 44325 input_path="$new_path" 44326 # Check if we need to convert this using DOS-style short mode. If the path 44327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44328 # take no chances and rewrite it. 44329 # Note: m4 eats our [], so we need to use [ and ] instead. 44330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44331 if test "x$has_forbidden_chars" != x; then 44332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44333 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44334 fi 44335 44336 # Output is in $new_path 44337 44338 windows_path="$new_path" 44339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44340 unix_path=`$CYGPATH -u "$windows_path"` 44341 new_path="$unix_path" 44342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44344 new_path="$unix_path" 44345 fi 44346 44347 # remove trailing .exe if any 44348 new_path="${new_path/%.exe/}" 44349 44350 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44351 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44352 fi 44353 44354 else 44355 # We're on a unix platform. Hooray! :) 44356 # First separate the path from the arguments. This will split at the first 44357 # space. 44358 complete="$NM" 44359 path="${complete%% *}" 44360 tmp="$complete EOL" 44361 arguments="${tmp#* }" 44362 44363 # Cannot rely on the command "which" here since it doesn't always work. 44364 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44365 if test -z "$is_absolute_path"; then 44366 # Path to executable is not absolute. Find it. 44367 IFS_save="$IFS" 44368 IFS=: 44369 for p in $PATH; do 44370 if test -f "$p/$path" && test -x "$p/$path"; then 44371 new_path="$p/$path" 44372 break 44373 fi 44374 done 44375 IFS="$IFS_save" 44376 else 44377 # This is an absolute path, we can use it without further modifications. 44378 new_path="$path" 44379 fi 44380 44381 if test "x$new_path" = x; then 44382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44383 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44384 has_space=`$ECHO "$complete" | $GREP " "` 44385 if test "x$has_space" != x; then 44386 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44387 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44388 fi 44389 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44390 fi 44391 fi 44392 44393 # Now join together the path and the arguments once again 44394 if test "x$arguments" != xEOL; then 44395 new_complete="$new_path ${arguments% *}" 44396 else 44397 new_complete="$new_path" 44398 fi 44399 44400 if test "x$complete" != "x$new_complete"; then 44401 NM="$new_complete" 44402 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 44403 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 44404 fi 44405 fi 44406 44407 GNM="$NM" 44408 44409 fi 44410 44411 # objcopy is used for moving debug symbols to separate files when 44412 # full debug symbols are enabled. 44413 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 44414 44415 44416 # Publish this variable in the help. 44417 44418 44419 if [ -z "${OBJCOPY+x}" ]; then 44420 # The variable is not set by user, try to locate tool using the code snippet 44421 if test -n "$ac_tool_prefix"; then 44422 for ac_prog in gobjcopy objcopy 44423 do 44424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44427 $as_echo_n "checking for $ac_word... " >&6; } 44428 if ${ac_cv_prog_OBJCOPY+:} false; then : 44429 $as_echo_n "(cached) " >&6 44430 else 44431 if test -n "$OBJCOPY"; then 44432 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44433 else 44434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44435 for as_dir in $PATH 44436 do 44437 IFS=$as_save_IFS 44438 test -z "$as_dir" && as_dir=. 44439 for ac_exec_ext in '' $ac_executable_extensions; do 44440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44441 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44443 break 2 44444 fi 44445 done 44446 done 44447 IFS=$as_save_IFS 44448 44449 fi 44450 fi 44451 OBJCOPY=$ac_cv_prog_OBJCOPY 44452 if test -n "$OBJCOPY"; then 44453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44454 $as_echo "$OBJCOPY" >&6; } 44455 else 44456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44457 $as_echo "no" >&6; } 44458 fi 44459 44460 44461 test -n "$OBJCOPY" && break 44462 done 44463 fi 44464 if test -z "$OBJCOPY"; then 44465 ac_ct_OBJCOPY=$OBJCOPY 44466 for ac_prog in gobjcopy objcopy 44467 do 44468 # Extract the first word of "$ac_prog", so it can be a program name with args. 44469 set dummy $ac_prog; ac_word=$2 44470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44471 $as_echo_n "checking for $ac_word... " >&6; } 44472 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44473 $as_echo_n "(cached) " >&6 44474 else 44475 if test -n "$ac_ct_OBJCOPY"; then 44476 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44477 else 44478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44479 for as_dir in $PATH 44480 do 44481 IFS=$as_save_IFS 44482 test -z "$as_dir" && as_dir=. 44483 for ac_exec_ext in '' $ac_executable_extensions; do 44484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44485 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44487 break 2 44488 fi 44489 done 44490 done 44491 IFS=$as_save_IFS 44492 44493 fi 44494 fi 44495 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44496 if test -n "$ac_ct_OBJCOPY"; then 44497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44498 $as_echo "$ac_ct_OBJCOPY" >&6; } 44499 else 44500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44501 $as_echo "no" >&6; } 44502 fi 44503 44504 44505 test -n "$ac_ct_OBJCOPY" && break 44506 done 44507 44508 if test "x$ac_ct_OBJCOPY" = x; then 44509 OBJCOPY="" 44510 else 44511 case $cross_compiling:$ac_tool_warned in 44512 yes:) 44513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44515 ac_tool_warned=yes ;; 44516 esac 44517 OBJCOPY=$ac_ct_OBJCOPY 44518 fi 44519 fi 44520 44521 else 44522 # The variable is set, but is it from the command line or the environment? 44523 44524 # Try to remove the string !OBJCOPY! from our list. 44525 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 44526 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44527 # If it failed, the variable was not from the command line. Ignore it, 44528 # but warn the user (except for BASH, which is always set by the calling BASH). 44529 if test "xOBJCOPY" != xBASH; then 44530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 44531 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 44532 fi 44533 # Try to locate tool using the code snippet 44534 if test -n "$ac_tool_prefix"; then 44535 for ac_prog in gobjcopy objcopy 44536 do 44537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44540 $as_echo_n "checking for $ac_word... " >&6; } 44541 if ${ac_cv_prog_OBJCOPY+:} false; then : 44542 $as_echo_n "(cached) " >&6 44543 else 44544 if test -n "$OBJCOPY"; then 44545 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44546 else 44547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44548 for as_dir in $PATH 44549 do 44550 IFS=$as_save_IFS 44551 test -z "$as_dir" && as_dir=. 44552 for ac_exec_ext in '' $ac_executable_extensions; do 44553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44554 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44556 break 2 44557 fi 44558 done 44559 done 44560 IFS=$as_save_IFS 44561 44562 fi 44563 fi 44564 OBJCOPY=$ac_cv_prog_OBJCOPY 44565 if test -n "$OBJCOPY"; then 44566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44567 $as_echo "$OBJCOPY" >&6; } 44568 else 44569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44570 $as_echo "no" >&6; } 44571 fi 44572 44573 44574 test -n "$OBJCOPY" && break 44575 done 44576 fi 44577 if test -z "$OBJCOPY"; then 44578 ac_ct_OBJCOPY=$OBJCOPY 44579 for ac_prog in gobjcopy objcopy 44580 do 44581 # Extract the first word of "$ac_prog", so it can be a program name with args. 44582 set dummy $ac_prog; ac_word=$2 44583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44584 $as_echo_n "checking for $ac_word... " >&6; } 44585 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44586 $as_echo_n "(cached) " >&6 44587 else 44588 if test -n "$ac_ct_OBJCOPY"; then 44589 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44590 else 44591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44592 for as_dir in $PATH 44593 do 44594 IFS=$as_save_IFS 44595 test -z "$as_dir" && as_dir=. 44596 for ac_exec_ext in '' $ac_executable_extensions; do 44597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44598 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44600 break 2 44601 fi 44602 done 44603 done 44604 IFS=$as_save_IFS 44605 44606 fi 44607 fi 44608 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44609 if test -n "$ac_ct_OBJCOPY"; then 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44611 $as_echo "$ac_ct_OBJCOPY" >&6; } 44612 else 44613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44614 $as_echo "no" >&6; } 44615 fi 44616 44617 44618 test -n "$ac_ct_OBJCOPY" && break 44619 done 44620 44621 if test "x$ac_ct_OBJCOPY" = x; then 44622 OBJCOPY="" 44623 else 44624 case $cross_compiling:$ac_tool_warned in 44625 yes:) 44626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44628 ac_tool_warned=yes ;; 44629 esac 44630 OBJCOPY=$ac_ct_OBJCOPY 44631 fi 44632 fi 44633 44634 else 44635 # If it succeeded, then it was overridden by the user. We will use it 44636 # for the tool. 44637 44638 # First remove it from the list of overridden variables, so we can test 44639 # for unknown variables in the end. 44640 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44641 44642 # Check if we try to supply an empty value 44643 if test "x$OBJCOPY" = x; then 44644 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 44645 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 44646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44647 $as_echo_n "checking for OBJCOPY... " >&6; } 44648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44649 $as_echo "disabled" >&6; } 44650 else 44651 # Check if the provided tool contains a complete path. 44652 tool_specified="$OBJCOPY" 44653 tool_basename="${tool_specified##*/}" 44654 if test "x$tool_basename" = "x$tool_specified"; then 44655 # A command without a complete path is provided, search $PATH. 44656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 44657 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 44658 # Extract the first word of "$tool_basename", so it can be a program name with args. 44659 set dummy $tool_basename; ac_word=$2 44660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44661 $as_echo_n "checking for $ac_word... " >&6; } 44662 if ${ac_cv_path_OBJCOPY+:} false; then : 44663 $as_echo_n "(cached) " >&6 44664 else 44665 case $OBJCOPY in 44666 [\\/]* | ?:[\\/]*) 44667 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 44668 ;; 44669 *) 44670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44671 for as_dir in $PATH 44672 do 44673 IFS=$as_save_IFS 44674 test -z "$as_dir" && as_dir=. 44675 for ac_exec_ext in '' $ac_executable_extensions; do 44676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44677 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 44678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44679 break 2 44680 fi 44681 done 44682 done 44683 IFS=$as_save_IFS 44684 44685 ;; 44686 esac 44687 fi 44688 OBJCOPY=$ac_cv_path_OBJCOPY 44689 if test -n "$OBJCOPY"; then 44690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44691 $as_echo "$OBJCOPY" >&6; } 44692 else 44693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44694 $as_echo "no" >&6; } 44695 fi 44696 44697 44698 if test "x$OBJCOPY" = x; then 44699 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44700 fi 44701 else 44702 # Otherwise we believe it is a complete path. Use it as it is. 44703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 44704 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 44705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44706 $as_echo_n "checking for OBJCOPY... " >&6; } 44707 if test ! -x "$tool_specified"; then 44708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44709 $as_echo "not found" >&6; } 44710 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 44711 fi 44712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44713 $as_echo "$tool_specified" >&6; } 44714 fi 44715 fi 44716 fi 44717 44718 fi 44719 44720 44721 # Only call fixup if objcopy was found. 44722 if test -n "$OBJCOPY"; then 44723 44724 # Only process if variable expands to non-empty 44725 44726 if test "x$OBJCOPY" != x; then 44727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44728 44729 # First separate the path from the arguments. This will split at the first 44730 # space. 44731 complete="$OBJCOPY" 44732 path="${complete%% *}" 44733 tmp="$complete EOL" 44734 arguments="${tmp#* }" 44735 44736 # Input might be given as Windows format, start by converting to 44737 # unix format. 44738 new_path=`$CYGPATH -u "$path"` 44739 44740 # Now try to locate executable using which 44741 new_path=`$WHICH "$new_path" 2> /dev/null` 44742 # bat and cmd files are not always considered executable in cygwin causing which 44743 # to not find them 44744 if test "x$new_path" = x \ 44745 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44746 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44747 new_path=`$CYGPATH -u "$path"` 44748 fi 44749 if test "x$new_path" = x; then 44750 # Oops. Which didn't find the executable. 44751 # The splitting of arguments from the executable at a space might have been incorrect, 44752 # since paths with space are more likely in Windows. Give it another try with the whole 44753 # argument. 44754 path="$complete" 44755 arguments="EOL" 44756 new_path=`$CYGPATH -u "$path"` 44757 new_path=`$WHICH "$new_path" 2> /dev/null` 44758 # bat and cmd files are not always considered executable in cygwin causing which 44759 # to not find them 44760 if test "x$new_path" = x \ 44761 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44762 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44763 new_path=`$CYGPATH -u "$path"` 44764 fi 44765 if test "x$new_path" = x; then 44766 # It's still not found. Now this is an unrecoverable error. 44767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44768 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44769 has_space=`$ECHO "$complete" | $GREP " "` 44770 if test "x$has_space" != x; then 44771 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44772 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44773 fi 44774 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44775 fi 44776 fi 44777 44778 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44779 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44780 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44781 # "foo.exe" is OK but "foo" is an error. 44782 # 44783 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44784 # It is also a way to make sure we got the proper file name for the real test later on. 44785 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44786 if test "x$test_shortpath" = x; then 44787 # Short path failed, file does not exist as specified. 44788 # Try adding .exe or .cmd 44789 if test -f "${new_path}.exe"; then 44790 input_to_shortpath="${new_path}.exe" 44791 elif test -f "${new_path}.cmd"; then 44792 input_to_shortpath="${new_path}.cmd" 44793 else 44794 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 44795 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 44796 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44797 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44798 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44799 fi 44800 else 44801 input_to_shortpath="$new_path" 44802 fi 44803 44804 # Call helper function which possibly converts this using DOS-style short mode. 44805 # If so, the updated path is stored in $new_path. 44806 new_path="$input_to_shortpath" 44807 44808 input_path="$input_to_shortpath" 44809 # Check if we need to convert this using DOS-style short mode. If the path 44810 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44811 # take no chances and rewrite it. 44812 # Note: m4 eats our [], so we need to use [ and ] instead. 44813 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44814 if test "x$has_forbidden_chars" != x; then 44815 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44816 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44817 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44818 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44819 # Going to short mode and back again did indeed matter. Since short mode is 44820 # case insensitive, let's make it lowercase to improve readability. 44821 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44822 # Now convert it back to Unix-style (cygpath) 44823 input_path=`$CYGPATH -u "$shortmode_path"` 44824 new_path="$input_path" 44825 fi 44826 fi 44827 44828 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44829 if test "x$test_cygdrive_prefix" = x; then 44830 # As a simple fix, exclude /usr/bin since it's not a real path. 44831 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44832 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44833 # a path prefixed by /cygdrive for fixpath to work. 44834 new_path="$CYGWIN_ROOT_PATH$input_path" 44835 fi 44836 fi 44837 44838 # remove trailing .exe if any 44839 new_path="${new_path/%.exe/}" 44840 44841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44842 44843 # First separate the path from the arguments. This will split at the first 44844 # space. 44845 complete="$OBJCOPY" 44846 path="${complete%% *}" 44847 tmp="$complete EOL" 44848 arguments="${tmp#* }" 44849 44850 # Input might be given as Windows format, start by converting to 44851 # unix format. 44852 new_path="$path" 44853 44854 windows_path="$new_path" 44855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44856 unix_path=`$CYGPATH -u "$windows_path"` 44857 new_path="$unix_path" 44858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44860 new_path="$unix_path" 44861 fi 44862 44863 44864 # Now try to locate executable using which 44865 new_path=`$WHICH "$new_path" 2> /dev/null` 44866 44867 if test "x$new_path" = x; then 44868 # Oops. Which didn't find the executable. 44869 # The splitting of arguments from the executable at a space might have been incorrect, 44870 # since paths with space are more likely in Windows. Give it another try with the whole 44871 # argument. 44872 path="$complete" 44873 arguments="EOL" 44874 new_path="$path" 44875 44876 windows_path="$new_path" 44877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44878 unix_path=`$CYGPATH -u "$windows_path"` 44879 new_path="$unix_path" 44880 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44881 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44882 new_path="$unix_path" 44883 fi 44884 44885 44886 new_path=`$WHICH "$new_path" 2> /dev/null` 44887 # bat and cmd files are not always considered executable in MSYS causing which 44888 # to not find them 44889 if test "x$new_path" = x \ 44890 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44891 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44892 new_path="$path" 44893 44894 windows_path="$new_path" 44895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44896 unix_path=`$CYGPATH -u "$windows_path"` 44897 new_path="$unix_path" 44898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44899 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44900 new_path="$unix_path" 44901 fi 44902 44903 fi 44904 44905 if test "x$new_path" = x; then 44906 # It's still not found. Now this is an unrecoverable error. 44907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44908 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44909 has_space=`$ECHO "$complete" | $GREP " "` 44910 if test "x$has_space" != x; then 44911 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44912 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44913 fi 44914 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44915 fi 44916 fi 44917 44918 # Now new_path has a complete unix path to the binary 44919 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44920 # Keep paths in /bin as-is, but remove trailing .exe if any 44921 new_path="${new_path/%.exe/}" 44922 # Do not save /bin paths to all_fixpath_prefixes! 44923 else 44924 # Not in mixed or Windows style, start by that. 44925 new_path=`cmd //c echo $new_path` 44926 44927 input_path="$new_path" 44928 # Check if we need to convert this using DOS-style short mode. If the path 44929 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44930 # take no chances and rewrite it. 44931 # Note: m4 eats our [], so we need to use [ and ] instead. 44932 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44933 if test "x$has_forbidden_chars" != x; then 44934 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44935 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44936 fi 44937 44938 # Output is in $new_path 44939 44940 windows_path="$new_path" 44941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44942 unix_path=`$CYGPATH -u "$windows_path"` 44943 new_path="$unix_path" 44944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44945 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44946 new_path="$unix_path" 44947 fi 44948 44949 # remove trailing .exe if any 44950 new_path="${new_path/%.exe/}" 44951 44952 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44953 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44954 fi 44955 44956 else 44957 # We're on a unix platform. Hooray! :) 44958 # First separate the path from the arguments. This will split at the first 44959 # space. 44960 complete="$OBJCOPY" 44961 path="${complete%% *}" 44962 tmp="$complete EOL" 44963 arguments="${tmp#* }" 44964 44965 # Cannot rely on the command "which" here since it doesn't always work. 44966 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44967 if test -z "$is_absolute_path"; then 44968 # Path to executable is not absolute. Find it. 44969 IFS_save="$IFS" 44970 IFS=: 44971 for p in $PATH; do 44972 if test -f "$p/$path" && test -x "$p/$path"; then 44973 new_path="$p/$path" 44974 break 44975 fi 44976 done 44977 IFS="$IFS_save" 44978 else 44979 # This is an absolute path, we can use it without further modifications. 44980 new_path="$path" 44981 fi 44982 44983 if test "x$new_path" = x; then 44984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44985 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44986 has_space=`$ECHO "$complete" | $GREP " "` 44987 if test "x$has_space" != x; then 44988 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44989 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44990 fi 44991 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44992 fi 44993 fi 44994 44995 # Now join together the path and the arguments once again 44996 if test "x$arguments" != xEOL; then 44997 new_complete="$new_path ${arguments% *}" 44998 else 44999 new_complete="$new_path" 45000 fi 45001 45002 if test "x$complete" != "x$new_complete"; then 45003 OBJCOPY="$new_complete" 45004 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 45005 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 45006 fi 45007 fi 45008 45009 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 45010 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 45011 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 45012 # - version number is last blank separate word on first line 45013 # - version number formats that have been seen: 45014 # - <major>.<minor> 45015 # - <major>.<minor>.<micro> 45016 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 45017 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 45018 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 45019 -e 's/.* //' \ 45020 -e '/^[01]\./b bad' \ 45021 -e '/^2\./{' \ 45022 -e ' s/^2\.//' \ 45023 -e ' /^[0-9]$/b bad' \ 45024 -e ' /^[0-9]\./b bad' \ 45025 -e ' /^1[0-9]$/b bad' \ 45026 -e ' /^1[0-9]\./b bad' \ 45027 -e ' /^20\./b bad' \ 45028 -e ' /^21\.0$/b bad' \ 45029 -e ' /^21\.0\./b bad' \ 45030 -e '}' \ 45031 -e ':good' \ 45032 -e 's/.*/VALID_VERSION/p' \ 45033 -e 'q' \ 45034 -e ':bad' \ 45035 -e 's/.*/BAD_VERSION/p' \ 45036 -e 'q'` 45037 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 45038 OBJCOPY= 45039 { $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 45040 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 45041 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 45042 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 45043 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 45044 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 45045 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 45046 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 45047 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 45048 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 45049 fi 45050 fi 45051 fi 45052 fi 45053 45054 45055 45056 # Publish this variable in the help. 45057 45058 45059 if [ -z "${OBJDUMP+x}" ]; then 45060 # The variable is not set by user, try to locate tool using the code snippet 45061 if test -n "$ac_tool_prefix"; then 45062 for ac_prog in gobjdump objdump 45063 do 45064 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45065 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45067 $as_echo_n "checking for $ac_word... " >&6; } 45068 if ${ac_cv_prog_OBJDUMP+:} false; then : 45069 $as_echo_n "(cached) " >&6 45070 else 45071 if test -n "$OBJDUMP"; then 45072 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45073 else 45074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45075 for as_dir in $PATH 45076 do 45077 IFS=$as_save_IFS 45078 test -z "$as_dir" && as_dir=. 45079 for ac_exec_ext in '' $ac_executable_extensions; do 45080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45081 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45083 break 2 45084 fi 45085 done 45086 done 45087 IFS=$as_save_IFS 45088 45089 fi 45090 fi 45091 OBJDUMP=$ac_cv_prog_OBJDUMP 45092 if test -n "$OBJDUMP"; then 45093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45094 $as_echo "$OBJDUMP" >&6; } 45095 else 45096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45097 $as_echo "no" >&6; } 45098 fi 45099 45100 45101 test -n "$OBJDUMP" && break 45102 done 45103 fi 45104 if test -z "$OBJDUMP"; then 45105 ac_ct_OBJDUMP=$OBJDUMP 45106 for ac_prog in gobjdump objdump 45107 do 45108 # Extract the first word of "$ac_prog", so it can be a program name with args. 45109 set dummy $ac_prog; ac_word=$2 45110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45111 $as_echo_n "checking for $ac_word... " >&6; } 45112 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45113 $as_echo_n "(cached) " >&6 45114 else 45115 if test -n "$ac_ct_OBJDUMP"; then 45116 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45117 else 45118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45119 for as_dir in $PATH 45120 do 45121 IFS=$as_save_IFS 45122 test -z "$as_dir" && as_dir=. 45123 for ac_exec_ext in '' $ac_executable_extensions; do 45124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45125 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45127 break 2 45128 fi 45129 done 45130 done 45131 IFS=$as_save_IFS 45132 45133 fi 45134 fi 45135 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45136 if test -n "$ac_ct_OBJDUMP"; then 45137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45138 $as_echo "$ac_ct_OBJDUMP" >&6; } 45139 else 45140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45141 $as_echo "no" >&6; } 45142 fi 45143 45144 45145 test -n "$ac_ct_OBJDUMP" && break 45146 done 45147 45148 if test "x$ac_ct_OBJDUMP" = x; then 45149 OBJDUMP="" 45150 else 45151 case $cross_compiling:$ac_tool_warned in 45152 yes:) 45153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45155 ac_tool_warned=yes ;; 45156 esac 45157 OBJDUMP=$ac_ct_OBJDUMP 45158 fi 45159 fi 45160 45161 else 45162 # The variable is set, but is it from the command line or the environment? 45163 45164 # Try to remove the string !OBJDUMP! from our list. 45165 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 45166 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45167 # If it failed, the variable was not from the command line. Ignore it, 45168 # but warn the user (except for BASH, which is always set by the calling BASH). 45169 if test "xOBJDUMP" != xBASH; then 45170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 45171 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 45172 fi 45173 # Try to locate tool using the code snippet 45174 if test -n "$ac_tool_prefix"; then 45175 for ac_prog in gobjdump objdump 45176 do 45177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45180 $as_echo_n "checking for $ac_word... " >&6; } 45181 if ${ac_cv_prog_OBJDUMP+:} false; then : 45182 $as_echo_n "(cached) " >&6 45183 else 45184 if test -n "$OBJDUMP"; then 45185 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45186 else 45187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45188 for as_dir in $PATH 45189 do 45190 IFS=$as_save_IFS 45191 test -z "$as_dir" && as_dir=. 45192 for ac_exec_ext in '' $ac_executable_extensions; do 45193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45194 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45196 break 2 45197 fi 45198 done 45199 done 45200 IFS=$as_save_IFS 45201 45202 fi 45203 fi 45204 OBJDUMP=$ac_cv_prog_OBJDUMP 45205 if test -n "$OBJDUMP"; then 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45207 $as_echo "$OBJDUMP" >&6; } 45208 else 45209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45210 $as_echo "no" >&6; } 45211 fi 45212 45213 45214 test -n "$OBJDUMP" && break 45215 done 45216 fi 45217 if test -z "$OBJDUMP"; then 45218 ac_ct_OBJDUMP=$OBJDUMP 45219 for ac_prog in gobjdump objdump 45220 do 45221 # Extract the first word of "$ac_prog", so it can be a program name with args. 45222 set dummy $ac_prog; ac_word=$2 45223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45224 $as_echo_n "checking for $ac_word... " >&6; } 45225 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45226 $as_echo_n "(cached) " >&6 45227 else 45228 if test -n "$ac_ct_OBJDUMP"; then 45229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45230 else 45231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45232 for as_dir in $PATH 45233 do 45234 IFS=$as_save_IFS 45235 test -z "$as_dir" && as_dir=. 45236 for ac_exec_ext in '' $ac_executable_extensions; do 45237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45238 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45240 break 2 45241 fi 45242 done 45243 done 45244 IFS=$as_save_IFS 45245 45246 fi 45247 fi 45248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45249 if test -n "$ac_ct_OBJDUMP"; then 45250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45251 $as_echo "$ac_ct_OBJDUMP" >&6; } 45252 else 45253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45254 $as_echo "no" >&6; } 45255 fi 45256 45257 45258 test -n "$ac_ct_OBJDUMP" && break 45259 done 45260 45261 if test "x$ac_ct_OBJDUMP" = x; then 45262 OBJDUMP="" 45263 else 45264 case $cross_compiling:$ac_tool_warned in 45265 yes:) 45266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45268 ac_tool_warned=yes ;; 45269 esac 45270 OBJDUMP=$ac_ct_OBJDUMP 45271 fi 45272 fi 45273 45274 else 45275 # If it succeeded, then it was overridden by the user. We will use it 45276 # for the tool. 45277 45278 # First remove it from the list of overridden variables, so we can test 45279 # for unknown variables in the end. 45280 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45281 45282 # Check if we try to supply an empty value 45283 if test "x$OBJDUMP" = x; then 45284 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 45285 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 45286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45287 $as_echo_n "checking for OBJDUMP... " >&6; } 45288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45289 $as_echo "disabled" >&6; } 45290 else 45291 # Check if the provided tool contains a complete path. 45292 tool_specified="$OBJDUMP" 45293 tool_basename="${tool_specified##*/}" 45294 if test "x$tool_basename" = "x$tool_specified"; then 45295 # A command without a complete path is provided, search $PATH. 45296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 45297 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 45298 # Extract the first word of "$tool_basename", so it can be a program name with args. 45299 set dummy $tool_basename; ac_word=$2 45300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45301 $as_echo_n "checking for $ac_word... " >&6; } 45302 if ${ac_cv_path_OBJDUMP+:} false; then : 45303 $as_echo_n "(cached) " >&6 45304 else 45305 case $OBJDUMP in 45306 [\\/]* | ?:[\\/]*) 45307 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 45308 ;; 45309 *) 45310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45311 for as_dir in $PATH 45312 do 45313 IFS=$as_save_IFS 45314 test -z "$as_dir" && as_dir=. 45315 for ac_exec_ext in '' $ac_executable_extensions; do 45316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45317 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 45318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45319 break 2 45320 fi 45321 done 45322 done 45323 IFS=$as_save_IFS 45324 45325 ;; 45326 esac 45327 fi 45328 OBJDUMP=$ac_cv_path_OBJDUMP 45329 if test -n "$OBJDUMP"; then 45330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45331 $as_echo "$OBJDUMP" >&6; } 45332 else 45333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45334 $as_echo "no" >&6; } 45335 fi 45336 45337 45338 if test "x$OBJDUMP" = x; then 45339 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45340 fi 45341 else 45342 # Otherwise we believe it is a complete path. Use it as it is. 45343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 45344 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 45345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45346 $as_echo_n "checking for OBJDUMP... " >&6; } 45347 if test ! -x "$tool_specified"; then 45348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45349 $as_echo "not found" >&6; } 45350 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 45351 fi 45352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45353 $as_echo "$tool_specified" >&6; } 45354 fi 45355 fi 45356 fi 45357 45358 fi 45359 45360 45361 if test "x$OBJDUMP" != x; then 45362 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 45363 # bails if argument is missing. 45364 45365 # Only process if variable expands to non-empty 45366 45367 if test "x$OBJDUMP" != x; then 45368 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45369 45370 # First separate the path from the arguments. This will split at the first 45371 # space. 45372 complete="$OBJDUMP" 45373 path="${complete%% *}" 45374 tmp="$complete EOL" 45375 arguments="${tmp#* }" 45376 45377 # Input might be given as Windows format, start by converting to 45378 # unix format. 45379 new_path=`$CYGPATH -u "$path"` 45380 45381 # Now try to locate executable using which 45382 new_path=`$WHICH "$new_path" 2> /dev/null` 45383 # bat and cmd files are not always considered executable in cygwin causing which 45384 # to not find them 45385 if test "x$new_path" = x \ 45386 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45387 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45388 new_path=`$CYGPATH -u "$path"` 45389 fi 45390 if test "x$new_path" = x; then 45391 # Oops. Which didn't find the executable. 45392 # The splitting of arguments from the executable at a space might have been incorrect, 45393 # since paths with space are more likely in Windows. Give it another try with the whole 45394 # argument. 45395 path="$complete" 45396 arguments="EOL" 45397 new_path=`$CYGPATH -u "$path"` 45398 new_path=`$WHICH "$new_path" 2> /dev/null` 45399 # bat and cmd files are not always considered executable in cygwin causing which 45400 # to not find them 45401 if test "x$new_path" = x \ 45402 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45403 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45404 new_path=`$CYGPATH -u "$path"` 45405 fi 45406 if test "x$new_path" = x; then 45407 # It's still not found. Now this is an unrecoverable error. 45408 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45409 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45410 has_space=`$ECHO "$complete" | $GREP " "` 45411 if test "x$has_space" != x; then 45412 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45413 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45414 fi 45415 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45416 fi 45417 fi 45418 45419 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45420 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45421 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45422 # "foo.exe" is OK but "foo" is an error. 45423 # 45424 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45425 # It is also a way to make sure we got the proper file name for the real test later on. 45426 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45427 if test "x$test_shortpath" = x; then 45428 # Short path failed, file does not exist as specified. 45429 # Try adding .exe or .cmd 45430 if test -f "${new_path}.exe"; then 45431 input_to_shortpath="${new_path}.exe" 45432 elif test -f "${new_path}.cmd"; then 45433 input_to_shortpath="${new_path}.cmd" 45434 else 45435 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 45436 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 45437 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45438 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45439 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45440 fi 45441 else 45442 input_to_shortpath="$new_path" 45443 fi 45444 45445 # Call helper function which possibly converts this using DOS-style short mode. 45446 # If so, the updated path is stored in $new_path. 45447 new_path="$input_to_shortpath" 45448 45449 input_path="$input_to_shortpath" 45450 # Check if we need to convert this using DOS-style short mode. If the path 45451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45452 # take no chances and rewrite it. 45453 # Note: m4 eats our [], so we need to use [ and ] instead. 45454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45455 if test "x$has_forbidden_chars" != x; then 45456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45457 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45458 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45459 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45460 # Going to short mode and back again did indeed matter. Since short mode is 45461 # case insensitive, let's make it lowercase to improve readability. 45462 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45463 # Now convert it back to Unix-style (cygpath) 45464 input_path=`$CYGPATH -u "$shortmode_path"` 45465 new_path="$input_path" 45466 fi 45467 fi 45468 45469 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45470 if test "x$test_cygdrive_prefix" = x; then 45471 # As a simple fix, exclude /usr/bin since it's not a real path. 45472 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45473 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45474 # a path prefixed by /cygdrive for fixpath to work. 45475 new_path="$CYGWIN_ROOT_PATH$input_path" 45476 fi 45477 fi 45478 45479 # remove trailing .exe if any 45480 new_path="${new_path/%.exe/}" 45481 45482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45483 45484 # First separate the path from the arguments. This will split at the first 45485 # space. 45486 complete="$OBJDUMP" 45487 path="${complete%% *}" 45488 tmp="$complete EOL" 45489 arguments="${tmp#* }" 45490 45491 # Input might be given as Windows format, start by converting to 45492 # unix format. 45493 new_path="$path" 45494 45495 windows_path="$new_path" 45496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45497 unix_path=`$CYGPATH -u "$windows_path"` 45498 new_path="$unix_path" 45499 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45500 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45501 new_path="$unix_path" 45502 fi 45503 45504 45505 # Now try to locate executable using which 45506 new_path=`$WHICH "$new_path" 2> /dev/null` 45507 45508 if test "x$new_path" = x; then 45509 # Oops. Which didn't find the executable. 45510 # The splitting of arguments from the executable at a space might have been incorrect, 45511 # since paths with space are more likely in Windows. Give it another try with the whole 45512 # argument. 45513 path="$complete" 45514 arguments="EOL" 45515 new_path="$path" 45516 45517 windows_path="$new_path" 45518 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45519 unix_path=`$CYGPATH -u "$windows_path"` 45520 new_path="$unix_path" 45521 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45522 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45523 new_path="$unix_path" 45524 fi 45525 45526 45527 new_path=`$WHICH "$new_path" 2> /dev/null` 45528 # bat and cmd files are not always considered executable in MSYS causing which 45529 # to not find them 45530 if test "x$new_path" = x \ 45531 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45532 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45533 new_path="$path" 45534 45535 windows_path="$new_path" 45536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45537 unix_path=`$CYGPATH -u "$windows_path"` 45538 new_path="$unix_path" 45539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45541 new_path="$unix_path" 45542 fi 45543 45544 fi 45545 45546 if test "x$new_path" = x; then 45547 # It's still not found. Now this is an unrecoverable error. 45548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45549 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45550 has_space=`$ECHO "$complete" | $GREP " "` 45551 if test "x$has_space" != x; then 45552 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45553 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45554 fi 45555 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45556 fi 45557 fi 45558 45559 # Now new_path has a complete unix path to the binary 45560 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45561 # Keep paths in /bin as-is, but remove trailing .exe if any 45562 new_path="${new_path/%.exe/}" 45563 # Do not save /bin paths to all_fixpath_prefixes! 45564 else 45565 # Not in mixed or Windows style, start by that. 45566 new_path=`cmd //c echo $new_path` 45567 45568 input_path="$new_path" 45569 # Check if we need to convert this using DOS-style short mode. If the path 45570 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45571 # take no chances and rewrite it. 45572 # Note: m4 eats our [], so we need to use [ and ] instead. 45573 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45574 if test "x$has_forbidden_chars" != x; then 45575 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45576 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45577 fi 45578 45579 # Output is in $new_path 45580 45581 windows_path="$new_path" 45582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45583 unix_path=`$CYGPATH -u "$windows_path"` 45584 new_path="$unix_path" 45585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45587 new_path="$unix_path" 45588 fi 45589 45590 # remove trailing .exe if any 45591 new_path="${new_path/%.exe/}" 45592 45593 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45594 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45595 fi 45596 45597 else 45598 # We're on a unix platform. Hooray! :) 45599 # First separate the path from the arguments. This will split at the first 45600 # space. 45601 complete="$OBJDUMP" 45602 path="${complete%% *}" 45603 tmp="$complete EOL" 45604 arguments="${tmp#* }" 45605 45606 # Cannot rely on the command "which" here since it doesn't always work. 45607 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45608 if test -z "$is_absolute_path"; then 45609 # Path to executable is not absolute. Find it. 45610 IFS_save="$IFS" 45611 IFS=: 45612 for p in $PATH; do 45613 if test -f "$p/$path" && test -x "$p/$path"; then 45614 new_path="$p/$path" 45615 break 45616 fi 45617 done 45618 IFS="$IFS_save" 45619 else 45620 # This is an absolute path, we can use it without further modifications. 45621 new_path="$path" 45622 fi 45623 45624 if test "x$new_path" = x; then 45625 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45626 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45627 has_space=`$ECHO "$complete" | $GREP " "` 45628 if test "x$has_space" != x; then 45629 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45630 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45631 fi 45632 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45633 fi 45634 fi 45635 45636 # Now join together the path and the arguments once again 45637 if test "x$arguments" != xEOL; then 45638 new_complete="$new_path ${arguments% *}" 45639 else 45640 new_complete="$new_path" 45641 fi 45642 45643 if test "x$complete" != "x$new_complete"; then 45644 OBJDUMP="$new_complete" 45645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 45646 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 45647 fi 45648 fi 45649 45650 fi 45651 45652 45653 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 45654 # to remain in place. Otherwise the compiler will not work in some siutations 45655 # in later configure checks. 45656 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 45657 PATH="$OLD_PATH" 45658 fi 45659 45660 # Restore the flags to the user specified values. 45661 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 45662 CFLAGS="$ORG_CFLAGS" 45663 CXXFLAGS="$ORG_CXXFLAGS" 45664 45665 45666 # Finally do some processing after the detection phase 45667 45668 if test "x$COMPILE_TYPE" = "xcross"; then 45669 # Now we need to find a C/C++ compiler that can build executables for the 45670 # build platform. We can't use the AC_PROG_CC macro, since it can only be 45671 # used once. Also, we need to do this without adding a tools dir to the 45672 # path, otherwise we might pick up cross-compilers which don't use standard 45673 # naming. 45674 45675 OLDPATH="$PATH" 45676 45677 45678 # Check whether --with-build-devkit was given. 45679 if test "${with_build_devkit+set}" = set; then : 45680 withval=$with_build_devkit; 45681 fi 45682 45683 if test "x$with_build_devkit" = "xyes"; then 45684 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 45685 elif test -n "$with_build_devkit"; then 45686 if test ! -d "$with_build_devkit"; then 45687 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 45688 else 45689 45690 # Only process if variable expands to non-empty 45691 45692 if test "x$with_build_devkit" != x; then 45693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45694 45695 # Input might be given as Windows format, start by converting to 45696 # unix format. 45697 path="$with_build_devkit" 45698 new_path=`$CYGPATH -u "$path"` 45699 45700 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45701 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45702 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45703 # "foo.exe" is OK but "foo" is an error. 45704 # 45705 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45706 # It is also a way to make sure we got the proper file name for the real test later on. 45707 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45708 if test "x$test_shortpath" = x; then 45709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45710 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45711 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 45712 fi 45713 45714 # Call helper function which possibly converts this using DOS-style short mode. 45715 # If so, the updated path is stored in $new_path. 45716 45717 input_path="$new_path" 45718 # Check if we need to convert this using DOS-style short mode. If the path 45719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45720 # take no chances and rewrite it. 45721 # Note: m4 eats our [], so we need to use [ and ] instead. 45722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45723 if test "x$has_forbidden_chars" != x; then 45724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45725 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45726 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45727 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45728 # Going to short mode and back again did indeed matter. Since short mode is 45729 # case insensitive, let's make it lowercase to improve readability. 45730 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45731 # Now convert it back to Unix-style (cygpath) 45732 input_path=`$CYGPATH -u "$shortmode_path"` 45733 new_path="$input_path" 45734 fi 45735 fi 45736 45737 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45738 if test "x$test_cygdrive_prefix" = x; then 45739 # As a simple fix, exclude /usr/bin since it's not a real path. 45740 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45741 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45742 # a path prefixed by /cygdrive for fixpath to work. 45743 new_path="$CYGWIN_ROOT_PATH$input_path" 45744 fi 45745 fi 45746 45747 45748 if test "x$path" != "x$new_path"; then 45749 with_build_devkit="$new_path" 45750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45751 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45752 fi 45753 45754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45755 45756 path="$with_build_devkit" 45757 has_colon=`$ECHO $path | $GREP ^.:` 45758 new_path="$path" 45759 if test "x$has_colon" = x; then 45760 # Not in mixed or Windows style, start by that. 45761 new_path=`cmd //c echo $path` 45762 fi 45763 45764 45765 input_path="$new_path" 45766 # Check if we need to convert this using DOS-style short mode. If the path 45767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45768 # take no chances and rewrite it. 45769 # Note: m4 eats our [], so we need to use [ and ] instead. 45770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45771 if test "x$has_forbidden_chars" != x; then 45772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45773 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45774 fi 45775 45776 45777 windows_path="$new_path" 45778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45779 unix_path=`$CYGPATH -u "$windows_path"` 45780 new_path="$unix_path" 45781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45783 new_path="$unix_path" 45784 fi 45785 45786 if test "x$path" != "x$new_path"; then 45787 with_build_devkit="$new_path" 45788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45789 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45790 fi 45791 45792 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45793 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45794 45795 else 45796 # We're on a unix platform. Hooray! :) 45797 path="$with_build_devkit" 45798 has_space=`$ECHO "$path" | $GREP " "` 45799 if test "x$has_space" != x; then 45800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45801 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45802 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45803 fi 45804 45805 # Use eval to expand a potential ~ 45806 eval path="$path" 45807 if test ! -f "$path" && test ! -d "$path"; then 45808 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 45809 fi 45810 45811 if test -d "$path"; then 45812 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 45813 else 45814 dir="`$DIRNAME "$path"`" 45815 base="`$BASENAME "$path"`" 45816 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 45817 fi 45818 fi 45819 fi 45820 45821 BUILD_DEVKIT_ROOT="$with_build_devkit" 45822 # Check for a meta data info file in the root of the devkit 45823 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 45824 # Process devkit.info so that existing devkit variables are not 45825 # modified by this 45826 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 45827 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 45828 -e "s/\$host/\$build/g" \ 45829 $BUILD_DEVKIT_ROOT/devkit.info \ 45830 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45831 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45832 # This potentially sets the following: 45833 # A descriptive name of the devkit 45834 45835 if test "x$BUILD_DEVKIT_NAME" = x; then 45836 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 45837 fi 45838 45839 # Corresponds to --with-extra-path 45840 45841 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 45842 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 45843 fi 45844 45845 # Corresponds to --with-toolchain-path 45846 45847 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45848 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45849 fi 45850 45851 # Corresponds to --with-sysroot 45852 45853 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45854 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45855 fi 45856 45857 # Skip the Window specific parts 45858 fi 45859 45860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45861 $as_echo_n "checking for build platform devkit... " >&6; } 45862 if test "x$BUILD_DEVKIT_NAME" != x; then 45863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45864 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45865 else 45866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45867 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45868 fi 45869 45870 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45871 45872 if test "x$BUILD_SYSROOT" != "x"; then 45873 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45874 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45875 # Solaris Studio does not have a concept of sysroot. Instead we must 45876 # make sure the default include and lib dirs are appended to each 45877 # compile and link command line. Must also add -I-xbuiltin to enable 45878 # inlining of system functions and intrinsics. 45879 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45880 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45881 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45882 fi 45883 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45884 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45885 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45886 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45887 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45888 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45889 fi 45890 # The global CFLAGS and LDFLAGS variables need these for configure to function 45891 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45892 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45893 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45894 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45895 fi 45896 45897 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45898 # We also need -iframework<path>/System/Library/Frameworks 45899 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45900 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45901 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45902 # set this here so it doesn't have to be peppered throughout the forest 45903 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45904 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45905 fi 45906 45907 45908 45909 45910 45911 # Fallback default of just /bin if DEVKIT_PATH is not defined 45912 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45913 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45914 fi 45915 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45916 fi 45917 fi 45918 45919 # FIXME: we should list the discovered compilers as an exclude pattern! 45920 # If we do that, we can do this detection before POST_DETECTION, and still 45921 # find the build compilers in the tools dir, if needed. 45922 45923 45924 45925 # Publish this variable in the help. 45926 45927 45928 if [ -z "${BUILD_CC+x}" ]; then 45929 # The variable is not set by user, try to locate tool using the code snippet 45930 for ac_prog in cl cc gcc 45931 do 45932 # Extract the first word of "$ac_prog", so it can be a program name with args. 45933 set dummy $ac_prog; ac_word=$2 45934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45935 $as_echo_n "checking for $ac_word... " >&6; } 45936 if ${ac_cv_path_BUILD_CC+:} false; then : 45937 $as_echo_n "(cached) " >&6 45938 else 45939 case $BUILD_CC in 45940 [\\/]* | ?:[\\/]*) 45941 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45942 ;; 45943 *) 45944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45945 for as_dir in $PATH 45946 do 45947 IFS=$as_save_IFS 45948 test -z "$as_dir" && as_dir=. 45949 for ac_exec_ext in '' $ac_executable_extensions; do 45950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45951 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45953 break 2 45954 fi 45955 done 45956 done 45957 IFS=$as_save_IFS 45958 45959 ;; 45960 esac 45961 fi 45962 BUILD_CC=$ac_cv_path_BUILD_CC 45963 if test -n "$BUILD_CC"; then 45964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45965 $as_echo "$BUILD_CC" >&6; } 45966 else 45967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45968 $as_echo "no" >&6; } 45969 fi 45970 45971 45972 test -n "$BUILD_CC" && break 45973 done 45974 45975 else 45976 # The variable is set, but is it from the command line or the environment? 45977 45978 # Try to remove the string !BUILD_CC! from our list. 45979 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45980 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45981 # If it failed, the variable was not from the command line. Ignore it, 45982 # but warn the user (except for BASH, which is always set by the calling BASH). 45983 if test "xBUILD_CC" != xBASH; then 45984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45985 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45986 fi 45987 # Try to locate tool using the code snippet 45988 for ac_prog in cl cc gcc 45989 do 45990 # Extract the first word of "$ac_prog", so it can be a program name with args. 45991 set dummy $ac_prog; ac_word=$2 45992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45993 $as_echo_n "checking for $ac_word... " >&6; } 45994 if ${ac_cv_path_BUILD_CC+:} false; then : 45995 $as_echo_n "(cached) " >&6 45996 else 45997 case $BUILD_CC in 45998 [\\/]* | ?:[\\/]*) 45999 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 46000 ;; 46001 *) 46002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46003 for as_dir in $PATH 46004 do 46005 IFS=$as_save_IFS 46006 test -z "$as_dir" && as_dir=. 46007 for ac_exec_ext in '' $ac_executable_extensions; do 46008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46009 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 46010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46011 break 2 46012 fi 46013 done 46014 done 46015 IFS=$as_save_IFS 46016 46017 ;; 46018 esac 46019 fi 46020 BUILD_CC=$ac_cv_path_BUILD_CC 46021 if test -n "$BUILD_CC"; then 46022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46023 $as_echo "$BUILD_CC" >&6; } 46024 else 46025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46026 $as_echo "no" >&6; } 46027 fi 46028 46029 46030 test -n "$BUILD_CC" && break 46031 done 46032 46033 else 46034 # If it succeeded, then it was overridden by the user. We will use it 46035 # for the tool. 46036 46037 # First remove it from the list of overridden variables, so we can test 46038 # for unknown variables in the end. 46039 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46040 46041 # Check if we try to supply an empty value 46042 if test "x$BUILD_CC" = x; then 46043 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 46044 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 46045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46046 $as_echo_n "checking for BUILD_CC... " >&6; } 46047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46048 $as_echo "disabled" >&6; } 46049 else 46050 # Check if the provided tool contains a complete path. 46051 tool_specified="$BUILD_CC" 46052 tool_basename="${tool_specified##*/}" 46053 if test "x$tool_basename" = "x$tool_specified"; then 46054 # A command without a complete path is provided, search $PATH. 46055 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 46056 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 46057 # Extract the first word of "$tool_basename", so it can be a program name with args. 46058 set dummy $tool_basename; ac_word=$2 46059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46060 $as_echo_n "checking for $ac_word... " >&6; } 46061 if ${ac_cv_path_BUILD_CC+:} false; then : 46062 $as_echo_n "(cached) " >&6 46063 else 46064 case $BUILD_CC in 46065 [\\/]* | ?:[\\/]*) 46066 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 46067 ;; 46068 *) 46069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46070 for as_dir in $PATH 46071 do 46072 IFS=$as_save_IFS 46073 test -z "$as_dir" && as_dir=. 46074 for ac_exec_ext in '' $ac_executable_extensions; do 46075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46076 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 46077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46078 break 2 46079 fi 46080 done 46081 done 46082 IFS=$as_save_IFS 46083 46084 ;; 46085 esac 46086 fi 46087 BUILD_CC=$ac_cv_path_BUILD_CC 46088 if test -n "$BUILD_CC"; then 46089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 46090 $as_echo "$BUILD_CC" >&6; } 46091 else 46092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46093 $as_echo "no" >&6; } 46094 fi 46095 46096 46097 if test "x$BUILD_CC" = x; then 46098 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46099 fi 46100 else 46101 # Otherwise we believe it is a complete path. Use it as it is. 46102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 46103 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 46104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46105 $as_echo_n "checking for BUILD_CC... " >&6; } 46106 if test ! -x "$tool_specified"; then 46107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46108 $as_echo "not found" >&6; } 46109 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 46110 fi 46111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46112 $as_echo "$tool_specified" >&6; } 46113 fi 46114 fi 46115 fi 46116 46117 fi 46118 46119 46120 46121 if test "x$BUILD_CC" = x; then 46122 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 46123 fi 46124 46125 46126 46127 # Only process if variable expands to non-empty 46128 46129 if test "x$BUILD_CC" != x; then 46130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46131 46132 # First separate the path from the arguments. This will split at the first 46133 # space. 46134 complete="$BUILD_CC" 46135 path="${complete%% *}" 46136 tmp="$complete EOL" 46137 arguments="${tmp#* }" 46138 46139 # Input might be given as Windows format, start by converting to 46140 # unix format. 46141 new_path=`$CYGPATH -u "$path"` 46142 46143 # Now try to locate executable using which 46144 new_path=`$WHICH "$new_path" 2> /dev/null` 46145 # bat and cmd files are not always considered executable in cygwin causing which 46146 # to not find them 46147 if test "x$new_path" = x \ 46148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46150 new_path=`$CYGPATH -u "$path"` 46151 fi 46152 if test "x$new_path" = x; then 46153 # Oops. Which didn't find the executable. 46154 # The splitting of arguments from the executable at a space might have been incorrect, 46155 # since paths with space are more likely in Windows. Give it another try with the whole 46156 # argument. 46157 path="$complete" 46158 arguments="EOL" 46159 new_path=`$CYGPATH -u "$path"` 46160 new_path=`$WHICH "$new_path" 2> /dev/null` 46161 # bat and cmd files are not always considered executable in cygwin causing which 46162 # to not find them 46163 if test "x$new_path" = x \ 46164 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46165 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46166 new_path=`$CYGPATH -u "$path"` 46167 fi 46168 if test "x$new_path" = x; then 46169 # It's still not found. Now this is an unrecoverable error. 46170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46171 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46172 has_space=`$ECHO "$complete" | $GREP " "` 46173 if test "x$has_space" != x; then 46174 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46176 fi 46177 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46178 fi 46179 fi 46180 46181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46184 # "foo.exe" is OK but "foo" is an error. 46185 # 46186 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46187 # It is also a way to make sure we got the proper file name for the real test later on. 46188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46189 if test "x$test_shortpath" = x; then 46190 # Short path failed, file does not exist as specified. 46191 # Try adding .exe or .cmd 46192 if test -f "${new_path}.exe"; then 46193 input_to_shortpath="${new_path}.exe" 46194 elif test -f "${new_path}.cmd"; then 46195 input_to_shortpath="${new_path}.cmd" 46196 else 46197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 46198 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 46199 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46200 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46201 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46202 fi 46203 else 46204 input_to_shortpath="$new_path" 46205 fi 46206 46207 # Call helper function which possibly converts this using DOS-style short mode. 46208 # If so, the updated path is stored in $new_path. 46209 new_path="$input_to_shortpath" 46210 46211 input_path="$input_to_shortpath" 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 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46220 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46221 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46222 # Going to short mode and back again did indeed matter. Since short mode is 46223 # case insensitive, let's make it lowercase to improve readability. 46224 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46225 # Now convert it back to Unix-style (cygpath) 46226 input_path=`$CYGPATH -u "$shortmode_path"` 46227 new_path="$input_path" 46228 fi 46229 fi 46230 46231 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46232 if test "x$test_cygdrive_prefix" = x; then 46233 # As a simple fix, exclude /usr/bin since it's not a real path. 46234 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46235 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46236 # a path prefixed by /cygdrive for fixpath to work. 46237 new_path="$CYGWIN_ROOT_PATH$input_path" 46238 fi 46239 fi 46240 46241 # remove trailing .exe if any 46242 new_path="${new_path/%.exe/}" 46243 46244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46245 46246 # First separate the path from the arguments. This will split at the first 46247 # space. 46248 complete="$BUILD_CC" 46249 path="${complete%% *}" 46250 tmp="$complete EOL" 46251 arguments="${tmp#* }" 46252 46253 # Input might be given as Windows format, start by converting to 46254 # unix format. 46255 new_path="$path" 46256 46257 windows_path="$new_path" 46258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46259 unix_path=`$CYGPATH -u "$windows_path"` 46260 new_path="$unix_path" 46261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46263 new_path="$unix_path" 46264 fi 46265 46266 46267 # Now try to locate executable using which 46268 new_path=`$WHICH "$new_path" 2> /dev/null` 46269 46270 if test "x$new_path" = x; then 46271 # Oops. Which didn't find the executable. 46272 # The splitting of arguments from the executable at a space might have been incorrect, 46273 # since paths with space are more likely in Windows. Give it another try with the whole 46274 # argument. 46275 path="$complete" 46276 arguments="EOL" 46277 new_path="$path" 46278 46279 windows_path="$new_path" 46280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46281 unix_path=`$CYGPATH -u "$windows_path"` 46282 new_path="$unix_path" 46283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46285 new_path="$unix_path" 46286 fi 46287 46288 46289 new_path=`$WHICH "$new_path" 2> /dev/null` 46290 # bat and cmd files are not always considered executable in MSYS causing which 46291 # to not find them 46292 if test "x$new_path" = x \ 46293 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46294 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46295 new_path="$path" 46296 46297 windows_path="$new_path" 46298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46299 unix_path=`$CYGPATH -u "$windows_path"` 46300 new_path="$unix_path" 46301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46303 new_path="$unix_path" 46304 fi 46305 46306 fi 46307 46308 if test "x$new_path" = x; then 46309 # It's still not found. Now this is an unrecoverable error. 46310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46311 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46312 has_space=`$ECHO "$complete" | $GREP " "` 46313 if test "x$has_space" != x; then 46314 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46315 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46316 fi 46317 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46318 fi 46319 fi 46320 46321 # Now new_path has a complete unix path to the binary 46322 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46323 # Keep paths in /bin as-is, but remove trailing .exe if any 46324 new_path="${new_path/%.exe/}" 46325 # Do not save /bin paths to all_fixpath_prefixes! 46326 else 46327 # Not in mixed or Windows style, start by that. 46328 new_path=`cmd //c echo $new_path` 46329 46330 input_path="$new_path" 46331 # Check if we need to convert this using DOS-style short mode. If the path 46332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46333 # take no chances and rewrite it. 46334 # Note: m4 eats our [], so we need to use [ and ] instead. 46335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46336 if test "x$has_forbidden_chars" != x; then 46337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46339 fi 46340 46341 # Output is in $new_path 46342 46343 windows_path="$new_path" 46344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46345 unix_path=`$CYGPATH -u "$windows_path"` 46346 new_path="$unix_path" 46347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46349 new_path="$unix_path" 46350 fi 46351 46352 # remove trailing .exe if any 46353 new_path="${new_path/%.exe/}" 46354 46355 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46356 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46357 fi 46358 46359 else 46360 # We're on a unix platform. Hooray! :) 46361 # First separate the path from the arguments. This will split at the first 46362 # space. 46363 complete="$BUILD_CC" 46364 path="${complete%% *}" 46365 tmp="$complete EOL" 46366 arguments="${tmp#* }" 46367 46368 # Cannot rely on the command "which" here since it doesn't always work. 46369 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46370 if test -z "$is_absolute_path"; then 46371 # Path to executable is not absolute. Find it. 46372 IFS_save="$IFS" 46373 IFS=: 46374 for p in $PATH; do 46375 if test -f "$p/$path" && test -x "$p/$path"; then 46376 new_path="$p/$path" 46377 break 46378 fi 46379 done 46380 IFS="$IFS_save" 46381 else 46382 # This is an absolute path, we can use it without further modifications. 46383 new_path="$path" 46384 fi 46385 46386 if test "x$new_path" = x; then 46387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46388 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46389 has_space=`$ECHO "$complete" | $GREP " "` 46390 if test "x$has_space" != x; then 46391 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46392 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46393 fi 46394 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46395 fi 46396 fi 46397 46398 # Now join together the path and the arguments once again 46399 if test "x$arguments" != xEOL; then 46400 new_complete="$new_path ${arguments% *}" 46401 else 46402 new_complete="$new_path" 46403 fi 46404 46405 if test "x$complete" != "x$new_complete"; then 46406 BUILD_CC="$new_complete" 46407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 46408 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 46409 fi 46410 fi 46411 46412 46413 46414 46415 # Publish this variable in the help. 46416 46417 46418 if [ -z "${BUILD_CXX+x}" ]; then 46419 # The variable is not set by user, try to locate tool using the code snippet 46420 for ac_prog in cl CC g++ 46421 do 46422 # Extract the first word of "$ac_prog", so it can be a program name with args. 46423 set dummy $ac_prog; ac_word=$2 46424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46425 $as_echo_n "checking for $ac_word... " >&6; } 46426 if ${ac_cv_path_BUILD_CXX+:} false; then : 46427 $as_echo_n "(cached) " >&6 46428 else 46429 case $BUILD_CXX in 46430 [\\/]* | ?:[\\/]*) 46431 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46432 ;; 46433 *) 46434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46435 for as_dir in $PATH 46436 do 46437 IFS=$as_save_IFS 46438 test -z "$as_dir" && as_dir=. 46439 for ac_exec_ext in '' $ac_executable_extensions; do 46440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46441 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46443 break 2 46444 fi 46445 done 46446 done 46447 IFS=$as_save_IFS 46448 46449 ;; 46450 esac 46451 fi 46452 BUILD_CXX=$ac_cv_path_BUILD_CXX 46453 if test -n "$BUILD_CXX"; then 46454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46455 $as_echo "$BUILD_CXX" >&6; } 46456 else 46457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46458 $as_echo "no" >&6; } 46459 fi 46460 46461 46462 test -n "$BUILD_CXX" && break 46463 done 46464 46465 else 46466 # The variable is set, but is it from the command line or the environment? 46467 46468 # Try to remove the string !BUILD_CXX! from our list. 46469 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 46470 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46471 # If it failed, the variable was not from the command line. Ignore it, 46472 # but warn the user (except for BASH, which is always set by the calling BASH). 46473 if test "xBUILD_CXX" != xBASH; then 46474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 46475 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 46476 fi 46477 # Try to locate tool using the code snippet 46478 for ac_prog in cl CC g++ 46479 do 46480 # Extract the first word of "$ac_prog", so it can be a program name with args. 46481 set dummy $ac_prog; ac_word=$2 46482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46483 $as_echo_n "checking for $ac_word... " >&6; } 46484 if ${ac_cv_path_BUILD_CXX+:} false; then : 46485 $as_echo_n "(cached) " >&6 46486 else 46487 case $BUILD_CXX in 46488 [\\/]* | ?:[\\/]*) 46489 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46490 ;; 46491 *) 46492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46493 for as_dir in $PATH 46494 do 46495 IFS=$as_save_IFS 46496 test -z "$as_dir" && as_dir=. 46497 for ac_exec_ext in '' $ac_executable_extensions; do 46498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46499 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46501 break 2 46502 fi 46503 done 46504 done 46505 IFS=$as_save_IFS 46506 46507 ;; 46508 esac 46509 fi 46510 BUILD_CXX=$ac_cv_path_BUILD_CXX 46511 if test -n "$BUILD_CXX"; then 46512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46513 $as_echo "$BUILD_CXX" >&6; } 46514 else 46515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46516 $as_echo "no" >&6; } 46517 fi 46518 46519 46520 test -n "$BUILD_CXX" && break 46521 done 46522 46523 else 46524 # If it succeeded, then it was overridden by the user. We will use it 46525 # for the tool. 46526 46527 # First remove it from the list of overridden variables, so we can test 46528 # for unknown variables in the end. 46529 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46530 46531 # Check if we try to supply an empty value 46532 if test "x$BUILD_CXX" = x; then 46533 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 46534 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 46535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46536 $as_echo_n "checking for BUILD_CXX... " >&6; } 46537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46538 $as_echo "disabled" >&6; } 46539 else 46540 # Check if the provided tool contains a complete path. 46541 tool_specified="$BUILD_CXX" 46542 tool_basename="${tool_specified##*/}" 46543 if test "x$tool_basename" = "x$tool_specified"; then 46544 # A command without a complete path is provided, search $PATH. 46545 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 46546 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 46547 # Extract the first word of "$tool_basename", so it can be a program name with args. 46548 set dummy $tool_basename; ac_word=$2 46549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46550 $as_echo_n "checking for $ac_word... " >&6; } 46551 if ${ac_cv_path_BUILD_CXX+:} false; then : 46552 $as_echo_n "(cached) " >&6 46553 else 46554 case $BUILD_CXX in 46555 [\\/]* | ?:[\\/]*) 46556 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46557 ;; 46558 *) 46559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46560 for as_dir in $PATH 46561 do 46562 IFS=$as_save_IFS 46563 test -z "$as_dir" && as_dir=. 46564 for ac_exec_ext in '' $ac_executable_extensions; do 46565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46566 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46568 break 2 46569 fi 46570 done 46571 done 46572 IFS=$as_save_IFS 46573 46574 ;; 46575 esac 46576 fi 46577 BUILD_CXX=$ac_cv_path_BUILD_CXX 46578 if test -n "$BUILD_CXX"; then 46579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46580 $as_echo "$BUILD_CXX" >&6; } 46581 else 46582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46583 $as_echo "no" >&6; } 46584 fi 46585 46586 46587 if test "x$BUILD_CXX" = x; then 46588 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46589 fi 46590 else 46591 # Otherwise we believe it is a complete path. Use it as it is. 46592 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 46593 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 46594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46595 $as_echo_n "checking for BUILD_CXX... " >&6; } 46596 if test ! -x "$tool_specified"; then 46597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46598 $as_echo "not found" >&6; } 46599 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 46600 fi 46601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46602 $as_echo "$tool_specified" >&6; } 46603 fi 46604 fi 46605 fi 46606 46607 fi 46608 46609 46610 46611 if test "x$BUILD_CXX" = x; then 46612 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 46613 fi 46614 46615 46616 46617 # Only process if variable expands to non-empty 46618 46619 if test "x$BUILD_CXX" != x; then 46620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46621 46622 # First separate the path from the arguments. This will split at the first 46623 # space. 46624 complete="$BUILD_CXX" 46625 path="${complete%% *}" 46626 tmp="$complete EOL" 46627 arguments="${tmp#* }" 46628 46629 # Input might be given as Windows format, start by converting to 46630 # unix format. 46631 new_path=`$CYGPATH -u "$path"` 46632 46633 # Now try to locate executable using which 46634 new_path=`$WHICH "$new_path" 2> /dev/null` 46635 # bat and cmd files are not always considered executable in cygwin causing which 46636 # to not find them 46637 if test "x$new_path" = x \ 46638 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46639 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46640 new_path=`$CYGPATH -u "$path"` 46641 fi 46642 if test "x$new_path" = x; then 46643 # Oops. Which didn't find the executable. 46644 # The splitting of arguments from the executable at a space might have been incorrect, 46645 # since paths with space are more likely in Windows. Give it another try with the whole 46646 # argument. 46647 path="$complete" 46648 arguments="EOL" 46649 new_path=`$CYGPATH -u "$path"` 46650 new_path=`$WHICH "$new_path" 2> /dev/null` 46651 # bat and cmd files are not always considered executable in cygwin causing which 46652 # to not find them 46653 if test "x$new_path" = x \ 46654 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46655 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46656 new_path=`$CYGPATH -u "$path"` 46657 fi 46658 if test "x$new_path" = x; then 46659 # It's still not found. Now this is an unrecoverable error. 46660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46661 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46662 has_space=`$ECHO "$complete" | $GREP " "` 46663 if test "x$has_space" != x; then 46664 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46665 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46666 fi 46667 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46668 fi 46669 fi 46670 46671 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46672 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46673 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46674 # "foo.exe" is OK but "foo" is an error. 46675 # 46676 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46677 # It is also a way to make sure we got the proper file name for the real test later on. 46678 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46679 if test "x$test_shortpath" = x; then 46680 # Short path failed, file does not exist as specified. 46681 # Try adding .exe or .cmd 46682 if test -f "${new_path}.exe"; then 46683 input_to_shortpath="${new_path}.exe" 46684 elif test -f "${new_path}.cmd"; then 46685 input_to_shortpath="${new_path}.cmd" 46686 else 46687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 46688 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 46689 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46690 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46691 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46692 fi 46693 else 46694 input_to_shortpath="$new_path" 46695 fi 46696 46697 # Call helper function which possibly converts this using DOS-style short mode. 46698 # If so, the updated path is stored in $new_path. 46699 new_path="$input_to_shortpath" 46700 46701 input_path="$input_to_shortpath" 46702 # Check if we need to convert this using DOS-style short mode. If the path 46703 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46704 # take no chances and rewrite it. 46705 # Note: m4 eats our [], so we need to use [ and ] instead. 46706 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46707 if test "x$has_forbidden_chars" != x; then 46708 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46709 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46710 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46711 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46712 # Going to short mode and back again did indeed matter. Since short mode is 46713 # case insensitive, let's make it lowercase to improve readability. 46714 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46715 # Now convert it back to Unix-style (cygpath) 46716 input_path=`$CYGPATH -u "$shortmode_path"` 46717 new_path="$input_path" 46718 fi 46719 fi 46720 46721 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46722 if test "x$test_cygdrive_prefix" = x; then 46723 # As a simple fix, exclude /usr/bin since it's not a real path. 46724 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46725 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46726 # a path prefixed by /cygdrive for fixpath to work. 46727 new_path="$CYGWIN_ROOT_PATH$input_path" 46728 fi 46729 fi 46730 46731 # remove trailing .exe if any 46732 new_path="${new_path/%.exe/}" 46733 46734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46735 46736 # First separate the path from the arguments. This will split at the first 46737 # space. 46738 complete="$BUILD_CXX" 46739 path="${complete%% *}" 46740 tmp="$complete EOL" 46741 arguments="${tmp#* }" 46742 46743 # Input might be given as Windows format, start by converting to 46744 # unix format. 46745 new_path="$path" 46746 46747 windows_path="$new_path" 46748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46749 unix_path=`$CYGPATH -u "$windows_path"` 46750 new_path="$unix_path" 46751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46753 new_path="$unix_path" 46754 fi 46755 46756 46757 # Now try to locate executable using which 46758 new_path=`$WHICH "$new_path" 2> /dev/null` 46759 46760 if test "x$new_path" = x; then 46761 # Oops. Which didn't find the executable. 46762 # The splitting of arguments from the executable at a space might have been incorrect, 46763 # since paths with space are more likely in Windows. Give it another try with the whole 46764 # argument. 46765 path="$complete" 46766 arguments="EOL" 46767 new_path="$path" 46768 46769 windows_path="$new_path" 46770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46771 unix_path=`$CYGPATH -u "$windows_path"` 46772 new_path="$unix_path" 46773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46775 new_path="$unix_path" 46776 fi 46777 46778 46779 new_path=`$WHICH "$new_path" 2> /dev/null` 46780 # bat and cmd files are not always considered executable in MSYS causing which 46781 # to not find them 46782 if test "x$new_path" = x \ 46783 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46784 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46785 new_path="$path" 46786 46787 windows_path="$new_path" 46788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46789 unix_path=`$CYGPATH -u "$windows_path"` 46790 new_path="$unix_path" 46791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46793 new_path="$unix_path" 46794 fi 46795 46796 fi 46797 46798 if test "x$new_path" = x; then 46799 # It's still not found. Now this is an unrecoverable error. 46800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46801 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46802 has_space=`$ECHO "$complete" | $GREP " "` 46803 if test "x$has_space" != x; then 46804 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46805 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46806 fi 46807 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46808 fi 46809 fi 46810 46811 # Now new_path has a complete unix path to the binary 46812 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46813 # Keep paths in /bin as-is, but remove trailing .exe if any 46814 new_path="${new_path/%.exe/}" 46815 # Do not save /bin paths to all_fixpath_prefixes! 46816 else 46817 # Not in mixed or Windows style, start by that. 46818 new_path=`cmd //c echo $new_path` 46819 46820 input_path="$new_path" 46821 # Check if we need to convert this using DOS-style short mode. If the path 46822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46823 # take no chances and rewrite it. 46824 # Note: m4 eats our [], so we need to use [ and ] instead. 46825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46826 if test "x$has_forbidden_chars" != x; then 46827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46828 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46829 fi 46830 46831 # Output is in $new_path 46832 46833 windows_path="$new_path" 46834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46835 unix_path=`$CYGPATH -u "$windows_path"` 46836 new_path="$unix_path" 46837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46839 new_path="$unix_path" 46840 fi 46841 46842 # remove trailing .exe if any 46843 new_path="${new_path/%.exe/}" 46844 46845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46847 fi 46848 46849 else 46850 # We're on a unix platform. Hooray! :) 46851 # First separate the path from the arguments. This will split at the first 46852 # space. 46853 complete="$BUILD_CXX" 46854 path="${complete%% *}" 46855 tmp="$complete EOL" 46856 arguments="${tmp#* }" 46857 46858 # Cannot rely on the command "which" here since it doesn't always work. 46859 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46860 if test -z "$is_absolute_path"; then 46861 # Path to executable is not absolute. Find it. 46862 IFS_save="$IFS" 46863 IFS=: 46864 for p in $PATH; do 46865 if test -f "$p/$path" && test -x "$p/$path"; then 46866 new_path="$p/$path" 46867 break 46868 fi 46869 done 46870 IFS="$IFS_save" 46871 else 46872 # This is an absolute path, we can use it without further modifications. 46873 new_path="$path" 46874 fi 46875 46876 if test "x$new_path" = x; then 46877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46878 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46879 has_space=`$ECHO "$complete" | $GREP " "` 46880 if test "x$has_space" != x; then 46881 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46882 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46883 fi 46884 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46885 fi 46886 fi 46887 46888 # Now join together the path and the arguments once again 46889 if test "x$arguments" != xEOL; then 46890 new_complete="$new_path ${arguments% *}" 46891 else 46892 new_complete="$new_path" 46893 fi 46894 46895 if test "x$complete" != "x$new_complete"; then 46896 BUILD_CXX="$new_complete" 46897 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46898 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46899 fi 46900 fi 46901 46902 46903 46904 # Publish this variable in the help. 46905 46906 46907 if [ -z "${BUILD_NM+x}" ]; then 46908 # The variable is not set by user, try to locate tool using the code snippet 46909 for ac_prog in nm gcc-nm 46910 do 46911 # Extract the first word of "$ac_prog", so it can be a program name with args. 46912 set dummy $ac_prog; ac_word=$2 46913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46914 $as_echo_n "checking for $ac_word... " >&6; } 46915 if ${ac_cv_path_BUILD_NM+:} false; then : 46916 $as_echo_n "(cached) " >&6 46917 else 46918 case $BUILD_NM in 46919 [\\/]* | ?:[\\/]*) 46920 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46921 ;; 46922 *) 46923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46924 for as_dir in $PATH 46925 do 46926 IFS=$as_save_IFS 46927 test -z "$as_dir" && as_dir=. 46928 for ac_exec_ext in '' $ac_executable_extensions; do 46929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46930 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46932 break 2 46933 fi 46934 done 46935 done 46936 IFS=$as_save_IFS 46937 46938 ;; 46939 esac 46940 fi 46941 BUILD_NM=$ac_cv_path_BUILD_NM 46942 if test -n "$BUILD_NM"; then 46943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46944 $as_echo "$BUILD_NM" >&6; } 46945 else 46946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46947 $as_echo "no" >&6; } 46948 fi 46949 46950 46951 test -n "$BUILD_NM" && break 46952 done 46953 46954 else 46955 # The variable is set, but is it from the command line or the environment? 46956 46957 # Try to remove the string !BUILD_NM! from our list. 46958 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46959 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46960 # If it failed, the variable was not from the command line. Ignore it, 46961 # but warn the user (except for BASH, which is always set by the calling BASH). 46962 if test "xBUILD_NM" != xBASH; then 46963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46964 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46965 fi 46966 # Try to locate tool using the code snippet 46967 for ac_prog in nm gcc-nm 46968 do 46969 # Extract the first word of "$ac_prog", so it can be a program name with args. 46970 set dummy $ac_prog; ac_word=$2 46971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46972 $as_echo_n "checking for $ac_word... " >&6; } 46973 if ${ac_cv_path_BUILD_NM+:} false; then : 46974 $as_echo_n "(cached) " >&6 46975 else 46976 case $BUILD_NM in 46977 [\\/]* | ?:[\\/]*) 46978 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46979 ;; 46980 *) 46981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46982 for as_dir in $PATH 46983 do 46984 IFS=$as_save_IFS 46985 test -z "$as_dir" && as_dir=. 46986 for ac_exec_ext in '' $ac_executable_extensions; do 46987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46988 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46990 break 2 46991 fi 46992 done 46993 done 46994 IFS=$as_save_IFS 46995 46996 ;; 46997 esac 46998 fi 46999 BUILD_NM=$ac_cv_path_BUILD_NM 47000 if test -n "$BUILD_NM"; then 47001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 47002 $as_echo "$BUILD_NM" >&6; } 47003 else 47004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47005 $as_echo "no" >&6; } 47006 fi 47007 47008 47009 test -n "$BUILD_NM" && break 47010 done 47011 47012 else 47013 # If it succeeded, then it was overridden by the user. We will use it 47014 # for the tool. 47015 47016 # First remove it from the list of overridden variables, so we can test 47017 # for unknown variables in the end. 47018 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47019 47020 # Check if we try to supply an empty value 47021 if test "x$BUILD_NM" = x; then 47022 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 47023 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 47024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 47025 $as_echo_n "checking for BUILD_NM... " >&6; } 47026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47027 $as_echo "disabled" >&6; } 47028 else 47029 # Check if the provided tool contains a complete path. 47030 tool_specified="$BUILD_NM" 47031 tool_basename="${tool_specified##*/}" 47032 if test "x$tool_basename" = "x$tool_specified"; then 47033 # A command without a complete path is provided, search $PATH. 47034 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 47035 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 47036 # Extract the first word of "$tool_basename", so it can be a program name with args. 47037 set dummy $tool_basename; ac_word=$2 47038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47039 $as_echo_n "checking for $ac_word... " >&6; } 47040 if ${ac_cv_path_BUILD_NM+:} false; then : 47041 $as_echo_n "(cached) " >&6 47042 else 47043 case $BUILD_NM in 47044 [\\/]* | ?:[\\/]*) 47045 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 47046 ;; 47047 *) 47048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47049 for as_dir in $PATH 47050 do 47051 IFS=$as_save_IFS 47052 test -z "$as_dir" && as_dir=. 47053 for ac_exec_ext in '' $ac_executable_extensions; do 47054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47055 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 47056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47057 break 2 47058 fi 47059 done 47060 done 47061 IFS=$as_save_IFS 47062 47063 ;; 47064 esac 47065 fi 47066 BUILD_NM=$ac_cv_path_BUILD_NM 47067 if test -n "$BUILD_NM"; then 47068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 47069 $as_echo "$BUILD_NM" >&6; } 47070 else 47071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47072 $as_echo "no" >&6; } 47073 fi 47074 47075 47076 if test "x$BUILD_NM" = x; then 47077 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47078 fi 47079 else 47080 # Otherwise we believe it is a complete path. Use it as it is. 47081 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 47082 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 47083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 47084 $as_echo_n "checking for BUILD_NM... " >&6; } 47085 if test ! -x "$tool_specified"; then 47086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47087 $as_echo "not found" >&6; } 47088 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 47089 fi 47090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47091 $as_echo "$tool_specified" >&6; } 47092 fi 47093 fi 47094 fi 47095 47096 fi 47097 47098 47099 47100 # Only process if variable expands to non-empty 47101 47102 if test "x$BUILD_NM" != x; then 47103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47104 47105 # First separate the path from the arguments. This will split at the first 47106 # space. 47107 complete="$BUILD_NM" 47108 path="${complete%% *}" 47109 tmp="$complete EOL" 47110 arguments="${tmp#* }" 47111 47112 # Input might be given as Windows format, start by converting to 47113 # unix format. 47114 new_path=`$CYGPATH -u "$path"` 47115 47116 # Now try to locate executable using which 47117 new_path=`$WHICH "$new_path" 2> /dev/null` 47118 # bat and cmd files are not always considered executable in cygwin causing which 47119 # to not find them 47120 if test "x$new_path" = x \ 47121 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47122 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47123 new_path=`$CYGPATH -u "$path"` 47124 fi 47125 if test "x$new_path" = x; then 47126 # Oops. Which didn't find the executable. 47127 # The splitting of arguments from the executable at a space might have been incorrect, 47128 # since paths with space are more likely in Windows. Give it another try with the whole 47129 # argument. 47130 path="$complete" 47131 arguments="EOL" 47132 new_path=`$CYGPATH -u "$path"` 47133 new_path=`$WHICH "$new_path" 2> /dev/null` 47134 # bat and cmd files are not always considered executable in cygwin causing which 47135 # to not find them 47136 if test "x$new_path" = x \ 47137 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47138 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47139 new_path=`$CYGPATH -u "$path"` 47140 fi 47141 if test "x$new_path" = x; then 47142 # It's still not found. Now this is an unrecoverable error. 47143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47144 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47145 has_space=`$ECHO "$complete" | $GREP " "` 47146 if test "x$has_space" != x; then 47147 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47148 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47149 fi 47150 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47151 fi 47152 fi 47153 47154 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47155 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47156 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47157 # "foo.exe" is OK but "foo" is an error. 47158 # 47159 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47160 # It is also a way to make sure we got the proper file name for the real test later on. 47161 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47162 if test "x$test_shortpath" = x; then 47163 # Short path failed, file does not exist as specified. 47164 # Try adding .exe or .cmd 47165 if test -f "${new_path}.exe"; then 47166 input_to_shortpath="${new_path}.exe" 47167 elif test -f "${new_path}.cmd"; then 47168 input_to_shortpath="${new_path}.cmd" 47169 else 47170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 47171 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 47172 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47173 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47174 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47175 fi 47176 else 47177 input_to_shortpath="$new_path" 47178 fi 47179 47180 # Call helper function which possibly converts this using DOS-style short mode. 47181 # If so, the updated path is stored in $new_path. 47182 new_path="$input_to_shortpath" 47183 47184 input_path="$input_to_shortpath" 47185 # Check if we need to convert this using DOS-style short mode. If the path 47186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47187 # take no chances and rewrite it. 47188 # Note: m4 eats our [], so we need to use [ and ] instead. 47189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47190 if test "x$has_forbidden_chars" != x; then 47191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47195 # Going to short mode and back again did indeed matter. Since short mode is 47196 # case insensitive, let's make it lowercase to improve readability. 47197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47198 # Now convert it back to Unix-style (cygpath) 47199 input_path=`$CYGPATH -u "$shortmode_path"` 47200 new_path="$input_path" 47201 fi 47202 fi 47203 47204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47205 if test "x$test_cygdrive_prefix" = x; then 47206 # As a simple fix, exclude /usr/bin since it's not a real path. 47207 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47209 # a path prefixed by /cygdrive for fixpath to work. 47210 new_path="$CYGWIN_ROOT_PATH$input_path" 47211 fi 47212 fi 47213 47214 # remove trailing .exe if any 47215 new_path="${new_path/%.exe/}" 47216 47217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47218 47219 # First separate the path from the arguments. This will split at the first 47220 # space. 47221 complete="$BUILD_NM" 47222 path="${complete%% *}" 47223 tmp="$complete EOL" 47224 arguments="${tmp#* }" 47225 47226 # Input might be given as Windows format, start by converting to 47227 # unix format. 47228 new_path="$path" 47229 47230 windows_path="$new_path" 47231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47232 unix_path=`$CYGPATH -u "$windows_path"` 47233 new_path="$unix_path" 47234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47236 new_path="$unix_path" 47237 fi 47238 47239 47240 # Now try to locate executable using which 47241 new_path=`$WHICH "$new_path" 2> /dev/null` 47242 47243 if test "x$new_path" = x; then 47244 # Oops. Which didn't find the executable. 47245 # The splitting of arguments from the executable at a space might have been incorrect, 47246 # since paths with space are more likely in Windows. Give it another try with the whole 47247 # argument. 47248 path="$complete" 47249 arguments="EOL" 47250 new_path="$path" 47251 47252 windows_path="$new_path" 47253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47254 unix_path=`$CYGPATH -u "$windows_path"` 47255 new_path="$unix_path" 47256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47258 new_path="$unix_path" 47259 fi 47260 47261 47262 new_path=`$WHICH "$new_path" 2> /dev/null` 47263 # bat and cmd files are not always considered executable in MSYS causing which 47264 # to not find them 47265 if test "x$new_path" = x \ 47266 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47267 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47268 new_path="$path" 47269 47270 windows_path="$new_path" 47271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47272 unix_path=`$CYGPATH -u "$windows_path"` 47273 new_path="$unix_path" 47274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47275 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47276 new_path="$unix_path" 47277 fi 47278 47279 fi 47280 47281 if test "x$new_path" = x; then 47282 # It's still not found. Now this is an unrecoverable error. 47283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47284 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47285 has_space=`$ECHO "$complete" | $GREP " "` 47286 if test "x$has_space" != x; then 47287 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47288 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47289 fi 47290 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47291 fi 47292 fi 47293 47294 # Now new_path has a complete unix path to the binary 47295 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47296 # Keep paths in /bin as-is, but remove trailing .exe if any 47297 new_path="${new_path/%.exe/}" 47298 # Do not save /bin paths to all_fixpath_prefixes! 47299 else 47300 # Not in mixed or Windows style, start by that. 47301 new_path=`cmd //c echo $new_path` 47302 47303 input_path="$new_path" 47304 # Check if we need to convert this using DOS-style short mode. If the path 47305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47306 # take no chances and rewrite it. 47307 # Note: m4 eats our [], so we need to use [ and ] instead. 47308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47309 if test "x$has_forbidden_chars" != x; then 47310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47312 fi 47313 47314 # Output is in $new_path 47315 47316 windows_path="$new_path" 47317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47318 unix_path=`$CYGPATH -u "$windows_path"` 47319 new_path="$unix_path" 47320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47322 new_path="$unix_path" 47323 fi 47324 47325 # remove trailing .exe if any 47326 new_path="${new_path/%.exe/}" 47327 47328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47330 fi 47331 47332 else 47333 # We're on a unix platform. Hooray! :) 47334 # First separate the path from the arguments. This will split at the first 47335 # space. 47336 complete="$BUILD_NM" 47337 path="${complete%% *}" 47338 tmp="$complete EOL" 47339 arguments="${tmp#* }" 47340 47341 # Cannot rely on the command "which" here since it doesn't always work. 47342 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47343 if test -z "$is_absolute_path"; then 47344 # Path to executable is not absolute. Find it. 47345 IFS_save="$IFS" 47346 IFS=: 47347 for p in $PATH; do 47348 if test -f "$p/$path" && test -x "$p/$path"; then 47349 new_path="$p/$path" 47350 break 47351 fi 47352 done 47353 IFS="$IFS_save" 47354 else 47355 # This is an absolute path, we can use it without further modifications. 47356 new_path="$path" 47357 fi 47358 47359 if test "x$new_path" = x; then 47360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47361 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47362 has_space=`$ECHO "$complete" | $GREP " "` 47363 if test "x$has_space" != x; then 47364 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47365 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47366 fi 47367 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47368 fi 47369 fi 47370 47371 # Now join together the path and the arguments once again 47372 if test "x$arguments" != xEOL; then 47373 new_complete="$new_path ${arguments% *}" 47374 else 47375 new_complete="$new_path" 47376 fi 47377 47378 if test "x$complete" != "x$new_complete"; then 47379 BUILD_NM="$new_complete" 47380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 47381 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 47382 fi 47383 fi 47384 47385 47386 47387 # Publish this variable in the help. 47388 47389 47390 if [ -z "${BUILD_AR+x}" ]; then 47391 # The variable is not set by user, try to locate tool using the code snippet 47392 for ac_prog in ar gcc-ar 47393 do 47394 # Extract the first word of "$ac_prog", so it can be a program name with args. 47395 set dummy $ac_prog; ac_word=$2 47396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47397 $as_echo_n "checking for $ac_word... " >&6; } 47398 if ${ac_cv_path_BUILD_AR+:} false; then : 47399 $as_echo_n "(cached) " >&6 47400 else 47401 case $BUILD_AR in 47402 [\\/]* | ?:[\\/]*) 47403 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47404 ;; 47405 *) 47406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47407 for as_dir in $PATH 47408 do 47409 IFS=$as_save_IFS 47410 test -z "$as_dir" && as_dir=. 47411 for ac_exec_ext in '' $ac_executable_extensions; do 47412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47413 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47415 break 2 47416 fi 47417 done 47418 done 47419 IFS=$as_save_IFS 47420 47421 ;; 47422 esac 47423 fi 47424 BUILD_AR=$ac_cv_path_BUILD_AR 47425 if test -n "$BUILD_AR"; then 47426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47427 $as_echo "$BUILD_AR" >&6; } 47428 else 47429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47430 $as_echo "no" >&6; } 47431 fi 47432 47433 47434 test -n "$BUILD_AR" && break 47435 done 47436 47437 else 47438 # The variable is set, but is it from the command line or the environment? 47439 47440 # Try to remove the string !BUILD_AR! from our list. 47441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 47442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47443 # If it failed, the variable was not from the command line. Ignore it, 47444 # but warn the user (except for BASH, which is always set by the calling BASH). 47445 if test "xBUILD_AR" != xBASH; then 47446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 47447 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 47448 fi 47449 # Try to locate tool using the code snippet 47450 for ac_prog in ar gcc-ar 47451 do 47452 # Extract the first word of "$ac_prog", so it can be a program name with args. 47453 set dummy $ac_prog; ac_word=$2 47454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47455 $as_echo_n "checking for $ac_word... " >&6; } 47456 if ${ac_cv_path_BUILD_AR+:} false; then : 47457 $as_echo_n "(cached) " >&6 47458 else 47459 case $BUILD_AR in 47460 [\\/]* | ?:[\\/]*) 47461 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47462 ;; 47463 *) 47464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47465 for as_dir in $PATH 47466 do 47467 IFS=$as_save_IFS 47468 test -z "$as_dir" && as_dir=. 47469 for ac_exec_ext in '' $ac_executable_extensions; do 47470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47471 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47473 break 2 47474 fi 47475 done 47476 done 47477 IFS=$as_save_IFS 47478 47479 ;; 47480 esac 47481 fi 47482 BUILD_AR=$ac_cv_path_BUILD_AR 47483 if test -n "$BUILD_AR"; then 47484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47485 $as_echo "$BUILD_AR" >&6; } 47486 else 47487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47488 $as_echo "no" >&6; } 47489 fi 47490 47491 47492 test -n "$BUILD_AR" && break 47493 done 47494 47495 else 47496 # If it succeeded, then it was overridden by the user. We will use it 47497 # for the tool. 47498 47499 # First remove it from the list of overridden variables, so we can test 47500 # for unknown variables in the end. 47501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47502 47503 # Check if we try to supply an empty value 47504 if test "x$BUILD_AR" = x; then 47505 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 47506 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 47507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47508 $as_echo_n "checking for BUILD_AR... " >&6; } 47509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47510 $as_echo "disabled" >&6; } 47511 else 47512 # Check if the provided tool contains a complete path. 47513 tool_specified="$BUILD_AR" 47514 tool_basename="${tool_specified##*/}" 47515 if test "x$tool_basename" = "x$tool_specified"; then 47516 # A command without a complete path is provided, search $PATH. 47517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 47518 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 47519 # Extract the first word of "$tool_basename", so it can be a program name with args. 47520 set dummy $tool_basename; ac_word=$2 47521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47522 $as_echo_n "checking for $ac_word... " >&6; } 47523 if ${ac_cv_path_BUILD_AR+:} false; then : 47524 $as_echo_n "(cached) " >&6 47525 else 47526 case $BUILD_AR in 47527 [\\/]* | ?:[\\/]*) 47528 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47529 ;; 47530 *) 47531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47532 for as_dir in $PATH 47533 do 47534 IFS=$as_save_IFS 47535 test -z "$as_dir" && as_dir=. 47536 for ac_exec_ext in '' $ac_executable_extensions; do 47537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47538 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47540 break 2 47541 fi 47542 done 47543 done 47544 IFS=$as_save_IFS 47545 47546 ;; 47547 esac 47548 fi 47549 BUILD_AR=$ac_cv_path_BUILD_AR 47550 if test -n "$BUILD_AR"; then 47551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47552 $as_echo "$BUILD_AR" >&6; } 47553 else 47554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47555 $as_echo "no" >&6; } 47556 fi 47557 47558 47559 if test "x$BUILD_AR" = x; then 47560 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47561 fi 47562 else 47563 # Otherwise we believe it is a complete path. Use it as it is. 47564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 47565 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 47566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47567 $as_echo_n "checking for BUILD_AR... " >&6; } 47568 if test ! -x "$tool_specified"; then 47569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47570 $as_echo "not found" >&6; } 47571 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 47572 fi 47573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47574 $as_echo "$tool_specified" >&6; } 47575 fi 47576 fi 47577 fi 47578 47579 fi 47580 47581 47582 47583 # Only process if variable expands to non-empty 47584 47585 if test "x$BUILD_AR" != x; then 47586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47587 47588 # First separate the path from the arguments. This will split at the first 47589 # space. 47590 complete="$BUILD_AR" 47591 path="${complete%% *}" 47592 tmp="$complete EOL" 47593 arguments="${tmp#* }" 47594 47595 # Input might be given as Windows format, start by converting to 47596 # unix format. 47597 new_path=`$CYGPATH -u "$path"` 47598 47599 # Now try to locate executable using which 47600 new_path=`$WHICH "$new_path" 2> /dev/null` 47601 # bat and cmd files are not always considered executable in cygwin causing which 47602 # to not find them 47603 if test "x$new_path" = x \ 47604 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47605 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47606 new_path=`$CYGPATH -u "$path"` 47607 fi 47608 if test "x$new_path" = x; then 47609 # Oops. Which didn't find the executable. 47610 # The splitting of arguments from the executable at a space might have been incorrect, 47611 # since paths with space are more likely in Windows. Give it another try with the whole 47612 # argument. 47613 path="$complete" 47614 arguments="EOL" 47615 new_path=`$CYGPATH -u "$path"` 47616 new_path=`$WHICH "$new_path" 2> /dev/null` 47617 # bat and cmd files are not always considered executable in cygwin causing which 47618 # to not find them 47619 if test "x$new_path" = x \ 47620 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47621 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47622 new_path=`$CYGPATH -u "$path"` 47623 fi 47624 if test "x$new_path" = x; then 47625 # It's still not found. Now this is an unrecoverable error. 47626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47627 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47628 has_space=`$ECHO "$complete" | $GREP " "` 47629 if test "x$has_space" != x; then 47630 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47631 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47632 fi 47633 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47634 fi 47635 fi 47636 47637 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47638 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47639 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47640 # "foo.exe" is OK but "foo" is an error. 47641 # 47642 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47643 # It is also a way to make sure we got the proper file name for the real test later on. 47644 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47645 if test "x$test_shortpath" = x; then 47646 # Short path failed, file does not exist as specified. 47647 # Try adding .exe or .cmd 47648 if test -f "${new_path}.exe"; then 47649 input_to_shortpath="${new_path}.exe" 47650 elif test -f "${new_path}.cmd"; then 47651 input_to_shortpath="${new_path}.cmd" 47652 else 47653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 47654 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 47655 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47656 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47657 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47658 fi 47659 else 47660 input_to_shortpath="$new_path" 47661 fi 47662 47663 # Call helper function which possibly converts this using DOS-style short mode. 47664 # If so, the updated path is stored in $new_path. 47665 new_path="$input_to_shortpath" 47666 47667 input_path="$input_to_shortpath" 47668 # Check if we need to convert this using DOS-style short mode. If the path 47669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47670 # take no chances and rewrite it. 47671 # Note: m4 eats our [], so we need to use [ and ] instead. 47672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47673 if test "x$has_forbidden_chars" != x; then 47674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47678 # Going to short mode and back again did indeed matter. Since short mode is 47679 # case insensitive, let's make it lowercase to improve readability. 47680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47681 # Now convert it back to Unix-style (cygpath) 47682 input_path=`$CYGPATH -u "$shortmode_path"` 47683 new_path="$input_path" 47684 fi 47685 fi 47686 47687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47688 if test "x$test_cygdrive_prefix" = x; then 47689 # As a simple fix, exclude /usr/bin since it's not a real path. 47690 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47692 # a path prefixed by /cygdrive for fixpath to work. 47693 new_path="$CYGWIN_ROOT_PATH$input_path" 47694 fi 47695 fi 47696 47697 # remove trailing .exe if any 47698 new_path="${new_path/%.exe/}" 47699 47700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47701 47702 # First separate the path from the arguments. This will split at the first 47703 # space. 47704 complete="$BUILD_AR" 47705 path="${complete%% *}" 47706 tmp="$complete EOL" 47707 arguments="${tmp#* }" 47708 47709 # Input might be given as Windows format, start by converting to 47710 # unix format. 47711 new_path="$path" 47712 47713 windows_path="$new_path" 47714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47715 unix_path=`$CYGPATH -u "$windows_path"` 47716 new_path="$unix_path" 47717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47719 new_path="$unix_path" 47720 fi 47721 47722 47723 # Now try to locate executable using which 47724 new_path=`$WHICH "$new_path" 2> /dev/null` 47725 47726 if test "x$new_path" = x; then 47727 # Oops. Which didn't find the executable. 47728 # The splitting of arguments from the executable at a space might have been incorrect, 47729 # since paths with space are more likely in Windows. Give it another try with the whole 47730 # argument. 47731 path="$complete" 47732 arguments="EOL" 47733 new_path="$path" 47734 47735 windows_path="$new_path" 47736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47737 unix_path=`$CYGPATH -u "$windows_path"` 47738 new_path="$unix_path" 47739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47740 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47741 new_path="$unix_path" 47742 fi 47743 47744 47745 new_path=`$WHICH "$new_path" 2> /dev/null` 47746 # bat and cmd files are not always considered executable in MSYS causing which 47747 # to not find them 47748 if test "x$new_path" = x \ 47749 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47750 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47751 new_path="$path" 47752 47753 windows_path="$new_path" 47754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47755 unix_path=`$CYGPATH -u "$windows_path"` 47756 new_path="$unix_path" 47757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47758 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47759 new_path="$unix_path" 47760 fi 47761 47762 fi 47763 47764 if test "x$new_path" = x; then 47765 # It's still not found. Now this is an unrecoverable error. 47766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47767 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47768 has_space=`$ECHO "$complete" | $GREP " "` 47769 if test "x$has_space" != x; then 47770 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47771 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47772 fi 47773 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47774 fi 47775 fi 47776 47777 # Now new_path has a complete unix path to the binary 47778 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47779 # Keep paths in /bin as-is, but remove trailing .exe if any 47780 new_path="${new_path/%.exe/}" 47781 # Do not save /bin paths to all_fixpath_prefixes! 47782 else 47783 # Not in mixed or Windows style, start by that. 47784 new_path=`cmd //c echo $new_path` 47785 47786 input_path="$new_path" 47787 # Check if we need to convert this using DOS-style short mode. If the path 47788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47789 # take no chances and rewrite it. 47790 # Note: m4 eats our [], so we need to use [ and ] instead. 47791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47792 if test "x$has_forbidden_chars" != x; then 47793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47794 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47795 fi 47796 47797 # Output is in $new_path 47798 47799 windows_path="$new_path" 47800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47801 unix_path=`$CYGPATH -u "$windows_path"` 47802 new_path="$unix_path" 47803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47804 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47805 new_path="$unix_path" 47806 fi 47807 47808 # remove trailing .exe if any 47809 new_path="${new_path/%.exe/}" 47810 47811 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47812 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47813 fi 47814 47815 else 47816 # We're on a unix platform. Hooray! :) 47817 # First separate the path from the arguments. This will split at the first 47818 # space. 47819 complete="$BUILD_AR" 47820 path="${complete%% *}" 47821 tmp="$complete EOL" 47822 arguments="${tmp#* }" 47823 47824 # Cannot rely on the command "which" here since it doesn't always work. 47825 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47826 if test -z "$is_absolute_path"; then 47827 # Path to executable is not absolute. Find it. 47828 IFS_save="$IFS" 47829 IFS=: 47830 for p in $PATH; do 47831 if test -f "$p/$path" && test -x "$p/$path"; then 47832 new_path="$p/$path" 47833 break 47834 fi 47835 done 47836 IFS="$IFS_save" 47837 else 47838 # This is an absolute path, we can use it without further modifications. 47839 new_path="$path" 47840 fi 47841 47842 if test "x$new_path" = x; then 47843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47844 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47845 has_space=`$ECHO "$complete" | $GREP " "` 47846 if test "x$has_space" != x; then 47847 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47848 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47849 fi 47850 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47851 fi 47852 fi 47853 47854 # Now join together the path and the arguments once again 47855 if test "x$arguments" != xEOL; then 47856 new_complete="$new_path ${arguments% *}" 47857 else 47858 new_complete="$new_path" 47859 fi 47860 47861 if test "x$complete" != "x$new_complete"; then 47862 BUILD_AR="$new_complete" 47863 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47864 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47865 fi 47866 fi 47867 47868 47869 47870 # Publish this variable in the help. 47871 47872 47873 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47874 # The variable is not set by user, try to locate tool using the code snippet 47875 for ac_prog in objcopy 47876 do 47877 # Extract the first word of "$ac_prog", so it can be a program name with args. 47878 set dummy $ac_prog; ac_word=$2 47879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47880 $as_echo_n "checking for $ac_word... " >&6; } 47881 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47882 $as_echo_n "(cached) " >&6 47883 else 47884 case $BUILD_OBJCOPY in 47885 [\\/]* | ?:[\\/]*) 47886 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47887 ;; 47888 *) 47889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47890 for as_dir in $PATH 47891 do 47892 IFS=$as_save_IFS 47893 test -z "$as_dir" && as_dir=. 47894 for ac_exec_ext in '' $ac_executable_extensions; do 47895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47896 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47898 break 2 47899 fi 47900 done 47901 done 47902 IFS=$as_save_IFS 47903 47904 ;; 47905 esac 47906 fi 47907 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47908 if test -n "$BUILD_OBJCOPY"; then 47909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47910 $as_echo "$BUILD_OBJCOPY" >&6; } 47911 else 47912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47913 $as_echo "no" >&6; } 47914 fi 47915 47916 47917 test -n "$BUILD_OBJCOPY" && break 47918 done 47919 47920 else 47921 # The variable is set, but is it from the command line or the environment? 47922 47923 # Try to remove the string !BUILD_OBJCOPY! from our list. 47924 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47925 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47926 # If it failed, the variable was not from the command line. Ignore it, 47927 # but warn the user (except for BASH, which is always set by the calling BASH). 47928 if test "xBUILD_OBJCOPY" != xBASH; then 47929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47930 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47931 fi 47932 # Try to locate tool using the code snippet 47933 for ac_prog in objcopy 47934 do 47935 # Extract the first word of "$ac_prog", so it can be a program name with args. 47936 set dummy $ac_prog; ac_word=$2 47937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47938 $as_echo_n "checking for $ac_word... " >&6; } 47939 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47940 $as_echo_n "(cached) " >&6 47941 else 47942 case $BUILD_OBJCOPY in 47943 [\\/]* | ?:[\\/]*) 47944 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47945 ;; 47946 *) 47947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47948 for as_dir in $PATH 47949 do 47950 IFS=$as_save_IFS 47951 test -z "$as_dir" && as_dir=. 47952 for ac_exec_ext in '' $ac_executable_extensions; do 47953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47954 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47956 break 2 47957 fi 47958 done 47959 done 47960 IFS=$as_save_IFS 47961 47962 ;; 47963 esac 47964 fi 47965 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47966 if test -n "$BUILD_OBJCOPY"; then 47967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47968 $as_echo "$BUILD_OBJCOPY" >&6; } 47969 else 47970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47971 $as_echo "no" >&6; } 47972 fi 47973 47974 47975 test -n "$BUILD_OBJCOPY" && break 47976 done 47977 47978 else 47979 # If it succeeded, then it was overridden by the user. We will use it 47980 # for the tool. 47981 47982 # First remove it from the list of overridden variables, so we can test 47983 # for unknown variables in the end. 47984 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47985 47986 # Check if we try to supply an empty value 47987 if test "x$BUILD_OBJCOPY" = x; then 47988 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47989 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47991 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47993 $as_echo "disabled" >&6; } 47994 else 47995 # Check if the provided tool contains a complete path. 47996 tool_specified="$BUILD_OBJCOPY" 47997 tool_basename="${tool_specified##*/}" 47998 if test "x$tool_basename" = "x$tool_specified"; then 47999 # A command without a complete path is provided, search $PATH. 48000 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 48001 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 48002 # Extract the first word of "$tool_basename", so it can be a program name with args. 48003 set dummy $tool_basename; ac_word=$2 48004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48005 $as_echo_n "checking for $ac_word... " >&6; } 48006 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 48007 $as_echo_n "(cached) " >&6 48008 else 48009 case $BUILD_OBJCOPY in 48010 [\\/]* | ?:[\\/]*) 48011 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 48012 ;; 48013 *) 48014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48015 for as_dir in $PATH 48016 do 48017 IFS=$as_save_IFS 48018 test -z "$as_dir" && as_dir=. 48019 for ac_exec_ext in '' $ac_executable_extensions; do 48020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48021 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 48022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48023 break 2 48024 fi 48025 done 48026 done 48027 IFS=$as_save_IFS 48028 48029 ;; 48030 esac 48031 fi 48032 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 48033 if test -n "$BUILD_OBJCOPY"; then 48034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 48035 $as_echo "$BUILD_OBJCOPY" >&6; } 48036 else 48037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48038 $as_echo "no" >&6; } 48039 fi 48040 48041 48042 if test "x$BUILD_OBJCOPY" = x; then 48043 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48044 fi 48045 else 48046 # Otherwise we believe it is a complete path. Use it as it is. 48047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 48048 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 48049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 48050 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 48051 if test ! -x "$tool_specified"; then 48052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48053 $as_echo "not found" >&6; } 48054 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 48055 fi 48056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48057 $as_echo "$tool_specified" >&6; } 48058 fi 48059 fi 48060 fi 48061 48062 fi 48063 48064 48065 48066 # Only process if variable expands to non-empty 48067 48068 if test "x$BUILD_OBJCOPY" != x; then 48069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48070 48071 # First separate the path from the arguments. This will split at the first 48072 # space. 48073 complete="$BUILD_OBJCOPY" 48074 path="${complete%% *}" 48075 tmp="$complete EOL" 48076 arguments="${tmp#* }" 48077 48078 # Input might be given as Windows format, start by converting to 48079 # unix format. 48080 new_path=`$CYGPATH -u "$path"` 48081 48082 # Now try to locate executable using which 48083 new_path=`$WHICH "$new_path" 2> /dev/null` 48084 # bat and cmd files are not always considered executable in cygwin causing which 48085 # to not find them 48086 if test "x$new_path" = x \ 48087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48089 new_path=`$CYGPATH -u "$path"` 48090 fi 48091 if test "x$new_path" = x; then 48092 # Oops. Which didn't find the executable. 48093 # The splitting of arguments from the executable at a space might have been incorrect, 48094 # since paths with space are more likely in Windows. Give it another try with the whole 48095 # argument. 48096 path="$complete" 48097 arguments="EOL" 48098 new_path=`$CYGPATH -u "$path"` 48099 new_path=`$WHICH "$new_path" 2> /dev/null` 48100 # bat and cmd files are not always considered executable in cygwin causing which 48101 # to not find them 48102 if test "x$new_path" = x \ 48103 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48104 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48105 new_path=`$CYGPATH -u "$path"` 48106 fi 48107 if test "x$new_path" = x; then 48108 # It's still not found. Now this is an unrecoverable error. 48109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48110 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48111 has_space=`$ECHO "$complete" | $GREP " "` 48112 if test "x$has_space" != x; then 48113 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48114 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48115 fi 48116 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48117 fi 48118 fi 48119 48120 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48121 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48122 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48123 # "foo.exe" is OK but "foo" is an error. 48124 # 48125 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48126 # It is also a way to make sure we got the proper file name for the real test later on. 48127 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48128 if test "x$test_shortpath" = x; then 48129 # Short path failed, file does not exist as specified. 48130 # Try adding .exe or .cmd 48131 if test -f "${new_path}.exe"; then 48132 input_to_shortpath="${new_path}.exe" 48133 elif test -f "${new_path}.cmd"; then 48134 input_to_shortpath="${new_path}.cmd" 48135 else 48136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 48137 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 48138 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48139 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48140 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48141 fi 48142 else 48143 input_to_shortpath="$new_path" 48144 fi 48145 48146 # Call helper function which possibly converts this using DOS-style short mode. 48147 # If so, the updated path is stored in $new_path. 48148 new_path="$input_to_shortpath" 48149 48150 input_path="$input_to_shortpath" 48151 # Check if we need to convert this using DOS-style short mode. If the path 48152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48153 # take no chances and rewrite it. 48154 # Note: m4 eats our [], so we need to use [ and ] instead. 48155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48156 if test "x$has_forbidden_chars" != x; then 48157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48161 # Going to short mode and back again did indeed matter. Since short mode is 48162 # case insensitive, let's make it lowercase to improve readability. 48163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48164 # Now convert it back to Unix-style (cygpath) 48165 input_path=`$CYGPATH -u "$shortmode_path"` 48166 new_path="$input_path" 48167 fi 48168 fi 48169 48170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48171 if test "x$test_cygdrive_prefix" = x; then 48172 # As a simple fix, exclude /usr/bin since it's not a real path. 48173 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48175 # a path prefixed by /cygdrive for fixpath to work. 48176 new_path="$CYGWIN_ROOT_PATH$input_path" 48177 fi 48178 fi 48179 48180 # remove trailing .exe if any 48181 new_path="${new_path/%.exe/}" 48182 48183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48184 48185 # First separate the path from the arguments. This will split at the first 48186 # space. 48187 complete="$BUILD_OBJCOPY" 48188 path="${complete%% *}" 48189 tmp="$complete EOL" 48190 arguments="${tmp#* }" 48191 48192 # Input might be given as Windows format, start by converting to 48193 # unix format. 48194 new_path="$path" 48195 48196 windows_path="$new_path" 48197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48198 unix_path=`$CYGPATH -u "$windows_path"` 48199 new_path="$unix_path" 48200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48202 new_path="$unix_path" 48203 fi 48204 48205 48206 # Now try to locate executable using which 48207 new_path=`$WHICH "$new_path" 2> /dev/null` 48208 48209 if test "x$new_path" = x; then 48210 # Oops. Which didn't find the executable. 48211 # The splitting of arguments from the executable at a space might have been incorrect, 48212 # since paths with space are more likely in Windows. Give it another try with the whole 48213 # argument. 48214 path="$complete" 48215 arguments="EOL" 48216 new_path="$path" 48217 48218 windows_path="$new_path" 48219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48220 unix_path=`$CYGPATH -u "$windows_path"` 48221 new_path="$unix_path" 48222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48224 new_path="$unix_path" 48225 fi 48226 48227 48228 new_path=`$WHICH "$new_path" 2> /dev/null` 48229 # bat and cmd files are not always considered executable in MSYS causing which 48230 # to not find them 48231 if test "x$new_path" = x \ 48232 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48233 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48234 new_path="$path" 48235 48236 windows_path="$new_path" 48237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48238 unix_path=`$CYGPATH -u "$windows_path"` 48239 new_path="$unix_path" 48240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48242 new_path="$unix_path" 48243 fi 48244 48245 fi 48246 48247 if test "x$new_path" = x; then 48248 # It's still not found. Now this is an unrecoverable error. 48249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48250 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48251 has_space=`$ECHO "$complete" | $GREP " "` 48252 if test "x$has_space" != x; then 48253 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48254 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48255 fi 48256 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48257 fi 48258 fi 48259 48260 # Now new_path has a complete unix path to the binary 48261 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48262 # Keep paths in /bin as-is, but remove trailing .exe if any 48263 new_path="${new_path/%.exe/}" 48264 # Do not save /bin paths to all_fixpath_prefixes! 48265 else 48266 # Not in mixed or Windows style, start by that. 48267 new_path=`cmd //c echo $new_path` 48268 48269 input_path="$new_path" 48270 # Check if we need to convert this using DOS-style short mode. If the path 48271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48272 # take no chances and rewrite it. 48273 # Note: m4 eats our [], so we need to use [ and ] instead. 48274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48275 if test "x$has_forbidden_chars" != x; then 48276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48277 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48278 fi 48279 48280 # Output is in $new_path 48281 48282 windows_path="$new_path" 48283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48284 unix_path=`$CYGPATH -u "$windows_path"` 48285 new_path="$unix_path" 48286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48287 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48288 new_path="$unix_path" 48289 fi 48290 48291 # remove trailing .exe if any 48292 new_path="${new_path/%.exe/}" 48293 48294 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48295 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48296 fi 48297 48298 else 48299 # We're on a unix platform. Hooray! :) 48300 # First separate the path from the arguments. This will split at the first 48301 # space. 48302 complete="$BUILD_OBJCOPY" 48303 path="${complete%% *}" 48304 tmp="$complete EOL" 48305 arguments="${tmp#* }" 48306 48307 # Cannot rely on the command "which" here since it doesn't always work. 48308 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48309 if test -z "$is_absolute_path"; then 48310 # Path to executable is not absolute. Find it. 48311 IFS_save="$IFS" 48312 IFS=: 48313 for p in $PATH; do 48314 if test -f "$p/$path" && test -x "$p/$path"; then 48315 new_path="$p/$path" 48316 break 48317 fi 48318 done 48319 IFS="$IFS_save" 48320 else 48321 # This is an absolute path, we can use it without further modifications. 48322 new_path="$path" 48323 fi 48324 48325 if test "x$new_path" = x; then 48326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48327 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48328 has_space=`$ECHO "$complete" | $GREP " "` 48329 if test "x$has_space" != x; then 48330 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48331 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48332 fi 48333 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48334 fi 48335 fi 48336 48337 # Now join together the path and the arguments once again 48338 if test "x$arguments" != xEOL; then 48339 new_complete="$new_path ${arguments% *}" 48340 else 48341 new_complete="$new_path" 48342 fi 48343 48344 if test "x$complete" != "x$new_complete"; then 48345 BUILD_OBJCOPY="$new_complete" 48346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 48347 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 48348 fi 48349 fi 48350 48351 48352 48353 # Publish this variable in the help. 48354 48355 48356 if [ -z "${BUILD_STRIP+x}" ]; then 48357 # The variable is not set by user, try to locate tool using the code snippet 48358 for ac_prog in strip 48359 do 48360 # Extract the first word of "$ac_prog", so it can be a program name with args. 48361 set dummy $ac_prog; ac_word=$2 48362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48363 $as_echo_n "checking for $ac_word... " >&6; } 48364 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48365 $as_echo_n "(cached) " >&6 48366 else 48367 case $BUILD_STRIP in 48368 [\\/]* | ?:[\\/]*) 48369 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48370 ;; 48371 *) 48372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48373 for as_dir in $PATH 48374 do 48375 IFS=$as_save_IFS 48376 test -z "$as_dir" && as_dir=. 48377 for ac_exec_ext in '' $ac_executable_extensions; do 48378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48379 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48381 break 2 48382 fi 48383 done 48384 done 48385 IFS=$as_save_IFS 48386 48387 ;; 48388 esac 48389 fi 48390 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48391 if test -n "$BUILD_STRIP"; then 48392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48393 $as_echo "$BUILD_STRIP" >&6; } 48394 else 48395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48396 $as_echo "no" >&6; } 48397 fi 48398 48399 48400 test -n "$BUILD_STRIP" && break 48401 done 48402 48403 else 48404 # The variable is set, but is it from the command line or the environment? 48405 48406 # Try to remove the string !BUILD_STRIP! from our list. 48407 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 48408 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48409 # If it failed, the variable was not from the command line. Ignore it, 48410 # but warn the user (except for BASH, which is always set by the calling BASH). 48411 if test "xBUILD_STRIP" != xBASH; then 48412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 48413 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 48414 fi 48415 # Try to locate tool using the code snippet 48416 for ac_prog in strip 48417 do 48418 # Extract the first word of "$ac_prog", so it can be a program name with args. 48419 set dummy $ac_prog; ac_word=$2 48420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48421 $as_echo_n "checking for $ac_word... " >&6; } 48422 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48423 $as_echo_n "(cached) " >&6 48424 else 48425 case $BUILD_STRIP in 48426 [\\/]* | ?:[\\/]*) 48427 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48428 ;; 48429 *) 48430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48431 for as_dir in $PATH 48432 do 48433 IFS=$as_save_IFS 48434 test -z "$as_dir" && as_dir=. 48435 for ac_exec_ext in '' $ac_executable_extensions; do 48436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48437 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48439 break 2 48440 fi 48441 done 48442 done 48443 IFS=$as_save_IFS 48444 48445 ;; 48446 esac 48447 fi 48448 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48449 if test -n "$BUILD_STRIP"; then 48450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48451 $as_echo "$BUILD_STRIP" >&6; } 48452 else 48453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48454 $as_echo "no" >&6; } 48455 fi 48456 48457 48458 test -n "$BUILD_STRIP" && break 48459 done 48460 48461 else 48462 # If it succeeded, then it was overridden by the user. We will use it 48463 # for the tool. 48464 48465 # First remove it from the list of overridden variables, so we can test 48466 # for unknown variables in the end. 48467 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48468 48469 # Check if we try to supply an empty value 48470 if test "x$BUILD_STRIP" = x; then 48471 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 48472 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 48473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48474 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48476 $as_echo "disabled" >&6; } 48477 else 48478 # Check if the provided tool contains a complete path. 48479 tool_specified="$BUILD_STRIP" 48480 tool_basename="${tool_specified##*/}" 48481 if test "x$tool_basename" = "x$tool_specified"; then 48482 # A command without a complete path is provided, search $PATH. 48483 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 48484 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 48485 # Extract the first word of "$tool_basename", so it can be a program name with args. 48486 set dummy $tool_basename; ac_word=$2 48487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48488 $as_echo_n "checking for $ac_word... " >&6; } 48489 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48490 $as_echo_n "(cached) " >&6 48491 else 48492 case $BUILD_STRIP in 48493 [\\/]* | ?:[\\/]*) 48494 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48495 ;; 48496 *) 48497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48498 for as_dir in $PATH 48499 do 48500 IFS=$as_save_IFS 48501 test -z "$as_dir" && as_dir=. 48502 for ac_exec_ext in '' $ac_executable_extensions; do 48503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48504 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48506 break 2 48507 fi 48508 done 48509 done 48510 IFS=$as_save_IFS 48511 48512 ;; 48513 esac 48514 fi 48515 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48516 if test -n "$BUILD_STRIP"; then 48517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48518 $as_echo "$BUILD_STRIP" >&6; } 48519 else 48520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48521 $as_echo "no" >&6; } 48522 fi 48523 48524 48525 if test "x$BUILD_STRIP" = x; then 48526 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48527 fi 48528 else 48529 # Otherwise we believe it is a complete path. Use it as it is. 48530 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 48531 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 48532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48533 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48534 if test ! -x "$tool_specified"; then 48535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48536 $as_echo "not found" >&6; } 48537 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 48538 fi 48539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48540 $as_echo "$tool_specified" >&6; } 48541 fi 48542 fi 48543 fi 48544 48545 fi 48546 48547 48548 48549 # Only process if variable expands to non-empty 48550 48551 if test "x$BUILD_STRIP" != x; then 48552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48553 48554 # First separate the path from the arguments. This will split at the first 48555 # space. 48556 complete="$BUILD_STRIP" 48557 path="${complete%% *}" 48558 tmp="$complete EOL" 48559 arguments="${tmp#* }" 48560 48561 # Input might be given as Windows format, start by converting to 48562 # unix format. 48563 new_path=`$CYGPATH -u "$path"` 48564 48565 # Now try to locate executable using which 48566 new_path=`$WHICH "$new_path" 2> /dev/null` 48567 # bat and cmd files are not always considered executable in cygwin causing which 48568 # to not find them 48569 if test "x$new_path" = x \ 48570 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48571 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48572 new_path=`$CYGPATH -u "$path"` 48573 fi 48574 if test "x$new_path" = x; then 48575 # Oops. Which didn't find the executable. 48576 # The splitting of arguments from the executable at a space might have been incorrect, 48577 # since paths with space are more likely in Windows. Give it another try with the whole 48578 # argument. 48579 path="$complete" 48580 arguments="EOL" 48581 new_path=`$CYGPATH -u "$path"` 48582 new_path=`$WHICH "$new_path" 2> /dev/null` 48583 # bat and cmd files are not always considered executable in cygwin causing which 48584 # to not find them 48585 if test "x$new_path" = x \ 48586 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48587 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48588 new_path=`$CYGPATH -u "$path"` 48589 fi 48590 if test "x$new_path" = x; then 48591 # It's still not found. Now this is an unrecoverable error. 48592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48593 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48594 has_space=`$ECHO "$complete" | $GREP " "` 48595 if test "x$has_space" != x; then 48596 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48597 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48598 fi 48599 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48600 fi 48601 fi 48602 48603 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48604 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48605 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48606 # "foo.exe" is OK but "foo" is an error. 48607 # 48608 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48609 # It is also a way to make sure we got the proper file name for the real test later on. 48610 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48611 if test "x$test_shortpath" = x; then 48612 # Short path failed, file does not exist as specified. 48613 # Try adding .exe or .cmd 48614 if test -f "${new_path}.exe"; then 48615 input_to_shortpath="${new_path}.exe" 48616 elif test -f "${new_path}.cmd"; then 48617 input_to_shortpath="${new_path}.cmd" 48618 else 48619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 48620 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 48621 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48622 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48623 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48624 fi 48625 else 48626 input_to_shortpath="$new_path" 48627 fi 48628 48629 # Call helper function which possibly converts this using DOS-style short mode. 48630 # If so, the updated path is stored in $new_path. 48631 new_path="$input_to_shortpath" 48632 48633 input_path="$input_to_shortpath" 48634 # Check if we need to convert this using DOS-style short mode. If the path 48635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48636 # take no chances and rewrite it. 48637 # Note: m4 eats our [], so we need to use [ and ] instead. 48638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48639 if test "x$has_forbidden_chars" != x; then 48640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48641 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48642 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48643 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48644 # Going to short mode and back again did indeed matter. Since short mode is 48645 # case insensitive, let's make it lowercase to improve readability. 48646 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48647 # Now convert it back to Unix-style (cygpath) 48648 input_path=`$CYGPATH -u "$shortmode_path"` 48649 new_path="$input_path" 48650 fi 48651 fi 48652 48653 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48654 if test "x$test_cygdrive_prefix" = x; then 48655 # As a simple fix, exclude /usr/bin since it's not a real path. 48656 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48657 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48658 # a path prefixed by /cygdrive for fixpath to work. 48659 new_path="$CYGWIN_ROOT_PATH$input_path" 48660 fi 48661 fi 48662 48663 # remove trailing .exe if any 48664 new_path="${new_path/%.exe/}" 48665 48666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48667 48668 # First separate the path from the arguments. This will split at the first 48669 # space. 48670 complete="$BUILD_STRIP" 48671 path="${complete%% *}" 48672 tmp="$complete EOL" 48673 arguments="${tmp#* }" 48674 48675 # Input might be given as Windows format, start by converting to 48676 # unix format. 48677 new_path="$path" 48678 48679 windows_path="$new_path" 48680 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48681 unix_path=`$CYGPATH -u "$windows_path"` 48682 new_path="$unix_path" 48683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48684 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48685 new_path="$unix_path" 48686 fi 48687 48688 48689 # Now try to locate executable using which 48690 new_path=`$WHICH "$new_path" 2> /dev/null` 48691 48692 if test "x$new_path" = x; then 48693 # Oops. Which didn't find the executable. 48694 # The splitting of arguments from the executable at a space might have been incorrect, 48695 # since paths with space are more likely in Windows. Give it another try with the whole 48696 # argument. 48697 path="$complete" 48698 arguments="EOL" 48699 new_path="$path" 48700 48701 windows_path="$new_path" 48702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48703 unix_path=`$CYGPATH -u "$windows_path"` 48704 new_path="$unix_path" 48705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48707 new_path="$unix_path" 48708 fi 48709 48710 48711 new_path=`$WHICH "$new_path" 2> /dev/null` 48712 # bat and cmd files are not always considered executable in MSYS causing which 48713 # to not find them 48714 if test "x$new_path" = x \ 48715 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48716 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48717 new_path="$path" 48718 48719 windows_path="$new_path" 48720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48721 unix_path=`$CYGPATH -u "$windows_path"` 48722 new_path="$unix_path" 48723 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48724 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48725 new_path="$unix_path" 48726 fi 48727 48728 fi 48729 48730 if test "x$new_path" = x; then 48731 # It's still not found. Now this is an unrecoverable error. 48732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48733 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48734 has_space=`$ECHO "$complete" | $GREP " "` 48735 if test "x$has_space" != x; then 48736 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48737 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48738 fi 48739 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48740 fi 48741 fi 48742 48743 # Now new_path has a complete unix path to the binary 48744 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48745 # Keep paths in /bin as-is, but remove trailing .exe if any 48746 new_path="${new_path/%.exe/}" 48747 # Do not save /bin paths to all_fixpath_prefixes! 48748 else 48749 # Not in mixed or Windows style, start by that. 48750 new_path=`cmd //c echo $new_path` 48751 48752 input_path="$new_path" 48753 # Check if we need to convert this using DOS-style short mode. If the path 48754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48755 # take no chances and rewrite it. 48756 # Note: m4 eats our [], so we need to use [ and ] instead. 48757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48758 if test "x$has_forbidden_chars" != x; then 48759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48760 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48761 fi 48762 48763 # Output is in $new_path 48764 48765 windows_path="$new_path" 48766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48767 unix_path=`$CYGPATH -u "$windows_path"` 48768 new_path="$unix_path" 48769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48771 new_path="$unix_path" 48772 fi 48773 48774 # remove trailing .exe if any 48775 new_path="${new_path/%.exe/}" 48776 48777 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48778 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48779 fi 48780 48781 else 48782 # We're on a unix platform. Hooray! :) 48783 # First separate the path from the arguments. This will split at the first 48784 # space. 48785 complete="$BUILD_STRIP" 48786 path="${complete%% *}" 48787 tmp="$complete EOL" 48788 arguments="${tmp#* }" 48789 48790 # Cannot rely on the command "which" here since it doesn't always work. 48791 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48792 if test -z "$is_absolute_path"; then 48793 # Path to executable is not absolute. Find it. 48794 IFS_save="$IFS" 48795 IFS=: 48796 for p in $PATH; do 48797 if test -f "$p/$path" && test -x "$p/$path"; then 48798 new_path="$p/$path" 48799 break 48800 fi 48801 done 48802 IFS="$IFS_save" 48803 else 48804 # This is an absolute path, we can use it without further modifications. 48805 new_path="$path" 48806 fi 48807 48808 if test "x$new_path" = x; then 48809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48810 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48811 has_space=`$ECHO "$complete" | $GREP " "` 48812 if test "x$has_space" != x; then 48813 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48814 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48815 fi 48816 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48817 fi 48818 fi 48819 48820 # Now join together the path and the arguments once again 48821 if test "x$arguments" != xEOL; then 48822 new_complete="$new_path ${arguments% *}" 48823 else 48824 new_complete="$new_path" 48825 fi 48826 48827 if test "x$complete" != "x$new_complete"; then 48828 BUILD_STRIP="$new_complete" 48829 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 48830 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 48831 fi 48832 fi 48833 48834 # Assume the C compiler is the assembler 48835 BUILD_AS="$BUILD_CC -c" 48836 # Just like for the target compiler, use the compiler as linker 48837 BUILD_LD="$BUILD_CC" 48838 BUILD_LDCXX="$BUILD_CXX" 48839 48840 PATH="$OLDPATH" 48841 48842 48843 COMPILER=$BUILD_CC 48844 COMPILER_NAME=BuildC 48845 48846 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48847 # cc -V output typically looks like 48848 # cc: Sun C 5.12 Linux_i386 2011/11/16 48849 # or 48850 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48851 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48852 # Check that this is likely to be the Solaris Studio cc. 48853 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48854 if test $? -ne 0; then 48855 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48856 { $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 48857 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48858 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48859 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48860 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48861 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48862 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48863 fi 48864 # Remove usage instructions (if present), and 48865 # collapse compiler output into a single line 48866 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48867 $SED -e 's/ *[Uu]sage:.*//'` 48868 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48869 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48870 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48871 # xlc -qversion output typically looks like 48872 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48873 # Version: 11.01.0000.0015 48874 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48875 # Check that this is likely to be the IBM XL C compiler. 48876 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48877 if test $? -ne 0; then 48878 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48879 { $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 48880 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48881 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48882 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48883 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48884 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48885 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48886 fi 48887 # Collapse compiler output into a single line 48888 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48889 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48890 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48891 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48892 # There is no specific version flag, but all output starts with a version string. 48893 # First line typically looks something like: 48894 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48895 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48896 # Check that this is likely to be Microsoft CL.EXE. 48897 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48898 if test $? -ne 0; then 48899 { $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 48900 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48901 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48902 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48903 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48904 fi 48905 # Collapse compiler output into a single line 48906 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48907 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48908 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48909 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48910 # gcc --version output typically looks like 48911 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48912 # Copyright (C) 2013 Free Software Foundation, Inc. 48913 # This is free software; see the source for copying conditions. There is NO 48914 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48915 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48916 # Check that this is likely to be GCC. 48917 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48918 if test $? -ne 0; then 48919 { $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 48920 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48921 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48922 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48923 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48924 fi 48925 # Remove Copyright and legalese from version string, and 48926 # collapse into a single line 48927 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48928 $SED -e 's/ *Copyright .*//'` 48929 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48930 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48931 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48932 # clang --version output typically looks like 48933 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48934 # clang version 3.3 (tags/RELEASE_33/final) 48935 # or 48936 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48937 # Target: x86_64-pc-linux-gnu 48938 # Thread model: posix 48939 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48940 # Check that this is likely to be clang 48941 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48942 if test $? -ne 0; then 48943 { $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 48944 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48945 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48946 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48947 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48948 fi 48949 # Collapse compiler output into a single line 48950 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48951 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48952 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48953 else 48954 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48955 fi 48956 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48957 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48958 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48959 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48960 48961 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48962 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48963 48964 48965 COMPILER=$BUILD_CXX 48966 COMPILER_NAME=BuildC++ 48967 48968 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48969 # cc -V output typically looks like 48970 # cc: Sun C 5.12 Linux_i386 2011/11/16 48971 # or 48972 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48973 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48974 # Check that this is likely to be the Solaris Studio cc. 48975 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48976 if test $? -ne 0; then 48977 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48978 { $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 48979 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48980 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48981 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48982 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48983 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48984 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48985 fi 48986 # Remove usage instructions (if present), and 48987 # collapse compiler output into a single line 48988 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48989 $SED -e 's/ *[Uu]sage:.*//'` 48990 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48991 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48992 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48993 # xlc -qversion output typically looks like 48994 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48995 # Version: 11.01.0000.0015 48996 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48997 # Check that this is likely to be the IBM XL C compiler. 48998 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48999 if test $? -ne 0; then 49000 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49001 { $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 49002 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49003 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49004 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49005 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 49006 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 49007 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49008 fi 49009 # Collapse compiler output into a single line 49010 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49011 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49012 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 49013 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49014 # There is no specific version flag, but all output starts with a version string. 49015 # First line typically looks something like: 49016 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 49017 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49018 # Check that this is likely to be Microsoft CL.EXE. 49019 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 49020 if test $? -ne 0; then 49021 { $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 49022 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49023 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49024 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49025 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49026 fi 49027 # Collapse compiler output into a single line 49028 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49029 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49030 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 49031 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 49032 # gcc --version output typically looks like 49033 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 49034 # Copyright (C) 2013 Free Software Foundation, Inc. 49035 # This is free software; see the source for copying conditions. There is NO 49036 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 49037 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49038 # Check that this is likely to be GCC. 49039 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 49040 if test $? -ne 0; then 49041 { $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 49042 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49043 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 49044 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 49045 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49046 fi 49047 # Remove Copyright and legalese from version string, and 49048 # collapse into a single line 49049 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49050 $SED -e 's/ *Copyright .*//'` 49051 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49052 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 49053 elif test "x$TOOLCHAIN_TYPE" = xclang; then 49054 # clang --version output typically looks like 49055 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 49056 # clang version 3.3 (tags/RELEASE_33/final) 49057 # or 49058 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 49059 # Target: x86_64-pc-linux-gnu 49060 # Thread model: posix 49061 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 49062 # Check that this is likely to be clang 49063 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 49064 if test $? -ne 0; then 49065 { $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 49066 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 49067 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 49068 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 49069 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 49070 fi 49071 # Collapse compiler output into a single line 49072 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 49073 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 49074 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 49075 else 49076 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 49077 fi 49078 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 49079 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 49080 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 49081 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 49082 49083 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 49084 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 49085 49086 49087 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 49088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&5 49089 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 49090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49091 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49092 fi 49093 49094 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49095 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49097 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49098 fi 49099 49100 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49102 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49103 fi 49104 49105 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 49106 49107 else 49108 # If we are not cross compiling, use the normal target compilers for 49109 # building the build platform executables. 49110 BUILD_CC="$CC" 49111 BUILD_CXX="$CXX" 49112 BUILD_LD="$LD" 49113 BUILD_LDCXX="$LDCXX" 49114 BUILD_NM="$NM" 49115 BUILD_AS="$AS" 49116 BUILD_OBJCOPY="$OBJCOPY" 49117 BUILD_STRIP="$STRIP" 49118 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 49119 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 49120 BUILD_AR="$AR" 49121 49122 49123 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 49124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 49125 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 49126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49127 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49128 fi 49129 49130 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49131 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49133 $as_echo "$as_me: WARNING: C compiler version number has more than four parts (W.X.Y.Z): $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49134 fi 49135 49136 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&5 49138 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49139 fi 49140 49141 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 49142 49143 fi 49144 49145 49146 49147 49148 49149 49150 49151 49152 49153 49154 49155 49156 49157 49158 # The package path is used only on macosx? 49159 # FIXME: clean this up, and/or move it elsewhere. 49160 PACKAGE_PATH=/opt/local 49161 49162 49163 # Check for extra potential brokenness. 49164 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49165 # On Windows, double-check that we got the right compiler. 49166 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49167 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 49168 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 49169 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 49170 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 49171 fi 49172 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 49173 if test "x$COMPILER_CPU_TEST" != "xx64"; then 49174 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 49175 fi 49176 fi 49177 fi 49178 49179 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49180 # If this is a --hash-style=gnu system, use --hash-style=both, why? 49181 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 49182 # This is later checked when setting flags. 49183 49184 # "-Og" suppported for GCC 4.8 and later 49185 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 49186 49187 49188 49189 49190 49191 49192 49193 49194 49195 49196 49197 49198 49199 49200 49201 49202 49203 49204 49205 49206 49207 49208 49209 49210 49211 49212 49213 49214 49215 49216 49217 49218 49219 49220 49221 49222 49223 49224 49225 49226 49227 49228 49229 49230 49231 49232 49233 # Execute function body 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 49247 49248 49249 49250 49251 49252 49253 49254 49255 49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 49267 49268 49269 49270 49271 49272 49273 49274 49275 49276 49277 49278 49279 49280 49281 49282 # Execute function body 49283 49284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49285 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49286 supports=yes 49287 49288 saved_cflags="$CFLAGS" 49289 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 49290 ac_ext=c 49291 ac_cpp='$CPP $CPPFLAGS' 49292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49294 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49295 49296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49297 /* end confdefs.h. */ 49298 int i; 49299 _ACEOF 49300 if ac_fn_c_try_compile "$LINENO"; then : 49301 49302 else 49303 supports=no 49304 fi 49305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49306 ac_ext=cpp 49307 ac_cpp='$CXXCPP $CPPFLAGS' 49308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49311 49312 CFLAGS="$saved_cflags" 49313 49314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49315 $as_echo "$supports" >&6; } 49316 if test "x$supports" = "xyes" ; then 49317 : 49318 C_COMP_SUPPORTS="yes" 49319 else 49320 : 49321 C_COMP_SUPPORTS="no" 49322 fi 49323 49324 49325 49326 49327 49328 49329 49330 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 49345 49346 49347 49348 49349 49350 49351 49352 49353 49354 49355 49356 49357 49358 49359 49360 49361 49362 49363 49364 49365 49366 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 # Execute function body 49383 49384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49385 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49386 supports=yes 49387 49388 saved_cxxflags="$CXXFLAGS" 49389 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 49390 ac_ext=cpp 49391 ac_cpp='$CXXCPP $CPPFLAGS' 49392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49395 49396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49397 /* end confdefs.h. */ 49398 int i; 49399 _ACEOF 49400 if ac_fn_cxx_try_compile "$LINENO"; then : 49401 49402 else 49403 supports=no 49404 fi 49405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49406 ac_ext=cpp 49407 ac_cpp='$CXXCPP $CPPFLAGS' 49408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49411 49412 CXXFLAGS="$saved_cxxflags" 49413 49414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49415 $as_echo "$supports" >&6; } 49416 if test "x$supports" = "xyes" ; then 49417 : 49418 CXX_COMP_SUPPORTS="yes" 49419 else 49420 : 49421 CXX_COMP_SUPPORTS="no" 49422 fi 49423 49424 49425 49426 49427 49428 49429 49430 49431 49432 49433 49434 49435 49436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49437 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49438 supports=no 49439 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49440 49441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49442 $as_echo "$supports" >&6; } 49443 if test "x$supports" = "xyes" ; then 49444 : 49445 HAS_CFLAG_OPTIMIZE_DEBUG=true 49446 else 49447 : 49448 HAS_CFLAG_OPTIMIZE_DEBUG=false 49449 fi 49450 49451 49452 49453 49454 49455 49456 49457 # "-z relro" supported in GNU binutils 2.17 and later 49458 LINKER_RELRO_FLAG="-Wl,-z,relro" 49459 49460 49461 49462 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473 49474 49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 49502 49503 49504 49505 49506 # Execute function body 49507 49508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 49509 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 49510 supports=yes 49511 49512 saved_ldflags="$LDFLAGS" 49513 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 49514 ac_ext=c 49515 ac_cpp='$CPP $CPPFLAGS' 49516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49518 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49519 49520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49521 /* end confdefs.h. */ 49522 49523 int 49524 main () 49525 { 49526 49527 ; 49528 return 0; 49529 } 49530 _ACEOF 49531 if ac_fn_c_try_link "$LINENO"; then : 49532 49533 else 49534 supports=no 49535 fi 49536 rm -f core conftest.err conftest.$ac_objext \ 49537 conftest$ac_exeext conftest.$ac_ext 49538 ac_ext=cpp 49539 ac_cpp='$CXXCPP $CPPFLAGS' 49540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49543 49544 LDFLAGS="$saved_ldflags" 49545 49546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49547 $as_echo "$supports" >&6; } 49548 if test "x$supports" = "xyes" ; then 49549 : 49550 HAS_LINKER_RELRO=true 49551 else 49552 : 49553 HAS_LINKER_RELRO=false 49554 fi 49555 49556 49557 49558 49559 49560 49561 49562 49563 49564 49565 49566 49567 49568 # "-z now" supported in GNU binutils 2.11 and later 49569 LINKER_NOW_FLAG="-Wl,-z,now" 49570 49571 49572 49573 49574 49575 49576 49577 49578 49579 49580 49581 49582 49583 49584 49585 49586 49587 49588 49589 49590 49591 49592 49593 49594 49595 49596 49597 49598 49599 49600 49601 49602 49603 49604 49605 49606 49607 49608 49609 49610 49611 49612 49613 49614 49615 49616 49617 # Execute function body 49618 49619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 49620 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 49621 supports=yes 49622 49623 saved_ldflags="$LDFLAGS" 49624 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 49625 ac_ext=c 49626 ac_cpp='$CPP $CPPFLAGS' 49627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49629 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49630 49631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49632 /* end confdefs.h. */ 49633 49634 int 49635 main () 49636 { 49637 49638 ; 49639 return 0; 49640 } 49641 _ACEOF 49642 if ac_fn_c_try_link "$LINENO"; then : 49643 49644 else 49645 supports=no 49646 fi 49647 rm -f core conftest.err conftest.$ac_objext \ 49648 conftest$ac_exeext conftest.$ac_ext 49649 ac_ext=cpp 49650 ac_cpp='$CXXCPP $CPPFLAGS' 49651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49654 49655 LDFLAGS="$saved_ldflags" 49656 49657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49658 $as_echo "$supports" >&6; } 49659 if test "x$supports" = "xyes" ; then 49660 : 49661 HAS_LINKER_NOW=true 49662 else 49663 : 49664 HAS_LINKER_NOW=false 49665 fi 49666 49667 49668 49669 49670 49671 49672 49673 49674 49675 49676 49677 49678 fi 49679 49680 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 49681 # in executable.' 49682 USING_BROKEN_SUSE_LD=no 49683 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 49684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 49685 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 49686 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 49687 $ECHO "int main() { }" > main.c 49688 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 49689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49690 $as_echo "no" >&6; } 49691 USING_BROKEN_SUSE_LD=no 49692 else 49693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49694 $as_echo "yes" >&6; } 49695 USING_BROKEN_SUSE_LD=yes 49696 fi 49697 $RM version-script.map main.c a.out 49698 fi 49699 49700 49701 # Setup hotspot lecagy names for toolchains 49702 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 49703 if test "x$TOOLCHAIN_TYPE" = xclang; then 49704 HOTSPOT_TOOLCHAIN_TYPE=gcc 49705 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49706 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 49707 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49708 HOTSPOT_TOOLCHAIN_TYPE=visCPP 49709 fi 49710 49711 49712 49713 # Setup the JTReg Regression Test Harness. 49714 49715 49716 # Check whether --with-jtreg was given. 49717 if test "${with_jtreg+set}" = set; then : 49718 withval=$with_jtreg; 49719 fi 49720 49721 49722 if test "x$with_jtreg" = xno; then 49723 # jtreg disabled 49724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49725 $as_echo_n "checking for jtreg test harness... " >&6; } 49726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 49727 $as_echo "no, disabled" >&6; } 49728 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 49729 # An explicit path is specified, use it. 49730 JT_HOME="$with_jtreg" 49731 49732 # Only process if variable expands to non-empty 49733 49734 if test "x$JT_HOME" != x; then 49735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49736 49737 # Input might be given as Windows format, start by converting to 49738 # unix format. 49739 path="$JT_HOME" 49740 new_path=`$CYGPATH -u "$path"` 49741 49742 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49743 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49744 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49745 # "foo.exe" is OK but "foo" is an error. 49746 # 49747 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49748 # It is also a way to make sure we got the proper file name for the real test later on. 49749 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49750 if test "x$test_shortpath" = x; then 49751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49752 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49753 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49754 fi 49755 49756 # Call helper function which possibly converts this using DOS-style short mode. 49757 # If so, the updated path is stored in $new_path. 49758 49759 input_path="$new_path" 49760 # Check if we need to convert this using DOS-style short mode. If the path 49761 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49762 # take no chances and rewrite it. 49763 # Note: m4 eats our [], so we need to use [ and ] instead. 49764 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49765 if test "x$has_forbidden_chars" != x; then 49766 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49767 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49768 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49769 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49770 # Going to short mode and back again did indeed matter. Since short mode is 49771 # case insensitive, let's make it lowercase to improve readability. 49772 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49773 # Now convert it back to Unix-style (cygpath) 49774 input_path=`$CYGPATH -u "$shortmode_path"` 49775 new_path="$input_path" 49776 fi 49777 fi 49778 49779 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49780 if test "x$test_cygdrive_prefix" = x; then 49781 # As a simple fix, exclude /usr/bin since it's not a real path. 49782 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49783 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49784 # a path prefixed by /cygdrive for fixpath to work. 49785 new_path="$CYGWIN_ROOT_PATH$input_path" 49786 fi 49787 fi 49788 49789 49790 if test "x$path" != "x$new_path"; then 49791 JT_HOME="$new_path" 49792 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49793 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49794 fi 49795 49796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49797 49798 path="$JT_HOME" 49799 has_colon=`$ECHO $path | $GREP ^.:` 49800 new_path="$path" 49801 if test "x$has_colon" = x; then 49802 # Not in mixed or Windows style, start by that. 49803 new_path=`cmd //c echo $path` 49804 fi 49805 49806 49807 input_path="$new_path" 49808 # Check if we need to convert this using DOS-style short mode. If the path 49809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49810 # take no chances and rewrite it. 49811 # Note: m4 eats our [], so we need to use [ and ] instead. 49812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49813 if test "x$has_forbidden_chars" != x; then 49814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49815 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49816 fi 49817 49818 49819 windows_path="$new_path" 49820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49821 unix_path=`$CYGPATH -u "$windows_path"` 49822 new_path="$unix_path" 49823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49825 new_path="$unix_path" 49826 fi 49827 49828 if test "x$path" != "x$new_path"; then 49829 JT_HOME="$new_path" 49830 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49831 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49832 fi 49833 49834 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49835 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49836 49837 else 49838 # We're on a unix platform. Hooray! :) 49839 path="$JT_HOME" 49840 has_space=`$ECHO "$path" | $GREP " "` 49841 if test "x$has_space" != x; then 49842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49843 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49844 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49845 fi 49846 49847 # Use eval to expand a potential ~ 49848 eval path="$path" 49849 if test ! -f "$path" && test ! -d "$path"; then 49850 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49851 fi 49852 49853 if test -d "$path"; then 49854 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49855 else 49856 dir="`$DIRNAME "$path"`" 49857 base="`$BASENAME "$path"`" 49858 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49859 fi 49860 fi 49861 fi 49862 49863 if test ! -d "$JT_HOME"; then 49864 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 49865 fi 49866 49867 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49868 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 49869 fi 49870 49871 JTREGEXE="$JT_HOME/bin/jtreg" 49872 if test ! -x "$JTREGEXE"; then 49873 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 49874 fi 49875 49876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49877 $as_echo_n "checking for jtreg test harness... " >&6; } 49878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49879 $as_echo "$JT_HOME" >&6; } 49880 else 49881 # Try to locate jtreg 49882 if test "x$JT_HOME" != x; then 49883 # JT_HOME set in environment, use it 49884 if test ! -d "$JT_HOME"; then 49885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 49886 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 49887 JT_HOME= 49888 else 49889 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 49891 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 49892 JT_HOME= 49893 elif test ! -x "$JT_HOME/bin/jtreg"; then 49894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 49895 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 49896 JT_HOME= 49897 else 49898 JTREGEXE="$JT_HOME/bin/jtreg" 49899 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 49900 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 49901 fi 49902 fi 49903 fi 49904 49905 if test "x$JT_HOME" = x; then 49906 # JT_HOME is not set in environment, or was deemed invalid. 49907 # Try to find jtreg on path 49908 49909 49910 # Publish this variable in the help. 49911 49912 49913 if [ -z "${JTREGEXE+x}" ]; then 49914 # The variable is not set by user, try to locate tool using the code snippet 49915 for ac_prog in jtreg 49916 do 49917 # Extract the first word of "$ac_prog", so it can be a program name with args. 49918 set dummy $ac_prog; ac_word=$2 49919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49920 $as_echo_n "checking for $ac_word... " >&6; } 49921 if ${ac_cv_path_JTREGEXE+:} false; then : 49922 $as_echo_n "(cached) " >&6 49923 else 49924 case $JTREGEXE in 49925 [\\/]* | ?:[\\/]*) 49926 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49927 ;; 49928 *) 49929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49930 for as_dir in $PATH 49931 do 49932 IFS=$as_save_IFS 49933 test -z "$as_dir" && as_dir=. 49934 for ac_exec_ext in '' $ac_executable_extensions; do 49935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49936 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49938 break 2 49939 fi 49940 done 49941 done 49942 IFS=$as_save_IFS 49943 49944 ;; 49945 esac 49946 fi 49947 JTREGEXE=$ac_cv_path_JTREGEXE 49948 if test -n "$JTREGEXE"; then 49949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49950 $as_echo "$JTREGEXE" >&6; } 49951 else 49952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49953 $as_echo "no" >&6; } 49954 fi 49955 49956 49957 test -n "$JTREGEXE" && break 49958 done 49959 49960 else 49961 # The variable is set, but is it from the command line or the environment? 49962 49963 # Try to remove the string !JTREGEXE! from our list. 49964 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49965 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49966 # If it failed, the variable was not from the command line. Ignore it, 49967 # but warn the user (except for BASH, which is always set by the calling BASH). 49968 if test "xJTREGEXE" != xBASH; then 49969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49970 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49971 fi 49972 # Try to locate tool using the code snippet 49973 for ac_prog in jtreg 49974 do 49975 # Extract the first word of "$ac_prog", so it can be a program name with args. 49976 set dummy $ac_prog; ac_word=$2 49977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49978 $as_echo_n "checking for $ac_word... " >&6; } 49979 if ${ac_cv_path_JTREGEXE+:} false; then : 49980 $as_echo_n "(cached) " >&6 49981 else 49982 case $JTREGEXE in 49983 [\\/]* | ?:[\\/]*) 49984 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49985 ;; 49986 *) 49987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49988 for as_dir in $PATH 49989 do 49990 IFS=$as_save_IFS 49991 test -z "$as_dir" && as_dir=. 49992 for ac_exec_ext in '' $ac_executable_extensions; do 49993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49994 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49996 break 2 49997 fi 49998 done 49999 done 50000 IFS=$as_save_IFS 50001 50002 ;; 50003 esac 50004 fi 50005 JTREGEXE=$ac_cv_path_JTREGEXE 50006 if test -n "$JTREGEXE"; then 50007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 50008 $as_echo "$JTREGEXE" >&6; } 50009 else 50010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50011 $as_echo "no" >&6; } 50012 fi 50013 50014 50015 test -n "$JTREGEXE" && break 50016 done 50017 50018 else 50019 # If it succeeded, then it was overridden by the user. We will use it 50020 # for the tool. 50021 50022 # First remove it from the list of overridden variables, so we can test 50023 # for unknown variables in the end. 50024 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50025 50026 # Check if we try to supply an empty value 50027 if test "x$JTREGEXE" = x; then 50028 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 50029 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 50030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 50031 $as_echo_n "checking for JTREGEXE... " >&6; } 50032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 50033 $as_echo "disabled" >&6; } 50034 else 50035 # Check if the provided tool contains a complete path. 50036 tool_specified="$JTREGEXE" 50037 tool_basename="${tool_specified##*/}" 50038 if test "x$tool_basename" = "x$tool_specified"; then 50039 # A command without a complete path is provided, search $PATH. 50040 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 50041 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 50042 # Extract the first word of "$tool_basename", so it can be a program name with args. 50043 set dummy $tool_basename; ac_word=$2 50044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50045 $as_echo_n "checking for $ac_word... " >&6; } 50046 if ${ac_cv_path_JTREGEXE+:} false; then : 50047 $as_echo_n "(cached) " >&6 50048 else 50049 case $JTREGEXE in 50050 [\\/]* | ?:[\\/]*) 50051 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 50052 ;; 50053 *) 50054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50055 for as_dir in $PATH 50056 do 50057 IFS=$as_save_IFS 50058 test -z "$as_dir" && as_dir=. 50059 for ac_exec_ext in '' $ac_executable_extensions; do 50060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50061 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 50062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50063 break 2 50064 fi 50065 done 50066 done 50067 IFS=$as_save_IFS 50068 50069 ;; 50070 esac 50071 fi 50072 JTREGEXE=$ac_cv_path_JTREGEXE 50073 if test -n "$JTREGEXE"; then 50074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 50075 $as_echo "$JTREGEXE" >&6; } 50076 else 50077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50078 $as_echo "no" >&6; } 50079 fi 50080 50081 50082 if test "x$JTREGEXE" = x; then 50083 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50084 fi 50085 else 50086 # Otherwise we believe it is a complete path. Use it as it is. 50087 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 50088 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 50089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 50090 $as_echo_n "checking for JTREGEXE... " >&6; } 50091 if test ! -x "$tool_specified"; then 50092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50093 $as_echo "not found" >&6; } 50094 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 50095 fi 50096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50097 $as_echo "$tool_specified" >&6; } 50098 fi 50099 fi 50100 fi 50101 50102 fi 50103 50104 50105 if test "x$JTREGEXE" != x; then 50106 # That's good, now try to derive JT_HOME 50107 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 50108 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 50109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 50110 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 50111 JT_HOME= 50112 JTREGEXE= 50113 else 50114 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 50115 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 50116 fi 50117 fi 50118 fi 50119 50120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 50121 $as_echo_n "checking for jtreg test harness... " >&6; } 50122 if test "x$JT_HOME" != x; then 50123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 50124 $as_echo "$JT_HOME" >&6; } 50125 else 50126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 50127 $as_echo "no, not found" >&6; } 50128 50129 if test "x$with_jtreg" = xyes; then 50130 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 50131 fi 50132 fi 50133 fi 50134 50135 50136 # Only process if variable expands to non-empty 50137 50138 if test "x$JTREGEXE" != x; then 50139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50140 50141 # First separate the path from the arguments. This will split at the first 50142 # space. 50143 complete="$JTREGEXE" 50144 path="${complete%% *}" 50145 tmp="$complete EOL" 50146 arguments="${tmp#* }" 50147 50148 # Input might be given as Windows format, start by converting to 50149 # unix format. 50150 new_path=`$CYGPATH -u "$path"` 50151 50152 # Now try to locate executable using which 50153 new_path=`$WHICH "$new_path" 2> /dev/null` 50154 # bat and cmd files are not always considered executable in cygwin causing which 50155 # to not find them 50156 if test "x$new_path" = x \ 50157 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50158 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50159 new_path=`$CYGPATH -u "$path"` 50160 fi 50161 if test "x$new_path" = x; then 50162 # Oops. Which didn't find the executable. 50163 # The splitting of arguments from the executable at a space might have been incorrect, 50164 # since paths with space are more likely in Windows. Give it another try with the whole 50165 # argument. 50166 path="$complete" 50167 arguments="EOL" 50168 new_path=`$CYGPATH -u "$path"` 50169 new_path=`$WHICH "$new_path" 2> /dev/null` 50170 # bat and cmd files are not always considered executable in cygwin causing which 50171 # to not find them 50172 if test "x$new_path" = x \ 50173 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50174 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50175 new_path=`$CYGPATH -u "$path"` 50176 fi 50177 if test "x$new_path" = x; then 50178 # It's still not found. Now this is an unrecoverable error. 50179 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50180 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50181 has_space=`$ECHO "$complete" | $GREP " "` 50182 if test "x$has_space" != x; then 50183 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50184 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50185 fi 50186 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50187 fi 50188 fi 50189 50190 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50191 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50192 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50193 # "foo.exe" is OK but "foo" is an error. 50194 # 50195 # This test is therefore slightly more accurate than "test -f" to check for file presence. 50196 # It is also a way to make sure we got the proper file name for the real test later on. 50197 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50198 if test "x$test_shortpath" = x; then 50199 # Short path failed, file does not exist as specified. 50200 # Try adding .exe or .cmd 50201 if test -f "${new_path}.exe"; then 50202 input_to_shortpath="${new_path}.exe" 50203 elif test -f "${new_path}.cmd"; then 50204 input_to_shortpath="${new_path}.cmd" 50205 else 50206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 50207 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 50208 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 50209 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 50210 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50211 fi 50212 else 50213 input_to_shortpath="$new_path" 50214 fi 50215 50216 # Call helper function which possibly converts this using DOS-style short mode. 50217 # If so, the updated path is stored in $new_path. 50218 new_path="$input_to_shortpath" 50219 50220 input_path="$input_to_shortpath" 50221 # Check if we need to convert this using DOS-style short mode. If the path 50222 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50223 # take no chances and rewrite it. 50224 # Note: m4 eats our [], so we need to use [ and ] instead. 50225 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50226 if test "x$has_forbidden_chars" != x; then 50227 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50228 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50229 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50230 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50231 # Going to short mode and back again did indeed matter. Since short mode is 50232 # case insensitive, let's make it lowercase to improve readability. 50233 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50234 # Now convert it back to Unix-style (cygpath) 50235 input_path=`$CYGPATH -u "$shortmode_path"` 50236 new_path="$input_path" 50237 fi 50238 fi 50239 50240 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50241 if test "x$test_cygdrive_prefix" = x; then 50242 # As a simple fix, exclude /usr/bin since it's not a real path. 50243 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 50244 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50245 # a path prefixed by /cygdrive for fixpath to work. 50246 new_path="$CYGWIN_ROOT_PATH$input_path" 50247 fi 50248 fi 50249 50250 # remove trailing .exe if any 50251 new_path="${new_path/%.exe/}" 50252 50253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50254 50255 # First separate the path from the arguments. This will split at the first 50256 # space. 50257 complete="$JTREGEXE" 50258 path="${complete%% *}" 50259 tmp="$complete EOL" 50260 arguments="${tmp#* }" 50261 50262 # Input might be given as Windows format, start by converting to 50263 # unix format. 50264 new_path="$path" 50265 50266 windows_path="$new_path" 50267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50268 unix_path=`$CYGPATH -u "$windows_path"` 50269 new_path="$unix_path" 50270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50272 new_path="$unix_path" 50273 fi 50274 50275 50276 # Now try to locate executable using which 50277 new_path=`$WHICH "$new_path" 2> /dev/null` 50278 50279 if test "x$new_path" = x; then 50280 # Oops. Which didn't find the executable. 50281 # The splitting of arguments from the executable at a space might have been incorrect, 50282 # since paths with space are more likely in Windows. Give it another try with the whole 50283 # argument. 50284 path="$complete" 50285 arguments="EOL" 50286 new_path="$path" 50287 50288 windows_path="$new_path" 50289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50290 unix_path=`$CYGPATH -u "$windows_path"` 50291 new_path="$unix_path" 50292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50294 new_path="$unix_path" 50295 fi 50296 50297 50298 new_path=`$WHICH "$new_path" 2> /dev/null` 50299 # bat and cmd files are not always considered executable in MSYS causing which 50300 # to not find them 50301 if test "x$new_path" = x \ 50302 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50303 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50304 new_path="$path" 50305 50306 windows_path="$new_path" 50307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50308 unix_path=`$CYGPATH -u "$windows_path"` 50309 new_path="$unix_path" 50310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50312 new_path="$unix_path" 50313 fi 50314 50315 fi 50316 50317 if test "x$new_path" = x; then 50318 # It's still not found. Now this is an unrecoverable error. 50319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50320 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50321 has_space=`$ECHO "$complete" | $GREP " "` 50322 if test "x$has_space" != x; then 50323 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50324 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50325 fi 50326 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50327 fi 50328 fi 50329 50330 # Now new_path has a complete unix path to the binary 50331 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 50332 # Keep paths in /bin as-is, but remove trailing .exe if any 50333 new_path="${new_path/%.exe/}" 50334 # Do not save /bin paths to all_fixpath_prefixes! 50335 else 50336 # Not in mixed or Windows style, start by that. 50337 new_path=`cmd //c echo $new_path` 50338 50339 input_path="$new_path" 50340 # Check if we need to convert this using DOS-style short mode. If the path 50341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50342 # take no chances and rewrite it. 50343 # Note: m4 eats our [], so we need to use [ and ] instead. 50344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50345 if test "x$has_forbidden_chars" != x; then 50346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50347 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50348 fi 50349 50350 # Output is in $new_path 50351 50352 windows_path="$new_path" 50353 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50354 unix_path=`$CYGPATH -u "$windows_path"` 50355 new_path="$unix_path" 50356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50357 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50358 new_path="$unix_path" 50359 fi 50360 50361 # remove trailing .exe if any 50362 new_path="${new_path/%.exe/}" 50363 50364 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50365 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50366 fi 50367 50368 else 50369 # We're on a unix platform. Hooray! :) 50370 # First separate the path from the arguments. This will split at the first 50371 # space. 50372 complete="$JTREGEXE" 50373 path="${complete%% *}" 50374 tmp="$complete EOL" 50375 arguments="${tmp#* }" 50376 50377 # Cannot rely on the command "which" here since it doesn't always work. 50378 is_absolute_path=`$ECHO "$path" | $GREP ^/` 50379 if test -z "$is_absolute_path"; then 50380 # Path to executable is not absolute. Find it. 50381 IFS_save="$IFS" 50382 IFS=: 50383 for p in $PATH; do 50384 if test -f "$p/$path" && test -x "$p/$path"; then 50385 new_path="$p/$path" 50386 break 50387 fi 50388 done 50389 IFS="$IFS_save" 50390 else 50391 # This is an absolute path, we can use it without further modifications. 50392 new_path="$path" 50393 fi 50394 50395 if test "x$new_path" = x; then 50396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50397 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50398 has_space=`$ECHO "$complete" | $GREP " "` 50399 if test "x$has_space" != x; then 50400 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 50401 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 50402 fi 50403 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50404 fi 50405 fi 50406 50407 # Now join together the path and the arguments once again 50408 if test "x$arguments" != xEOL; then 50409 new_complete="$new_path ${arguments% *}" 50410 else 50411 new_complete="$new_path" 50412 fi 50413 50414 if test "x$complete" != "x$new_complete"; then 50415 JTREGEXE="$new_complete" 50416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 50417 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 50418 fi 50419 fi 50420 50421 50422 # Only process if variable expands to non-empty 50423 50424 if test "x$JT_HOME" != x; then 50425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50426 50427 # Input might be given as Windows format, start by converting to 50428 # unix format. 50429 path="$JT_HOME" 50430 new_path=`$CYGPATH -u "$path"` 50431 50432 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50433 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50434 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50435 # "foo.exe" is OK but "foo" is an error. 50436 # 50437 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50438 # It is also a way to make sure we got the proper file name for the real test later on. 50439 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50440 if test "x$test_shortpath" = x; then 50441 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50442 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50443 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 50444 fi 50445 50446 # Call helper function which possibly converts this using DOS-style short mode. 50447 # If so, the updated path is stored in $new_path. 50448 50449 input_path="$new_path" 50450 # Check if we need to convert this using DOS-style short mode. If the path 50451 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50452 # take no chances and rewrite it. 50453 # Note: m4 eats our [], so we need to use [ and ] instead. 50454 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50455 if test "x$has_forbidden_chars" != x; then 50456 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50457 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50458 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50459 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50460 # Going to short mode and back again did indeed matter. Since short mode is 50461 # case insensitive, let's make it lowercase to improve readability. 50462 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50463 # Now convert it back to Unix-style (cygpath) 50464 input_path=`$CYGPATH -u "$shortmode_path"` 50465 new_path="$input_path" 50466 fi 50467 fi 50468 50469 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50470 if test "x$test_cygdrive_prefix" = x; then 50471 # As a simple fix, exclude /usr/bin since it's not a real path. 50472 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50473 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50474 # a path prefixed by /cygdrive for fixpath to work. 50475 new_path="$CYGWIN_ROOT_PATH$input_path" 50476 fi 50477 fi 50478 50479 50480 if test "x$path" != "x$new_path"; then 50481 JT_HOME="$new_path" 50482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50483 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50484 fi 50485 50486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50487 50488 path="$JT_HOME" 50489 has_colon=`$ECHO $path | $GREP ^.:` 50490 new_path="$path" 50491 if test "x$has_colon" = x; then 50492 # Not in mixed or Windows style, start by that. 50493 new_path=`cmd //c echo $path` 50494 fi 50495 50496 50497 input_path="$new_path" 50498 # Check if we need to convert this using DOS-style short mode. If the path 50499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50500 # take no chances and rewrite it. 50501 # Note: m4 eats our [], so we need to use [ and ] instead. 50502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50503 if test "x$has_forbidden_chars" != x; then 50504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50505 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50506 fi 50507 50508 50509 windows_path="$new_path" 50510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50511 unix_path=`$CYGPATH -u "$windows_path"` 50512 new_path="$unix_path" 50513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50514 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50515 new_path="$unix_path" 50516 fi 50517 50518 if test "x$path" != "x$new_path"; then 50519 JT_HOME="$new_path" 50520 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50521 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50522 fi 50523 50524 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50525 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50526 50527 else 50528 # We're on a unix platform. Hooray! :) 50529 path="$JT_HOME" 50530 has_space=`$ECHO "$path" | $GREP " "` 50531 if test "x$has_space" != x; then 50532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50533 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50534 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50535 fi 50536 50537 # Use eval to expand a potential ~ 50538 eval path="$path" 50539 if test ! -f "$path" && test ! -d "$path"; then 50540 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 50541 fi 50542 50543 if test -d "$path"; then 50544 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 50545 else 50546 dir="`$DIRNAME "$path"`" 50547 base="`$BASENAME "$path"`" 50548 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 50549 fi 50550 fi 50551 fi 50552 50553 50554 50555 50556 50557 # Setup Jib dependency tool 50558 50559 50560 # Check whether --with-jib was given. 50561 if test "${with_jib+set}" = set; then : 50562 withval=$with_jib; 50563 fi 50564 50565 50566 if test "x$with_jib" = xno || test "x$with_jib" = x; then 50567 # jib disabled 50568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50569 $as_echo_n "checking for jib... " >&6; } 50570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50571 $as_echo "no" >&6; } 50572 elif test "x$with_jib" = xyes; then 50573 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 50574 else 50575 JIB_HOME="${with_jib}" 50576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50577 $as_echo_n "checking for jib... " >&6; } 50578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 50579 $as_echo "${JIB_HOME}" >&6; } 50580 if test ! -d "${JIB_HOME}"; then 50581 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 50582 fi 50583 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 50584 if test ! -f "${JIB_JAR}"; then 50585 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 50586 fi 50587 fi 50588 50589 50590 50591 50592 50593 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 50594 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 50595 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 50596 # commands produced by the link step (currently AIX only) 50597 if test "x$TOOLCHAIN_TYPE" = xxlc; then 50598 COMPILER_TARGET_BITS_FLAG="-q" 50599 COMPILER_COMMAND_FILE_FLAG="-f" 50600 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 50601 else 50602 COMPILER_TARGET_BITS_FLAG="-m" 50603 COMPILER_COMMAND_FILE_FLAG="@" 50604 COMPILER_BINDCMD_FILE_FLAG="" 50605 50606 # The solstudio linker does not support @-files. 50607 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50608 COMPILER_COMMAND_FILE_FLAG= 50609 fi 50610 50611 # Check if @file is supported by gcc 50612 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 50614 $as_echo_n "checking if @file is supported by gcc... " >&6; } 50615 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 50616 $ECHO "" "--version" > command.file 50617 if $CXX @command.file 2>&5 >&5; then 50618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50619 $as_echo "yes" >&6; } 50620 COMPILER_COMMAND_FILE_FLAG="@" 50621 else 50622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50623 $as_echo "no" >&6; } 50624 COMPILER_COMMAND_FILE_FLAG= 50625 fi 50626 $RM command.file 50627 fi 50628 fi 50629 50630 50631 50632 50633 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 50634 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50635 ARFLAGS="-r" 50636 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50637 ARFLAGS="-X64" 50638 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50639 # lib.exe is used as AR to create static libraries. 50640 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 50641 else 50642 ARFLAGS="" 50643 fi 50644 50645 50646 ## Setup strip. 50647 # FIXME: should this really be per platform, or should it be per toolchain type? 50648 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 50649 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 50650 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50651 STRIPFLAGS="-g" 50652 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50653 STRIPFLAGS="-x" 50654 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50655 STRIPFLAGS="-S" 50656 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50657 STRIPFLAGS="-X32_64" 50658 fi 50659 50660 50661 50662 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50663 CC_OUT_OPTION=-Fo 50664 EXE_OUT_OPTION=-out: 50665 LD_OUT_OPTION=-out: 50666 AR_OUT_OPTION=-out: 50667 else 50668 # The option used to specify the target .o,.a or .so file. 50669 # When compiling, how to specify the to be created object file. 50670 CC_OUT_OPTION='-o$(SPACE)' 50671 # When linking, how to specify the to be created executable. 50672 EXE_OUT_OPTION='-o$(SPACE)' 50673 # When linking, how to specify the to be created dynamically linkable library. 50674 LD_OUT_OPTION='-o$(SPACE)' 50675 # When archiving, how to specify the to be create static archive for object files. 50676 AR_OUT_OPTION='rcs$(SPACE)' 50677 fi 50678 50679 50680 50681 50682 50683 # On Windows, we need to set RC flags. 50684 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50685 RC_FLAGS="-nologo -l0x409" 50686 JVM_RCFLAGS="-nologo" 50687 if test "x$DEBUG_LEVEL" = xrelease; then 50688 RC_FLAGS="$RC_FLAGS -DNDEBUG" 50689 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 50690 fi 50691 50692 # The version variables used to create RC_FLAGS may be overridden 50693 # in a custom configure script, or possibly the command line. 50694 # Let those variables be expanded at make time in spec.gmk. 50695 # The \$ are escaped to the shell, and the $(...) variables 50696 # are evaluated by make. 50697 RC_FLAGS="$RC_FLAGS \ 50698 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 50699 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 50700 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 50701 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 50702 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 50703 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_FEATURE)\" \ 50704 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 50705 50706 JVM_RCFLAGS="$JVM_RCFLAGS \ 50707 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 50708 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 50709 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 50710 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 50711 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 50712 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 50713 -D\"HS_FNAME=jvm.dll\" \ 50714 -D\"HS_INTERNAL_NAME=jvm\"" 50715 fi 50716 50717 50718 50719 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50720 # silence copyright notice and other headers. 50721 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 50722 fi 50723 50724 50725 # Now we can test some aspects on the target using configure macros. 50726 50727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 50728 $as_echo_n "checking for ANSI C header files... " >&6; } 50729 if ${ac_cv_header_stdc+:} false; then : 50730 $as_echo_n "(cached) " >&6 50731 else 50732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50733 /* end confdefs.h. */ 50734 #include <stdlib.h> 50735 #include <stdarg.h> 50736 #include <string.h> 50737 #include <float.h> 50738 50739 int 50740 main () 50741 { 50742 50743 ; 50744 return 0; 50745 } 50746 _ACEOF 50747 if ac_fn_cxx_try_compile "$LINENO"; then : 50748 ac_cv_header_stdc=yes 50749 else 50750 ac_cv_header_stdc=no 50751 fi 50752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50753 50754 if test $ac_cv_header_stdc = yes; then 50755 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 50756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50757 /* end confdefs.h. */ 50758 #include <string.h> 50759 50760 _ACEOF 50761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50762 $EGREP "memchr" >/dev/null 2>&1; then : 50763 50764 else 50765 ac_cv_header_stdc=no 50766 fi 50767 rm -f conftest* 50768 50769 fi 50770 50771 if test $ac_cv_header_stdc = yes; then 50772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 50773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50774 /* end confdefs.h. */ 50775 #include <stdlib.h> 50776 50777 _ACEOF 50778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50779 $EGREP "free" >/dev/null 2>&1; then : 50780 50781 else 50782 ac_cv_header_stdc=no 50783 fi 50784 rm -f conftest* 50785 50786 fi 50787 50788 if test $ac_cv_header_stdc = yes; then 50789 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 50790 if test "$cross_compiling" = yes; then : 50791 : 50792 else 50793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50794 /* end confdefs.h. */ 50795 #include <ctype.h> 50796 #include <stdlib.h> 50797 #if ((' ' & 0x0FF) == 0x020) 50798 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 50799 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 50800 #else 50801 # define ISLOWER(c) \ 50802 (('a' <= (c) && (c) <= 'i') \ 50803 || ('j' <= (c) && (c) <= 'r') \ 50804 || ('s' <= (c) && (c) <= 'z')) 50805 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 50806 #endif 50807 50808 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 50809 int 50810 main () 50811 { 50812 int i; 50813 for (i = 0; i < 256; i++) 50814 if (XOR (islower (i), ISLOWER (i)) 50815 || toupper (i) != TOUPPER (i)) 50816 return 2; 50817 return 0; 50818 } 50819 _ACEOF 50820 if ac_fn_cxx_try_run "$LINENO"; then : 50821 50822 else 50823 ac_cv_header_stdc=no 50824 fi 50825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50826 conftest.$ac_objext conftest.beam conftest.$ac_ext 50827 fi 50828 50829 fi 50830 fi 50831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 50832 $as_echo "$ac_cv_header_stdc" >&6; } 50833 if test $ac_cv_header_stdc = yes; then 50834 50835 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 50836 50837 fi 50838 50839 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 50840 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 50841 inttypes.h stdint.h unistd.h 50842 do : 50843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 50844 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 50845 " 50846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 50847 cat >>confdefs.h <<_ACEOF 50848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 50849 _ACEOF 50850 50851 fi 50852 50853 done 50854 50855 50856 50857 ############################################################################### 50858 # 50859 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 50860 # (The JVM can use 32 or 64 bit Java pointers but that decision 50861 # is made at runtime.) 50862 # 50863 50864 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 50865 # Always specify -m flag on Solaris 50866 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 50867 50868 # When we add flags to the "official" CFLAGS etc, we need to 50869 # keep track of these additions in ADDED_CFLAGS etc. These 50870 # will later be checked to make sure only controlled additions 50871 # have been made to CFLAGS etc. 50872 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50873 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50874 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50875 50876 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50877 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50878 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50879 50880 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50881 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50882 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50883 50884 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50885 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50886 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50887 50888 elif test "x$COMPILE_TYPE" = xreduced; then 50889 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 50890 # Specify -m if running reduced on unix platforms 50891 50892 # When we add flags to the "official" CFLAGS etc, we need to 50893 # keep track of these additions in ADDED_CFLAGS etc. These 50894 # will later be checked to make sure only controlled additions 50895 # have been made to CFLAGS etc. 50896 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50897 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50898 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50899 50900 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50901 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50902 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50903 50904 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50905 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50906 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50907 50908 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50909 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50910 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50911 50912 fi 50913 fi 50914 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50915 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50916 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50917 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50918 fi 50919 50920 # Make compilation sanity check 50921 for ac_header in stdio.h 50922 do : 50923 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 50924 if test "x$ac_cv_header_stdio_h" = xyes; then : 50925 cat >>confdefs.h <<_ACEOF 50926 #define HAVE_STDIO_H 1 50927 _ACEOF 50928 50929 else 50930 50931 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 50932 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 50933 if test "x$COMPILE_TYPE" = xreduced; then 50934 50935 # Print a helpful message on how to acquire the necessary build dependency. 50936 # reduced is the help tag: freetype, cups, alsa etc 50937 MISSING_DEPENDENCY=reduced 50938 50939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50940 cygwin_help $MISSING_DEPENDENCY 50941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50942 msys_help $MISSING_DEPENDENCY 50943 else 50944 PKGHANDLER_COMMAND= 50945 50946 case $PKGHANDLER in 50947 apt-get) 50948 apt_help $MISSING_DEPENDENCY ;; 50949 yum) 50950 yum_help $MISSING_DEPENDENCY ;; 50951 brew) 50952 brew_help $MISSING_DEPENDENCY ;; 50953 port) 50954 port_help $MISSING_DEPENDENCY ;; 50955 pkgutil) 50956 pkgutil_help $MISSING_DEPENDENCY ;; 50957 pkgadd) 50958 pkgadd_help $MISSING_DEPENDENCY ;; 50959 esac 50960 50961 if test "x$PKGHANDLER_COMMAND" != x; then 50962 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50963 fi 50964 fi 50965 50966 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50967 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50968 elif test "x$COMPILE_TYPE" = xcross; then 50969 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50970 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50971 fi 50972 as_fn_error $? "Cannot continue." "$LINENO" 5 50973 50974 fi 50975 50976 done 50977 50978 50979 # The cast to long int works around a bug in the HP C Compiler 50980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50982 # This bug is HP SR number 8606223364. 50983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50984 $as_echo_n "checking size of int *... " >&6; } 50985 if ${ac_cv_sizeof_int_p+:} false; then : 50986 $as_echo_n "(cached) " >&6 50987 else 50988 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50989 50990 else 50991 if test "$ac_cv_type_int_p" = yes; then 50992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50994 as_fn_error 77 "cannot compute sizeof (int *) 50995 See \`config.log' for more details" "$LINENO" 5; } 50996 else 50997 ac_cv_sizeof_int_p=0 50998 fi 50999 fi 51000 51001 fi 51002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 51003 $as_echo "$ac_cv_sizeof_int_p" >&6; } 51004 51005 51006 51007 cat >>confdefs.h <<_ACEOF 51008 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 51009 _ACEOF 51010 51011 51012 51013 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 51014 if test "x$ac_cv_sizeof_int_p" = x; then 51015 # The test failed, lets stick to the assumed value. 51016 { $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 51017 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 51018 else 51019 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51020 51021 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51022 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 51023 # Let's try to implicitely set the compilers target architecture and retry the test 51024 { $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 51025 $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;} 51026 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 51027 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 51028 51029 # When we add flags to the "official" CFLAGS etc, we need to 51030 # keep track of these additions in ADDED_CFLAGS etc. These 51031 # will later be checked to make sure only controlled additions 51032 # have been made to CFLAGS etc. 51033 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51034 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51035 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 51036 51037 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 51038 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 51039 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 51040 51041 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 51042 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 51043 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 51044 51045 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 51046 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 51047 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 51048 51049 51050 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 51051 unset ac_cv_sizeof_int_p 51052 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 51053 cat >>confdefs.h <<_ACEOF 51054 #undef SIZEOF_INT_P 51055 _ACEOF 51056 51057 # The cast to long int works around a bug in the HP C Compiler 51058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 51059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 51060 # This bug is HP SR number 8606223364. 51061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 51062 $as_echo_n "checking size of int *... " >&6; } 51063 if ${ac_cv_sizeof_int_p+:} false; then : 51064 $as_echo_n "(cached) " >&6 51065 else 51066 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 51067 51068 else 51069 if test "$ac_cv_type_int_p" = yes; then 51070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 51071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 51072 as_fn_error 77 "cannot compute sizeof (int *) 51073 See \`config.log' for more details" "$LINENO" 5; } 51074 else 51075 ac_cv_sizeof_int_p=0 51076 fi 51077 fi 51078 51079 fi 51080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 51081 $as_echo "$ac_cv_sizeof_int_p" >&6; } 51082 51083 51084 51085 cat >>confdefs.h <<_ACEOF 51086 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 51087 _ACEOF 51088 51089 51090 51091 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51092 51093 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51094 { $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 51095 $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;} 51096 if test "x$COMPILE_TYPE" = xreduced; then 51097 51098 # Print a helpful message on how to acquire the necessary build dependency. 51099 # reduced is the help tag: freetype, cups, alsa etc 51100 MISSING_DEPENDENCY=reduced 51101 51102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51103 cygwin_help $MISSING_DEPENDENCY 51104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51105 msys_help $MISSING_DEPENDENCY 51106 else 51107 PKGHANDLER_COMMAND= 51108 51109 case $PKGHANDLER in 51110 apt-get) 51111 apt_help $MISSING_DEPENDENCY ;; 51112 yum) 51113 yum_help $MISSING_DEPENDENCY ;; 51114 brew) 51115 brew_help $MISSING_DEPENDENCY ;; 51116 port) 51117 port_help $MISSING_DEPENDENCY ;; 51118 pkgutil) 51119 pkgutil_help $MISSING_DEPENDENCY ;; 51120 pkgadd) 51121 pkgadd_help $MISSING_DEPENDENCY ;; 51122 esac 51123 51124 if test "x$PKGHANDLER_COMMAND" != x; then 51125 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51126 fi 51127 fi 51128 51129 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 51130 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 51131 elif test "x$COMPILE_TYPE" = xcross; then 51132 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 51133 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 51134 fi 51135 as_fn_error $? "Cannot continue." "$LINENO" 5 51136 fi 51137 fi 51138 fi 51139 51140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 51141 $as_echo_n "checking for target address size... " >&6; } 51142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 51143 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 51144 51145 51146 ############################################################################### 51147 # 51148 # Is the target little of big endian? 51149 # 51150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 51151 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 51152 if ${ac_cv_c_bigendian+:} false; then : 51153 $as_echo_n "(cached) " >&6 51154 else 51155 ac_cv_c_bigendian=unknown 51156 # See if we're dealing with a universal compiler. 51157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51158 /* end confdefs.h. */ 51159 #ifndef __APPLE_CC__ 51160 not a universal capable compiler 51161 #endif 51162 typedef int dummy; 51163 51164 _ACEOF 51165 if ac_fn_cxx_try_compile "$LINENO"; then : 51166 51167 # Check for potential -arch flags. It is not universal unless 51168 # there are at least two -arch flags with different values. 51169 ac_arch= 51170 ac_prev= 51171 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 51172 if test -n "$ac_prev"; then 51173 case $ac_word in 51174 i?86 | x86_64 | ppc | ppc64) 51175 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 51176 ac_arch=$ac_word 51177 else 51178 ac_cv_c_bigendian=universal 51179 break 51180 fi 51181 ;; 51182 esac 51183 ac_prev= 51184 elif test "x$ac_word" = "x-arch"; then 51185 ac_prev=arch 51186 fi 51187 done 51188 fi 51189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51190 if test $ac_cv_c_bigendian = unknown; then 51191 # See if sys/param.h defines the BYTE_ORDER macro. 51192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51193 /* end confdefs.h. */ 51194 #include <sys/types.h> 51195 #include <sys/param.h> 51196 51197 int 51198 main () 51199 { 51200 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 51201 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 51202 && LITTLE_ENDIAN) 51203 bogus endian macros 51204 #endif 51205 51206 ; 51207 return 0; 51208 } 51209 _ACEOF 51210 if ac_fn_cxx_try_compile "$LINENO"; then : 51211 # It does; now see whether it defined to BIG_ENDIAN or not. 51212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51213 /* end confdefs.h. */ 51214 #include <sys/types.h> 51215 #include <sys/param.h> 51216 51217 int 51218 main () 51219 { 51220 #if BYTE_ORDER != BIG_ENDIAN 51221 not big endian 51222 #endif 51223 51224 ; 51225 return 0; 51226 } 51227 _ACEOF 51228 if ac_fn_cxx_try_compile "$LINENO"; then : 51229 ac_cv_c_bigendian=yes 51230 else 51231 ac_cv_c_bigendian=no 51232 fi 51233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51234 fi 51235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51236 fi 51237 if test $ac_cv_c_bigendian = unknown; then 51238 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 51239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51240 /* end confdefs.h. */ 51241 #include <limits.h> 51242 51243 int 51244 main () 51245 { 51246 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 51247 bogus endian macros 51248 #endif 51249 51250 ; 51251 return 0; 51252 } 51253 _ACEOF 51254 if ac_fn_cxx_try_compile "$LINENO"; then : 51255 # It does; now see whether it defined to _BIG_ENDIAN or not. 51256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51257 /* end confdefs.h. */ 51258 #include <limits.h> 51259 51260 int 51261 main () 51262 { 51263 #ifndef _BIG_ENDIAN 51264 not big endian 51265 #endif 51266 51267 ; 51268 return 0; 51269 } 51270 _ACEOF 51271 if ac_fn_cxx_try_compile "$LINENO"; then : 51272 ac_cv_c_bigendian=yes 51273 else 51274 ac_cv_c_bigendian=no 51275 fi 51276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51277 fi 51278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51279 fi 51280 if test $ac_cv_c_bigendian = unknown; then 51281 # Compile a test program. 51282 if test "$cross_compiling" = yes; then : 51283 # Try to guess by grepping values from an object file. 51284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51285 /* end confdefs.h. */ 51286 short int ascii_mm[] = 51287 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 51288 short int ascii_ii[] = 51289 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 51290 int use_ascii (int i) { 51291 return ascii_mm[i] + ascii_ii[i]; 51292 } 51293 short int ebcdic_ii[] = 51294 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 51295 short int ebcdic_mm[] = 51296 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 51297 int use_ebcdic (int i) { 51298 return ebcdic_mm[i] + ebcdic_ii[i]; 51299 } 51300 extern int foo; 51301 51302 int 51303 main () 51304 { 51305 return use_ascii (foo) == use_ebcdic (foo); 51306 ; 51307 return 0; 51308 } 51309 _ACEOF 51310 if ac_fn_cxx_try_compile "$LINENO"; then : 51311 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 51312 ac_cv_c_bigendian=yes 51313 fi 51314 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 51315 if test "$ac_cv_c_bigendian" = unknown; then 51316 ac_cv_c_bigendian=no 51317 else 51318 # finding both strings is unlikely to happen, but who knows? 51319 ac_cv_c_bigendian=unknown 51320 fi 51321 fi 51322 fi 51323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51324 else 51325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51326 /* end confdefs.h. */ 51327 $ac_includes_default 51328 int 51329 main () 51330 { 51331 51332 /* Are we little or big endian? From Harbison&Steele. */ 51333 union 51334 { 51335 long int l; 51336 char c[sizeof (long int)]; 51337 } u; 51338 u.l = 1; 51339 return u.c[sizeof (long int) - 1] == 1; 51340 51341 ; 51342 return 0; 51343 } 51344 _ACEOF 51345 if ac_fn_cxx_try_run "$LINENO"; then : 51346 ac_cv_c_bigendian=no 51347 else 51348 ac_cv_c_bigendian=yes 51349 fi 51350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 51351 conftest.$ac_objext conftest.beam conftest.$ac_ext 51352 fi 51353 51354 fi 51355 fi 51356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 51357 $as_echo "$ac_cv_c_bigendian" >&6; } 51358 case $ac_cv_c_bigendian in #( 51359 yes) 51360 ENDIAN="big";; #( 51361 no) 51362 ENDIAN="little" ;; #( 51363 universal) 51364 ENDIAN="universal_endianness" 51365 ;; #( 51366 *) 51367 ENDIAN="unknown" ;; 51368 esac 51369 51370 51371 if test "x$ENDIAN" = xuniversal_endianness; then 51372 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 51373 fi 51374 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 51375 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 51376 fi 51377 51378 51379 # Configure flags for the tools 51380 51381 ############################################################################### 51382 # 51383 # How to compile shared libraries. 51384 # 51385 51386 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51387 PICFLAG="-fPIC" 51388 C_FLAG_REORDER='' 51389 CXX_FLAG_REORDER='' 51390 51391 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51392 # Linking is different on MacOSX 51393 if test "x$STATIC_BUILD" = xtrue; then 51394 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 51395 else 51396 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51397 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51398 fi 51399 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51400 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51401 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51402 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51403 else 51404 # Default works for linux, might work on other platforms as well. 51405 SHARED_LIBRARY_FLAGS='-shared' 51406 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51407 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51408 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51409 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51410 fi 51411 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51412 C_FLAG_REORDER='' 51413 CXX_FLAG_REORDER='' 51414 51415 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51416 # Linking is different on MacOSX 51417 PICFLAG='' 51418 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51419 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51420 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51421 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51422 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51423 51424 if test "x$STATIC_BUILD" = xfalse; then 51425 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 51426 fi 51427 else 51428 # Default works for linux, might work on other platforms as well. 51429 PICFLAG='-fPIC' 51430 SHARED_LIBRARY_FLAGS='-shared' 51431 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51432 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51433 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51434 51435 # arm specific settings 51436 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 51437 # '-Wl,-z,origin' isn't used on arm. 51438 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 51439 else 51440 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51441 fi 51442 51443 fi 51444 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51445 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 51446 PICFLAG="-xcode=pic32" 51447 else 51448 PICFLAG="-KPIC" 51449 fi 51450 C_FLAG_REORDER='-xF' 51451 CXX_FLAG_REORDER='-xF' 51452 SHARED_LIBRARY_FLAGS="-G" 51453 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 51454 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51455 SET_SHARED_LIBRARY_NAME='-h $1' 51456 SET_SHARED_LIBRARY_MAPFILE='-M$1' 51457 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51458 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 51459 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 51460 # will have to patch this single instruction with a call to some out-of-order code which 51461 # does the load from the TOC. This is of course slow. But in that case we also would have 51462 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 51463 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 51464 # can be patched directly by the linker and does not require a jump to out-of-order code. 51465 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 51466 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 51467 # loads for accessing a global variable). But there are rumors that this may be seen as a 51468 # 'performance feature' because of improved code locality of the symbols used in a 51469 # compilation unit. 51470 PICFLAG="-qpic" 51471 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51472 C_FLAG_REORDER='' 51473 CXX_FLAG_REORDER='' 51474 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 51475 SET_EXECUTABLE_ORIGIN="" 51476 SET_SHARED_LIBRARY_ORIGIN='' 51477 SET_SHARED_LIBRARY_NAME='' 51478 SET_SHARED_LIBRARY_MAPFILE='' 51479 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51480 PICFLAG="" 51481 C_FLAG_REORDER='' 51482 CXX_FLAG_REORDER='' 51483 SHARED_LIBRARY_FLAGS="-dll" 51484 SET_EXECUTABLE_ORIGIN='' 51485 SET_SHARED_LIBRARY_ORIGIN='' 51486 SET_SHARED_LIBRARY_NAME='' 51487 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 51488 fi 51489 51490 51491 51492 51493 51494 51495 51496 51497 51498 # The (cross) compiler is now configured, we can now test capabilities 51499 # of the target platform. 51500 51501 51502 51503 ############################################################################### 51504 # 51505 # Setup the opt flags for different compilers 51506 # and different operating systems. 51507 # 51508 51509 # FIXME: this was indirectly the old default, but just inherited. 51510 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51511 # C_FLAG_DEPS="-MMD -MF" 51512 # fi 51513 51514 # Generate make dependency files 51515 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51516 C_FLAG_DEPS="-MMD -MF" 51517 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51518 C_FLAG_DEPS="-MMD -MF" 51519 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51520 C_FLAG_DEPS="-xMMD -xMF" 51521 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51522 C_FLAG_DEPS="-qmakedep=gcc -MF" 51523 fi 51524 CXX_FLAG_DEPS="$C_FLAG_DEPS" 51525 51526 51527 51528 # Debug symbols 51529 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51530 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 51531 # reduce from default "-g2" option to save space 51532 CFLAGS_DEBUG_SYMBOLS="-g1" 51533 CXXFLAGS_DEBUG_SYMBOLS="-g1" 51534 else 51535 CFLAGS_DEBUG_SYMBOLS="-g" 51536 CXXFLAGS_DEBUG_SYMBOLS="-g" 51537 fi 51538 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51539 CFLAGS_DEBUG_SYMBOLS="-g" 51540 CXXFLAGS_DEBUG_SYMBOLS="-g" 51541 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51542 CFLAGS_DEBUG_SYMBOLS="-g -xs" 51543 # -g0 enables debug symbols without disabling inlining. 51544 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 51545 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51546 CFLAGS_DEBUG_SYMBOLS="-g" 51547 CXXFLAGS_DEBUG_SYMBOLS="-g" 51548 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51549 CFLAGS_DEBUG_SYMBOLS="-Zi" 51550 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 51551 fi 51552 51553 51554 51555 # Debug symbols for JVM_CFLAGS 51556 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51557 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 51558 if test "x$DEBUG_LEVEL" = xslowdebug; then 51559 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51560 else 51561 # -g0 does not disable inlining, which -g does. 51562 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 51563 fi 51564 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51565 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 51566 else 51567 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51568 fi 51569 51570 51571 # bounds, memory and behavior checking options 51572 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51573 case $DEBUG_LEVEL in 51574 release ) 51575 # no adjustment 51576 ;; 51577 fastdebug ) 51578 # no adjustment 51579 ;; 51580 slowdebug ) 51581 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 51582 # get's added conditionally on whether we produce debug symbols or not. 51583 # This is most likely not really correct. 51584 51585 # Add runtime stack smashing and undefined behavior checks. 51586 # Not all versions of gcc support -fstack-protector 51587 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 51588 51589 51590 51591 51592 51593 51594 51595 51596 51597 51598 51599 51600 51601 51602 51603 51604 51605 51606 51607 51608 51609 51610 51611 51612 51613 51614 51615 51616 51617 51618 51619 51620 51621 51622 51623 51624 51625 51626 51627 51628 51629 51630 # Execute function body 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 51675 51676 51677 51678 51679 # Execute function body 51680 51681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51682 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51683 supports=yes 51684 51685 saved_cflags="$CFLAGS" 51686 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 51687 ac_ext=c 51688 ac_cpp='$CPP $CPPFLAGS' 51689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51691 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51692 51693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51694 /* end confdefs.h. */ 51695 int i; 51696 _ACEOF 51697 if ac_fn_c_try_compile "$LINENO"; then : 51698 51699 else 51700 supports=no 51701 fi 51702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51703 ac_ext=cpp 51704 ac_cpp='$CXXCPP $CPPFLAGS' 51705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51708 51709 CFLAGS="$saved_cflags" 51710 51711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51712 $as_echo "$supports" >&6; } 51713 if test "x$supports" = "xyes" ; then 51714 : 51715 C_COMP_SUPPORTS="yes" 51716 else 51717 : 51718 C_COMP_SUPPORTS="no" 51719 fi 51720 51721 51722 51723 51724 51725 51726 51727 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 51742 51743 51744 51745 51746 51747 51748 51749 51750 51751 51752 51753 51754 51755 51756 51757 51758 51759 51760 51761 51762 51763 51764 51765 51766 51767 51768 51769 51770 51771 51772 51773 51774 51775 51776 51777 51778 51779 # Execute function body 51780 51781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51782 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51783 supports=yes 51784 51785 saved_cxxflags="$CXXFLAGS" 51786 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 51787 ac_ext=cpp 51788 ac_cpp='$CXXCPP $CPPFLAGS' 51789 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51790 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51791 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51792 51793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51794 /* end confdefs.h. */ 51795 int i; 51796 _ACEOF 51797 if ac_fn_cxx_try_compile "$LINENO"; then : 51798 51799 else 51800 supports=no 51801 fi 51802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51803 ac_ext=cpp 51804 ac_cpp='$CXXCPP $CPPFLAGS' 51805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51808 51809 CXXFLAGS="$saved_cxxflags" 51810 51811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51812 $as_echo "$supports" >&6; } 51813 if test "x$supports" = "xyes" ; then 51814 : 51815 CXX_COMP_SUPPORTS="yes" 51816 else 51817 : 51818 CXX_COMP_SUPPORTS="no" 51819 fi 51820 51821 51822 51823 51824 51825 51826 51827 51828 51829 51830 51831 51832 51833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51834 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51835 supports=no 51836 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51837 51838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51839 $as_echo "$supports" >&6; } 51840 if test "x$supports" = "xyes" ; then 51841 : 51842 51843 else 51844 : 51845 STACK_PROTECTOR_CFLAG="" 51846 fi 51847 51848 51849 51850 51851 51852 51853 51854 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51855 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51856 if test "x$STACK_PROTECTOR_CFLAG" != x; then 51857 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51858 fi 51859 ;; 51860 esac 51861 fi 51862 51863 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51864 if test "x$DEBUG_LEVEL" != xrelease; then 51865 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51866 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 51867 fi 51868 fi 51869 fi 51870 51871 # Optimization levels 51872 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51873 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 51874 51875 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 51876 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 51877 C_O_FLAG_HIGHEST_JVM="-xO4" 51878 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 51879 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 51880 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 51881 C_O_FLAG_DEBUG="-xregs=no%frameptr" 51882 C_O_FLAG_DEBUG_JVM="" 51883 C_O_FLAG_NONE="-xregs=no%frameptr" 51884 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51885 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 51886 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 51887 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 51888 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 51889 CXX_O_FLAG_DEBUG_JVM="" 51890 CXX_O_FLAG_NONE="-xregs=no%frameptr" 51891 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51892 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 51893 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 51894 fi 51895 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51896 C_O_FLAG_HIGHEST_JVM="-xO4" 51897 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 51898 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51899 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51900 C_O_FLAG_DEBUG="" 51901 C_O_FLAG_DEBUG_JVM="" 51902 C_O_FLAG_NONE="" 51903 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51904 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 51905 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51906 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51907 CXX_O_FLAG_DEBUG="" 51908 CXX_O_FLAG_DEBUG_JVM="" 51909 CXX_O_FLAG_NONE="" 51910 fi 51911 else 51912 # The remaining toolchains share opt flags between CC and CXX; 51913 # setup for C and duplicate afterwards. 51914 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51915 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51916 # On MacOSX we optimize for size, something 51917 # we should do for all platforms? 51918 C_O_FLAG_HIGHEST_JVM="-Os" 51919 C_O_FLAG_HIGHEST="-Os" 51920 C_O_FLAG_HI="-Os" 51921 C_O_FLAG_NORM="-Os" 51922 C_O_FLAG_SIZE="-Os" 51923 else 51924 C_O_FLAG_HIGHEST_JVM="-O3" 51925 C_O_FLAG_HIGHEST="-O3" 51926 C_O_FLAG_HI="-O3" 51927 C_O_FLAG_NORM="-O2" 51928 C_O_FLAG_SIZE="-Os" 51929 fi 51930 C_O_FLAG_DEBUG="-O0" 51931 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51932 C_O_FLAG_DEBUG_JVM="" 51933 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51934 C_O_FLAG_DEBUG_JVM="-O0" 51935 fi 51936 C_O_FLAG_NONE="-O0" 51937 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51938 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51939 # On MacOSX we optimize for size, something 51940 # we should do for all platforms? 51941 C_O_FLAG_HIGHEST_JVM="-Os" 51942 C_O_FLAG_HIGHEST="-Os" 51943 C_O_FLAG_HI="-Os" 51944 C_O_FLAG_NORM="-Os" 51945 C_O_FLAG_SIZE="-Os" 51946 else 51947 C_O_FLAG_HIGHEST_JVM="-O3" 51948 C_O_FLAG_HIGHEST="-O3" 51949 C_O_FLAG_HI="-O3" 51950 C_O_FLAG_NORM="-O2" 51951 C_O_FLAG_SIZE="-Os" 51952 fi 51953 C_O_FLAG_DEBUG="-O0" 51954 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51955 C_O_FLAG_DEBUG_JVM="" 51956 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51957 C_O_FLAG_DEBUG_JVM="-O0" 51958 fi 51959 C_O_FLAG_NONE="-O0" 51960 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51961 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 51962 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 51963 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51964 C_O_FLAG_NORM="-O2" 51965 C_O_FLAG_DEBUG="-qnoopt" 51966 # FIXME: Value below not verified. 51967 C_O_FLAG_DEBUG_JVM="" 51968 C_O_FLAG_NONE="-qnoopt" 51969 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51970 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51971 C_O_FLAG_HIGHEST="-O2" 51972 C_O_FLAG_HI="-O1" 51973 C_O_FLAG_NORM="-O1" 51974 C_O_FLAG_DEBUG="-Od" 51975 C_O_FLAG_DEBUG_JVM="" 51976 C_O_FLAG_NONE="-Od" 51977 C_O_FLAG_SIZE="-Os" 51978 fi 51979 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51980 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51981 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51982 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51983 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51984 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51985 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51986 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51987 fi 51988 51989 # Adjust optimization flags according to debug level. 51990 case $DEBUG_LEVEL in 51991 release ) 51992 # no adjustment 51993 ;; 51994 fastdebug ) 51995 # Not quite so much optimization 51996 C_O_FLAG_HI="$C_O_FLAG_NORM" 51997 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51998 ;; 51999 slowdebug ) 52000 # Disable optimization 52001 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 52002 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 52003 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 52004 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 52005 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 52006 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 52007 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 52008 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 52009 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 52010 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 52011 ;; 52012 esac 52013 52014 52015 52016 52017 52018 52019 52020 52021 52022 52023 52024 52025 52026 52027 52028 52029 52030 52031 52032 52033 # Check whether --with-abi-profile was given. 52034 if test "${with_abi_profile+set}" = set; then : 52035 withval=$with_abi_profile; 52036 fi 52037 52038 52039 if test "x$with_abi_profile" != x; then 52040 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 52041 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 52042 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 52043 fi 52044 52045 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 52046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 52047 $as_echo_n "checking for ABI profle... " >&6; } 52048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 52049 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 52050 52051 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 52052 ARM_FLOAT_TYPE=vfp-sflt 52053 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 52054 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 52055 ARM_FLOAT_TYPE=vfp-hflt 52056 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 52057 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 52058 ARM_FLOAT_TYPE=sflt 52059 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 52060 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 52061 ARM_FLOAT_TYPE=vfp-sflt 52062 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 52063 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 52064 ARM_FLOAT_TYPE=vfp-hflt 52065 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 52066 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 52067 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 52068 ARM_FLOAT_TYPE= 52069 ARM_ARCH_TYPE_FLAGS= 52070 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 52071 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 52072 ARM_FLOAT_TYPE= 52073 ARM_ARCH_TYPE_FLAGS= 52074 else 52075 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 52076 fi 52077 52078 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 52079 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 52080 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 52081 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 52082 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 52083 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 52084 fi 52085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 52086 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 52087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 52088 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 52089 52090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 52091 $as_echo_n "checking for arch type flags... " >&6; } 52092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 52093 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 52094 52095 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 52096 # autoconf target triplet. 52097 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 52098 # Sanity check that it is a known ABI. 52099 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 52100 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 52101 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 52102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 52103 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 52104 fi 52105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 52106 $as_echo_n "checking for ABI property name... " >&6; } 52107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 52108 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 52109 52110 52111 # Pass these on to the open part of configure as if they were set using 52112 # --with-extra-c[xx]flags. 52113 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52114 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52115 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 52116 # FIXME: This should not really be set using extra_cflags. 52117 if test "x$OPENJDK_TARGET_CPU" = xarm; then 52118 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 52119 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 52120 fi 52121 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 52122 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 52123 # And pass the architecture flags to the linker as well 52124 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52125 fi 52126 52127 # When building with an abi profile, the name of that profile is appended on the 52128 # bundle platform, which is used in bundle names. 52129 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 52130 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 52131 fi 52132 52133 52134 # Optional POSIX functionality needed by the JVM 52135 # 52136 # Check if clock_gettime is available and in which library. This indicates 52137 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 52138 # don't let it update LIBS. 52139 save_LIBS="$LIBS" 52140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 52141 $as_echo_n "checking for library containing clock_gettime... " >&6; } 52142 if ${ac_cv_search_clock_gettime+:} false; then : 52143 $as_echo_n "(cached) " >&6 52144 else 52145 ac_func_search_save_LIBS=$LIBS 52146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52147 /* end confdefs.h. */ 52148 52149 /* Override any GCC internal prototype to avoid an error. 52150 Use char because int might match the return type of a GCC 52151 builtin and then its argument prototype would still apply. */ 52152 #ifdef __cplusplus 52153 extern "C" 52154 #endif 52155 char clock_gettime (); 52156 int 52157 main () 52158 { 52159 return clock_gettime (); 52160 ; 52161 return 0; 52162 } 52163 _ACEOF 52164 for ac_lib in '' rt; do 52165 if test -z "$ac_lib"; then 52166 ac_res="none required" 52167 else 52168 ac_res=-l$ac_lib 52169 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 52170 fi 52171 if ac_fn_cxx_try_link "$LINENO"; then : 52172 ac_cv_search_clock_gettime=$ac_res 52173 fi 52174 rm -f core conftest.err conftest.$ac_objext \ 52175 conftest$ac_exeext 52176 if ${ac_cv_search_clock_gettime+:} false; then : 52177 break 52178 fi 52179 done 52180 if ${ac_cv_search_clock_gettime+:} false; then : 52181 52182 else 52183 ac_cv_search_clock_gettime=no 52184 fi 52185 rm conftest.$ac_ext 52186 LIBS=$ac_func_search_save_LIBS 52187 fi 52188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 52189 $as_echo "$ac_cv_search_clock_gettime" >&6; } 52190 ac_res=$ac_cv_search_clock_gettime 52191 if test "$ac_res" != no; then : 52192 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 52193 HAS_CLOCK_GETTIME=true 52194 fi 52195 52196 if test "x$LIBS" = "x-lrt "; then 52197 CLOCK_GETTIME_IN_LIBRT=true 52198 fi 52199 LIBS="$save_LIBS" 52200 52201 52202 # Special extras... 52203 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52204 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52205 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52206 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52207 fi 52208 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52209 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52210 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52211 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52212 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52213 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52214 CXXSTD_CXXFLAG="-std=gnu++98" 52215 52216 52217 52218 52219 52220 52221 52222 52223 52224 52225 52226 52227 52228 52229 52230 52231 52232 52233 52234 52235 52236 52237 52238 52239 52240 52241 52242 52243 52244 52245 52246 52247 52248 52249 52250 52251 52252 52253 52254 52255 52256 52257 # Execute function body 52258 52259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 52260 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 52261 supports=yes 52262 52263 saved_cxxflags="$CXXFLAGS" 52264 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 52265 ac_ext=cpp 52266 ac_cpp='$CXXCPP $CPPFLAGS' 52267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52270 52271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52272 /* end confdefs.h. */ 52273 int i; 52274 _ACEOF 52275 if ac_fn_cxx_try_compile "$LINENO"; then : 52276 52277 else 52278 supports=no 52279 fi 52280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52281 ac_ext=cpp 52282 ac_cpp='$CXXCPP $CPPFLAGS' 52283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52286 52287 CXXFLAGS="$saved_cxxflags" 52288 52289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52290 $as_echo "$supports" >&6; } 52291 if test "x$supports" = "xyes" ; then 52292 : 52293 52294 else 52295 : 52296 CXXSTD_CXXFLAG="" 52297 fi 52298 52299 52300 52301 52302 52303 52304 52305 52306 52307 52308 52309 52310 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 52311 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 52312 52313 fi 52314 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52315 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 52316 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 52317 fi 52318 52319 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 52320 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 52321 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 52322 52323 ############################################################################### 52324 # 52325 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52326 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52327 # 52328 52329 # Setup compiler/platform specific flags into 52330 # CFLAGS_JDK - C Compiler flags 52331 # CXXFLAGS_JDK - C++ Compiler flags 52332 # COMMON_CCXXFLAGS_JDK - common to C and C++ 52333 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52334 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52335 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52336 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 52337 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52338 # Force compatibility with i586 on 32 bit intel platforms. 52339 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52340 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52341 fi 52342 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52343 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52344 case $OPENJDK_TARGET_CPU_ARCH in 52345 arm ) 52346 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52347 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52348 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 52349 ;; 52350 ppc ) 52351 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52352 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52353 ;; 52354 s390 ) 52355 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52356 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52357 ;; 52358 * ) 52359 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52360 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52361 ;; 52362 esac 52363 52364 52365 52366 52367 52368 52369 52370 52371 52372 52373 52374 52375 52376 52377 52378 52379 52380 52381 52382 52383 52384 52385 52386 52387 52388 52389 52390 52391 52392 52393 52394 52395 52396 52397 52398 52399 52400 52401 52402 52403 52404 52405 52406 52407 52408 52409 52410 52411 52412 52413 52414 52415 52416 52417 # Execute function body 52418 52419 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52420 REFERENCE_VERSION=6 52421 52422 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52423 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52424 fi 52425 52426 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52427 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52428 fi 52429 52430 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52431 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52432 52433 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52434 : 52435 52436 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52437 # runs afoul of the more aggressive versions of these optimisations. 52438 # Notably, value range propagation now assumes that the this pointer of C++ 52439 # member functions is non-null. 52440 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52441 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52442 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52443 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52444 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52445 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52446 52447 else 52448 : 52449 52450 fi 52451 52452 52453 52454 52455 52456 52457 52458 52459 52460 52461 52462 52463 52464 52465 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52466 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52467 52468 # Restrict the debug information created by Clang to avoid 52469 # too big object files and speed the build up a little bit 52470 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52471 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 52472 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52473 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52474 # Force compatibility with i586 on 32 bit intel platforms. 52475 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52476 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52477 fi 52478 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 52479 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52480 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52481 case $OPENJDK_TARGET_CPU_ARCH in 52482 ppc ) 52483 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52484 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52485 ;; 52486 * ) 52487 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52488 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52489 ;; 52490 esac 52491 fi 52492 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52493 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 52494 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52495 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 52496 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 52497 fi 52498 52499 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52500 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52501 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52502 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52503 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52504 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52505 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52506 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 52507 -MD -Zc:wchar_t- -W3 -wd4800 \ 52508 -DWIN32_LEAN_AND_MEAN \ 52509 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52510 -DWIN32 -DIAL" 52511 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52512 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52513 else 52514 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52515 fi 52516 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52517 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52518 # studio. 52519 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52520 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52521 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52522 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52523 fi 52524 fi 52525 52526 ############################################################################### 52527 52528 # Adjust flags according to debug level. 52529 case $DEBUG_LEVEL in 52530 fastdebug | slowdebug ) 52531 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52532 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52533 ;; 52534 release ) 52535 ;; 52536 * ) 52537 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52538 ;; 52539 esac 52540 52541 # Set some common defines. These works for all compilers, but assume 52542 # -D is universally accepted. 52543 52544 # Setup endianness 52545 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52546 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52547 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52548 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52549 # Note: -Dmacro is the same as #define macro 1 52550 # -Dmacro= is the same as #define macro 52551 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52552 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52553 else 52554 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52555 fi 52556 else 52557 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52558 # are defined in the system? 52559 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52560 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52561 else 52562 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52563 fi 52564 fi 52565 52566 # Always enable optional macros for VM. 52567 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52568 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52569 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52570 52571 # Setup target OS define. Use OS target name but in upper case. 52572 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52573 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 52574 52575 # Setup target CPU 52576 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52577 $OPENJDK_TARGET_ADD_LP64 \ 52578 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 52579 52580 # Setup debug/release defines 52581 if test "x$DEBUG_LEVEL" = xrelease; then 52582 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 52583 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52584 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 52585 fi 52586 else 52587 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 52588 fi 52589 52590 # Optional POSIX functionality needed by the VM 52591 52592 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52593 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52594 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52595 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 52596 fi 52597 fi 52598 52599 52600 # Set some additional per-OS defines. 52601 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52602 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 52603 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52604 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52605 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52606 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 52607 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52608 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52609 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52610 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52611 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 52612 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52613 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52614 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52615 -fno-omit-frame-pointer" 52616 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52617 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 52618 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 52619 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52620 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52621 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52622 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52623 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52624 if test "x$DEBUG_LEVEL" = xslowdebug; then 52625 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 52626 fi 52627 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52628 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52629 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52630 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52631 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 52632 fi 52633 52634 # Set some additional per-CPU defines. 52635 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 52636 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 52637 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 52638 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 52639 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 52640 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52641 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52642 # fixes `relocation truncated to fit' error for gcc 4.1. 52643 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 52644 # Use ppc64 instructions, but schedule for power5 52645 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52646 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52647 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 52648 fi 52649 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 52650 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52651 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52652 # Little endian machine uses ELFv2 ABI. 52653 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 52654 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52655 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 52656 fi 52657 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 52658 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52659 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 52660 fi 52661 fi 52662 52663 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52664 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52665 fi 52666 52667 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 52668 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 52669 # Solaris does not have _LP64=1 in the old build. 52670 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52671 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 52672 fi 52673 fi 52674 52675 # Set JVM_CFLAGS warning handling 52676 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52677 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52678 -Wunused-value -Woverloaded-virtual" 52679 52680 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52681 52682 52683 52684 52685 52686 52687 52688 52689 52690 52691 52692 52693 52694 52695 52696 52697 52698 52699 52700 52701 52702 52703 52704 52705 52706 52707 52708 52709 52710 52711 52712 52713 52714 52715 52716 52717 52718 52719 52720 52721 52722 52723 52724 52725 52726 52727 52728 52729 52730 52731 52732 52733 52734 52735 # Execute function body 52736 52737 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52738 REFERENCE_VERSION=4.8 52739 52740 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52741 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52742 fi 52743 52744 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52745 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52746 fi 52747 52748 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52749 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52750 52751 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52752 : 52753 52754 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52755 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52756 52757 52758 else 52759 : 52760 52761 fi 52762 52763 52764 52765 52766 52767 52768 52769 52770 52771 52772 52773 52774 52775 52776 fi 52777 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 52778 # Non-zero builds have stricter warnings 52779 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52780 else 52781 if test "x$TOOLCHAIN_TYPE" = xclang; then 52782 # Some versions of llvm do not like -Wundef 52783 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 52784 fi 52785 fi 52786 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52787 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52788 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52789 fi 52790 52791 # Additional macosx handling 52792 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52793 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52794 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52795 # JDK can be built and makes the linked binaries compatible even if built on 52796 # a newer version of the OS. 52797 MACOSX_VERSION_MIN=10.7.0 52798 52799 52800 # Setting --with-macosx-version-max=<version> makes it an error to build or 52801 # link to macosx APIs that are newer than the given OS version. The expected 52802 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52803 52804 # Check whether --with-macosx-version-max was given. 52805 if test "${with_macosx_version_max+set}" = set; then : 52806 withval=$with_macosx_version_max; 52807 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52808 MACOSX_VERSION_MAX=$with_macosx_version_max 52809 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52810 MACOSX_VERSION_MAX=$with_macosx_version_max 52811 elif test "x$with_macosx_version_max" = "xno"; then 52812 # Use build system default 52813 MACOSX_VERSION_MAX= 52814 else 52815 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52816 fi 52817 52818 else 52819 MACOSX_VERSION_MAX= 52820 52821 fi 52822 52823 52824 52825 # Let the flags variables get resolved in make for easier override on make 52826 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52827 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52828 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52829 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52830 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52831 JVM_CFLAGS="$JVM_CFLAGS \ 52832 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52833 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52834 52835 if test -n "$MACOSX_VERSION_MAX"; then 52836 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52837 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52838 JVM_CFLAGS="$JVM_CFLAGS \ 52839 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52840 fi 52841 fi 52842 52843 # Setup some hard coded includes 52844 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52845 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52846 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base/\$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \ 52847 -I${TOPDIR}/src/java.base/share/native/libjava \ 52848 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava \ 52849 -I${TOPDIR}/src/hotspot/share/include \ 52850 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_TARGET_OS_TYPE}/include" 52851 52852 # The shared libraries are compiled using the picflag. 52853 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52854 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 52855 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52856 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 52857 52858 # Executable flags 52859 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 52860 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 52861 52862 52863 52864 52865 52866 52867 # Setup LDFLAGS et al. 52868 # 52869 52870 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52871 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52872 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52873 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52874 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 52875 LDFLAGS_SAFESH="-safeseh" 52876 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 52877 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 52878 # NOTE: Old build added -machine. Probably not needed. 52879 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 52880 else 52881 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 52882 fi 52883 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52884 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52885 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52886 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52887 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52888 fi 52889 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52890 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52891 # We have previously set HAS_GNU_HASH if this is the case 52892 if test -n "$HAS_GNU_HASH"; then 52893 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52894 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 52895 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 52896 fi 52897 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52898 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52899 fi 52900 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52901 # And since we now know that the linker is gnu, then add -z defs, to forbid 52902 # undefined symbols in object files. 52903 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52904 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52905 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52906 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52907 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52908 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52909 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 52910 fi 52911 case $DEBUG_LEVEL in 52912 release ) 52913 # tell linker to optimize libraries. 52914 # Should this be supplied to the OSS linker as well? 52915 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52916 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52917 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52918 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52919 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52920 fi 52921 ;; 52922 slowdebug ) 52923 # Hotspot always let the linker optimize 52924 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52925 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52926 # do relocations at load 52927 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 52928 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52929 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 52930 fi 52931 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52932 # mark relocations read only 52933 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52934 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52935 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52936 fi 52937 ;; 52938 fastdebug ) 52939 # Hotspot always let the linker optimize 52940 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52941 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52942 # mark relocations read only 52943 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52944 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52945 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52946 fi 52947 ;; 52948 * ) 52949 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52950 ;; 52951 esac 52952 fi 52953 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52954 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52955 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52956 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52957 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52958 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52959 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52960 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 52961 fi 52962 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52963 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 52964 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52965 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52966 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52967 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52968 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52969 if test "x$DEBUG_LEVEL" = xslowdebug; then 52970 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52971 fi 52972 fi 52973 52974 # Customize LDFLAGS for executables 52975 52976 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52977 52978 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52979 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52980 LDFLAGS_STACK_SIZE=1048576 52981 else 52982 LDFLAGS_STACK_SIZE=327680 52983 fi 52984 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52985 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52986 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52987 fi 52988 52989 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52990 52991 # Customize LDFLAGS for libs 52992 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52993 52994 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52995 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52996 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52997 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52998 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 52999 JDKLIB_LIBS="" 53000 else 53001 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53002 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53003 53004 if test "xTARGET" = "xTARGET"; then 53005 # On some platforms (mac) the linker warns about non existing -L dirs. 53006 # For any of the variants server, client or minimal, the dir matches the 53007 # variant name. The "main" variant should be used for linking. For the 53008 # rest, the dir is just server. 53009 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53010 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53011 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53012 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53013 else 53014 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53015 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53016 fi 53017 elif test "xTARGET" = "xBUILD"; then 53018 # When building a buildjdk, it's always only the server variant 53019 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 53020 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53021 fi 53022 53023 JDKLIB_LIBS="-ljava -ljvm" 53024 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53025 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 53026 fi 53027 53028 fi 53029 53030 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 53031 53032 # Set JVM_LIBS (per os) 53033 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53034 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 53035 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 53036 # FIXME: This hard-coded path is not really proper. 53037 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 53038 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53039 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 53040 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53041 fi 53042 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53043 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53044 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 53045 JVM_LIBS="$JVM_LIBS -lm" 53046 elif test "x$OPENJDK_TARGET_OS" = xaix; then 53047 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53048 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 53049 JVM_LIBS="$JVM_LIBS -lm" 53050 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 53051 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53052 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53053 wsock32.lib winmm.lib version.lib psapi.lib" 53054 fi 53055 53056 # Set JVM_ASFLAGS 53057 if test "x$OPENJDK_TARGET_OS" = xlinux; then 53058 if test "x$OPENJDK_TARGET_CPU" = xx86; then 53059 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 53060 fi 53061 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 53062 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53063 fi 53064 53065 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 53066 53067 53068 53069 53070 53071 53072 53073 53074 53075 53076 53077 53078 53079 53080 53081 53082 # Special extras... 53083 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53084 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53085 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 53086 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 53087 fi 53088 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53089 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53090 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53091 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53092 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53093 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53094 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 53095 53096 53097 53098 53099 53100 53101 53102 53103 53104 53105 53106 53107 53108 53109 53110 53111 53112 53113 53114 53115 53116 53117 53118 53119 53120 53121 53122 53123 53124 53125 53126 53127 53128 53129 53130 53131 53132 53133 53134 53135 53136 53137 # Execute function body 53138 53139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 53140 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 53141 supports=yes 53142 53143 saved_cxxflags="$CXXFLAGS" 53144 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 53145 ac_ext=cpp 53146 ac_cpp='$CXXCPP $CPPFLAGS' 53147 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53148 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53149 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53150 53151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53152 /* end confdefs.h. */ 53153 int i; 53154 _ACEOF 53155 if ac_fn_cxx_try_compile "$LINENO"; then : 53156 53157 else 53158 supports=no 53159 fi 53160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53161 ac_ext=cpp 53162 ac_cpp='$CXXCPP $CPPFLAGS' 53163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53166 53167 CXXFLAGS="$saved_cxxflags" 53168 53169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53170 $as_echo "$supports" >&6; } 53171 if test "x$supports" = "xyes" ; then 53172 : 53173 53174 else 53175 : 53176 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 53177 fi 53178 53179 53180 53181 53182 53183 53184 53185 53186 53187 53188 53189 53190 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53191 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53192 53193 fi 53194 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 53195 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 53196 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 53197 fi 53198 53199 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 53200 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 53201 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 53202 53203 ############################################################################### 53204 # 53205 # Now setup the CFLAGS and LDFLAGS for the JDK build. 53206 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 53207 # 53208 53209 # Setup compiler/platform specific flags into 53210 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 53211 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 53212 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 53213 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53214 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53215 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53216 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 53217 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53218 # Force compatibility with i586 on 32 bit intel platforms. 53219 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53220 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53221 fi 53222 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53223 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53224 case $OPENJDK_BUILD_CPU_ARCH in 53225 arm ) 53226 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53227 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53228 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 53229 ;; 53230 ppc ) 53231 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53232 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53233 ;; 53234 s390 ) 53235 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 53236 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53237 ;; 53238 * ) 53239 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53240 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53241 ;; 53242 esac 53243 53244 53245 53246 53247 53248 53249 53250 53251 53252 53253 53254 53255 53256 53257 53258 53259 53260 53261 53262 53263 53264 53265 53266 53267 53268 53269 53270 53271 53272 53273 53274 53275 53276 53277 53278 53279 53280 53281 53282 53283 53284 53285 53286 53287 53288 53289 53290 53291 53292 53293 53294 53295 53296 53297 # Execute function body 53298 53299 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53300 REFERENCE_VERSION=6 53301 53302 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53303 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53304 fi 53305 53306 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53307 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 53308 fi 53309 53310 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53311 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53312 53313 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53314 : 53315 53316 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 53317 # runs afoul of the more aggressive versions of these optimisations. 53318 # Notably, value range propagation now assumes that the this pointer of C++ 53319 # member functions is non-null. 53320 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 53321 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 53322 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 53323 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 53324 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53325 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53326 53327 else 53328 : 53329 53330 fi 53331 53332 53333 53334 53335 53336 53337 53338 53339 53340 53341 53342 53343 53344 53345 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53346 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53347 53348 # Restrict the debug information created by Clang to avoid 53349 # too big object files and speed the build up a little bit 53350 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 53351 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 53352 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53353 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53354 # Force compatibility with i586 on 32 bit intel platforms. 53355 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53356 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53357 fi 53358 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 53359 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53360 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53361 case $OPENJDK_BUILD_CPU_ARCH in 53362 ppc ) 53363 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53364 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53365 ;; 53366 * ) 53367 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53368 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53369 ;; 53370 esac 53371 fi 53372 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53373 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 53374 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 53375 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 53376 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 53377 fi 53378 53379 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 53380 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 53381 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53382 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53383 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53384 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53385 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53386 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53387 -MD -Zc:wchar_t- -W3 -wd4800 \ 53388 -DWIN32_LEAN_AND_MEAN \ 53389 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 53390 -DWIN32 -DIAL" 53391 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53392 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 53393 else 53394 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 53395 fi 53396 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 53397 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 53398 # studio. 53399 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 53400 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 53401 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 53402 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 53403 fi 53404 fi 53405 53406 ############################################################################### 53407 53408 # Adjust flags according to debug level. 53409 case $DEBUG_LEVEL in 53410 fastdebug | slowdebug ) 53411 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 53412 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 53413 ;; 53414 release ) 53415 ;; 53416 * ) 53417 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53418 ;; 53419 esac 53420 53421 # Set some common defines. These works for all compilers, but assume 53422 # -D is universally accepted. 53423 53424 # Setup endianness 53425 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53426 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 53427 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 53428 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 53429 # Note: -Dmacro is the same as #define macro 1 53430 # -Dmacro= is the same as #define macro 53431 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53432 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 53433 else 53434 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 53435 fi 53436 else 53437 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 53438 # are defined in the system? 53439 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53440 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 53441 else 53442 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 53443 fi 53444 fi 53445 53446 # Always enable optional macros for VM. 53447 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 53448 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 53449 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 53450 53451 # Setup target OS define. Use OS target name but in upper case. 53452 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 53453 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 53454 53455 # Setup target CPU 53456 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53457 $OPENJDK_BUILD_ADD_LP64 \ 53458 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 53459 53460 # Setup debug/release defines 53461 if test "x$DEBUG_LEVEL" = xrelease; then 53462 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 53463 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53464 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 53465 fi 53466 else 53467 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 53468 fi 53469 53470 # Optional POSIX functionality needed by the VM 53471 53472 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 53473 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 53474 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 53475 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 53476 fi 53477 fi 53478 53479 53480 # Set some additional per-OS defines. 53481 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53482 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 53483 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 53484 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 53485 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53486 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 53487 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 53488 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 53489 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53490 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 53491 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 53492 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 53493 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 53494 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 53495 -fno-omit-frame-pointer" 53496 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53497 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 53498 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 53499 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 53500 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 53501 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53502 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53503 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53504 if test "x$DEBUG_LEVEL" = xslowdebug; then 53505 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 53506 fi 53507 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53508 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 53509 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53510 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 53511 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 53512 fi 53513 53514 # Set some additional per-CPU defines. 53515 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 53516 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 53517 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 53518 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 53519 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 53520 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53521 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53522 # fixes `relocation truncated to fit' error for gcc 4.1. 53523 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 53524 # Use ppc64 instructions, but schedule for power5 53525 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 53526 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53527 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 53528 fi 53529 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 53530 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53531 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53532 # Little endian machine uses ELFv2 ABI. 53533 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 53534 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 53535 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 53536 fi 53537 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 53538 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53539 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 53540 fi 53541 fi 53542 53543 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53544 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 53545 fi 53546 53547 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 53548 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 53549 # Solaris does not have _LP64=1 in the old build. 53550 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 53551 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 53552 fi 53553 fi 53554 53555 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 53556 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53557 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 53558 -Wunused-value -Woverloaded-virtual" 53559 53560 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53561 53562 53563 53564 53565 53566 53567 53568 53569 53570 53571 53572 53573 53574 53575 53576 53577 53578 53579 53580 53581 53582 53583 53584 53585 53586 53587 53588 53589 53590 53591 53592 53593 53594 53595 53596 53597 53598 53599 53600 53601 53602 53603 53604 53605 53606 53607 53608 53609 53610 53611 53612 53613 53614 53615 # Execute function body 53616 53617 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53618 REFERENCE_VERSION=4.8 53619 53620 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53621 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53622 fi 53623 53624 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53625 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 53626 fi 53627 53628 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53629 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53630 53631 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53632 : 53633 53634 # These flags either do not work or give spurious warnings prior to gcc 4.8. 53635 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 53636 53637 53638 else 53639 : 53640 53641 fi 53642 53643 53644 53645 53646 53647 53648 53649 53650 53651 53652 53653 53654 53655 53656 fi 53657 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 53658 # Non-zero builds have stricter warnings 53659 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 53660 else 53661 if test "x$TOOLCHAIN_TYPE" = xclang; then 53662 # Some versions of llvm do not like -Wundef 53663 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 53664 fi 53665 fi 53666 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53667 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 53668 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 53669 fi 53670 53671 # Additional macosx handling 53672 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53673 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 53674 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 53675 # JDK can be built and makes the linked binaries compatible even if built on 53676 # a newer version of the OS. 53677 MACOSX_VERSION_MIN=10.7.0 53678 53679 53680 # Setting --with-macosx-version-max=<version> makes it an error to build or 53681 # link to macosx APIs that are newer than the given OS version. The expected 53682 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 53683 53684 # Check whether --with-macosx-version-max was given. 53685 if test "${with_macosx_version_max+set}" = set; then : 53686 withval=$with_macosx_version_max; 53687 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 53688 MACOSX_VERSION_MAX=$with_macosx_version_max 53689 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 53690 MACOSX_VERSION_MAX=$with_macosx_version_max 53691 elif test "x$with_macosx_version_max" = "xno"; then 53692 # Use build system default 53693 MACOSX_VERSION_MAX= 53694 else 53695 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 53696 fi 53697 53698 else 53699 MACOSX_VERSION_MAX= 53700 53701 fi 53702 53703 53704 53705 # Let the flags variables get resolved in make for easier override on make 53706 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 53707 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53708 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53709 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53710 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53711 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53712 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53713 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53714 53715 if test -n "$MACOSX_VERSION_MAX"; then 53716 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53717 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53718 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53719 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53720 fi 53721 fi 53722 53723 # Setup some hard coded includes 53724 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53725 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 53726 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base/\$(OPENJDK_TARGET_OS_INCLUDE_SUBDIR) \ 53727 -I${TOPDIR}/src/java.base/share/native/libjava \ 53728 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava \ 53729 -I${TOPDIR}/src/hotspot/share/include \ 53730 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_BUILD_OS_TYPE}/include" 53731 53732 # The shared libraries are compiled using the picflag. 53733 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53734 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 53735 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53736 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 53737 53738 # Executable flags 53739 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 53740 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 53741 53742 53743 53744 53745 53746 53747 # Setup LDFLAGS et al. 53748 # 53749 53750 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53751 LDFLAGS_MICROSOFT="-nologo -opt:ref" 53752 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 53753 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 53754 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 53755 LDFLAGS_SAFESH="-safeseh" 53756 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 53757 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 53758 # NOTE: Old build added -machine. Probably not needed. 53759 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 53760 else 53761 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 53762 fi 53763 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53764 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 53765 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53766 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 53767 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53768 fi 53769 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53770 # If this is a --hash-style=gnu system, use --hash-style=both, why? 53771 # We have previously set HAS_GNU_HASH if this is the case 53772 if test -n "$HAS_GNU_HASH"; then 53773 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 53774 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53775 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53776 fi 53777 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53778 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53779 fi 53780 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53781 # And since we now know that the linker is gnu, then add -z defs, to forbid 53782 # undefined symbols in object files. 53783 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 53784 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 53785 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 53786 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 53787 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 53788 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53789 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 53790 fi 53791 case $DEBUG_LEVEL in 53792 release ) 53793 # tell linker to optimize libraries. 53794 # Should this be supplied to the OSS linker as well? 53795 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 53796 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 53797 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 53798 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53799 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53800 fi 53801 ;; 53802 slowdebug ) 53803 # Hotspot always let the linker optimize 53804 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53805 if test "x$HAS_LINKER_NOW" = "xtrue"; then 53806 # do relocations at load 53807 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 53808 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 53809 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 53810 fi 53811 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53812 # mark relocations read only 53813 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53814 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53815 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53816 fi 53817 ;; 53818 fastdebug ) 53819 # Hotspot always let the linker optimize 53820 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53821 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53822 # mark relocations read only 53823 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53824 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53825 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53826 fi 53827 ;; 53828 * ) 53829 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53830 ;; 53831 esac 53832 fi 53833 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53834 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 53835 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 53836 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 53837 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 53838 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 53839 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53840 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 53841 fi 53842 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53843 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 53844 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 53845 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 53846 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53847 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53848 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53849 if test "x$DEBUG_LEVEL" = xslowdebug; then 53850 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 53851 fi 53852 fi 53853 53854 # Customize LDFLAGS for executables 53855 53856 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 53857 53858 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53859 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 53860 LDFLAGS_STACK_SIZE=1048576 53861 else 53862 LDFLAGS_STACK_SIZE=327680 53863 fi 53864 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 53865 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 53866 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 53867 fi 53868 53869 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53870 53871 # Customize LDFLAGS for libs 53872 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 53873 53874 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 53875 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 53876 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53877 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53878 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 53879 OPENJDK_BUILD_JDKLIB_LIBS="" 53880 else 53881 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53882 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53883 53884 if test "xBUILD" = "xTARGET"; then 53885 # On some platforms (mac) the linker warns about non existing -L dirs. 53886 # For any of the variants server, client or minimal, the dir matches the 53887 # variant name. The "main" variant should be used for linking. For the 53888 # rest, the dir is just server. 53889 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53890 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53891 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53892 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53893 else 53894 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53895 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53896 fi 53897 elif test "xBUILD" = "xBUILD"; then 53898 # When building a buildjdk, it's always only the server variant 53899 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53900 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53901 fi 53902 53903 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 53904 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53905 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 53906 fi 53907 53908 fi 53909 53910 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 53911 53912 # Set OPENJDK_BUILD_JVM_LIBS (per os) 53913 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53914 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 53915 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53916 # FIXME: This hard-coded path is not really proper. 53917 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53918 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53919 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 53920 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53921 fi 53922 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53923 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53924 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53925 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53926 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53927 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53928 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53929 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53930 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53931 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53932 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53933 wsock32.lib winmm.lib version.lib psapi.lib" 53934 fi 53935 53936 # Set OPENJDK_BUILD_JVM_ASFLAGS 53937 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53938 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53939 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53940 fi 53941 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53942 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53943 fi 53944 53945 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53946 53947 53948 53949 53950 53951 53952 53953 53954 53955 53956 53957 53958 53959 53960 53961 53962 # Tests are only ever compiled for TARGET 53963 # Flags for compiling test libraries 53964 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 53965 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53966 53967 # Flags for compiling test executables 53968 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53969 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53970 53971 53972 53973 53974 53975 53976 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53977 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53978 53979 53980 53981 53982 53983 53984 # Check that the compiler supports -mX (or -qX on AIX) flags 53985 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53986 53987 53988 53989 53990 53991 53992 53993 53994 53995 53996 53997 53998 53999 54000 54001 54002 54003 54004 54005 54006 54007 54008 54009 54010 54011 54012 54013 54014 54015 54016 54017 54018 54019 54020 54021 54022 54023 54024 54025 54026 54027 54028 54029 54030 54031 54032 54033 # Execute function body 54034 54035 54036 54037 54038 54039 54040 54041 54042 54043 54044 54045 54046 54047 54048 54049 54050 54051 54052 54053 54054 54055 54056 54057 54058 54059 54060 54061 54062 54063 54064 54065 54066 54067 54068 54069 54070 54071 54072 54073 54074 54075 54076 54077 54078 54079 54080 54081 54082 # Execute function body 54083 54084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54085 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54086 supports=yes 54087 54088 saved_cflags="$CFLAGS" 54089 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54090 ac_ext=c 54091 ac_cpp='$CPP $CPPFLAGS' 54092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54094 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54095 54096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54097 /* end confdefs.h. */ 54098 int i; 54099 _ACEOF 54100 if ac_fn_c_try_compile "$LINENO"; then : 54101 54102 else 54103 supports=no 54104 fi 54105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54106 ac_ext=cpp 54107 ac_cpp='$CXXCPP $CPPFLAGS' 54108 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54109 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54110 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54111 54112 CFLAGS="$saved_cflags" 54113 54114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54115 $as_echo "$supports" >&6; } 54116 if test "x$supports" = "xyes" ; then 54117 : 54118 C_COMP_SUPPORTS="yes" 54119 else 54120 : 54121 C_COMP_SUPPORTS="no" 54122 fi 54123 54124 54125 54126 54127 54128 54129 54130 54131 54132 54133 54134 54135 54136 54137 54138 54139 54140 54141 54142 54143 54144 54145 54146 54147 54148 54149 54150 54151 54152 54153 54154 54155 54156 54157 54158 54159 54160 54161 54162 54163 54164 54165 54166 54167 54168 54169 54170 54171 54172 54173 54174 54175 54176 54177 54178 54179 54180 54181 54182 # Execute function body 54183 54184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54185 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54186 supports=yes 54187 54188 saved_cxxflags="$CXXFLAGS" 54189 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54190 ac_ext=cpp 54191 ac_cpp='$CXXCPP $CPPFLAGS' 54192 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54193 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54194 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54195 54196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54197 /* end confdefs.h. */ 54198 int i; 54199 _ACEOF 54200 if ac_fn_cxx_try_compile "$LINENO"; then : 54201 54202 else 54203 supports=no 54204 fi 54205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54206 ac_ext=cpp 54207 ac_cpp='$CXXCPP $CPPFLAGS' 54208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54211 54212 CXXFLAGS="$saved_cxxflags" 54213 54214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54215 $as_echo "$supports" >&6; } 54216 if test "x$supports" = "xyes" ; then 54217 : 54218 CXX_COMP_SUPPORTS="yes" 54219 else 54220 : 54221 CXX_COMP_SUPPORTS="no" 54222 fi 54223 54224 54225 54226 54227 54228 54229 54230 54231 54232 54233 54234 54235 54236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54237 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54238 supports=no 54239 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54240 54241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54242 $as_echo "$supports" >&6; } 54243 if test "x$supports" = "xyes" ; then 54244 : 54245 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 54246 else 54247 : 54248 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 54249 fi 54250 54251 54252 54253 54254 54255 54256 54257 54258 # Check whether --enable-warnings-as-errors was given. 54259 if test "${enable_warnings_as_errors+set}" = set; then : 54260 enableval=$enable_warnings_as_errors; 54261 fi 54262 54263 54264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 54265 $as_echo_n "checking if native warnings are errors... " >&6; } 54266 if test "x$enable_warnings_as_errors" = "xyes"; then 54267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 54268 $as_echo "yes (explicitly set)" >&6; } 54269 WARNINGS_AS_ERRORS=true 54270 elif test "x$enable_warnings_as_errors" = "xno"; then 54271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54272 $as_echo "no" >&6; } 54273 WARNINGS_AS_ERRORS=false 54274 elif test "x$enable_warnings_as_errors" = "x"; then 54275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 54276 $as_echo "yes (default)" >&6; } 54277 WARNINGS_AS_ERRORS=true 54278 else 54279 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 54280 fi 54281 54282 54283 54284 case "${TOOLCHAIN_TYPE}" in 54285 microsoft) 54286 DISABLE_WARNING_PREFIX="-wd" 54287 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 54288 ;; 54289 solstudio) 54290 DISABLE_WARNING_PREFIX="-erroff=" 54291 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 54292 ;; 54293 gcc) 54294 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 54295 54296 54297 54298 54299 54300 54301 54302 54303 54304 54305 54306 54307 54308 54309 54310 54311 54312 54313 54314 54315 54316 54317 54318 54319 54320 54321 54322 54323 54324 54325 54326 54327 54328 54329 54330 54331 54332 54333 54334 54335 54336 54337 54338 54339 54340 54341 54342 # Execute function body 54343 54344 54345 54346 54347 54348 54349 54350 54351 54352 54353 54354 54355 54356 54357 54358 54359 54360 54361 54362 54363 54364 54365 54366 54367 54368 54369 54370 54371 54372 54373 54374 54375 54376 54377 54378 54379 54380 54381 54382 54383 54384 54385 54386 54387 54388 54389 54390 54391 # Execute function body 54392 54393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54394 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54395 supports=yes 54396 54397 saved_cflags="$CFLAGS" 54398 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54399 ac_ext=c 54400 ac_cpp='$CPP $CPPFLAGS' 54401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54403 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54404 54405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54406 /* end confdefs.h. */ 54407 int i; 54408 _ACEOF 54409 if ac_fn_c_try_compile "$LINENO"; then : 54410 54411 else 54412 supports=no 54413 fi 54414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54415 ac_ext=cpp 54416 ac_cpp='$CXXCPP $CPPFLAGS' 54417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54420 54421 CFLAGS="$saved_cflags" 54422 54423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54424 $as_echo "$supports" >&6; } 54425 if test "x$supports" = "xyes" ; then 54426 : 54427 C_COMP_SUPPORTS="yes" 54428 else 54429 : 54430 C_COMP_SUPPORTS="no" 54431 fi 54432 54433 54434 54435 54436 54437 54438 54439 54440 54441 54442 54443 54444 54445 54446 54447 54448 54449 54450 54451 54452 54453 54454 54455 54456 54457 54458 54459 54460 54461 54462 54463 54464 54465 54466 54467 54468 54469 54470 54471 54472 54473 54474 54475 54476 54477 54478 54479 54480 54481 54482 54483 54484 54485 54486 54487 54488 54489 54490 54491 # Execute function body 54492 54493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54494 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54495 supports=yes 54496 54497 saved_cxxflags="$CXXFLAGS" 54498 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54499 ac_ext=cpp 54500 ac_cpp='$CXXCPP $CPPFLAGS' 54501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54504 54505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54506 /* end confdefs.h. */ 54507 int i; 54508 _ACEOF 54509 if ac_fn_cxx_try_compile "$LINENO"; then : 54510 54511 else 54512 supports=no 54513 fi 54514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54515 ac_ext=cpp 54516 ac_cpp='$CXXCPP $CPPFLAGS' 54517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54520 54521 CXXFLAGS="$saved_cxxflags" 54522 54523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54524 $as_echo "$supports" >&6; } 54525 if test "x$supports" = "xyes" ; then 54526 : 54527 CXX_COMP_SUPPORTS="yes" 54528 else 54529 : 54530 CXX_COMP_SUPPORTS="no" 54531 fi 54532 54533 54534 54535 54536 54537 54538 54539 54540 54541 54542 54543 54544 54545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54546 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54547 supports=no 54548 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54549 54550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54551 $as_echo "$supports" >&6; } 54552 if test "x$supports" = "xyes" ; then 54553 : 54554 GCC_CAN_DISABLE_WARNINGS=true 54555 else 54556 : 54557 GCC_CAN_DISABLE_WARNINGS=false 54558 54559 fi 54560 54561 54562 54563 54564 54565 54566 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54567 DISABLE_WARNING_PREFIX="-Wno-" 54568 else 54569 DISABLE_WARNING_PREFIX= 54570 fi 54571 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54572 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 54573 # CFLAGS since any target specific flags will likely not work with the 54574 # build compiler 54575 CC_OLD="$CC" 54576 CXX_OLD="$CXX" 54577 CC="$BUILD_CC" 54578 CXX="$BUILD_CXX" 54579 CFLAGS_OLD="$CFLAGS" 54580 CFLAGS="" 54581 54582 54583 54584 54585 54586 54587 54588 54589 54590 54591 54592 54593 54594 54595 54596 54597 54598 54599 54600 54601 54602 54603 54604 54605 54606 54607 54608 54609 54610 54611 54612 54613 54614 54615 54616 54617 54618 54619 54620 54621 54622 54623 54624 54625 54626 54627 54628 # Execute function body 54629 54630 54631 54632 54633 54634 54635 54636 54637 54638 54639 54640 54641 54642 54643 54644 54645 54646 54647 54648 54649 54650 54651 54652 54653 54654 54655 54656 54657 54658 54659 54660 54661 54662 54663 54664 54665 54666 54667 54668 54669 54670 54671 54672 54673 54674 54675 54676 54677 # Execute function body 54678 54679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54680 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54681 supports=yes 54682 54683 saved_cflags="$CFLAGS" 54684 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54685 ac_ext=c 54686 ac_cpp='$CPP $CPPFLAGS' 54687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54689 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54690 54691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54692 /* end confdefs.h. */ 54693 int i; 54694 _ACEOF 54695 if ac_fn_c_try_compile "$LINENO"; then : 54696 54697 else 54698 supports=no 54699 fi 54700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54701 ac_ext=cpp 54702 ac_cpp='$CXXCPP $CPPFLAGS' 54703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54706 54707 CFLAGS="$saved_cflags" 54708 54709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54710 $as_echo "$supports" >&6; } 54711 if test "x$supports" = "xyes" ; then 54712 : 54713 C_COMP_SUPPORTS="yes" 54714 else 54715 : 54716 C_COMP_SUPPORTS="no" 54717 fi 54718 54719 54720 54721 54722 54723 54724 54725 54726 54727 54728 54729 54730 54731 54732 54733 54734 54735 54736 54737 54738 54739 54740 54741 54742 54743 54744 54745 54746 54747 54748 54749 54750 54751 54752 54753 54754 54755 54756 54757 54758 54759 54760 54761 54762 54763 54764 54765 54766 54767 54768 54769 54770 54771 54772 54773 54774 54775 54776 54777 # Execute function body 54778 54779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54780 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54781 supports=yes 54782 54783 saved_cxxflags="$CXXFLAGS" 54784 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54785 ac_ext=cpp 54786 ac_cpp='$CXXCPP $CPPFLAGS' 54787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54790 54791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54792 /* end confdefs.h. */ 54793 int i; 54794 _ACEOF 54795 if ac_fn_cxx_try_compile "$LINENO"; then : 54796 54797 else 54798 supports=no 54799 fi 54800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54801 ac_ext=cpp 54802 ac_cpp='$CXXCPP $CPPFLAGS' 54803 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54804 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54805 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54806 54807 CXXFLAGS="$saved_cxxflags" 54808 54809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54810 $as_echo "$supports" >&6; } 54811 if test "x$supports" = "xyes" ; then 54812 : 54813 CXX_COMP_SUPPORTS="yes" 54814 else 54815 : 54816 CXX_COMP_SUPPORTS="no" 54817 fi 54818 54819 54820 54821 54822 54823 54824 54825 54826 54827 54828 54829 54830 54831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54832 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54833 supports=no 54834 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54835 54836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54837 $as_echo "$supports" >&6; } 54838 if test "x$supports" = "xyes" ; then 54839 : 54840 BUILD_CC_CAN_DISABLE_WARNINGS=true 54841 else 54842 : 54843 BUILD_CC_CAN_DISABLE_WARNINGS=false 54844 54845 fi 54846 54847 54848 54849 54850 54851 54852 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54853 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 54854 else 54855 BUILD_CC_DISABLE_WARNING_PREFIX= 54856 fi 54857 CC="$CC_OLD" 54858 CXX="$CXX_OLD" 54859 CFLAGS="$CFLAGS_OLD" 54860 ;; 54861 clang) 54862 DISABLE_WARNING_PREFIX="-Wno-" 54863 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54864 ;; 54865 xlc) 54866 DISABLE_WARNING_PREFIX="-qsuppress=" 54867 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 54868 ;; 54869 esac 54870 54871 54872 54873 54874 54875 # Setup debug symbols (need objcopy from the toolchain for that) 54876 54877 # 54878 # NATIVE_DEBUG_SYMBOLS 54879 # This must be done after the toolchain is setup, since we're looking at objcopy. 54880 # 54881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 54882 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 54883 54884 # Check whether --with-native-debug-symbols was given. 54885 if test "${with_native_debug_symbols+set}" = set; then : 54886 withval=$with_native_debug_symbols; 54887 if test "x$OPENJDK_TARGET_OS" = xaix; then 54888 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 54889 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 54890 fi 54891 fi 54892 54893 else 54894 54895 if test "x$OPENJDK_TARGET_OS" = xaix; then 54896 # AIX doesn't support 'external' so use 'internal' as default 54897 with_native_debug_symbols="internal" 54898 else 54899 if test "x$STATIC_BUILD" = xtrue; then 54900 with_native_debug_symbols="none" 54901 else 54902 with_native_debug_symbols="external" 54903 fi 54904 fi 54905 54906 fi 54907 54908 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 54909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 54910 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 54911 54912 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 54913 54914 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54915 if test "x$OBJCOPY" = x; then 54916 # enabling of enable-debug-symbols and can't find objcopy 54917 # this is an error 54918 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54919 fi 54920 fi 54921 54922 COMPILE_WITH_DEBUG_SYMBOLS=true 54923 COPY_DEBUG_SYMBOLS=true 54924 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 54925 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 54926 COMPILE_WITH_DEBUG_SYMBOLS=false 54927 COPY_DEBUG_SYMBOLS=false 54928 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54929 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 54930 COMPILE_WITH_DEBUG_SYMBOLS=true 54931 COPY_DEBUG_SYMBOLS=false 54932 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54933 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 54934 54935 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54936 if test "x$OBJCOPY" = x; then 54937 # enabling of enable-debug-symbols and can't find objcopy 54938 # this is an error 54939 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54940 fi 54941 fi 54942 54943 COMPILE_WITH_DEBUG_SYMBOLS=true 54944 COPY_DEBUG_SYMBOLS=true 54945 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54946 else 54947 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54948 fi 54949 54950 # --enable-debug-symbols is deprecated. 54951 # Please use --with-native-debug-symbols=[internal,external,zipped] . 54952 54953 # Check whether --enable-debug-symbols was given. 54954 if test "${enable_debug_symbols+set}" = set; then : 54955 enableval=$enable_debug_symbols; 54956 fi 54957 54958 if test "x$enable_debug_symbols" != x; then 54959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 54960 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 54961 54962 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 54963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 54964 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 54965 fi 54966 54967 fi 54968 54969 54970 # --enable-zip-debug-info is deprecated. 54971 # Please use --with-native-debug-symbols=zipped . 54972 54973 # Check whether --enable-zip-debug-info was given. 54974 if test "${enable_zip_debug_info+set}" = set; then : 54975 enableval=$enable_zip_debug_info; 54976 fi 54977 54978 if test "x$enable_zip_debug_info" != x; then 54979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54980 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54981 54982 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54984 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54985 fi 54986 54987 fi 54988 54989 54990 54991 54992 54993 54994 54995 # Check whether --enable-native-coverage was given. 54996 if test "${enable_native_coverage+set}" = set; then : 54997 enableval=$enable_native_coverage; 54998 fi 54999 55000 GCOV_ENABLED="false" 55001 if test "x$enable_native_coverage" = "xyes"; then 55002 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 55003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 55004 $as_echo_n "checking if native coverage is enabled... " >&6; } 55005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55006 $as_echo "yes" >&6; } 55007 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 55008 GCOV_LDFLAGS="-fprofile-arcs" 55009 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 55010 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 55011 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 55012 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 55013 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 55014 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 55015 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 55016 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 55017 GCOV_ENABLED="true" 55018 else 55019 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 55020 fi 55021 elif test "x$enable_native_coverage" = "xno"; then 55022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 55023 $as_echo_n "checking if native coverage is enabled... " >&6; } 55024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55025 $as_echo "no" >&6; } 55026 elif test "x$enable_native_coverage" != "x"; then 55027 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 55028 fi 55029 55030 55031 55032 55033 # AddressSanitizer 55034 55035 # Check whether --enable-asan was given. 55036 if test "${enable_asan+set}" = set; then : 55037 enableval=$enable_asan; 55038 fi 55039 55040 ASAN_ENABLED="no" 55041 if test "x$enable_asan" = "xyes"; then 55042 case $TOOLCHAIN_TYPE in 55043 gcc | clang) 55044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 55045 $as_echo_n "checking if asan is enabled... " >&6; } 55046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55047 $as_echo "yes" >&6; } 55048 ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" 55049 ASAN_LDFLAGS="-fsanitize=address" 55050 JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" 55051 JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" 55052 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" 55053 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" 55054 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" 55055 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" 55056 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" 55057 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" 55058 ASAN_ENABLED="yes" 55059 ;; 55060 *) 55061 as_fn_error $? "--enable-asan only works with toolchain type gcc or clang" "$LINENO" 5 55062 ;; 55063 esac 55064 elif test "x$enable_asan" = "xno"; then 55065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 55066 $as_echo_n "checking if asan is enabled... " >&6; } 55067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55068 $as_echo "no" >&6; } 55069 elif test "x$enable_asan" != "x"; then 55070 as_fn_error $? "--enable-asan can only be assigned \"yes\" or \"no\"" "$LINENO" 5 55071 fi 55072 55073 55074 55075 55076 # Need toolchain to setup dtrace 55077 55078 # Test for dtrace dependencies 55079 # Check whether --enable-dtrace was given. 55080 if test "${enable_dtrace+set}" = set; then : 55081 enableval=$enable_dtrace; 55082 fi 55083 55084 55085 DTRACE_DEP_MISSING=false 55086 55087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 55088 $as_echo_n "checking for dtrace tool... " >&6; } 55089 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 55090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 55091 $as_echo "$DTRACE" >&6; } 55092 else 55093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 55094 $as_echo "not found, cannot build dtrace" >&6; } 55095 DTRACE_DEP_MISSING=true 55096 fi 55097 55098 for ac_header in sys/sdt.h 55099 do : 55100 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 55101 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 55102 cat >>confdefs.h <<_ACEOF 55103 #define HAVE_SYS_SDT_H 1 55104 _ACEOF 55105 DTRACE_HEADERS_OK=yes 55106 else 55107 DTRACE_HEADERS_OK=no 55108 fi 55109 55110 done 55111 55112 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 55113 DTRACE_DEP_MISSING=true 55114 fi 55115 55116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 55117 $as_echo_n "checking if dtrace should be built... " >&6; } 55118 if test "x$enable_dtrace" = "xyes"; then 55119 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55121 $as_echo "no, missing dependencies" >&6; } 55122 55123 # Print a helpful message on how to acquire the necessary build dependency. 55124 # dtrace is the help tag: freetype, cups, alsa etc 55125 MISSING_DEPENDENCY=dtrace 55126 55127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55128 cygwin_help $MISSING_DEPENDENCY 55129 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55130 msys_help $MISSING_DEPENDENCY 55131 else 55132 PKGHANDLER_COMMAND= 55133 55134 case $PKGHANDLER in 55135 apt-get) 55136 apt_help $MISSING_DEPENDENCY ;; 55137 yum) 55138 yum_help $MISSING_DEPENDENCY ;; 55139 brew) 55140 brew_help $MISSING_DEPENDENCY ;; 55141 port) 55142 port_help $MISSING_DEPENDENCY ;; 55143 pkgutil) 55144 pkgutil_help $MISSING_DEPENDENCY ;; 55145 pkgadd) 55146 pkgadd_help $MISSING_DEPENDENCY ;; 55147 esac 55148 55149 if test "x$PKGHANDLER_COMMAND" != x; then 55150 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 55151 fi 55152 fi 55153 55154 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 55155 else 55156 INCLUDE_DTRACE=true 55157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55158 $as_echo "yes, forced" >&6; } 55159 fi 55160 elif test "x$enable_dtrace" = "xno"; then 55161 INCLUDE_DTRACE=false 55162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55163 $as_echo "no, forced" >&6; } 55164 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 55165 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55166 INCLUDE_DTRACE=false 55167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55168 $as_echo "no, missing dependencies" >&6; } 55169 else 55170 INCLUDE_DTRACE=true 55171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 55172 $as_echo "yes, dependencies present" >&6; } 55173 fi 55174 else 55175 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 55176 fi 55177 55178 55179 # Check whether --enable-aot was given. 55180 if test "${enable_aot+set}" = set; then : 55181 enableval=$enable_aot; 55182 fi 55183 55184 55185 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 55186 ENABLE_AOT="true" 55187 elif test "x$enable_aot" = "xyes"; then 55188 ENABLE_AOT="true" 55189 elif test "x$enable_aot" = "xno"; then 55190 ENABLE_AOT="false" 55191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 55192 $as_echo_n "checking if aot should be enabled... " >&6; } 55193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55194 $as_echo "no, forced" >&6; } 55195 else 55196 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 55197 fi 55198 55199 if test "x$ENABLE_AOT" = "xtrue"; then 55200 # Only enable AOT on X64 platforms. 55201 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 55202 if test -e "${TOPDIR}/src/jdk.aot"; then 55203 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then 55204 ENABLE_AOT="true" 55205 else 55206 ENABLE_AOT="false" 55207 if test "x$enable_aot" = "xyes"; then 55208 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 55209 fi 55210 fi 55211 else 55212 ENABLE_AOT="false" 55213 if test "x$enable_aot" = "xyes"; then 55214 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 55215 fi 55216 fi 55217 else 55218 ENABLE_AOT="false" 55219 if test "x$enable_aot" = "xyes"; then 55220 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 55221 fi 55222 fi 55223 fi 55224 55225 55226 55227 55228 # Check whether --enable-cds was given. 55229 if test "${enable_cds+set}" = set; then : 55230 enableval=$enable_cds; 55231 fi 55232 55233 55234 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 55235 ENABLE_CDS="true" 55236 elif test "x$enable_cds" = "xno"; then 55237 ENABLE_CDS="false" 55238 else 55239 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 55240 fi 55241 55242 55243 55244 55245 # Check whether --enable-hotspot-gtest was given. 55246 if test "${enable_hotspot_gtest+set}" = set; then : 55247 enableval=$enable_hotspot_gtest; 55248 fi 55249 55250 55251 if test -e "${TOPDIR}/test/hotspot/gtest"; then 55252 GTEST_DIR_EXISTS="true" 55253 else 55254 GTEST_DIR_EXISTS="false" 55255 fi 55256 55257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 55258 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 55259 if test "x$enable_hotspot_gtest" = "xyes"; then 55260 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55262 $as_echo "yes, forced" >&6; } 55263 BUILD_GTEST="true" 55264 else 55265 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 55266 fi 55267 elif test "x$enable_hotspot_gtest" = "xno"; then 55268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55269 $as_echo "no, forced" >&6; } 55270 BUILD_GTEST="false" 55271 elif test "x$enable_hotspot_gtest" = "x"; then 55272 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55274 $as_echo "yes" >&6; } 55275 BUILD_GTEST="true" 55276 else 55277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55278 $as_echo "no" >&6; } 55279 BUILD_GTEST="false" 55280 fi 55281 else 55282 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 55283 fi 55284 55285 55286 55287 55288 ############################################################################### 55289 # 55290 # Check dependencies for external and internal libraries. 55291 # 55292 ############################################################################### 55293 55294 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 55295 55296 # When using cygwin or msys, we need a wrapper binary that renames 55297 # /cygdrive/c/ arguments into c:/ arguments and peeks into 55298 # @files and rewrites these too! This wrapper binary is 55299 # called fixpath. 55300 FIXPATH= 55301 if test "x$OPENJDK_BUILD_OS" = xwindows; then 55302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 55303 $as_echo_n "checking if fixpath can be created... " >&6; } 55304 FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c" 55305 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 55306 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 55307 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 55308 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 55309 FIXPATH="$FIXPATH_BIN -c" 55310 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 55311 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 55312 # @ was chosen as separator to minimize risk of other tools messing around with it 55313 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 55314 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 55315 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 55316 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 55317 fi 55318 FIXPATH_SRC_W="$FIXPATH_SRC" 55319 FIXPATH_BIN_W="$FIXPATH_BIN" 55320 55321 unix_path="$FIXPATH_SRC_W" 55322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55323 windows_path=`$CYGPATH -m "$unix_path"` 55324 FIXPATH_SRC_W="$windows_path" 55325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55326 windows_path=`cmd //c echo $unix_path` 55327 FIXPATH_SRC_W="$windows_path" 55328 fi 55329 55330 55331 unix_path="$FIXPATH_BIN_W" 55332 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55333 windows_path=`$CYGPATH -m "$unix_path"` 55334 FIXPATH_BIN_W="$windows_path" 55335 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55336 windows_path=`cmd //c echo $unix_path` 55337 FIXPATH_BIN_W="$windows_path" 55338 fi 55339 55340 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 55341 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 55342 cd $FIXPATH_DIR 55343 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 55344 cd $CURDIR 55345 55346 if test ! -x $FIXPATH_BIN; then 55347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55348 $as_echo "no" >&6; } 55349 cat $FIXPATH_DIR/fixpath1.log 55350 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 55351 fi 55352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55353 $as_echo "yes" >&6; } 55354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 55355 $as_echo_n "checking if fixpath.exe works... " >&6; } 55356 cd $FIXPATH_DIR 55357 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 55358 > $FIXPATH_DIR/fixpath2.log 2>&1 55359 cd $CURDIR 55360 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 55361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55362 $as_echo "no" >&6; } 55363 cat $FIXPATH_DIR/fixpath2.log 55364 as_fn_error $? "fixpath did not work!" "$LINENO" 5 55365 fi 55366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55367 $as_echo "yes" >&6; } 55368 55369 FIXPATH_DETACH_FLAG="--detach" 55370 fi 55371 55372 55373 55374 55375 55376 55377 # Check if X11 is needed 55378 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55379 # No X11 support on windows or macosx 55380 NEEDS_LIB_X11=false 55381 else 55382 # All other instances need X11, even if building headless only, libawt still 55383 # needs X11 headers. 55384 NEEDS_LIB_X11=true 55385 fi 55386 55387 # Check if fontconfig is needed 55388 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55389 # No fontconfig support on windows or macosx 55390 NEEDS_LIB_FONTCONFIG=false 55391 else 55392 # All other instances need fontconfig, even if building headless only, 55393 # libawt still needs fontconfig headers. 55394 NEEDS_LIB_FONTCONFIG=true 55395 fi 55396 55397 # Check if cups is needed 55398 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55399 # Windows have a separate print system 55400 NEEDS_LIB_CUPS=false 55401 else 55402 NEEDS_LIB_CUPS=true 55403 fi 55404 55405 # A custom hook may have set this already 55406 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 55407 NEEDS_LIB_FREETYPE=true 55408 fi 55409 55410 # Check if alsa is needed 55411 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55412 NEEDS_LIB_ALSA=true 55413 else 55414 NEEDS_LIB_ALSA=false 55415 fi 55416 55417 # Check if ffi is needed 55418 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 55419 NEEDS_LIB_FFI=true 55420 else 55421 NEEDS_LIB_FFI=false 55422 fi 55423 55424 55425 # statically link libstdc++ before C++ ABI is stablized on Linux unless 55426 # dynamic build is configured on command line. 55427 55428 # Check whether --with-stdc++lib was given. 55429 if test "${with_stdc__lib+set}" = set; then : 55430 withval=$with_stdc__lib; 55431 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 55432 && test "x$with_stdc__lib" != xdefault; then 55433 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 55434 fi 55435 55436 else 55437 with_stdc__lib=default 55438 55439 fi 55440 55441 55442 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55443 # Test if stdc++ can be linked statically. 55444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 55445 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 55446 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 55447 ac_ext=cpp 55448 ac_cpp='$CXXCPP $CPPFLAGS' 55449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55452 55453 OLD_LIBS="$LIBS" 55454 LIBS="$STATIC_STDCXX_FLAGS" 55455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55456 /* end confdefs.h. */ 55457 55458 int 55459 main () 55460 { 55461 return 0; 55462 ; 55463 return 0; 55464 } 55465 _ACEOF 55466 if ac_fn_cxx_try_link "$LINENO"; then : 55467 has_static_libstdcxx=yes 55468 else 55469 has_static_libstdcxx=no 55470 fi 55471 rm -f core conftest.err conftest.$ac_objext \ 55472 conftest$ac_exeext conftest.$ac_ext 55473 LIBS="$OLD_LIBS" 55474 ac_ext=cpp 55475 ac_cpp='$CXXCPP $CPPFLAGS' 55476 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55477 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55478 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55479 55480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 55481 $as_echo "$has_static_libstdcxx" >&6; } 55482 55483 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 55484 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 55485 fi 55486 55487 # If dynamic was requested, it's available since it would fail above otherwise. 55488 # If dynamic wasn't requested, go with static unless it isn't available. 55489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 55490 $as_echo_n "checking how to link with libstdc++... " >&6; } 55491 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then 55492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 55493 $as_echo "dynamic" >&6; } 55494 else 55495 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 55496 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55497 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 55498 # just use the same setting as for the TARGET toolchain. 55499 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 55501 $as_echo "static" >&6; } 55502 fi 55503 fi 55504 55505 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 55506 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 55507 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 55508 fi 55509 55510 55511 55512 # Setup Windows runtime dlls 55513 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 55514 55515 55516 # Check whether --with-msvcr-dll was given. 55517 if test "${with_msvcr_dll+set}" = set; then : 55518 withval=$with_msvcr_dll; 55519 fi 55520 55521 55522 if test "x$with_msvcr_dll" != x; then 55523 # If given explicitly by user, do not probe. If not present, fail directly. 55524 55525 DLL_NAME="$MSVCR_NAME" 55526 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 55527 METHOD="--with-msvcr-dll" 55528 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55529 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55530 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55531 55532 # Need to check if the found msvcr is correct architecture 55533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55534 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55535 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55537 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55538 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55539 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55540 CORRECT_MSVCR_ARCH="PE32 executable" 55541 else 55542 CORRECT_MSVCR_ARCH="PE32+ executable" 55543 fi 55544 else 55545 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55546 CORRECT_MSVCR_ARCH=386 55547 else 55548 CORRECT_MSVCR_ARCH=x86-64 55549 fi 55550 fi 55551 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55553 $as_echo "ok" >&6; } 55554 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55555 55556 # Only process if variable expands to non-empty 55557 55558 if test "x$MSVC_DLL" != x; then 55559 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55560 55561 # Input might be given as Windows format, start by converting to 55562 # unix format. 55563 path="$MSVC_DLL" 55564 new_path=`$CYGPATH -u "$path"` 55565 55566 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55567 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55568 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55569 # "foo.exe" is OK but "foo" is an error. 55570 # 55571 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55572 # It is also a way to make sure we got the proper file name for the real test later on. 55573 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55574 if test "x$test_shortpath" = x; then 55575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55576 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55577 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55578 fi 55579 55580 # Call helper function which possibly converts this using DOS-style short mode. 55581 # If so, the updated path is stored in $new_path. 55582 55583 input_path="$new_path" 55584 # Check if we need to convert this using DOS-style short mode. If the path 55585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55586 # take no chances and rewrite it. 55587 # Note: m4 eats our [], so we need to use [ and ] instead. 55588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55589 if test "x$has_forbidden_chars" != x; then 55590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55594 # Going to short mode and back again did indeed matter. Since short mode is 55595 # case insensitive, let's make it lowercase to improve readability. 55596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55597 # Now convert it back to Unix-style (cygpath) 55598 input_path=`$CYGPATH -u "$shortmode_path"` 55599 new_path="$input_path" 55600 fi 55601 fi 55602 55603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55604 if test "x$test_cygdrive_prefix" = x; then 55605 # As a simple fix, exclude /usr/bin since it's not a real path. 55606 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55608 # a path prefixed by /cygdrive for fixpath to work. 55609 new_path="$CYGWIN_ROOT_PATH$input_path" 55610 fi 55611 fi 55612 55613 55614 if test "x$path" != "x$new_path"; then 55615 MSVC_DLL="$new_path" 55616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55617 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55618 fi 55619 55620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55621 55622 path="$MSVC_DLL" 55623 has_colon=`$ECHO $path | $GREP ^.:` 55624 new_path="$path" 55625 if test "x$has_colon" = x; then 55626 # Not in mixed or Windows style, start by that. 55627 new_path=`cmd //c echo $path` 55628 fi 55629 55630 55631 input_path="$new_path" 55632 # Check if we need to convert this using DOS-style short mode. If the path 55633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55634 # take no chances and rewrite it. 55635 # Note: m4 eats our [], so we need to use [ and ] instead. 55636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55637 if test "x$has_forbidden_chars" != x; then 55638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55639 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55640 fi 55641 55642 55643 windows_path="$new_path" 55644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55645 unix_path=`$CYGPATH -u "$windows_path"` 55646 new_path="$unix_path" 55647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55649 new_path="$unix_path" 55650 fi 55651 55652 if test "x$path" != "x$new_path"; then 55653 MSVC_DLL="$new_path" 55654 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55655 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55656 fi 55657 55658 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55659 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55660 55661 else 55662 # We're on a unix platform. Hooray! :) 55663 path="$MSVC_DLL" 55664 has_space=`$ECHO "$path" | $GREP " "` 55665 if test "x$has_space" != x; then 55666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55667 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55668 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55669 fi 55670 55671 # Use eval to expand a potential ~ 55672 eval path="$path" 55673 if test ! -f "$path" && test ! -d "$path"; then 55674 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55675 fi 55676 55677 if test -d "$path"; then 55678 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55679 else 55680 dir="`$DIRNAME "$path"`" 55681 base="`$BASENAME "$path"`" 55682 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55683 fi 55684 fi 55685 fi 55686 55687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55688 $as_echo_n "checking for $DLL_NAME... " >&6; } 55689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55690 $as_echo "$MSVC_DLL" >&6; } 55691 else 55692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55693 $as_echo "incorrect, ignoring" >&6; } 55694 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55695 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55696 fi 55697 fi 55698 55699 if test "x$MSVC_DLL" = x; then 55700 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 55701 fi 55702 MSVCR_DLL="$MSVC_DLL" 55703 elif test "x$DEVKIT_MSVCR_DLL" != x; then 55704 55705 DLL_NAME="$MSVCR_NAME" 55706 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 55707 METHOD="devkit" 55708 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55709 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55710 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55711 55712 # Need to check if the found msvcr is correct architecture 55713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55714 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55715 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55717 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55718 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55719 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55720 CORRECT_MSVCR_ARCH="PE32 executable" 55721 else 55722 CORRECT_MSVCR_ARCH="PE32+ executable" 55723 fi 55724 else 55725 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55726 CORRECT_MSVCR_ARCH=386 55727 else 55728 CORRECT_MSVCR_ARCH=x86-64 55729 fi 55730 fi 55731 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55733 $as_echo "ok" >&6; } 55734 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55735 55736 # Only process if variable expands to non-empty 55737 55738 if test "x$MSVC_DLL" != x; then 55739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55740 55741 # Input might be given as Windows format, start by converting to 55742 # unix format. 55743 path="$MSVC_DLL" 55744 new_path=`$CYGPATH -u "$path"` 55745 55746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55749 # "foo.exe" is OK but "foo" is an error. 55750 # 55751 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55752 # It is also a way to make sure we got the proper file name for the real test later on. 55753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55754 if test "x$test_shortpath" = x; then 55755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55756 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55757 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55758 fi 55759 55760 # Call helper function which possibly converts this using DOS-style short mode. 55761 # If so, the updated path is stored in $new_path. 55762 55763 input_path="$new_path" 55764 # Check if we need to convert this using DOS-style short mode. If the path 55765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55766 # take no chances and rewrite it. 55767 # Note: m4 eats our [], so we need to use [ and ] instead. 55768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55769 if test "x$has_forbidden_chars" != x; then 55770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55771 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55772 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55773 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55774 # Going to short mode and back again did indeed matter. Since short mode is 55775 # case insensitive, let's make it lowercase to improve readability. 55776 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55777 # Now convert it back to Unix-style (cygpath) 55778 input_path=`$CYGPATH -u "$shortmode_path"` 55779 new_path="$input_path" 55780 fi 55781 fi 55782 55783 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55784 if test "x$test_cygdrive_prefix" = x; then 55785 # As a simple fix, exclude /usr/bin since it's not a real path. 55786 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55787 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55788 # a path prefixed by /cygdrive for fixpath to work. 55789 new_path="$CYGWIN_ROOT_PATH$input_path" 55790 fi 55791 fi 55792 55793 55794 if test "x$path" != "x$new_path"; then 55795 MSVC_DLL="$new_path" 55796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55797 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55798 fi 55799 55800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55801 55802 path="$MSVC_DLL" 55803 has_colon=`$ECHO $path | $GREP ^.:` 55804 new_path="$path" 55805 if test "x$has_colon" = x; then 55806 # Not in mixed or Windows style, start by that. 55807 new_path=`cmd //c echo $path` 55808 fi 55809 55810 55811 input_path="$new_path" 55812 # Check if we need to convert this using DOS-style short mode. If the path 55813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55814 # take no chances and rewrite it. 55815 # Note: m4 eats our [], so we need to use [ and ] instead. 55816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55817 if test "x$has_forbidden_chars" != x; then 55818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55820 fi 55821 55822 55823 windows_path="$new_path" 55824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55825 unix_path=`$CYGPATH -u "$windows_path"` 55826 new_path="$unix_path" 55827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55829 new_path="$unix_path" 55830 fi 55831 55832 if test "x$path" != "x$new_path"; then 55833 MSVC_DLL="$new_path" 55834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55835 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55836 fi 55837 55838 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55839 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55840 55841 else 55842 # We're on a unix platform. Hooray! :) 55843 path="$MSVC_DLL" 55844 has_space=`$ECHO "$path" | $GREP " "` 55845 if test "x$has_space" != x; then 55846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55847 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55848 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55849 fi 55850 55851 # Use eval to expand a potential ~ 55852 eval path="$path" 55853 if test ! -f "$path" && test ! -d "$path"; then 55854 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55855 fi 55856 55857 if test -d "$path"; then 55858 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55859 else 55860 dir="`$DIRNAME "$path"`" 55861 base="`$BASENAME "$path"`" 55862 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55863 fi 55864 fi 55865 fi 55866 55867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55868 $as_echo_n "checking for $DLL_NAME... " >&6; } 55869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55870 $as_echo "$MSVC_DLL" >&6; } 55871 else 55872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55873 $as_echo "incorrect, ignoring" >&6; } 55874 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55875 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55876 fi 55877 fi 55878 55879 if test "x$MSVC_DLL" = x; then 55880 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 55881 fi 55882 MSVCR_DLL="$MSVC_DLL" 55883 else 55884 55885 DLL_NAME="${MSVCR_NAME}" 55886 MSVC_DLL= 55887 55888 if test "x$MSVC_DLL" = x; then 55889 # Probe: Using well-known location from Visual Studio 10.0 55890 if test "x$VCINSTALLDIR" != x; then 55891 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55892 55893 windows_path="$CYGWIN_VC_INSTALL_DIR" 55894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55895 unix_path=`$CYGPATH -u "$windows_path"` 55896 CYGWIN_VC_INSTALL_DIR="$unix_path" 55897 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55898 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55899 CYGWIN_VC_INSTALL_DIR="$unix_path" 55900 fi 55901 55902 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55903 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55904 else 55905 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55906 fi 55907 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55908 55909 DLL_NAME="$DLL_NAME" 55910 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55911 METHOD="well-known location in VCINSTALLDIR" 55912 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55914 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55915 55916 # Need to check if the found msvcr is correct architecture 55917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55918 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55919 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55921 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55922 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55923 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55924 CORRECT_MSVCR_ARCH="PE32 executable" 55925 else 55926 CORRECT_MSVCR_ARCH="PE32+ executable" 55927 fi 55928 else 55929 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55930 CORRECT_MSVCR_ARCH=386 55931 else 55932 CORRECT_MSVCR_ARCH=x86-64 55933 fi 55934 fi 55935 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55937 $as_echo "ok" >&6; } 55938 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55939 55940 # Only process if variable expands to non-empty 55941 55942 if test "x$MSVC_DLL" != x; then 55943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55944 55945 # Input might be given as Windows format, start by converting to 55946 # unix format. 55947 path="$MSVC_DLL" 55948 new_path=`$CYGPATH -u "$path"` 55949 55950 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55951 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55952 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55953 # "foo.exe" is OK but "foo" is an error. 55954 # 55955 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55956 # It is also a way to make sure we got the proper file name for the real test later on. 55957 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55958 if test "x$test_shortpath" = x; then 55959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55960 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55961 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55962 fi 55963 55964 # Call helper function which possibly converts this using DOS-style short mode. 55965 # If so, the updated path is stored in $new_path. 55966 55967 input_path="$new_path" 55968 # Check if we need to convert this using DOS-style short mode. If the path 55969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55970 # take no chances and rewrite it. 55971 # Note: m4 eats our [], so we need to use [ and ] instead. 55972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55973 if test "x$has_forbidden_chars" != x; then 55974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55975 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55976 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55977 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55978 # Going to short mode and back again did indeed matter. Since short mode is 55979 # case insensitive, let's make it lowercase to improve readability. 55980 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55981 # Now convert it back to Unix-style (cygpath) 55982 input_path=`$CYGPATH -u "$shortmode_path"` 55983 new_path="$input_path" 55984 fi 55985 fi 55986 55987 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55988 if test "x$test_cygdrive_prefix" = x; then 55989 # As a simple fix, exclude /usr/bin since it's not a real path. 55990 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55991 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55992 # a path prefixed by /cygdrive for fixpath to work. 55993 new_path="$CYGWIN_ROOT_PATH$input_path" 55994 fi 55995 fi 55996 55997 55998 if test "x$path" != "x$new_path"; then 55999 MSVC_DLL="$new_path" 56000 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56001 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56002 fi 56003 56004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56005 56006 path="$MSVC_DLL" 56007 has_colon=`$ECHO $path | $GREP ^.:` 56008 new_path="$path" 56009 if test "x$has_colon" = x; then 56010 # Not in mixed or Windows style, start by that. 56011 new_path=`cmd //c echo $path` 56012 fi 56013 56014 56015 input_path="$new_path" 56016 # Check if we need to convert this using DOS-style short mode. If the path 56017 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56018 # take no chances and rewrite it. 56019 # Note: m4 eats our [], so we need to use [ and ] instead. 56020 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56021 if test "x$has_forbidden_chars" != x; then 56022 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56023 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56024 fi 56025 56026 56027 windows_path="$new_path" 56028 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56029 unix_path=`$CYGPATH -u "$windows_path"` 56030 new_path="$unix_path" 56031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56032 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56033 new_path="$unix_path" 56034 fi 56035 56036 if test "x$path" != "x$new_path"; then 56037 MSVC_DLL="$new_path" 56038 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56039 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56040 fi 56041 56042 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56043 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56044 56045 else 56046 # We're on a unix platform. Hooray! :) 56047 path="$MSVC_DLL" 56048 has_space=`$ECHO "$path" | $GREP " "` 56049 if test "x$has_space" != x; then 56050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56051 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56052 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56053 fi 56054 56055 # Use eval to expand a potential ~ 56056 eval path="$path" 56057 if test ! -f "$path" && test ! -d "$path"; then 56058 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56059 fi 56060 56061 if test -d "$path"; then 56062 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56063 else 56064 dir="`$DIRNAME "$path"`" 56065 base="`$BASENAME "$path"`" 56066 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56067 fi 56068 fi 56069 fi 56070 56071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56072 $as_echo_n "checking for $DLL_NAME... " >&6; } 56073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56074 $as_echo "$MSVC_DLL" >&6; } 56075 else 56076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56077 $as_echo "incorrect, ignoring" >&6; } 56078 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56079 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56080 fi 56081 fi 56082 56083 fi 56084 fi 56085 56086 if test "x$MSVC_DLL" = x; then 56087 # Probe: Check in the Boot JDK directory. 56088 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56089 56090 DLL_NAME="$DLL_NAME" 56091 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56092 METHOD="well-known location in Boot JDK" 56093 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56095 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56096 56097 # Need to check if the found msvcr is correct architecture 56098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56099 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56100 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56102 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56103 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56104 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56105 CORRECT_MSVCR_ARCH="PE32 executable" 56106 else 56107 CORRECT_MSVCR_ARCH="PE32+ executable" 56108 fi 56109 else 56110 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56111 CORRECT_MSVCR_ARCH=386 56112 else 56113 CORRECT_MSVCR_ARCH=x86-64 56114 fi 56115 fi 56116 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56118 $as_echo "ok" >&6; } 56119 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56120 56121 # Only process if variable expands to non-empty 56122 56123 if test "x$MSVC_DLL" != x; then 56124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56125 56126 # Input might be given as Windows format, start by converting to 56127 # unix format. 56128 path="$MSVC_DLL" 56129 new_path=`$CYGPATH -u "$path"` 56130 56131 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56132 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56133 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56134 # "foo.exe" is OK but "foo" is an error. 56135 # 56136 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56137 # It is also a way to make sure we got the proper file name for the real test later on. 56138 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56139 if test "x$test_shortpath" = x; then 56140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56141 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56142 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56143 fi 56144 56145 # Call helper function which possibly converts this using DOS-style short mode. 56146 # If so, the updated path is stored in $new_path. 56147 56148 input_path="$new_path" 56149 # Check if we need to convert this using DOS-style short mode. If the path 56150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56151 # take no chances and rewrite it. 56152 # Note: m4 eats our [], so we need to use [ and ] instead. 56153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56154 if test "x$has_forbidden_chars" != x; then 56155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56159 # Going to short mode and back again did indeed matter. Since short mode is 56160 # case insensitive, let's make it lowercase to improve readability. 56161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56162 # Now convert it back to Unix-style (cygpath) 56163 input_path=`$CYGPATH -u "$shortmode_path"` 56164 new_path="$input_path" 56165 fi 56166 fi 56167 56168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56169 if test "x$test_cygdrive_prefix" = x; then 56170 # As a simple fix, exclude /usr/bin since it's not a real path. 56171 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56173 # a path prefixed by /cygdrive for fixpath to work. 56174 new_path="$CYGWIN_ROOT_PATH$input_path" 56175 fi 56176 fi 56177 56178 56179 if test "x$path" != "x$new_path"; then 56180 MSVC_DLL="$new_path" 56181 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56182 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56183 fi 56184 56185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56186 56187 path="$MSVC_DLL" 56188 has_colon=`$ECHO $path | $GREP ^.:` 56189 new_path="$path" 56190 if test "x$has_colon" = x; then 56191 # Not in mixed or Windows style, start by that. 56192 new_path=`cmd //c echo $path` 56193 fi 56194 56195 56196 input_path="$new_path" 56197 # Check if we need to convert this using DOS-style short mode. If the path 56198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56199 # take no chances and rewrite it. 56200 # Note: m4 eats our [], so we need to use [ and ] instead. 56201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56202 if test "x$has_forbidden_chars" != x; then 56203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56204 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56205 fi 56206 56207 56208 windows_path="$new_path" 56209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56210 unix_path=`$CYGPATH -u "$windows_path"` 56211 new_path="$unix_path" 56212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56214 new_path="$unix_path" 56215 fi 56216 56217 if test "x$path" != "x$new_path"; then 56218 MSVC_DLL="$new_path" 56219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56220 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56221 fi 56222 56223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56225 56226 else 56227 # We're on a unix platform. Hooray! :) 56228 path="$MSVC_DLL" 56229 has_space=`$ECHO "$path" | $GREP " "` 56230 if test "x$has_space" != x; then 56231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56232 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56233 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56234 fi 56235 56236 # Use eval to expand a potential ~ 56237 eval path="$path" 56238 if test ! -f "$path" && test ! -d "$path"; then 56239 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56240 fi 56241 56242 if test -d "$path"; then 56243 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56244 else 56245 dir="`$DIRNAME "$path"`" 56246 base="`$BASENAME "$path"`" 56247 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56248 fi 56249 fi 56250 fi 56251 56252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56253 $as_echo_n "checking for $DLL_NAME... " >&6; } 56254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56255 $as_echo "$MSVC_DLL" >&6; } 56256 else 56257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56258 $as_echo "incorrect, ignoring" >&6; } 56259 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56260 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56261 fi 56262 fi 56263 56264 fi 56265 56266 if test "x$MSVC_DLL" = x; then 56267 # Probe: Look in the Windows system32 directory 56268 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56269 56270 windows_path="$CYGWIN_SYSTEMROOT" 56271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56272 unix_path=`$CYGPATH -u "$windows_path"` 56273 CYGWIN_SYSTEMROOT="$unix_path" 56274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56275 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56276 CYGWIN_SYSTEMROOT="$unix_path" 56277 fi 56278 56279 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56280 56281 DLL_NAME="$DLL_NAME" 56282 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56283 METHOD="well-known location in SYSTEMROOT" 56284 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56285 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56286 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56287 56288 # Need to check if the found msvcr is correct architecture 56289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56290 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56291 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56293 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56294 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56295 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56296 CORRECT_MSVCR_ARCH="PE32 executable" 56297 else 56298 CORRECT_MSVCR_ARCH="PE32+ executable" 56299 fi 56300 else 56301 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56302 CORRECT_MSVCR_ARCH=386 56303 else 56304 CORRECT_MSVCR_ARCH=x86-64 56305 fi 56306 fi 56307 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56309 $as_echo "ok" >&6; } 56310 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56311 56312 # Only process if variable expands to non-empty 56313 56314 if test "x$MSVC_DLL" != x; then 56315 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56316 56317 # Input might be given as Windows format, start by converting to 56318 # unix format. 56319 path="$MSVC_DLL" 56320 new_path=`$CYGPATH -u "$path"` 56321 56322 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56323 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56324 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56325 # "foo.exe" is OK but "foo" is an error. 56326 # 56327 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56328 # It is also a way to make sure we got the proper file name for the real test later on. 56329 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56330 if test "x$test_shortpath" = x; then 56331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56332 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56333 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56334 fi 56335 56336 # Call helper function which possibly converts this using DOS-style short mode. 56337 # If so, the updated path is stored in $new_path. 56338 56339 input_path="$new_path" 56340 # Check if we need to convert this using DOS-style short mode. If the path 56341 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56342 # take no chances and rewrite it. 56343 # Note: m4 eats our [], so we need to use [ and ] instead. 56344 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56345 if test "x$has_forbidden_chars" != x; then 56346 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56347 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56348 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56349 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56350 # Going to short mode and back again did indeed matter. Since short mode is 56351 # case insensitive, let's make it lowercase to improve readability. 56352 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56353 # Now convert it back to Unix-style (cygpath) 56354 input_path=`$CYGPATH -u "$shortmode_path"` 56355 new_path="$input_path" 56356 fi 56357 fi 56358 56359 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56360 if test "x$test_cygdrive_prefix" = x; then 56361 # As a simple fix, exclude /usr/bin since it's not a real path. 56362 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56363 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56364 # a path prefixed by /cygdrive for fixpath to work. 56365 new_path="$CYGWIN_ROOT_PATH$input_path" 56366 fi 56367 fi 56368 56369 56370 if test "x$path" != "x$new_path"; then 56371 MSVC_DLL="$new_path" 56372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56373 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56374 fi 56375 56376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56377 56378 path="$MSVC_DLL" 56379 has_colon=`$ECHO $path | $GREP ^.:` 56380 new_path="$path" 56381 if test "x$has_colon" = x; then 56382 # Not in mixed or Windows style, start by that. 56383 new_path=`cmd //c echo $path` 56384 fi 56385 56386 56387 input_path="$new_path" 56388 # Check if we need to convert this using DOS-style short mode. If the path 56389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56390 # take no chances and rewrite it. 56391 # Note: m4 eats our [], so we need to use [ and ] instead. 56392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56393 if test "x$has_forbidden_chars" != x; then 56394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56395 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56396 fi 56397 56398 56399 windows_path="$new_path" 56400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56401 unix_path=`$CYGPATH -u "$windows_path"` 56402 new_path="$unix_path" 56403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56404 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56405 new_path="$unix_path" 56406 fi 56407 56408 if test "x$path" != "x$new_path"; then 56409 MSVC_DLL="$new_path" 56410 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56411 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56412 fi 56413 56414 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56415 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56416 56417 else 56418 # We're on a unix platform. Hooray! :) 56419 path="$MSVC_DLL" 56420 has_space=`$ECHO "$path" | $GREP " "` 56421 if test "x$has_space" != x; then 56422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56423 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56424 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56425 fi 56426 56427 # Use eval to expand a potential ~ 56428 eval path="$path" 56429 if test ! -f "$path" && test ! -d "$path"; then 56430 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56431 fi 56432 56433 if test -d "$path"; then 56434 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56435 else 56436 dir="`$DIRNAME "$path"`" 56437 base="`$BASENAME "$path"`" 56438 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56439 fi 56440 fi 56441 fi 56442 56443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56444 $as_echo_n "checking for $DLL_NAME... " >&6; } 56445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56446 $as_echo "$MSVC_DLL" >&6; } 56447 else 56448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56449 $as_echo "incorrect, ignoring" >&6; } 56450 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56451 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56452 fi 56453 fi 56454 56455 fi 56456 56457 if test "x$MSVC_DLL" = x; then 56458 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56459 if test "x$VS100COMNTOOLS" != x; then 56460 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56461 56462 windows_path="$CYGWIN_VS_TOOLS_DIR" 56463 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56464 unix_path=`$CYGPATH -u "$windows_path"` 56465 CYGWIN_VS_TOOLS_DIR="$unix_path" 56466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56467 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56468 CYGWIN_VS_TOOLS_DIR="$unix_path" 56469 fi 56470 56471 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56472 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56473 | $GREP -i /x64/ | $HEAD --lines 1` 56474 else 56475 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56476 | $GREP -i /x86/ | $HEAD --lines 1` 56477 fi 56478 56479 DLL_NAME="$DLL_NAME" 56480 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56481 METHOD="search of VS100COMNTOOLS" 56482 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56483 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56484 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56485 56486 # Need to check if the found msvcr is correct architecture 56487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56488 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56489 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56491 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56492 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56493 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56494 CORRECT_MSVCR_ARCH="PE32 executable" 56495 else 56496 CORRECT_MSVCR_ARCH="PE32+ executable" 56497 fi 56498 else 56499 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56500 CORRECT_MSVCR_ARCH=386 56501 else 56502 CORRECT_MSVCR_ARCH=x86-64 56503 fi 56504 fi 56505 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56507 $as_echo "ok" >&6; } 56508 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56509 56510 # Only process if variable expands to non-empty 56511 56512 if test "x$MSVC_DLL" != x; then 56513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56514 56515 # Input might be given as Windows format, start by converting to 56516 # unix format. 56517 path="$MSVC_DLL" 56518 new_path=`$CYGPATH -u "$path"` 56519 56520 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56521 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56522 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56523 # "foo.exe" is OK but "foo" is an error. 56524 # 56525 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56526 # It is also a way to make sure we got the proper file name for the real test later on. 56527 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56528 if test "x$test_shortpath" = x; then 56529 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56530 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56531 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56532 fi 56533 56534 # Call helper function which possibly converts this using DOS-style short mode. 56535 # If so, the updated path is stored in $new_path. 56536 56537 input_path="$new_path" 56538 # Check if we need to convert this using DOS-style short mode. If the path 56539 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56540 # take no chances and rewrite it. 56541 # Note: m4 eats our [], so we need to use [ and ] instead. 56542 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56543 if test "x$has_forbidden_chars" != x; then 56544 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56545 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56546 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56547 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56548 # Going to short mode and back again did indeed matter. Since short mode is 56549 # case insensitive, let's make it lowercase to improve readability. 56550 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56551 # Now convert it back to Unix-style (cygpath) 56552 input_path=`$CYGPATH -u "$shortmode_path"` 56553 new_path="$input_path" 56554 fi 56555 fi 56556 56557 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56558 if test "x$test_cygdrive_prefix" = x; then 56559 # As a simple fix, exclude /usr/bin since it's not a real path. 56560 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56561 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56562 # a path prefixed by /cygdrive for fixpath to work. 56563 new_path="$CYGWIN_ROOT_PATH$input_path" 56564 fi 56565 fi 56566 56567 56568 if test "x$path" != "x$new_path"; then 56569 MSVC_DLL="$new_path" 56570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56571 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56572 fi 56573 56574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56575 56576 path="$MSVC_DLL" 56577 has_colon=`$ECHO $path | $GREP ^.:` 56578 new_path="$path" 56579 if test "x$has_colon" = x; then 56580 # Not in mixed or Windows style, start by that. 56581 new_path=`cmd //c echo $path` 56582 fi 56583 56584 56585 input_path="$new_path" 56586 # Check if we need to convert this using DOS-style short mode. If the path 56587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56588 # take no chances and rewrite it. 56589 # Note: m4 eats our [], so we need to use [ and ] instead. 56590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56591 if test "x$has_forbidden_chars" != x; then 56592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56593 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56594 fi 56595 56596 56597 windows_path="$new_path" 56598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56599 unix_path=`$CYGPATH -u "$windows_path"` 56600 new_path="$unix_path" 56601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56603 new_path="$unix_path" 56604 fi 56605 56606 if test "x$path" != "x$new_path"; then 56607 MSVC_DLL="$new_path" 56608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56609 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56610 fi 56611 56612 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56613 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56614 56615 else 56616 # We're on a unix platform. Hooray! :) 56617 path="$MSVC_DLL" 56618 has_space=`$ECHO "$path" | $GREP " "` 56619 if test "x$has_space" != x; then 56620 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56621 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56622 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56623 fi 56624 56625 # Use eval to expand a potential ~ 56626 eval path="$path" 56627 if test ! -f "$path" && test ! -d "$path"; then 56628 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56629 fi 56630 56631 if test -d "$path"; then 56632 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56633 else 56634 dir="`$DIRNAME "$path"`" 56635 base="`$BASENAME "$path"`" 56636 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56637 fi 56638 fi 56639 fi 56640 56641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56642 $as_echo_n "checking for $DLL_NAME... " >&6; } 56643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56644 $as_echo "$MSVC_DLL" >&6; } 56645 else 56646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56647 $as_echo "incorrect, ignoring" >&6; } 56648 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56649 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56650 fi 56651 fi 56652 56653 fi 56654 fi 56655 56656 if test "x$MSVC_DLL" = x; then 56657 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 56658 # (This was the original behaviour; kept since it might turn something up) 56659 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 56660 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56661 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56662 | $GREP x64 | $HEAD --lines 1` 56663 else 56664 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56665 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 56666 if test "x$POSSIBLE_MSVC_DLL" = x; then 56667 # We're grasping at straws now... 56668 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56669 | $HEAD --lines 1` 56670 fi 56671 fi 56672 56673 56674 DLL_NAME="$DLL_NAME" 56675 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56676 METHOD="search of VCINSTALLDIR" 56677 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56678 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56679 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56680 56681 # Need to check if the found msvcr is correct architecture 56682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56683 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56684 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56686 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56687 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56688 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56689 CORRECT_MSVCR_ARCH="PE32 executable" 56690 else 56691 CORRECT_MSVCR_ARCH="PE32+ executable" 56692 fi 56693 else 56694 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56695 CORRECT_MSVCR_ARCH=386 56696 else 56697 CORRECT_MSVCR_ARCH=x86-64 56698 fi 56699 fi 56700 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56702 $as_echo "ok" >&6; } 56703 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56704 56705 # Only process if variable expands to non-empty 56706 56707 if test "x$MSVC_DLL" != x; then 56708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56709 56710 # Input might be given as Windows format, start by converting to 56711 # unix format. 56712 path="$MSVC_DLL" 56713 new_path=`$CYGPATH -u "$path"` 56714 56715 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56716 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56717 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56718 # "foo.exe" is OK but "foo" is an error. 56719 # 56720 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56721 # It is also a way to make sure we got the proper file name for the real test later on. 56722 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56723 if test "x$test_shortpath" = x; then 56724 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56725 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56726 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56727 fi 56728 56729 # Call helper function which possibly converts this using DOS-style short mode. 56730 # If so, the updated path is stored in $new_path. 56731 56732 input_path="$new_path" 56733 # Check if we need to convert this using DOS-style short mode. If the path 56734 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56735 # take no chances and rewrite it. 56736 # Note: m4 eats our [], so we need to use [ and ] instead. 56737 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56738 if test "x$has_forbidden_chars" != x; then 56739 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56740 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56741 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56742 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56743 # Going to short mode and back again did indeed matter. Since short mode is 56744 # case insensitive, let's make it lowercase to improve readability. 56745 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56746 # Now convert it back to Unix-style (cygpath) 56747 input_path=`$CYGPATH -u "$shortmode_path"` 56748 new_path="$input_path" 56749 fi 56750 fi 56751 56752 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56753 if test "x$test_cygdrive_prefix" = x; then 56754 # As a simple fix, exclude /usr/bin since it's not a real path. 56755 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56756 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56757 # a path prefixed by /cygdrive for fixpath to work. 56758 new_path="$CYGWIN_ROOT_PATH$input_path" 56759 fi 56760 fi 56761 56762 56763 if test "x$path" != "x$new_path"; then 56764 MSVC_DLL="$new_path" 56765 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56766 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56767 fi 56768 56769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56770 56771 path="$MSVC_DLL" 56772 has_colon=`$ECHO $path | $GREP ^.:` 56773 new_path="$path" 56774 if test "x$has_colon" = x; then 56775 # Not in mixed or Windows style, start by that. 56776 new_path=`cmd //c echo $path` 56777 fi 56778 56779 56780 input_path="$new_path" 56781 # Check if we need to convert this using DOS-style short mode. If the path 56782 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56783 # take no chances and rewrite it. 56784 # Note: m4 eats our [], so we need to use [ and ] instead. 56785 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56786 if test "x$has_forbidden_chars" != x; then 56787 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56788 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56789 fi 56790 56791 56792 windows_path="$new_path" 56793 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56794 unix_path=`$CYGPATH -u "$windows_path"` 56795 new_path="$unix_path" 56796 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56797 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56798 new_path="$unix_path" 56799 fi 56800 56801 if test "x$path" != "x$new_path"; then 56802 MSVC_DLL="$new_path" 56803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56804 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56805 fi 56806 56807 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56808 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56809 56810 else 56811 # We're on a unix platform. Hooray! :) 56812 path="$MSVC_DLL" 56813 has_space=`$ECHO "$path" | $GREP " "` 56814 if test "x$has_space" != x; then 56815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56816 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56817 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56818 fi 56819 56820 # Use eval to expand a potential ~ 56821 eval path="$path" 56822 if test ! -f "$path" && test ! -d "$path"; then 56823 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56824 fi 56825 56826 if test -d "$path"; then 56827 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56828 else 56829 dir="`$DIRNAME "$path"`" 56830 base="`$BASENAME "$path"`" 56831 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56832 fi 56833 fi 56834 fi 56835 56836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56837 $as_echo_n "checking for $DLL_NAME... " >&6; } 56838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56839 $as_echo "$MSVC_DLL" >&6; } 56840 else 56841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56842 $as_echo "incorrect, ignoring" >&6; } 56843 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56844 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56845 fi 56846 fi 56847 56848 fi 56849 fi 56850 56851 if test "x$MSVC_DLL" = x; then 56852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56853 $as_echo_n "checking for $DLL_NAME... " >&6; } 56854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56855 $as_echo "no" >&6; } 56856 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56857 fi 56858 56859 MSVCR_DLL="$MSVC_DLL" 56860 fi 56861 56862 56863 56864 # Check whether --with-msvcp-dll was given. 56865 if test "${with_msvcp_dll+set}" = set; then : 56866 withval=$with_msvcp_dll; 56867 fi 56868 56869 56870 if test "x$MSVCP_NAME" != "x"; then 56871 if test "x$with_msvcp_dll" != x; then 56872 # If given explicitly by user, do not probe. If not present, fail directly. 56873 56874 DLL_NAME="$MSVCP_NAME" 56875 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 56876 METHOD="--with-msvcp-dll" 56877 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56878 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56879 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56880 56881 # Need to check if the found msvcr is correct architecture 56882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56883 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56884 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56886 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56887 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56888 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56889 CORRECT_MSVCR_ARCH="PE32 executable" 56890 else 56891 CORRECT_MSVCR_ARCH="PE32+ executable" 56892 fi 56893 else 56894 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56895 CORRECT_MSVCR_ARCH=386 56896 else 56897 CORRECT_MSVCR_ARCH=x86-64 56898 fi 56899 fi 56900 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56902 $as_echo "ok" >&6; } 56903 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56904 56905 # Only process if variable expands to non-empty 56906 56907 if test "x$MSVC_DLL" != x; then 56908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56909 56910 # Input might be given as Windows format, start by converting to 56911 # unix format. 56912 path="$MSVC_DLL" 56913 new_path=`$CYGPATH -u "$path"` 56914 56915 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56916 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56917 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56918 # "foo.exe" is OK but "foo" is an error. 56919 # 56920 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56921 # It is also a way to make sure we got the proper file name for the real test later on. 56922 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56923 if test "x$test_shortpath" = x; then 56924 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56925 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56926 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56927 fi 56928 56929 # Call helper function which possibly converts this using DOS-style short mode. 56930 # If so, the updated path is stored in $new_path. 56931 56932 input_path="$new_path" 56933 # Check if we need to convert this using DOS-style short mode. If the path 56934 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56935 # take no chances and rewrite it. 56936 # Note: m4 eats our [], so we need to use [ and ] instead. 56937 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56938 if test "x$has_forbidden_chars" != x; then 56939 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56940 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56941 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56942 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56943 # Going to short mode and back again did indeed matter. Since short mode is 56944 # case insensitive, let's make it lowercase to improve readability. 56945 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56946 # Now convert it back to Unix-style (cygpath) 56947 input_path=`$CYGPATH -u "$shortmode_path"` 56948 new_path="$input_path" 56949 fi 56950 fi 56951 56952 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56953 if test "x$test_cygdrive_prefix" = x; then 56954 # As a simple fix, exclude /usr/bin since it's not a real path. 56955 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56956 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56957 # a path prefixed by /cygdrive for fixpath to work. 56958 new_path="$CYGWIN_ROOT_PATH$input_path" 56959 fi 56960 fi 56961 56962 56963 if test "x$path" != "x$new_path"; then 56964 MSVC_DLL="$new_path" 56965 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56966 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56967 fi 56968 56969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56970 56971 path="$MSVC_DLL" 56972 has_colon=`$ECHO $path | $GREP ^.:` 56973 new_path="$path" 56974 if test "x$has_colon" = x; then 56975 # Not in mixed or Windows style, start by that. 56976 new_path=`cmd //c echo $path` 56977 fi 56978 56979 56980 input_path="$new_path" 56981 # Check if we need to convert this using DOS-style short mode. If the path 56982 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56983 # take no chances and rewrite it. 56984 # Note: m4 eats our [], so we need to use [ and ] instead. 56985 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56986 if test "x$has_forbidden_chars" != x; then 56987 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56988 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56989 fi 56990 56991 56992 windows_path="$new_path" 56993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56994 unix_path=`$CYGPATH -u "$windows_path"` 56995 new_path="$unix_path" 56996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56998 new_path="$unix_path" 56999 fi 57000 57001 if test "x$path" != "x$new_path"; then 57002 MSVC_DLL="$new_path" 57003 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57004 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57005 fi 57006 57007 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57008 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57009 57010 else 57011 # We're on a unix platform. Hooray! :) 57012 path="$MSVC_DLL" 57013 has_space=`$ECHO "$path" | $GREP " "` 57014 if test "x$has_space" != x; then 57015 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57016 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57017 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57018 fi 57019 57020 # Use eval to expand a potential ~ 57021 eval path="$path" 57022 if test ! -f "$path" && test ! -d "$path"; then 57023 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57024 fi 57025 57026 if test -d "$path"; then 57027 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57028 else 57029 dir="`$DIRNAME "$path"`" 57030 base="`$BASENAME "$path"`" 57031 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57032 fi 57033 fi 57034 fi 57035 57036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57037 $as_echo_n "checking for $DLL_NAME... " >&6; } 57038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57039 $as_echo "$MSVC_DLL" >&6; } 57040 else 57041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57042 $as_echo "incorrect, ignoring" >&6; } 57043 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57044 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57045 fi 57046 fi 57047 57048 if test "x$MSVC_DLL" = x; then 57049 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 57050 fi 57051 MSVCP_DLL="$MSVC_DLL" 57052 elif test "x$DEVKIT_MSVCP_DLL" != x; then 57053 57054 DLL_NAME="$MSVCP_NAME" 57055 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 57056 METHOD="devkit" 57057 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57058 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57059 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57060 57061 # Need to check if the found msvcr is correct architecture 57062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57063 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57064 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57066 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57067 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57068 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57069 CORRECT_MSVCR_ARCH="PE32 executable" 57070 else 57071 CORRECT_MSVCR_ARCH="PE32+ executable" 57072 fi 57073 else 57074 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57075 CORRECT_MSVCR_ARCH=386 57076 else 57077 CORRECT_MSVCR_ARCH=x86-64 57078 fi 57079 fi 57080 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57082 $as_echo "ok" >&6; } 57083 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57084 57085 # Only process if variable expands to non-empty 57086 57087 if test "x$MSVC_DLL" != x; then 57088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57089 57090 # Input might be given as Windows format, start by converting to 57091 # unix format. 57092 path="$MSVC_DLL" 57093 new_path=`$CYGPATH -u "$path"` 57094 57095 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57096 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57097 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57098 # "foo.exe" is OK but "foo" is an error. 57099 # 57100 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57101 # It is also a way to make sure we got the proper file name for the real test later on. 57102 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57103 if test "x$test_shortpath" = x; then 57104 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57105 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57106 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57107 fi 57108 57109 # Call helper function which possibly converts this using DOS-style short mode. 57110 # If so, the updated path is stored in $new_path. 57111 57112 input_path="$new_path" 57113 # Check if we need to convert this using DOS-style short mode. If the path 57114 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57115 # take no chances and rewrite it. 57116 # Note: m4 eats our [], so we need to use [ and ] instead. 57117 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57118 if test "x$has_forbidden_chars" != x; then 57119 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57120 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57121 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57122 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57123 # Going to short mode and back again did indeed matter. Since short mode is 57124 # case insensitive, let's make it lowercase to improve readability. 57125 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57126 # Now convert it back to Unix-style (cygpath) 57127 input_path=`$CYGPATH -u "$shortmode_path"` 57128 new_path="$input_path" 57129 fi 57130 fi 57131 57132 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57133 if test "x$test_cygdrive_prefix" = x; then 57134 # As a simple fix, exclude /usr/bin since it's not a real path. 57135 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57136 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57137 # a path prefixed by /cygdrive for fixpath to work. 57138 new_path="$CYGWIN_ROOT_PATH$input_path" 57139 fi 57140 fi 57141 57142 57143 if test "x$path" != "x$new_path"; then 57144 MSVC_DLL="$new_path" 57145 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57146 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57147 fi 57148 57149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57150 57151 path="$MSVC_DLL" 57152 has_colon=`$ECHO $path | $GREP ^.:` 57153 new_path="$path" 57154 if test "x$has_colon" = x; then 57155 # Not in mixed or Windows style, start by that. 57156 new_path=`cmd //c echo $path` 57157 fi 57158 57159 57160 input_path="$new_path" 57161 # Check if we need to convert this using DOS-style short mode. If the path 57162 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57163 # take no chances and rewrite it. 57164 # Note: m4 eats our [], so we need to use [ and ] instead. 57165 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57166 if test "x$has_forbidden_chars" != x; then 57167 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57168 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57169 fi 57170 57171 57172 windows_path="$new_path" 57173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57174 unix_path=`$CYGPATH -u "$windows_path"` 57175 new_path="$unix_path" 57176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57178 new_path="$unix_path" 57179 fi 57180 57181 if test "x$path" != "x$new_path"; then 57182 MSVC_DLL="$new_path" 57183 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57184 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57185 fi 57186 57187 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57188 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57189 57190 else 57191 # We're on a unix platform. Hooray! :) 57192 path="$MSVC_DLL" 57193 has_space=`$ECHO "$path" | $GREP " "` 57194 if test "x$has_space" != x; then 57195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57196 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57197 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57198 fi 57199 57200 # Use eval to expand a potential ~ 57201 eval path="$path" 57202 if test ! -f "$path" && test ! -d "$path"; then 57203 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57204 fi 57205 57206 if test -d "$path"; then 57207 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57208 else 57209 dir="`$DIRNAME "$path"`" 57210 base="`$BASENAME "$path"`" 57211 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57212 fi 57213 fi 57214 fi 57215 57216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57217 $as_echo_n "checking for $DLL_NAME... " >&6; } 57218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57219 $as_echo "$MSVC_DLL" >&6; } 57220 else 57221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57222 $as_echo "incorrect, ignoring" >&6; } 57223 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57224 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57225 fi 57226 fi 57227 57228 if test "x$MSVC_DLL" = x; then 57229 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 57230 fi 57231 MSVCP_DLL="$MSVC_DLL" 57232 else 57233 57234 DLL_NAME="${MSVCP_NAME}" 57235 MSVC_DLL= 57236 57237 if test "x$MSVC_DLL" = x; then 57238 # Probe: Using well-known location from Visual Studio 10.0 57239 if test "x$VCINSTALLDIR" != x; then 57240 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 57241 57242 windows_path="$CYGWIN_VC_INSTALL_DIR" 57243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57244 unix_path=`$CYGPATH -u "$windows_path"` 57245 CYGWIN_VC_INSTALL_DIR="$unix_path" 57246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57248 CYGWIN_VC_INSTALL_DIR="$unix_path" 57249 fi 57250 57251 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57252 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57253 else 57254 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57255 fi 57256 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 57257 57258 DLL_NAME="$DLL_NAME" 57259 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57260 METHOD="well-known location in VCINSTALLDIR" 57261 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57263 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57264 57265 # Need to check if the found msvcr is correct architecture 57266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57267 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57268 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57270 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57271 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57272 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57273 CORRECT_MSVCR_ARCH="PE32 executable" 57274 else 57275 CORRECT_MSVCR_ARCH="PE32+ executable" 57276 fi 57277 else 57278 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57279 CORRECT_MSVCR_ARCH=386 57280 else 57281 CORRECT_MSVCR_ARCH=x86-64 57282 fi 57283 fi 57284 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57286 $as_echo "ok" >&6; } 57287 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57288 57289 # Only process if variable expands to non-empty 57290 57291 if test "x$MSVC_DLL" != x; then 57292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57293 57294 # Input might be given as Windows format, start by converting to 57295 # unix format. 57296 path="$MSVC_DLL" 57297 new_path=`$CYGPATH -u "$path"` 57298 57299 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57300 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57301 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57302 # "foo.exe" is OK but "foo" is an error. 57303 # 57304 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57305 # It is also a way to make sure we got the proper file name for the real test later on. 57306 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57307 if test "x$test_shortpath" = x; then 57308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57309 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57310 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57311 fi 57312 57313 # Call helper function which possibly converts this using DOS-style short mode. 57314 # If so, the updated path is stored in $new_path. 57315 57316 input_path="$new_path" 57317 # Check if we need to convert this using DOS-style short mode. If the path 57318 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57319 # take no chances and rewrite it. 57320 # Note: m4 eats our [], so we need to use [ and ] instead. 57321 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57322 if test "x$has_forbidden_chars" != x; then 57323 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57324 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57325 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57326 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57327 # Going to short mode and back again did indeed matter. Since short mode is 57328 # case insensitive, let's make it lowercase to improve readability. 57329 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57330 # Now convert it back to Unix-style (cygpath) 57331 input_path=`$CYGPATH -u "$shortmode_path"` 57332 new_path="$input_path" 57333 fi 57334 fi 57335 57336 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57337 if test "x$test_cygdrive_prefix" = x; then 57338 # As a simple fix, exclude /usr/bin since it's not a real path. 57339 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57340 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57341 # a path prefixed by /cygdrive for fixpath to work. 57342 new_path="$CYGWIN_ROOT_PATH$input_path" 57343 fi 57344 fi 57345 57346 57347 if test "x$path" != "x$new_path"; then 57348 MSVC_DLL="$new_path" 57349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57350 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57351 fi 57352 57353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57354 57355 path="$MSVC_DLL" 57356 has_colon=`$ECHO $path | $GREP ^.:` 57357 new_path="$path" 57358 if test "x$has_colon" = x; then 57359 # Not in mixed or Windows style, start by that. 57360 new_path=`cmd //c echo $path` 57361 fi 57362 57363 57364 input_path="$new_path" 57365 # Check if we need to convert this using DOS-style short mode. If the path 57366 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57367 # take no chances and rewrite it. 57368 # Note: m4 eats our [], so we need to use [ and ] instead. 57369 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57370 if test "x$has_forbidden_chars" != x; then 57371 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57372 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57373 fi 57374 57375 57376 windows_path="$new_path" 57377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57378 unix_path=`$CYGPATH -u "$windows_path"` 57379 new_path="$unix_path" 57380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57382 new_path="$unix_path" 57383 fi 57384 57385 if test "x$path" != "x$new_path"; then 57386 MSVC_DLL="$new_path" 57387 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57388 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57389 fi 57390 57391 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57392 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57393 57394 else 57395 # We're on a unix platform. Hooray! :) 57396 path="$MSVC_DLL" 57397 has_space=`$ECHO "$path" | $GREP " "` 57398 if test "x$has_space" != x; then 57399 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57400 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57401 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57402 fi 57403 57404 # Use eval to expand a potential ~ 57405 eval path="$path" 57406 if test ! -f "$path" && test ! -d "$path"; then 57407 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57408 fi 57409 57410 if test -d "$path"; then 57411 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57412 else 57413 dir="`$DIRNAME "$path"`" 57414 base="`$BASENAME "$path"`" 57415 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57416 fi 57417 fi 57418 fi 57419 57420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57421 $as_echo_n "checking for $DLL_NAME... " >&6; } 57422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57423 $as_echo "$MSVC_DLL" >&6; } 57424 else 57425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57426 $as_echo "incorrect, ignoring" >&6; } 57427 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57428 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57429 fi 57430 fi 57431 57432 fi 57433 fi 57434 57435 if test "x$MSVC_DLL" = x; then 57436 # Probe: Check in the Boot JDK directory. 57437 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 57438 57439 DLL_NAME="$DLL_NAME" 57440 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57441 METHOD="well-known location in Boot JDK" 57442 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57444 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57445 57446 # Need to check if the found msvcr is correct architecture 57447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57448 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57449 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57451 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57452 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57453 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57454 CORRECT_MSVCR_ARCH="PE32 executable" 57455 else 57456 CORRECT_MSVCR_ARCH="PE32+ executable" 57457 fi 57458 else 57459 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57460 CORRECT_MSVCR_ARCH=386 57461 else 57462 CORRECT_MSVCR_ARCH=x86-64 57463 fi 57464 fi 57465 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57467 $as_echo "ok" >&6; } 57468 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57469 57470 # Only process if variable expands to non-empty 57471 57472 if test "x$MSVC_DLL" != x; then 57473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57474 57475 # Input might be given as Windows format, start by converting to 57476 # unix format. 57477 path="$MSVC_DLL" 57478 new_path=`$CYGPATH -u "$path"` 57479 57480 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57481 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57482 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57483 # "foo.exe" is OK but "foo" is an error. 57484 # 57485 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57486 # It is also a way to make sure we got the proper file name for the real test later on. 57487 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57488 if test "x$test_shortpath" = x; then 57489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57490 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57491 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57492 fi 57493 57494 # Call helper function which possibly converts this using DOS-style short mode. 57495 # If so, the updated path is stored in $new_path. 57496 57497 input_path="$new_path" 57498 # Check if we need to convert this using DOS-style short mode. If the path 57499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57500 # take no chances and rewrite it. 57501 # Note: m4 eats our [], so we need to use [ and ] instead. 57502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57503 if test "x$has_forbidden_chars" != x; then 57504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57505 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57506 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57507 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57508 # Going to short mode and back again did indeed matter. Since short mode is 57509 # case insensitive, let's make it lowercase to improve readability. 57510 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57511 # Now convert it back to Unix-style (cygpath) 57512 input_path=`$CYGPATH -u "$shortmode_path"` 57513 new_path="$input_path" 57514 fi 57515 fi 57516 57517 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57518 if test "x$test_cygdrive_prefix" = x; then 57519 # As a simple fix, exclude /usr/bin since it's not a real path. 57520 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57521 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57522 # a path prefixed by /cygdrive for fixpath to work. 57523 new_path="$CYGWIN_ROOT_PATH$input_path" 57524 fi 57525 fi 57526 57527 57528 if test "x$path" != "x$new_path"; then 57529 MSVC_DLL="$new_path" 57530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57531 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57532 fi 57533 57534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57535 57536 path="$MSVC_DLL" 57537 has_colon=`$ECHO $path | $GREP ^.:` 57538 new_path="$path" 57539 if test "x$has_colon" = x; then 57540 # Not in mixed or Windows style, start by that. 57541 new_path=`cmd //c echo $path` 57542 fi 57543 57544 57545 input_path="$new_path" 57546 # Check if we need to convert this using DOS-style short mode. If the path 57547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57548 # take no chances and rewrite it. 57549 # Note: m4 eats our [], so we need to use [ and ] instead. 57550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57551 if test "x$has_forbidden_chars" != x; then 57552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57553 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57554 fi 57555 57556 57557 windows_path="$new_path" 57558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57559 unix_path=`$CYGPATH -u "$windows_path"` 57560 new_path="$unix_path" 57561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57563 new_path="$unix_path" 57564 fi 57565 57566 if test "x$path" != "x$new_path"; then 57567 MSVC_DLL="$new_path" 57568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57569 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57570 fi 57571 57572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57574 57575 else 57576 # We're on a unix platform. Hooray! :) 57577 path="$MSVC_DLL" 57578 has_space=`$ECHO "$path" | $GREP " "` 57579 if test "x$has_space" != x; then 57580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57581 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57582 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57583 fi 57584 57585 # Use eval to expand a potential ~ 57586 eval path="$path" 57587 if test ! -f "$path" && test ! -d "$path"; then 57588 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57589 fi 57590 57591 if test -d "$path"; then 57592 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57593 else 57594 dir="`$DIRNAME "$path"`" 57595 base="`$BASENAME "$path"`" 57596 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57597 fi 57598 fi 57599 fi 57600 57601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57602 $as_echo_n "checking for $DLL_NAME... " >&6; } 57603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57604 $as_echo "$MSVC_DLL" >&6; } 57605 else 57606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57607 $as_echo "incorrect, ignoring" >&6; } 57608 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57609 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57610 fi 57611 fi 57612 57613 fi 57614 57615 if test "x$MSVC_DLL" = x; then 57616 # Probe: Look in the Windows system32 directory 57617 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 57618 57619 windows_path="$CYGWIN_SYSTEMROOT" 57620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57621 unix_path=`$CYGPATH -u "$windows_path"` 57622 CYGWIN_SYSTEMROOT="$unix_path" 57623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57625 CYGWIN_SYSTEMROOT="$unix_path" 57626 fi 57627 57628 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 57629 57630 DLL_NAME="$DLL_NAME" 57631 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57632 METHOD="well-known location in SYSTEMROOT" 57633 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57634 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57635 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57636 57637 # Need to check if the found msvcr is correct architecture 57638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57639 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57640 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57642 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57643 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57644 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57645 CORRECT_MSVCR_ARCH="PE32 executable" 57646 else 57647 CORRECT_MSVCR_ARCH="PE32+ executable" 57648 fi 57649 else 57650 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57651 CORRECT_MSVCR_ARCH=386 57652 else 57653 CORRECT_MSVCR_ARCH=x86-64 57654 fi 57655 fi 57656 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57658 $as_echo "ok" >&6; } 57659 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57660 57661 # Only process if variable expands to non-empty 57662 57663 if test "x$MSVC_DLL" != x; then 57664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57665 57666 # Input might be given as Windows format, start by converting to 57667 # unix format. 57668 path="$MSVC_DLL" 57669 new_path=`$CYGPATH -u "$path"` 57670 57671 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57672 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57673 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57674 # "foo.exe" is OK but "foo" is an error. 57675 # 57676 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57677 # It is also a way to make sure we got the proper file name for the real test later on. 57678 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57679 if test "x$test_shortpath" = x; then 57680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57681 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57682 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57683 fi 57684 57685 # Call helper function which possibly converts this using DOS-style short mode. 57686 # If so, the updated path is stored in $new_path. 57687 57688 input_path="$new_path" 57689 # Check if we need to convert this using DOS-style short mode. If the path 57690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57691 # take no chances and rewrite it. 57692 # Note: m4 eats our [], so we need to use [ and ] instead. 57693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57694 if test "x$has_forbidden_chars" != x; then 57695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57696 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57697 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57698 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57699 # Going to short mode and back again did indeed matter. Since short mode is 57700 # case insensitive, let's make it lowercase to improve readability. 57701 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57702 # Now convert it back to Unix-style (cygpath) 57703 input_path=`$CYGPATH -u "$shortmode_path"` 57704 new_path="$input_path" 57705 fi 57706 fi 57707 57708 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57709 if test "x$test_cygdrive_prefix" = x; then 57710 # As a simple fix, exclude /usr/bin since it's not a real path. 57711 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57712 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57713 # a path prefixed by /cygdrive for fixpath to work. 57714 new_path="$CYGWIN_ROOT_PATH$input_path" 57715 fi 57716 fi 57717 57718 57719 if test "x$path" != "x$new_path"; then 57720 MSVC_DLL="$new_path" 57721 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57722 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57723 fi 57724 57725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57726 57727 path="$MSVC_DLL" 57728 has_colon=`$ECHO $path | $GREP ^.:` 57729 new_path="$path" 57730 if test "x$has_colon" = x; then 57731 # Not in mixed or Windows style, start by that. 57732 new_path=`cmd //c echo $path` 57733 fi 57734 57735 57736 input_path="$new_path" 57737 # Check if we need to convert this using DOS-style short mode. If the path 57738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57739 # take no chances and rewrite it. 57740 # Note: m4 eats our [], so we need to use [ and ] instead. 57741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57742 if test "x$has_forbidden_chars" != x; then 57743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57744 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57745 fi 57746 57747 57748 windows_path="$new_path" 57749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57750 unix_path=`$CYGPATH -u "$windows_path"` 57751 new_path="$unix_path" 57752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57754 new_path="$unix_path" 57755 fi 57756 57757 if test "x$path" != "x$new_path"; then 57758 MSVC_DLL="$new_path" 57759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57760 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57761 fi 57762 57763 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57764 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57765 57766 else 57767 # We're on a unix platform. Hooray! :) 57768 path="$MSVC_DLL" 57769 has_space=`$ECHO "$path" | $GREP " "` 57770 if test "x$has_space" != x; then 57771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57772 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57773 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57774 fi 57775 57776 # Use eval to expand a potential ~ 57777 eval path="$path" 57778 if test ! -f "$path" && test ! -d "$path"; then 57779 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57780 fi 57781 57782 if test -d "$path"; then 57783 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57784 else 57785 dir="`$DIRNAME "$path"`" 57786 base="`$BASENAME "$path"`" 57787 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57788 fi 57789 fi 57790 fi 57791 57792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57793 $as_echo_n "checking for $DLL_NAME... " >&6; } 57794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57795 $as_echo "$MSVC_DLL" >&6; } 57796 else 57797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57798 $as_echo "incorrect, ignoring" >&6; } 57799 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57800 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57801 fi 57802 fi 57803 57804 fi 57805 57806 if test "x$MSVC_DLL" = x; then 57807 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 57808 if test "x$VS100COMNTOOLS" != x; then 57809 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 57810 57811 windows_path="$CYGWIN_VS_TOOLS_DIR" 57812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57813 unix_path=`$CYGPATH -u "$windows_path"` 57814 CYGWIN_VS_TOOLS_DIR="$unix_path" 57815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57816 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57817 CYGWIN_VS_TOOLS_DIR="$unix_path" 57818 fi 57819 57820 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57821 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57822 | $GREP -i /x64/ | $HEAD --lines 1` 57823 else 57824 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57825 | $GREP -i /x86/ | $HEAD --lines 1` 57826 fi 57827 57828 DLL_NAME="$DLL_NAME" 57829 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57830 METHOD="search of VS100COMNTOOLS" 57831 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57832 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57833 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57834 57835 # Need to check if the found msvcr is correct architecture 57836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57837 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57838 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57840 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57841 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57842 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57843 CORRECT_MSVCR_ARCH="PE32 executable" 57844 else 57845 CORRECT_MSVCR_ARCH="PE32+ executable" 57846 fi 57847 else 57848 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57849 CORRECT_MSVCR_ARCH=386 57850 else 57851 CORRECT_MSVCR_ARCH=x86-64 57852 fi 57853 fi 57854 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57856 $as_echo "ok" >&6; } 57857 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57858 57859 # Only process if variable expands to non-empty 57860 57861 if test "x$MSVC_DLL" != x; then 57862 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57863 57864 # Input might be given as Windows format, start by converting to 57865 # unix format. 57866 path="$MSVC_DLL" 57867 new_path=`$CYGPATH -u "$path"` 57868 57869 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57870 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57871 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57872 # "foo.exe" is OK but "foo" is an error. 57873 # 57874 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57875 # It is also a way to make sure we got the proper file name for the real test later on. 57876 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57877 if test "x$test_shortpath" = x; then 57878 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57879 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57880 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57881 fi 57882 57883 # Call helper function which possibly converts this using DOS-style short mode. 57884 # If so, the updated path is stored in $new_path. 57885 57886 input_path="$new_path" 57887 # Check if we need to convert this using DOS-style short mode. If the path 57888 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57889 # take no chances and rewrite it. 57890 # Note: m4 eats our [], so we need to use [ and ] instead. 57891 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57892 if test "x$has_forbidden_chars" != x; then 57893 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57894 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57895 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57896 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57897 # Going to short mode and back again did indeed matter. Since short mode is 57898 # case insensitive, let's make it lowercase to improve readability. 57899 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57900 # Now convert it back to Unix-style (cygpath) 57901 input_path=`$CYGPATH -u "$shortmode_path"` 57902 new_path="$input_path" 57903 fi 57904 fi 57905 57906 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57907 if test "x$test_cygdrive_prefix" = x; then 57908 # As a simple fix, exclude /usr/bin since it's not a real path. 57909 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57910 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57911 # a path prefixed by /cygdrive for fixpath to work. 57912 new_path="$CYGWIN_ROOT_PATH$input_path" 57913 fi 57914 fi 57915 57916 57917 if test "x$path" != "x$new_path"; then 57918 MSVC_DLL="$new_path" 57919 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57920 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57921 fi 57922 57923 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57924 57925 path="$MSVC_DLL" 57926 has_colon=`$ECHO $path | $GREP ^.:` 57927 new_path="$path" 57928 if test "x$has_colon" = x; then 57929 # Not in mixed or Windows style, start by that. 57930 new_path=`cmd //c echo $path` 57931 fi 57932 57933 57934 input_path="$new_path" 57935 # Check if we need to convert this using DOS-style short mode. If the path 57936 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57937 # take no chances and rewrite it. 57938 # Note: m4 eats our [], so we need to use [ and ] instead. 57939 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57940 if test "x$has_forbidden_chars" != x; then 57941 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57942 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57943 fi 57944 57945 57946 windows_path="$new_path" 57947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57948 unix_path=`$CYGPATH -u "$windows_path"` 57949 new_path="$unix_path" 57950 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57951 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57952 new_path="$unix_path" 57953 fi 57954 57955 if test "x$path" != "x$new_path"; then 57956 MSVC_DLL="$new_path" 57957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57958 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57959 fi 57960 57961 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57962 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57963 57964 else 57965 # We're on a unix platform. Hooray! :) 57966 path="$MSVC_DLL" 57967 has_space=`$ECHO "$path" | $GREP " "` 57968 if test "x$has_space" != x; then 57969 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57970 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57971 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57972 fi 57973 57974 # Use eval to expand a potential ~ 57975 eval path="$path" 57976 if test ! -f "$path" && test ! -d "$path"; then 57977 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57978 fi 57979 57980 if test -d "$path"; then 57981 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57982 else 57983 dir="`$DIRNAME "$path"`" 57984 base="`$BASENAME "$path"`" 57985 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57986 fi 57987 fi 57988 fi 57989 57990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57991 $as_echo_n "checking for $DLL_NAME... " >&6; } 57992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57993 $as_echo "$MSVC_DLL" >&6; } 57994 else 57995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57996 $as_echo "incorrect, ignoring" >&6; } 57997 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57998 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57999 fi 58000 fi 58001 58002 fi 58003 fi 58004 58005 if test "x$MSVC_DLL" = x; then 58006 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 58007 # (This was the original behaviour; kept since it might turn something up) 58008 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 58009 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58010 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58011 | $GREP x64 | $HEAD --lines 1` 58012 else 58013 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58014 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 58015 if test "x$POSSIBLE_MSVC_DLL" = x; then 58016 # We're grasping at straws now... 58017 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 58018 | $HEAD --lines 1` 58019 fi 58020 fi 58021 58022 58023 DLL_NAME="$DLL_NAME" 58024 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 58025 METHOD="search of VCINSTALLDIR" 58026 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 58027 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 58028 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 58029 58030 # Need to check if the found msvcr is correct architecture 58031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 58032 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 58033 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 58034 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58035 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 58036 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 58037 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 58038 CORRECT_MSVCR_ARCH="PE32 executable" 58039 else 58040 CORRECT_MSVCR_ARCH="PE32+ executable" 58041 fi 58042 else 58043 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 58044 CORRECT_MSVCR_ARCH=386 58045 else 58046 CORRECT_MSVCR_ARCH=x86-64 58047 fi 58048 fi 58049 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 58050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 58051 $as_echo "ok" >&6; } 58052 MSVC_DLL="$POSSIBLE_MSVC_DLL" 58053 58054 # Only process if variable expands to non-empty 58055 58056 if test "x$MSVC_DLL" != x; then 58057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58058 58059 # Input might be given as Windows format, start by converting to 58060 # unix format. 58061 path="$MSVC_DLL" 58062 new_path=`$CYGPATH -u "$path"` 58063 58064 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 58065 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 58066 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 58067 # "foo.exe" is OK but "foo" is an error. 58068 # 58069 # This test is therefore slightly more accurate than "test -f" to check for file precense. 58070 # It is also a way to make sure we got the proper file name for the real test later on. 58071 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 58072 if test "x$test_shortpath" = x; then 58073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58074 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58075 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 58076 fi 58077 58078 # Call helper function which possibly converts this using DOS-style short mode. 58079 # If so, the updated path is stored in $new_path. 58080 58081 input_path="$new_path" 58082 # Check if we need to convert this using DOS-style short mode. If the path 58083 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58084 # take no chances and rewrite it. 58085 # Note: m4 eats our [], so we need to use [ and ] instead. 58086 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58087 if test "x$has_forbidden_chars" != x; then 58088 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58089 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58090 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58091 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58092 # Going to short mode and back again did indeed matter. Since short mode is 58093 # case insensitive, let's make it lowercase to improve readability. 58094 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58095 # Now convert it back to Unix-style (cygpath) 58096 input_path=`$CYGPATH -u "$shortmode_path"` 58097 new_path="$input_path" 58098 fi 58099 fi 58100 58101 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58102 if test "x$test_cygdrive_prefix" = x; then 58103 # As a simple fix, exclude /usr/bin since it's not a real path. 58104 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58105 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58106 # a path prefixed by /cygdrive for fixpath to work. 58107 new_path="$CYGWIN_ROOT_PATH$input_path" 58108 fi 58109 fi 58110 58111 58112 if test "x$path" != "x$new_path"; then 58113 MSVC_DLL="$new_path" 58114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58115 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58116 fi 58117 58118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58119 58120 path="$MSVC_DLL" 58121 has_colon=`$ECHO $path | $GREP ^.:` 58122 new_path="$path" 58123 if test "x$has_colon" = x; then 58124 # Not in mixed or Windows style, start by that. 58125 new_path=`cmd //c echo $path` 58126 fi 58127 58128 58129 input_path="$new_path" 58130 # Check if we need to convert this using DOS-style short mode. If the path 58131 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58132 # take no chances and rewrite it. 58133 # Note: m4 eats our [], so we need to use [ and ] instead. 58134 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58135 if test "x$has_forbidden_chars" != x; then 58136 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58137 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58138 fi 58139 58140 58141 windows_path="$new_path" 58142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58143 unix_path=`$CYGPATH -u "$windows_path"` 58144 new_path="$unix_path" 58145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58147 new_path="$unix_path" 58148 fi 58149 58150 if test "x$path" != "x$new_path"; then 58151 MSVC_DLL="$new_path" 58152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58153 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58154 fi 58155 58156 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58157 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58158 58159 else 58160 # We're on a unix platform. Hooray! :) 58161 path="$MSVC_DLL" 58162 has_space=`$ECHO "$path" | $GREP " "` 58163 if test "x$has_space" != x; then 58164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58165 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58166 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58167 fi 58168 58169 # Use eval to expand a potential ~ 58170 eval path="$path" 58171 if test ! -f "$path" && test ! -d "$path"; then 58172 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 58173 fi 58174 58175 if test -d "$path"; then 58176 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 58177 else 58178 dir="`$DIRNAME "$path"`" 58179 base="`$BASENAME "$path"`" 58180 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 58181 fi 58182 fi 58183 fi 58184 58185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58186 $as_echo_n "checking for $DLL_NAME... " >&6; } 58187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 58188 $as_echo "$MSVC_DLL" >&6; } 58189 else 58190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 58191 $as_echo "incorrect, ignoring" >&6; } 58192 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 58193 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 58194 fi 58195 fi 58196 58197 fi 58198 fi 58199 58200 if test "x$MSVC_DLL" = x; then 58201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58202 $as_echo_n "checking for $DLL_NAME... " >&6; } 58203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58204 $as_echo "no" >&6; } 58205 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 58206 fi 58207 58208 MSVCP_DLL="$MSVC_DLL" 58209 fi 58210 58211 fi 58212 58213 fi 58214 58215 58216 if test "x$NEEDS_LIB_X11" = xfalse; then 58217 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 58218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 58219 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 58220 fi 58221 X_CFLAGS= 58222 X_LIBS= 58223 else 58224 58225 if test "x${with_x}" = xno; then 58226 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 58227 fi 58228 58229 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 58230 # The user has specified a X11 base directory. Use it for includes and 58231 # libraries, unless explicitly overridden. 58232 if test "x$x_includes" = xNONE; then 58233 x_includes="${with_x}/include" 58234 fi 58235 if test "x$x_libraries" = xNONE; then 58236 x_libraries="${with_x}/lib" 58237 fi 58238 else 58239 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 58240 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 58241 # --x-libraries for the sysroot, if that seems to be correct. 58242 if test "x$SYSROOT" != "x"; then 58243 if test "x$x_includes" = xNONE; then 58244 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 58245 x_includes="$SYSROOT/usr/X11R6/include" 58246 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 58247 x_includes="$SYSROOT/usr/include" 58248 fi 58249 fi 58250 if test "x$x_libraries" = xNONE; then 58251 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 58252 x_libraries="$SYSROOT/usr/X11R6/lib" 58253 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58254 x_libraries="$SYSROOT/usr/lib64" 58255 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 58256 x_libraries="$SYSROOT/usr/lib" 58257 fi 58258 fi 58259 fi 58260 fi 58261 58262 # Now let autoconf do it's magic 58263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 58264 $as_echo_n "checking for X... " >&6; } 58265 58266 58267 # Check whether --with-x was given. 58268 if test "${with_x+set}" = set; then : 58269 withval=$with_x; 58270 fi 58271 58272 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 58273 if test "x$with_x" = xno; then 58274 # The user explicitly disabled X. 58275 have_x=disabled 58276 else 58277 case $x_includes,$x_libraries in #( 58278 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 58279 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 58280 $as_echo_n "(cached) " >&6 58281 else 58282 # One or both of the vars are not set, and there is no cached value. 58283 ac_x_includes=no ac_x_libraries=no 58284 rm -f -r conftest.dir 58285 if mkdir conftest.dir; then 58286 cd conftest.dir 58287 cat >Imakefile <<'_ACEOF' 58288 incroot: 58289 @echo incroot='${INCROOT}' 58290 usrlibdir: 58291 @echo usrlibdir='${USRLIBDIR}' 58292 libdir: 58293 @echo libdir='${LIBDIR}' 58294 _ACEOF 58295 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 58296 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 58297 for ac_var in incroot usrlibdir libdir; do 58298 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 58299 done 58300 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 58301 for ac_extension in a so sl dylib la dll; do 58302 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 58303 test -f "$ac_im_libdir/libX11.$ac_extension"; then 58304 ac_im_usrlibdir=$ac_im_libdir; break 58305 fi 58306 done 58307 # Screen out bogus values from the imake configuration. They are 58308 # bogus both because they are the default anyway, and because 58309 # using them would break gcc on systems where it needs fixed includes. 58310 case $ac_im_incroot in 58311 /usr/include) ac_x_includes= ;; 58312 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 58313 esac 58314 case $ac_im_usrlibdir in 58315 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 58316 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 58317 esac 58318 fi 58319 cd .. 58320 rm -f -r conftest.dir 58321 fi 58322 58323 # Standard set of common directories for X headers. 58324 # Check X11 before X11Rn because it is often a symlink to the current release. 58325 ac_x_header_dirs=' 58326 /usr/X11/include 58327 /usr/X11R7/include 58328 /usr/X11R6/include 58329 /usr/X11R5/include 58330 /usr/X11R4/include 58331 58332 /usr/include/X11 58333 /usr/include/X11R7 58334 /usr/include/X11R6 58335 /usr/include/X11R5 58336 /usr/include/X11R4 58337 58338 /usr/local/X11/include 58339 /usr/local/X11R7/include 58340 /usr/local/X11R6/include 58341 /usr/local/X11R5/include 58342 /usr/local/X11R4/include 58343 58344 /usr/local/include/X11 58345 /usr/local/include/X11R7 58346 /usr/local/include/X11R6 58347 /usr/local/include/X11R5 58348 /usr/local/include/X11R4 58349 58350 /usr/X386/include 58351 /usr/x386/include 58352 /usr/XFree86/include/X11 58353 58354 /usr/include 58355 /usr/local/include 58356 /usr/unsupported/include 58357 /usr/athena/include 58358 /usr/local/x11r5/include 58359 /usr/lpp/Xamples/include 58360 58361 /usr/openwin/include 58362 /usr/openwin/share/include' 58363 58364 if test "$ac_x_includes" = no; then 58365 # Guess where to find include files, by looking for Xlib.h. 58366 # First, try using that file with no special directory specified. 58367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58368 /* end confdefs.h. */ 58369 #include <X11/Xlib.h> 58370 _ACEOF 58371 if ac_fn_cxx_try_cpp "$LINENO"; then : 58372 # We can compile using X headers with no special include directory. 58373 ac_x_includes= 58374 else 58375 for ac_dir in $ac_x_header_dirs; do 58376 if test -r "$ac_dir/X11/Xlib.h"; then 58377 ac_x_includes=$ac_dir 58378 break 58379 fi 58380 done 58381 fi 58382 rm -f conftest.err conftest.i conftest.$ac_ext 58383 fi # $ac_x_includes = no 58384 58385 if test "$ac_x_libraries" = no; then 58386 # Check for the libraries. 58387 # See if we find them without any special options. 58388 # Don't add to $LIBS permanently. 58389 ac_save_LIBS=$LIBS 58390 LIBS="-lX11 $LIBS" 58391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58392 /* end confdefs.h. */ 58393 #include <X11/Xlib.h> 58394 int 58395 main () 58396 { 58397 XrmInitialize () 58398 ; 58399 return 0; 58400 } 58401 _ACEOF 58402 if ac_fn_cxx_try_link "$LINENO"; then : 58403 LIBS=$ac_save_LIBS 58404 # We can link X programs with no special library path. 58405 ac_x_libraries= 58406 else 58407 LIBS=$ac_save_LIBS 58408 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 58409 do 58410 # Don't even attempt the hair of trying to link an X program! 58411 for ac_extension in a so sl dylib la dll; do 58412 if test -r "$ac_dir/libX11.$ac_extension"; then 58413 ac_x_libraries=$ac_dir 58414 break 2 58415 fi 58416 done 58417 done 58418 fi 58419 rm -f core conftest.err conftest.$ac_objext \ 58420 conftest$ac_exeext conftest.$ac_ext 58421 fi # $ac_x_libraries = no 58422 58423 case $ac_x_includes,$ac_x_libraries in #( 58424 no,* | *,no | *\'*) 58425 # Didn't find X, or a directory has "'" in its name. 58426 ac_cv_have_x="have_x=no";; #( 58427 *) 58428 # Record where we found X for the cache. 58429 ac_cv_have_x="have_x=yes\ 58430 ac_x_includes='$ac_x_includes'\ 58431 ac_x_libraries='$ac_x_libraries'" 58432 esac 58433 fi 58434 ;; #( 58435 *) have_x=yes;; 58436 esac 58437 eval "$ac_cv_have_x" 58438 fi # $with_x != no 58439 58440 if test "$have_x" != yes; then 58441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 58442 $as_echo "$have_x" >&6; } 58443 no_x=yes 58444 else 58445 # If each of the values was on the command line, it overrides each guess. 58446 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 58447 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 58448 # Update the cache value to reflect the command line values. 58449 ac_cv_have_x="have_x=yes\ 58450 ac_x_includes='$x_includes'\ 58451 ac_x_libraries='$x_libraries'" 58452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 58453 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 58454 fi 58455 58456 if test "$no_x" = yes; then 58457 # Not all programs may use this symbol, but it does not hurt to define it. 58458 58459 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 58460 58461 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 58462 else 58463 if test -n "$x_includes"; then 58464 X_CFLAGS="$X_CFLAGS -I$x_includes" 58465 fi 58466 58467 # It would also be nice to do this for all -L options, not just this one. 58468 if test -n "$x_libraries"; then 58469 X_LIBS="$X_LIBS -L$x_libraries" 58470 # For Solaris; some versions of Sun CC require a space after -R and 58471 # others require no space. Words are not sufficient . . . . 58472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 58473 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 58474 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 58475 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 58476 ac_cxx_werror_flag=yes 58477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58478 /* end confdefs.h. */ 58479 58480 int 58481 main () 58482 { 58483 58484 ; 58485 return 0; 58486 } 58487 _ACEOF 58488 if ac_fn_cxx_try_link "$LINENO"; then : 58489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58490 $as_echo "no" >&6; } 58491 X_LIBS="$X_LIBS -R$x_libraries" 58492 else 58493 LIBS="$ac_xsave_LIBS -R $x_libraries" 58494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58495 /* end confdefs.h. */ 58496 58497 int 58498 main () 58499 { 58500 58501 ; 58502 return 0; 58503 } 58504 _ACEOF 58505 if ac_fn_cxx_try_link "$LINENO"; then : 58506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58507 $as_echo "yes" >&6; } 58508 X_LIBS="$X_LIBS -R $x_libraries" 58509 else 58510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 58511 $as_echo "neither works" >&6; } 58512 fi 58513 rm -f core conftest.err conftest.$ac_objext \ 58514 conftest$ac_exeext conftest.$ac_ext 58515 fi 58516 rm -f core conftest.err conftest.$ac_objext \ 58517 conftest$ac_exeext conftest.$ac_ext 58518 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 58519 LIBS=$ac_xsave_LIBS 58520 fi 58521 58522 # Check for system-dependent libraries X programs must link with. 58523 # Do this before checking for the system-independent R6 libraries 58524 # (-lICE), since we may need -lsocket or whatever for X linking. 58525 58526 if test "$ISC" = yes; then 58527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 58528 else 58529 # Martyn Johnson says this is needed for Ultrix, if the X 58530 # libraries were built with DECnet support. And Karl Berry says 58531 # the Alpha needs dnet_stub (dnet does not exist). 58532 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 58533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58534 /* end confdefs.h. */ 58535 58536 /* Override any GCC internal prototype to avoid an error. 58537 Use char because int might match the return type of a GCC 58538 builtin and then its argument prototype would still apply. */ 58539 #ifdef __cplusplus 58540 extern "C" 58541 #endif 58542 char XOpenDisplay (); 58543 int 58544 main () 58545 { 58546 return XOpenDisplay (); 58547 ; 58548 return 0; 58549 } 58550 _ACEOF 58551 if ac_fn_cxx_try_link "$LINENO"; then : 58552 58553 else 58554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 58555 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 58556 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 58557 $as_echo_n "(cached) " >&6 58558 else 58559 ac_check_lib_save_LIBS=$LIBS 58560 LIBS="-ldnet $LIBS" 58561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58562 /* end confdefs.h. */ 58563 58564 /* Override any GCC internal prototype to avoid an error. 58565 Use char because int might match the return type of a GCC 58566 builtin and then its argument prototype would still apply. */ 58567 #ifdef __cplusplus 58568 extern "C" 58569 #endif 58570 char dnet_ntoa (); 58571 int 58572 main () 58573 { 58574 return dnet_ntoa (); 58575 ; 58576 return 0; 58577 } 58578 _ACEOF 58579 if ac_fn_cxx_try_link "$LINENO"; then : 58580 ac_cv_lib_dnet_dnet_ntoa=yes 58581 else 58582 ac_cv_lib_dnet_dnet_ntoa=no 58583 fi 58584 rm -f core conftest.err conftest.$ac_objext \ 58585 conftest$ac_exeext conftest.$ac_ext 58586 LIBS=$ac_check_lib_save_LIBS 58587 fi 58588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 58589 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 58590 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 58591 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 58592 fi 58593 58594 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 58595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 58596 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 58597 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 58598 $as_echo_n "(cached) " >&6 58599 else 58600 ac_check_lib_save_LIBS=$LIBS 58601 LIBS="-ldnet_stub $LIBS" 58602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58603 /* end confdefs.h. */ 58604 58605 /* Override any GCC internal prototype to avoid an error. 58606 Use char because int might match the return type of a GCC 58607 builtin and then its argument prototype would still apply. */ 58608 #ifdef __cplusplus 58609 extern "C" 58610 #endif 58611 char dnet_ntoa (); 58612 int 58613 main () 58614 { 58615 return dnet_ntoa (); 58616 ; 58617 return 0; 58618 } 58619 _ACEOF 58620 if ac_fn_cxx_try_link "$LINENO"; then : 58621 ac_cv_lib_dnet_stub_dnet_ntoa=yes 58622 else 58623 ac_cv_lib_dnet_stub_dnet_ntoa=no 58624 fi 58625 rm -f core conftest.err conftest.$ac_objext \ 58626 conftest$ac_exeext conftest.$ac_ext 58627 LIBS=$ac_check_lib_save_LIBS 58628 fi 58629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 58630 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 58631 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 58632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 58633 fi 58634 58635 fi 58636 fi 58637 rm -f core conftest.err conftest.$ac_objext \ 58638 conftest$ac_exeext conftest.$ac_ext 58639 LIBS="$ac_xsave_LIBS" 58640 58641 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 58642 # to get the SysV transport functions. 58643 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 58644 # needs -lnsl. 58645 # The nsl library prevents programs from opening the X display 58646 # on Irix 5.2, according to T.E. Dickey. 58647 # The functions gethostbyname, getservbyname, and inet_addr are 58648 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 58649 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 58650 if test "x$ac_cv_func_gethostbyname" = xyes; then : 58651 58652 fi 58653 58654 if test $ac_cv_func_gethostbyname = no; then 58655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 58656 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 58657 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 58658 $as_echo_n "(cached) " >&6 58659 else 58660 ac_check_lib_save_LIBS=$LIBS 58661 LIBS="-lnsl $LIBS" 58662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58663 /* end confdefs.h. */ 58664 58665 /* Override any GCC internal prototype to avoid an error. 58666 Use char because int might match the return type of a GCC 58667 builtin and then its argument prototype would still apply. */ 58668 #ifdef __cplusplus 58669 extern "C" 58670 #endif 58671 char gethostbyname (); 58672 int 58673 main () 58674 { 58675 return gethostbyname (); 58676 ; 58677 return 0; 58678 } 58679 _ACEOF 58680 if ac_fn_cxx_try_link "$LINENO"; then : 58681 ac_cv_lib_nsl_gethostbyname=yes 58682 else 58683 ac_cv_lib_nsl_gethostbyname=no 58684 fi 58685 rm -f core conftest.err conftest.$ac_objext \ 58686 conftest$ac_exeext conftest.$ac_ext 58687 LIBS=$ac_check_lib_save_LIBS 58688 fi 58689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 58690 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 58691 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 58692 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 58693 fi 58694 58695 if test $ac_cv_lib_nsl_gethostbyname = no; then 58696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 58697 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 58698 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 58699 $as_echo_n "(cached) " >&6 58700 else 58701 ac_check_lib_save_LIBS=$LIBS 58702 LIBS="-lbsd $LIBS" 58703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58704 /* end confdefs.h. */ 58705 58706 /* Override any GCC internal prototype to avoid an error. 58707 Use char because int might match the return type of a GCC 58708 builtin and then its argument prototype would still apply. */ 58709 #ifdef __cplusplus 58710 extern "C" 58711 #endif 58712 char gethostbyname (); 58713 int 58714 main () 58715 { 58716 return gethostbyname (); 58717 ; 58718 return 0; 58719 } 58720 _ACEOF 58721 if ac_fn_cxx_try_link "$LINENO"; then : 58722 ac_cv_lib_bsd_gethostbyname=yes 58723 else 58724 ac_cv_lib_bsd_gethostbyname=no 58725 fi 58726 rm -f core conftest.err conftest.$ac_objext \ 58727 conftest$ac_exeext conftest.$ac_ext 58728 LIBS=$ac_check_lib_save_LIBS 58729 fi 58730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 58731 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 58732 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 58733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 58734 fi 58735 58736 fi 58737 fi 58738 58739 # lieder@skyler.mavd.honeywell.com says without -lsocket, 58740 # socket/setsockopt and other routines are undefined under SCO ODT 58741 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 58742 # on later versions), says Simon Leinen: it contains gethostby* 58743 # variants that don't use the name server (or something). -lsocket 58744 # must be given before -lnsl if both are needed. We assume that 58745 # if connect needs -lnsl, so does gethostbyname. 58746 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 58747 if test "x$ac_cv_func_connect" = xyes; then : 58748 58749 fi 58750 58751 if test $ac_cv_func_connect = no; then 58752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 58753 $as_echo_n "checking for connect in -lsocket... " >&6; } 58754 if ${ac_cv_lib_socket_connect+:} false; then : 58755 $as_echo_n "(cached) " >&6 58756 else 58757 ac_check_lib_save_LIBS=$LIBS 58758 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 58759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58760 /* end confdefs.h. */ 58761 58762 /* Override any GCC internal prototype to avoid an error. 58763 Use char because int might match the return type of a GCC 58764 builtin and then its argument prototype would still apply. */ 58765 #ifdef __cplusplus 58766 extern "C" 58767 #endif 58768 char connect (); 58769 int 58770 main () 58771 { 58772 return connect (); 58773 ; 58774 return 0; 58775 } 58776 _ACEOF 58777 if ac_fn_cxx_try_link "$LINENO"; then : 58778 ac_cv_lib_socket_connect=yes 58779 else 58780 ac_cv_lib_socket_connect=no 58781 fi 58782 rm -f core conftest.err conftest.$ac_objext \ 58783 conftest$ac_exeext conftest.$ac_ext 58784 LIBS=$ac_check_lib_save_LIBS 58785 fi 58786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 58787 $as_echo "$ac_cv_lib_socket_connect" >&6; } 58788 if test "x$ac_cv_lib_socket_connect" = xyes; then : 58789 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 58790 fi 58791 58792 fi 58793 58794 # Guillermo Gomez says -lposix is necessary on A/UX. 58795 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 58796 if test "x$ac_cv_func_remove" = xyes; then : 58797 58798 fi 58799 58800 if test $ac_cv_func_remove = no; then 58801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 58802 $as_echo_n "checking for remove in -lposix... " >&6; } 58803 if ${ac_cv_lib_posix_remove+:} false; then : 58804 $as_echo_n "(cached) " >&6 58805 else 58806 ac_check_lib_save_LIBS=$LIBS 58807 LIBS="-lposix $LIBS" 58808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58809 /* end confdefs.h. */ 58810 58811 /* Override any GCC internal prototype to avoid an error. 58812 Use char because int might match the return type of a GCC 58813 builtin and then its argument prototype would still apply. */ 58814 #ifdef __cplusplus 58815 extern "C" 58816 #endif 58817 char remove (); 58818 int 58819 main () 58820 { 58821 return remove (); 58822 ; 58823 return 0; 58824 } 58825 _ACEOF 58826 if ac_fn_cxx_try_link "$LINENO"; then : 58827 ac_cv_lib_posix_remove=yes 58828 else 58829 ac_cv_lib_posix_remove=no 58830 fi 58831 rm -f core conftest.err conftest.$ac_objext \ 58832 conftest$ac_exeext conftest.$ac_ext 58833 LIBS=$ac_check_lib_save_LIBS 58834 fi 58835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 58836 $as_echo "$ac_cv_lib_posix_remove" >&6; } 58837 if test "x$ac_cv_lib_posix_remove" = xyes; then : 58838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 58839 fi 58840 58841 fi 58842 58843 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 58844 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 58845 if test "x$ac_cv_func_shmat" = xyes; then : 58846 58847 fi 58848 58849 if test $ac_cv_func_shmat = no; then 58850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 58851 $as_echo_n "checking for shmat in -lipc... " >&6; } 58852 if ${ac_cv_lib_ipc_shmat+:} false; then : 58853 $as_echo_n "(cached) " >&6 58854 else 58855 ac_check_lib_save_LIBS=$LIBS 58856 LIBS="-lipc $LIBS" 58857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58858 /* end confdefs.h. */ 58859 58860 /* Override any GCC internal prototype to avoid an error. 58861 Use char because int might match the return type of a GCC 58862 builtin and then its argument prototype would still apply. */ 58863 #ifdef __cplusplus 58864 extern "C" 58865 #endif 58866 char shmat (); 58867 int 58868 main () 58869 { 58870 return shmat (); 58871 ; 58872 return 0; 58873 } 58874 _ACEOF 58875 if ac_fn_cxx_try_link "$LINENO"; then : 58876 ac_cv_lib_ipc_shmat=yes 58877 else 58878 ac_cv_lib_ipc_shmat=no 58879 fi 58880 rm -f core conftest.err conftest.$ac_objext \ 58881 conftest$ac_exeext conftest.$ac_ext 58882 LIBS=$ac_check_lib_save_LIBS 58883 fi 58884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 58885 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 58886 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 58887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 58888 fi 58889 58890 fi 58891 fi 58892 58893 # Check for libraries that X11R6 Xt/Xaw programs need. 58894 ac_save_LDFLAGS=$LDFLAGS 58895 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 58896 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 58897 # check for ICE first), but we must link in the order -lSM -lICE or 58898 # we get undefined symbols. So assume we have SM if we have ICE. 58899 # These have to be linked with before -lX11, unlike the other 58900 # libraries we check for below, so use a different variable. 58901 # John Interrante, Karl Berry 58902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 58903 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 58904 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 58905 $as_echo_n "(cached) " >&6 58906 else 58907 ac_check_lib_save_LIBS=$LIBS 58908 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 58909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58910 /* end confdefs.h. */ 58911 58912 /* Override any GCC internal prototype to avoid an error. 58913 Use char because int might match the return type of a GCC 58914 builtin and then its argument prototype would still apply. */ 58915 #ifdef __cplusplus 58916 extern "C" 58917 #endif 58918 char IceConnectionNumber (); 58919 int 58920 main () 58921 { 58922 return IceConnectionNumber (); 58923 ; 58924 return 0; 58925 } 58926 _ACEOF 58927 if ac_fn_cxx_try_link "$LINENO"; then : 58928 ac_cv_lib_ICE_IceConnectionNumber=yes 58929 else 58930 ac_cv_lib_ICE_IceConnectionNumber=no 58931 fi 58932 rm -f core conftest.err conftest.$ac_objext \ 58933 conftest$ac_exeext conftest.$ac_ext 58934 LIBS=$ac_check_lib_save_LIBS 58935 fi 58936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 58937 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 58938 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 58939 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 58940 fi 58941 58942 LDFLAGS=$ac_save_LDFLAGS 58943 58944 fi 58945 58946 58947 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 58948 # this doesn't make sense so we remove it. 58949 if test "x$COMPILE_TYPE" = xcross; then 58950 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 58951 fi 58952 58953 if test "x$no_x" = xyes; then 58954 58955 # Print a helpful message on how to acquire the necessary build dependency. 58956 # x11 is the help tag: freetype, cups, alsa etc 58957 MISSING_DEPENDENCY=x11 58958 58959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58960 cygwin_help $MISSING_DEPENDENCY 58961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58962 msys_help $MISSING_DEPENDENCY 58963 else 58964 PKGHANDLER_COMMAND= 58965 58966 case $PKGHANDLER in 58967 apt-get) 58968 apt_help $MISSING_DEPENDENCY ;; 58969 yum) 58970 yum_help $MISSING_DEPENDENCY ;; 58971 brew) 58972 brew_help $MISSING_DEPENDENCY ;; 58973 port) 58974 port_help $MISSING_DEPENDENCY ;; 58975 pkgutil) 58976 pkgutil_help $MISSING_DEPENDENCY ;; 58977 pkgadd) 58978 pkgadd_help $MISSING_DEPENDENCY ;; 58979 esac 58980 58981 if test "x$PKGHANDLER_COMMAND" != x; then 58982 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58983 fi 58984 fi 58985 58986 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 58987 fi 58988 58989 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 58990 OPENWIN_HOME="/usr/openwin" 58991 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 58992 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 58993 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 58994 fi 58995 58996 ac_ext=c 58997 ac_cpp='$CPP $CPPFLAGS' 58998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59000 ac_compiler_gnu=$ac_cv_c_compiler_gnu 59001 59002 OLD_CFLAGS="$CFLAGS" 59003 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 59004 59005 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 59006 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 59007 do : 59008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 59009 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 59010 # include <X11/Xlib.h> 59011 # include <X11/Xutil.h> 59012 59013 59014 " 59015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59016 cat >>confdefs.h <<_ACEOF 59017 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59018 _ACEOF 59019 X11_HEADERS_OK=yes 59020 else 59021 X11_HEADERS_OK=no; break 59022 fi 59023 59024 done 59025 59026 59027 if test "x$X11_HEADERS_OK" = xno; then 59028 59029 # Print a helpful message on how to acquire the necessary build dependency. 59030 # x11 is the help tag: freetype, cups, alsa etc 59031 MISSING_DEPENDENCY=x11 59032 59033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59034 cygwin_help $MISSING_DEPENDENCY 59035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59036 msys_help $MISSING_DEPENDENCY 59037 else 59038 PKGHANDLER_COMMAND= 59039 59040 case $PKGHANDLER in 59041 apt-get) 59042 apt_help $MISSING_DEPENDENCY ;; 59043 yum) 59044 yum_help $MISSING_DEPENDENCY ;; 59045 brew) 59046 brew_help $MISSING_DEPENDENCY ;; 59047 port) 59048 port_help $MISSING_DEPENDENCY ;; 59049 pkgutil) 59050 pkgutil_help $MISSING_DEPENDENCY ;; 59051 pkgadd) 59052 pkgadd_help $MISSING_DEPENDENCY ;; 59053 esac 59054 59055 if test "x$PKGHANDLER_COMMAND" != x; then 59056 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59057 fi 59058 fi 59059 59060 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 59061 fi 59062 59063 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 59064 # defined in libawt_xawt. 59065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 59066 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 59067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59068 /* end confdefs.h. */ 59069 #include <X11/extensions/Xrender.h> 59070 int 59071 main () 59072 { 59073 XLinearGradient x; 59074 ; 59075 return 0; 59076 } 59077 _ACEOF 59078 if ac_fn_c_try_compile "$LINENO"; then : 59079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 59080 $as_echo "yes" >&6; } 59081 else 59082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 59083 $as_echo "no" >&6; } 59084 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 59085 fi 59086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59087 59088 CFLAGS="$OLD_CFLAGS" 59089 ac_ext=cpp 59090 ac_cpp='$CXXCPP $CPPFLAGS' 59091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 59094 59095 fi # NEEDS_LIB_X11 59096 59097 59098 59099 59100 59101 59102 # Check whether --with-cups was given. 59103 if test "${with_cups+set}" = set; then : 59104 withval=$with_cups; 59105 fi 59106 59107 59108 # Check whether --with-cups-include was given. 59109 if test "${with_cups_include+set}" = set; then : 59110 withval=$with_cups_include; 59111 fi 59112 59113 59114 if test "x$NEEDS_LIB_CUPS" = xfalse; then 59115 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 59116 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 59117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 59118 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 59119 fi 59120 CUPS_CFLAGS= 59121 else 59122 CUPS_FOUND=no 59123 59124 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 59125 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 59126 fi 59127 59128 if test "x${with_cups}" != x; then 59129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59130 $as_echo_n "checking for cups headers... " >&6; } 59131 if test -s "${with_cups}/include/cups/cups.h"; then 59132 CUPS_CFLAGS="-I${with_cups}/include" 59133 CUPS_FOUND=yes 59134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59135 $as_echo "$CUPS_FOUND" >&6; } 59136 else 59137 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 59138 fi 59139 fi 59140 if test "x${with_cups_include}" != x; then 59141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59142 $as_echo_n "checking for cups headers... " >&6; } 59143 if test -s "${with_cups_include}/cups/cups.h"; then 59144 CUPS_CFLAGS="-I${with_cups_include}" 59145 CUPS_FOUND=yes 59146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59147 $as_echo "$CUPS_FOUND" >&6; } 59148 else 59149 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 59150 fi 59151 fi 59152 if test "x$CUPS_FOUND" = xno; then 59153 # Are the cups headers installed in the default /usr/include location? 59154 for ac_header in cups/cups.h cups/ppd.h 59155 do : 59156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 59157 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 59158 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59159 cat >>confdefs.h <<_ACEOF 59160 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59161 _ACEOF 59162 59163 CUPS_FOUND=yes 59164 CUPS_CFLAGS= 59165 DEFAULT_CUPS=yes 59166 59167 fi 59168 59169 done 59170 59171 fi 59172 if test "x$CUPS_FOUND" = xno; then 59173 59174 # Print a helpful message on how to acquire the necessary build dependency. 59175 # cups is the help tag: freetype, cups, alsa etc 59176 MISSING_DEPENDENCY=cups 59177 59178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59179 cygwin_help $MISSING_DEPENDENCY 59180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59181 msys_help $MISSING_DEPENDENCY 59182 else 59183 PKGHANDLER_COMMAND= 59184 59185 case $PKGHANDLER in 59186 apt-get) 59187 apt_help $MISSING_DEPENDENCY ;; 59188 yum) 59189 yum_help $MISSING_DEPENDENCY ;; 59190 brew) 59191 brew_help $MISSING_DEPENDENCY ;; 59192 port) 59193 port_help $MISSING_DEPENDENCY ;; 59194 pkgutil) 59195 pkgutil_help $MISSING_DEPENDENCY ;; 59196 pkgadd) 59197 pkgadd_help $MISSING_DEPENDENCY ;; 59198 esac 59199 59200 if test "x$PKGHANDLER_COMMAND" != x; then 59201 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59202 fi 59203 fi 59204 59205 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 59206 fi 59207 fi 59208 59209 59210 59211 59212 59213 # Check whether --with-fontconfig was given. 59214 if test "${with_fontconfig+set}" = set; then : 59215 withval=$with_fontconfig; 59216 fi 59217 59218 59219 # Check whether --with-fontconfig-include was given. 59220 if test "${with_fontconfig_include+set}" = set; then : 59221 withval=$with_fontconfig_include; 59222 fi 59223 59224 59225 if test "x$NEEDS_LIB_FONTCONFIG" = xfalse; then 59226 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 59227 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 59228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 59229 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 59230 fi 59231 FONTCONFIG_CFLAGS= 59232 else 59233 FONTCONFIG_FOUND=no 59234 59235 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 59236 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 59237 fi 59238 59239 if test "x${with_fontconfig}" != x; then 59240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59241 $as_echo_n "checking for fontconfig headers... " >&6; } 59242 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 59243 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 59244 FONTCONFIG_FOUND=yes 59245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59246 $as_echo "$FONTCONFIG_FOUND" >&6; } 59247 else 59248 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 59249 fi 59250 fi 59251 if test "x${with_fontconfig_include}" != x; then 59252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59253 $as_echo_n "checking for fontconfig headers... " >&6; } 59254 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 59255 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 59256 FONTCONFIG_FOUND=yes 59257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59258 $as_echo "$FONTCONFIG_FOUND" >&6; } 59259 else 59260 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 59261 fi 59262 fi 59263 if test "x$FONTCONFIG_FOUND" = xno; then 59264 # Are the fontconfig headers installed in the default /usr/include location? 59265 for ac_header in fontconfig/fontconfig.h 59266 do : 59267 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 59268 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 59269 cat >>confdefs.h <<_ACEOF 59270 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 59271 _ACEOF 59272 59273 FONTCONFIG_FOUND=yes 59274 FONTCONFIG_CFLAGS= 59275 DEFAULT_FONTCONFIG=yes 59276 59277 fi 59278 59279 done 59280 59281 fi 59282 if test "x$FONTCONFIG_FOUND" = xno; then 59283 59284 # Print a helpful message on how to acquire the necessary build dependency. 59285 # fontconfig is the help tag: freetype, cups, alsa etc 59286 MISSING_DEPENDENCY=fontconfig 59287 59288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59289 cygwin_help $MISSING_DEPENDENCY 59290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59291 msys_help $MISSING_DEPENDENCY 59292 else 59293 PKGHANDLER_COMMAND= 59294 59295 case $PKGHANDLER in 59296 apt-get) 59297 apt_help $MISSING_DEPENDENCY ;; 59298 yum) 59299 yum_help $MISSING_DEPENDENCY ;; 59300 brew) 59301 brew_help $MISSING_DEPENDENCY ;; 59302 port) 59303 port_help $MISSING_DEPENDENCY ;; 59304 pkgutil) 59305 pkgutil_help $MISSING_DEPENDENCY ;; 59306 pkgadd) 59307 pkgadd_help $MISSING_DEPENDENCY ;; 59308 esac 59309 59310 if test "x$PKGHANDLER_COMMAND" != x; then 59311 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59312 fi 59313 fi 59314 59315 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 59316 fi 59317 fi 59318 59319 59320 59321 59322 59323 # Check whether --with-freetype was given. 59324 if test "${with_freetype+set}" = set; then : 59325 withval=$with_freetype; 59326 fi 59327 59328 59329 # Check whether --with-freetype-include was given. 59330 if test "${with_freetype_include+set}" = set; then : 59331 withval=$with_freetype_include; 59332 fi 59333 59334 59335 # Check whether --with-freetype-lib was given. 59336 if test "${with_freetype_lib+set}" = set; then : 59337 withval=$with_freetype_lib; 59338 fi 59339 59340 59341 # Check whether --with-freetype-src was given. 59342 if test "${with_freetype_src+set}" = set; then : 59343 withval=$with_freetype_src; 59344 fi 59345 59346 # Check whether --enable-freetype-bundling was given. 59347 if test "${enable_freetype_bundling+set}" = set; then : 59348 enableval=$enable_freetype_bundling; 59349 fi 59350 59351 59352 # Check whether --with-freetype-license was given. 59353 if test "${with_freetype_license+set}" = set; then : 59354 withval=$with_freetype_license; 59355 fi 59356 59357 59358 # Need to specify explicitly since it needs to be overridden on some versions of macosx 59359 FREETYPE_BASE_NAME=freetype 59360 FREETYPE_CFLAGS= 59361 FREETYPE_LIBS= 59362 FREETYPE_BUNDLE_LIB_PATH= 59363 59364 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 59365 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 59366 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 59367 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 59368 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 59369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 59370 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 59371 fi 59372 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 59373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 59374 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 59375 fi 59376 else 59377 # freetype is needed to build; go get it! 59378 59379 BUNDLE_FREETYPE="$enable_freetype_bundling" 59380 59381 if test "x$with_freetype_src" != x; then 59382 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59383 # Try to build freetype if --with-freetype-src was given on Windows 59384 59385 FREETYPE_SRC_PATH="$with_freetype_src" 59386 BUILD_FREETYPE=yes 59387 59388 # Check if the freetype sources are acessible.. 59389 if ! test -d $FREETYPE_SRC_PATH; then 59390 { $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 59391 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59392 BUILD_FREETYPE=no 59393 fi 59394 # ..and contain a vc2010 project file 59395 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59396 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59397 { $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 59398 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59399 BUILD_FREETYPE=no 59400 fi 59401 # Now check if configure found a version of 'msbuild.exe' 59402 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59403 { $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 59404 $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;} 59405 BUILD_FREETYPE=no 59406 fi 59407 59408 # Ready to go.. 59409 if test "x$BUILD_FREETYPE" = xyes; then 59410 # msbuild requires trailing slashes for output directories 59411 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59412 freetype_lib_path_unix="$freetype_lib_path" 59413 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59414 59415 unix_path="$vcxproj_path" 59416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59417 windows_path=`$CYGPATH -m "$unix_path"` 59418 vcxproj_path="$windows_path" 59419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59420 windows_path=`cmd //c echo $unix_path` 59421 vcxproj_path="$windows_path" 59422 fi 59423 59424 59425 unix_path="$freetype_lib_path" 59426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59427 windows_path=`$CYGPATH -m "$unix_path"` 59428 freetype_lib_path="$windows_path" 59429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59430 windows_path=`cmd //c echo $unix_path` 59431 freetype_lib_path="$windows_path" 59432 fi 59433 59434 59435 unix_path="$freetype_obj_path" 59436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59437 windows_path=`$CYGPATH -m "$unix_path"` 59438 freetype_obj_path="$windows_path" 59439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59440 windows_path=`cmd //c echo $unix_path` 59441 freetype_obj_path="$windows_path" 59442 fi 59443 59444 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59445 freetype_platform=x64 59446 else 59447 freetype_platform=win32 59448 fi 59449 59450 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59451 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59452 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59453 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59454 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59455 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59456 59457 # First we try to build the freetype.dll 59458 $ECHO -e "@echo off\n"\ 59459 "$MSBUILD $vcxproj_path "\ 59460 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59461 "/p:Configuration=\"Release Multithreaded\" "\ 59462 "/p:Platform=$freetype_platform "\ 59463 "/p:ConfigurationType=DynamicLibrary "\ 59464 "/p:TargetName=freetype "\ 59465 "/p:OutDir=\"$freetype_lib_path\" "\ 59466 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59467 cmd /c freetype.bat 59468 59469 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59470 # If that succeeds we also build freetype.lib 59471 $ECHO -e "@echo off\n"\ 59472 "$MSBUILD $vcxproj_path "\ 59473 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59474 "/p:Configuration=\"Release Multithreaded\" "\ 59475 "/p:Platform=$freetype_platform "\ 59476 "/p:ConfigurationType=StaticLibrary "\ 59477 "/p:TargetName=freetype "\ 59478 "/p:OutDir=\"$freetype_lib_path\" "\ 59479 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59480 cmd /c freetype.bat 59481 59482 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59483 # Once we build both, lib and dll, set freetype lib and include path appropriately 59484 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59485 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59486 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59487 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59488 else 59489 BUILD_FREETYPE=no 59490 fi 59491 else 59492 BUILD_FREETYPE=no 59493 fi 59494 fi 59495 59496 if test "x$BUILD_FREETYPE" = xyes; then 59497 # Okay, we built it. Check that it works. 59498 59499 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59500 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59501 METHOD="--with-freetype-src" 59502 59503 # Let's start with an optimistic view of the world :-) 59504 FOUND_FREETYPE=yes 59505 59506 # First look for the canonical freetype main include file ft2build.h. 59507 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59508 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59509 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59510 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59511 # Fail. 59512 FOUND_FREETYPE=no 59513 fi 59514 fi 59515 59516 if test "x$FOUND_FREETYPE" = xyes; then 59517 # Include file found, let's continue the sanity check. 59518 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59519 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59520 59521 # Reset to default value 59522 FREETYPE_BASE_NAME=freetype 59523 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59524 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59525 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59526 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59527 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59528 # for the .6 version explicitly. 59529 FREETYPE_BASE_NAME=freetype.6 59530 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59531 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59532 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59533 else 59534 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59535 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59536 FOUND_FREETYPE=no 59537 fi 59538 else 59539 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59540 # On Windows, we will need both .lib and .dll file. 59541 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59542 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59543 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59544 FOUND_FREETYPE=no 59545 fi 59546 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59547 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59548 # Found lib in isa dir, use that instead. 59549 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59551 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59552 fi 59553 fi 59554 fi 59555 59556 if test "x$FOUND_FREETYPE" = xyes; then 59557 59558 # Only process if variable expands to non-empty 59559 59560 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59561 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59562 59563 # Input might be given as Windows format, start by converting to 59564 # unix format. 59565 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59566 new_path=`$CYGPATH -u "$path"` 59567 59568 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59569 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59570 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59571 # "foo.exe" is OK but "foo" is an error. 59572 # 59573 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59574 # It is also a way to make sure we got the proper file name for the real test later on. 59575 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59576 if test "x$test_shortpath" = x; then 59577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59578 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59579 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59580 fi 59581 59582 # Call helper function which possibly converts this using DOS-style short mode. 59583 # If so, the updated path is stored in $new_path. 59584 59585 input_path="$new_path" 59586 # Check if we need to convert this using DOS-style short mode. If the path 59587 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59588 # take no chances and rewrite it. 59589 # Note: m4 eats our [], so we need to use [ and ] instead. 59590 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59591 if test "x$has_forbidden_chars" != x; then 59592 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59593 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59594 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59595 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59596 # Going to short mode and back again did indeed matter. Since short mode is 59597 # case insensitive, let's make it lowercase to improve readability. 59598 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59599 # Now convert it back to Unix-style (cygpath) 59600 input_path=`$CYGPATH -u "$shortmode_path"` 59601 new_path="$input_path" 59602 fi 59603 fi 59604 59605 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59606 if test "x$test_cygdrive_prefix" = x; then 59607 # As a simple fix, exclude /usr/bin since it's not a real path. 59608 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59609 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59610 # a path prefixed by /cygdrive for fixpath to work. 59611 new_path="$CYGWIN_ROOT_PATH$input_path" 59612 fi 59613 fi 59614 59615 59616 if test "x$path" != "x$new_path"; then 59617 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59619 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59620 fi 59621 59622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59623 59624 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59625 has_colon=`$ECHO $path | $GREP ^.:` 59626 new_path="$path" 59627 if test "x$has_colon" = x; then 59628 # Not in mixed or Windows style, start by that. 59629 new_path=`cmd //c echo $path` 59630 fi 59631 59632 59633 input_path="$new_path" 59634 # Check if we need to convert this using DOS-style short mode. If the path 59635 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59636 # take no chances and rewrite it. 59637 # Note: m4 eats our [], so we need to use [ and ] instead. 59638 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59639 if test "x$has_forbidden_chars" != x; then 59640 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59641 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59642 fi 59643 59644 59645 windows_path="$new_path" 59646 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59647 unix_path=`$CYGPATH -u "$windows_path"` 59648 new_path="$unix_path" 59649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59650 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59651 new_path="$unix_path" 59652 fi 59653 59654 if test "x$path" != "x$new_path"; then 59655 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59657 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59658 fi 59659 59660 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59661 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59662 59663 else 59664 # We're on a unix platform. Hooray! :) 59665 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59666 has_space=`$ECHO "$path" | $GREP " "` 59667 if test "x$has_space" != x; then 59668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59669 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59670 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59671 fi 59672 59673 # Use eval to expand a potential ~ 59674 eval path="$path" 59675 if test ! -f "$path" && test ! -d "$path"; then 59676 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59677 fi 59678 59679 if test -d "$path"; then 59680 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59681 else 59682 dir="`$DIRNAME "$path"`" 59683 base="`$BASENAME "$path"`" 59684 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59685 fi 59686 fi 59687 fi 59688 59689 59690 # Only process if variable expands to non-empty 59691 59692 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59694 59695 # Input might be given as Windows format, start by converting to 59696 # unix format. 59697 path="$POTENTIAL_FREETYPE_LIB_PATH" 59698 new_path=`$CYGPATH -u "$path"` 59699 59700 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59701 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59702 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59703 # "foo.exe" is OK but "foo" is an error. 59704 # 59705 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59706 # It is also a way to make sure we got the proper file name for the real test later on. 59707 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59708 if test "x$test_shortpath" = x; then 59709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59710 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59711 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59712 fi 59713 59714 # Call helper function which possibly converts this using DOS-style short mode. 59715 # If so, the updated path is stored in $new_path. 59716 59717 input_path="$new_path" 59718 # Check if we need to convert this using DOS-style short mode. If the path 59719 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59720 # take no chances and rewrite it. 59721 # Note: m4 eats our [], so we need to use [ and ] instead. 59722 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59723 if test "x$has_forbidden_chars" != x; then 59724 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59725 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59726 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59727 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59728 # Going to short mode and back again did indeed matter. Since short mode is 59729 # case insensitive, let's make it lowercase to improve readability. 59730 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59731 # Now convert it back to Unix-style (cygpath) 59732 input_path=`$CYGPATH -u "$shortmode_path"` 59733 new_path="$input_path" 59734 fi 59735 fi 59736 59737 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59738 if test "x$test_cygdrive_prefix" = x; then 59739 # As a simple fix, exclude /usr/bin since it's not a real path. 59740 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59741 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59742 # a path prefixed by /cygdrive for fixpath to work. 59743 new_path="$CYGWIN_ROOT_PATH$input_path" 59744 fi 59745 fi 59746 59747 59748 if test "x$path" != "x$new_path"; then 59749 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59751 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59752 fi 59753 59754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59755 59756 path="$POTENTIAL_FREETYPE_LIB_PATH" 59757 has_colon=`$ECHO $path | $GREP ^.:` 59758 new_path="$path" 59759 if test "x$has_colon" = x; then 59760 # Not in mixed or Windows style, start by that. 59761 new_path=`cmd //c echo $path` 59762 fi 59763 59764 59765 input_path="$new_path" 59766 # Check if we need to convert this using DOS-style short mode. If the path 59767 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59768 # take no chances and rewrite it. 59769 # Note: m4 eats our [], so we need to use [ and ] instead. 59770 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59771 if test "x$has_forbidden_chars" != x; then 59772 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59773 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59774 fi 59775 59776 59777 windows_path="$new_path" 59778 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59779 unix_path=`$CYGPATH -u "$windows_path"` 59780 new_path="$unix_path" 59781 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59782 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59783 new_path="$unix_path" 59784 fi 59785 59786 if test "x$path" != "x$new_path"; then 59787 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59789 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59790 fi 59791 59792 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59793 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59794 59795 else 59796 # We're on a unix platform. Hooray! :) 59797 path="$POTENTIAL_FREETYPE_LIB_PATH" 59798 has_space=`$ECHO "$path" | $GREP " "` 59799 if test "x$has_space" != x; then 59800 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59801 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59802 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59803 fi 59804 59805 # Use eval to expand a potential ~ 59806 eval path="$path" 59807 if test ! -f "$path" && test ! -d "$path"; then 59808 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59809 fi 59810 59811 if test -d "$path"; then 59812 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59813 else 59814 dir="`$DIRNAME "$path"`" 59815 base="`$BASENAME "$path"`" 59816 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59817 fi 59818 fi 59819 fi 59820 59821 59822 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59824 $as_echo_n "checking for freetype includes... " >&6; } 59825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59826 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59827 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59829 $as_echo_n "checking for freetype libraries... " >&6; } 59830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59831 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59832 fi 59833 59834 if test "x$FOUND_FREETYPE" != xyes; then 59835 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 59836 fi 59837 else 59838 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 59839 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 59840 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 59841 fi 59842 else 59843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 59844 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 59845 fi 59846 fi 59847 59848 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 59849 # User has specified settings 59850 59851 if test "x$BUNDLE_FREETYPE" = x; then 59852 # If not specified, default is to bundle freetype 59853 BUNDLE_FREETYPE=yes 59854 fi 59855 59856 if test "x$with_freetype" != x; then 59857 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 59858 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 59859 fi 59860 59861 # Allow --with-freetype-lib and --with-freetype-include to override 59862 if test "x$with_freetype_include" != x; then 59863 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 59864 fi 59865 if test "x$with_freetype_lib" != x; then 59866 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 59867 fi 59868 59869 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59870 # Okay, we got it. Check that it works. 59871 59872 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59873 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59874 METHOD="--with-freetype" 59875 59876 # Let's start with an optimistic view of the world :-) 59877 FOUND_FREETYPE=yes 59878 59879 # First look for the canonical freetype main include file ft2build.h. 59880 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59881 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59882 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59883 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59884 # Fail. 59885 FOUND_FREETYPE=no 59886 fi 59887 fi 59888 59889 if test "x$FOUND_FREETYPE" = xyes; then 59890 # Include file found, let's continue the sanity check. 59891 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59892 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59893 59894 # Reset to default value 59895 FREETYPE_BASE_NAME=freetype 59896 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59897 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59898 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59899 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59900 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59901 # for the .6 version explicitly. 59902 FREETYPE_BASE_NAME=freetype.6 59903 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59904 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59905 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59906 else 59907 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59908 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59909 FOUND_FREETYPE=no 59910 fi 59911 else 59912 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59913 # On Windows, we will need both .lib and .dll file. 59914 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59915 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59916 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59917 FOUND_FREETYPE=no 59918 fi 59919 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59920 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59921 # Found lib in isa dir, use that instead. 59922 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59924 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59925 fi 59926 fi 59927 fi 59928 59929 if test "x$FOUND_FREETYPE" = xyes; then 59930 59931 # Only process if variable expands to non-empty 59932 59933 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59935 59936 # Input might be given as Windows format, start by converting to 59937 # unix format. 59938 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59939 new_path=`$CYGPATH -u "$path"` 59940 59941 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59942 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59943 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59944 # "foo.exe" is OK but "foo" is an error. 59945 # 59946 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59947 # It is also a way to make sure we got the proper file name for the real test later on. 59948 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59949 if test "x$test_shortpath" = x; then 59950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59951 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59952 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59953 fi 59954 59955 # Call helper function which possibly converts this using DOS-style short mode. 59956 # If so, the updated path is stored in $new_path. 59957 59958 input_path="$new_path" 59959 # Check if we need to convert this using DOS-style short mode. If the path 59960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59961 # take no chances and rewrite it. 59962 # Note: m4 eats our [], so we need to use [ and ] instead. 59963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59964 if test "x$has_forbidden_chars" != x; then 59965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59969 # Going to short mode and back again did indeed matter. Since short mode is 59970 # case insensitive, let's make it lowercase to improve readability. 59971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59972 # Now convert it back to Unix-style (cygpath) 59973 input_path=`$CYGPATH -u "$shortmode_path"` 59974 new_path="$input_path" 59975 fi 59976 fi 59977 59978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59979 if test "x$test_cygdrive_prefix" = x; then 59980 # As a simple fix, exclude /usr/bin since it's not a real path. 59981 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59983 # a path prefixed by /cygdrive for fixpath to work. 59984 new_path="$CYGWIN_ROOT_PATH$input_path" 59985 fi 59986 fi 59987 59988 59989 if test "x$path" != "x$new_path"; then 59990 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59992 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59993 fi 59994 59995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59996 59997 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59998 has_colon=`$ECHO $path | $GREP ^.:` 59999 new_path="$path" 60000 if test "x$has_colon" = x; then 60001 # Not in mixed or Windows style, start by that. 60002 new_path=`cmd //c echo $path` 60003 fi 60004 60005 60006 input_path="$new_path" 60007 # Check if we need to convert this using DOS-style short mode. If the path 60008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60009 # take no chances and rewrite it. 60010 # Note: m4 eats our [], so we need to use [ and ] instead. 60011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60012 if test "x$has_forbidden_chars" != x; then 60013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60015 fi 60016 60017 60018 windows_path="$new_path" 60019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60020 unix_path=`$CYGPATH -u "$windows_path"` 60021 new_path="$unix_path" 60022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60024 new_path="$unix_path" 60025 fi 60026 60027 if test "x$path" != "x$new_path"; then 60028 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60030 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60031 fi 60032 60033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60035 60036 else 60037 # We're on a unix platform. Hooray! :) 60038 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60039 has_space=`$ECHO "$path" | $GREP " "` 60040 if test "x$has_space" != x; then 60041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60042 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60043 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60044 fi 60045 60046 # Use eval to expand a potential ~ 60047 eval path="$path" 60048 if test ! -f "$path" && test ! -d "$path"; then 60049 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60050 fi 60051 60052 if test -d "$path"; then 60053 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60054 else 60055 dir="`$DIRNAME "$path"`" 60056 base="`$BASENAME "$path"`" 60057 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60058 fi 60059 fi 60060 fi 60061 60062 60063 # Only process if variable expands to non-empty 60064 60065 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60067 60068 # Input might be given as Windows format, start by converting to 60069 # unix format. 60070 path="$POTENTIAL_FREETYPE_LIB_PATH" 60071 new_path=`$CYGPATH -u "$path"` 60072 60073 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60074 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60075 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60076 # "foo.exe" is OK but "foo" is an error. 60077 # 60078 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60079 # It is also a way to make sure we got the proper file name for the real test later on. 60080 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60081 if test "x$test_shortpath" = x; then 60082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60083 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60084 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60085 fi 60086 60087 # Call helper function which possibly converts this using DOS-style short mode. 60088 # If so, the updated path is stored in $new_path. 60089 60090 input_path="$new_path" 60091 # Check if we need to convert this using DOS-style short mode. If the path 60092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60093 # take no chances and rewrite it. 60094 # Note: m4 eats our [], so we need to use [ and ] instead. 60095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60096 if test "x$has_forbidden_chars" != x; then 60097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60098 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60099 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60100 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60101 # Going to short mode and back again did indeed matter. Since short mode is 60102 # case insensitive, let's make it lowercase to improve readability. 60103 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60104 # Now convert it back to Unix-style (cygpath) 60105 input_path=`$CYGPATH -u "$shortmode_path"` 60106 new_path="$input_path" 60107 fi 60108 fi 60109 60110 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60111 if test "x$test_cygdrive_prefix" = x; then 60112 # As a simple fix, exclude /usr/bin since it's not a real path. 60113 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60114 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60115 # a path prefixed by /cygdrive for fixpath to work. 60116 new_path="$CYGWIN_ROOT_PATH$input_path" 60117 fi 60118 fi 60119 60120 60121 if test "x$path" != "x$new_path"; then 60122 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60123 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60124 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60125 fi 60126 60127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60128 60129 path="$POTENTIAL_FREETYPE_LIB_PATH" 60130 has_colon=`$ECHO $path | $GREP ^.:` 60131 new_path="$path" 60132 if test "x$has_colon" = x; then 60133 # Not in mixed or Windows style, start by that. 60134 new_path=`cmd //c echo $path` 60135 fi 60136 60137 60138 input_path="$new_path" 60139 # Check if we need to convert this using DOS-style short mode. If the path 60140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60141 # take no chances and rewrite it. 60142 # Note: m4 eats our [], so we need to use [ and ] instead. 60143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60144 if test "x$has_forbidden_chars" != x; then 60145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60146 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60147 fi 60148 60149 60150 windows_path="$new_path" 60151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60152 unix_path=`$CYGPATH -u "$windows_path"` 60153 new_path="$unix_path" 60154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60156 new_path="$unix_path" 60157 fi 60158 60159 if test "x$path" != "x$new_path"; then 60160 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60162 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60163 fi 60164 60165 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60166 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60167 60168 else 60169 # We're on a unix platform. Hooray! :) 60170 path="$POTENTIAL_FREETYPE_LIB_PATH" 60171 has_space=`$ECHO "$path" | $GREP " "` 60172 if test "x$has_space" != x; then 60173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60174 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60175 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60176 fi 60177 60178 # Use eval to expand a potential ~ 60179 eval path="$path" 60180 if test ! -f "$path" && test ! -d "$path"; then 60181 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60182 fi 60183 60184 if test -d "$path"; then 60185 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60186 else 60187 dir="`$DIRNAME "$path"`" 60188 base="`$BASENAME "$path"`" 60189 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60190 fi 60191 fi 60192 fi 60193 60194 60195 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60197 $as_echo_n "checking for freetype includes... " >&6; } 60198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60199 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60200 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60202 $as_echo_n "checking for freetype libraries... " >&6; } 60203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60204 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60205 fi 60206 60207 if test "x$FOUND_FREETYPE" != xyes; then 60208 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 60209 fi 60210 else 60211 # User specified only one of lib or include. This is an error. 60212 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 60213 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 60214 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 60215 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60216 else 60217 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 60218 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 60219 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60220 fi 60221 fi 60222 else 60223 # User did not specify settings, but we need freetype. Try to locate it. 60224 60225 if test "x$BUNDLE_FREETYPE" = x; then 60226 # If not specified, default is to bundle freetype only on windows 60227 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60228 BUNDLE_FREETYPE=yes 60229 else 60230 BUNDLE_FREETYPE=no 60231 fi 60232 fi 60233 60234 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 60235 if test "x$SYSROOT" = x; then 60236 if test "x$FOUND_FREETYPE" != xyes; then 60237 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 60238 if test "x$PKG_CONFIG" != x; then 60239 60240 pkg_failed=no 60241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 60242 $as_echo_n "checking for FREETYPE... " >&6; } 60243 60244 if test -n "$FREETYPE_CFLAGS"; then 60245 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 60246 elif test -n "$PKG_CONFIG"; then 60247 if test -n "$PKG_CONFIG" && \ 60248 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60249 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60250 ac_status=$? 60251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60252 test $ac_status = 0; }; then 60253 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 60254 else 60255 pkg_failed=yes 60256 fi 60257 else 60258 pkg_failed=untried 60259 fi 60260 if test -n "$FREETYPE_LIBS"; then 60261 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 60262 elif test -n "$PKG_CONFIG"; then 60263 if test -n "$PKG_CONFIG" && \ 60264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60265 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60266 ac_status=$? 60267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60268 test $ac_status = 0; }; then 60269 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 60270 else 60271 pkg_failed=yes 60272 fi 60273 else 60274 pkg_failed=untried 60275 fi 60276 60277 60278 60279 if test $pkg_failed = yes; then 60280 60281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 60282 _pkg_short_errors_supported=yes 60283 else 60284 _pkg_short_errors_supported=no 60285 fi 60286 if test $_pkg_short_errors_supported = yes; then 60287 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 60288 else 60289 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 60290 fi 60291 # Put the nasty error message in config.log where it belongs 60292 echo "$FREETYPE_PKG_ERRORS" >&5 60293 60294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60295 $as_echo "no" >&6; } 60296 FOUND_FREETYPE=no 60297 elif test $pkg_failed = untried; then 60298 FOUND_FREETYPE=no 60299 else 60300 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 60301 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 60302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60303 $as_echo "yes" >&6; } 60304 FOUND_FREETYPE=yes 60305 fi 60306 if test "x$FOUND_FREETYPE" = xyes; then 60307 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 60308 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 60309 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 60310 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 60311 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 60312 fi 60313 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 60314 if test "x$BUNDLE_FREETYPE" = xyes; then 60315 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 60316 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 60317 FOUND_FREETYPE=no 60318 else 60319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 60320 $as_echo_n "checking for freetype... " >&6; } 60321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 60322 $as_echo "yes (using pkg-config)" >&6; } 60323 fi 60324 fi 60325 fi 60326 fi 60327 fi 60328 60329 if test "x$FOUND_FREETYPE" != xyes; then 60330 # Check in well-known locations 60331 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60332 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 60333 60334 windows_path="$FREETYPE_BASE_DIR" 60335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60336 unix_path=`$CYGPATH -u "$windows_path"` 60337 FREETYPE_BASE_DIR="$unix_path" 60338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60340 FREETYPE_BASE_DIR="$unix_path" 60341 fi 60342 60343 60344 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60345 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60346 METHOD="well-known location" 60347 60348 # Let's start with an optimistic view of the world :-) 60349 FOUND_FREETYPE=yes 60350 60351 # First look for the canonical freetype main include file ft2build.h. 60352 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60353 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60354 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60355 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60356 # Fail. 60357 FOUND_FREETYPE=no 60358 fi 60359 fi 60360 60361 if test "x$FOUND_FREETYPE" = xyes; then 60362 # Include file found, let's continue the sanity check. 60363 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60364 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60365 60366 # Reset to default value 60367 FREETYPE_BASE_NAME=freetype 60368 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60369 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60370 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60371 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60372 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60373 # for the .6 version explicitly. 60374 FREETYPE_BASE_NAME=freetype.6 60375 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60376 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60377 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60378 else 60379 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60380 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60381 FOUND_FREETYPE=no 60382 fi 60383 else 60384 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60385 # On Windows, we will need both .lib and .dll file. 60386 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60387 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60388 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60389 FOUND_FREETYPE=no 60390 fi 60391 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60392 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60393 # Found lib in isa dir, use that instead. 60394 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60396 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60397 fi 60398 fi 60399 fi 60400 60401 if test "x$FOUND_FREETYPE" = xyes; then 60402 60403 # Only process if variable expands to non-empty 60404 60405 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60406 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60407 60408 # Input might be given as Windows format, start by converting to 60409 # unix format. 60410 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60411 new_path=`$CYGPATH -u "$path"` 60412 60413 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60414 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60415 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60416 # "foo.exe" is OK but "foo" is an error. 60417 # 60418 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60419 # It is also a way to make sure we got the proper file name for the real test later on. 60420 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60421 if test "x$test_shortpath" = x; then 60422 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60423 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60424 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60425 fi 60426 60427 # Call helper function which possibly converts this using DOS-style short mode. 60428 # If so, the updated path is stored in $new_path. 60429 60430 input_path="$new_path" 60431 # Check if we need to convert this using DOS-style short mode. If the path 60432 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60433 # take no chances and rewrite it. 60434 # Note: m4 eats our [], so we need to use [ and ] instead. 60435 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60436 if test "x$has_forbidden_chars" != x; then 60437 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60438 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60439 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60440 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60441 # Going to short mode and back again did indeed matter. Since short mode is 60442 # case insensitive, let's make it lowercase to improve readability. 60443 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60444 # Now convert it back to Unix-style (cygpath) 60445 input_path=`$CYGPATH -u "$shortmode_path"` 60446 new_path="$input_path" 60447 fi 60448 fi 60449 60450 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60451 if test "x$test_cygdrive_prefix" = x; then 60452 # As a simple fix, exclude /usr/bin since it's not a real path. 60453 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60454 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60455 # a path prefixed by /cygdrive for fixpath to work. 60456 new_path="$CYGWIN_ROOT_PATH$input_path" 60457 fi 60458 fi 60459 60460 60461 if test "x$path" != "x$new_path"; then 60462 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60463 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60464 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60465 fi 60466 60467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60468 60469 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60470 has_colon=`$ECHO $path | $GREP ^.:` 60471 new_path="$path" 60472 if test "x$has_colon" = x; then 60473 # Not in mixed or Windows style, start by that. 60474 new_path=`cmd //c echo $path` 60475 fi 60476 60477 60478 input_path="$new_path" 60479 # Check if we need to convert this using DOS-style short mode. If the path 60480 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60481 # take no chances and rewrite it. 60482 # Note: m4 eats our [], so we need to use [ and ] instead. 60483 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60484 if test "x$has_forbidden_chars" != x; then 60485 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60486 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60487 fi 60488 60489 60490 windows_path="$new_path" 60491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60492 unix_path=`$CYGPATH -u "$windows_path"` 60493 new_path="$unix_path" 60494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60495 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60496 new_path="$unix_path" 60497 fi 60498 60499 if test "x$path" != "x$new_path"; then 60500 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60501 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60502 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60503 fi 60504 60505 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60506 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60507 60508 else 60509 # We're on a unix platform. Hooray! :) 60510 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60511 has_space=`$ECHO "$path" | $GREP " "` 60512 if test "x$has_space" != x; then 60513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60514 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60515 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60516 fi 60517 60518 # Use eval to expand a potential ~ 60519 eval path="$path" 60520 if test ! -f "$path" && test ! -d "$path"; then 60521 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60522 fi 60523 60524 if test -d "$path"; then 60525 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60526 else 60527 dir="`$DIRNAME "$path"`" 60528 base="`$BASENAME "$path"`" 60529 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60530 fi 60531 fi 60532 fi 60533 60534 60535 # Only process if variable expands to non-empty 60536 60537 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60539 60540 # Input might be given as Windows format, start by converting to 60541 # unix format. 60542 path="$POTENTIAL_FREETYPE_LIB_PATH" 60543 new_path=`$CYGPATH -u "$path"` 60544 60545 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60546 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60547 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60548 # "foo.exe" is OK but "foo" is an error. 60549 # 60550 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60551 # It is also a way to make sure we got the proper file name for the real test later on. 60552 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60553 if test "x$test_shortpath" = x; then 60554 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60555 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60556 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60557 fi 60558 60559 # Call helper function which possibly converts this using DOS-style short mode. 60560 # If so, the updated path is stored in $new_path. 60561 60562 input_path="$new_path" 60563 # Check if we need to convert this using DOS-style short mode. If the path 60564 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60565 # take no chances and rewrite it. 60566 # Note: m4 eats our [], so we need to use [ and ] instead. 60567 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60568 if test "x$has_forbidden_chars" != x; then 60569 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60570 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60571 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60572 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60573 # Going to short mode and back again did indeed matter. Since short mode is 60574 # case insensitive, let's make it lowercase to improve readability. 60575 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60576 # Now convert it back to Unix-style (cygpath) 60577 input_path=`$CYGPATH -u "$shortmode_path"` 60578 new_path="$input_path" 60579 fi 60580 fi 60581 60582 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60583 if test "x$test_cygdrive_prefix" = x; then 60584 # As a simple fix, exclude /usr/bin since it's not a real path. 60585 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60586 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60587 # a path prefixed by /cygdrive for fixpath to work. 60588 new_path="$CYGWIN_ROOT_PATH$input_path" 60589 fi 60590 fi 60591 60592 60593 if test "x$path" != "x$new_path"; then 60594 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60596 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60597 fi 60598 60599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60600 60601 path="$POTENTIAL_FREETYPE_LIB_PATH" 60602 has_colon=`$ECHO $path | $GREP ^.:` 60603 new_path="$path" 60604 if test "x$has_colon" = x; then 60605 # Not in mixed or Windows style, start by that. 60606 new_path=`cmd //c echo $path` 60607 fi 60608 60609 60610 input_path="$new_path" 60611 # Check if we need to convert this using DOS-style short mode. If the path 60612 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60613 # take no chances and rewrite it. 60614 # Note: m4 eats our [], so we need to use [ and ] instead. 60615 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60616 if test "x$has_forbidden_chars" != x; then 60617 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60618 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60619 fi 60620 60621 60622 windows_path="$new_path" 60623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60624 unix_path=`$CYGPATH -u "$windows_path"` 60625 new_path="$unix_path" 60626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60628 new_path="$unix_path" 60629 fi 60630 60631 if test "x$path" != "x$new_path"; then 60632 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60634 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60635 fi 60636 60637 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60638 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60639 60640 else 60641 # We're on a unix platform. Hooray! :) 60642 path="$POTENTIAL_FREETYPE_LIB_PATH" 60643 has_space=`$ECHO "$path" | $GREP " "` 60644 if test "x$has_space" != x; then 60645 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60646 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60647 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60648 fi 60649 60650 # Use eval to expand a potential ~ 60651 eval path="$path" 60652 if test ! -f "$path" && test ! -d "$path"; then 60653 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60654 fi 60655 60656 if test -d "$path"; then 60657 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60658 else 60659 dir="`$DIRNAME "$path"`" 60660 base="`$BASENAME "$path"`" 60661 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60662 fi 60663 fi 60664 fi 60665 60666 60667 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60669 $as_echo_n "checking for freetype includes... " >&6; } 60670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60671 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60672 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60674 $as_echo_n "checking for freetype libraries... " >&6; } 60675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60676 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60677 fi 60678 60679 if test "x$FOUND_FREETYPE" != xyes; then 60680 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 60681 60682 windows_path="$FREETYPE_BASE_DIR" 60683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60684 unix_path=`$CYGPATH -u "$windows_path"` 60685 FREETYPE_BASE_DIR="$unix_path" 60686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60688 FREETYPE_BASE_DIR="$unix_path" 60689 fi 60690 60691 60692 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60693 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60694 METHOD="well-known location" 60695 60696 # Let's start with an optimistic view of the world :-) 60697 FOUND_FREETYPE=yes 60698 60699 # First look for the canonical freetype main include file ft2build.h. 60700 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60701 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60702 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60703 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60704 # Fail. 60705 FOUND_FREETYPE=no 60706 fi 60707 fi 60708 60709 if test "x$FOUND_FREETYPE" = xyes; then 60710 # Include file found, let's continue the sanity check. 60711 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60712 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60713 60714 # Reset to default value 60715 FREETYPE_BASE_NAME=freetype 60716 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60717 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60718 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60719 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60720 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60721 # for the .6 version explicitly. 60722 FREETYPE_BASE_NAME=freetype.6 60723 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60724 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60725 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60726 else 60727 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60728 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60729 FOUND_FREETYPE=no 60730 fi 60731 else 60732 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60733 # On Windows, we will need both .lib and .dll file. 60734 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60735 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60736 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60737 FOUND_FREETYPE=no 60738 fi 60739 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60740 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60741 # Found lib in isa dir, use that instead. 60742 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60744 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60745 fi 60746 fi 60747 fi 60748 60749 if test "x$FOUND_FREETYPE" = xyes; then 60750 60751 # Only process if variable expands to non-empty 60752 60753 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60755 60756 # Input might be given as Windows format, start by converting to 60757 # unix format. 60758 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60759 new_path=`$CYGPATH -u "$path"` 60760 60761 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60762 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60763 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60764 # "foo.exe" is OK but "foo" is an error. 60765 # 60766 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60767 # It is also a way to make sure we got the proper file name for the real test later on. 60768 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60769 if test "x$test_shortpath" = x; then 60770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60771 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60772 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60773 fi 60774 60775 # Call helper function which possibly converts this using DOS-style short mode. 60776 # If so, the updated path is stored in $new_path. 60777 60778 input_path="$new_path" 60779 # Check if we need to convert this using DOS-style short mode. If the path 60780 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60781 # take no chances and rewrite it. 60782 # Note: m4 eats our [], so we need to use [ and ] instead. 60783 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60784 if test "x$has_forbidden_chars" != x; then 60785 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60786 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60787 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60788 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60789 # Going to short mode and back again did indeed matter. Since short mode is 60790 # case insensitive, let's make it lowercase to improve readability. 60791 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60792 # Now convert it back to Unix-style (cygpath) 60793 input_path=`$CYGPATH -u "$shortmode_path"` 60794 new_path="$input_path" 60795 fi 60796 fi 60797 60798 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60799 if test "x$test_cygdrive_prefix" = x; then 60800 # As a simple fix, exclude /usr/bin since it's not a real path. 60801 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60802 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60803 # a path prefixed by /cygdrive for fixpath to work. 60804 new_path="$CYGWIN_ROOT_PATH$input_path" 60805 fi 60806 fi 60807 60808 60809 if test "x$path" != "x$new_path"; then 60810 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60811 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60812 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60813 fi 60814 60815 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60816 60817 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60818 has_colon=`$ECHO $path | $GREP ^.:` 60819 new_path="$path" 60820 if test "x$has_colon" = x; then 60821 # Not in mixed or Windows style, start by that. 60822 new_path=`cmd //c echo $path` 60823 fi 60824 60825 60826 input_path="$new_path" 60827 # Check if we need to convert this using DOS-style short mode. If the path 60828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60829 # take no chances and rewrite it. 60830 # Note: m4 eats our [], so we need to use [ and ] instead. 60831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60832 if test "x$has_forbidden_chars" != x; then 60833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60834 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60835 fi 60836 60837 60838 windows_path="$new_path" 60839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60840 unix_path=`$CYGPATH -u "$windows_path"` 60841 new_path="$unix_path" 60842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60844 new_path="$unix_path" 60845 fi 60846 60847 if test "x$path" != "x$new_path"; then 60848 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60850 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60851 fi 60852 60853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60855 60856 else 60857 # We're on a unix platform. Hooray! :) 60858 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60859 has_space=`$ECHO "$path" | $GREP " "` 60860 if test "x$has_space" != x; then 60861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60862 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60863 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60864 fi 60865 60866 # Use eval to expand a potential ~ 60867 eval path="$path" 60868 if test ! -f "$path" && test ! -d "$path"; then 60869 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60870 fi 60871 60872 if test -d "$path"; then 60873 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60874 else 60875 dir="`$DIRNAME "$path"`" 60876 base="`$BASENAME "$path"`" 60877 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60878 fi 60879 fi 60880 fi 60881 60882 60883 # Only process if variable expands to non-empty 60884 60885 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60887 60888 # Input might be given as Windows format, start by converting to 60889 # unix format. 60890 path="$POTENTIAL_FREETYPE_LIB_PATH" 60891 new_path=`$CYGPATH -u "$path"` 60892 60893 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60894 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60895 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60896 # "foo.exe" is OK but "foo" is an error. 60897 # 60898 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60899 # It is also a way to make sure we got the proper file name for the real test later on. 60900 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60901 if test "x$test_shortpath" = x; then 60902 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60903 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60904 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60905 fi 60906 60907 # Call helper function which possibly converts this using DOS-style short mode. 60908 # If so, the updated path is stored in $new_path. 60909 60910 input_path="$new_path" 60911 # Check if we need to convert this using DOS-style short mode. If the path 60912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60913 # take no chances and rewrite it. 60914 # Note: m4 eats our [], so we need to use [ and ] instead. 60915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60916 if test "x$has_forbidden_chars" != x; then 60917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60918 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60919 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60920 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60921 # Going to short mode and back again did indeed matter. Since short mode is 60922 # case insensitive, let's make it lowercase to improve readability. 60923 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60924 # Now convert it back to Unix-style (cygpath) 60925 input_path=`$CYGPATH -u "$shortmode_path"` 60926 new_path="$input_path" 60927 fi 60928 fi 60929 60930 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60931 if test "x$test_cygdrive_prefix" = x; then 60932 # As a simple fix, exclude /usr/bin since it's not a real path. 60933 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60934 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60935 # a path prefixed by /cygdrive for fixpath to work. 60936 new_path="$CYGWIN_ROOT_PATH$input_path" 60937 fi 60938 fi 60939 60940 60941 if test "x$path" != "x$new_path"; then 60942 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60944 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60945 fi 60946 60947 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60948 60949 path="$POTENTIAL_FREETYPE_LIB_PATH" 60950 has_colon=`$ECHO $path | $GREP ^.:` 60951 new_path="$path" 60952 if test "x$has_colon" = x; then 60953 # Not in mixed or Windows style, start by that. 60954 new_path=`cmd //c echo $path` 60955 fi 60956 60957 60958 input_path="$new_path" 60959 # Check if we need to convert this using DOS-style short mode. If the path 60960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60961 # take no chances and rewrite it. 60962 # Note: m4 eats our [], so we need to use [ and ] instead. 60963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60964 if test "x$has_forbidden_chars" != x; then 60965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60966 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60967 fi 60968 60969 60970 windows_path="$new_path" 60971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60972 unix_path=`$CYGPATH -u "$windows_path"` 60973 new_path="$unix_path" 60974 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60975 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60976 new_path="$unix_path" 60977 fi 60978 60979 if test "x$path" != "x$new_path"; then 60980 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60983 fi 60984 60985 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60986 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60987 60988 else 60989 # We're on a unix platform. Hooray! :) 60990 path="$POTENTIAL_FREETYPE_LIB_PATH" 60991 has_space=`$ECHO "$path" | $GREP " "` 60992 if test "x$has_space" != x; then 60993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60994 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60995 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60996 fi 60997 60998 # Use eval to expand a potential ~ 60999 eval path="$path" 61000 if test ! -f "$path" && test ! -d "$path"; then 61001 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61002 fi 61003 61004 if test -d "$path"; then 61005 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61006 else 61007 dir="`$DIRNAME "$path"`" 61008 base="`$BASENAME "$path"`" 61009 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61010 fi 61011 fi 61012 fi 61013 61014 61015 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61017 $as_echo_n "checking for freetype includes... " >&6; } 61018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61019 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61020 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61022 $as_echo_n "checking for freetype libraries... " >&6; } 61023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61024 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61025 fi 61026 61027 fi 61028 if test "x$FOUND_FREETYPE" != xyes; then 61029 FREETYPE_BASE_DIR="$HOME/freetype" 61030 61031 windows_path="$FREETYPE_BASE_DIR" 61032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61033 unix_path=`$CYGPATH -u "$windows_path"` 61034 FREETYPE_BASE_DIR="$unix_path" 61035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61037 FREETYPE_BASE_DIR="$unix_path" 61038 fi 61039 61040 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61041 61042 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61043 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61044 METHOD="well-known location" 61045 61046 # Let's start with an optimistic view of the world :-) 61047 FOUND_FREETYPE=yes 61048 61049 # First look for the canonical freetype main include file ft2build.h. 61050 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61051 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61052 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61053 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61054 # Fail. 61055 FOUND_FREETYPE=no 61056 fi 61057 fi 61058 61059 if test "x$FOUND_FREETYPE" = xyes; then 61060 # Include file found, let's continue the sanity check. 61061 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61062 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61063 61064 # Reset to default value 61065 FREETYPE_BASE_NAME=freetype 61066 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61067 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61068 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61069 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61070 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61071 # for the .6 version explicitly. 61072 FREETYPE_BASE_NAME=freetype.6 61073 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61074 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61075 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61076 else 61077 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61078 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61079 FOUND_FREETYPE=no 61080 fi 61081 else 61082 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61083 # On Windows, we will need both .lib and .dll file. 61084 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61085 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61086 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61087 FOUND_FREETYPE=no 61088 fi 61089 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61090 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61091 # Found lib in isa dir, use that instead. 61092 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61093 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61094 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61095 fi 61096 fi 61097 fi 61098 61099 if test "x$FOUND_FREETYPE" = xyes; then 61100 61101 # Only process if variable expands to non-empty 61102 61103 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61104 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61105 61106 # Input might be given as Windows format, start by converting to 61107 # unix format. 61108 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61109 new_path=`$CYGPATH -u "$path"` 61110 61111 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61112 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61113 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61114 # "foo.exe" is OK but "foo" is an error. 61115 # 61116 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61117 # It is also a way to make sure we got the proper file name for the real test later on. 61118 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61119 if test "x$test_shortpath" = x; then 61120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61121 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61122 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61123 fi 61124 61125 # Call helper function which possibly converts this using DOS-style short mode. 61126 # If so, the updated path is stored in $new_path. 61127 61128 input_path="$new_path" 61129 # Check if we need to convert this using DOS-style short mode. If the path 61130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61131 # take no chances and rewrite it. 61132 # Note: m4 eats our [], so we need to use [ and ] instead. 61133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61134 if test "x$has_forbidden_chars" != x; then 61135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61136 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61137 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61138 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61139 # Going to short mode and back again did indeed matter. Since short mode is 61140 # case insensitive, let's make it lowercase to improve readability. 61141 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61142 # Now convert it back to Unix-style (cygpath) 61143 input_path=`$CYGPATH -u "$shortmode_path"` 61144 new_path="$input_path" 61145 fi 61146 fi 61147 61148 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61149 if test "x$test_cygdrive_prefix" = x; then 61150 # As a simple fix, exclude /usr/bin since it's not a real path. 61151 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61152 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61153 # a path prefixed by /cygdrive for fixpath to work. 61154 new_path="$CYGWIN_ROOT_PATH$input_path" 61155 fi 61156 fi 61157 61158 61159 if test "x$path" != "x$new_path"; then 61160 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61162 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61163 fi 61164 61165 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61166 61167 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61168 has_colon=`$ECHO $path | $GREP ^.:` 61169 new_path="$path" 61170 if test "x$has_colon" = x; then 61171 # Not in mixed or Windows style, start by that. 61172 new_path=`cmd //c echo $path` 61173 fi 61174 61175 61176 input_path="$new_path" 61177 # Check if we need to convert this using DOS-style short mode. If the path 61178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61179 # take no chances and rewrite it. 61180 # Note: m4 eats our [], so we need to use [ and ] instead. 61181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61182 if test "x$has_forbidden_chars" != x; then 61183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61184 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61185 fi 61186 61187 61188 windows_path="$new_path" 61189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61190 unix_path=`$CYGPATH -u "$windows_path"` 61191 new_path="$unix_path" 61192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61194 new_path="$unix_path" 61195 fi 61196 61197 if test "x$path" != "x$new_path"; then 61198 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61199 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61200 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61201 fi 61202 61203 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61204 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61205 61206 else 61207 # We're on a unix platform. Hooray! :) 61208 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61209 has_space=`$ECHO "$path" | $GREP " "` 61210 if test "x$has_space" != x; then 61211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61212 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61213 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61214 fi 61215 61216 # Use eval to expand a potential ~ 61217 eval path="$path" 61218 if test ! -f "$path" && test ! -d "$path"; then 61219 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61220 fi 61221 61222 if test -d "$path"; then 61223 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61224 else 61225 dir="`$DIRNAME "$path"`" 61226 base="`$BASENAME "$path"`" 61227 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61228 fi 61229 fi 61230 fi 61231 61232 61233 # Only process if variable expands to non-empty 61234 61235 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61237 61238 # Input might be given as Windows format, start by converting to 61239 # unix format. 61240 path="$POTENTIAL_FREETYPE_LIB_PATH" 61241 new_path=`$CYGPATH -u "$path"` 61242 61243 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61244 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61245 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61246 # "foo.exe" is OK but "foo" is an error. 61247 # 61248 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61249 # It is also a way to make sure we got the proper file name for the real test later on. 61250 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61251 if test "x$test_shortpath" = x; then 61252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61253 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61254 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61255 fi 61256 61257 # Call helper function which possibly converts this using DOS-style short mode. 61258 # If so, the updated path is stored in $new_path. 61259 61260 input_path="$new_path" 61261 # Check if we need to convert this using DOS-style short mode. If the path 61262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61263 # take no chances and rewrite it. 61264 # Note: m4 eats our [], so we need to use [ and ] instead. 61265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61266 if test "x$has_forbidden_chars" != x; then 61267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61271 # Going to short mode and back again did indeed matter. Since short mode is 61272 # case insensitive, let's make it lowercase to improve readability. 61273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61274 # Now convert it back to Unix-style (cygpath) 61275 input_path=`$CYGPATH -u "$shortmode_path"` 61276 new_path="$input_path" 61277 fi 61278 fi 61279 61280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61281 if test "x$test_cygdrive_prefix" = x; then 61282 # As a simple fix, exclude /usr/bin since it's not a real path. 61283 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61285 # a path prefixed by /cygdrive for fixpath to work. 61286 new_path="$CYGWIN_ROOT_PATH$input_path" 61287 fi 61288 fi 61289 61290 61291 if test "x$path" != "x$new_path"; then 61292 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61294 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61295 fi 61296 61297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61298 61299 path="$POTENTIAL_FREETYPE_LIB_PATH" 61300 has_colon=`$ECHO $path | $GREP ^.:` 61301 new_path="$path" 61302 if test "x$has_colon" = x; then 61303 # Not in mixed or Windows style, start by that. 61304 new_path=`cmd //c echo $path` 61305 fi 61306 61307 61308 input_path="$new_path" 61309 # Check if we need to convert this using DOS-style short mode. If the path 61310 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61311 # take no chances and rewrite it. 61312 # Note: m4 eats our [], so we need to use [ and ] instead. 61313 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61314 if test "x$has_forbidden_chars" != x; then 61315 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61316 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61317 fi 61318 61319 61320 windows_path="$new_path" 61321 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61322 unix_path=`$CYGPATH -u "$windows_path"` 61323 new_path="$unix_path" 61324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61325 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61326 new_path="$unix_path" 61327 fi 61328 61329 if test "x$path" != "x$new_path"; then 61330 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61331 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61332 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61333 fi 61334 61335 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61336 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61337 61338 else 61339 # We're on a unix platform. Hooray! :) 61340 path="$POTENTIAL_FREETYPE_LIB_PATH" 61341 has_space=`$ECHO "$path" | $GREP " "` 61342 if test "x$has_space" != x; then 61343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61344 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61345 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61346 fi 61347 61348 # Use eval to expand a potential ~ 61349 eval path="$path" 61350 if test ! -f "$path" && test ! -d "$path"; then 61351 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61352 fi 61353 61354 if test -d "$path"; then 61355 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61356 else 61357 dir="`$DIRNAME "$path"`" 61358 base="`$BASENAME "$path"`" 61359 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61360 fi 61361 fi 61362 fi 61363 61364 61365 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61367 $as_echo_n "checking for freetype includes... " >&6; } 61368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61369 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61370 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61372 $as_echo_n "checking for freetype libraries... " >&6; } 61373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61374 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61375 fi 61376 61377 else 61378 61379 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61380 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61381 METHOD="well-known location" 61382 61383 # Let's start with an optimistic view of the world :-) 61384 FOUND_FREETYPE=yes 61385 61386 # First look for the canonical freetype main include file ft2build.h. 61387 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61388 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61389 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61390 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61391 # Fail. 61392 FOUND_FREETYPE=no 61393 fi 61394 fi 61395 61396 if test "x$FOUND_FREETYPE" = xyes; then 61397 # Include file found, let's continue the sanity check. 61398 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61399 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61400 61401 # Reset to default value 61402 FREETYPE_BASE_NAME=freetype 61403 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61404 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61405 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61406 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61407 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61408 # for the .6 version explicitly. 61409 FREETYPE_BASE_NAME=freetype.6 61410 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61411 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61412 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61413 else 61414 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61415 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61416 FOUND_FREETYPE=no 61417 fi 61418 else 61419 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61420 # On Windows, we will need both .lib and .dll file. 61421 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61422 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61423 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61424 FOUND_FREETYPE=no 61425 fi 61426 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61427 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61428 # Found lib in isa dir, use that instead. 61429 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61430 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61431 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61432 fi 61433 fi 61434 fi 61435 61436 if test "x$FOUND_FREETYPE" = xyes; then 61437 61438 # Only process if variable expands to non-empty 61439 61440 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61442 61443 # Input might be given as Windows format, start by converting to 61444 # unix format. 61445 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61446 new_path=`$CYGPATH -u "$path"` 61447 61448 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61449 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61450 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61451 # "foo.exe" is OK but "foo" is an error. 61452 # 61453 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61454 # It is also a way to make sure we got the proper file name for the real test later on. 61455 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61456 if test "x$test_shortpath" = x; then 61457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61458 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61459 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61460 fi 61461 61462 # Call helper function which possibly converts this using DOS-style short mode. 61463 # If so, the updated path is stored in $new_path. 61464 61465 input_path="$new_path" 61466 # Check if we need to convert this using DOS-style short mode. If the path 61467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61468 # take no chances and rewrite it. 61469 # Note: m4 eats our [], so we need to use [ and ] instead. 61470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61471 if test "x$has_forbidden_chars" != x; then 61472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61473 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61474 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61475 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61476 # Going to short mode and back again did indeed matter. Since short mode is 61477 # case insensitive, let's make it lowercase to improve readability. 61478 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61479 # Now convert it back to Unix-style (cygpath) 61480 input_path=`$CYGPATH -u "$shortmode_path"` 61481 new_path="$input_path" 61482 fi 61483 fi 61484 61485 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61486 if test "x$test_cygdrive_prefix" = x; then 61487 # As a simple fix, exclude /usr/bin since it's not a real path. 61488 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61489 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61490 # a path prefixed by /cygdrive for fixpath to work. 61491 new_path="$CYGWIN_ROOT_PATH$input_path" 61492 fi 61493 fi 61494 61495 61496 if test "x$path" != "x$new_path"; then 61497 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61498 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61499 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61500 fi 61501 61502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61503 61504 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61505 has_colon=`$ECHO $path | $GREP ^.:` 61506 new_path="$path" 61507 if test "x$has_colon" = x; then 61508 # Not in mixed or Windows style, start by that. 61509 new_path=`cmd //c echo $path` 61510 fi 61511 61512 61513 input_path="$new_path" 61514 # Check if we need to convert this using DOS-style short mode. If the path 61515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61516 # take no chances and rewrite it. 61517 # Note: m4 eats our [], so we need to use [ and ] instead. 61518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61519 if test "x$has_forbidden_chars" != x; then 61520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61521 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61522 fi 61523 61524 61525 windows_path="$new_path" 61526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61527 unix_path=`$CYGPATH -u "$windows_path"` 61528 new_path="$unix_path" 61529 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61530 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61531 new_path="$unix_path" 61532 fi 61533 61534 if test "x$path" != "x$new_path"; then 61535 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61536 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61537 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61538 fi 61539 61540 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61541 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61542 61543 else 61544 # We're on a unix platform. Hooray! :) 61545 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61546 has_space=`$ECHO "$path" | $GREP " "` 61547 if test "x$has_space" != x; then 61548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61549 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61550 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61551 fi 61552 61553 # Use eval to expand a potential ~ 61554 eval path="$path" 61555 if test ! -f "$path" && test ! -d "$path"; then 61556 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61557 fi 61558 61559 if test -d "$path"; then 61560 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61561 else 61562 dir="`$DIRNAME "$path"`" 61563 base="`$BASENAME "$path"`" 61564 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61565 fi 61566 fi 61567 fi 61568 61569 61570 # Only process if variable expands to non-empty 61571 61572 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61574 61575 # Input might be given as Windows format, start by converting to 61576 # unix format. 61577 path="$POTENTIAL_FREETYPE_LIB_PATH" 61578 new_path=`$CYGPATH -u "$path"` 61579 61580 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61581 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61582 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61583 # "foo.exe" is OK but "foo" is an error. 61584 # 61585 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61586 # It is also a way to make sure we got the proper file name for the real test later on. 61587 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61588 if test "x$test_shortpath" = x; then 61589 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61590 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61591 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61592 fi 61593 61594 # Call helper function which possibly converts this using DOS-style short mode. 61595 # If so, the updated path is stored in $new_path. 61596 61597 input_path="$new_path" 61598 # Check if we need to convert this using DOS-style short mode. If the path 61599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61600 # take no chances and rewrite it. 61601 # Note: m4 eats our [], so we need to use [ and ] instead. 61602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61603 if test "x$has_forbidden_chars" != x; then 61604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61605 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61606 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61607 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61608 # Going to short mode and back again did indeed matter. Since short mode is 61609 # case insensitive, let's make it lowercase to improve readability. 61610 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61611 # Now convert it back to Unix-style (cygpath) 61612 input_path=`$CYGPATH -u "$shortmode_path"` 61613 new_path="$input_path" 61614 fi 61615 fi 61616 61617 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61618 if test "x$test_cygdrive_prefix" = x; then 61619 # As a simple fix, exclude /usr/bin since it's not a real path. 61620 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61621 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61622 # a path prefixed by /cygdrive for fixpath to work. 61623 new_path="$CYGWIN_ROOT_PATH$input_path" 61624 fi 61625 fi 61626 61627 61628 if test "x$path" != "x$new_path"; then 61629 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61631 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61632 fi 61633 61634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61635 61636 path="$POTENTIAL_FREETYPE_LIB_PATH" 61637 has_colon=`$ECHO $path | $GREP ^.:` 61638 new_path="$path" 61639 if test "x$has_colon" = x; then 61640 # Not in mixed or Windows style, start by that. 61641 new_path=`cmd //c echo $path` 61642 fi 61643 61644 61645 input_path="$new_path" 61646 # Check if we need to convert this using DOS-style short mode. If the path 61647 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61648 # take no chances and rewrite it. 61649 # Note: m4 eats our [], so we need to use [ and ] instead. 61650 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61651 if test "x$has_forbidden_chars" != x; then 61652 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61653 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61654 fi 61655 61656 61657 windows_path="$new_path" 61658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61659 unix_path=`$CYGPATH -u "$windows_path"` 61660 new_path="$unix_path" 61661 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61662 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61663 new_path="$unix_path" 61664 fi 61665 61666 if test "x$path" != "x$new_path"; then 61667 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61668 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61669 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61670 fi 61671 61672 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61673 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61674 61675 else 61676 # We're on a unix platform. Hooray! :) 61677 path="$POTENTIAL_FREETYPE_LIB_PATH" 61678 has_space=`$ECHO "$path" | $GREP " "` 61679 if test "x$has_space" != x; then 61680 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61681 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61682 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61683 fi 61684 61685 # Use eval to expand a potential ~ 61686 eval path="$path" 61687 if test ! -f "$path" && test ! -d "$path"; then 61688 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61689 fi 61690 61691 if test -d "$path"; then 61692 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61693 else 61694 dir="`$DIRNAME "$path"`" 61695 base="`$BASENAME "$path"`" 61696 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61697 fi 61698 fi 61699 fi 61700 61701 61702 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61704 $as_echo_n "checking for freetype includes... " >&6; } 61705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61706 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61707 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61709 $as_echo_n "checking for freetype libraries... " >&6; } 61710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61711 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61712 fi 61713 61714 fi 61715 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 61716 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 61717 # Source is available, as a last resort try to build freetype in default location 61718 61719 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 61720 BUILD_FREETYPE=yes 61721 61722 # Check if the freetype sources are acessible.. 61723 if ! test -d $FREETYPE_SRC_PATH; then 61724 { $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 61725 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 61726 BUILD_FREETYPE=no 61727 fi 61728 # ..and contain a vc2010 project file 61729 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 61730 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 61731 { $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 61732 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 61733 BUILD_FREETYPE=no 61734 fi 61735 # Now check if configure found a version of 'msbuild.exe' 61736 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 61737 { $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 61738 $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;} 61739 BUILD_FREETYPE=no 61740 fi 61741 61742 # Ready to go.. 61743 if test "x$BUILD_FREETYPE" = xyes; then 61744 # msbuild requires trailing slashes for output directories 61745 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 61746 freetype_lib_path_unix="$freetype_lib_path" 61747 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 61748 61749 unix_path="$vcxproj_path" 61750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61751 windows_path=`$CYGPATH -m "$unix_path"` 61752 vcxproj_path="$windows_path" 61753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61754 windows_path=`cmd //c echo $unix_path` 61755 vcxproj_path="$windows_path" 61756 fi 61757 61758 61759 unix_path="$freetype_lib_path" 61760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61761 windows_path=`$CYGPATH -m "$unix_path"` 61762 freetype_lib_path="$windows_path" 61763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61764 windows_path=`cmd //c echo $unix_path` 61765 freetype_lib_path="$windows_path" 61766 fi 61767 61768 61769 unix_path="$freetype_obj_path" 61770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61771 windows_path=`$CYGPATH -m "$unix_path"` 61772 freetype_obj_path="$windows_path" 61773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61774 windows_path=`cmd //c echo $unix_path` 61775 freetype_obj_path="$windows_path" 61776 fi 61777 61778 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61779 freetype_platform=x64 61780 else 61781 freetype_platform=win32 61782 fi 61783 61784 # The original freetype project file is for VS 2010 (i.e. 'v100'), 61785 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 61786 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 61787 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 61788 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 61789 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 61790 61791 # First we try to build the freetype.dll 61792 $ECHO -e "@echo off\n"\ 61793 "$MSBUILD $vcxproj_path "\ 61794 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61795 "/p:Configuration=\"Release Multithreaded\" "\ 61796 "/p:Platform=$freetype_platform "\ 61797 "/p:ConfigurationType=DynamicLibrary "\ 61798 "/p:TargetName=freetype "\ 61799 "/p:OutDir=\"$freetype_lib_path\" "\ 61800 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 61801 cmd /c freetype.bat 61802 61803 if test -s "$freetype_lib_path_unix/freetype.dll"; then 61804 # If that succeeds we also build freetype.lib 61805 $ECHO -e "@echo off\n"\ 61806 "$MSBUILD $vcxproj_path "\ 61807 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61808 "/p:Configuration=\"Release Multithreaded\" "\ 61809 "/p:Platform=$freetype_platform "\ 61810 "/p:ConfigurationType=StaticLibrary "\ 61811 "/p:TargetName=freetype "\ 61812 "/p:OutDir=\"$freetype_lib_path\" "\ 61813 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 61814 cmd /c freetype.bat 61815 61816 if test -s "$freetype_lib_path_unix/freetype.lib"; then 61817 # Once we build both, lib and dll, set freetype lib and include path appropriately 61818 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 61819 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 61820 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 61821 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 61822 else 61823 BUILD_FREETYPE=no 61824 fi 61825 else 61826 BUILD_FREETYPE=no 61827 fi 61828 fi 61829 61830 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61831 61832 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61833 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61834 METHOD="well-known location" 61835 61836 # Let's start with an optimistic view of the world :-) 61837 FOUND_FREETYPE=yes 61838 61839 # First look for the canonical freetype main include file ft2build.h. 61840 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61841 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61842 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61843 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61844 # Fail. 61845 FOUND_FREETYPE=no 61846 fi 61847 fi 61848 61849 if test "x$FOUND_FREETYPE" = xyes; then 61850 # Include file found, let's continue the sanity check. 61851 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61852 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61853 61854 # Reset to default value 61855 FREETYPE_BASE_NAME=freetype 61856 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61857 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61858 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61859 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61860 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61861 # for the .6 version explicitly. 61862 FREETYPE_BASE_NAME=freetype.6 61863 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61864 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61865 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61866 else 61867 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61868 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61869 FOUND_FREETYPE=no 61870 fi 61871 else 61872 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61873 # On Windows, we will need both .lib and .dll file. 61874 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61875 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61876 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61877 FOUND_FREETYPE=no 61878 fi 61879 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61880 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61881 # Found lib in isa dir, use that instead. 61882 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61883 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61884 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61885 fi 61886 fi 61887 fi 61888 61889 if test "x$FOUND_FREETYPE" = xyes; then 61890 61891 # Only process if variable expands to non-empty 61892 61893 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61895 61896 # Input might be given as Windows format, start by converting to 61897 # unix format. 61898 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61899 new_path=`$CYGPATH -u "$path"` 61900 61901 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61902 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61903 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61904 # "foo.exe" is OK but "foo" is an error. 61905 # 61906 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61907 # It is also a way to make sure we got the proper file name for the real test later on. 61908 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61909 if test "x$test_shortpath" = x; then 61910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61911 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61912 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61913 fi 61914 61915 # Call helper function which possibly converts this using DOS-style short mode. 61916 # If so, the updated path is stored in $new_path. 61917 61918 input_path="$new_path" 61919 # Check if we need to convert this using DOS-style short mode. If the path 61920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61921 # take no chances and rewrite it. 61922 # Note: m4 eats our [], so we need to use [ and ] instead. 61923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61924 if test "x$has_forbidden_chars" != x; then 61925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61926 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61927 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61928 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61929 # Going to short mode and back again did indeed matter. Since short mode is 61930 # case insensitive, let's make it lowercase to improve readability. 61931 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61932 # Now convert it back to Unix-style (cygpath) 61933 input_path=`$CYGPATH -u "$shortmode_path"` 61934 new_path="$input_path" 61935 fi 61936 fi 61937 61938 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61939 if test "x$test_cygdrive_prefix" = x; then 61940 # As a simple fix, exclude /usr/bin since it's not a real path. 61941 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61942 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61943 # a path prefixed by /cygdrive for fixpath to work. 61944 new_path="$CYGWIN_ROOT_PATH$input_path" 61945 fi 61946 fi 61947 61948 61949 if test "x$path" != "x$new_path"; then 61950 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61951 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61952 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61953 fi 61954 61955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61956 61957 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61958 has_colon=`$ECHO $path | $GREP ^.:` 61959 new_path="$path" 61960 if test "x$has_colon" = x; then 61961 # Not in mixed or Windows style, start by that. 61962 new_path=`cmd //c echo $path` 61963 fi 61964 61965 61966 input_path="$new_path" 61967 # Check if we need to convert this using DOS-style short mode. If the path 61968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61969 # take no chances and rewrite it. 61970 # Note: m4 eats our [], so we need to use [ and ] instead. 61971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61972 if test "x$has_forbidden_chars" != x; then 61973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61974 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61975 fi 61976 61977 61978 windows_path="$new_path" 61979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61980 unix_path=`$CYGPATH -u "$windows_path"` 61981 new_path="$unix_path" 61982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61984 new_path="$unix_path" 61985 fi 61986 61987 if test "x$path" != "x$new_path"; then 61988 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61989 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61990 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61991 fi 61992 61993 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61994 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61995 61996 else 61997 # We're on a unix platform. Hooray! :) 61998 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61999 has_space=`$ECHO "$path" | $GREP " "` 62000 if test "x$has_space" != x; then 62001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62002 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62003 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62004 fi 62005 62006 # Use eval to expand a potential ~ 62007 eval path="$path" 62008 if test ! -f "$path" && test ! -d "$path"; then 62009 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62010 fi 62011 62012 if test -d "$path"; then 62013 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62014 else 62015 dir="`$DIRNAME "$path"`" 62016 base="`$BASENAME "$path"`" 62017 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62018 fi 62019 fi 62020 fi 62021 62022 62023 # Only process if variable expands to non-empty 62024 62025 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62026 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62027 62028 # Input might be given as Windows format, start by converting to 62029 # unix format. 62030 path="$POTENTIAL_FREETYPE_LIB_PATH" 62031 new_path=`$CYGPATH -u "$path"` 62032 62033 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62034 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62035 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62036 # "foo.exe" is OK but "foo" is an error. 62037 # 62038 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62039 # It is also a way to make sure we got the proper file name for the real test later on. 62040 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62041 if test "x$test_shortpath" = x; then 62042 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62043 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62044 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62045 fi 62046 62047 # Call helper function which possibly converts this using DOS-style short mode. 62048 # If so, the updated path is stored in $new_path. 62049 62050 input_path="$new_path" 62051 # Check if we need to convert this using DOS-style short mode. If the path 62052 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62053 # take no chances and rewrite it. 62054 # Note: m4 eats our [], so we need to use [ and ] instead. 62055 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62056 if test "x$has_forbidden_chars" != x; then 62057 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62058 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62059 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62060 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62061 # Going to short mode and back again did indeed matter. Since short mode is 62062 # case insensitive, let's make it lowercase to improve readability. 62063 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62064 # Now convert it back to Unix-style (cygpath) 62065 input_path=`$CYGPATH -u "$shortmode_path"` 62066 new_path="$input_path" 62067 fi 62068 fi 62069 62070 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62071 if test "x$test_cygdrive_prefix" = x; then 62072 # As a simple fix, exclude /usr/bin since it's not a real path. 62073 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62074 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62075 # a path prefixed by /cygdrive for fixpath to work. 62076 new_path="$CYGWIN_ROOT_PATH$input_path" 62077 fi 62078 fi 62079 62080 62081 if test "x$path" != "x$new_path"; then 62082 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62083 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62084 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62085 fi 62086 62087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62088 62089 path="$POTENTIAL_FREETYPE_LIB_PATH" 62090 has_colon=`$ECHO $path | $GREP ^.:` 62091 new_path="$path" 62092 if test "x$has_colon" = x; then 62093 # Not in mixed or Windows style, start by that. 62094 new_path=`cmd //c echo $path` 62095 fi 62096 62097 62098 input_path="$new_path" 62099 # Check if we need to convert this using DOS-style short mode. If the path 62100 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62101 # take no chances and rewrite it. 62102 # Note: m4 eats our [], so we need to use [ and ] instead. 62103 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62104 if test "x$has_forbidden_chars" != x; then 62105 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62106 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62107 fi 62108 62109 62110 windows_path="$new_path" 62111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62112 unix_path=`$CYGPATH -u "$windows_path"` 62113 new_path="$unix_path" 62114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62116 new_path="$unix_path" 62117 fi 62118 62119 if test "x$path" != "x$new_path"; then 62120 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62121 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62122 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62123 fi 62124 62125 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62126 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62127 62128 else 62129 # We're on a unix platform. Hooray! :) 62130 path="$POTENTIAL_FREETYPE_LIB_PATH" 62131 has_space=`$ECHO "$path" | $GREP " "` 62132 if test "x$has_space" != x; then 62133 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62134 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62135 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62136 fi 62137 62138 # Use eval to expand a potential ~ 62139 eval path="$path" 62140 if test ! -f "$path" && test ! -d "$path"; then 62141 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62142 fi 62143 62144 if test -d "$path"; then 62145 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62146 else 62147 dir="`$DIRNAME "$path"`" 62148 base="`$BASENAME "$path"`" 62149 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62150 fi 62151 fi 62152 fi 62153 62154 62155 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62157 $as_echo_n "checking for freetype includes... " >&6; } 62158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62159 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62160 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62162 $as_echo_n "checking for freetype libraries... " >&6; } 62163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62164 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62165 fi 62166 62167 else 62168 62169 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62170 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62171 METHOD="well-known location" 62172 62173 # Let's start with an optimistic view of the world :-) 62174 FOUND_FREETYPE=yes 62175 62176 # First look for the canonical freetype main include file ft2build.h. 62177 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62178 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62179 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62180 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62181 # Fail. 62182 FOUND_FREETYPE=no 62183 fi 62184 fi 62185 62186 if test "x$FOUND_FREETYPE" = xyes; then 62187 # Include file found, let's continue the sanity check. 62188 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62189 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62190 62191 # Reset to default value 62192 FREETYPE_BASE_NAME=freetype 62193 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62194 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62195 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62196 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62197 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62198 # for the .6 version explicitly. 62199 FREETYPE_BASE_NAME=freetype.6 62200 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62201 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62202 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62203 else 62204 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62205 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62206 FOUND_FREETYPE=no 62207 fi 62208 else 62209 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62210 # On Windows, we will need both .lib and .dll file. 62211 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62212 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62213 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62214 FOUND_FREETYPE=no 62215 fi 62216 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62217 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62218 # Found lib in isa dir, use that instead. 62219 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62221 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62222 fi 62223 fi 62224 fi 62225 62226 if test "x$FOUND_FREETYPE" = xyes; then 62227 62228 # Only process if variable expands to non-empty 62229 62230 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62232 62233 # Input might be given as Windows format, start by converting to 62234 # unix format. 62235 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62236 new_path=`$CYGPATH -u "$path"` 62237 62238 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62239 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62240 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62241 # "foo.exe" is OK but "foo" is an error. 62242 # 62243 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62244 # It is also a way to make sure we got the proper file name for the real test later on. 62245 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62246 if test "x$test_shortpath" = x; then 62247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62248 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62249 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62250 fi 62251 62252 # Call helper function which possibly converts this using DOS-style short mode. 62253 # If so, the updated path is stored in $new_path. 62254 62255 input_path="$new_path" 62256 # Check if we need to convert this using DOS-style short mode. If the path 62257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62258 # take no chances and rewrite it. 62259 # Note: m4 eats our [], so we need to use [ and ] instead. 62260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62261 if test "x$has_forbidden_chars" != x; then 62262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62266 # Going to short mode and back again did indeed matter. Since short mode is 62267 # case insensitive, let's make it lowercase to improve readability. 62268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62269 # Now convert it back to Unix-style (cygpath) 62270 input_path=`$CYGPATH -u "$shortmode_path"` 62271 new_path="$input_path" 62272 fi 62273 fi 62274 62275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62276 if test "x$test_cygdrive_prefix" = x; then 62277 # As a simple fix, exclude /usr/bin since it's not a real path. 62278 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62280 # a path prefixed by /cygdrive for fixpath to work. 62281 new_path="$CYGWIN_ROOT_PATH$input_path" 62282 fi 62283 fi 62284 62285 62286 if test "x$path" != "x$new_path"; then 62287 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62289 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62290 fi 62291 62292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62293 62294 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62295 has_colon=`$ECHO $path | $GREP ^.:` 62296 new_path="$path" 62297 if test "x$has_colon" = x; then 62298 # Not in mixed or Windows style, start by that. 62299 new_path=`cmd //c echo $path` 62300 fi 62301 62302 62303 input_path="$new_path" 62304 # Check if we need to convert this using DOS-style short mode. If the path 62305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62306 # take no chances and rewrite it. 62307 # Note: m4 eats our [], so we need to use [ and ] instead. 62308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62309 if test "x$has_forbidden_chars" != x; then 62310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62312 fi 62313 62314 62315 windows_path="$new_path" 62316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62317 unix_path=`$CYGPATH -u "$windows_path"` 62318 new_path="$unix_path" 62319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62321 new_path="$unix_path" 62322 fi 62323 62324 if test "x$path" != "x$new_path"; then 62325 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62327 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62328 fi 62329 62330 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62331 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62332 62333 else 62334 # We're on a unix platform. Hooray! :) 62335 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62336 has_space=`$ECHO "$path" | $GREP " "` 62337 if test "x$has_space" != x; then 62338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62339 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62340 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62341 fi 62342 62343 # Use eval to expand a potential ~ 62344 eval path="$path" 62345 if test ! -f "$path" && test ! -d "$path"; then 62346 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62347 fi 62348 62349 if test -d "$path"; then 62350 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62351 else 62352 dir="`$DIRNAME "$path"`" 62353 base="`$BASENAME "$path"`" 62354 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62355 fi 62356 fi 62357 fi 62358 62359 62360 # Only process if variable expands to non-empty 62361 62362 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62364 62365 # Input might be given as Windows format, start by converting to 62366 # unix format. 62367 path="$POTENTIAL_FREETYPE_LIB_PATH" 62368 new_path=`$CYGPATH -u "$path"` 62369 62370 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62371 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62372 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62373 # "foo.exe" is OK but "foo" is an error. 62374 # 62375 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62376 # It is also a way to make sure we got the proper file name for the real test later on. 62377 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62378 if test "x$test_shortpath" = x; then 62379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62380 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62381 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62382 fi 62383 62384 # Call helper function which possibly converts this using DOS-style short mode. 62385 # If so, the updated path is stored in $new_path. 62386 62387 input_path="$new_path" 62388 # Check if we need to convert this using DOS-style short mode. If the path 62389 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62390 # take no chances and rewrite it. 62391 # Note: m4 eats our [], so we need to use [ and ] instead. 62392 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62393 if test "x$has_forbidden_chars" != x; then 62394 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62395 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62396 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62397 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62398 # Going to short mode and back again did indeed matter. Since short mode is 62399 # case insensitive, let's make it lowercase to improve readability. 62400 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62401 # Now convert it back to Unix-style (cygpath) 62402 input_path=`$CYGPATH -u "$shortmode_path"` 62403 new_path="$input_path" 62404 fi 62405 fi 62406 62407 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62408 if test "x$test_cygdrive_prefix" = x; then 62409 # As a simple fix, exclude /usr/bin since it's not a real path. 62410 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62411 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62412 # a path prefixed by /cygdrive for fixpath to work. 62413 new_path="$CYGWIN_ROOT_PATH$input_path" 62414 fi 62415 fi 62416 62417 62418 if test "x$path" != "x$new_path"; then 62419 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62420 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62421 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62422 fi 62423 62424 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62425 62426 path="$POTENTIAL_FREETYPE_LIB_PATH" 62427 has_colon=`$ECHO $path | $GREP ^.:` 62428 new_path="$path" 62429 if test "x$has_colon" = x; then 62430 # Not in mixed or Windows style, start by that. 62431 new_path=`cmd //c echo $path` 62432 fi 62433 62434 62435 input_path="$new_path" 62436 # Check if we need to convert this using DOS-style short mode. If the path 62437 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62438 # take no chances and rewrite it. 62439 # Note: m4 eats our [], so we need to use [ and ] instead. 62440 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62441 if test "x$has_forbidden_chars" != x; then 62442 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62443 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62444 fi 62445 62446 62447 windows_path="$new_path" 62448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62449 unix_path=`$CYGPATH -u "$windows_path"` 62450 new_path="$unix_path" 62451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62452 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62453 new_path="$unix_path" 62454 fi 62455 62456 if test "x$path" != "x$new_path"; then 62457 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62458 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62459 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62460 fi 62461 62462 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62463 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62464 62465 else 62466 # We're on a unix platform. Hooray! :) 62467 path="$POTENTIAL_FREETYPE_LIB_PATH" 62468 has_space=`$ECHO "$path" | $GREP " "` 62469 if test "x$has_space" != x; then 62470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62471 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62472 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62473 fi 62474 62475 # Use eval to expand a potential ~ 62476 eval path="$path" 62477 if test ! -f "$path" && test ! -d "$path"; then 62478 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62479 fi 62480 62481 if test -d "$path"; then 62482 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62483 else 62484 dir="`$DIRNAME "$path"`" 62485 base="`$BASENAME "$path"`" 62486 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62487 fi 62488 fi 62489 fi 62490 62491 62492 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62494 $as_echo_n "checking for freetype includes... " >&6; } 62495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62496 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62497 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62499 $as_echo_n "checking for freetype libraries... " >&6; } 62500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62501 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62502 fi 62503 62504 fi 62505 fi 62506 fi 62507 else 62508 FREETYPE_BASE_DIR="$SYSROOT/usr" 62509 62510 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62511 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62512 METHOD="well-known location" 62513 62514 # Let's start with an optimistic view of the world :-) 62515 FOUND_FREETYPE=yes 62516 62517 # First look for the canonical freetype main include file ft2build.h. 62518 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62519 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62520 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62521 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62522 # Fail. 62523 FOUND_FREETYPE=no 62524 fi 62525 fi 62526 62527 if test "x$FOUND_FREETYPE" = xyes; then 62528 # Include file found, let's continue the sanity check. 62529 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62530 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62531 62532 # Reset to default value 62533 FREETYPE_BASE_NAME=freetype 62534 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62535 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62536 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62537 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62538 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62539 # for the .6 version explicitly. 62540 FREETYPE_BASE_NAME=freetype.6 62541 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62542 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62543 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62544 else 62545 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62546 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62547 FOUND_FREETYPE=no 62548 fi 62549 else 62550 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62551 # On Windows, we will need both .lib and .dll file. 62552 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62553 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62554 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62555 FOUND_FREETYPE=no 62556 fi 62557 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62558 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62559 # Found lib in isa dir, use that instead. 62560 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62562 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62563 fi 62564 fi 62565 fi 62566 62567 if test "x$FOUND_FREETYPE" = xyes; then 62568 62569 # Only process if variable expands to non-empty 62570 62571 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62573 62574 # Input might be given as Windows format, start by converting to 62575 # unix format. 62576 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62577 new_path=`$CYGPATH -u "$path"` 62578 62579 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62580 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62581 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62582 # "foo.exe" is OK but "foo" is an error. 62583 # 62584 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62585 # It is also a way to make sure we got the proper file name for the real test later on. 62586 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62587 if test "x$test_shortpath" = x; then 62588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62589 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62590 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62591 fi 62592 62593 # Call helper function which possibly converts this using DOS-style short mode. 62594 # If so, the updated path is stored in $new_path. 62595 62596 input_path="$new_path" 62597 # Check if we need to convert this using DOS-style short mode. If the path 62598 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62599 # take no chances and rewrite it. 62600 # Note: m4 eats our [], so we need to use [ and ] instead. 62601 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62602 if test "x$has_forbidden_chars" != x; then 62603 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62604 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62605 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62606 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62607 # Going to short mode and back again did indeed matter. Since short mode is 62608 # case insensitive, let's make it lowercase to improve readability. 62609 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62610 # Now convert it back to Unix-style (cygpath) 62611 input_path=`$CYGPATH -u "$shortmode_path"` 62612 new_path="$input_path" 62613 fi 62614 fi 62615 62616 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62617 if test "x$test_cygdrive_prefix" = x; then 62618 # As a simple fix, exclude /usr/bin since it's not a real path. 62619 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62620 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62621 # a path prefixed by /cygdrive for fixpath to work. 62622 new_path="$CYGWIN_ROOT_PATH$input_path" 62623 fi 62624 fi 62625 62626 62627 if test "x$path" != "x$new_path"; then 62628 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62629 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62630 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62631 fi 62632 62633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62634 62635 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62636 has_colon=`$ECHO $path | $GREP ^.:` 62637 new_path="$path" 62638 if test "x$has_colon" = x; then 62639 # Not in mixed or Windows style, start by that. 62640 new_path=`cmd //c echo $path` 62641 fi 62642 62643 62644 input_path="$new_path" 62645 # Check if we need to convert this using DOS-style short mode. If the path 62646 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62647 # take no chances and rewrite it. 62648 # Note: m4 eats our [], so we need to use [ and ] instead. 62649 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62650 if test "x$has_forbidden_chars" != x; then 62651 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62652 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62653 fi 62654 62655 62656 windows_path="$new_path" 62657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62658 unix_path=`$CYGPATH -u "$windows_path"` 62659 new_path="$unix_path" 62660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62661 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62662 new_path="$unix_path" 62663 fi 62664 62665 if test "x$path" != "x$new_path"; then 62666 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62668 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62669 fi 62670 62671 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62672 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62673 62674 else 62675 # We're on a unix platform. Hooray! :) 62676 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62677 has_space=`$ECHO "$path" | $GREP " "` 62678 if test "x$has_space" != x; then 62679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62680 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62681 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62682 fi 62683 62684 # Use eval to expand a potential ~ 62685 eval path="$path" 62686 if test ! -f "$path" && test ! -d "$path"; then 62687 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62688 fi 62689 62690 if test -d "$path"; then 62691 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62692 else 62693 dir="`$DIRNAME "$path"`" 62694 base="`$BASENAME "$path"`" 62695 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62696 fi 62697 fi 62698 fi 62699 62700 62701 # Only process if variable expands to non-empty 62702 62703 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62704 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62705 62706 # Input might be given as Windows format, start by converting to 62707 # unix format. 62708 path="$POTENTIAL_FREETYPE_LIB_PATH" 62709 new_path=`$CYGPATH -u "$path"` 62710 62711 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62712 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62713 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62714 # "foo.exe" is OK but "foo" is an error. 62715 # 62716 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62717 # It is also a way to make sure we got the proper file name for the real test later on. 62718 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62719 if test "x$test_shortpath" = x; then 62720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62721 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62722 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62723 fi 62724 62725 # Call helper function which possibly converts this using DOS-style short mode. 62726 # If so, the updated path is stored in $new_path. 62727 62728 input_path="$new_path" 62729 # Check if we need to convert this using DOS-style short mode. If the path 62730 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62731 # take no chances and rewrite it. 62732 # Note: m4 eats our [], so we need to use [ and ] instead. 62733 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62734 if test "x$has_forbidden_chars" != x; then 62735 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62736 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62737 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62738 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62739 # Going to short mode and back again did indeed matter. Since short mode is 62740 # case insensitive, let's make it lowercase to improve readability. 62741 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62742 # Now convert it back to Unix-style (cygpath) 62743 input_path=`$CYGPATH -u "$shortmode_path"` 62744 new_path="$input_path" 62745 fi 62746 fi 62747 62748 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62749 if test "x$test_cygdrive_prefix" = x; then 62750 # As a simple fix, exclude /usr/bin since it's not a real path. 62751 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62752 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62753 # a path prefixed by /cygdrive for fixpath to work. 62754 new_path="$CYGWIN_ROOT_PATH$input_path" 62755 fi 62756 fi 62757 62758 62759 if test "x$path" != "x$new_path"; then 62760 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62762 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62763 fi 62764 62765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62766 62767 path="$POTENTIAL_FREETYPE_LIB_PATH" 62768 has_colon=`$ECHO $path | $GREP ^.:` 62769 new_path="$path" 62770 if test "x$has_colon" = x; then 62771 # Not in mixed or Windows style, start by that. 62772 new_path=`cmd //c echo $path` 62773 fi 62774 62775 62776 input_path="$new_path" 62777 # Check if we need to convert this using DOS-style short mode. If the path 62778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62779 # take no chances and rewrite it. 62780 # Note: m4 eats our [], so we need to use [ and ] instead. 62781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62782 if test "x$has_forbidden_chars" != x; then 62783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62784 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62785 fi 62786 62787 62788 windows_path="$new_path" 62789 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62790 unix_path=`$CYGPATH -u "$windows_path"` 62791 new_path="$unix_path" 62792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62793 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62794 new_path="$unix_path" 62795 fi 62796 62797 if test "x$path" != "x$new_path"; then 62798 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62799 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62800 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62801 fi 62802 62803 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62804 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62805 62806 else 62807 # We're on a unix platform. Hooray! :) 62808 path="$POTENTIAL_FREETYPE_LIB_PATH" 62809 has_space=`$ECHO "$path" | $GREP " "` 62810 if test "x$has_space" != x; then 62811 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62812 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62813 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62814 fi 62815 62816 # Use eval to expand a potential ~ 62817 eval path="$path" 62818 if test ! -f "$path" && test ! -d "$path"; then 62819 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62820 fi 62821 62822 if test -d "$path"; then 62823 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62824 else 62825 dir="`$DIRNAME "$path"`" 62826 base="`$BASENAME "$path"`" 62827 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62828 fi 62829 fi 62830 fi 62831 62832 62833 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62835 $as_echo_n "checking for freetype includes... " >&6; } 62836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62837 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62838 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62840 $as_echo_n "checking for freetype libraries... " >&6; } 62841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62842 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62843 fi 62844 62845 62846 if test "x$FOUND_FREETYPE" != xyes; then 62847 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 62848 62849 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62850 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62851 METHOD="well-known location" 62852 62853 # Let's start with an optimistic view of the world :-) 62854 FOUND_FREETYPE=yes 62855 62856 # First look for the canonical freetype main include file ft2build.h. 62857 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62858 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62859 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62860 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62861 # Fail. 62862 FOUND_FREETYPE=no 62863 fi 62864 fi 62865 62866 if test "x$FOUND_FREETYPE" = xyes; then 62867 # Include file found, let's continue the sanity check. 62868 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62869 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62870 62871 # Reset to default value 62872 FREETYPE_BASE_NAME=freetype 62873 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62874 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62875 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62876 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62877 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62878 # for the .6 version explicitly. 62879 FREETYPE_BASE_NAME=freetype.6 62880 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62881 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62882 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62883 else 62884 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62885 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62886 FOUND_FREETYPE=no 62887 fi 62888 else 62889 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62890 # On Windows, we will need both .lib and .dll file. 62891 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62892 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62893 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62894 FOUND_FREETYPE=no 62895 fi 62896 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62897 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62898 # Found lib in isa dir, use that instead. 62899 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62900 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62901 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62902 fi 62903 fi 62904 fi 62905 62906 if test "x$FOUND_FREETYPE" = xyes; then 62907 62908 # Only process if variable expands to non-empty 62909 62910 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62912 62913 # Input might be given as Windows format, start by converting to 62914 # unix format. 62915 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62916 new_path=`$CYGPATH -u "$path"` 62917 62918 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62919 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62920 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62921 # "foo.exe" is OK but "foo" is an error. 62922 # 62923 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62924 # It is also a way to make sure we got the proper file name for the real test later on. 62925 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62926 if test "x$test_shortpath" = x; then 62927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62928 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62929 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62930 fi 62931 62932 # Call helper function which possibly converts this using DOS-style short mode. 62933 # If so, the updated path is stored in $new_path. 62934 62935 input_path="$new_path" 62936 # Check if we need to convert this using DOS-style short mode. If the path 62937 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62938 # take no chances and rewrite it. 62939 # Note: m4 eats our [], so we need to use [ and ] instead. 62940 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62941 if test "x$has_forbidden_chars" != x; then 62942 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62943 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62944 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62945 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62946 # Going to short mode and back again did indeed matter. Since short mode is 62947 # case insensitive, let's make it lowercase to improve readability. 62948 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62949 # Now convert it back to Unix-style (cygpath) 62950 input_path=`$CYGPATH -u "$shortmode_path"` 62951 new_path="$input_path" 62952 fi 62953 fi 62954 62955 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62956 if test "x$test_cygdrive_prefix" = x; then 62957 # As a simple fix, exclude /usr/bin since it's not a real path. 62958 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62959 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62960 # a path prefixed by /cygdrive for fixpath to work. 62961 new_path="$CYGWIN_ROOT_PATH$input_path" 62962 fi 62963 fi 62964 62965 62966 if test "x$path" != "x$new_path"; then 62967 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62968 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62969 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62970 fi 62971 62972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62973 62974 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62975 has_colon=`$ECHO $path | $GREP ^.:` 62976 new_path="$path" 62977 if test "x$has_colon" = x; then 62978 # Not in mixed or Windows style, start by that. 62979 new_path=`cmd //c echo $path` 62980 fi 62981 62982 62983 input_path="$new_path" 62984 # Check if we need to convert this using DOS-style short mode. If the path 62985 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62986 # take no chances and rewrite it. 62987 # Note: m4 eats our [], so we need to use [ and ] instead. 62988 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62989 if test "x$has_forbidden_chars" != x; then 62990 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62991 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62992 fi 62993 62994 62995 windows_path="$new_path" 62996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62997 unix_path=`$CYGPATH -u "$windows_path"` 62998 new_path="$unix_path" 62999 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63000 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63001 new_path="$unix_path" 63002 fi 63003 63004 if test "x$path" != "x$new_path"; then 63005 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63006 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63007 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63008 fi 63009 63010 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63011 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63012 63013 else 63014 # We're on a unix platform. Hooray! :) 63015 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63016 has_space=`$ECHO "$path" | $GREP " "` 63017 if test "x$has_space" != x; then 63018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63019 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63020 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63021 fi 63022 63023 # Use eval to expand a potential ~ 63024 eval path="$path" 63025 if test ! -f "$path" && test ! -d "$path"; then 63026 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63027 fi 63028 63029 if test -d "$path"; then 63030 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63031 else 63032 dir="`$DIRNAME "$path"`" 63033 base="`$BASENAME "$path"`" 63034 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63035 fi 63036 fi 63037 fi 63038 63039 63040 # Only process if variable expands to non-empty 63041 63042 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63043 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63044 63045 # Input might be given as Windows format, start by converting to 63046 # unix format. 63047 path="$POTENTIAL_FREETYPE_LIB_PATH" 63048 new_path=`$CYGPATH -u "$path"` 63049 63050 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63051 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63052 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63053 # "foo.exe" is OK but "foo" is an error. 63054 # 63055 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63056 # It is also a way to make sure we got the proper file name for the real test later on. 63057 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63058 if test "x$test_shortpath" = x; then 63059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63060 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63061 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63062 fi 63063 63064 # Call helper function which possibly converts this using DOS-style short mode. 63065 # If so, the updated path is stored in $new_path. 63066 63067 input_path="$new_path" 63068 # Check if we need to convert this using DOS-style short mode. If the path 63069 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63070 # take no chances and rewrite it. 63071 # Note: m4 eats our [], so we need to use [ and ] instead. 63072 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63073 if test "x$has_forbidden_chars" != x; then 63074 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63075 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63076 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63077 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63078 # Going to short mode and back again did indeed matter. Since short mode is 63079 # case insensitive, let's make it lowercase to improve readability. 63080 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63081 # Now convert it back to Unix-style (cygpath) 63082 input_path=`$CYGPATH -u "$shortmode_path"` 63083 new_path="$input_path" 63084 fi 63085 fi 63086 63087 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63088 if test "x$test_cygdrive_prefix" = x; then 63089 # As a simple fix, exclude /usr/bin since it's not a real path. 63090 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63091 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63092 # a path prefixed by /cygdrive for fixpath to work. 63093 new_path="$CYGWIN_ROOT_PATH$input_path" 63094 fi 63095 fi 63096 63097 63098 if test "x$path" != "x$new_path"; then 63099 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63100 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63101 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63102 fi 63103 63104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63105 63106 path="$POTENTIAL_FREETYPE_LIB_PATH" 63107 has_colon=`$ECHO $path | $GREP ^.:` 63108 new_path="$path" 63109 if test "x$has_colon" = x; then 63110 # Not in mixed or Windows style, start by that. 63111 new_path=`cmd //c echo $path` 63112 fi 63113 63114 63115 input_path="$new_path" 63116 # Check if we need to convert this using DOS-style short mode. If the path 63117 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63118 # take no chances and rewrite it. 63119 # Note: m4 eats our [], so we need to use [ and ] instead. 63120 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63121 if test "x$has_forbidden_chars" != x; then 63122 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63123 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63124 fi 63125 63126 63127 windows_path="$new_path" 63128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63129 unix_path=`$CYGPATH -u "$windows_path"` 63130 new_path="$unix_path" 63131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63133 new_path="$unix_path" 63134 fi 63135 63136 if test "x$path" != "x$new_path"; then 63137 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63138 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63139 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63140 fi 63141 63142 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63143 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63144 63145 else 63146 # We're on a unix platform. Hooray! :) 63147 path="$POTENTIAL_FREETYPE_LIB_PATH" 63148 has_space=`$ECHO "$path" | $GREP " "` 63149 if test "x$has_space" != x; then 63150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63151 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63152 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63153 fi 63154 63155 # Use eval to expand a potential ~ 63156 eval path="$path" 63157 if test ! -f "$path" && test ! -d "$path"; then 63158 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63159 fi 63160 63161 if test -d "$path"; then 63162 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63163 else 63164 dir="`$DIRNAME "$path"`" 63165 base="`$BASENAME "$path"`" 63166 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63167 fi 63168 fi 63169 fi 63170 63171 63172 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63174 $as_echo_n "checking for freetype includes... " >&6; } 63175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63176 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63177 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63179 $as_echo_n "checking for freetype libraries... " >&6; } 63180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63181 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63182 fi 63183 63184 fi 63185 if test "x$FOUND_FREETYPE" != xyes; then 63186 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 63187 63188 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63189 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63190 METHOD="well-known location" 63191 63192 # Let's start with an optimistic view of the world :-) 63193 FOUND_FREETYPE=yes 63194 63195 # First look for the canonical freetype main include file ft2build.h. 63196 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63197 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63198 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63199 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63200 # Fail. 63201 FOUND_FREETYPE=no 63202 fi 63203 fi 63204 63205 if test "x$FOUND_FREETYPE" = xyes; then 63206 # Include file found, let's continue the sanity check. 63207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63208 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63209 63210 # Reset to default value 63211 FREETYPE_BASE_NAME=freetype 63212 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63213 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63214 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63215 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63216 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63217 # for the .6 version explicitly. 63218 FREETYPE_BASE_NAME=freetype.6 63219 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63220 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63221 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63222 else 63223 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63224 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63225 FOUND_FREETYPE=no 63226 fi 63227 else 63228 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63229 # On Windows, we will need both .lib and .dll file. 63230 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63231 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63232 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63233 FOUND_FREETYPE=no 63234 fi 63235 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63236 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63237 # Found lib in isa dir, use that instead. 63238 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63240 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63241 fi 63242 fi 63243 fi 63244 63245 if test "x$FOUND_FREETYPE" = xyes; then 63246 63247 # Only process if variable expands to non-empty 63248 63249 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63251 63252 # Input might be given as Windows format, start by converting to 63253 # unix format. 63254 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63255 new_path=`$CYGPATH -u "$path"` 63256 63257 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63258 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63259 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63260 # "foo.exe" is OK but "foo" is an error. 63261 # 63262 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63263 # It is also a way to make sure we got the proper file name for the real test later on. 63264 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63265 if test "x$test_shortpath" = x; then 63266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63267 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63268 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63269 fi 63270 63271 # Call helper function which possibly converts this using DOS-style short mode. 63272 # If so, the updated path is stored in $new_path. 63273 63274 input_path="$new_path" 63275 # Check if we need to convert this using DOS-style short mode. If the path 63276 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63277 # take no chances and rewrite it. 63278 # Note: m4 eats our [], so we need to use [ and ] instead. 63279 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63280 if test "x$has_forbidden_chars" != x; then 63281 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63282 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63283 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63284 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63285 # Going to short mode and back again did indeed matter. Since short mode is 63286 # case insensitive, let's make it lowercase to improve readability. 63287 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63288 # Now convert it back to Unix-style (cygpath) 63289 input_path=`$CYGPATH -u "$shortmode_path"` 63290 new_path="$input_path" 63291 fi 63292 fi 63293 63294 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63295 if test "x$test_cygdrive_prefix" = x; then 63296 # As a simple fix, exclude /usr/bin since it's not a real path. 63297 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63298 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63299 # a path prefixed by /cygdrive for fixpath to work. 63300 new_path="$CYGWIN_ROOT_PATH$input_path" 63301 fi 63302 fi 63303 63304 63305 if test "x$path" != "x$new_path"; then 63306 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63308 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63309 fi 63310 63311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63312 63313 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63314 has_colon=`$ECHO $path | $GREP ^.:` 63315 new_path="$path" 63316 if test "x$has_colon" = x; then 63317 # Not in mixed or Windows style, start by that. 63318 new_path=`cmd //c echo $path` 63319 fi 63320 63321 63322 input_path="$new_path" 63323 # Check if we need to convert this using DOS-style short mode. If the path 63324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63325 # take no chances and rewrite it. 63326 # Note: m4 eats our [], so we need to use [ and ] instead. 63327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63328 if test "x$has_forbidden_chars" != x; then 63329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63330 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63331 fi 63332 63333 63334 windows_path="$new_path" 63335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63336 unix_path=`$CYGPATH -u "$windows_path"` 63337 new_path="$unix_path" 63338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63340 new_path="$unix_path" 63341 fi 63342 63343 if test "x$path" != "x$new_path"; then 63344 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63346 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63347 fi 63348 63349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63351 63352 else 63353 # We're on a unix platform. Hooray! :) 63354 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63355 has_space=`$ECHO "$path" | $GREP " "` 63356 if test "x$has_space" != x; then 63357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63358 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63359 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63360 fi 63361 63362 # Use eval to expand a potential ~ 63363 eval path="$path" 63364 if test ! -f "$path" && test ! -d "$path"; then 63365 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63366 fi 63367 63368 if test -d "$path"; then 63369 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63370 else 63371 dir="`$DIRNAME "$path"`" 63372 base="`$BASENAME "$path"`" 63373 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63374 fi 63375 fi 63376 fi 63377 63378 63379 # Only process if variable expands to non-empty 63380 63381 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63383 63384 # Input might be given as Windows format, start by converting to 63385 # unix format. 63386 path="$POTENTIAL_FREETYPE_LIB_PATH" 63387 new_path=`$CYGPATH -u "$path"` 63388 63389 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63390 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63391 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63392 # "foo.exe" is OK but "foo" is an error. 63393 # 63394 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63395 # It is also a way to make sure we got the proper file name for the real test later on. 63396 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63397 if test "x$test_shortpath" = x; then 63398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63399 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63400 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63401 fi 63402 63403 # Call helper function which possibly converts this using DOS-style short mode. 63404 # If so, the updated path is stored in $new_path. 63405 63406 input_path="$new_path" 63407 # Check if we need to convert this using DOS-style short mode. If the path 63408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63409 # take no chances and rewrite it. 63410 # Note: m4 eats our [], so we need to use [ and ] instead. 63411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63412 if test "x$has_forbidden_chars" != x; then 63413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63414 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63415 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63416 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63417 # Going to short mode and back again did indeed matter. Since short mode is 63418 # case insensitive, let's make it lowercase to improve readability. 63419 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63420 # Now convert it back to Unix-style (cygpath) 63421 input_path=`$CYGPATH -u "$shortmode_path"` 63422 new_path="$input_path" 63423 fi 63424 fi 63425 63426 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63427 if test "x$test_cygdrive_prefix" = x; then 63428 # As a simple fix, exclude /usr/bin since it's not a real path. 63429 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63430 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63431 # a path prefixed by /cygdrive for fixpath to work. 63432 new_path="$CYGWIN_ROOT_PATH$input_path" 63433 fi 63434 fi 63435 63436 63437 if test "x$path" != "x$new_path"; then 63438 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63440 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63441 fi 63442 63443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63444 63445 path="$POTENTIAL_FREETYPE_LIB_PATH" 63446 has_colon=`$ECHO $path | $GREP ^.:` 63447 new_path="$path" 63448 if test "x$has_colon" = x; then 63449 # Not in mixed or Windows style, start by that. 63450 new_path=`cmd //c echo $path` 63451 fi 63452 63453 63454 input_path="$new_path" 63455 # Check if we need to convert this using DOS-style short mode. If the path 63456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63457 # take no chances and rewrite it. 63458 # Note: m4 eats our [], so we need to use [ and ] instead. 63459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63460 if test "x$has_forbidden_chars" != x; then 63461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63462 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63463 fi 63464 63465 63466 windows_path="$new_path" 63467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63468 unix_path=`$CYGPATH -u "$windows_path"` 63469 new_path="$unix_path" 63470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63472 new_path="$unix_path" 63473 fi 63474 63475 if test "x$path" != "x$new_path"; then 63476 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63478 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63479 fi 63480 63481 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63482 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63483 63484 else 63485 # We're on a unix platform. Hooray! :) 63486 path="$POTENTIAL_FREETYPE_LIB_PATH" 63487 has_space=`$ECHO "$path" | $GREP " "` 63488 if test "x$has_space" != x; then 63489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63490 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63491 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63492 fi 63493 63494 # Use eval to expand a potential ~ 63495 eval path="$path" 63496 if test ! -f "$path" && test ! -d "$path"; then 63497 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63498 fi 63499 63500 if test -d "$path"; then 63501 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63502 else 63503 dir="`$DIRNAME "$path"`" 63504 base="`$BASENAME "$path"`" 63505 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63506 fi 63507 fi 63508 fi 63509 63510 63511 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63513 $as_echo_n "checking for freetype includes... " >&6; } 63514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63515 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63516 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63518 $as_echo_n "checking for freetype libraries... " >&6; } 63519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63520 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63521 fi 63522 63523 fi 63524 63525 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 63526 if test "x$FOUND_FREETYPE" != xyes; then 63527 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 63528 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 63529 63530 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63531 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63532 METHOD="well-known location" 63533 63534 # Let's start with an optimistic view of the world :-) 63535 FOUND_FREETYPE=yes 63536 63537 # First look for the canonical freetype main include file ft2build.h. 63538 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63539 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63540 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63541 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63542 # Fail. 63543 FOUND_FREETYPE=no 63544 fi 63545 fi 63546 63547 if test "x$FOUND_FREETYPE" = xyes; then 63548 # Include file found, let's continue the sanity check. 63549 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63550 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63551 63552 # Reset to default value 63553 FREETYPE_BASE_NAME=freetype 63554 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63555 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63556 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63557 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63558 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63559 # for the .6 version explicitly. 63560 FREETYPE_BASE_NAME=freetype.6 63561 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63562 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63563 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63564 else 63565 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63566 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63567 FOUND_FREETYPE=no 63568 fi 63569 else 63570 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63571 # On Windows, we will need both .lib and .dll file. 63572 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63573 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63574 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63575 FOUND_FREETYPE=no 63576 fi 63577 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63578 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63579 # Found lib in isa dir, use that instead. 63580 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63582 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63583 fi 63584 fi 63585 fi 63586 63587 if test "x$FOUND_FREETYPE" = xyes; then 63588 63589 # Only process if variable expands to non-empty 63590 63591 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63593 63594 # Input might be given as Windows format, start by converting to 63595 # unix format. 63596 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63597 new_path=`$CYGPATH -u "$path"` 63598 63599 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63600 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63601 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63602 # "foo.exe" is OK but "foo" is an error. 63603 # 63604 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63605 # It is also a way to make sure we got the proper file name for the real test later on. 63606 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63607 if test "x$test_shortpath" = x; then 63608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63609 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63610 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63611 fi 63612 63613 # Call helper function which possibly converts this using DOS-style short mode. 63614 # If so, the updated path is stored in $new_path. 63615 63616 input_path="$new_path" 63617 # Check if we need to convert this using DOS-style short mode. If the path 63618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63619 # take no chances and rewrite it. 63620 # Note: m4 eats our [], so we need to use [ and ] instead. 63621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63622 if test "x$has_forbidden_chars" != x; then 63623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63624 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63625 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63626 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63627 # Going to short mode and back again did indeed matter. Since short mode is 63628 # case insensitive, let's make it lowercase to improve readability. 63629 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63630 # Now convert it back to Unix-style (cygpath) 63631 input_path=`$CYGPATH -u "$shortmode_path"` 63632 new_path="$input_path" 63633 fi 63634 fi 63635 63636 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63637 if test "x$test_cygdrive_prefix" = x; then 63638 # As a simple fix, exclude /usr/bin since it's not a real path. 63639 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63640 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63641 # a path prefixed by /cygdrive for fixpath to work. 63642 new_path="$CYGWIN_ROOT_PATH$input_path" 63643 fi 63644 fi 63645 63646 63647 if test "x$path" != "x$new_path"; then 63648 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63649 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63650 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63651 fi 63652 63653 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63654 63655 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63656 has_colon=`$ECHO $path | $GREP ^.:` 63657 new_path="$path" 63658 if test "x$has_colon" = x; then 63659 # Not in mixed or Windows style, start by that. 63660 new_path=`cmd //c echo $path` 63661 fi 63662 63663 63664 input_path="$new_path" 63665 # Check if we need to convert this using DOS-style short mode. If the path 63666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63667 # take no chances and rewrite it. 63668 # Note: m4 eats our [], so we need to use [ and ] instead. 63669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63670 if test "x$has_forbidden_chars" != x; then 63671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63672 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63673 fi 63674 63675 63676 windows_path="$new_path" 63677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63678 unix_path=`$CYGPATH -u "$windows_path"` 63679 new_path="$unix_path" 63680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63682 new_path="$unix_path" 63683 fi 63684 63685 if test "x$path" != "x$new_path"; then 63686 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63687 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63688 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63689 fi 63690 63691 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63692 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63693 63694 else 63695 # We're on a unix platform. Hooray! :) 63696 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63697 has_space=`$ECHO "$path" | $GREP " "` 63698 if test "x$has_space" != x; then 63699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63700 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63701 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63702 fi 63703 63704 # Use eval to expand a potential ~ 63705 eval path="$path" 63706 if test ! -f "$path" && test ! -d "$path"; then 63707 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63708 fi 63709 63710 if test -d "$path"; then 63711 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63712 else 63713 dir="`$DIRNAME "$path"`" 63714 base="`$BASENAME "$path"`" 63715 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63716 fi 63717 fi 63718 fi 63719 63720 63721 # Only process if variable expands to non-empty 63722 63723 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63725 63726 # Input might be given as Windows format, start by converting to 63727 # unix format. 63728 path="$POTENTIAL_FREETYPE_LIB_PATH" 63729 new_path=`$CYGPATH -u "$path"` 63730 63731 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63732 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63733 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63734 # "foo.exe" is OK but "foo" is an error. 63735 # 63736 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63737 # It is also a way to make sure we got the proper file name for the real test later on. 63738 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63739 if test "x$test_shortpath" = x; then 63740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63741 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63742 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63743 fi 63744 63745 # Call helper function which possibly converts this using DOS-style short mode. 63746 # If so, the updated path is stored in $new_path. 63747 63748 input_path="$new_path" 63749 # Check if we need to convert this using DOS-style short mode. If the path 63750 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63751 # take no chances and rewrite it. 63752 # Note: m4 eats our [], so we need to use [ and ] instead. 63753 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63754 if test "x$has_forbidden_chars" != x; then 63755 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63756 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63757 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63758 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63759 # Going to short mode and back again did indeed matter. Since short mode is 63760 # case insensitive, let's make it lowercase to improve readability. 63761 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63762 # Now convert it back to Unix-style (cygpath) 63763 input_path=`$CYGPATH -u "$shortmode_path"` 63764 new_path="$input_path" 63765 fi 63766 fi 63767 63768 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63769 if test "x$test_cygdrive_prefix" = x; then 63770 # As a simple fix, exclude /usr/bin since it's not a real path. 63771 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63772 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63773 # a path prefixed by /cygdrive for fixpath to work. 63774 new_path="$CYGWIN_ROOT_PATH$input_path" 63775 fi 63776 fi 63777 63778 63779 if test "x$path" != "x$new_path"; then 63780 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63782 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63783 fi 63784 63785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63786 63787 path="$POTENTIAL_FREETYPE_LIB_PATH" 63788 has_colon=`$ECHO $path | $GREP ^.:` 63789 new_path="$path" 63790 if test "x$has_colon" = x; then 63791 # Not in mixed or Windows style, start by that. 63792 new_path=`cmd //c echo $path` 63793 fi 63794 63795 63796 input_path="$new_path" 63797 # Check if we need to convert this using DOS-style short mode. If the path 63798 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63799 # take no chances and rewrite it. 63800 # Note: m4 eats our [], so we need to use [ and ] instead. 63801 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63802 if test "x$has_forbidden_chars" != x; then 63803 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63804 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63805 fi 63806 63807 63808 windows_path="$new_path" 63809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63810 unix_path=`$CYGPATH -u "$windows_path"` 63811 new_path="$unix_path" 63812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63814 new_path="$unix_path" 63815 fi 63816 63817 if test "x$path" != "x$new_path"; then 63818 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63820 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63821 fi 63822 63823 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63824 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63825 63826 else 63827 # We're on a unix platform. Hooray! :) 63828 path="$POTENTIAL_FREETYPE_LIB_PATH" 63829 has_space=`$ECHO "$path" | $GREP " "` 63830 if test "x$has_space" != x; then 63831 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63832 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63833 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63834 fi 63835 63836 # Use eval to expand a potential ~ 63837 eval path="$path" 63838 if test ! -f "$path" && test ! -d "$path"; then 63839 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63840 fi 63841 63842 if test -d "$path"; then 63843 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63844 else 63845 dir="`$DIRNAME "$path"`" 63846 base="`$BASENAME "$path"`" 63847 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63848 fi 63849 fi 63850 fi 63851 63852 63853 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63855 $as_echo_n "checking for freetype includes... " >&6; } 63856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63857 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63858 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63860 $as_echo_n "checking for freetype libraries... " >&6; } 63861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63862 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63863 fi 63864 63865 fi 63866 fi 63867 63868 if test "x$FOUND_FREETYPE" != xyes; then 63869 FREETYPE_BASE_DIR="$SYSROOT/usr" 63870 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 63871 63872 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63873 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 63874 METHOD="well-known location" 63875 63876 # Let's start with an optimistic view of the world :-) 63877 FOUND_FREETYPE=yes 63878 63879 # First look for the canonical freetype main include file ft2build.h. 63880 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63881 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63882 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63883 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63884 # Fail. 63885 FOUND_FREETYPE=no 63886 fi 63887 fi 63888 63889 if test "x$FOUND_FREETYPE" = xyes; then 63890 # Include file found, let's continue the sanity check. 63891 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63892 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63893 63894 # Reset to default value 63895 FREETYPE_BASE_NAME=freetype 63896 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63897 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63898 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63899 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63900 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63901 # for the .6 version explicitly. 63902 FREETYPE_BASE_NAME=freetype.6 63903 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63904 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63905 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63906 else 63907 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63908 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63909 FOUND_FREETYPE=no 63910 fi 63911 else 63912 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63913 # On Windows, we will need both .lib and .dll file. 63914 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63915 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63916 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63917 FOUND_FREETYPE=no 63918 fi 63919 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63920 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63921 # Found lib in isa dir, use that instead. 63922 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63923 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63924 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63925 fi 63926 fi 63927 fi 63928 63929 if test "x$FOUND_FREETYPE" = xyes; then 63930 63931 # Only process if variable expands to non-empty 63932 63933 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63935 63936 # Input might be given as Windows format, start by converting to 63937 # unix format. 63938 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63939 new_path=`$CYGPATH -u "$path"` 63940 63941 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63942 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63943 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63944 # "foo.exe" is OK but "foo" is an error. 63945 # 63946 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63947 # It is also a way to make sure we got the proper file name for the real test later on. 63948 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63949 if test "x$test_shortpath" = x; then 63950 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63951 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63952 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63953 fi 63954 63955 # Call helper function which possibly converts this using DOS-style short mode. 63956 # If so, the updated path is stored in $new_path. 63957 63958 input_path="$new_path" 63959 # Check if we need to convert this using DOS-style short mode. If the path 63960 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63961 # take no chances and rewrite it. 63962 # Note: m4 eats our [], so we need to use [ and ] instead. 63963 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63964 if test "x$has_forbidden_chars" != x; then 63965 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63966 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63967 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63968 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63969 # Going to short mode and back again did indeed matter. Since short mode is 63970 # case insensitive, let's make it lowercase to improve readability. 63971 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63972 # Now convert it back to Unix-style (cygpath) 63973 input_path=`$CYGPATH -u "$shortmode_path"` 63974 new_path="$input_path" 63975 fi 63976 fi 63977 63978 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63979 if test "x$test_cygdrive_prefix" = x; then 63980 # As a simple fix, exclude /usr/bin since it's not a real path. 63981 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63982 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63983 # a path prefixed by /cygdrive for fixpath to work. 63984 new_path="$CYGWIN_ROOT_PATH$input_path" 63985 fi 63986 fi 63987 63988 63989 if test "x$path" != "x$new_path"; then 63990 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63991 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63992 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63993 fi 63994 63995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63996 63997 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63998 has_colon=`$ECHO $path | $GREP ^.:` 63999 new_path="$path" 64000 if test "x$has_colon" = x; then 64001 # Not in mixed or Windows style, start by that. 64002 new_path=`cmd //c echo $path` 64003 fi 64004 64005 64006 input_path="$new_path" 64007 # Check if we need to convert this using DOS-style short mode. If the path 64008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64009 # take no chances and rewrite it. 64010 # Note: m4 eats our [], so we need to use [ and ] instead. 64011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64012 if test "x$has_forbidden_chars" != x; then 64013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64015 fi 64016 64017 64018 windows_path="$new_path" 64019 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64020 unix_path=`$CYGPATH -u "$windows_path"` 64021 new_path="$unix_path" 64022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64023 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64024 new_path="$unix_path" 64025 fi 64026 64027 if test "x$path" != "x$new_path"; then 64028 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64029 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64030 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64031 fi 64032 64033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64035 64036 else 64037 # We're on a unix platform. Hooray! :) 64038 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64039 has_space=`$ECHO "$path" | $GREP " "` 64040 if test "x$has_space" != x; then 64041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64042 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64043 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64044 fi 64045 64046 # Use eval to expand a potential ~ 64047 eval path="$path" 64048 if test ! -f "$path" && test ! -d "$path"; then 64049 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64050 fi 64051 64052 if test -d "$path"; then 64053 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64054 else 64055 dir="`$DIRNAME "$path"`" 64056 base="`$BASENAME "$path"`" 64057 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64058 fi 64059 fi 64060 fi 64061 64062 64063 # Only process if variable expands to non-empty 64064 64065 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64066 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64067 64068 # Input might be given as Windows format, start by converting to 64069 # unix format. 64070 path="$POTENTIAL_FREETYPE_LIB_PATH" 64071 new_path=`$CYGPATH -u "$path"` 64072 64073 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64074 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64075 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64076 # "foo.exe" is OK but "foo" is an error. 64077 # 64078 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64079 # It is also a way to make sure we got the proper file name for the real test later on. 64080 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64081 if test "x$test_shortpath" = x; then 64082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64083 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64084 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64085 fi 64086 64087 # Call helper function which possibly converts this using DOS-style short mode. 64088 # If so, the updated path is stored in $new_path. 64089 64090 input_path="$new_path" 64091 # Check if we need to convert this using DOS-style short mode. If the path 64092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64093 # take no chances and rewrite it. 64094 # Note: m4 eats our [], so we need to use [ and ] instead. 64095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64096 if test "x$has_forbidden_chars" != x; then 64097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64098 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64099 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64100 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64101 # Going to short mode and back again did indeed matter. Since short mode is 64102 # case insensitive, let's make it lowercase to improve readability. 64103 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64104 # Now convert it back to Unix-style (cygpath) 64105 input_path=`$CYGPATH -u "$shortmode_path"` 64106 new_path="$input_path" 64107 fi 64108 fi 64109 64110 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64111 if test "x$test_cygdrive_prefix" = x; then 64112 # As a simple fix, exclude /usr/bin since it's not a real path. 64113 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64114 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64115 # a path prefixed by /cygdrive for fixpath to work. 64116 new_path="$CYGWIN_ROOT_PATH$input_path" 64117 fi 64118 fi 64119 64120 64121 if test "x$path" != "x$new_path"; then 64122 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64123 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64124 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64125 fi 64126 64127 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64128 64129 path="$POTENTIAL_FREETYPE_LIB_PATH" 64130 has_colon=`$ECHO $path | $GREP ^.:` 64131 new_path="$path" 64132 if test "x$has_colon" = x; then 64133 # Not in mixed or Windows style, start by that. 64134 new_path=`cmd //c echo $path` 64135 fi 64136 64137 64138 input_path="$new_path" 64139 # Check if we need to convert this using DOS-style short mode. If the path 64140 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64141 # take no chances and rewrite it. 64142 # Note: m4 eats our [], so we need to use [ and ] instead. 64143 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64144 if test "x$has_forbidden_chars" != x; then 64145 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64146 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64147 fi 64148 64149 64150 windows_path="$new_path" 64151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64152 unix_path=`$CYGPATH -u "$windows_path"` 64153 new_path="$unix_path" 64154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64155 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64156 new_path="$unix_path" 64157 fi 64158 64159 if test "x$path" != "x$new_path"; then 64160 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64162 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64163 fi 64164 64165 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64166 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64167 64168 else 64169 # We're on a unix platform. Hooray! :) 64170 path="$POTENTIAL_FREETYPE_LIB_PATH" 64171 has_space=`$ECHO "$path" | $GREP " "` 64172 if test "x$has_space" != x; then 64173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64174 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64175 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64176 fi 64177 64178 # Use eval to expand a potential ~ 64179 eval path="$path" 64180 if test ! -f "$path" && test ! -d "$path"; then 64181 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64182 fi 64183 64184 if test -d "$path"; then 64185 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64186 else 64187 dir="`$DIRNAME "$path"`" 64188 base="`$BASENAME "$path"`" 64189 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64190 fi 64191 fi 64192 fi 64193 64194 64195 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64197 $as_echo_n "checking for freetype includes... " >&6; } 64198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64199 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64200 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64202 $as_echo_n "checking for freetype libraries... " >&6; } 64203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64204 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64205 fi 64206 64207 else 64208 64209 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64210 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 64211 METHOD="well-known location" 64212 64213 # Let's start with an optimistic view of the world :-) 64214 FOUND_FREETYPE=yes 64215 64216 # First look for the canonical freetype main include file ft2build.h. 64217 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64218 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64219 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64220 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64221 # Fail. 64222 FOUND_FREETYPE=no 64223 fi 64224 fi 64225 64226 if test "x$FOUND_FREETYPE" = xyes; then 64227 # Include file found, let's continue the sanity check. 64228 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64229 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64230 64231 # Reset to default value 64232 FREETYPE_BASE_NAME=freetype 64233 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64234 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64235 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64236 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64237 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64238 # for the .6 version explicitly. 64239 FREETYPE_BASE_NAME=freetype.6 64240 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64241 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64242 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64243 else 64244 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64245 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64246 FOUND_FREETYPE=no 64247 fi 64248 else 64249 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64250 # On Windows, we will need both .lib and .dll file. 64251 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64252 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64253 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64254 FOUND_FREETYPE=no 64255 fi 64256 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64257 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64258 # Found lib in isa dir, use that instead. 64259 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64260 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64261 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64262 fi 64263 fi 64264 fi 64265 64266 if test "x$FOUND_FREETYPE" = xyes; then 64267 64268 # Only process if variable expands to non-empty 64269 64270 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64272 64273 # Input might be given as Windows format, start by converting to 64274 # unix format. 64275 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64276 new_path=`$CYGPATH -u "$path"` 64277 64278 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64279 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64280 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64281 # "foo.exe" is OK but "foo" is an error. 64282 # 64283 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64284 # It is also a way to make sure we got the proper file name for the real test later on. 64285 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64286 if test "x$test_shortpath" = x; then 64287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64288 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64289 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64290 fi 64291 64292 # Call helper function which possibly converts this using DOS-style short mode. 64293 # If so, the updated path is stored in $new_path. 64294 64295 input_path="$new_path" 64296 # Check if we need to convert this using DOS-style short mode. If the path 64297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64298 # take no chances and rewrite it. 64299 # Note: m4 eats our [], so we need to use [ and ] instead. 64300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64301 if test "x$has_forbidden_chars" != x; then 64302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64303 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64304 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64305 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64306 # Going to short mode and back again did indeed matter. Since short mode is 64307 # case insensitive, let's make it lowercase to improve readability. 64308 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64309 # Now convert it back to Unix-style (cygpath) 64310 input_path=`$CYGPATH -u "$shortmode_path"` 64311 new_path="$input_path" 64312 fi 64313 fi 64314 64315 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64316 if test "x$test_cygdrive_prefix" = x; then 64317 # As a simple fix, exclude /usr/bin since it's not a real path. 64318 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64319 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64320 # a path prefixed by /cygdrive for fixpath to work. 64321 new_path="$CYGWIN_ROOT_PATH$input_path" 64322 fi 64323 fi 64324 64325 64326 if test "x$path" != "x$new_path"; then 64327 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64329 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64330 fi 64331 64332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64333 64334 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64335 has_colon=`$ECHO $path | $GREP ^.:` 64336 new_path="$path" 64337 if test "x$has_colon" = x; then 64338 # Not in mixed or Windows style, start by that. 64339 new_path=`cmd //c echo $path` 64340 fi 64341 64342 64343 input_path="$new_path" 64344 # Check if we need to convert this using DOS-style short mode. If the path 64345 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64346 # take no chances and rewrite it. 64347 # Note: m4 eats our [], so we need to use [ and ] instead. 64348 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64349 if test "x$has_forbidden_chars" != x; then 64350 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64351 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64352 fi 64353 64354 64355 windows_path="$new_path" 64356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64357 unix_path=`$CYGPATH -u "$windows_path"` 64358 new_path="$unix_path" 64359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64361 new_path="$unix_path" 64362 fi 64363 64364 if test "x$path" != "x$new_path"; then 64365 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64367 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64368 fi 64369 64370 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64371 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64372 64373 else 64374 # We're on a unix platform. Hooray! :) 64375 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64376 has_space=`$ECHO "$path" | $GREP " "` 64377 if test "x$has_space" != x; then 64378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64379 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64380 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64381 fi 64382 64383 # Use eval to expand a potential ~ 64384 eval path="$path" 64385 if test ! -f "$path" && test ! -d "$path"; then 64386 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64387 fi 64388 64389 if test -d "$path"; then 64390 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64391 else 64392 dir="`$DIRNAME "$path"`" 64393 base="`$BASENAME "$path"`" 64394 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64395 fi 64396 fi 64397 fi 64398 64399 64400 # Only process if variable expands to non-empty 64401 64402 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64404 64405 # Input might be given as Windows format, start by converting to 64406 # unix format. 64407 path="$POTENTIAL_FREETYPE_LIB_PATH" 64408 new_path=`$CYGPATH -u "$path"` 64409 64410 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64411 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64412 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64413 # "foo.exe" is OK but "foo" is an error. 64414 # 64415 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64416 # It is also a way to make sure we got the proper file name for the real test later on. 64417 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64418 if test "x$test_shortpath" = x; then 64419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64420 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64421 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64422 fi 64423 64424 # Call helper function which possibly converts this using DOS-style short mode. 64425 # If so, the updated path is stored in $new_path. 64426 64427 input_path="$new_path" 64428 # Check if we need to convert this using DOS-style short mode. If the path 64429 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64430 # take no chances and rewrite it. 64431 # Note: m4 eats our [], so we need to use [ and ] instead. 64432 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64433 if test "x$has_forbidden_chars" != x; then 64434 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64435 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64436 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64437 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64438 # Going to short mode and back again did indeed matter. Since short mode is 64439 # case insensitive, let's make it lowercase to improve readability. 64440 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64441 # Now convert it back to Unix-style (cygpath) 64442 input_path=`$CYGPATH -u "$shortmode_path"` 64443 new_path="$input_path" 64444 fi 64445 fi 64446 64447 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64448 if test "x$test_cygdrive_prefix" = x; then 64449 # As a simple fix, exclude /usr/bin since it's not a real path. 64450 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64451 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64452 # a path prefixed by /cygdrive for fixpath to work. 64453 new_path="$CYGWIN_ROOT_PATH$input_path" 64454 fi 64455 fi 64456 64457 64458 if test "x$path" != "x$new_path"; then 64459 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64460 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64461 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64462 fi 64463 64464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64465 64466 path="$POTENTIAL_FREETYPE_LIB_PATH" 64467 has_colon=`$ECHO $path | $GREP ^.:` 64468 new_path="$path" 64469 if test "x$has_colon" = x; then 64470 # Not in mixed or Windows style, start by that. 64471 new_path=`cmd //c echo $path` 64472 fi 64473 64474 64475 input_path="$new_path" 64476 # Check if we need to convert this using DOS-style short mode. If the path 64477 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64478 # take no chances and rewrite it. 64479 # Note: m4 eats our [], so we need to use [ and ] instead. 64480 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64481 if test "x$has_forbidden_chars" != x; then 64482 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64483 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64484 fi 64485 64486 64487 windows_path="$new_path" 64488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64489 unix_path=`$CYGPATH -u "$windows_path"` 64490 new_path="$unix_path" 64491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64492 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64493 new_path="$unix_path" 64494 fi 64495 64496 if test "x$path" != "x$new_path"; then 64497 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64498 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64499 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64500 fi 64501 64502 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64503 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64504 64505 else 64506 # We're on a unix platform. Hooray! :) 64507 path="$POTENTIAL_FREETYPE_LIB_PATH" 64508 has_space=`$ECHO "$path" | $GREP " "` 64509 if test "x$has_space" != x; then 64510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64511 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64512 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64513 fi 64514 64515 # Use eval to expand a potential ~ 64516 eval path="$path" 64517 if test ! -f "$path" && test ! -d "$path"; then 64518 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64519 fi 64520 64521 if test -d "$path"; then 64522 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64523 else 64524 dir="`$DIRNAME "$path"`" 64525 base="`$BASENAME "$path"`" 64526 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64527 fi 64528 fi 64529 fi 64530 64531 64532 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64534 $as_echo_n "checking for freetype includes... " >&6; } 64535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64536 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64537 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64539 $as_echo_n "checking for freetype libraries... " >&6; } 64540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64541 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64542 fi 64543 64544 if test "x$FOUND_FREETYPE" != xyes; then 64545 64546 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64547 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 64548 METHOD="well-known location" 64549 64550 # Let's start with an optimistic view of the world :-) 64551 FOUND_FREETYPE=yes 64552 64553 # First look for the canonical freetype main include file ft2build.h. 64554 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64555 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64556 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64557 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64558 # Fail. 64559 FOUND_FREETYPE=no 64560 fi 64561 fi 64562 64563 if test "x$FOUND_FREETYPE" = xyes; then 64564 # Include file found, let's continue the sanity check. 64565 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64566 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64567 64568 # Reset to default value 64569 FREETYPE_BASE_NAME=freetype 64570 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64571 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64572 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64573 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64574 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64575 # for the .6 version explicitly. 64576 FREETYPE_BASE_NAME=freetype.6 64577 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64578 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64579 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64580 else 64581 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64582 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64583 FOUND_FREETYPE=no 64584 fi 64585 else 64586 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64587 # On Windows, we will need both .lib and .dll file. 64588 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64589 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64590 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64591 FOUND_FREETYPE=no 64592 fi 64593 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64594 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64595 # Found lib in isa dir, use that instead. 64596 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64598 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64599 fi 64600 fi 64601 fi 64602 64603 if test "x$FOUND_FREETYPE" = xyes; then 64604 64605 # Only process if variable expands to non-empty 64606 64607 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64609 64610 # Input might be given as Windows format, start by converting to 64611 # unix format. 64612 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64613 new_path=`$CYGPATH -u "$path"` 64614 64615 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64616 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64617 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64618 # "foo.exe" is OK but "foo" is an error. 64619 # 64620 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64621 # It is also a way to make sure we got the proper file name for the real test later on. 64622 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64623 if test "x$test_shortpath" = x; then 64624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64625 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64626 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64627 fi 64628 64629 # Call helper function which possibly converts this using DOS-style short mode. 64630 # If so, the updated path is stored in $new_path. 64631 64632 input_path="$new_path" 64633 # Check if we need to convert this using DOS-style short mode. If the path 64634 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64635 # take no chances and rewrite it. 64636 # Note: m4 eats our [], so we need to use [ and ] instead. 64637 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64638 if test "x$has_forbidden_chars" != x; then 64639 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64640 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64641 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64642 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64643 # Going to short mode and back again did indeed matter. Since short mode is 64644 # case insensitive, let's make it lowercase to improve readability. 64645 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64646 # Now convert it back to Unix-style (cygpath) 64647 input_path=`$CYGPATH -u "$shortmode_path"` 64648 new_path="$input_path" 64649 fi 64650 fi 64651 64652 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64653 if test "x$test_cygdrive_prefix" = x; then 64654 # As a simple fix, exclude /usr/bin since it's not a real path. 64655 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64656 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64657 # a path prefixed by /cygdrive for fixpath to work. 64658 new_path="$CYGWIN_ROOT_PATH$input_path" 64659 fi 64660 fi 64661 64662 64663 if test "x$path" != "x$new_path"; then 64664 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64665 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64666 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64667 fi 64668 64669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64670 64671 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64672 has_colon=`$ECHO $path | $GREP ^.:` 64673 new_path="$path" 64674 if test "x$has_colon" = x; then 64675 # Not in mixed or Windows style, start by that. 64676 new_path=`cmd //c echo $path` 64677 fi 64678 64679 64680 input_path="$new_path" 64681 # Check if we need to convert this using DOS-style short mode. If the path 64682 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64683 # take no chances and rewrite it. 64684 # Note: m4 eats our [], so we need to use [ and ] instead. 64685 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64686 if test "x$has_forbidden_chars" != x; then 64687 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64688 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64689 fi 64690 64691 64692 windows_path="$new_path" 64693 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64694 unix_path=`$CYGPATH -u "$windows_path"` 64695 new_path="$unix_path" 64696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64697 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64698 new_path="$unix_path" 64699 fi 64700 64701 if test "x$path" != "x$new_path"; then 64702 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64704 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64705 fi 64706 64707 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64708 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64709 64710 else 64711 # We're on a unix platform. Hooray! :) 64712 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64713 has_space=`$ECHO "$path" | $GREP " "` 64714 if test "x$has_space" != x; then 64715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64716 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64717 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64718 fi 64719 64720 # Use eval to expand a potential ~ 64721 eval path="$path" 64722 if test ! -f "$path" && test ! -d "$path"; then 64723 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64724 fi 64725 64726 if test -d "$path"; then 64727 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64728 else 64729 dir="`$DIRNAME "$path"`" 64730 base="`$BASENAME "$path"`" 64731 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64732 fi 64733 fi 64734 fi 64735 64736 64737 # Only process if variable expands to non-empty 64738 64739 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64741 64742 # Input might be given as Windows format, start by converting to 64743 # unix format. 64744 path="$POTENTIAL_FREETYPE_LIB_PATH" 64745 new_path=`$CYGPATH -u "$path"` 64746 64747 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64748 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64749 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64750 # "foo.exe" is OK but "foo" is an error. 64751 # 64752 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64753 # It is also a way to make sure we got the proper file name for the real test later on. 64754 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64755 if test "x$test_shortpath" = x; then 64756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64757 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64758 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64759 fi 64760 64761 # Call helper function which possibly converts this using DOS-style short mode. 64762 # If so, the updated path is stored in $new_path. 64763 64764 input_path="$new_path" 64765 # Check if we need to convert this using DOS-style short mode. If the path 64766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64767 # take no chances and rewrite it. 64768 # Note: m4 eats our [], so we need to use [ and ] instead. 64769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64770 if test "x$has_forbidden_chars" != x; then 64771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64772 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64773 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64774 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64775 # Going to short mode and back again did indeed matter. Since short mode is 64776 # case insensitive, let's make it lowercase to improve readability. 64777 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64778 # Now convert it back to Unix-style (cygpath) 64779 input_path=`$CYGPATH -u "$shortmode_path"` 64780 new_path="$input_path" 64781 fi 64782 fi 64783 64784 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64785 if test "x$test_cygdrive_prefix" = x; then 64786 # As a simple fix, exclude /usr/bin since it's not a real path. 64787 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64788 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64789 # a path prefixed by /cygdrive for fixpath to work. 64790 new_path="$CYGWIN_ROOT_PATH$input_path" 64791 fi 64792 fi 64793 64794 64795 if test "x$path" != "x$new_path"; then 64796 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64798 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64799 fi 64800 64801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64802 64803 path="$POTENTIAL_FREETYPE_LIB_PATH" 64804 has_colon=`$ECHO $path | $GREP ^.:` 64805 new_path="$path" 64806 if test "x$has_colon" = x; then 64807 # Not in mixed or Windows style, start by that. 64808 new_path=`cmd //c echo $path` 64809 fi 64810 64811 64812 input_path="$new_path" 64813 # Check if we need to convert this using DOS-style short mode. If the path 64814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64815 # take no chances and rewrite it. 64816 # Note: m4 eats our [], so we need to use [ and ] instead. 64817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64818 if test "x$has_forbidden_chars" != x; then 64819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64820 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64821 fi 64822 64823 64824 windows_path="$new_path" 64825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64826 unix_path=`$CYGPATH -u "$windows_path"` 64827 new_path="$unix_path" 64828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64830 new_path="$unix_path" 64831 fi 64832 64833 if test "x$path" != "x$new_path"; then 64834 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64836 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64837 fi 64838 64839 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64840 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64841 64842 else 64843 # We're on a unix platform. Hooray! :) 64844 path="$POTENTIAL_FREETYPE_LIB_PATH" 64845 has_space=`$ECHO "$path" | $GREP " "` 64846 if test "x$has_space" != x; then 64847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64848 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64849 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64850 fi 64851 64852 # Use eval to expand a potential ~ 64853 eval path="$path" 64854 if test ! -f "$path" && test ! -d "$path"; then 64855 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64856 fi 64857 64858 if test -d "$path"; then 64859 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64860 else 64861 dir="`$DIRNAME "$path"`" 64862 base="`$BASENAME "$path"`" 64863 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64864 fi 64865 fi 64866 fi 64867 64868 64869 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64871 $as_echo_n "checking for freetype includes... " >&6; } 64872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64873 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64874 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64876 $as_echo_n "checking for freetype libraries... " >&6; } 64877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64878 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64879 fi 64880 64881 fi 64882 fi 64883 fi 64884 fi 64885 fi # end check in well-known locations 64886 64887 if test "x$FOUND_FREETYPE" != xyes; then 64888 64889 # Print a helpful message on how to acquire the necessary build dependency. 64890 # freetype is the help tag: freetype, cups, alsa etc 64891 MISSING_DEPENDENCY=freetype 64892 64893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64894 cygwin_help $MISSING_DEPENDENCY 64895 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64896 msys_help $MISSING_DEPENDENCY 64897 else 64898 PKGHANDLER_COMMAND= 64899 64900 case $PKGHANDLER in 64901 apt-get) 64902 apt_help $MISSING_DEPENDENCY ;; 64903 yum) 64904 yum_help $MISSING_DEPENDENCY ;; 64905 brew) 64906 brew_help $MISSING_DEPENDENCY ;; 64907 port) 64908 port_help $MISSING_DEPENDENCY ;; 64909 pkgutil) 64910 pkgutil_help $MISSING_DEPENDENCY ;; 64911 pkgadd) 64912 pkgadd_help $MISSING_DEPENDENCY ;; 64913 esac 64914 64915 if test "x$PKGHANDLER_COMMAND" != x; then 64916 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64917 fi 64918 fi 64919 64920 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 64921 fi 64922 fi # end user specified settings 64923 64924 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 64925 if test "x$FREETYPE_CFLAGS" = x; then 64926 64927 # Only process if variable expands to non-empty 64928 64929 if test "x$FREETYPE_INCLUDE_PATH" != x; then 64930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64931 64932 # Input might be given as Windows format, start by converting to 64933 # unix format. 64934 path="$FREETYPE_INCLUDE_PATH" 64935 new_path=`$CYGPATH -u "$path"` 64936 64937 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64938 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64939 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64940 # "foo.exe" is OK but "foo" is an error. 64941 # 64942 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64943 # It is also a way to make sure we got the proper file name for the real test later on. 64944 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64945 if test "x$test_shortpath" = x; then 64946 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64947 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64948 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 64949 fi 64950 64951 # Call helper function which possibly converts this using DOS-style short mode. 64952 # If so, the updated path is stored in $new_path. 64953 64954 input_path="$new_path" 64955 # Check if we need to convert this using DOS-style short mode. If the path 64956 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64957 # take no chances and rewrite it. 64958 # Note: m4 eats our [], so we need to use [ and ] instead. 64959 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64960 if test "x$has_forbidden_chars" != x; then 64961 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64962 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64963 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64964 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64965 # Going to short mode and back again did indeed matter. Since short mode is 64966 # case insensitive, let's make it lowercase to improve readability. 64967 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64968 # Now convert it back to Unix-style (cygpath) 64969 input_path=`$CYGPATH -u "$shortmode_path"` 64970 new_path="$input_path" 64971 fi 64972 fi 64973 64974 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64975 if test "x$test_cygdrive_prefix" = x; then 64976 # As a simple fix, exclude /usr/bin since it's not a real path. 64977 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64978 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64979 # a path prefixed by /cygdrive for fixpath to work. 64980 new_path="$CYGWIN_ROOT_PATH$input_path" 64981 fi 64982 fi 64983 64984 64985 if test "x$path" != "x$new_path"; then 64986 FREETYPE_INCLUDE_PATH="$new_path" 64987 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64988 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64989 fi 64990 64991 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64992 64993 path="$FREETYPE_INCLUDE_PATH" 64994 has_colon=`$ECHO $path | $GREP ^.:` 64995 new_path="$path" 64996 if test "x$has_colon" = x; then 64997 # Not in mixed or Windows style, start by that. 64998 new_path=`cmd //c echo $path` 64999 fi 65000 65001 65002 input_path="$new_path" 65003 # Check if we need to convert this using DOS-style short mode. If the path 65004 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65005 # take no chances and rewrite it. 65006 # Note: m4 eats our [], so we need to use [ and ] instead. 65007 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65008 if test "x$has_forbidden_chars" != x; then 65009 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65010 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65011 fi 65012 65013 65014 windows_path="$new_path" 65015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65016 unix_path=`$CYGPATH -u "$windows_path"` 65017 new_path="$unix_path" 65018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65020 new_path="$unix_path" 65021 fi 65022 65023 if test "x$path" != "x$new_path"; then 65024 FREETYPE_INCLUDE_PATH="$new_path" 65025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 65026 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 65027 fi 65028 65029 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65030 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65031 65032 else 65033 # We're on a unix platform. Hooray! :) 65034 path="$FREETYPE_INCLUDE_PATH" 65035 has_space=`$ECHO "$path" | $GREP " "` 65036 if test "x$has_space" != x; then 65037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 65038 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 65039 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65040 fi 65041 65042 # Use eval to expand a potential ~ 65043 eval path="$path" 65044 if test ! -f "$path" && test ! -d "$path"; then 65045 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65046 fi 65047 65048 if test -d "$path"; then 65049 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 65050 else 65051 dir="`$DIRNAME "$path"`" 65052 base="`$BASENAME "$path"`" 65053 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65054 fi 65055 fi 65056 fi 65057 65058 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 65059 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 65060 else 65061 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 65062 fi 65063 fi 65064 65065 if test "x$FREETYPE_LIBS" = x; then 65066 65067 # Only process if variable expands to non-empty 65068 65069 if test "x$FREETYPE_LIB_PATH" != x; then 65070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65071 65072 # Input might be given as Windows format, start by converting to 65073 # unix format. 65074 path="$FREETYPE_LIB_PATH" 65075 new_path=`$CYGPATH -u "$path"` 65076 65077 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65078 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65079 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65080 # "foo.exe" is OK but "foo" is an error. 65081 # 65082 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65083 # It is also a way to make sure we got the proper file name for the real test later on. 65084 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65085 if test "x$test_shortpath" = x; then 65086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65087 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65088 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 65089 fi 65090 65091 # Call helper function which possibly converts this using DOS-style short mode. 65092 # If so, the updated path is stored in $new_path. 65093 65094 input_path="$new_path" 65095 # Check if we need to convert this using DOS-style short mode. If the path 65096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65097 # take no chances and rewrite it. 65098 # Note: m4 eats our [], so we need to use [ and ] instead. 65099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65100 if test "x$has_forbidden_chars" != x; then 65101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65102 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65103 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65104 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65105 # Going to short mode and back again did indeed matter. Since short mode is 65106 # case insensitive, let's make it lowercase to improve readability. 65107 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65108 # Now convert it back to Unix-style (cygpath) 65109 input_path=`$CYGPATH -u "$shortmode_path"` 65110 new_path="$input_path" 65111 fi 65112 fi 65113 65114 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65115 if test "x$test_cygdrive_prefix" = x; then 65116 # As a simple fix, exclude /usr/bin since it's not a real path. 65117 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65118 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65119 # a path prefixed by /cygdrive for fixpath to work. 65120 new_path="$CYGWIN_ROOT_PATH$input_path" 65121 fi 65122 fi 65123 65124 65125 if test "x$path" != "x$new_path"; then 65126 FREETYPE_LIB_PATH="$new_path" 65127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65128 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65129 fi 65130 65131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65132 65133 path="$FREETYPE_LIB_PATH" 65134 has_colon=`$ECHO $path | $GREP ^.:` 65135 new_path="$path" 65136 if test "x$has_colon" = x; then 65137 # Not in mixed or Windows style, start by that. 65138 new_path=`cmd //c echo $path` 65139 fi 65140 65141 65142 input_path="$new_path" 65143 # Check if we need to convert this using DOS-style short mode. If the path 65144 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65145 # take no chances and rewrite it. 65146 # Note: m4 eats our [], so we need to use [ and ] instead. 65147 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65148 if test "x$has_forbidden_chars" != x; then 65149 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65150 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65151 fi 65152 65153 65154 windows_path="$new_path" 65155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65156 unix_path=`$CYGPATH -u "$windows_path"` 65157 new_path="$unix_path" 65158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65160 new_path="$unix_path" 65161 fi 65162 65163 if test "x$path" != "x$new_path"; then 65164 FREETYPE_LIB_PATH="$new_path" 65165 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65166 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65167 fi 65168 65169 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65170 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65171 65172 else 65173 # We're on a unix platform. Hooray! :) 65174 path="$FREETYPE_LIB_PATH" 65175 has_space=`$ECHO "$path" | $GREP " "` 65176 if test "x$has_space" != x; then 65177 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65178 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65179 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65180 fi 65181 65182 # Use eval to expand a potential ~ 65183 eval path="$path" 65184 if test ! -f "$path" && test ! -d "$path"; then 65185 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65186 fi 65187 65188 if test -d "$path"; then 65189 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 65190 else 65191 dir="`$DIRNAME "$path"`" 65192 base="`$BASENAME "$path"`" 65193 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65194 fi 65195 fi 65196 fi 65197 65198 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65199 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 65200 else 65201 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 65202 fi 65203 fi 65204 65205 # Try to compile it 65206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 65207 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 65208 ac_ext=cpp 65209 ac_cpp='$CXXCPP $CPPFLAGS' 65210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65213 65214 PREV_CXXCFLAGS="$CXXFLAGS" 65215 PREV_LIBS="$LIBS" 65216 PREV_CXX="$CXX" 65217 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 65218 LIBS="$LIBS $FREETYPE_LIBS" 65219 CXX="$FIXPATH $CXX" 65220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65221 /* end confdefs.h. */ 65222 65223 #include<ft2build.h> 65224 #include FT_FREETYPE_H 65225 int main () { 65226 FT_Init_FreeType(NULL); 65227 return 0; 65228 } 65229 65230 _ACEOF 65231 if ac_fn_cxx_try_link "$LINENO"; then : 65232 65233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65234 $as_echo "yes" >&6; } 65235 65236 else 65237 65238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65239 $as_echo "no" >&6; } 65240 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 65241 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 65242 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 65243 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 65244 65245 65246 # Print a helpful message on how to acquire the necessary build dependency. 65247 # freetype is the help tag: freetype, cups, alsa etc 65248 MISSING_DEPENDENCY=freetype 65249 65250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65251 cygwin_help $MISSING_DEPENDENCY 65252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65253 msys_help $MISSING_DEPENDENCY 65254 else 65255 PKGHANDLER_COMMAND= 65256 65257 case $PKGHANDLER in 65258 apt-get) 65259 apt_help $MISSING_DEPENDENCY ;; 65260 yum) 65261 yum_help $MISSING_DEPENDENCY ;; 65262 brew) 65263 brew_help $MISSING_DEPENDENCY ;; 65264 port) 65265 port_help $MISSING_DEPENDENCY ;; 65266 pkgutil) 65267 pkgutil_help $MISSING_DEPENDENCY ;; 65268 pkgadd) 65269 pkgadd_help $MISSING_DEPENDENCY ;; 65270 esac 65271 65272 if test "x$PKGHANDLER_COMMAND" != x; then 65273 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65274 fi 65275 fi 65276 65277 65278 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 65279 65280 65281 fi 65282 rm -f core conftest.err conftest.$ac_objext \ 65283 conftest$ac_exeext conftest.$ac_ext 65284 CXXCFLAGS="$PREV_CXXFLAGS" 65285 LIBS="$PREV_LIBS" 65286 CXX="$PREV_CXX" 65287 ac_ext=cpp 65288 ac_cpp='$CXXCPP $CPPFLAGS' 65289 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65290 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65291 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65292 65293 65294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 65295 $as_echo_n "checking if we should bundle freetype... " >&6; } 65296 if test "x$BUNDLE_FREETYPE" = xyes; then 65297 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 65298 fi 65299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 65300 $as_echo "$BUNDLE_FREETYPE" >&6; } 65301 65302 if test "x$BUNDLE_FREETYPE" = xyes; then 65303 FREETYPE_LICENSE="" 65304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 65305 $as_echo_n "checking for freetype license... " >&6; } 65306 if test "x$with_freetype_license" = "xyes"; then 65307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65308 $as_echo "no" >&6; } 65309 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 65310 elif test "x$with_freetype_license" != "x"; then 65311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 65312 $as_echo "$with_freetype_license" >&6; } 65313 FREETYPE_LICENSE="$with_freetype_license" 65314 65315 # Only process if variable expands to non-empty 65316 65317 if test "x$FREETYPE_LICENSE" != x; then 65318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65319 65320 # Input might be given as Windows format, start by converting to 65321 # unix format. 65322 path="$FREETYPE_LICENSE" 65323 new_path=`$CYGPATH -u "$path"` 65324 65325 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65326 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65327 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65328 # "foo.exe" is OK but "foo" is an error. 65329 # 65330 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65331 # It is also a way to make sure we got the proper file name for the real test later on. 65332 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65333 if test "x$test_shortpath" = x; then 65334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65335 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65336 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65337 fi 65338 65339 # Call helper function which possibly converts this using DOS-style short mode. 65340 # If so, the updated path is stored in $new_path. 65341 65342 input_path="$new_path" 65343 # Check if we need to convert this using DOS-style short mode. If the path 65344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65345 # take no chances and rewrite it. 65346 # Note: m4 eats our [], so we need to use [ and ] instead. 65347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65348 if test "x$has_forbidden_chars" != x; then 65349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65350 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65351 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65352 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65353 # Going to short mode and back again did indeed matter. Since short mode is 65354 # case insensitive, let's make it lowercase to improve readability. 65355 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65356 # Now convert it back to Unix-style (cygpath) 65357 input_path=`$CYGPATH -u "$shortmode_path"` 65358 new_path="$input_path" 65359 fi 65360 fi 65361 65362 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65363 if test "x$test_cygdrive_prefix" = x; then 65364 # As a simple fix, exclude /usr/bin since it's not a real path. 65365 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65366 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65367 # a path prefixed by /cygdrive for fixpath to work. 65368 new_path="$CYGWIN_ROOT_PATH$input_path" 65369 fi 65370 fi 65371 65372 65373 if test "x$path" != "x$new_path"; then 65374 FREETYPE_LICENSE="$new_path" 65375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65376 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65377 fi 65378 65379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65380 65381 path="$FREETYPE_LICENSE" 65382 has_colon=`$ECHO $path | $GREP ^.:` 65383 new_path="$path" 65384 if test "x$has_colon" = x; then 65385 # Not in mixed or Windows style, start by that. 65386 new_path=`cmd //c echo $path` 65387 fi 65388 65389 65390 input_path="$new_path" 65391 # Check if we need to convert this using DOS-style short mode. If the path 65392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65393 # take no chances and rewrite it. 65394 # Note: m4 eats our [], so we need to use [ and ] instead. 65395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65396 if test "x$has_forbidden_chars" != x; then 65397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65398 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65399 fi 65400 65401 65402 windows_path="$new_path" 65403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65404 unix_path=`$CYGPATH -u "$windows_path"` 65405 new_path="$unix_path" 65406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65408 new_path="$unix_path" 65409 fi 65410 65411 if test "x$path" != "x$new_path"; then 65412 FREETYPE_LICENSE="$new_path" 65413 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65414 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65415 fi 65416 65417 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65418 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65419 65420 else 65421 # We're on a unix platform. Hooray! :) 65422 path="$FREETYPE_LICENSE" 65423 has_space=`$ECHO "$path" | $GREP " "` 65424 if test "x$has_space" != x; then 65425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65426 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65427 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65428 fi 65429 65430 # Use eval to expand a potential ~ 65431 eval path="$path" 65432 if test ! -f "$path" && test ! -d "$path"; then 65433 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65434 fi 65435 65436 if test -d "$path"; then 65437 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65438 else 65439 dir="`$DIRNAME "$path"`" 65440 base="`$BASENAME "$path"`" 65441 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65442 fi 65443 fi 65444 fi 65445 65446 if test ! -f "$FREETYPE_LICENSE"; then 65447 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 65448 fi 65449 else 65450 if test "x$with_freetype" != "x" && test -f $with_freetype/freetype.md; then 65451 FREETYPE_LICENSE="$with_freetype/freetype.md" 65452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LICENSE" >&5 65453 $as_echo "$FREETYPE_LICENSE" >&6; } 65454 65455 # Only process if variable expands to non-empty 65456 65457 if test "x$FREETYPE_LICENSE" != x; then 65458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65459 65460 # Input might be given as Windows format, start by converting to 65461 # unix format. 65462 path="$FREETYPE_LICENSE" 65463 new_path=`$CYGPATH -u "$path"` 65464 65465 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65466 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65467 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65468 # "foo.exe" is OK but "foo" is an error. 65469 # 65470 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65471 # It is also a way to make sure we got the proper file name for the real test later on. 65472 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65473 if test "x$test_shortpath" = x; then 65474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65475 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65476 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65477 fi 65478 65479 # Call helper function which possibly converts this using DOS-style short mode. 65480 # If so, the updated path is stored in $new_path. 65481 65482 input_path="$new_path" 65483 # Check if we need to convert this using DOS-style short mode. If the path 65484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65485 # take no chances and rewrite it. 65486 # Note: m4 eats our [], so we need to use [ and ] instead. 65487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65488 if test "x$has_forbidden_chars" != x; then 65489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65490 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65491 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65492 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65493 # Going to short mode and back again did indeed matter. Since short mode is 65494 # case insensitive, let's make it lowercase to improve readability. 65495 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65496 # Now convert it back to Unix-style (cygpath) 65497 input_path=`$CYGPATH -u "$shortmode_path"` 65498 new_path="$input_path" 65499 fi 65500 fi 65501 65502 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65503 if test "x$test_cygdrive_prefix" = x; then 65504 # As a simple fix, exclude /usr/bin since it's not a real path. 65505 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65506 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65507 # a path prefixed by /cygdrive for fixpath to work. 65508 new_path="$CYGWIN_ROOT_PATH$input_path" 65509 fi 65510 fi 65511 65512 65513 if test "x$path" != "x$new_path"; then 65514 FREETYPE_LICENSE="$new_path" 65515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65516 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65517 fi 65518 65519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65520 65521 path="$FREETYPE_LICENSE" 65522 has_colon=`$ECHO $path | $GREP ^.:` 65523 new_path="$path" 65524 if test "x$has_colon" = x; then 65525 # Not in mixed or Windows style, start by that. 65526 new_path=`cmd //c echo $path` 65527 fi 65528 65529 65530 input_path="$new_path" 65531 # Check if we need to convert this using DOS-style short mode. If the path 65532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65533 # take no chances and rewrite it. 65534 # Note: m4 eats our [], so we need to use [ and ] instead. 65535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65536 if test "x$has_forbidden_chars" != x; then 65537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65538 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65539 fi 65540 65541 65542 windows_path="$new_path" 65543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65544 unix_path=`$CYGPATH -u "$windows_path"` 65545 new_path="$unix_path" 65546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65548 new_path="$unix_path" 65549 fi 65550 65551 if test "x$path" != "x$new_path"; then 65552 FREETYPE_LICENSE="$new_path" 65553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65554 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65555 fi 65556 65557 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65558 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65559 65560 else 65561 # We're on a unix platform. Hooray! :) 65562 path="$FREETYPE_LICENSE" 65563 has_space=`$ECHO "$path" | $GREP " "` 65564 if test "x$has_space" != x; then 65565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65566 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65567 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65568 fi 65569 65570 # Use eval to expand a potential ~ 65571 eval path="$path" 65572 if test ! -f "$path" && test ! -d "$path"; then 65573 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65574 fi 65575 65576 if test -d "$path"; then 65577 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65578 else 65579 dir="`$DIRNAME "$path"`" 65580 base="`$BASENAME "$path"`" 65581 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65582 fi 65583 fi 65584 fi 65585 65586 else 65587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65588 $as_echo "no" >&6; } 65589 fi 65590 fi 65591 fi 65592 65593 fi # end freetype needed 65594 65595 65596 65597 65598 65599 65600 65601 65602 # Check whether --with-alsa was given. 65603 if test "${with_alsa+set}" = set; then : 65604 withval=$with_alsa; 65605 fi 65606 65607 65608 # Check whether --with-alsa-include was given. 65609 if test "${with_alsa_include+set}" = set; then : 65610 withval=$with_alsa_include; 65611 fi 65612 65613 65614 # Check whether --with-alsa-lib was given. 65615 if test "${with_alsa_lib+set}" = set; then : 65616 withval=$with_alsa_lib; 65617 fi 65618 65619 65620 if test "x$NEEDS_LIB_ALSA" = xfalse; then 65621 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 65622 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 65623 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 65624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 65625 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 65626 fi 65627 ALSA_CFLAGS= 65628 ALSA_LIBS= 65629 else 65630 ALSA_FOUND=no 65631 65632 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 65633 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 65634 fi 65635 65636 if test "x${with_alsa}" != x; then 65637 ALSA_LIBS="-L${with_alsa}/lib -lasound" 65638 ALSA_CFLAGS="-I${with_alsa}/include" 65639 ALSA_FOUND=yes 65640 fi 65641 if test "x${with_alsa_include}" != x; then 65642 ALSA_CFLAGS="-I${with_alsa_include}" 65643 ALSA_FOUND=yes 65644 fi 65645 if test "x${with_alsa_lib}" != x; then 65646 ALSA_LIBS="-L${with_alsa_lib} -lasound" 65647 ALSA_FOUND=yes 65648 fi 65649 # Do not try pkg-config if we have a sysroot set. 65650 if test "x$SYSROOT" = x; then 65651 if test "x$ALSA_FOUND" = xno; then 65652 65653 pkg_failed=no 65654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 65655 $as_echo_n "checking for ALSA... " >&6; } 65656 65657 if test -n "$ALSA_CFLAGS"; then 65658 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 65659 elif test -n "$PKG_CONFIG"; then 65660 if test -n "$PKG_CONFIG" && \ 65661 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65662 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65663 ac_status=$? 65664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65665 test $ac_status = 0; }; then 65666 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 65667 else 65668 pkg_failed=yes 65669 fi 65670 else 65671 pkg_failed=untried 65672 fi 65673 if test -n "$ALSA_LIBS"; then 65674 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 65675 elif test -n "$PKG_CONFIG"; then 65676 if test -n "$PKG_CONFIG" && \ 65677 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65678 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65679 ac_status=$? 65680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65681 test $ac_status = 0; }; then 65682 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 65683 else 65684 pkg_failed=yes 65685 fi 65686 else 65687 pkg_failed=untried 65688 fi 65689 65690 65691 65692 if test $pkg_failed = yes; then 65693 65694 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65695 _pkg_short_errors_supported=yes 65696 else 65697 _pkg_short_errors_supported=no 65698 fi 65699 if test $_pkg_short_errors_supported = yes; then 65700 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 65701 else 65702 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 65703 fi 65704 # Put the nasty error message in config.log where it belongs 65705 echo "$ALSA_PKG_ERRORS" >&5 65706 65707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65708 $as_echo "no" >&6; } 65709 ALSA_FOUND=no 65710 elif test $pkg_failed = untried; then 65711 ALSA_FOUND=no 65712 else 65713 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 65714 ALSA_LIBS=$pkg_cv_ALSA_LIBS 65715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65716 $as_echo "yes" >&6; } 65717 ALSA_FOUND=yes 65718 fi 65719 fi 65720 fi 65721 if test "x$ALSA_FOUND" = xno; then 65722 for ac_header in alsa/asoundlib.h 65723 do : 65724 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 65725 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 65726 cat >>confdefs.h <<_ACEOF 65727 #define HAVE_ALSA_ASOUNDLIB_H 1 65728 _ACEOF 65729 65730 ALSA_FOUND=yes 65731 ALSA_CFLAGS=-Iignoreme 65732 ALSA_LIBS=-lasound 65733 DEFAULT_ALSA=yes 65734 65735 else 65736 ALSA_FOUND=no 65737 65738 fi 65739 65740 done 65741 65742 fi 65743 if test "x$ALSA_FOUND" = xno; then 65744 65745 # Print a helpful message on how to acquire the necessary build dependency. 65746 # alsa is the help tag: freetype, cups, alsa etc 65747 MISSING_DEPENDENCY=alsa 65748 65749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65750 cygwin_help $MISSING_DEPENDENCY 65751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65752 msys_help $MISSING_DEPENDENCY 65753 else 65754 PKGHANDLER_COMMAND= 65755 65756 case $PKGHANDLER in 65757 apt-get) 65758 apt_help $MISSING_DEPENDENCY ;; 65759 yum) 65760 yum_help $MISSING_DEPENDENCY ;; 65761 brew) 65762 brew_help $MISSING_DEPENDENCY ;; 65763 port) 65764 port_help $MISSING_DEPENDENCY ;; 65765 pkgutil) 65766 pkgutil_help $MISSING_DEPENDENCY ;; 65767 pkgadd) 65768 pkgadd_help $MISSING_DEPENDENCY ;; 65769 esac 65770 65771 if test "x$PKGHANDLER_COMMAND" != x; then 65772 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65773 fi 65774 fi 65775 65776 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 65777 fi 65778 fi 65779 65780 65781 65782 65783 65784 65785 # Check whether --with-libffi was given. 65786 if test "${with_libffi+set}" = set; then : 65787 withval=$with_libffi; 65788 fi 65789 65790 65791 # Check whether --with-libffi-include was given. 65792 if test "${with_libffi_include+set}" = set; then : 65793 withval=$with_libffi_include; 65794 fi 65795 65796 65797 # Check whether --with-libffi-lib was given. 65798 if test "${with_libffi_lib+set}" = set; then : 65799 withval=$with_libffi_lib; 65800 fi 65801 65802 # Check whether --enable-libffi-bundling was given. 65803 if test "${enable_libffi_bundling+set}" = set; then : 65804 enableval=$enable_libffi_bundling; 65805 fi 65806 65807 65808 if test "x$NEEDS_LIB_FFI" = xfalse; then 65809 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 65810 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 65811 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 65812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 65813 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 65814 fi 65815 LIBFFI_CFLAGS= 65816 LIBFFI_LIBS= 65817 else 65818 LIBFFI_FOUND=no 65819 65820 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 65821 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 65822 fi 65823 65824 if test "x${with_libffi}" != x; then 65825 LIBFFI_LIB_PATH="${with_libffi}/lib" 65826 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 65827 LIBFFI_CFLAGS="-I${with_libffi}/include" 65828 LIBFFI_FOUND=yes 65829 fi 65830 if test "x${with_libffi_include}" != x; then 65831 LIBFFI_CFLAGS="-I${with_libffi_include}" 65832 LIBFFI_FOUND=yes 65833 fi 65834 if test "x${with_libffi_lib}" != x; then 65835 LIBFFI_LIB_PATH="${with_libffi_lib}" 65836 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 65837 LIBFFI_FOUND=yes 65838 fi 65839 # Do not try pkg-config if we have a sysroot set. 65840 if test "x$SYSROOT" = x; then 65841 if test "x$LIBFFI_FOUND" = xno; then 65842 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 65843 65844 pkg_failed=no 65845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 65846 $as_echo_n "checking for LIBFFI... " >&6; } 65847 65848 if test -n "$LIBFFI_CFLAGS"; then 65849 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 65850 elif test -n "$PKG_CONFIG"; then 65851 if test -n "$PKG_CONFIG" && \ 65852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65853 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65854 ac_status=$? 65855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65856 test $ac_status = 0; }; then 65857 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 65858 else 65859 pkg_failed=yes 65860 fi 65861 else 65862 pkg_failed=untried 65863 fi 65864 if test -n "$LIBFFI_LIBS"; then 65865 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 65866 elif test -n "$PKG_CONFIG"; then 65867 if test -n "$PKG_CONFIG" && \ 65868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65869 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65870 ac_status=$? 65871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65872 test $ac_status = 0; }; then 65873 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 65874 else 65875 pkg_failed=yes 65876 fi 65877 else 65878 pkg_failed=untried 65879 fi 65880 65881 65882 65883 if test $pkg_failed = yes; then 65884 65885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65886 _pkg_short_errors_supported=yes 65887 else 65888 _pkg_short_errors_supported=no 65889 fi 65890 if test $_pkg_short_errors_supported = yes; then 65891 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 65892 else 65893 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 65894 fi 65895 # Put the nasty error message in config.log where it belongs 65896 echo "$LIBFFI_PKG_ERRORS" >&5 65897 65898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65899 $as_echo "no" >&6; } 65900 LIBFFI_FOUND=no 65901 elif test $pkg_failed = untried; then 65902 LIBFFI_FOUND=no 65903 else 65904 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 65905 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 65906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65907 $as_echo "yes" >&6; } 65908 LIBFFI_FOUND=yes 65909 fi 65910 fi 65911 fi 65912 if test "x$LIBFFI_FOUND" = xno; then 65913 for ac_header in ffi.h 65914 do : 65915 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 65916 if test "x$ac_cv_header_ffi_h" = xyes; then : 65917 cat >>confdefs.h <<_ACEOF 65918 #define HAVE_FFI_H 1 65919 _ACEOF 65920 65921 LIBFFI_FOUND=yes 65922 LIBFFI_CFLAGS= 65923 LIBFFI_LIBS=-lffi 65924 65925 else 65926 LIBFFI_FOUND=no 65927 65928 fi 65929 65930 done 65931 65932 fi 65933 if test "x$LIBFFI_FOUND" = xno; then 65934 65935 # Print a helpful message on how to acquire the necessary build dependency. 65936 # ffi is the help tag: freetype, cups, alsa etc 65937 MISSING_DEPENDENCY=ffi 65938 65939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65940 cygwin_help $MISSING_DEPENDENCY 65941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65942 msys_help $MISSING_DEPENDENCY 65943 else 65944 PKGHANDLER_COMMAND= 65945 65946 case $PKGHANDLER in 65947 apt-get) 65948 apt_help $MISSING_DEPENDENCY ;; 65949 yum) 65950 yum_help $MISSING_DEPENDENCY ;; 65951 brew) 65952 brew_help $MISSING_DEPENDENCY ;; 65953 port) 65954 port_help $MISSING_DEPENDENCY ;; 65955 pkgutil) 65956 pkgutil_help $MISSING_DEPENDENCY ;; 65957 pkgadd) 65958 pkgadd_help $MISSING_DEPENDENCY ;; 65959 esac 65960 65961 if test "x$PKGHANDLER_COMMAND" != x; then 65962 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65963 fi 65964 fi 65965 65966 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 65967 fi 65968 65969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 65970 $as_echo_n "checking if libffi works... " >&6; } 65971 ac_ext=c 65972 ac_cpp='$CPP $CPPFLAGS' 65973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65975 ac_compiler_gnu=$ac_cv_c_compiler_gnu 65976 65977 OLD_CFLAGS="$CFLAGS" 65978 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 65979 OLD_LIBS="$LIBS" 65980 LIBS="$LIBS $LIBFFI_LIBS" 65981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65982 /* end confdefs.h. */ 65983 #include <ffi.h> 65984 int 65985 main () 65986 { 65987 65988 ffi_call(NULL, NULL, NULL, NULL); 65989 return 0; 65990 65991 ; 65992 return 0; 65993 } 65994 _ACEOF 65995 if ac_fn_c_try_link "$LINENO"; then : 65996 LIBFFI_WORKS=yes 65997 else 65998 LIBFFI_WORKS=no 65999 66000 fi 66001 rm -f core conftest.err conftest.$ac_objext \ 66002 conftest$ac_exeext conftest.$ac_ext 66003 CFLAGS="$OLD_CFLAGS" 66004 LIBS="$OLD_LIBS" 66005 ac_ext=cpp 66006 ac_cpp='$CXXCPP $CPPFLAGS' 66007 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 66008 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 66009 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 66010 66011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 66012 $as_echo "$LIBFFI_WORKS" >&6; } 66013 66014 if test "x$LIBFFI_WORKS" = xno; then 66015 66016 # Print a helpful message on how to acquire the necessary build dependency. 66017 # ffi is the help tag: freetype, cups, alsa etc 66018 MISSING_DEPENDENCY=ffi 66019 66020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66021 cygwin_help $MISSING_DEPENDENCY 66022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66023 msys_help $MISSING_DEPENDENCY 66024 else 66025 PKGHANDLER_COMMAND= 66026 66027 case $PKGHANDLER in 66028 apt-get) 66029 apt_help $MISSING_DEPENDENCY ;; 66030 yum) 66031 yum_help $MISSING_DEPENDENCY ;; 66032 brew) 66033 brew_help $MISSING_DEPENDENCY ;; 66034 port) 66035 port_help $MISSING_DEPENDENCY ;; 66036 pkgutil) 66037 pkgutil_help $MISSING_DEPENDENCY ;; 66038 pkgadd) 66039 pkgadd_help $MISSING_DEPENDENCY ;; 66040 esac 66041 66042 if test "x$PKGHANDLER_COMMAND" != x; then 66043 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 66044 fi 66045 fi 66046 66047 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 66048 fi 66049 66050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 66051 $as_echo_n "checking if libffi should be bundled... " >&6; } 66052 if test "x$enable_libffi_bundling" = "x"; then 66053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66054 $as_echo "no" >&6; } 66055 ENABLE_LIBFFI_BUNDLING=false 66056 elif test "x$enable_libffi_bundling" = "xno"; then 66057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66058 $as_echo "no, forced" >&6; } 66059 ENABLE_LIBFFI_BUNDLING=false 66060 elif test "x$enable_libffi_bundling" = "xyes"; then 66061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66062 $as_echo "yes, forced" >&6; } 66063 ENABLE_LIBFFI_BUNDLING=true 66064 else 66065 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 66066 fi 66067 66068 # Find the libffi.so.X to bundle 66069 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 66070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 66071 $as_echo_n "checking for libffi lib file location... " >&6; } 66072 if test "x${LIBFFI_LIB_PATH}" != x; then 66073 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 66074 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 66075 else 66076 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 66077 fi 66078 else 66079 # If we don't have an explicit path, look in a few obvious places 66080 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 66081 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66082 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66083 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 66084 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 66085 else 66086 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66087 fi 66088 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 66089 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 66090 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 66091 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 66092 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 66093 else 66094 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66095 fi 66096 else 66097 # Fallback on the default /usr/lib dir 66098 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66099 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66100 else 66101 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66102 fi 66103 fi 66104 fi 66105 # Make sure the wildcard is evaluated 66106 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 66107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 66108 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 66109 fi 66110 fi 66111 66112 66113 66114 66115 66116 66117 66118 66119 # Check whether --with-libjpeg was given. 66120 if test "${with_libjpeg+set}" = set; then : 66121 withval=$with_libjpeg; 66122 fi 66123 66124 66125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 66126 $as_echo_n "checking for which libjpeg to use... " >&6; } 66127 # default is bundled 66128 DEFAULT_LIBJPEG=bundled 66129 # if user didn't specify, use DEFAULT_LIBJPEG 66130 if test "x${with_libjpeg}" = "x"; then 66131 with_libjpeg=${DEFAULT_LIBJPEG} 66132 fi 66133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 66134 $as_echo "${with_libjpeg}" >&6; } 66135 66136 if test "x${with_libjpeg}" = "xbundled"; then 66137 USE_EXTERNAL_LIBJPEG=false 66138 elif test "x${with_libjpeg}" = "xsystem"; then 66139 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 66140 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 66141 66142 else 66143 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 66144 fi 66145 66146 66147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 66148 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 66149 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 66150 $as_echo_n "(cached) " >&6 66151 else 66152 ac_check_lib_save_LIBS=$LIBS 66153 LIBS="-ljpeg $LIBS" 66154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66155 /* end confdefs.h. */ 66156 66157 /* Override any GCC internal prototype to avoid an error. 66158 Use char because int might match the return type of a GCC 66159 builtin and then its argument prototype would still apply. */ 66160 #ifdef __cplusplus 66161 extern "C" 66162 #endif 66163 char jpeg_CreateDecompress (); 66164 int 66165 main () 66166 { 66167 return jpeg_CreateDecompress (); 66168 ; 66169 return 0; 66170 } 66171 _ACEOF 66172 if ac_fn_cxx_try_link "$LINENO"; then : 66173 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 66174 else 66175 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 66176 fi 66177 rm -f core conftest.err conftest.$ac_objext \ 66178 conftest$ac_exeext conftest.$ac_ext 66179 LIBS=$ac_check_lib_save_LIBS 66180 fi 66181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 66182 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 66183 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 66184 cat >>confdefs.h <<_ACEOF 66185 #define HAVE_LIBJPEG 1 66186 _ACEOF 66187 66188 LIBS="-ljpeg $LIBS" 66189 66190 else 66191 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 66192 fi 66193 66194 66195 USE_EXTERNAL_LIBJPEG=true 66196 else 66197 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 66198 fi 66199 66200 66201 66202 66203 66204 # Check whether --with-giflib was given. 66205 if test "${with_giflib+set}" = set; then : 66206 withval=$with_giflib; 66207 fi 66208 66209 66210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 66211 $as_echo_n "checking for which giflib to use... " >&6; } 66212 # default is bundled 66213 DEFAULT_GIFLIB=bundled 66214 # if user didn't specify, use DEFAULT_GIFLIB 66215 if test "x${with_giflib}" = "x"; then 66216 with_giflib=${DEFAULT_GIFLIB} 66217 fi 66218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 66219 $as_echo "${with_giflib}" >&6; } 66220 66221 if test "x${with_giflib}" = "xbundled"; then 66222 USE_EXTERNAL_LIBGIF=false 66223 elif test "x${with_giflib}" = "xsystem"; then 66224 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 66225 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 66226 66227 else 66228 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 66229 fi 66230 66231 66232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 66233 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 66234 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 66235 $as_echo_n "(cached) " >&6 66236 else 66237 ac_check_lib_save_LIBS=$LIBS 66238 LIBS="-lgif $LIBS" 66239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66240 /* end confdefs.h. */ 66241 66242 /* Override any GCC internal prototype to avoid an error. 66243 Use char because int might match the return type of a GCC 66244 builtin and then its argument prototype would still apply. */ 66245 #ifdef __cplusplus 66246 extern "C" 66247 #endif 66248 char DGifGetCode (); 66249 int 66250 main () 66251 { 66252 return DGifGetCode (); 66253 ; 66254 return 0; 66255 } 66256 _ACEOF 66257 if ac_fn_cxx_try_link "$LINENO"; then : 66258 ac_cv_lib_gif_DGifGetCode=yes 66259 else 66260 ac_cv_lib_gif_DGifGetCode=no 66261 fi 66262 rm -f core conftest.err conftest.$ac_objext \ 66263 conftest$ac_exeext conftest.$ac_ext 66264 LIBS=$ac_check_lib_save_LIBS 66265 fi 66266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 66267 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 66268 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 66269 cat >>confdefs.h <<_ACEOF 66270 #define HAVE_LIBGIF 1 66271 _ACEOF 66272 66273 LIBS="-lgif $LIBS" 66274 66275 else 66276 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 66277 fi 66278 66279 66280 USE_EXTERNAL_LIBGIF=true 66281 else 66282 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 66283 fi 66284 66285 66286 66287 66288 66289 # Check whether --with-libpng was given. 66290 if test "${with_libpng+set}" = set; then : 66291 withval=$with_libpng; 66292 fi 66293 66294 66295 66296 pkg_failed=no 66297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 66298 $as_echo_n "checking for PNG... " >&6; } 66299 66300 if test -n "$PNG_CFLAGS"; then 66301 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 66302 elif test -n "$PKG_CONFIG"; then 66303 if test -n "$PKG_CONFIG" && \ 66304 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66305 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66306 ac_status=$? 66307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66308 test $ac_status = 0; }; then 66309 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 66310 else 66311 pkg_failed=yes 66312 fi 66313 else 66314 pkg_failed=untried 66315 fi 66316 if test -n "$PNG_LIBS"; then 66317 pkg_cv_PNG_LIBS="$PNG_LIBS" 66318 elif test -n "$PKG_CONFIG"; then 66319 if test -n "$PKG_CONFIG" && \ 66320 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66321 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66322 ac_status=$? 66323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66324 test $ac_status = 0; }; then 66325 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 66326 else 66327 pkg_failed=yes 66328 fi 66329 else 66330 pkg_failed=untried 66331 fi 66332 66333 66334 66335 if test $pkg_failed = yes; then 66336 66337 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66338 _pkg_short_errors_supported=yes 66339 else 66340 _pkg_short_errors_supported=no 66341 fi 66342 if test $_pkg_short_errors_supported = yes; then 66343 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 66344 else 66345 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 66346 fi 66347 # Put the nasty error message in config.log where it belongs 66348 echo "$PNG_PKG_ERRORS" >&5 66349 66350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66351 $as_echo "no" >&6; } 66352 LIBPNG_FOUND=no 66353 elif test $pkg_failed = untried; then 66354 LIBPNG_FOUND=no 66355 else 66356 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 66357 PNG_LIBS=$pkg_cv_PNG_LIBS 66358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66359 $as_echo "yes" >&6; } 66360 LIBPNG_FOUND=yes 66361 fi 66362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 66363 $as_echo_n "checking for which libpng to use... " >&6; } 66364 66365 # default is bundled 66366 DEFAULT_LIBPNG=bundled 66367 # if user didn't specify, use DEFAULT_LIBPNG 66368 if test "x${with_libpng}" = "x"; then 66369 with_libpng=${DEFAULT_LIBPNG} 66370 fi 66371 66372 if test "x${with_libpng}" = "xbundled"; then 66373 USE_EXTERNAL_LIBPNG=false 66374 PNG_CFLAGS="" 66375 PNG_LIBS="" 66376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66377 $as_echo "bundled" >&6; } 66378 elif test "x${with_libpng}" = "xsystem"; then 66379 if test "x${LIBPNG_FOUND}" = "xyes"; then 66380 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 66381 USE_EXTERNAL_LIBPNG=true 66382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66383 $as_echo "system" >&6; } 66384 else 66385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66386 $as_echo "system not found" >&6; } 66387 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 66388 fi 66389 else 66390 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 66391 fi 66392 66393 66394 66395 66396 66397 66398 66399 # Check whether --with-zlib was given. 66400 if test "${with_zlib+set}" = set; then : 66401 withval=$with_zlib; 66402 fi 66403 66404 66405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 66406 $as_echo_n "checking for compress in -lz... " >&6; } 66407 if ${ac_cv_lib_z_compress+:} false; then : 66408 $as_echo_n "(cached) " >&6 66409 else 66410 ac_check_lib_save_LIBS=$LIBS 66411 LIBS="-lz $LIBS" 66412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66413 /* end confdefs.h. */ 66414 66415 /* Override any GCC internal prototype to avoid an error. 66416 Use char because int might match the return type of a GCC 66417 builtin and then its argument prototype would still apply. */ 66418 #ifdef __cplusplus 66419 extern "C" 66420 #endif 66421 char compress (); 66422 int 66423 main () 66424 { 66425 return compress (); 66426 ; 66427 return 0; 66428 } 66429 _ACEOF 66430 if ac_fn_cxx_try_link "$LINENO"; then : 66431 ac_cv_lib_z_compress=yes 66432 else 66433 ac_cv_lib_z_compress=no 66434 fi 66435 rm -f core conftest.err conftest.$ac_objext \ 66436 conftest$ac_exeext conftest.$ac_ext 66437 LIBS=$ac_check_lib_save_LIBS 66438 fi 66439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 66440 $as_echo "$ac_cv_lib_z_compress" >&6; } 66441 if test "x$ac_cv_lib_z_compress" = xyes; then : 66442 ZLIB_FOUND=yes 66443 else 66444 ZLIB_FOUND=no 66445 fi 66446 66447 66448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 66449 $as_echo_n "checking for which zlib to use... " >&6; } 66450 66451 DEFAULT_ZLIB=system 66452 if test "x$OPENJDK_TARGET_OS" = xwindows; then 66453 # On windows default is bundled...on others default is system 66454 DEFAULT_ZLIB=bundled 66455 fi 66456 66457 if test "x${ZLIB_FOUND}" != "xyes"; then 66458 # If we don't find any system...set default to bundled 66459 DEFAULT_ZLIB=bundled 66460 fi 66461 66462 # If user didn't specify, use DEFAULT_ZLIB 66463 if test "x${with_zlib}" = "x"; then 66464 with_zlib=${DEFAULT_ZLIB} 66465 fi 66466 66467 if test "x${with_zlib}" = "xbundled"; then 66468 USE_EXTERNAL_LIBZ=false 66469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66470 $as_echo "bundled" >&6; } 66471 elif test "x${with_zlib}" = "xsystem"; then 66472 if test "x${ZLIB_FOUND}" = "xyes"; then 66473 USE_EXTERNAL_LIBZ=true 66474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66475 $as_echo "system" >&6; } 66476 66477 if test "x$USE_EXTERNAL_LIBPNG" != "xtrue"; then 66478 # If we use bundled libpng, we must verify that we have a proper zlib. 66479 # For instance zlib-ng has had issues with inflateValidate(). 66480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib functionality" >&5 66481 $as_echo_n "checking for system zlib functionality... " >&6; } 66482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66483 /* end confdefs.h. */ 66484 #include "zlib.h" 66485 int 66486 main () 66487 { 66488 66489 #if ZLIB_VERNUM >= 0x1281 66490 inflateValidate(NULL, 0); 66491 #endif 66492 66493 ; 66494 return 0; 66495 } 66496 _ACEOF 66497 if ac_fn_cxx_try_compile "$LINENO"; then : 66498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 66499 $as_echo "ok" >&6; } 66500 else 66501 66502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5 66503 $as_echo "not ok" >&6; } 66504 as_fn_error $? "System zlib not working correctly" "$LINENO" 5 66505 66506 66507 fi 66508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66509 fi 66510 else 66511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66512 $as_echo "system not found" >&6; } 66513 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 66514 fi 66515 else 66516 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 66517 fi 66518 66519 66520 66521 66522 66523 # Check whether --with-lcms was given. 66524 if test "${with_lcms+set}" = set; then : 66525 withval=$with_lcms; 66526 fi 66527 66528 66529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 66530 $as_echo_n "checking for which lcms to use... " >&6; } 66531 66532 DEFAULT_LCMS=bundled 66533 # If user didn't specify, use DEFAULT_LCMS 66534 if test "x${with_lcms}" = "x"; then 66535 with_lcms=${DEFAULT_LCMS} 66536 fi 66537 66538 if test "x${with_lcms}" = "xbundled"; then 66539 USE_EXTERNAL_LCMS=false 66540 LCMS_CFLAGS="" 66541 LCMS_LIBS="" 66542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66543 $as_echo "bundled" >&6; } 66544 elif test "x${with_lcms}" = "xsystem"; then 66545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66546 $as_echo "system" >&6; } 66547 66548 pkg_failed=no 66549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 66550 $as_echo_n "checking for LCMS... " >&6; } 66551 66552 if test -n "$LCMS_CFLAGS"; then 66553 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 66554 elif test -n "$PKG_CONFIG"; then 66555 if test -n "$PKG_CONFIG" && \ 66556 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66557 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66558 ac_status=$? 66559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66560 test $ac_status = 0; }; then 66561 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 66562 else 66563 pkg_failed=yes 66564 fi 66565 else 66566 pkg_failed=untried 66567 fi 66568 if test -n "$LCMS_LIBS"; then 66569 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 66570 elif test -n "$PKG_CONFIG"; then 66571 if test -n "$PKG_CONFIG" && \ 66572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66573 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66574 ac_status=$? 66575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66576 test $ac_status = 0; }; then 66577 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 66578 else 66579 pkg_failed=yes 66580 fi 66581 else 66582 pkg_failed=untried 66583 fi 66584 66585 66586 66587 if test $pkg_failed = yes; then 66588 66589 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66590 _pkg_short_errors_supported=yes 66591 else 66592 _pkg_short_errors_supported=no 66593 fi 66594 if test $_pkg_short_errors_supported = yes; then 66595 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 66596 else 66597 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 66598 fi 66599 # Put the nasty error message in config.log where it belongs 66600 echo "$LCMS_PKG_ERRORS" >&5 66601 66602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66603 $as_echo "no" >&6; } 66604 LCMS_FOUND=no 66605 elif test $pkg_failed = untried; then 66606 LCMS_FOUND=no 66607 else 66608 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 66609 LCMS_LIBS=$pkg_cv_LCMS_LIBS 66610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66611 $as_echo "yes" >&6; } 66612 LCMS_FOUND=yes 66613 fi 66614 if test "x${LCMS_FOUND}" = "xyes"; then 66615 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 66616 USE_EXTERNAL_LCMS=true 66617 else 66618 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 66619 fi 66620 else 66621 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 66622 fi 66623 66624 66625 66626 66627 66628 66629 66630 66631 66632 66633 66634 66635 66636 # Setup libm (the maths library) 66637 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 66638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 66639 $as_echo_n "checking for cos in -lm... " >&6; } 66640 if ${ac_cv_lib_m_cos+:} false; then : 66641 $as_echo_n "(cached) " >&6 66642 else 66643 ac_check_lib_save_LIBS=$LIBS 66644 LIBS="-lm $LIBS" 66645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66646 /* end confdefs.h. */ 66647 66648 /* Override any GCC internal prototype to avoid an error. 66649 Use char because int might match the return type of a GCC 66650 builtin and then its argument prototype would still apply. */ 66651 #ifdef __cplusplus 66652 extern "C" 66653 #endif 66654 char cos (); 66655 int 66656 main () 66657 { 66658 return cos (); 66659 ; 66660 return 0; 66661 } 66662 _ACEOF 66663 if ac_fn_cxx_try_link "$LINENO"; then : 66664 ac_cv_lib_m_cos=yes 66665 else 66666 ac_cv_lib_m_cos=no 66667 fi 66668 rm -f core conftest.err conftest.$ac_objext \ 66669 conftest$ac_exeext conftest.$ac_ext 66670 LIBS=$ac_check_lib_save_LIBS 66671 fi 66672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 66673 $as_echo "$ac_cv_lib_m_cos" >&6; } 66674 if test "x$ac_cv_lib_m_cos" = xyes; then : 66675 cat >>confdefs.h <<_ACEOF 66676 #define HAVE_LIBM 1 66677 _ACEOF 66678 66679 LIBS="-lm $LIBS" 66680 66681 else 66682 66683 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 66684 $as_echo "$as_me: Maths library was not found" >&6;} 66685 66686 fi 66687 66688 LIBM="-lm" 66689 else 66690 LIBM="" 66691 fi 66692 66693 66694 # Setup libdl (for dynamic library loading) 66695 save_LIBS="$LIBS" 66696 LIBS="" 66697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 66698 $as_echo_n "checking for dlopen in -ldl... " >&6; } 66699 if ${ac_cv_lib_dl_dlopen+:} false; then : 66700 $as_echo_n "(cached) " >&6 66701 else 66702 ac_check_lib_save_LIBS=$LIBS 66703 LIBS="-ldl $LIBS" 66704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66705 /* end confdefs.h. */ 66706 66707 /* Override any GCC internal prototype to avoid an error. 66708 Use char because int might match the return type of a GCC 66709 builtin and then its argument prototype would still apply. */ 66710 #ifdef __cplusplus 66711 extern "C" 66712 #endif 66713 char dlopen (); 66714 int 66715 main () 66716 { 66717 return dlopen (); 66718 ; 66719 return 0; 66720 } 66721 _ACEOF 66722 if ac_fn_cxx_try_link "$LINENO"; then : 66723 ac_cv_lib_dl_dlopen=yes 66724 else 66725 ac_cv_lib_dl_dlopen=no 66726 fi 66727 rm -f core conftest.err conftest.$ac_objext \ 66728 conftest$ac_exeext conftest.$ac_ext 66729 LIBS=$ac_check_lib_save_LIBS 66730 fi 66731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 66732 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 66733 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 66734 cat >>confdefs.h <<_ACEOF 66735 #define HAVE_LIBDL 1 66736 _ACEOF 66737 66738 LIBS="-ldl $LIBS" 66739 66740 fi 66741 66742 LIBDL="$LIBS" 66743 66744 LIBS="$save_LIBS" 66745 66746 # Deprecated libraries, keep the flags for backwards compatibility 66747 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 66748 66749 66750 # Check whether --with-dxsdk was given. 66751 if test "${with_dxsdk+set}" = set; then : 66752 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 66753 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 66754 fi 66755 66756 66757 66758 66759 # Check whether --with-dxsdk-lib was given. 66760 if test "${with_dxsdk_lib+set}" = set; then : 66761 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 66762 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 66763 fi 66764 66765 66766 66767 66768 # Check whether --with-dxsdk-include was given. 66769 if test "${with_dxsdk_include+set}" = set; then : 66770 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 66771 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 66772 fi 66773 66774 66775 fi 66776 66777 # Control if libzip can use mmap. Available for purposes of overriding. 66778 LIBZIP_CAN_USE_MMAP=true 66779 66780 66781 66782 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 66783 # Find the root of the Solaris Studio installation from the compiler path 66784 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 66785 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 66786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 66787 $as_echo_n "checking for libstlport.so.1... " >&6; } 66788 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 66789 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 66790 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 66791 fi 66792 if test -f "$STLPORT_LIB"; then 66793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 66794 $as_echo "yes, $STLPORT_LIB" >&6; } 66795 66796 # Only process if variable expands to non-empty 66797 66798 if test "x$STLPORT_LIB" != x; then 66799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66800 66801 # Input might be given as Windows format, start by converting to 66802 # unix format. 66803 path="$STLPORT_LIB" 66804 new_path=`$CYGPATH -u "$path"` 66805 66806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 66807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 66808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 66809 # "foo.exe" is OK but "foo" is an error. 66810 # 66811 # This test is therefore slightly more accurate than "test -f" to check for file precense. 66812 # It is also a way to make sure we got the proper file name for the real test later on. 66813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 66814 if test "x$test_shortpath" = x; then 66815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66816 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66817 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 66818 fi 66819 66820 # Call helper function which possibly converts this using DOS-style short mode. 66821 # If so, the updated path is stored in $new_path. 66822 66823 input_path="$new_path" 66824 # Check if we need to convert this using DOS-style short mode. If the path 66825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66826 # take no chances and rewrite it. 66827 # Note: m4 eats our [], so we need to use [ and ] instead. 66828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 66829 if test "x$has_forbidden_chars" != x; then 66830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66831 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 66832 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 66833 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 66834 # Going to short mode and back again did indeed matter. Since short mode is 66835 # case insensitive, let's make it lowercase to improve readability. 66836 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66837 # Now convert it back to Unix-style (cygpath) 66838 input_path=`$CYGPATH -u "$shortmode_path"` 66839 new_path="$input_path" 66840 fi 66841 fi 66842 66843 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 66844 if test "x$test_cygdrive_prefix" = x; then 66845 # As a simple fix, exclude /usr/bin since it's not a real path. 66846 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 66847 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 66848 # a path prefixed by /cygdrive for fixpath to work. 66849 new_path="$CYGWIN_ROOT_PATH$input_path" 66850 fi 66851 fi 66852 66853 66854 if test "x$path" != "x$new_path"; then 66855 STLPORT_LIB="$new_path" 66856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66857 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66858 fi 66859 66860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66861 66862 path="$STLPORT_LIB" 66863 has_colon=`$ECHO $path | $GREP ^.:` 66864 new_path="$path" 66865 if test "x$has_colon" = x; then 66866 # Not in mixed or Windows style, start by that. 66867 new_path=`cmd //c echo $path` 66868 fi 66869 66870 66871 input_path="$new_path" 66872 # Check if we need to convert this using DOS-style short mode. If the path 66873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66874 # take no chances and rewrite it. 66875 # Note: m4 eats our [], so we need to use [ and ] instead. 66876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 66877 if test "x$has_forbidden_chars" != x; then 66878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66879 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66880 fi 66881 66882 66883 windows_path="$new_path" 66884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66885 unix_path=`$CYGPATH -u "$windows_path"` 66886 new_path="$unix_path" 66887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 66889 new_path="$unix_path" 66890 fi 66891 66892 if test "x$path" != "x$new_path"; then 66893 STLPORT_LIB="$new_path" 66894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66895 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66896 fi 66897 66898 # Save the first 10 bytes of this path to the storage, so fixpath can work. 66899 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 66900 66901 else 66902 # We're on a unix platform. Hooray! :) 66903 path="$STLPORT_LIB" 66904 has_space=`$ECHO "$path" | $GREP " "` 66905 if test "x$has_space" != x; then 66906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66907 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66908 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 66909 fi 66910 66911 # Use eval to expand a potential ~ 66912 eval path="$path" 66913 if test ! -f "$path" && test ! -d "$path"; then 66914 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 66915 fi 66916 66917 if test -d "$path"; then 66918 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 66919 else 66920 dir="`$DIRNAME "$path"`" 66921 base="`$BASENAME "$path"`" 66922 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 66923 fi 66924 fi 66925 fi 66926 66927 else 66928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 66929 $as_echo "no, not found at $STLPORT_LIB" >&6; } 66930 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 66931 fi 66932 66933 fi 66934 66935 66936 66937 66938 66939 66940 66941 66942 66943 66944 66945 66946 66947 66948 # Hotspot setup depends on lib checks. 66949 66950 66951 # The user can in some cases supply additional jvm features. For the custom 66952 # variant, this defines the entire variant. 66953 66954 # Check whether --with-jvm-features was given. 66955 if test "${with_jvm_features+set}" = set; then : 66956 withval=$with_jvm_features; 66957 fi 66958 66959 if test "x$with_jvm_features" != x; then 66960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 66961 $as_echo_n "checking additional JVM features... " >&6; } 66962 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 66963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 66964 $as_echo "$JVM_FEATURES" >&6; } 66965 fi 66966 66967 # Override hotspot cpu definitions for ARM platforms 66968 if test "x$OPENJDK_TARGET_CPU" = xarm; then 66969 HOTSPOT_TARGET_CPU=arm_32 66970 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 66971 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 66972 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 66973 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 66974 HOTSPOT_TARGET_CPU=arm_64 66975 HOTSPOT_TARGET_CPU_ARCH=arm 66976 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 66977 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 66978 fi 66979 66980 # Verify that dependencies are met for explicitly set features. 66981 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 66982 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 66983 fi 66984 66985 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 66986 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 66987 fi 66988 66989 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 66990 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 66991 fi 66992 66993 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 66994 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 66995 fi 66996 66997 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 66998 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 66999 fi 67000 67001 # Turn on additional features based on other parts of configure 67002 if test "x$INCLUDE_DTRACE" = "xtrue"; then 67003 JVM_FEATURES="$JVM_FEATURES dtrace" 67004 else 67005 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 67006 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 67007 fi 67008 fi 67009 67010 if test "x$STATIC_BUILD" = "xtrue"; then 67011 JVM_FEATURES="$JVM_FEATURES static-build" 67012 else 67013 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 67014 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 67015 fi 67016 fi 67017 67018 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 67019 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 67020 as_fn_error $? "To enable zero, you must use --with-jvm-variants=zero" "$LINENO" 5 67021 fi 67022 fi 67023 67024 # Only enable jvmci on x86_64, sparcv9 and aarch64. 67025 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 67026 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 67027 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 67028 JVM_FEATURES_jvmci="jvmci" 67029 else 67030 JVM_FEATURES_jvmci="" 67031 fi 67032 67033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 67034 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 67035 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 67036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67037 $as_echo "yes, forced" >&6; } 67038 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 67039 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 67040 fi 67041 INCLUDE_GRAAL="true" 67042 else 67043 # By default enable graal build on linux-x64 or where AOT is available. 67044 # graal build requires jvmci. 67045 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 67046 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 67047 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 67048 test "x$ENABLE_AOT" = "xtrue") ; then 67049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67050 $as_echo "yes" >&6; } 67051 JVM_FEATURES_graal="graal" 67052 INCLUDE_GRAAL="true" 67053 else 67054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67055 $as_echo "no" >&6; } 67056 JVM_FEATURES_graal="" 67057 INCLUDE_GRAAL="false" 67058 fi 67059 fi 67060 67061 67062 67063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 67064 $as_echo_n "checking if aot should be enabled... " >&6; } 67065 if test "x$ENABLE_AOT" = "xtrue"; then 67066 if test "x$enable_aot" = "xyes"; then 67067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67068 $as_echo "yes, forced" >&6; } 67069 else 67070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67071 $as_echo "yes" >&6; } 67072 fi 67073 JVM_FEATURES_aot="aot" 67074 else 67075 if test "x$enable_aot" = "xno"; then 67076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67077 $as_echo "no, forced" >&6; } 67078 else 67079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67080 $as_echo "no" >&6; } 67081 fi 67082 JVM_FEATURES_aot="" 67083 fi 67084 67085 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 67086 # Default to use link time optimizations on minimal on arm 67087 JVM_FEATURES_link_time_opt="link-time-opt" 67088 else 67089 JVM_FEATURES_link_time_opt="" 67090 fi 67091 67092 # All variants but minimal (and custom) get these features 67093 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 67094 if test "x$ENABLE_CDS" = "xtrue"; then 67095 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 67096 fi 67097 67098 # Enable features depending on variant. 67099 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 67100 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 67101 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 67102 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 67103 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 67104 JVM_FEATURES_custom="$JVM_FEATURES" 67105 67106 67107 67108 67109 67110 67111 67112 67113 # Used for verification of Makefiles by check-jvm-feature 67114 67115 67116 # We don't support --with-jvm-interpreter anymore, use zero instead. 67117 67118 67119 # Check whether --with-jvm-interpreter was given. 67120 if test "${with_jvm_interpreter+set}" = set; then : 67121 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 67122 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 67123 fi 67124 67125 67126 67127 67128 ############################################################################### 67129 # 67130 # We need to do some final tweaking, when everything else is done. 67131 # 67132 ############################################################################### 67133 67134 67135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 67136 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 67137 67138 if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then 67139 ENABLE_INTREE_EC=true 67140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67141 $as_echo "yes" >&6; } 67142 else 67143 ENABLE_INTREE_EC=false 67144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67145 $as_echo "no" >&6; } 67146 fi 67147 67148 67149 67150 67151 # Check whether --enable-jtreg-failure-handler was given. 67152 if test "${enable_jtreg_failure_handler+set}" = set; then : 67153 enableval=$enable_jtreg_failure_handler; 67154 fi 67155 67156 67157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 67158 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 67159 67160 if test "x$enable_jtreg_failure_handler" = "xyes"; then 67161 if test "x$JT_HOME" = "x"; then 67162 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 67163 else 67164 BUILD_FAILURE_HANDLER=true 67165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67166 $as_echo "yes, forced" >&6; } 67167 fi 67168 elif test "x$enable_jtreg_failure_handler" = "xno"; then 67169 BUILD_FAILURE_HANDLER=false 67170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67171 $as_echo "no, forced" >&6; } 67172 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 67173 || test "x$enable_jtreg_failure_handler" = "x"; then 67174 if test "x$JT_HOME" = "x"; then 67175 BUILD_FAILURE_HANDLER=false 67176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 67177 $as_echo "no, missing jtreg" >&6; } 67178 else 67179 BUILD_FAILURE_HANDLER=true 67180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 67181 $as_echo "yes, jtreg present" >&6; } 67182 fi 67183 else 67184 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 67185 fi 67186 67187 67188 67189 67190 # Check whether --enable-generate-classlist was given. 67191 if test "${enable_generate_classlist+set}" = set; then : 67192 enableval=$enable_generate_classlist; 67193 fi 67194 67195 67196 # Check if it's likely that it's possible to generate the classlist. Depending 67197 # on exact jvm configuration it could be possible anyway. 67198 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 67199 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 67200 else 67201 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 67202 fi 67203 67204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 67205 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 67206 if test "x$enable_generate_classlist" = "xyes"; then 67207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67208 $as_echo "yes, forced" >&6; } 67209 ENABLE_GENERATE_CLASSLIST="true" 67210 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 67211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&5 67212 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 67213 fi 67214 elif test "x$enable_generate_classlist" = "xno"; then 67215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67216 $as_echo "no, forced" >&6; } 67217 ENABLE_GENERATE_CLASSLIST="false" 67218 elif test "x$enable_generate_classlist" = "x"; then 67219 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 67220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67221 $as_echo "yes" >&6; } 67222 ENABLE_GENERATE_CLASSLIST="true" 67223 else 67224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67225 $as_echo "no" >&6; } 67226 ENABLE_GENERATE_CLASSLIST="false" 67227 fi 67228 else 67229 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 67230 fi 67231 67232 67233 67234 67235 ############################################################################### 67236 # 67237 # Configure parts of the build that only affect the build performance, 67238 # not the result. 67239 # 67240 ############################################################################### 67241 67242 67243 # How many cores do we have on this build system? 67244 67245 # Check whether --with-num-cores was given. 67246 if test "${with_num_cores+set}" = set; then : 67247 withval=$with_num_cores; 67248 fi 67249 67250 if test "x$with_num_cores" = x; then 67251 # The number of cores were not specified, try to probe them. 67252 67253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 67254 $as_echo_n "checking for number of cores... " >&6; } 67255 NUM_CORES=1 67256 FOUND_CORES=no 67257 67258 if test -f /proc/cpuinfo; then 67259 # Looks like a Linux (or cygwin) system 67260 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 67261 FOUND_CORES=yes 67262 elif test -x /usr/sbin/psrinfo; then 67263 # Looks like a Solaris system 67264 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 67265 FOUND_CORES=yes 67266 elif test -x /usr/sbin/sysctl; then 67267 # Looks like a MacOSX system 67268 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 67269 FOUND_CORES=yes 67270 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 67271 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 67272 FOUND_CORES=yes 67273 elif test -n "$NUMBER_OF_PROCESSORS"; then 67274 # On windows, look in the env 67275 NUM_CORES=$NUMBER_OF_PROCESSORS 67276 FOUND_CORES=yes 67277 fi 67278 67279 if test "x$FOUND_CORES" = xyes; then 67280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 67281 $as_echo "$NUM_CORES" >&6; } 67282 else 67283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 67284 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 67285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 67286 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 67287 fi 67288 67289 else 67290 NUM_CORES=$with_num_cores 67291 fi 67292 67293 67294 67295 # How much memory do we have on this build system? 67296 67297 # Check whether --with-memory-size was given. 67298 if test "${with_memory_size+set}" = set; then : 67299 withval=$with_memory_size; 67300 fi 67301 67302 if test "x$with_memory_size" = x; then 67303 # The memory size was not specified, try to probe it. 67304 67305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 67306 $as_echo_n "checking for memory size... " >&6; } 67307 # Default to 1024 MB 67308 MEMORY_SIZE=1024 67309 FOUND_MEM=no 67310 67311 if test -f /proc/meminfo; then 67312 # Looks like a Linux (or cygwin) system 67313 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 67314 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 67315 FOUND_MEM=yes 67316 elif test -x /usr/sbin/prtconf; then 67317 # Looks like a Solaris or AIX system 67318 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 67319 FOUND_MEM=yes 67320 elif test -x /usr/sbin/sysctl; then 67321 # Looks like a MacOSX system 67322 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 67323 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67324 FOUND_MEM=yes 67325 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 67326 # Windows, but without cygwin 67327 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 67328 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67329 FOUND_MEM=yes 67330 fi 67331 67332 if test "x$FOUND_MEM" = xyes; then 67333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 67334 $as_echo "$MEMORY_SIZE MB" >&6; } 67335 else 67336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 67337 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 67338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 67339 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 67340 fi 67341 67342 else 67343 MEMORY_SIZE=$with_memory_size 67344 fi 67345 67346 67347 67348 # Provide a decent default number of parallel jobs for make depending on 67349 # number of cores, amount of memory and machine architecture. 67350 67351 # Check whether --with-jobs was given. 67352 if test "${with_jobs+set}" = set; then : 67353 withval=$with_jobs; 67354 fi 67355 67356 if test "x$with_jobs" = x; then 67357 # Number of jobs was not specified, calculate. 67358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 67359 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 67360 # Approximate memory in GB. 67361 memory_gb=`expr $MEMORY_SIZE / 1024` 67362 # Pick the lowest of memory in gb and number of cores. 67363 if test "$memory_gb" -lt "$NUM_CORES"; then 67364 JOBS="$memory_gb" 67365 else 67366 JOBS="$NUM_CORES" 67367 fi 67368 if test "$JOBS" -eq "0"; then 67369 JOBS=1 67370 fi 67371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 67372 $as_echo "$JOBS" >&6; } 67373 else 67374 JOBS=$with_jobs 67375 fi 67376 67377 67378 67379 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 67380 67381 # Check whether --with-test-jobs was given. 67382 if test "${with_test_jobs+set}" = set; then : 67383 withval=$with_test_jobs; 67384 fi 67385 67386 if test "x$with_test_jobs" = x; then 67387 TEST_JOBS=0 67388 else 67389 TEST_JOBS=$with_test_jobs 67390 fi 67391 67392 67393 67394 # Setup arguments for the boot jdk (after cores and memory have been setup) 67395 67396 ############################################################################## 67397 # 67398 # Specify jvm options for anything that is run with the Boot JDK. 67399 # Not all JVM:s accept the same arguments on the command line. 67400 # 67401 67402 # Check whether --with-boot-jdk-jvmargs was given. 67403 if test "${with_boot_jdk_jvmargs+set}" = set; then : 67404 withval=$with_boot_jdk_jvmargs; 67405 fi 67406 67407 67408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 67409 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 67410 67411 # Force en-US environment 67412 67413 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 67414 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 67415 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 67416 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67417 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67418 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67419 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 67420 JVM_ARG_OK=true 67421 else 67422 $ECHO "Arg failed:" >&5 67423 $ECHO "$OUTPUT" >&5 67424 JVM_ARG_OK=false 67425 fi 67426 67427 67428 if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then 67429 # Use our own CDS archive 67430 67431 $ECHO "Check if jvm arg is ok: $boot_jdk_cds_args -Xshare:auto" >&5 67432 $ECHO "Command: $JAVA $boot_jdk_cds_args -Xshare:auto -version" >&5 67433 OUTPUT=`$JAVA $boot_jdk_cds_args -Xshare:auto -version 2>&1` 67434 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67435 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67436 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67437 boot_jdk_jvmargs="$boot_jdk_jvmargs $boot_jdk_cds_args -Xshare:auto" 67438 JVM_ARG_OK=true 67439 else 67440 $ECHO "Arg failed:" >&5 67441 $ECHO "$OUTPUT" >&5 67442 JVM_ARG_OK=false 67443 fi 67444 67445 else 67446 # Otherwise optimistically use the system-wide one, if one is present 67447 67448 $ECHO "Check if jvm arg is ok: -Xshare:auto" >&5 67449 $ECHO "Command: $JAVA -Xshare:auto -version" >&5 67450 OUTPUT=`$JAVA -Xshare:auto -version 2>&1` 67451 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67452 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67453 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67454 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xshare:auto" 67455 JVM_ARG_OK=true 67456 else 67457 $ECHO "Arg failed:" >&5 67458 $ECHO "$OUTPUT" >&5 67459 JVM_ARG_OK=false 67460 fi 67461 67462 fi 67463 67464 # Apply user provided options. 67465 67466 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 67467 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 67468 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 67469 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67470 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67471 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67472 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 67473 JVM_ARG_OK=true 67474 else 67475 $ECHO "Arg failed:" >&5 67476 $ECHO "$OUTPUT" >&5 67477 JVM_ARG_OK=false 67478 fi 67479 67480 67481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 67482 $as_echo "$boot_jdk_jvmargs" >&6; } 67483 67484 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 67485 JAVA_FLAGS=$boot_jdk_jvmargs 67486 67487 67488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 67489 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 67490 67491 # Starting amount of heap memory. 67492 67493 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 67494 $ECHO "Command: $JAVA -Xms64M -version" >&5 67495 OUTPUT=`$JAVA -Xms64M -version 2>&1` 67496 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67497 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67498 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67499 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 67500 JVM_ARG_OK=true 67501 else 67502 $ECHO "Arg failed:" >&5 67503 $ECHO "$OUTPUT" >&5 67504 JVM_ARG_OK=false 67505 fi 67506 67507 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 67508 67509 # Maximum amount of heap memory and stack size. 67510 JVM_HEAP_LIMIT_32="1024" 67511 # Running a 64 bit JVM allows for and requires a bigger heap 67512 JVM_HEAP_LIMIT_64="1600" 67513 STACK_SIZE_32=768 67514 STACK_SIZE_64=1536 67515 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 67516 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 67517 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 67518 fi 67519 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 67520 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 67521 fi 67522 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 67523 JVM_HEAP_LIMIT_32=512 67524 JVM_HEAP_LIMIT_64=512 67525 fi 67526 67527 if test "x$BOOT_JDK_BITS" = "x32"; then 67528 STACK_SIZE=$STACK_SIZE_32 67529 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 67530 else 67531 STACK_SIZE=$STACK_SIZE_64 67532 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 67533 fi 67534 67535 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 67536 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 67537 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 67538 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67539 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67540 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67541 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 67542 JVM_ARG_OK=true 67543 else 67544 $ECHO "Arg failed:" >&5 67545 $ECHO "$OUTPUT" >&5 67546 JVM_ARG_OK=false 67547 fi 67548 67549 67550 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 67551 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 67552 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 67553 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67554 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67555 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67556 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 67557 JVM_ARG_OK=true 67558 else 67559 $ECHO "Arg failed:" >&5 67560 $ECHO "$OUTPUT" >&5 67561 JVM_ARG_OK=false 67562 fi 67563 67564 67565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 67566 $as_echo "$boot_jdk_jvmargs_big" >&6; } 67567 67568 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 67569 67570 67571 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 67572 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 67573 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 67574 else 67575 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 67576 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 67577 fi 67578 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 67579 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 67580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 67581 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 67582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 67583 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 67584 67585 67586 # By default, the main javac compilations use big 67587 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 67588 67589 67590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 67591 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 67592 67593 # Use serial gc for small short lived tools if possible 67594 67595 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 67596 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 67597 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 67598 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67599 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67600 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67601 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 67602 JVM_ARG_OK=true 67603 else 67604 $ECHO "Arg failed:" >&5 67605 $ECHO "$OUTPUT" >&5 67606 JVM_ARG_OK=false 67607 fi 67608 67609 67610 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 67611 $ECHO "Command: $JAVA -Xms32M -version" >&5 67612 OUTPUT=`$JAVA -Xms32M -version 2>&1` 67613 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67614 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67615 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67616 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 67617 JVM_ARG_OK=true 67618 else 67619 $ECHO "Arg failed:" >&5 67620 $ECHO "$OUTPUT" >&5 67621 JVM_ARG_OK=false 67622 fi 67623 67624 67625 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 67626 $ECHO "Command: $JAVA -Xmx512M -version" >&5 67627 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 67628 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67629 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67630 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67631 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 67632 JVM_ARG_OK=true 67633 else 67634 $ECHO "Arg failed:" >&5 67635 $ECHO "$OUTPUT" >&5 67636 JVM_ARG_OK=false 67637 fi 67638 67639 67640 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 67641 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 67642 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 67643 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67644 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67645 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67646 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 67647 JVM_ARG_OK=true 67648 else 67649 $ECHO "Arg failed:" >&5 67650 $ECHO "$OUTPUT" >&5 67651 JVM_ARG_OK=false 67652 fi 67653 67654 67655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 67656 $as_echo "$boot_jdk_jvmargs_small" >&6; } 67657 67658 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 67659 67660 67661 JAVA_TOOL_FLAGS_SMALL="" 67662 for f in $JAVA_FLAGS_SMALL; do 67663 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 67664 done 67665 67666 67667 67668 # Setup smart javac (after cores and memory have been setup) 67669 67670 67671 # Check whether --with-sjavac-server-java was given. 67672 if test "${with_sjavac_server_java+set}" = set; then : 67673 withval=$with_sjavac_server_java; 67674 fi 67675 67676 67677 if test "x$with_sjavac_server_java" != x; then 67678 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 67679 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 67680 if test "x$FOUND_VERSION" = x; then 67681 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 67682 fi 67683 else 67684 SJAVAC_SERVER_JAVA="$JAVA" 67685 fi 67686 67687 67688 if test "$MEMORY_SIZE" -gt "3000"; then 67689 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 67690 JVM_64BIT=true 67691 fi 67692 fi 67693 67694 MX_VALUE=`expr $MEMORY_SIZE / 2` 67695 if test "$JVM_64BIT" = true; then 67696 # Set ms lower than mx since more than one instance of the server might 67697 # get launched at the same time before they figure out which instance won. 67698 MS_VALUE=512 67699 if test "$MX_VALUE" -gt "2048"; then 67700 MX_VALUE=2048 67701 fi 67702 else 67703 MS_VALUE=256 67704 if test "$MX_VALUE" -gt "1500"; then 67705 MX_VALUE=1500 67706 fi 67707 fi 67708 if test "$MX_VALUE" -lt "512"; then 67709 MX_VALUE=512 67710 fi 67711 67712 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 67713 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 67714 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 67715 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67716 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67717 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67718 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 67719 JVM_ARG_OK=true 67720 else 67721 $ECHO "Arg failed:" >&5 67722 $ECHO "$OUTPUT" >&5 67723 JVM_ARG_OK=false 67724 fi 67725 67726 67727 67728 # Check whether --enable-sjavac was given. 67729 if test "${enable_sjavac+set}" = set; then : 67730 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 67731 else 67732 ENABLE_SJAVAC="no" 67733 fi 67734 67735 if test "x$JVM_ARG_OK" = "xfalse"; then 67736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 67737 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 67738 ENABLE_SJAVAC="no" 67739 fi 67740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 67741 $as_echo_n "checking whether to use sjavac... " >&6; } 67742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 67743 $as_echo "$ENABLE_SJAVAC" >&6; } 67744 67745 67746 # Check whether --enable-javac-server was given. 67747 if test "${enable_javac_server+set}" = set; then : 67748 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 67749 else 67750 ENABLE_JAVAC_SERVER="yes" 67751 fi 67752 67753 if test "x$JVM_ARG_OK" = "xfalse"; then 67754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 67755 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 67756 ENABLE_JAVAC_SERVER="no" 67757 fi 67758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 67759 $as_echo_n "checking whether to use javac server... " >&6; } 67760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 67761 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 67762 67763 67764 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 67765 # When using a server javac, the small client instances do not need much 67766 # resources. 67767 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 67768 fi 67769 67770 67771 # Setup use of icecc if requested 67772 67773 # Check whether --enable-icecc was given. 67774 if test "${enable_icecc+set}" = set; then : 67775 enableval=$enable_icecc; 67776 fi 67777 67778 67779 if test "x${enable_icecc}" = "xyes"; then 67780 67781 67782 67783 # Publish this variable in the help. 67784 67785 67786 if [ -z "${ICECC_CMD+x}" ]; then 67787 # The variable is not set by user, try to locate tool using the code snippet 67788 for ac_prog in icecc 67789 do 67790 # Extract the first word of "$ac_prog", so it can be a program name with args. 67791 set dummy $ac_prog; ac_word=$2 67792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67793 $as_echo_n "checking for $ac_word... " >&6; } 67794 if ${ac_cv_path_ICECC_CMD+:} false; then : 67795 $as_echo_n "(cached) " >&6 67796 else 67797 case $ICECC_CMD in 67798 [\\/]* | ?:[\\/]*) 67799 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67800 ;; 67801 *) 67802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67803 for as_dir in $PATH 67804 do 67805 IFS=$as_save_IFS 67806 test -z "$as_dir" && as_dir=. 67807 for ac_exec_ext in '' $ac_executable_extensions; do 67808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67809 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67811 break 2 67812 fi 67813 done 67814 done 67815 IFS=$as_save_IFS 67816 67817 ;; 67818 esac 67819 fi 67820 ICECC_CMD=$ac_cv_path_ICECC_CMD 67821 if test -n "$ICECC_CMD"; then 67822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67823 $as_echo "$ICECC_CMD" >&6; } 67824 else 67825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67826 $as_echo "no" >&6; } 67827 fi 67828 67829 67830 test -n "$ICECC_CMD" && break 67831 done 67832 67833 else 67834 # The variable is set, but is it from the command line or the environment? 67835 67836 # Try to remove the string !ICECC_CMD! from our list. 67837 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 67838 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67839 # If it failed, the variable was not from the command line. Ignore it, 67840 # but warn the user (except for BASH, which is always set by the calling BASH). 67841 if test "xICECC_CMD" != xBASH; then 67842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 67843 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 67844 fi 67845 # Try to locate tool using the code snippet 67846 for ac_prog in icecc 67847 do 67848 # Extract the first word of "$ac_prog", so it can be a program name with args. 67849 set dummy $ac_prog; ac_word=$2 67850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67851 $as_echo_n "checking for $ac_word... " >&6; } 67852 if ${ac_cv_path_ICECC_CMD+:} false; then : 67853 $as_echo_n "(cached) " >&6 67854 else 67855 case $ICECC_CMD in 67856 [\\/]* | ?:[\\/]*) 67857 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67858 ;; 67859 *) 67860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67861 for as_dir in $PATH 67862 do 67863 IFS=$as_save_IFS 67864 test -z "$as_dir" && as_dir=. 67865 for ac_exec_ext in '' $ac_executable_extensions; do 67866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67867 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67869 break 2 67870 fi 67871 done 67872 done 67873 IFS=$as_save_IFS 67874 67875 ;; 67876 esac 67877 fi 67878 ICECC_CMD=$ac_cv_path_ICECC_CMD 67879 if test -n "$ICECC_CMD"; then 67880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67881 $as_echo "$ICECC_CMD" >&6; } 67882 else 67883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67884 $as_echo "no" >&6; } 67885 fi 67886 67887 67888 test -n "$ICECC_CMD" && break 67889 done 67890 67891 else 67892 # If it succeeded, then it was overridden by the user. We will use it 67893 # for the tool. 67894 67895 # First remove it from the list of overridden variables, so we can test 67896 # for unknown variables in the end. 67897 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67898 67899 # Check if we try to supply an empty value 67900 if test "x$ICECC_CMD" = x; then 67901 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 67902 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 67903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67904 $as_echo_n "checking for ICECC_CMD... " >&6; } 67905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67906 $as_echo "disabled" >&6; } 67907 else 67908 # Check if the provided tool contains a complete path. 67909 tool_specified="$ICECC_CMD" 67910 tool_basename="${tool_specified##*/}" 67911 if test "x$tool_basename" = "x$tool_specified"; then 67912 # A command without a complete path is provided, search $PATH. 67913 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 67914 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 67915 # Extract the first word of "$tool_basename", so it can be a program name with args. 67916 set dummy $tool_basename; ac_word=$2 67917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67918 $as_echo_n "checking for $ac_word... " >&6; } 67919 if ${ac_cv_path_ICECC_CMD+:} false; then : 67920 $as_echo_n "(cached) " >&6 67921 else 67922 case $ICECC_CMD in 67923 [\\/]* | ?:[\\/]*) 67924 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67925 ;; 67926 *) 67927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67928 for as_dir in $PATH 67929 do 67930 IFS=$as_save_IFS 67931 test -z "$as_dir" && as_dir=. 67932 for ac_exec_ext in '' $ac_executable_extensions; do 67933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67934 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67936 break 2 67937 fi 67938 done 67939 done 67940 IFS=$as_save_IFS 67941 67942 ;; 67943 esac 67944 fi 67945 ICECC_CMD=$ac_cv_path_ICECC_CMD 67946 if test -n "$ICECC_CMD"; then 67947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67948 $as_echo "$ICECC_CMD" >&6; } 67949 else 67950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67951 $as_echo "no" >&6; } 67952 fi 67953 67954 67955 if test "x$ICECC_CMD" = x; then 67956 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67957 fi 67958 else 67959 # Otherwise we believe it is a complete path. Use it as it is. 67960 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 67961 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 67962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67963 $as_echo_n "checking for ICECC_CMD... " >&6; } 67964 if test ! -x "$tool_specified"; then 67965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67966 $as_echo "not found" >&6; } 67967 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 67968 fi 67969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67970 $as_echo "$tool_specified" >&6; } 67971 fi 67972 fi 67973 fi 67974 67975 fi 67976 67977 67978 67979 if test "x$ICECC_CMD" = x; then 67980 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 67981 fi 67982 67983 67984 old_path="$PATH" 67985 67986 # Look for icecc-create-env in some known places 67987 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 67988 67989 67990 67991 # Publish this variable in the help. 67992 67993 67994 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 67995 # The variable is not set by user, try to locate tool using the code snippet 67996 for ac_prog in icecc-create-env 67997 do 67998 # Extract the first word of "$ac_prog", so it can be a program name with args. 67999 set dummy $ac_prog; ac_word=$2 68000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68001 $as_echo_n "checking for $ac_word... " >&6; } 68002 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68003 $as_echo_n "(cached) " >&6 68004 else 68005 case $ICECC_CREATE_ENV in 68006 [\\/]* | ?:[\\/]*) 68007 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68008 ;; 68009 *) 68010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68011 for as_dir in $PATH 68012 do 68013 IFS=$as_save_IFS 68014 test -z "$as_dir" && as_dir=. 68015 for ac_exec_ext in '' $ac_executable_extensions; do 68016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68017 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68019 break 2 68020 fi 68021 done 68022 done 68023 IFS=$as_save_IFS 68024 68025 ;; 68026 esac 68027 fi 68028 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68029 if test -n "$ICECC_CREATE_ENV"; then 68030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68031 $as_echo "$ICECC_CREATE_ENV" >&6; } 68032 else 68033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68034 $as_echo "no" >&6; } 68035 fi 68036 68037 68038 test -n "$ICECC_CREATE_ENV" && break 68039 done 68040 68041 else 68042 # The variable is set, but is it from the command line or the environment? 68043 68044 # Try to remove the string !ICECC_CREATE_ENV! from our list. 68045 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 68046 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68047 # If it failed, the variable was not from the command line. Ignore it, 68048 # but warn the user (except for BASH, which is always set by the calling BASH). 68049 if test "xICECC_CREATE_ENV" != xBASH; then 68050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 68051 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 68052 fi 68053 # Try to locate tool using the code snippet 68054 for ac_prog in icecc-create-env 68055 do 68056 # Extract the first word of "$ac_prog", so it can be a program name with args. 68057 set dummy $ac_prog; ac_word=$2 68058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68059 $as_echo_n "checking for $ac_word... " >&6; } 68060 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68061 $as_echo_n "(cached) " >&6 68062 else 68063 case $ICECC_CREATE_ENV in 68064 [\\/]* | ?:[\\/]*) 68065 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68066 ;; 68067 *) 68068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68069 for as_dir in $PATH 68070 do 68071 IFS=$as_save_IFS 68072 test -z "$as_dir" && as_dir=. 68073 for ac_exec_ext in '' $ac_executable_extensions; do 68074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68075 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68077 break 2 68078 fi 68079 done 68080 done 68081 IFS=$as_save_IFS 68082 68083 ;; 68084 esac 68085 fi 68086 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68087 if test -n "$ICECC_CREATE_ENV"; then 68088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68089 $as_echo "$ICECC_CREATE_ENV" >&6; } 68090 else 68091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68092 $as_echo "no" >&6; } 68093 fi 68094 68095 68096 test -n "$ICECC_CREATE_ENV" && break 68097 done 68098 68099 else 68100 # If it succeeded, then it was overridden by the user. We will use it 68101 # for the tool. 68102 68103 # First remove it from the list of overridden variables, so we can test 68104 # for unknown variables in the end. 68105 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68106 68107 # Check if we try to supply an empty value 68108 if test "x$ICECC_CREATE_ENV" = x; then 68109 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 68110 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 68111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68112 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68114 $as_echo "disabled" >&6; } 68115 else 68116 # Check if the provided tool contains a complete path. 68117 tool_specified="$ICECC_CREATE_ENV" 68118 tool_basename="${tool_specified##*/}" 68119 if test "x$tool_basename" = "x$tool_specified"; then 68120 # A command without a complete path is provided, search $PATH. 68121 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 68122 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 68123 # Extract the first word of "$tool_basename", so it can be a program name with args. 68124 set dummy $tool_basename; ac_word=$2 68125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68126 $as_echo_n "checking for $ac_word... " >&6; } 68127 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68128 $as_echo_n "(cached) " >&6 68129 else 68130 case $ICECC_CREATE_ENV in 68131 [\\/]* | ?:[\\/]*) 68132 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68133 ;; 68134 *) 68135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68136 for as_dir in $PATH 68137 do 68138 IFS=$as_save_IFS 68139 test -z "$as_dir" && as_dir=. 68140 for ac_exec_ext in '' $ac_executable_extensions; do 68141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68142 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68144 break 2 68145 fi 68146 done 68147 done 68148 IFS=$as_save_IFS 68149 68150 ;; 68151 esac 68152 fi 68153 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68154 if test -n "$ICECC_CREATE_ENV"; then 68155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68156 $as_echo "$ICECC_CREATE_ENV" >&6; } 68157 else 68158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68159 $as_echo "no" >&6; } 68160 fi 68161 68162 68163 if test "x$ICECC_CREATE_ENV" = x; then 68164 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68165 fi 68166 else 68167 # Otherwise we believe it is a complete path. Use it as it is. 68168 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 68169 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 68170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68171 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68172 if test ! -x "$tool_specified"; then 68173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68174 $as_echo "not found" >&6; } 68175 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 68176 fi 68177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68178 $as_echo "$tool_specified" >&6; } 68179 fi 68180 fi 68181 fi 68182 68183 fi 68184 68185 68186 68187 if test "x$ICECC_CREATE_ENV" = x; then 68188 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 68189 fi 68190 68191 68192 # Use icecc-create-env to create a minimal compilation environment that can 68193 # be sent to the other hosts in the icecream cluster. 68194 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 68195 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 68196 # Older versions of icecc does not have the --gcc parameter 68197 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 68198 icecc_gcc_arg="--gcc" 68199 fi 68200 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 68201 68202 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68203 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 68204 ${icecc_create_env_log} 2>&1 ) 68205 if test "$?" != "0"; then 68206 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68207 $as_echo "$as_me: icecc-create-env output:" >&6;} 68208 cat \ 68209 ${icecc_create_env_log} 68210 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68211 fi 68212 68213 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 68214 # For clang, the icecc compilerwrapper is needed. It usually resides next 68215 # to icecc-create-env. 68216 68217 68218 68219 # Publish this variable in the help. 68220 68221 68222 if [ -z "${ICECC_WRAPPER+x}" ]; then 68223 # The variable is not set by user, try to locate tool using the code snippet 68224 for ac_prog in compilerwrapper 68225 do 68226 # Extract the first word of "$ac_prog", so it can be a program name with args. 68227 set dummy $ac_prog; ac_word=$2 68228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68229 $as_echo_n "checking for $ac_word... " >&6; } 68230 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68231 $as_echo_n "(cached) " >&6 68232 else 68233 case $ICECC_WRAPPER in 68234 [\\/]* | ?:[\\/]*) 68235 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68236 ;; 68237 *) 68238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68239 for as_dir in $PATH 68240 do 68241 IFS=$as_save_IFS 68242 test -z "$as_dir" && as_dir=. 68243 for ac_exec_ext in '' $ac_executable_extensions; do 68244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68245 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68247 break 2 68248 fi 68249 done 68250 done 68251 IFS=$as_save_IFS 68252 68253 ;; 68254 esac 68255 fi 68256 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68257 if test -n "$ICECC_WRAPPER"; then 68258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68259 $as_echo "$ICECC_WRAPPER" >&6; } 68260 else 68261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68262 $as_echo "no" >&6; } 68263 fi 68264 68265 68266 test -n "$ICECC_WRAPPER" && break 68267 done 68268 68269 else 68270 # The variable is set, but is it from the command line or the environment? 68271 68272 # Try to remove the string !ICECC_WRAPPER! from our list. 68273 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 68274 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68275 # If it failed, the variable was not from the command line. Ignore it, 68276 # but warn the user (except for BASH, which is always set by the calling BASH). 68277 if test "xICECC_WRAPPER" != xBASH; then 68278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 68279 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 68280 fi 68281 # Try to locate tool using the code snippet 68282 for ac_prog in compilerwrapper 68283 do 68284 # Extract the first word of "$ac_prog", so it can be a program name with args. 68285 set dummy $ac_prog; ac_word=$2 68286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68287 $as_echo_n "checking for $ac_word... " >&6; } 68288 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68289 $as_echo_n "(cached) " >&6 68290 else 68291 case $ICECC_WRAPPER in 68292 [\\/]* | ?:[\\/]*) 68293 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68294 ;; 68295 *) 68296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68297 for as_dir in $PATH 68298 do 68299 IFS=$as_save_IFS 68300 test -z "$as_dir" && as_dir=. 68301 for ac_exec_ext in '' $ac_executable_extensions; do 68302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68303 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68305 break 2 68306 fi 68307 done 68308 done 68309 IFS=$as_save_IFS 68310 68311 ;; 68312 esac 68313 fi 68314 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68315 if test -n "$ICECC_WRAPPER"; then 68316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68317 $as_echo "$ICECC_WRAPPER" >&6; } 68318 else 68319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68320 $as_echo "no" >&6; } 68321 fi 68322 68323 68324 test -n "$ICECC_WRAPPER" && break 68325 done 68326 68327 else 68328 # If it succeeded, then it was overridden by the user. We will use it 68329 # for the tool. 68330 68331 # First remove it from the list of overridden variables, so we can test 68332 # for unknown variables in the end. 68333 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68334 68335 # Check if we try to supply an empty value 68336 if test "x$ICECC_WRAPPER" = x; then 68337 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 68338 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 68339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68340 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68342 $as_echo "disabled" >&6; } 68343 else 68344 # Check if the provided tool contains a complete path. 68345 tool_specified="$ICECC_WRAPPER" 68346 tool_basename="${tool_specified##*/}" 68347 if test "x$tool_basename" = "x$tool_specified"; then 68348 # A command without a complete path is provided, search $PATH. 68349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 68350 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 68351 # Extract the first word of "$tool_basename", so it can be a program name with args. 68352 set dummy $tool_basename; ac_word=$2 68353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68354 $as_echo_n "checking for $ac_word... " >&6; } 68355 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68356 $as_echo_n "(cached) " >&6 68357 else 68358 case $ICECC_WRAPPER in 68359 [\\/]* | ?:[\\/]*) 68360 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68361 ;; 68362 *) 68363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68364 for as_dir in $PATH 68365 do 68366 IFS=$as_save_IFS 68367 test -z "$as_dir" && as_dir=. 68368 for ac_exec_ext in '' $ac_executable_extensions; do 68369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68370 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68372 break 2 68373 fi 68374 done 68375 done 68376 IFS=$as_save_IFS 68377 68378 ;; 68379 esac 68380 fi 68381 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68382 if test -n "$ICECC_WRAPPER"; then 68383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68384 $as_echo "$ICECC_WRAPPER" >&6; } 68385 else 68386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68387 $as_echo "no" >&6; } 68388 fi 68389 68390 68391 if test "x$ICECC_WRAPPER" = x; then 68392 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68393 fi 68394 else 68395 # Otherwise we believe it is a complete path. Use it as it is. 68396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 68397 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 68398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68399 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68400 if test ! -x "$tool_specified"; then 68401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68402 $as_echo "not found" >&6; } 68403 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 68404 fi 68405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68406 $as_echo "$tool_specified" >&6; } 68407 fi 68408 fi 68409 fi 68410 68411 fi 68412 68413 68414 68415 if test "x$ICECC_WRAPPER" = x; then 68416 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 68417 fi 68418 68419 68420 68421 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68422 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 68423 if test "$?" != "0"; then 68424 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68425 $as_echo "$as_me: icecc-create-env output:" >&6;} 68426 cat ${icecc_create_env_log} 68427 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68428 fi 68429 68430 else 68431 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 68432 fi 68433 PATH="$old_path" 68434 # The bundle with the compiler gets a name based on checksums. Parse log file 68435 # to find it. 68436 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 68437 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68438 if test ! -f ${ICECC_ENV_BUNDLE}; then 68439 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68440 fi 68441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 68442 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 68443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68444 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68445 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 68446 68447 if test "x${COMPILE_TYPE}" = "xcross"; then 68448 # If cross compiling, create a separate env package for the build compiler 68449 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 68450 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 68451 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 68452 68453 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68454 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 68455 ${icecc_create_env_log_build} 2>&1 ) 68456 if test "$?" != "0"; then 68457 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68458 $as_echo "$as_me: icecc-create-env output:" >&6;} 68459 cat \ 68460 ${icecc_create_env_log_build} 68461 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68462 fi 68463 68464 elif test "x${BUILD_CC##*/}" = "xclang"; then 68465 68466 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68467 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 68468 if test "$?" != "0"; then 68469 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68470 $as_echo "$as_me: icecc-create-env output:" >&6;} 68471 cat ${icecc_create_env_log_build} 68472 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68473 fi 68474 68475 else 68476 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 68477 fi 68478 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 68479 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68480 if test ! -f ${ICECC_ENV_BUNDLE}; then 68481 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68482 fi 68483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 68484 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 68485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68486 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68487 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 68488 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 68489 else 68490 BUILD_ICECC="${ICECC}" 68491 fi 68492 68493 68494 fi 68495 68496 68497 # Can the C/C++ compiler use precompiled headers? 68498 68499 68500 ############################################################################### 68501 # 68502 # Can the C/C++ compiler use precompiled headers? 68503 # 68504 # Check whether --enable-precompiled-headers was given. 68505 if test "${enable_precompiled_headers+set}" = set; then : 68506 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 68507 else 68508 ENABLE_PRECOMPH=yes 68509 fi 68510 68511 68512 USE_PRECOMPILED_HEADER=true 68513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 68514 $as_echo_n "checking If precompiled header is enabled... " >&6; } 68515 if test "x$ENABLE_PRECOMPH" = xno; then 68516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 68517 $as_echo "no, forced" >&6; } 68518 USE_PRECOMPILED_HEADER=false 68519 elif test "x$ICECC" != "x"; then 68520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 68521 $as_echo "no, does not work effectively with icecc" >&6; } 68522 USE_PRECOMPILED_HEADER=false 68523 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 68524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 68525 $as_echo "no, does not work with Solaris Studio" >&6; } 68526 USE_PRECOMPILED_HEADER=false 68527 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 68528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 68529 $as_echo "no, does not work with xlc" >&6; } 68530 USE_PRECOMPILED_HEADER=false 68531 else 68532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68533 $as_echo "yes" >&6; } 68534 fi 68535 68536 if test "x$ENABLE_PRECOMPH" = xyes; then 68537 # Check that the compiler actually supports precomp headers. 68538 if test "x$TOOLCHAIN_TYPE" = xgcc; then 68539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 68540 $as_echo_n "checking that precompiled headers work... " >&6; } 68541 echo "int alfa();" > conftest.h 68542 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 68543 if test ! -f conftest.hpp.gch; then 68544 USE_PRECOMPILED_HEADER=false 68545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68546 $as_echo "no" >&6; } 68547 else 68548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68549 $as_echo "yes" >&6; } 68550 fi 68551 $RM conftest.h conftest.hpp.gch 68552 fi 68553 fi 68554 68555 68556 68557 68558 # Setup use of ccache, if available 68559 68560 # Check whether --enable-ccache was given. 68561 if test "${enable_ccache+set}" = set; then : 68562 enableval=$enable_ccache; 68563 fi 68564 68565 68566 CCACHE_STATUS= 68567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 68568 $as_echo_n "checking is ccache enabled... " >&6; } 68569 if test "x$enable_ccache" = xyes; then 68570 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 68571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68572 $as_echo "yes" >&6; } 68573 OLD_PATH="$PATH" 68574 if test "x$TOOLCHAIN_PATH" != x; then 68575 PATH=$TOOLCHAIN_PATH:$PATH 68576 fi 68577 68578 68579 68580 # Publish this variable in the help. 68581 68582 68583 if [ -z "${CCACHE+x}" ]; then 68584 # The variable is not set by user, try to locate tool using the code snippet 68585 for ac_prog in ccache 68586 do 68587 # Extract the first word of "$ac_prog", so it can be a program name with args. 68588 set dummy $ac_prog; ac_word=$2 68589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68590 $as_echo_n "checking for $ac_word... " >&6; } 68591 if ${ac_cv_path_CCACHE+:} false; then : 68592 $as_echo_n "(cached) " >&6 68593 else 68594 case $CCACHE in 68595 [\\/]* | ?:[\\/]*) 68596 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68597 ;; 68598 *) 68599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68600 for as_dir in $PATH 68601 do 68602 IFS=$as_save_IFS 68603 test -z "$as_dir" && as_dir=. 68604 for ac_exec_ext in '' $ac_executable_extensions; do 68605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68606 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68608 break 2 68609 fi 68610 done 68611 done 68612 IFS=$as_save_IFS 68613 68614 ;; 68615 esac 68616 fi 68617 CCACHE=$ac_cv_path_CCACHE 68618 if test -n "$CCACHE"; then 68619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68620 $as_echo "$CCACHE" >&6; } 68621 else 68622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68623 $as_echo "no" >&6; } 68624 fi 68625 68626 68627 test -n "$CCACHE" && break 68628 done 68629 68630 else 68631 # The variable is set, but is it from the command line or the environment? 68632 68633 # Try to remove the string !CCACHE! from our list. 68634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 68635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68636 # If it failed, the variable was not from the command line. Ignore it, 68637 # but warn the user (except for BASH, which is always set by the calling BASH). 68638 if test "xCCACHE" != xBASH; then 68639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 68640 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 68641 fi 68642 # Try to locate tool using the code snippet 68643 for ac_prog in ccache 68644 do 68645 # Extract the first word of "$ac_prog", so it can be a program name with args. 68646 set dummy $ac_prog; ac_word=$2 68647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68648 $as_echo_n "checking for $ac_word... " >&6; } 68649 if ${ac_cv_path_CCACHE+:} false; then : 68650 $as_echo_n "(cached) " >&6 68651 else 68652 case $CCACHE in 68653 [\\/]* | ?:[\\/]*) 68654 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68655 ;; 68656 *) 68657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68658 for as_dir in $PATH 68659 do 68660 IFS=$as_save_IFS 68661 test -z "$as_dir" && as_dir=. 68662 for ac_exec_ext in '' $ac_executable_extensions; do 68663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68664 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68666 break 2 68667 fi 68668 done 68669 done 68670 IFS=$as_save_IFS 68671 68672 ;; 68673 esac 68674 fi 68675 CCACHE=$ac_cv_path_CCACHE 68676 if test -n "$CCACHE"; then 68677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68678 $as_echo "$CCACHE" >&6; } 68679 else 68680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68681 $as_echo "no" >&6; } 68682 fi 68683 68684 68685 test -n "$CCACHE" && break 68686 done 68687 68688 else 68689 # If it succeeded, then it was overridden by the user. We will use it 68690 # for the tool. 68691 68692 # First remove it from the list of overridden variables, so we can test 68693 # for unknown variables in the end. 68694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68695 68696 # Check if we try to supply an empty value 68697 if test "x$CCACHE" = x; then 68698 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 68699 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 68700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68701 $as_echo_n "checking for CCACHE... " >&6; } 68702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68703 $as_echo "disabled" >&6; } 68704 else 68705 # Check if the provided tool contains a complete path. 68706 tool_specified="$CCACHE" 68707 tool_basename="${tool_specified##*/}" 68708 if test "x$tool_basename" = "x$tool_specified"; then 68709 # A command without a complete path is provided, search $PATH. 68710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 68711 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 68712 # Extract the first word of "$tool_basename", so it can be a program name with args. 68713 set dummy $tool_basename; ac_word=$2 68714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68715 $as_echo_n "checking for $ac_word... " >&6; } 68716 if ${ac_cv_path_CCACHE+:} false; then : 68717 $as_echo_n "(cached) " >&6 68718 else 68719 case $CCACHE in 68720 [\\/]* | ?:[\\/]*) 68721 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68722 ;; 68723 *) 68724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68725 for as_dir in $PATH 68726 do 68727 IFS=$as_save_IFS 68728 test -z "$as_dir" && as_dir=. 68729 for ac_exec_ext in '' $ac_executable_extensions; do 68730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68731 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68733 break 2 68734 fi 68735 done 68736 done 68737 IFS=$as_save_IFS 68738 68739 ;; 68740 esac 68741 fi 68742 CCACHE=$ac_cv_path_CCACHE 68743 if test -n "$CCACHE"; then 68744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68745 $as_echo "$CCACHE" >&6; } 68746 else 68747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68748 $as_echo "no" >&6; } 68749 fi 68750 68751 68752 if test "x$CCACHE" = x; then 68753 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68754 fi 68755 else 68756 # Otherwise we believe it is a complete path. Use it as it is. 68757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 68758 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 68759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68760 $as_echo_n "checking for CCACHE... " >&6; } 68761 if test ! -x "$tool_specified"; then 68762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68763 $as_echo "not found" >&6; } 68764 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 68765 fi 68766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68767 $as_echo "$tool_specified" >&6; } 68768 fi 68769 fi 68770 fi 68771 68772 fi 68773 68774 68775 68776 if test "x$CCACHE" = x; then 68777 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 68778 fi 68779 68780 68781 PATH="$OLD_PATH" 68782 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 68783 CCACHE_STATUS="Active ($CCACHE_VERSION)" 68784 else 68785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68786 $as_echo "no" >&6; } 68787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 68788 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 68789 fi 68790 elif test "x$enable_ccache" = xno; then 68791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 68792 $as_echo "no, explicitly disabled" >&6; } 68793 CCACHE_STATUS="Disabled" 68794 elif test "x$enable_ccache" = x; then 68795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68796 $as_echo "no" >&6; } 68797 else 68798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 68799 $as_echo "unknown" >&6; } 68800 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 68801 fi 68802 68803 68804 68805 # Check whether --with-ccache-dir was given. 68806 if test "${with_ccache_dir+set}" = set; then : 68807 withval=$with_ccache_dir; 68808 fi 68809 68810 68811 if test "x$with_ccache_dir" != x; then 68812 # When using a non home ccache directory, assume the use is to share ccache files 68813 # with other users. Thus change the umask. 68814 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 68815 if test "x$CCACHE" = x; then 68816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 68817 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 68818 fi 68819 fi 68820 68821 if test "x$CCACHE" != x; then 68822 68823 if test "x$CCACHE" != x; then 68824 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 68825 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68826 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 68827 if test "x$HAS_BAD_CCACHE" != "x"; then 68828 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 68829 fi 68830 fi 68831 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 68832 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68833 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 68834 if test "x$HAS_BAD_CCACHE" != "x"; then 68835 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 68836 fi 68837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 68838 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 68839 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 68840 PUSHED_FLAGS="$CXXFLAGS" 68841 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 68842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68843 /* end confdefs.h. */ 68844 68845 int 68846 main () 68847 { 68848 68849 ; 68850 return 0; 68851 } 68852 _ACEOF 68853 if ac_fn_cxx_try_compile "$LINENO"; then : 68854 CC_KNOWS_CCACHE_TRICK=yes 68855 else 68856 CC_KNOWS_CCACHE_TRICK=no 68857 fi 68858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68859 CXXFLAGS="$PUSHED_FLAGS" 68860 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 68861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68862 $as_echo "yes" >&6; } 68863 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 68864 68865 CCACHE_SLOPPINESS=pch_defines,time_macros 68866 else 68867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68868 $as_echo "no" >&6; } 68869 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 68870 fi 68871 fi 68872 68873 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 68874 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 68875 68876 if test "x$SET_CCACHE_DIR" != x; then 68877 mkdir -p $CCACHE_DIR > /dev/null 2>&1 68878 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 68879 fi 68880 fi 68881 68882 fi 68883 68884 68885 ############################################################################### 68886 # 68887 # And now the finish... 68888 # 68889 ############################################################################### 68890 68891 # Check for some common pitfalls 68892 68893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 68894 file_to_test="$TOPDIR/LICENSE" 68895 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 68896 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 68897 fi 68898 fi 68899 68900 68901 # Did user specify any unknown variables? 68902 68903 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 68904 # Replace the separating ! with spaces before presenting for end user. 68905 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 68906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 68907 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 68908 fi 68909 68910 68911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 68912 $as_echo_n "checking if build directory is on local disk... " >&6; } 68913 68914 # df -l lists only local disks; if the given directory is not found then 68915 # a non-zero exit code is given 68916 if test "x$DF" = x; then 68917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 68918 # msys does not have df; use Windows "net use" instead. 68919 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 68920 if test "x$IS_NETWORK_DISK" = x; then 68921 OUTPUT_DIR_IS_LOCAL="yes" 68922 else 68923 OUTPUT_DIR_IS_LOCAL="no" 68924 fi 68925 else 68926 # No df here, say it's local 68927 OUTPUT_DIR_IS_LOCAL="yes" 68928 fi 68929 else 68930 # JDK-8189619 68931 # df on AIX does not understand -l. On modern AIXes it understands "-T local" which 68932 # is the same. On older AIXes we just continue to live with a "not local build" warning. 68933 if test "x$OPENJDK_TARGET_OS" = xaix; then 68934 DF_LOCAL_ONLY_OPTION='-T local' 68935 else 68936 DF_LOCAL_ONLY_OPTION='-l' 68937 fi 68938 if $DF $DF_LOCAL_ONLY_OPTION $OUTPUTDIR > /dev/null 2>&1; then 68939 OUTPUT_DIR_IS_LOCAL="yes" 68940 else 68941 OUTPUT_DIR_IS_LOCAL="no" 68942 fi 68943 fi 68944 68945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 68946 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 68947 68948 68949 68950 # Check if the user has any old-style ALT_ variables set. 68951 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 68952 68953 # Before generating output files, test if they exist. If they do, this is a reconfigure. 68954 # Since we can't properly handle the dependencies for this, warn the user about the situation 68955 if test -e $OUTPUTDIR/spec.gmk; then 68956 IS_RECONFIGURE=yes 68957 else 68958 IS_RECONFIGURE=no 68959 fi 68960 68961 68962 # At the end, call the custom hook. (Dummy macro if no custom sources available) 68963 68964 68965 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 68966 68967 # Keep feature lists sorted and free of duplicates 68968 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 68969 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 68970 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 68971 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 68972 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 68973 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 68974 68975 # Validate features 68976 for variant in $JVM_VARIANTS; do 68977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 68978 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 68979 features_var_name=JVM_FEATURES_$variant 68980 JVM_FEATURES_TO_TEST=${!features_var_name} 68981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 68982 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 68983 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 68984 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 68985 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 68986 if test "x$INVALID_FEATURES" != x; then 68987 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 68988 fi 68989 done 68990 68991 68992 # We're messing a bit with internal autoconf variables to put the config.status 68993 # in the output directory instead of the current directory. 68994 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 68995 68996 # Create the actual output files. Now the main work of configure is done. 68997 cat >confcache <<\_ACEOF 68998 # This file is a shell script that caches the results of configure 68999 # tests run on this system so they can be shared between configure 69000 # scripts and configure runs, see configure's option --config-cache. 69001 # It is not useful on other systems. If it contains results you don't 69002 # want to keep, you may remove or edit it. 69003 # 69004 # config.status only pays attention to the cache file if you give it 69005 # the --recheck option to rerun configure. 69006 # 69007 # `ac_cv_env_foo' variables (set or unset) will be overridden when 69008 # loading this file, other *unset* `ac_cv_foo' will be assigned the 69009 # following values. 69010 69011 _ACEOF 69012 69013 # The following way of writing the cache mishandles newlines in values, 69014 # but we know of no workaround that is simple, portable, and efficient. 69015 # So, we kill variables containing newlines. 69016 # Ultrix sh set writes to stderr and can't be redirected directly, 69017 # and sets the high bit in the cache file unless we assign to the vars. 69018 ( 69019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 69020 eval ac_val=\$$ac_var 69021 case $ac_val in #( 69022 *${as_nl}*) 69023 case $ac_var in #( 69024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 69025 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 69026 esac 69027 case $ac_var in #( 69028 _ | IFS | as_nl) ;; #( 69029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 69030 *) { eval $ac_var=; unset $ac_var;} ;; 69031 esac ;; 69032 esac 69033 done 69034 69035 (set) 2>&1 | 69036 case $as_nl`(ac_space=' '; set) 2>&1` in #( 69037 *${as_nl}ac_space=\ *) 69038 # `set' does not quote correctly, so add quotes: double-quote 69039 # substitution turns \\\\ into \\, and sed turns \\ into \. 69040 sed -n \ 69041 "s/'/'\\\\''/g; 69042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 69043 ;; #( 69044 *) 69045 # `set' quotes correctly as required by POSIX, so do not add quotes. 69046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 69047 ;; 69048 esac | 69049 sort 69050 ) | 69051 sed ' 69052 /^ac_cv_env_/b end 69053 t clear 69054 :clear 69055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 69056 t end 69057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 69058 :end' >>confcache 69059 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 69060 if test -w "$cache_file"; then 69061 if test "x$cache_file" != "x/dev/null"; then 69062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 69063 $as_echo "$as_me: updating cache $cache_file" >&6;} 69064 if test ! -f "$cache_file" || test -h "$cache_file"; then 69065 cat confcache >"$cache_file" 69066 else 69067 case $cache_file in #( 69068 */* | ?:*) 69069 mv -f confcache "$cache_file"$$ && 69070 mv -f "$cache_file"$$ "$cache_file" ;; #( 69071 *) 69072 mv -f confcache "$cache_file" ;; 69073 esac 69074 fi 69075 fi 69076 else 69077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 69078 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 69079 fi 69080 fi 69081 rm -f confcache 69082 69083 test "x$prefix" = xNONE && prefix=$ac_default_prefix 69084 # Let make expand exec_prefix. 69085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 69086 69087 # Transform confdefs.h into DEFS. 69088 # Protect against shell expansion while executing Makefile rules. 69089 # Protect against Makefile macro expansion. 69090 # 69091 # If the first sed substitution is executed (which looks for macros that 69092 # take arguments), then branch to the quote section. Otherwise, 69093 # look for a macro that doesn't take arguments. 69094 ac_script=' 69095 :mline 69096 /\\$/{ 69097 N 69098 s,\\\n,, 69099 b mline 69100 } 69101 t clear 69102 :clear 69103 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 69104 t quote 69105 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 69106 t quote 69107 b any 69108 :quote 69109 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 69110 s/\[/\\&/g 69111 s/\]/\\&/g 69112 s/\$/$$/g 69113 H 69114 :any 69115 ${ 69116 g 69117 s/^\n// 69118 s/\n/ /g 69119 p 69120 } 69121 ' 69122 DEFS=`sed -n "$ac_script" confdefs.h` 69123 69124 69125 ac_libobjs= 69126 ac_ltlibobjs= 69127 U= 69128 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 69129 # 1. Remove the extension, and $U if already installed. 69130 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 69131 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 69132 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 69133 # will be set to the directory where LIBOBJS objects are built. 69134 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 69135 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 69136 done 69137 LIBOBJS=$ac_libobjs 69138 69139 LTLIBOBJS=$ac_ltlibobjs 69140 69141 69142 69143 : "${CONFIG_STATUS=./config.status}" 69144 ac_write_fail=0 69145 ac_clean_files_save=$ac_clean_files 69146 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 69147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 69148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 69149 as_write_fail=0 69150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 69151 #! $SHELL 69152 # Generated by $as_me. 69153 # Run this file to recreate the current configuration. 69154 # Compiler output produced by configure, useful for debugging 69155 # configure, is in config.log if it exists. 69156 69157 debug=false 69158 ac_cs_recheck=false 69159 ac_cs_silent=false 69160 69161 SHELL=\${CONFIG_SHELL-$SHELL} 69162 export SHELL 69163 _ASEOF 69164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 69165 ## -------------------- ## 69166 ## M4sh Initialization. ## 69167 ## -------------------- ## 69168 69169 # Be more Bourne compatible 69170 DUALCASE=1; export DUALCASE # for MKS sh 69171 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 69172 emulate sh 69173 NULLCMD=: 69174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 69175 # is contrary to our usage. Disable this feature. 69176 alias -g '${1+"$@"}'='"$@"' 69177 setopt NO_GLOB_SUBST 69178 else 69179 case `(set -o) 2>/dev/null` in #( 69180 *posix*) : 69181 set -o posix ;; #( 69182 *) : 69183 ;; 69184 esac 69185 fi 69186 69187 69188 as_nl=' 69189 ' 69190 export as_nl 69191 # Printing a long string crashes Solaris 7 /usr/bin/printf. 69192 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 69193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 69194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 69195 # Prefer a ksh shell builtin over an external printf program on Solaris, 69196 # but without wasting forks for bash or zsh. 69197 if test -z "$BASH_VERSION$ZSH_VERSION" \ 69198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 69199 as_echo='print -r --' 69200 as_echo_n='print -rn --' 69201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 69202 as_echo='printf %s\n' 69203 as_echo_n='printf %s' 69204 else 69205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 69206 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 69207 as_echo_n='/usr/ucb/echo -n' 69208 else 69209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 69210 as_echo_n_body='eval 69211 arg=$1; 69212 case $arg in #( 69213 *"$as_nl"*) 69214 expr "X$arg" : "X\\(.*\\)$as_nl"; 69215 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 69216 esac; 69217 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69218 ' 69219 export as_echo_n_body 69220 as_echo_n='sh -c $as_echo_n_body as_echo' 69221 fi 69222 export as_echo_body 69223 as_echo='sh -c $as_echo_body as_echo' 69224 fi 69225 69226 # The user is always right. 69227 if test "${PATH_SEPARATOR+set}" != set; then 69228 PATH_SEPARATOR=: 69229 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 69230 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 69231 PATH_SEPARATOR=';' 69232 } 69233 fi 69234 69235 69236 # IFS 69237 # We need space, tab and new line, in precisely that order. Quoting is 69238 # there to prevent editors from complaining about space-tab. 69239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 69240 # splitting by setting IFS to empty value.) 69241 IFS=" "" $as_nl" 69242 69243 # Find who we are. Look in the path if we contain no directory separator. 69244 as_myself= 69245 case $0 in #(( 69246 *[\\/]* ) as_myself=$0 ;; 69247 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 69248 for as_dir in $PATH 69249 do 69250 IFS=$as_save_IFS 69251 test -z "$as_dir" && as_dir=. 69252 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 69253 done 69254 IFS=$as_save_IFS 69255 69256 ;; 69257 esac 69258 # We did not find ourselves, most probably we were run as `sh COMMAND' 69259 # in which case we are not to be found in the path. 69260 if test "x$as_myself" = x; then 69261 as_myself=$0 69262 fi 69263 if test ! -f "$as_myself"; then 69264 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 69265 exit 1 69266 fi 69267 69268 # Unset variables that we do not need and which cause bugs (e.g. in 69269 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 69270 # suppresses any "Segmentation fault" message there. '((' could 69271 # trigger a bug in pdksh 5.2.14. 69272 for as_var in BASH_ENV ENV MAIL MAILPATH 69273 do eval test x\${$as_var+set} = xset \ 69274 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 69275 done 69276 PS1='$ ' 69277 PS2='> ' 69278 PS4='+ ' 69279 69280 # NLS nuisances. 69281 LC_ALL=C 69282 export LC_ALL 69283 LANGUAGE=C 69284 export LANGUAGE 69285 69286 # CDPATH. 69287 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 69288 69289 69290 # as_fn_error STATUS ERROR [LINENO LOG_FD] 69291 # ---------------------------------------- 69292 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 69293 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 69294 # script with STATUS, using 1 if that was 0. 69295 as_fn_error () 69296 { 69297 as_status=$1; test $as_status -eq 0 && as_status=1 69298 if test "$4"; then 69299 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 69300 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 69301 fi 69302 $as_echo "$as_me: error: $2" >&2 69303 as_fn_exit $as_status 69304 } # as_fn_error 69305 69306 69307 # as_fn_set_status STATUS 69308 # ----------------------- 69309 # Set $? to STATUS, without forking. 69310 as_fn_set_status () 69311 { 69312 return $1 69313 } # as_fn_set_status 69314 69315 # as_fn_exit STATUS 69316 # ----------------- 69317 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 69318 as_fn_exit () 69319 { 69320 set +e 69321 as_fn_set_status $1 69322 exit $1 69323 } # as_fn_exit 69324 69325 # as_fn_unset VAR 69326 # --------------- 69327 # Portably unset VAR. 69328 as_fn_unset () 69329 { 69330 { eval $1=; unset $1;} 69331 } 69332 as_unset=as_fn_unset 69333 # as_fn_append VAR VALUE 69334 # ---------------------- 69335 # Append the text in VALUE to the end of the definition contained in VAR. Take 69336 # advantage of any shell optimizations that allow amortized linear growth over 69337 # repeated appends, instead of the typical quadratic growth present in naive 69338 # implementations. 69339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 69340 eval 'as_fn_append () 69341 { 69342 eval $1+=\$2 69343 }' 69344 else 69345 as_fn_append () 69346 { 69347 eval $1=\$$1\$2 69348 } 69349 fi # as_fn_append 69350 69351 # as_fn_arith ARG... 69352 # ------------------ 69353 # Perform arithmetic evaluation on the ARGs, and store the result in the 69354 # global $as_val. Take advantage of shells that can avoid forks. The arguments 69355 # must be portable across $(()) and expr. 69356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 69357 eval 'as_fn_arith () 69358 { 69359 as_val=$(( $* )) 69360 }' 69361 else 69362 as_fn_arith () 69363 { 69364 as_val=`expr "$@" || test $? -eq 1` 69365 } 69366 fi # as_fn_arith 69367 69368 69369 if expr a : '\(a\)' >/dev/null 2>&1 && 69370 test "X`expr 00001 : '.*\(...\)'`" = X001; then 69371 as_expr=expr 69372 else 69373 as_expr=false 69374 fi 69375 69376 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 69377 as_basename=basename 69378 else 69379 as_basename=false 69380 fi 69381 69382 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 69383 as_dirname=dirname 69384 else 69385 as_dirname=false 69386 fi 69387 69388 as_me=`$as_basename -- "$0" || 69389 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69390 X"$0" : 'X\(//\)$' \| \ 69391 X"$0" : 'X\(/\)' \| . 2>/dev/null || 69392 $as_echo X/"$0" | 69393 sed '/^.*\/\([^/][^/]*\)\/*$/{ 69394 s//\1/ 69395 q 69396 } 69397 /^X\/\(\/\/\)$/{ 69398 s//\1/ 69399 q 69400 } 69401 /^X\/\(\/\).*/{ 69402 s//\1/ 69403 q 69404 } 69405 s/.*/./; q'` 69406 69407 # Avoid depending upon Character Ranges. 69408 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 69409 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 69410 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 69411 as_cr_digits='0123456789' 69412 as_cr_alnum=$as_cr_Letters$as_cr_digits 69413 69414 ECHO_C= ECHO_N= ECHO_T= 69415 case `echo -n x` in #((((( 69416 -n*) 69417 case `echo 'xy\c'` in 69418 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 69419 xy) ECHO_C='\c';; 69420 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 69421 ECHO_T=' ';; 69422 esac;; 69423 *) 69424 ECHO_N='-n';; 69425 esac 69426 69427 rm -f conf$$ conf$$.exe conf$$.file 69428 if test -d conf$$.dir; then 69429 rm -f conf$$.dir/conf$$.file 69430 else 69431 rm -f conf$$.dir 69432 mkdir conf$$.dir 2>/dev/null 69433 fi 69434 if (echo >conf$$.file) 2>/dev/null; then 69435 if ln -s conf$$.file conf$$ 2>/dev/null; then 69436 as_ln_s='ln -s' 69437 # ... but there are two gotchas: 69438 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 69439 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 69440 # In both cases, we have to default to `cp -pR'. 69441 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 69442 as_ln_s='cp -pR' 69443 elif ln conf$$.file conf$$ 2>/dev/null; then 69444 as_ln_s=ln 69445 else 69446 as_ln_s='cp -pR' 69447 fi 69448 else 69449 as_ln_s='cp -pR' 69450 fi 69451 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 69452 rmdir conf$$.dir 2>/dev/null 69453 69454 69455 # as_fn_mkdir_p 69456 # ------------- 69457 # Create "$as_dir" as a directory, including parents if necessary. 69458 as_fn_mkdir_p () 69459 { 69460 69461 case $as_dir in #( 69462 -*) as_dir=./$as_dir;; 69463 esac 69464 test -d "$as_dir" || eval $as_mkdir_p || { 69465 as_dirs= 69466 while :; do 69467 case $as_dir in #( 69468 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 69469 *) as_qdir=$as_dir;; 69470 esac 69471 as_dirs="'$as_qdir' $as_dirs" 69472 as_dir=`$as_dirname -- "$as_dir" || 69473 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69474 X"$as_dir" : 'X\(//\)[^/]' \| \ 69475 X"$as_dir" : 'X\(//\)$' \| \ 69476 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 69477 $as_echo X"$as_dir" | 69478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69479 s//\1/ 69480 q 69481 } 69482 /^X\(\/\/\)[^/].*/{ 69483 s//\1/ 69484 q 69485 } 69486 /^X\(\/\/\)$/{ 69487 s//\1/ 69488 q 69489 } 69490 /^X\(\/\).*/{ 69491 s//\1/ 69492 q 69493 } 69494 s/.*/./; q'` 69495 test -d "$as_dir" && break 69496 done 69497 test -z "$as_dirs" || eval "mkdir $as_dirs" 69498 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 69499 69500 69501 } # as_fn_mkdir_p 69502 if mkdir -p . 2>/dev/null; then 69503 as_mkdir_p='mkdir -p "$as_dir"' 69504 else 69505 test -d ./-p && rmdir ./-p 69506 as_mkdir_p=false 69507 fi 69508 69509 69510 # as_fn_executable_p FILE 69511 # ----------------------- 69512 # Test if FILE is an executable regular file. 69513 as_fn_executable_p () 69514 { 69515 test -f "$1" && test -x "$1" 69516 } # as_fn_executable_p 69517 as_test_x='test -x' 69518 as_executable_p=as_fn_executable_p 69519 69520 # Sed expression to map a string onto a valid CPP name. 69521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 69522 69523 # Sed expression to map a string onto a valid variable name. 69524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 69525 69526 69527 exec 6>&1 69528 ## ----------------------------------- ## 69529 ## Main body of $CONFIG_STATUS script. ## 69530 ## ----------------------------------- ## 69531 _ASEOF 69532 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 69533 69534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69535 # Save the log message, to keep $0 and so on meaningful, and to 69536 # report actual input values of CONFIG_FILES etc. instead of their 69537 # values after options handling. 69538 ac_log=" 69539 This file was extended by OpenJDK $as_me jdk9, which was 69540 generated by GNU Autoconf 2.69. Invocation command line was 69541 69542 CONFIG_FILES = $CONFIG_FILES 69543 CONFIG_HEADERS = $CONFIG_HEADERS 69544 CONFIG_LINKS = $CONFIG_LINKS 69545 CONFIG_COMMANDS = $CONFIG_COMMANDS 69546 $ $0 $@ 69547 69548 on `(hostname || uname -n) 2>/dev/null | sed 1q` 69549 " 69550 69551 _ACEOF 69552 69553 case $ac_config_files in *" 69554 "*) set x $ac_config_files; shift; ac_config_files=$*;; 69555 esac 69556 69557 69558 69559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69560 # Files that config.status was made for. 69561 config_files="$ac_config_files" 69562 69563 _ACEOF 69564 69565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69566 ac_cs_usage="\ 69567 \`$as_me' instantiates files and other configuration actions 69568 from templates according to the current configuration. Unless the files 69569 and actions are specified as TAGs, all are instantiated by default. 69570 69571 Usage: $0 [OPTION]... [TAG]... 69572 69573 -h, --help print this help, then exit 69574 -V, --version print version number and configuration settings, then exit 69575 --config print configuration, then exit 69576 -q, --quiet, --silent 69577 do not print progress messages 69578 -d, --debug don't remove temporary files 69579 --recheck update $as_me by reconfiguring in the same conditions 69580 --file=FILE[:TEMPLATE] 69581 instantiate the configuration file FILE 69582 69583 Configuration files: 69584 $config_files 69585 69586 Report bugs to <build-dev@openjdk.java.net>. 69587 OpenJDK home page: <http://openjdk.java.net>." 69588 69589 _ACEOF 69590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69591 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 69592 ac_cs_version="\\ 69593 OpenJDK config.status jdk9 69594 configured by $0, generated by GNU Autoconf 2.69, 69595 with options \\"\$ac_cs_config\\" 69596 69597 Copyright (C) 2012 Free Software Foundation, Inc. 69598 This config.status script is free software; the Free Software Foundation 69599 gives unlimited permission to copy, distribute and modify it." 69600 69601 ac_pwd='$ac_pwd' 69602 srcdir='$srcdir' 69603 AWK='$AWK' 69604 test -n "\$AWK" || AWK=awk 69605 _ACEOF 69606 69607 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69608 # The default lists apply if the user does not specify any file. 69609 ac_need_defaults=: 69610 while test $# != 0 69611 do 69612 case $1 in 69613 --*=?*) 69614 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69615 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 69616 ac_shift=: 69617 ;; 69618 --*=) 69619 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69620 ac_optarg= 69621 ac_shift=: 69622 ;; 69623 *) 69624 ac_option=$1 69625 ac_optarg=$2 69626 ac_shift=shift 69627 ;; 69628 esac 69629 69630 case $ac_option in 69631 # Handling of the options. 69632 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 69633 ac_cs_recheck=: ;; 69634 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 69635 $as_echo "$ac_cs_version"; exit ;; 69636 --config | --confi | --conf | --con | --co | --c ) 69637 $as_echo "$ac_cs_config"; exit ;; 69638 --debug | --debu | --deb | --de | --d | -d ) 69639 debug=: ;; 69640 --file | --fil | --fi | --f ) 69641 $ac_shift 69642 case $ac_optarg in 69643 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 69644 '') as_fn_error $? "missing file argument" ;; 69645 esac 69646 as_fn_append CONFIG_FILES " '$ac_optarg'" 69647 ac_need_defaults=false;; 69648 --he | --h | --help | --hel | -h ) 69649 $as_echo "$ac_cs_usage"; exit ;; 69650 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 69651 | -silent | --silent | --silen | --sile | --sil | --si | --s) 69652 ac_cs_silent=: ;; 69653 69654 # This is an error. 69655 -*) as_fn_error $? "unrecognized option: \`$1' 69656 Try \`$0 --help' for more information." ;; 69657 69658 *) as_fn_append ac_config_targets " $1" 69659 ac_need_defaults=false ;; 69660 69661 esac 69662 shift 69663 done 69664 69665 ac_configure_extra_args= 69666 69667 if $ac_cs_silent; then 69668 exec 6>/dev/null 69669 ac_configure_extra_args="$ac_configure_extra_args --silent" 69670 fi 69671 69672 _ACEOF 69673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69674 if \$ac_cs_recheck; then 69675 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 69676 shift 69677 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 69678 CONFIG_SHELL='$SHELL' 69679 export CONFIG_SHELL 69680 exec "\$@" 69681 fi 69682 69683 _ACEOF 69684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69685 exec 5>>config.log 69686 { 69687 echo 69688 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 69689 ## Running $as_me. ## 69690 _ASBOX 69691 $as_echo "$ac_log" 69692 } >&5 69693 69694 _ACEOF 69695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69696 _ACEOF 69697 69698 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69699 69700 # Handling of arguments. 69701 for ac_config_target in $ac_config_targets 69702 do 69703 case $ac_config_target in 69704 "$OUTPUTDIR/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 69705 "$OUTPUTDIR/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 69706 "$OUTPUTDIR/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 69707 "$OUTPUTDIR/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 69708 "$OUTPUTDIR/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 69709 69710 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 69711 esac 69712 done 69713 69714 69715 # If the user did not use the arguments to specify the items to instantiate, 69716 # then the envvar interface is used. Set only those that are not. 69717 # We use the long form for the default assignment because of an extremely 69718 # bizarre bug on SunOS 4.1.3. 69719 if $ac_need_defaults; then 69720 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 69721 fi 69722 69723 # Have a temporary directory for convenience. Make it in the build tree 69724 # simply because there is no reason against having it here, and in addition, 69725 # creating and moving files from /tmp can sometimes cause problems. 69726 # Hook for its removal unless debugging. 69727 # Note that there is a small window in which the directory will not be cleaned: 69728 # after its creation but before its name has been assigned to `$tmp'. 69729 $debug || 69730 { 69731 tmp= ac_tmp= 69732 trap 'exit_status=$? 69733 : "${ac_tmp:=$tmp}" 69734 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 69735 ' 0 69736 trap 'as_fn_exit 1' 1 2 13 15 69737 } 69738 # Create a (secure) tmp directory for tmp files. 69739 69740 { 69741 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 69742 test -d "$tmp" 69743 } || 69744 { 69745 tmp=./conf$$-$RANDOM 69746 (umask 077 && mkdir "$tmp") 69747 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 69748 ac_tmp=$tmp 69749 69750 # Set up the scripts for CONFIG_FILES section. 69751 # No need to generate them if there are no CONFIG_FILES. 69752 # This happens for instance with `./config.status config.h'. 69753 if test -n "$CONFIG_FILES"; then 69754 69755 69756 ac_cr=`echo X | tr X '\015'` 69757 # On cygwin, bash can eat \r inside `` if the user requested igncr. 69758 # But we know of no other shell where ac_cr would be empty at this 69759 # point, so we can use a bashism as a fallback. 69760 if test "x$ac_cr" = x; then 69761 eval ac_cr=\$\'\\r\' 69762 fi 69763 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 69764 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 69765 ac_cs_awk_cr='\\r' 69766 else 69767 ac_cs_awk_cr=$ac_cr 69768 fi 69769 69770 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 69771 _ACEOF 69772 69773 69774 { 69775 echo "cat >conf$$subs.awk <<_ACEOF" && 69776 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 69777 echo "_ACEOF" 69778 } >conf$$subs.sh || 69779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69780 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 69781 ac_delim='%!_!# ' 69782 for ac_last_try in false false false false false :; do 69783 . ./conf$$subs.sh || 69784 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69785 69786 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 69787 if test $ac_delim_n = $ac_delim_num; then 69788 break 69789 elif $ac_last_try; then 69790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69791 else 69792 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 69793 fi 69794 done 69795 rm -f conf$$subs.sh 69796 69797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69798 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 69799 _ACEOF 69800 sed -n ' 69801 h 69802 s/^/S["/; s/!.*/"]=/ 69803 p 69804 g 69805 s/^[^!]*!// 69806 :repl 69807 t repl 69808 s/'"$ac_delim"'$// 69809 t delim 69810 :nl 69811 h 69812 s/\(.\{148\}\)..*/\1/ 69813 t more1 69814 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 69815 p 69816 n 69817 b repl 69818 :more1 69819 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69820 p 69821 g 69822 s/.\{148\}// 69823 t nl 69824 :delim 69825 h 69826 s/\(.\{148\}\)..*/\1/ 69827 t more2 69828 s/["\\]/\\&/g; s/^/"/; s/$/"/ 69829 p 69830 b 69831 :more2 69832 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69833 p 69834 g 69835 s/.\{148\}// 69836 t delim 69837 ' <conf$$subs.awk | sed ' 69838 /^[^""]/{ 69839 N 69840 s/\n// 69841 } 69842 ' >>$CONFIG_STATUS || ac_write_fail=1 69843 rm -f conf$$subs.awk 69844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69845 _ACAWK 69846 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 69847 for (key in S) S_is_set[key] = 1 69848 FS = "" 69849 69850 } 69851 { 69852 line = $ 0 69853 nfields = split(line, field, "@") 69854 substed = 0 69855 len = length(field[1]) 69856 for (i = 2; i < nfields; i++) { 69857 key = field[i] 69858 keylen = length(key) 69859 if (S_is_set[key]) { 69860 value = S[key] 69861 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 69862 len += length(value) + length(field[++i]) 69863 substed = 1 69864 } else 69865 len += 1 + keylen 69866 } 69867 69868 print line 69869 } 69870 69871 _ACAWK 69872 _ACEOF 69873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69874 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 69875 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 69876 else 69877 cat 69878 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 69879 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 69880 _ACEOF 69881 69882 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 69883 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 69884 # trailing colons and then remove the whole line if VPATH becomes empty 69885 # (actually we leave an empty line to preserve line numbers). 69886 if test "x$srcdir" = x.; then 69887 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 69888 h 69889 s/// 69890 s/^/:/ 69891 s/[ ]*$/:/ 69892 s/:\$(srcdir):/:/g 69893 s/:\${srcdir}:/:/g 69894 s/:@srcdir@:/:/g 69895 s/^:*// 69896 s/:*$// 69897 x 69898 s/\(=[ ]*\).*/\1/ 69899 G 69900 s/\n// 69901 s/^[^=]*=[ ]*$// 69902 }' 69903 fi 69904 69905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69906 fi # test -n "$CONFIG_FILES" 69907 69908 69909 eval set X " :F $CONFIG_FILES " 69910 shift 69911 for ac_tag 69912 do 69913 case $ac_tag in 69914 :[FHLC]) ac_mode=$ac_tag; continue;; 69915 esac 69916 case $ac_mode$ac_tag in 69917 :[FHL]*:*);; 69918 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 69919 :[FH]-) ac_tag=-:-;; 69920 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 69921 esac 69922 ac_save_IFS=$IFS 69923 IFS=: 69924 set x $ac_tag 69925 IFS=$ac_save_IFS 69926 shift 69927 ac_file=$1 69928 shift 69929 69930 case $ac_mode in 69931 :L) ac_source=$1;; 69932 :[FH]) 69933 ac_file_inputs= 69934 for ac_f 69935 do 69936 case $ac_f in 69937 -) ac_f="$ac_tmp/stdin";; 69938 *) # Look for the file first in the build tree, then in the source tree 69939 # (if the path is not absolute). The absolute path cannot be DOS-style, 69940 # because $ac_f cannot contain `:'. 69941 test -f "$ac_f" || 69942 case $ac_f in 69943 [\\/$]*) false;; 69944 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 69945 esac || 69946 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 69947 esac 69948 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 69949 as_fn_append ac_file_inputs " '$ac_f'" 69950 done 69951 69952 # Let's still pretend it is `configure' which instantiates (i.e., don't 69953 # use $as_me), people would be surprised to read: 69954 # /* config.h. Generated by config.status. */ 69955 configure_input='Generated from '` 69956 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 69957 `' by configure.' 69958 if test x"$ac_file" != x-; then 69959 configure_input="$ac_file. $configure_input" 69960 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 69961 $as_echo "$as_me: creating $ac_file" >&6;} 69962 fi 69963 # Neutralize special characters interpreted by sed in replacement strings. 69964 case $configure_input in #( 69965 *\&* | *\|* | *\\* ) 69966 ac_sed_conf_input=`$as_echo "$configure_input" | 69967 sed 's/[\\\\&|]/\\\\&/g'`;; #( 69968 *) ac_sed_conf_input=$configure_input;; 69969 esac 69970 69971 case $ac_tag in 69972 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 69973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 69974 esac 69975 ;; 69976 esac 69977 69978 ac_dir=`$as_dirname -- "$ac_file" || 69979 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69980 X"$ac_file" : 'X\(//\)[^/]' \| \ 69981 X"$ac_file" : 'X\(//\)$' \| \ 69982 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 69983 $as_echo X"$ac_file" | 69984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69985 s//\1/ 69986 q 69987 } 69988 /^X\(\/\/\)[^/].*/{ 69989 s//\1/ 69990 q 69991 } 69992 /^X\(\/\/\)$/{ 69993 s//\1/ 69994 q 69995 } 69996 /^X\(\/\).*/{ 69997 s//\1/ 69998 q 69999 } 70000 s/.*/./; q'` 70001 as_dir="$ac_dir"; as_fn_mkdir_p 70002 ac_builddir=. 70003 70004 case "$ac_dir" in 70005 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 70006 *) 70007 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 70008 # A ".." for each directory in $ac_dir_suffix. 70009 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 70010 case $ac_top_builddir_sub in 70011 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 70012 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 70013 esac ;; 70014 esac 70015 ac_abs_top_builddir=$ac_pwd 70016 ac_abs_builddir=$ac_pwd$ac_dir_suffix 70017 # for backward compatibility: 70018 ac_top_builddir=$ac_top_build_prefix 70019 70020 case $srcdir in 70021 .) # We are building in place. 70022 ac_srcdir=. 70023 ac_top_srcdir=$ac_top_builddir_sub 70024 ac_abs_top_srcdir=$ac_pwd ;; 70025 [\\/]* | ?:[\\/]* ) # Absolute name. 70026 ac_srcdir=$srcdir$ac_dir_suffix; 70027 ac_top_srcdir=$srcdir 70028 ac_abs_top_srcdir=$srcdir ;; 70029 *) # Relative name. 70030 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 70031 ac_top_srcdir=$ac_top_build_prefix$srcdir 70032 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 70033 esac 70034 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 70035 70036 70037 case $ac_mode in 70038 :F) 70039 # 70040 # CONFIG_FILE 70041 # 70042 70043 _ACEOF 70044 70045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 70046 # If the template does not know about datarootdir, expand it. 70047 # FIXME: This hack should be removed a few years after 2.60. 70048 ac_datarootdir_hack=; ac_datarootdir_seen= 70049 ac_sed_dataroot=' 70050 /datarootdir/ { 70051 p 70052 q 70053 } 70054 /@datadir@/p 70055 /@docdir@/p 70056 /@infodir@/p 70057 /@localedir@/p 70058 /@mandir@/p' 70059 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 70060 *datarootdir*) ac_datarootdir_seen=yes;; 70061 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 70062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 70063 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 70064 _ACEOF 70065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 70066 ac_datarootdir_hack=' 70067 s&@datadir@&$datadir&g 70068 s&@docdir@&$docdir&g 70069 s&@infodir@&$infodir&g 70070 s&@localedir@&$localedir&g 70071 s&@mandir@&$mandir&g 70072 s&\\\${datarootdir}&$datarootdir&g' ;; 70073 esac 70074 _ACEOF 70075 70076 # Neutralize VPATH when `$srcdir' = `.'. 70077 # Shell code in configure.ac might set extrasub. 70078 # FIXME: do we really want to maintain this feature? 70079 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 70080 ac_sed_extra="$ac_vpsub 70081 $extrasub 70082 _ACEOF 70083 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 70084 :t 70085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 70086 s|@configure_input@|$ac_sed_conf_input|;t t 70087 s&@top_builddir@&$ac_top_builddir_sub&;t t 70088 s&@top_build_prefix@&$ac_top_build_prefix&;t t 70089 s&@srcdir@&$ac_srcdir&;t t 70090 s&@abs_srcdir@&$ac_abs_srcdir&;t t 70091 s&@top_srcdir@&$ac_top_srcdir&;t t 70092 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 70093 s&@builddir@&$ac_builddir&;t t 70094 s&@abs_builddir@&$ac_abs_builddir&;t t 70095 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 70096 $ac_datarootdir_hack 70097 " 70098 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 70099 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70100 70101 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 70102 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 70103 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 70104 "$ac_tmp/out"`; test -z "$ac_out"; } && 70105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70106 which seems to be undefined. Please make sure it is defined" >&5 70107 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70108 which seems to be undefined. Please make sure it is defined" >&2;} 70109 70110 rm -f "$ac_tmp/stdin" 70111 case $ac_file in 70112 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 70113 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 70114 esac \ 70115 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70116 ;; 70117 70118 70119 70120 esac 70121 70122 done # for ac_tag 70123 70124 70125 as_fn_exit 0 70126 _ACEOF 70127 ac_clean_files=$ac_clean_files_save 70128 70129 test $ac_write_fail = 0 || 70130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 70131 70132 70133 # configure is writing to config.log, and then calls config.status. 70134 # config.status does its own redirection, appending to config.log. 70135 # Unfortunately, on DOS this fails, as config.log is still kept open 70136 # by configure, so config.status won't be able to write to it; its 70137 # output is simply discarded. So we exec the FD to /dev/null, 70138 # effectively closing config.log, so it can be properly (re)opened and 70139 # appended to by config.status. When coming back to configure, we 70140 # need to make the FD available again. 70141 if test "$no_create" != yes; then 70142 ac_cs_success=: 70143 ac_config_status_args= 70144 test "$silent" = yes && 70145 ac_config_status_args="$ac_config_status_args --quiet" 70146 exec 5>/dev/null 70147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 70148 exec 5>>config.log 70149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 70150 # would make configure fail if this is the last instruction. 70151 $ac_cs_success || as_fn_exit 1 70152 fi 70153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 70154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 70155 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 70156 fi 70157 70158 70159 # After AC_OUTPUT, we need to do final work 70160 70161 70162 # Try to move config.log (generated by autoconf) to the configure-support directory. 70163 if test -e ./config.log; then 70164 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 70165 fi 70166 70167 # Rotate our log file (configure.log) 70168 if test -e "$OUTPUTDIR/configure.log.old"; then 70169 $RM -f "$OUTPUTDIR/configure.log.old" 70170 fi 70171 if test -e "$OUTPUTDIR/configure.log"; then 70172 $MV -f "$OUTPUTDIR/configure.log" "$OUTPUTDIR/configure.log.old" 2> /dev/null 70173 fi 70174 70175 # Move configure.log from current directory to the build output root 70176 if test -e ./configure.log; then 70177 $MV -f ./configure.log "$OUTPUTDIR/configure.log" 2> /dev/null 70178 fi 70179 70180 # Make the compare script executable 70181 $CHMOD +x $OUTPUTDIR/compare.sh 70182 70183 70184 # Finally output some useful information to the user 70185 70186 # Finally output some useful information to the user 70187 70188 printf "\n" 70189 printf "====================================================\n" 70190 if test "x$no_create" != "xyes"; then 70191 if test "x$IS_RECONFIGURE" != "xyes"; then 70192 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR" 70193 else 70194 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR" 70195 fi 70196 else 70197 if test "x$IS_RECONFIGURE" != "xyes"; then 70198 printf "A configuration has been successfully checked but not created\n" 70199 else 70200 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR" 70201 fi 70202 fi 70203 if test "x$CONFIGURE_COMMAND_LINE" != x; then 70204 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 70205 else 70206 printf "using default settings.\n" 70207 fi 70208 70209 printf "\n" 70210 printf "Configuration summary:\n" 70211 printf "* Debug level: $DEBUG_LEVEL\n" 70212 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 70213 printf "* JDK variant: $JDK_VARIANT\n" 70214 printf "* JVM variants: $JVM_VARIANTS\n" 70215 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 70216 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 70217 70218 printf "\n" 70219 printf "Tools summary:\n" 70220 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 70221 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 70222 fi 70223 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 70224 if test "x$TOOLCHAIN_VERSION" != "x"; then 70225 print_version=" $TOOLCHAIN_VERSION" 70226 fi 70227 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 70228 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 70229 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 70230 70231 printf "\n" 70232 printf "Build performance summary:\n" 70233 printf "* Cores to use: $JOBS\n" 70234 printf "* Memory limit: $MEMORY_SIZE MB\n" 70235 if test "x$CCACHE_STATUS" != "x"; then 70236 printf "* ccache status: $CCACHE_STATUS\n" 70237 fi 70238 printf "\n" 70239 70240 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 70241 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 70242 printf "will result in longer build times.\n" 70243 printf "\n" 70244 fi 70245 70246 if test "x$FOUND_ALT_VARIABLES" != "x"; then 70247 printf "WARNING: You have old-style ALT_ environment variables set.\n" 70248 printf "These are not respected, and will be ignored. It is recommended\n" 70249 printf "that you clean your environment. The following variables are set:\n" 70250 printf "$FOUND_ALT_VARIABLES\n" 70251 printf "\n" 70252 fi 70253 70254 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 70255 printf "WARNING: Your build output directory is not on a local disk.\n" 70256 printf "This will severely degrade build performance!\n" 70257 printf "It is recommended that you create an output directory on a local disk,\n" 70258 printf "and run the configure script again from that directory.\n" 70259 printf "\n" 70260 fi 70261 70262 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 70263 printf "WARNING: The result of this configuration has overridden an older\n" 70264 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 70265 printf "proper build. Failure to do so might result in strange build problems.\n" 70266 printf "\n" 70267 fi 70268 70269 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 70270 printf "WARNING: The result of this configuration was not saved.\n" 70271 printf "You should run without '--no-create | -n' to create the configuration.\n" 70272 printf "\n" 70273 fi 70274 70275 70276 70277 # Locate config.log. 70278 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 70279 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 70280 elif test -e "./config.log"; then 70281 CONFIG_LOG_PATH="." 70282 fi 70283 70284 if test -e "$CONFIG_LOG_PATH/config.log"; then 70285 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 70286 if test $? -eq 0; then 70287 printf "The following warnings were produced. Repeated here for convenience:\n" 70288 # We must quote sed expression (using []) to stop m4 from eating the []. 70289 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 70290 printf "\n" 70291 fi 70292 fi 70293