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 VENDOR_VERSION_STRING 890 VERSION_DATE 891 VERSION_IS_GA 892 VERSION_SHORT 893 VERSION_STRING 894 VERSION_NUMBER_FOUR_POSITIONS 895 VERSION_NUMBER 896 VERSION_OPT 897 VERSION_BUILD 898 VERSION_PRE 899 VERSION_PATCH 900 VERSION_UPDATE 901 VERSION_INTERIM 902 VERSION_FEATURE 903 COMPANY_NAME 904 MACOSX_BUNDLE_ID_BASE 905 MACOSX_BUNDLE_NAME_BASE 906 HOTSPOT_VM_DISTRO 907 JDK_RC_PLATFORM_NAME 908 PRODUCT_SUFFIX 909 PRODUCT_NAME 910 LAUNCHER_NAME 911 JLINK_KEEP_PACKAGED_MODULES 912 COPYRIGHT_YEAR 913 COMPRESS_JARS 914 INCLUDE_SA 915 UNLIMITED_CRYPTO 916 CACERTS_FILE 917 ENABLE_FULL_DOCS 918 ENABLE_HEADLESS_ONLY 919 DEFAULT_MAKE_TARGET 920 OS_VERSION_MICRO 921 OS_VERSION_MINOR 922 OS_VERSION_MAJOR 923 PKG_CONFIG 924 BASH_ARGS 925 SETFILE 926 CODESIGN 927 XATTR 928 DSYMUTIL 929 IS_GNU_TIME 930 PATCH 931 DTRACE 932 FLOCK 933 TIME 934 STAT 935 HG 936 DOT 937 READELF 938 LDD 939 ZIPEXE 940 UNZIP 941 TAR_SUPPORTS_TRANSFORM 942 TAR_INCLUDE_PARAM 943 TAR_CREATE_EXTRA_PARAM 944 TAR_TYPE 945 FIND_DELETE 946 OUTPUT_SYNC 947 OUTPUT_SYNC_SUPPORTED 948 CHECK_TOOLSDIR_MAKE 949 CHECK_TOOLSDIR_GMAKE 950 CHECK_MAKE 951 CHECK_GMAKE 952 MAKE 953 PKGHANDLER 954 CONFIGURESUPPORT_OUTPUTDIR 955 OUTPUTDIR 956 CONF_NAME 957 SPEC 958 SDKROOT 959 XCODEBUILD 960 DEVKIT_LIB_DIR 961 JVM_VARIANT_MAIN 962 VALID_JVM_VARIANTS 963 JVM_VARIANTS 964 DEBUG_LEVEL 965 HOTSPOT_DEBUG_LEVEL 966 JDK_VARIANT 967 USERNAME 968 TOPDIR 969 PATH_SEP 970 HOTSPOT_BUILD_CPU_DEFINE 971 HOTSPOT_BUILD_CPU_ARCH 972 HOTSPOT_BUILD_CPU 973 HOTSPOT_BUILD_OS_TYPE 974 HOTSPOT_BUILD_OS 975 OPENJDK_BUILD_BUNDLE_PLATFORM 976 OPENJDK_BUILD_CPU_OSARCH 977 OPENJDK_BUILD_CPU_ISADIR 978 OPENJDK_BUILD_CPU_LEGACY_LIB 979 OPENJDK_BUILD_CPU_LEGACY 980 HOTSPOT_TARGET_CPU_DEFINE 981 HOTSPOT_TARGET_CPU_ARCH 982 HOTSPOT_TARGET_CPU 983 HOTSPOT_TARGET_OS_TYPE 984 HOTSPOT_TARGET_OS 985 DEFINE_CROSS_COMPILE_ARCH 986 OPENJDK_TARGET_BUNDLE_PLATFORM 987 OPENJDK_TARGET_CPU_OSARCH 988 OPENJDK_TARGET_CPU_ISADIR 989 OPENJDK_TARGET_CPU_LEGACY_LIB 990 OPENJDK_TARGET_CPU_LEGACY 991 RELEASE_FILE_OS_ARCH 992 RELEASE_FILE_OS_NAME 993 OPENJDK_MODULE_TARGET_PLATFORM 994 COMPILE_TYPE 995 OPENJDK_TARGET_CPU_ENDIAN 996 OPENJDK_TARGET_CPU_BITS 997 OPENJDK_TARGET_CPU_ARCH 998 OPENJDK_TARGET_CPU 999 OPENJDK_TARGET_OS_ENV 1000 OPENJDK_TARGET_OS_TYPE 1001 OPENJDK_TARGET_OS 1002 OPENJDK_BUILD_CPU_ENDIAN 1003 OPENJDK_BUILD_CPU_BITS 1004 OPENJDK_BUILD_CPU_ARCH 1005 OPENJDK_BUILD_CPU 1006 OPENJDK_BUILD_OS_ENV 1007 OPENJDK_BUILD_OS_TYPE 1008 OPENJDK_BUILD_OS 1009 OPENJDK_BUILD_AUTOCONF_NAME 1010 OPENJDK_TARGET_AUTOCONF_NAME 1011 target_os 1012 target_vendor 1013 target_cpu 1014 target 1015 host_os 1016 host_vendor 1017 host_cpu 1018 host 1019 build_os 1020 build_vendor 1021 build_cpu 1022 build 1023 PANDOC 1024 NICE 1025 CPIO 1026 DF 1027 READLINK 1028 CYGPATH 1029 SED 1030 FGREP 1031 EGREP 1032 GREP 1033 AWK 1034 XARGS 1035 WHICH 1036 WC 1037 UNIQ 1038 UNAME 1039 TR 1040 TOUCH 1041 TEE 1042 TAR 1043 TAIL 1044 SORT 1045 SH 1046 RMDIR 1047 RM 1048 PRINTF 1049 NAWK 1050 MV 1051 MKTEMP 1052 MKDIR 1053 LS 1054 LN 1055 GZIP 1056 GUNZIP 1057 HEAD 1058 FIND 1059 FILE 1060 EXPR 1061 ECHO 1062 DIRNAME 1063 DIFF 1064 DATE 1065 CUT 1066 CP 1067 COMM 1068 CMP 1069 CHMOD 1070 CAT 1071 BASH 1072 BASENAME 1073 DATE_WHEN_CONFIGURED 1074 ORIGINAL_PATH 1075 CONFIGURE_COMMAND_LINE 1076 target_alias 1077 host_alias 1078 build_alias 1079 LIBS 1080 ECHO_T 1081 ECHO_N 1082 ECHO_C 1083 DEFS 1084 mandir 1085 localedir 1086 libdir 1087 psdir 1088 pdfdir 1089 dvidir 1090 htmldir 1091 infodir 1092 docdir 1093 oldincludedir 1094 includedir 1095 localstatedir 1096 sharedstatedir 1097 sysconfdir 1098 datadir 1099 datarootdir 1100 libexecdir 1101 sbindir 1102 bindir 1103 program_transform_name 1104 prefix 1105 exec_prefix 1106 PACKAGE_URL 1107 PACKAGE_BUGREPORT 1108 PACKAGE_STRING 1109 PACKAGE_VERSION 1110 PACKAGE_TARNAME 1111 PACKAGE_NAME 1112 PATH_SEPARATOR 1113 SHELL' 1114 ac_subst_files='' 1115 ac_user_opts=' 1116 enable_option_checking 1117 with_target_bits 1118 enable_openjdk_only 1119 with_custom_make_dir 1120 with_jdk_variant 1121 enable_debug 1122 with_debug_level 1123 with_jvm_variants 1124 with_cpu_port 1125 with_devkit 1126 with_sys_root 1127 with_sysroot 1128 with_tools_dir 1129 with_toolchain_path 1130 with_extra_path 1131 with_sdk_name 1132 with_conf_name 1133 with_output_sync 1134 with_default_make_target 1135 enable_headless_only 1136 enable_full_docs 1137 with_cacerts_file 1138 enable_unlimited_crypto 1139 with_copyright_year 1140 enable_keep_packaged_modules 1141 with_milestone 1142 with_update_version 1143 with_user_release_suffix 1144 with_build_number 1145 with_version_major 1146 with_version_minor 1147 with_version_security 1148 with_vendor_name 1149 with_version_string 1150 with_version_pre 1151 with_version_opt 1152 with_version_build 1153 with_version_feature 1154 with_version_interim 1155 with_version_update 1156 with_version_patch 1157 with_version_date 1158 with_vendor_version_string 1159 with_boot_jdk 1160 with_build_jdk 1161 with_import_modules 1162 enable_static_build 1163 with_toolchain_type 1164 with_extra_cflags 1165 with_extra_cxxflags 1166 with_extra_ldflags 1167 with_toolchain_version 1168 with_build_devkit 1169 with_jtreg 1170 with_jib 1171 with_abi_profile 1172 with_macosx_version_max 1173 enable_warnings_as_errors 1174 with_native_debug_symbols 1175 enable_debug_symbols 1176 enable_zip_debug_info 1177 enable_native_coverage 1178 enable_asan 1179 enable_dtrace 1180 enable_aot 1181 enable_cds 1182 enable_hotspot_gtest 1183 with_stdc__lib 1184 with_msvcr_dll 1185 with_msvcp_dll 1186 with_x 1187 with_cups 1188 with_cups_include 1189 with_fontconfig 1190 with_fontconfig_include 1191 with_freetype 1192 with_freetype_include 1193 with_freetype_lib 1194 with_freetype_src 1195 enable_freetype_bundling 1196 with_freetype_license 1197 with_alsa 1198 with_alsa_include 1199 with_alsa_lib 1200 with_libffi 1201 with_libffi_include 1202 with_libffi_lib 1203 enable_libffi_bundling 1204 with_libjpeg 1205 with_giflib 1206 with_libpng 1207 with_zlib 1208 with_lcms 1209 with_dxsdk 1210 with_dxsdk_lib 1211 with_dxsdk_include 1212 with_jvm_features 1213 with_jvm_interpreter 1214 enable_jtreg_failure_handler 1215 enable_generate_classlist 1216 with_num_cores 1217 with_memory_size 1218 with_jobs 1219 with_test_jobs 1220 with_boot_jdk_jvmargs 1221 with_sjavac_server_java 1222 enable_sjavac 1223 enable_javac_server 1224 enable_icecc 1225 enable_precompiled_headers 1226 enable_ccache 1227 with_ccache_dir 1228 ' 1229 ac_precious_vars='build_alias 1230 host_alias 1231 target_alias 1232 BASENAME 1233 BASH 1234 CAT 1235 CHMOD 1236 CMP 1237 COMM 1238 CP 1239 CUT 1240 DATE 1241 DIFF 1242 DIRNAME 1243 ECHO 1244 EXPR 1245 FILE 1246 FIND 1247 HEAD 1248 GUNZIP 1249 GZIP 1250 LN 1251 LS 1252 MKDIR 1253 MKTEMP 1254 MV 1255 NAWK 1256 PRINTF 1257 RM 1258 RMDIR 1259 SH 1260 SORT 1261 TAIL 1262 TAR 1263 TEE 1264 TOUCH 1265 TR 1266 UNAME 1267 UNIQ 1268 WC 1269 WHICH 1270 XARGS 1271 AWK 1272 GREP 1273 EGREP 1274 FGREP 1275 SED 1276 CYGPATH 1277 READLINK 1278 DF 1279 CPIO 1280 NICE 1281 PANDOC 1282 MAKE 1283 UNZIP 1284 ZIPEXE 1285 LDD 1286 READELF 1287 DOT 1288 HG 1289 STAT 1290 TIME 1291 FLOCK 1292 DTRACE 1293 PATCH 1294 DSYMUTIL 1295 XATTR 1296 CODESIGN 1297 SETFILE 1298 PKG_CONFIG 1299 JAVA 1300 JAVAC 1301 JAVADOC 1302 JAR 1303 JARSIGNER 1304 CC 1305 CFLAGS 1306 LDFLAGS 1307 LIBS 1308 CPPFLAGS 1309 CXX 1310 CXXFLAGS 1311 CCC 1312 CPP 1313 CXXCPP 1314 AS 1315 AR 1316 LIPO 1317 OTOOL 1318 INSTALL_NAME_TOOL 1319 STRIP 1320 NM 1321 GNM 1322 OBJCOPY 1323 OBJDUMP 1324 BUILD_CC 1325 BUILD_CXX 1326 BUILD_NM 1327 BUILD_AR 1328 BUILD_OBJCOPY 1329 BUILD_STRIP 1330 JTREGEXE 1331 XMKMF 1332 FREETYPE_CFLAGS 1333 FREETYPE_LIBS 1334 ALSA_CFLAGS 1335 ALSA_LIBS 1336 LIBFFI_CFLAGS 1337 LIBFFI_LIBS 1338 PNG_CFLAGS 1339 PNG_LIBS 1340 LCMS_CFLAGS 1341 LCMS_LIBS 1342 ICECC_CMD 1343 ICECC_CREATE_ENV 1344 ICECC_WRAPPER 1345 CCACHE' 1346 1347 1348 # Initialize some variables set by options. 1349 ac_init_help= 1350 ac_init_version=false 1351 ac_unrecognized_opts= 1352 ac_unrecognized_sep= 1353 # The variables have the same names as the options, with 1354 # dashes changed to underlines. 1355 cache_file=/dev/null 1356 exec_prefix=NONE 1357 no_create= 1358 no_recursion= 1359 prefix=NONE 1360 program_prefix=NONE 1361 program_suffix=NONE 1362 program_transform_name=s,x,x, 1363 silent= 1364 site= 1365 srcdir= 1366 verbose= 1367 x_includes=NONE 1368 x_libraries=NONE 1369 1370 # Installation directory options. 1371 # These are left unexpanded so users can "make install exec_prefix=/foo" 1372 # and all the variables that are supposed to be based on exec_prefix 1373 # by default will actually change. 1374 # Use braces instead of parens because sh, perl, etc. also accept them. 1375 # (The list follows the same order as the GNU Coding Standards.) 1376 bindir='${exec_prefix}/bin' 1377 sbindir='${exec_prefix}/sbin' 1378 libexecdir='${exec_prefix}/libexec' 1379 datarootdir='${prefix}/share' 1380 datadir='${datarootdir}' 1381 sysconfdir='${prefix}/etc' 1382 sharedstatedir='${prefix}/com' 1383 localstatedir='${prefix}/var' 1384 includedir='${prefix}/include' 1385 oldincludedir='/usr/include' 1386 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1387 infodir='${datarootdir}/info' 1388 htmldir='${docdir}' 1389 dvidir='${docdir}' 1390 pdfdir='${docdir}' 1391 psdir='${docdir}' 1392 libdir='${exec_prefix}/lib' 1393 localedir='${datarootdir}/locale' 1394 mandir='${datarootdir}/man' 1395 1396 ac_prev= 1397 ac_dashdash= 1398 for ac_option 1399 do 1400 # If the previous option needs an argument, assign it. 1401 if test -n "$ac_prev"; then 1402 eval $ac_prev=\$ac_option 1403 ac_prev= 1404 continue 1405 fi 1406 1407 case $ac_option in 1408 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1409 *=) ac_optarg= ;; 1410 *) ac_optarg=yes ;; 1411 esac 1412 1413 # Accept the important Cygnus configure options, so we can diagnose typos. 1414 1415 case $ac_dashdash$ac_option in 1416 --) 1417 ac_dashdash=yes ;; 1418 1419 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1420 ac_prev=bindir ;; 1421 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1422 bindir=$ac_optarg ;; 1423 1424 -build | --build | --buil | --bui | --bu) 1425 ac_prev=build_alias ;; 1426 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1427 build_alias=$ac_optarg ;; 1428 1429 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1430 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1431 ac_prev=cache_file ;; 1432 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1433 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1434 cache_file=$ac_optarg ;; 1435 1436 --config-cache | -C) 1437 cache_file=config.cache ;; 1438 1439 -datadir | --datadir | --datadi | --datad) 1440 ac_prev=datadir ;; 1441 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1442 datadir=$ac_optarg ;; 1443 1444 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1445 | --dataroo | --dataro | --datar) 1446 ac_prev=datarootdir ;; 1447 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1448 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1449 datarootdir=$ac_optarg ;; 1450 1451 -disable-* | --disable-*) 1452 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1453 # Reject names that are not valid shell variable names. 1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1455 as_fn_error $? "invalid feature name: $ac_useropt" 1456 ac_useropt_orig=$ac_useropt 1457 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1458 case $ac_user_opts in 1459 *" 1460 "enable_$ac_useropt" 1461 "*) ;; 1462 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1463 ac_unrecognized_sep=', ';; 1464 esac 1465 eval enable_$ac_useropt=no ;; 1466 1467 -docdir | --docdir | --docdi | --doc | --do) 1468 ac_prev=docdir ;; 1469 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1470 docdir=$ac_optarg ;; 1471 1472 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1473 ac_prev=dvidir ;; 1474 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1475 dvidir=$ac_optarg ;; 1476 1477 -enable-* | --enable-*) 1478 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1479 # Reject names that are not valid shell variable names. 1480 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1481 as_fn_error $? "invalid feature name: $ac_useropt" 1482 ac_useropt_orig=$ac_useropt 1483 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1484 case $ac_user_opts in 1485 *" 1486 "enable_$ac_useropt" 1487 "*) ;; 1488 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1489 ac_unrecognized_sep=', ';; 1490 esac 1491 eval enable_$ac_useropt=\$ac_optarg ;; 1492 1493 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1494 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1495 | --exec | --exe | --ex) 1496 ac_prev=exec_prefix ;; 1497 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1498 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1499 | --exec=* | --exe=* | --ex=*) 1500 exec_prefix=$ac_optarg ;; 1501 1502 -gas | --gas | --ga | --g) 1503 # Obsolete; use --with-gas. 1504 with_gas=yes ;; 1505 1506 -help | --help | --hel | --he | -h) 1507 ac_init_help=long ;; 1508 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1509 ac_init_help=recursive ;; 1510 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1511 ac_init_help=short ;; 1512 1513 -host | --host | --hos | --ho) 1514 ac_prev=host_alias ;; 1515 -host=* | --host=* | --hos=* | --ho=*) 1516 host_alias=$ac_optarg ;; 1517 1518 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1519 ac_prev=htmldir ;; 1520 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1521 | --ht=*) 1522 htmldir=$ac_optarg ;; 1523 1524 -includedir | --includedir | --includedi | --included | --include \ 1525 | --includ | --inclu | --incl | --inc) 1526 ac_prev=includedir ;; 1527 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1528 | --includ=* | --inclu=* | --incl=* | --inc=*) 1529 includedir=$ac_optarg ;; 1530 1531 -infodir | --infodir | --infodi | --infod | --info | --inf) 1532 ac_prev=infodir ;; 1533 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1534 infodir=$ac_optarg ;; 1535 1536 -libdir | --libdir | --libdi | --libd) 1537 ac_prev=libdir ;; 1538 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1539 libdir=$ac_optarg ;; 1540 1541 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1542 | --libexe | --libex | --libe) 1543 ac_prev=libexecdir ;; 1544 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1545 | --libexe=* | --libex=* | --libe=*) 1546 libexecdir=$ac_optarg ;; 1547 1548 -localedir | --localedir | --localedi | --localed | --locale) 1549 ac_prev=localedir ;; 1550 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1551 localedir=$ac_optarg ;; 1552 1553 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1554 | --localstate | --localstat | --localsta | --localst | --locals) 1555 ac_prev=localstatedir ;; 1556 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1557 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1558 localstatedir=$ac_optarg ;; 1559 1560 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1561 ac_prev=mandir ;; 1562 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1563 mandir=$ac_optarg ;; 1564 1565 -nfp | --nfp | --nf) 1566 # Obsolete; use --without-fp. 1567 with_fp=no ;; 1568 1569 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1570 | --no-cr | --no-c | -n) 1571 no_create=yes ;; 1572 1573 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1574 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1575 no_recursion=yes ;; 1576 1577 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1578 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1579 | --oldin | --oldi | --old | --ol | --o) 1580 ac_prev=oldincludedir ;; 1581 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1582 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1583 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1584 oldincludedir=$ac_optarg ;; 1585 1586 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1587 ac_prev=prefix ;; 1588 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1589 prefix=$ac_optarg ;; 1590 1591 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1592 | --program-pre | --program-pr | --program-p) 1593 ac_prev=program_prefix ;; 1594 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1595 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1596 program_prefix=$ac_optarg ;; 1597 1598 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1599 | --program-suf | --program-su | --program-s) 1600 ac_prev=program_suffix ;; 1601 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1602 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1603 program_suffix=$ac_optarg ;; 1604 1605 -program-transform-name | --program-transform-name \ 1606 | --program-transform-nam | --program-transform-na \ 1607 | --program-transform-n | --program-transform- \ 1608 | --program-transform | --program-transfor \ 1609 | --program-transfo | --program-transf \ 1610 | --program-trans | --program-tran \ 1611 | --progr-tra | --program-tr | --program-t) 1612 ac_prev=program_transform_name ;; 1613 -program-transform-name=* | --program-transform-name=* \ 1614 | --program-transform-nam=* | --program-transform-na=* \ 1615 | --program-transform-n=* | --program-transform-=* \ 1616 | --program-transform=* | --program-transfor=* \ 1617 | --program-transfo=* | --program-transf=* \ 1618 | --program-trans=* | --program-tran=* \ 1619 | --progr-tra=* | --program-tr=* | --program-t=*) 1620 program_transform_name=$ac_optarg ;; 1621 1622 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1623 ac_prev=pdfdir ;; 1624 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1625 pdfdir=$ac_optarg ;; 1626 1627 -psdir | --psdir | --psdi | --psd | --ps) 1628 ac_prev=psdir ;; 1629 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1630 psdir=$ac_optarg ;; 1631 1632 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1633 | -silent | --silent | --silen | --sile | --sil) 1634 silent=yes ;; 1635 1636 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1637 ac_prev=sbindir ;; 1638 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1639 | --sbi=* | --sb=*) 1640 sbindir=$ac_optarg ;; 1641 1642 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1643 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1644 | --sharedst | --shareds | --shared | --share | --shar \ 1645 | --sha | --sh) 1646 ac_prev=sharedstatedir ;; 1647 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1648 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1649 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1650 | --sha=* | --sh=*) 1651 sharedstatedir=$ac_optarg ;; 1652 1653 -site | --site | --sit) 1654 ac_prev=site ;; 1655 -site=* | --site=* | --sit=*) 1656 site=$ac_optarg ;; 1657 1658 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1659 ac_prev=srcdir ;; 1660 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1661 srcdir=$ac_optarg ;; 1662 1663 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1664 | --syscon | --sysco | --sysc | --sys | --sy) 1665 ac_prev=sysconfdir ;; 1666 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1667 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1668 sysconfdir=$ac_optarg ;; 1669 1670 -target | --target | --targe | --targ | --tar | --ta | --t) 1671 ac_prev=target_alias ;; 1672 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1673 target_alias=$ac_optarg ;; 1674 1675 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1676 verbose=yes ;; 1677 1678 -version | --version | --versio | --versi | --vers | -V) 1679 ac_init_version=: ;; 1680 1681 -with-* | --with-*) 1682 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1683 # Reject names that are not valid shell variable names. 1684 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1685 as_fn_error $? "invalid package name: $ac_useropt" 1686 ac_useropt_orig=$ac_useropt 1687 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1688 case $ac_user_opts in 1689 *" 1690 "with_$ac_useropt" 1691 "*) ;; 1692 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1693 ac_unrecognized_sep=', ';; 1694 esac 1695 eval with_$ac_useropt=\$ac_optarg ;; 1696 1697 -without-* | --without-*) 1698 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1699 # Reject names that are not valid shell variable names. 1700 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1701 as_fn_error $? "invalid package name: $ac_useropt" 1702 ac_useropt_orig=$ac_useropt 1703 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1704 case $ac_user_opts in 1705 *" 1706 "with_$ac_useropt" 1707 "*) ;; 1708 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1709 ac_unrecognized_sep=', ';; 1710 esac 1711 eval with_$ac_useropt=no ;; 1712 1713 --x) 1714 # Obsolete; use --with-x. 1715 with_x=yes ;; 1716 1717 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1718 | --x-incl | --x-inc | --x-in | --x-i) 1719 ac_prev=x_includes ;; 1720 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1721 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1722 x_includes=$ac_optarg ;; 1723 1724 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1725 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1726 ac_prev=x_libraries ;; 1727 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1728 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1729 x_libraries=$ac_optarg ;; 1730 1731 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1732 Try \`$0 --help' for more information" 1733 ;; 1734 1735 *=*) 1736 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1737 # Reject names that are not valid shell variable names. 1738 case $ac_envvar in #( 1739 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1740 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1741 esac 1742 eval $ac_envvar=\$ac_optarg 1743 export $ac_envvar ;; 1744 1745 *) 1746 # FIXME: should be removed in autoconf 3.0. 1747 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1748 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1749 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1750 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1751 ;; 1752 1753 esac 1754 done 1755 1756 if test -n "$ac_prev"; then 1757 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1758 as_fn_error $? "missing argument to $ac_option" 1759 fi 1760 1761 if test -n "$ac_unrecognized_opts"; then 1762 case $enable_option_checking in 1763 no) ;; 1764 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1765 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1766 esac 1767 fi 1768 1769 # Check all directory arguments for consistency. 1770 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1771 datadir sysconfdir sharedstatedir localstatedir includedir \ 1772 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1773 libdir localedir mandir 1774 do 1775 eval ac_val=\$$ac_var 1776 # Remove trailing slashes. 1777 case $ac_val in 1778 */ ) 1779 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1780 eval $ac_var=\$ac_val;; 1781 esac 1782 # Be sure to have absolute directory names. 1783 case $ac_val in 1784 [\\/$]* | ?:[\\/]* ) continue;; 1785 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1786 esac 1787 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1788 done 1789 1790 # There might be people who depend on the old broken behavior: `$host' 1791 # used to hold the argument of --host etc. 1792 # FIXME: To remove some day. 1793 build=$build_alias 1794 host=$host_alias 1795 target=$target_alias 1796 1797 # FIXME: To remove some day. 1798 if test "x$host_alias" != x; then 1799 if test "x$build_alias" = x; then 1800 cross_compiling=maybe 1801 elif test "x$build_alias" != "x$host_alias"; then 1802 cross_compiling=yes 1803 fi 1804 fi 1805 1806 ac_tool_prefix= 1807 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1808 1809 test "$silent" = yes && exec 6>/dev/null 1810 1811 1812 ac_pwd=`pwd` && test -n "$ac_pwd" && 1813 ac_ls_di=`ls -di .` && 1814 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1815 as_fn_error $? "working directory cannot be determined" 1816 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1817 as_fn_error $? "pwd does not report name of working directory" 1818 1819 1820 # Find the source files, if location was not specified. 1821 if test -z "$srcdir"; then 1822 ac_srcdir_defaulted=yes 1823 # Try the directory containing this script, then the parent directory. 1824 ac_confdir=`$as_dirname -- "$as_myself" || 1825 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1826 X"$as_myself" : 'X\(//\)[^/]' \| \ 1827 X"$as_myself" : 'X\(//\)$' \| \ 1828 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1829 $as_echo X"$as_myself" | 1830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1831 s//\1/ 1832 q 1833 } 1834 /^X\(\/\/\)[^/].*/{ 1835 s//\1/ 1836 q 1837 } 1838 /^X\(\/\/\)$/{ 1839 s//\1/ 1840 q 1841 } 1842 /^X\(\/\).*/{ 1843 s//\1/ 1844 q 1845 } 1846 s/.*/./; q'` 1847 srcdir=$ac_confdir 1848 if test ! -r "$srcdir/$ac_unique_file"; then 1849 srcdir=.. 1850 fi 1851 else 1852 ac_srcdir_defaulted=no 1853 fi 1854 if test ! -r "$srcdir/$ac_unique_file"; then 1855 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1856 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1857 fi 1858 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1859 ac_abs_confdir=`( 1860 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1861 pwd)` 1862 # When building in place, set srcdir=. 1863 if test "$ac_abs_confdir" = "$ac_pwd"; then 1864 srcdir=. 1865 fi 1866 # Remove unnecessary trailing slashes from srcdir. 1867 # Double slashes in file names in object file debugging info 1868 # mess up M-x gdb in Emacs. 1869 case $srcdir in 1870 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1871 esac 1872 for ac_var in $ac_precious_vars; do 1873 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1874 eval ac_env_${ac_var}_value=\$${ac_var} 1875 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1876 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1877 done 1878 1879 # 1880 # Report the --help message. 1881 # 1882 if test "$ac_init_help" = "long"; then 1883 # Omit some internal or obsolete options to make the list less imposing. 1884 # This message is too long to be a string in the A/UX 3.1 sh. 1885 cat <<_ACEOF 1886 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1887 1888 Usage: $0 [OPTION]... [VAR=VALUE]... 1889 1890 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1891 VAR=VALUE. See below for descriptions of some of the useful variables. 1892 1893 Defaults for the options are specified in brackets. 1894 1895 Configuration: 1896 -h, --help display this help and exit 1897 --help=short display options specific to this package 1898 --help=recursive display the short help of all the included packages 1899 -V, --version display version information and exit 1900 -q, --quiet, --silent do not print \`checking ...' messages 1901 --cache-file=FILE cache test results in FILE [disabled] 1902 -C, --config-cache alias for \`--cache-file=config.cache' 1903 -n, --no-create do not create output files 1904 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1905 1906 Installation directories: 1907 --prefix=PREFIX install architecture-independent files in PREFIX 1908 [$ac_default_prefix] 1909 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1910 [PREFIX] 1911 1912 By default, \`make install' will install all the files in 1913 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1914 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1915 for instance \`--prefix=\$HOME'. 1916 1917 For better control, use the options below. 1918 1919 Fine tuning of the installation directories: 1920 --bindir=DIR user executables [EPREFIX/bin] 1921 --sbindir=DIR system admin executables [EPREFIX/sbin] 1922 --libexecdir=DIR program executables [EPREFIX/libexec] 1923 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1924 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1925 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1926 --libdir=DIR object code libraries [EPREFIX/lib] 1927 --includedir=DIR C header files [PREFIX/include] 1928 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1929 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1930 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1931 --infodir=DIR info documentation [DATAROOTDIR/info] 1932 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1933 --mandir=DIR man documentation [DATAROOTDIR/man] 1934 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1935 --htmldir=DIR html documentation [DOCDIR] 1936 --dvidir=DIR dvi documentation [DOCDIR] 1937 --pdfdir=DIR pdf documentation [DOCDIR] 1938 --psdir=DIR ps documentation [DOCDIR] 1939 _ACEOF 1940 1941 cat <<\_ACEOF 1942 1943 X features: 1944 --x-includes=DIR X include files are in DIR 1945 --x-libraries=DIR X library files are in DIR 1946 1947 System types: 1948 --build=BUILD configure for building on BUILD [guessed] 1949 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1950 --target=TARGET configure for building compilers for TARGET [HOST] 1951 _ACEOF 1952 fi 1953 1954 if test -n "$ac_init_help"; then 1955 case $ac_init_help in 1956 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1957 esac 1958 cat <<\_ACEOF 1959 1960 Optional Features: 1961 --disable-option-checking ignore unrecognized --enable/--with options 1962 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1963 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1964 --enable-openjdk-only suppress building custom source even if present 1965 [disabled] 1966 --enable-debug set the debug level to fastdebug (shorthand for 1967 --with-debug-level=fastdebug) [disabled] 1968 --enable-headless-only only build headless (no GUI) support [disabled] 1969 --enable-full-docs build complete documentation [enabled if all tools 1970 found] 1971 --disable-unlimited-crypto 1972 Disable unlimited crypto policy [enabled] 1973 --disable-keep-packaged-modules 1974 Do not keep packaged modules in jdk image [enable] 1975 --enable-static-build enable static library build [disabled] 1976 --disable-warnings-as-errors 1977 do not consider native warnings to be an error 1978 [enabled] 1979 --enable-debug-symbols Deprecated. Option is kept for backwards 1980 compatibility and is ignored 1981 --enable-zip-debug-info Deprecated. Option is kept for backwards 1982 compatibility and is ignored 1983 --enable-native-coverage 1984 enable native compilation with code coverage 1985 data[disabled] 1986 --enable-asan enable AddressSanitizer if possible [disabled] 1987 --enable-dtrace[=yes/no/auto] 1988 enable dtrace. Default is auto, where dtrace is 1989 enabled if all dependencies are present. 1990 --enable-aot[=yes/no/auto] 1991 enable ahead of time compilation feature. Default is 1992 auto, where aot is enabled if all dependencies are 1993 present. 1994 --enable-cds[=yes/no] enable class data sharing feature in non-minimal VM. 1995 Default is yes. 1996 --disable-hotspot-gtest Disables building of the Hotspot unit tests 1997 [enabled] 1998 --disable-freetype-bundling 1999 disable bundling of the freetype library with the 2000 build result [enabled on Windows or when using 2001 --with-freetype, disabled otherwise] 2002 --enable-libffi-bundling 2003 enable bundling of libffi.so to make the built JDK 2004 runnable on more systems 2005 --enable-jtreg-failure-handler 2006 forces build of the jtreg failure handler to be 2007 enabled, missing dependencies become fatal errors. 2008 Default is auto, where the failure handler is built 2009 if all dependencies are present and otherwise just 2010 disabled. 2011 --disable-generate-classlist 2012 forces enabling or disabling of the generation of a 2013 CDS classlist at build time. Default is to generate 2014 it when either the server or client JVMs are built 2015 and enable-cds is true. 2016 --enable-sjavac use sjavac to do fast incremental compiles 2017 [disabled] 2018 --disable-javac-server disable javac server [enabled] 2019 --enable-icecc enable distribted compilation of native code using 2020 icecc/icecream [disabled] 2021 --disable-precompiled-headers 2022 disable using precompiled headers when compiling C++ 2023 [enabled] 2024 --enable-ccache enable using ccache to speed up recompilations 2025 [disabled] 2026 2027 Optional Packages: 2028 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 2029 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 2030 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 2031 support it), e.g. --with-target-bits=32 [guessed] 2032 --with-custom-make-dir Deprecated. Option is kept for backwards 2033 compatibility and is ignored 2034 --with-jdk-variant JDK variant to build (normal) [normal] 2035 --with-debug-level set the debug level (release, fastdebug, slowdebug, 2036 optimized) [release] 2037 --with-jvm-variants JVM variants (separated by commas) to build 2038 (server,client,minimal,core,zero,custom) [server] 2039 --with-cpu-port specify sources to use for Hotspot 64-bit ARM port 2040 (arm64,aarch64) [aarch64] 2041 --with-devkit use this devkit for compilers, tools and resources 2042 --with-sys-root alias for --with-sysroot for backwards compatability 2043 --with-sysroot use this directory as sysroot 2044 --with-tools-dir alias for --with-toolchain-path for backwards 2045 compatibility 2046 --with-toolchain-path prepend these directories when searching for 2047 toolchain binaries (compilers etc) 2048 --with-extra-path prepend these directories to the default path 2049 --with-sdk-name use the platform SDK of the given name. [macosx] 2050 --with-conf-name use this as the name of the configuration [generated 2051 from important configuration options] 2052 --with-output-sync set make output sync type if supported by make. 2053 [recurse] 2054 --with-default-make-target 2055 set the default make target [exploded-image] 2056 --with-cacerts-file specify alternative cacerts file 2057 --with-copyright-year Set copyright year value for build [current year] 2058 --with-milestone Deprecated. Option is kept for backwards 2059 compatibility and is ignored 2060 --with-update-version Deprecated. Option is kept for backwards 2061 compatibility and is ignored 2062 --with-user-release-suffix 2063 Deprecated. Option is kept for backwards 2064 compatibility and is ignored 2065 --with-build-number Deprecated. Option is kept for backwards 2066 compatibility and is ignored 2067 --with-version-major Deprecated. Option is kept for backwards 2068 compatibility and is ignored 2069 --with-version-minor Deprecated. Option is kept for backwards 2070 compatibility and is ignored 2071 --with-version-security Deprecated. Option is kept for backwards 2072 compatibility and is ignored 2073 --with-vendor-name Set vendor name [not specified] 2074 --with-version-string Set version string [calculated] 2075 --with-version-pre Set the base part of the version 'PRE' field 2076 (pre-release identifier) ['internal'] 2077 --with-version-opt Set version 'OPT' field (build metadata) 2078 [<timestamp>.<user>.<dirname>] 2079 --with-version-build Set version 'BUILD' field (build number) [not 2080 specified] 2081 --with-version-feature Set version 'FEATURE' field (first number) [current 2082 source value] 2083 --with-version-interim Set version 'INTERIM' field (second number) [current 2084 source value] 2085 --with-version-update Set version 'UPDATE' field (third number) [current 2086 source value] 2087 --with-version-patch Set version 'PATCH' field (fourth number) [not 2088 specified] 2089 --with-version-date Set version date [current source value] 2090 --with-vendor-version-string 2091 Set vendor version string [not specified] 2092 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 2093 --with-build-jdk path to JDK of same version as is being built[the 2094 newly built JDK] 2095 --with-import-modules import a set of prebuilt modules either as a zip 2096 file or an exploded directory 2097 --with-toolchain-type the toolchain type (or family) to use, use '--help' 2098 to show possible values [platform dependent] 2099 --with-extra-cflags extra flags to be used when compiling jdk c-files 2100 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 2101 --with-extra-ldflags extra flags to be used when linking jdk 2102 --with-toolchain-version 2103 the version of the toolchain to look for, use 2104 '--help' to show possible values [platform 2105 dependent] 2106 --with-build-devkit Devkit to use for the build platform toolchain 2107 --with-jtreg Regression Test Harness [probed] 2108 --with-jib Jib dependency management tool [not used] 2109 --with-abi-profile specify ABI profile for ARM builds 2110 (arm-vfp-sflt,arm-vfp-hflt,arm-sflt, 2111 armv5-vfp-sflt,armv6-vfp-hflt,arm64,aarch64) 2112 [toolchain dependent] 2113 --with-macosx-version-max 2114 error on use of newer functionality. [macosx] 2115 --with-native-debug-symbols 2116 set the native debug symbol configuration (none, 2117 internal, external, zipped) [varying] 2118 --with-stdc++lib=<static>,<dynamic>,<default> 2119 force linking of the C++ runtime on Linux to either 2120 static or dynamic, default is static with dynamic as 2121 fallback 2122 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 2123 (Windows only) [probed] 2124 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 2125 (Windows only) [probed] 2126 --with-x use the X Window System 2127 --with-cups specify prefix directory for the cups package 2128 (expecting the headers under PATH/include) 2129 --with-cups-include specify directory for the cups include files 2130 --with-fontconfig specify prefix directory for the fontconfig package 2131 (expecting the headers under PATH/include) 2132 --with-fontconfig-include 2133 specify directory for the fontconfig include files 2134 --with-freetype specify prefix directory for the freetype package 2135 (expecting the libraries under PATH/lib and the 2136 headers under PATH/include) 2137 --with-freetype-include specify directory for the freetype include files 2138 --with-freetype-lib specify directory for the freetype library 2139 --with-freetype-src specify directory with freetype sources to 2140 automatically build the library (experimental, 2141 Windows-only) 2142 --with-freetype-license if bundling freetype, also bundle this license file 2143 --with-alsa specify prefix directory for the alsa package 2144 (expecting the libraries under PATH/lib and the 2145 headers under PATH/include) 2146 --with-alsa-include specify directory for the alsa include files 2147 --with-alsa-lib specify directory for the alsa library 2148 --with-libffi specify prefix directory for the libffi package 2149 (expecting the libraries under PATH/lib and the 2150 headers under PATH/include) 2151 --with-libffi-include specify directory for the libffi include files 2152 --with-libffi-lib specify directory for the libffi library 2153 --with-libjpeg use libjpeg from build system or OpenJDK source 2154 (system, bundled) [bundled] 2155 --with-giflib use giflib from build system or OpenJDK source 2156 (system, bundled) [bundled] 2157 --with-libpng use libpng from build system or OpenJDK source 2158 (system, bundled) [bundled] 2159 --with-zlib use zlib from build system or OpenJDK source 2160 (system, bundled) [bundled] 2161 --with-lcms use lcms2 from build system or OpenJDK source 2162 (system, bundled) [bundled] 2163 --with-dxsdk Deprecated. Option is kept for backwards 2164 compatibility and is ignored 2165 --with-dxsdk-lib Deprecated. Option is kept for backwards 2166 compatibility and is ignored 2167 --with-dxsdk-include Deprecated. Option is kept for backwards 2168 compatibility and is ignored 2169 --with-jvm-features additional JVM features to enable (separated by 2170 comma), use '--help' to show possible values [none] 2171 --with-jvm-interpreter Deprecated. Option is kept for backwards 2172 compatibility and is ignored 2173 --with-num-cores number of cores in the build system, e.g. 2174 --with-num-cores=8 [probed] 2175 --with-memory-size memory (in MB) available in the build system, e.g. 2176 --with-memory-size=1024 [probed] 2177 --with-jobs number of parallel jobs to let make run [calculated 2178 based on cores and memory] 2179 --with-test-jobs number of parallel tests jobs to run [based on build 2180 jobs] 2181 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 2182 invocations of boot JDK, overriding the default 2183 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 2184 -enableassertions" 2185 --with-sjavac-server-java 2186 use this java binary for running the sjavac 2187 background server [Boot JDK java] 2188 --with-ccache-dir where to store ccache files [~/.ccache] 2189 2190 Some influential environment variables: 2191 BASENAME Override default value for BASENAME 2192 BASH Override default value for BASH 2193 CAT Override default value for CAT 2194 CHMOD Override default value for CHMOD 2195 CMP Override default value for CMP 2196 COMM Override default value for COMM 2197 CP Override default value for CP 2198 CUT Override default value for CUT 2199 DATE Override default value for DATE 2200 DIFF Override default value for DIFF 2201 DIRNAME Override default value for DIRNAME 2202 ECHO Override default value for ECHO 2203 EXPR Override default value for EXPR 2204 FILE Override default value for FILE 2205 FIND Override default value for FIND 2206 HEAD Override default value for HEAD 2207 GUNZIP Override default value for GUNZIP 2208 GZIP Override default value for GZIP 2209 LN Override default value for LN 2210 LS Override default value for LS 2211 MKDIR Override default value for MKDIR 2212 MKTEMP Override default value for MKTEMP 2213 MV Override default value for MV 2214 NAWK Override default value for NAWK 2215 PRINTF Override default value for PRINTF 2216 RM Override default value for RM 2217 RMDIR Override default value for RMDIR 2218 SH Override default value for SH 2219 SORT Override default value for SORT 2220 TAIL Override default value for TAIL 2221 TAR Override default value for TAR 2222 TEE Override default value for TEE 2223 TOUCH Override default value for TOUCH 2224 TR Override default value for TR 2225 UNAME Override default value for UNAME 2226 UNIQ Override default value for UNIQ 2227 WC Override default value for WC 2228 WHICH Override default value for WHICH 2229 XARGS Override default value for XARGS 2230 AWK Override default value for AWK 2231 GREP Override default value for GREP 2232 EGREP Override default value for EGREP 2233 FGREP Override default value for FGREP 2234 SED Override default value for SED 2235 CYGPATH Override default value for CYGPATH 2236 READLINK Override default value for READLINK 2237 DF Override default value for DF 2238 CPIO Override default value for CPIO 2239 NICE Override default value for NICE 2240 PANDOC Override default value for PANDOC 2241 MAKE Override default value for MAKE 2242 UNZIP Override default value for UNZIP 2243 ZIPEXE Override default value for ZIPEXE 2244 LDD Override default value for LDD 2245 READELF Override default value for READELF 2246 DOT Override default value for DOT 2247 HG Override default value for HG 2248 STAT Override default value for STAT 2249 TIME Override default value for TIME 2250 FLOCK Override default value for FLOCK 2251 DTRACE Override default value for DTRACE 2252 PATCH Override default value for PATCH 2253 DSYMUTIL Override default value for DSYMUTIL 2254 XATTR Override default value for XATTR 2255 CODESIGN Override default value for CODESIGN 2256 SETFILE Override default value for SETFILE 2257 PKG_CONFIG path to pkg-config utility 2258 JAVA Override default value for JAVA 2259 JAVAC Override default value for JAVAC 2260 JAVADOC Override default value for JAVADOC 2261 JAR Override default value for JAR 2262 JARSIGNER Override default value for JARSIGNER 2263 CC C compiler command 2264 CFLAGS C compiler flags 2265 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2266 nonstandard directory <lib dir> 2267 LIBS libraries to pass to the linker, e.g. -l<library> 2268 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2269 you have headers in a nonstandard directory <include dir> 2270 CXX C++ compiler command 2271 CXXFLAGS C++ compiler flags 2272 CPP C preprocessor 2273 CXXCPP C++ preprocessor 2274 AS Override default value for AS 2275 AR Override default value for AR 2276 LIPO Override default value for LIPO 2277 OTOOL Override default value for OTOOL 2278 INSTALL_NAME_TOOL 2279 Override default value for INSTALL_NAME_TOOL 2280 STRIP Override default value for STRIP 2281 NM Override default value for NM 2282 GNM Override default value for GNM 2283 OBJCOPY Override default value for OBJCOPY 2284 OBJDUMP Override default value for OBJDUMP 2285 BUILD_CC Override default value for BUILD_CC 2286 BUILD_CXX Override default value for BUILD_CXX 2287 BUILD_NM Override default value for BUILD_NM 2288 BUILD_AR Override default value for BUILD_AR 2289 BUILD_OBJCOPY 2290 Override default value for BUILD_OBJCOPY 2291 BUILD_STRIP Override default value for BUILD_STRIP 2292 JTREGEXE Override default value for JTREGEXE 2293 XMKMF Path to xmkmf, Makefile generator for X Window System 2294 FREETYPE_CFLAGS 2295 C compiler flags for FREETYPE, overriding pkg-config 2296 FREETYPE_LIBS 2297 linker flags for FREETYPE, overriding pkg-config 2298 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2299 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2300 LIBFFI_CFLAGS 2301 C compiler flags for LIBFFI, overriding pkg-config 2302 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2303 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2304 PNG_LIBS linker flags for PNG, overriding pkg-config 2305 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2306 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2307 ICECC_CMD Override default value for ICECC_CMD 2308 ICECC_CREATE_ENV 2309 Override default value for ICECC_CREATE_ENV 2310 ICECC_WRAPPER 2311 Override default value for ICECC_WRAPPER 2312 CCACHE Override default value for CCACHE 2313 2314 Use these variables to override the choices made by `configure' or to help 2315 it to find libraries and programs with nonstandard names/locations. 2316 2317 Report bugs to <build-dev@openjdk.java.net>. 2318 OpenJDK home page: <http://openjdk.java.net>. 2319 _ACEOF 2320 ac_status=$? 2321 fi 2322 2323 if test "$ac_init_help" = "recursive"; then 2324 # If there are subdirs, report their specific --help. 2325 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2326 test -d "$ac_dir" || 2327 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2328 continue 2329 ac_builddir=. 2330 2331 case "$ac_dir" in 2332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2333 *) 2334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2335 # A ".." for each directory in $ac_dir_suffix. 2336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2337 case $ac_top_builddir_sub in 2338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2340 esac ;; 2341 esac 2342 ac_abs_top_builddir=$ac_pwd 2343 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2344 # for backward compatibility: 2345 ac_top_builddir=$ac_top_build_prefix 2346 2347 case $srcdir in 2348 .) # We are building in place. 2349 ac_srcdir=. 2350 ac_top_srcdir=$ac_top_builddir_sub 2351 ac_abs_top_srcdir=$ac_pwd ;; 2352 [\\/]* | ?:[\\/]* ) # Absolute name. 2353 ac_srcdir=$srcdir$ac_dir_suffix; 2354 ac_top_srcdir=$srcdir 2355 ac_abs_top_srcdir=$srcdir ;; 2356 *) # Relative name. 2357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2358 ac_top_srcdir=$ac_top_build_prefix$srcdir 2359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2360 esac 2361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2362 2363 cd "$ac_dir" || { ac_status=$?; continue; } 2364 # Check for guested configure. 2365 if test -f "$ac_srcdir/configure.gnu"; then 2366 echo && 2367 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2368 elif test -f "$ac_srcdir/configure"; then 2369 echo && 2370 $SHELL "$ac_srcdir/configure" --help=recursive 2371 else 2372 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2373 fi || ac_status=$? 2374 cd "$ac_pwd" || { ac_status=$?; break; } 2375 done 2376 fi 2377 2378 test -n "$ac_init_help" && exit $ac_status 2379 if $ac_init_version; then 2380 cat <<\_ACEOF 2381 OpenJDK configure jdk9 2382 generated by GNU Autoconf 2.69 2383 2384 Copyright (C) 2012 Free Software Foundation, Inc. 2385 This configure script is free software; the Free Software Foundation 2386 gives unlimited permission to copy, distribute and modify it. 2387 _ACEOF 2388 exit 2389 fi 2390 2391 ## ------------------------ ## 2392 ## Autoconf initialization. ## 2393 ## ------------------------ ## 2394 2395 # ac_fn_c_try_compile LINENO 2396 # -------------------------- 2397 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2398 ac_fn_c_try_compile () 2399 { 2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2401 rm -f conftest.$ac_objext 2402 if { { ac_try="$ac_compile" 2403 case "(($ac_try" in 2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2405 *) ac_try_echo=$ac_try;; 2406 esac 2407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2408 $as_echo "$ac_try_echo"; } >&5 2409 (eval "$ac_compile") 2>conftest.err 2410 ac_status=$? 2411 if test -s conftest.err; then 2412 grep -v '^ *+' conftest.err >conftest.er1 2413 cat conftest.er1 >&5 2414 mv -f conftest.er1 conftest.err 2415 fi 2416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2417 test $ac_status = 0; } && { 2418 test -z "$ac_c_werror_flag" || 2419 test ! -s conftest.err 2420 } && test -s conftest.$ac_objext; then : 2421 ac_retval=0 2422 else 2423 $as_echo "$as_me: failed program was:" >&5 2424 sed 's/^/| /' conftest.$ac_ext >&5 2425 2426 ac_retval=1 2427 fi 2428 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2429 as_fn_set_status $ac_retval 2430 2431 } # ac_fn_c_try_compile 2432 2433 # ac_fn_cxx_try_compile LINENO 2434 # ---------------------------- 2435 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2436 ac_fn_cxx_try_compile () 2437 { 2438 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2439 rm -f conftest.$ac_objext 2440 if { { ac_try="$ac_compile" 2441 case "(($ac_try" in 2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2443 *) ac_try_echo=$ac_try;; 2444 esac 2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2446 $as_echo "$ac_try_echo"; } >&5 2447 (eval "$ac_compile") 2>conftest.err 2448 ac_status=$? 2449 if test -s conftest.err; then 2450 grep -v '^ *+' conftest.err >conftest.er1 2451 cat conftest.er1 >&5 2452 mv -f conftest.er1 conftest.err 2453 fi 2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2455 test $ac_status = 0; } && { 2456 test -z "$ac_cxx_werror_flag" || 2457 test ! -s conftest.err 2458 } && test -s conftest.$ac_objext; then : 2459 ac_retval=0 2460 else 2461 $as_echo "$as_me: failed program was:" >&5 2462 sed 's/^/| /' conftest.$ac_ext >&5 2463 2464 ac_retval=1 2465 fi 2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2467 as_fn_set_status $ac_retval 2468 2469 } # ac_fn_cxx_try_compile 2470 2471 # ac_fn_c_try_cpp LINENO 2472 # ---------------------- 2473 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2474 ac_fn_c_try_cpp () 2475 { 2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2477 if { { ac_try="$ac_cpp conftest.$ac_ext" 2478 case "(($ac_try" in 2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2480 *) ac_try_echo=$ac_try;; 2481 esac 2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2483 $as_echo "$ac_try_echo"; } >&5 2484 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2485 ac_status=$? 2486 if test -s conftest.err; then 2487 grep -v '^ *+' conftest.err >conftest.er1 2488 cat conftest.er1 >&5 2489 mv -f conftest.er1 conftest.err 2490 fi 2491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2492 test $ac_status = 0; } > conftest.i && { 2493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2494 test ! -s conftest.err 2495 }; then : 2496 ac_retval=0 2497 else 2498 $as_echo "$as_me: failed program was:" >&5 2499 sed 's/^/| /' conftest.$ac_ext >&5 2500 2501 ac_retval=1 2502 fi 2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2504 as_fn_set_status $ac_retval 2505 2506 } # ac_fn_c_try_cpp 2507 2508 # ac_fn_cxx_try_cpp LINENO 2509 # ------------------------ 2510 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2511 ac_fn_cxx_try_cpp () 2512 { 2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2514 if { { ac_try="$ac_cpp conftest.$ac_ext" 2515 case "(($ac_try" in 2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2517 *) ac_try_echo=$ac_try;; 2518 esac 2519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2520 $as_echo "$ac_try_echo"; } >&5 2521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2522 ac_status=$? 2523 if test -s conftest.err; then 2524 grep -v '^ *+' conftest.err >conftest.er1 2525 cat conftest.er1 >&5 2526 mv -f conftest.er1 conftest.err 2527 fi 2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2529 test $ac_status = 0; } > conftest.i && { 2530 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2531 test ! -s conftest.err 2532 }; then : 2533 ac_retval=0 2534 else 2535 $as_echo "$as_me: failed program was:" >&5 2536 sed 's/^/| /' conftest.$ac_ext >&5 2537 2538 ac_retval=1 2539 fi 2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2541 as_fn_set_status $ac_retval 2542 2543 } # ac_fn_cxx_try_cpp 2544 2545 # ac_fn_c_try_link LINENO 2546 # ----------------------- 2547 # Try to link conftest.$ac_ext, and return whether this succeeded. 2548 ac_fn_c_try_link () 2549 { 2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2551 rm -f conftest.$ac_objext conftest$ac_exeext 2552 if { { ac_try="$ac_link" 2553 case "(($ac_try" in 2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2555 *) ac_try_echo=$ac_try;; 2556 esac 2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2558 $as_echo "$ac_try_echo"; } >&5 2559 (eval "$ac_link") 2>conftest.err 2560 ac_status=$? 2561 if test -s conftest.err; then 2562 grep -v '^ *+' conftest.err >conftest.er1 2563 cat conftest.er1 >&5 2564 mv -f conftest.er1 conftest.err 2565 fi 2566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2567 test $ac_status = 0; } && { 2568 test -z "$ac_c_werror_flag" || 2569 test ! -s conftest.err 2570 } && test -s conftest$ac_exeext && { 2571 test "$cross_compiling" = yes || 2572 test -x conftest$ac_exeext 2573 }; then : 2574 ac_retval=0 2575 else 2576 $as_echo "$as_me: failed program was:" >&5 2577 sed 's/^/| /' conftest.$ac_ext >&5 2578 2579 ac_retval=1 2580 fi 2581 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2582 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2583 # interfere with the next link command; also delete a directory that is 2584 # left behind by Apple's compiler. We do this before executing the actions. 2585 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2587 as_fn_set_status $ac_retval 2588 2589 } # ac_fn_c_try_link 2590 2591 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2592 # --------------------------------------------------------- 2593 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2594 # the include files in INCLUDES and setting the cache variable VAR 2595 # accordingly. 2596 ac_fn_cxx_check_header_mongrel () 2597 { 2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2599 if eval \${$3+:} false; then : 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2601 $as_echo_n "checking for $2... " >&6; } 2602 if eval \${$3+:} false; then : 2603 $as_echo_n "(cached) " >&6 2604 fi 2605 eval ac_res=\$$3 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2607 $as_echo "$ac_res" >&6; } 2608 else 2609 # Is the header compilable? 2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2611 $as_echo_n "checking $2 usability... " >&6; } 2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2613 /* end confdefs.h. */ 2614 $4 2615 #include <$2> 2616 _ACEOF 2617 if ac_fn_cxx_try_compile "$LINENO"; then : 2618 ac_header_compiler=yes 2619 else 2620 ac_header_compiler=no 2621 fi 2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2624 $as_echo "$ac_header_compiler" >&6; } 2625 2626 # Is the header present? 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2628 $as_echo_n "checking $2 presence... " >&6; } 2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2630 /* end confdefs.h. */ 2631 #include <$2> 2632 _ACEOF 2633 if ac_fn_cxx_try_cpp "$LINENO"; then : 2634 ac_header_preproc=yes 2635 else 2636 ac_header_preproc=no 2637 fi 2638 rm -f conftest.err conftest.i conftest.$ac_ext 2639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2640 $as_echo "$ac_header_preproc" >&6; } 2641 2642 # So? What about this header? 2643 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2644 yes:no: ) 2645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2646 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2648 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2649 ;; 2650 no:yes:* ) 2651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2652 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2654 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2656 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2658 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2661 ( $as_echo "## ----------------------------------------- ## 2662 ## Report this to build-dev@openjdk.java.net ## 2663 ## ----------------------------------------- ##" 2664 ) | sed "s/^/$as_me: WARNING: /" >&2 2665 ;; 2666 esac 2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2668 $as_echo_n "checking for $2... " >&6; } 2669 if eval \${$3+:} false; then : 2670 $as_echo_n "(cached) " >&6 2671 else 2672 eval "$3=\$ac_header_compiler" 2673 fi 2674 eval ac_res=\$$3 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2676 $as_echo "$ac_res" >&6; } 2677 fi 2678 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2679 2680 } # ac_fn_cxx_check_header_mongrel 2681 2682 # ac_fn_cxx_try_run LINENO 2683 # ------------------------ 2684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2685 # that executables *can* be run. 2686 ac_fn_cxx_try_run () 2687 { 2688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2689 if { { ac_try="$ac_link" 2690 case "(($ac_try" in 2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2692 *) ac_try_echo=$ac_try;; 2693 esac 2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2695 $as_echo "$ac_try_echo"; } >&5 2696 (eval "$ac_link") 2>&5 2697 ac_status=$? 2698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2700 { { case "(($ac_try" in 2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2702 *) ac_try_echo=$ac_try;; 2703 esac 2704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2705 $as_echo "$ac_try_echo"; } >&5 2706 (eval "$ac_try") 2>&5 2707 ac_status=$? 2708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2709 test $ac_status = 0; }; }; then : 2710 ac_retval=0 2711 else 2712 $as_echo "$as_me: program exited with status $ac_status" >&5 2713 $as_echo "$as_me: failed program was:" >&5 2714 sed 's/^/| /' conftest.$ac_ext >&5 2715 2716 ac_retval=$ac_status 2717 fi 2718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2720 as_fn_set_status $ac_retval 2721 2722 } # ac_fn_cxx_try_run 2723 2724 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2725 # --------------------------------------------------------- 2726 # Tests whether HEADER exists and can be compiled using the include files in 2727 # INCLUDES, setting the cache variable VAR accordingly. 2728 ac_fn_cxx_check_header_compile () 2729 { 2730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2732 $as_echo_n "checking for $2... " >&6; } 2733 if eval \${$3+:} false; then : 2734 $as_echo_n "(cached) " >&6 2735 else 2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2737 /* end confdefs.h. */ 2738 $4 2739 #include <$2> 2740 _ACEOF 2741 if ac_fn_cxx_try_compile "$LINENO"; then : 2742 eval "$3=yes" 2743 else 2744 eval "$3=no" 2745 fi 2746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2747 fi 2748 eval ac_res=\$$3 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2750 $as_echo "$ac_res" >&6; } 2751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2752 2753 } # ac_fn_cxx_check_header_compile 2754 2755 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2756 # ---------------------------------------------- 2757 # Tries to find the compile-time value of EXPR in a program that includes 2758 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2759 # computed 2760 ac_fn_cxx_compute_int () 2761 { 2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2763 if test "$cross_compiling" = yes; then 2764 # Depending upon the size, compute the lo and hi bounds. 2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2766 /* end confdefs.h. */ 2767 $4 2768 int 2769 main () 2770 { 2771 static int test_array [1 - 2 * !(($2) >= 0)]; 2772 test_array [0] = 0; 2773 return test_array [0]; 2774 2775 ; 2776 return 0; 2777 } 2778 _ACEOF 2779 if ac_fn_cxx_try_compile "$LINENO"; then : 2780 ac_lo=0 ac_mid=0 2781 while :; do 2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2783 /* end confdefs.h. */ 2784 $4 2785 int 2786 main () 2787 { 2788 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2789 test_array [0] = 0; 2790 return test_array [0]; 2791 2792 ; 2793 return 0; 2794 } 2795 _ACEOF 2796 if ac_fn_cxx_try_compile "$LINENO"; then : 2797 ac_hi=$ac_mid; break 2798 else 2799 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2800 if test $ac_lo -le $ac_mid; then 2801 ac_lo= ac_hi= 2802 break 2803 fi 2804 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2805 fi 2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2807 done 2808 else 2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2810 /* end confdefs.h. */ 2811 $4 2812 int 2813 main () 2814 { 2815 static int test_array [1 - 2 * !(($2) < 0)]; 2816 test_array [0] = 0; 2817 return test_array [0]; 2818 2819 ; 2820 return 0; 2821 } 2822 _ACEOF 2823 if ac_fn_cxx_try_compile "$LINENO"; then : 2824 ac_hi=-1 ac_mid=-1 2825 while :; do 2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2827 /* end confdefs.h. */ 2828 $4 2829 int 2830 main () 2831 { 2832 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2833 test_array [0] = 0; 2834 return test_array [0]; 2835 2836 ; 2837 return 0; 2838 } 2839 _ACEOF 2840 if ac_fn_cxx_try_compile "$LINENO"; then : 2841 ac_lo=$ac_mid; break 2842 else 2843 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2844 if test $ac_mid -le $ac_hi; then 2845 ac_lo= ac_hi= 2846 break 2847 fi 2848 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2849 fi 2850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2851 done 2852 else 2853 ac_lo= ac_hi= 2854 fi 2855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2856 fi 2857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2858 # Binary search between lo and hi bounds. 2859 while test "x$ac_lo" != "x$ac_hi"; do 2860 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2862 /* end confdefs.h. */ 2863 $4 2864 int 2865 main () 2866 { 2867 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2868 test_array [0] = 0; 2869 return test_array [0]; 2870 2871 ; 2872 return 0; 2873 } 2874 _ACEOF 2875 if ac_fn_cxx_try_compile "$LINENO"; then : 2876 ac_hi=$ac_mid 2877 else 2878 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2879 fi 2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2881 done 2882 case $ac_lo in #(( 2883 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2884 '') ac_retval=1 ;; 2885 esac 2886 else 2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2888 /* end confdefs.h. */ 2889 $4 2890 static long int longval () { return $2; } 2891 static unsigned long int ulongval () { return $2; } 2892 #include <stdio.h> 2893 #include <stdlib.h> 2894 int 2895 main () 2896 { 2897 2898 FILE *f = fopen ("conftest.val", "w"); 2899 if (! f) 2900 return 1; 2901 if (($2) < 0) 2902 { 2903 long int i = longval (); 2904 if (i != ($2)) 2905 return 1; 2906 fprintf (f, "%ld", i); 2907 } 2908 else 2909 { 2910 unsigned long int i = ulongval (); 2911 if (i != ($2)) 2912 return 1; 2913 fprintf (f, "%lu", i); 2914 } 2915 /* Do not output a trailing newline, as this causes \r\n confusion 2916 on some platforms. */ 2917 return ferror (f) || fclose (f) != 0; 2918 2919 ; 2920 return 0; 2921 } 2922 _ACEOF 2923 if ac_fn_cxx_try_run "$LINENO"; then : 2924 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2925 else 2926 ac_retval=1 2927 fi 2928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2929 conftest.$ac_objext conftest.beam conftest.$ac_ext 2930 rm -f conftest.val 2931 2932 fi 2933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2934 as_fn_set_status $ac_retval 2935 2936 } # ac_fn_cxx_compute_int 2937 2938 # ac_fn_cxx_try_link LINENO 2939 # ------------------------- 2940 # Try to link conftest.$ac_ext, and return whether this succeeded. 2941 ac_fn_cxx_try_link () 2942 { 2943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2944 rm -f conftest.$ac_objext conftest$ac_exeext 2945 if { { ac_try="$ac_link" 2946 case "(($ac_try" in 2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2948 *) ac_try_echo=$ac_try;; 2949 esac 2950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2951 $as_echo "$ac_try_echo"; } >&5 2952 (eval "$ac_link") 2>conftest.err 2953 ac_status=$? 2954 if test -s conftest.err; then 2955 grep -v '^ *+' conftest.err >conftest.er1 2956 cat conftest.er1 >&5 2957 mv -f conftest.er1 conftest.err 2958 fi 2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2960 test $ac_status = 0; } && { 2961 test -z "$ac_cxx_werror_flag" || 2962 test ! -s conftest.err 2963 } && test -s conftest$ac_exeext && { 2964 test "$cross_compiling" = yes || 2965 test -x conftest$ac_exeext 2966 }; then : 2967 ac_retval=0 2968 else 2969 $as_echo "$as_me: failed program was:" >&5 2970 sed 's/^/| /' conftest.$ac_ext >&5 2971 2972 ac_retval=1 2973 fi 2974 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2975 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2976 # interfere with the next link command; also delete a directory that is 2977 # left behind by Apple's compiler. We do this before executing the actions. 2978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2980 as_fn_set_status $ac_retval 2981 2982 } # ac_fn_cxx_try_link 2983 2984 # ac_fn_cxx_check_func LINENO FUNC VAR 2985 # ------------------------------------ 2986 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2987 ac_fn_cxx_check_func () 2988 { 2989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2991 $as_echo_n "checking for $2... " >&6; } 2992 if eval \${$3+:} false; then : 2993 $as_echo_n "(cached) " >&6 2994 else 2995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2996 /* end confdefs.h. */ 2997 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2998 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2999 #define $2 innocuous_$2 3000 3001 /* System header to define __stub macros and hopefully few prototypes, 3002 which can conflict with char $2 (); below. 3003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3004 <limits.h> exists even on freestanding compilers. */ 3005 3006 #ifdef __STDC__ 3007 # include <limits.h> 3008 #else 3009 # include <assert.h> 3010 #endif 3011 3012 #undef $2 3013 3014 /* Override any GCC internal prototype to avoid an error. 3015 Use char because int might match the return type of a GCC 3016 builtin and then its argument prototype would still apply. */ 3017 #ifdef __cplusplus 3018 extern "C" 3019 #endif 3020 char $2 (); 3021 /* The GNU C library defines this for functions which it implements 3022 to always fail with ENOSYS. Some functions are actually named 3023 something starting with __ and the normal name is an alias. */ 3024 #if defined __stub_$2 || defined __stub___$2 3025 choke me 3026 #endif 3027 3028 int 3029 main () 3030 { 3031 return $2 (); 3032 ; 3033 return 0; 3034 } 3035 _ACEOF 3036 if ac_fn_cxx_try_link "$LINENO"; then : 3037 eval "$3=yes" 3038 else 3039 eval "$3=no" 3040 fi 3041 rm -f core conftest.err conftest.$ac_objext \ 3042 conftest$ac_exeext conftest.$ac_ext 3043 fi 3044 eval ac_res=\$$3 3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3046 $as_echo "$ac_res" >&6; } 3047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3048 3049 } # ac_fn_cxx_check_func 3050 3051 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 3052 # ------------------------------------------------------- 3053 # Tests whether HEADER exists and can be compiled using the include files in 3054 # INCLUDES, setting the cache variable VAR accordingly. 3055 ac_fn_c_check_header_compile () 3056 { 3057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 3059 $as_echo_n "checking for $2... " >&6; } 3060 if eval \${$3+:} false; then : 3061 $as_echo_n "(cached) " >&6 3062 else 3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3064 /* end confdefs.h. */ 3065 $4 3066 #include <$2> 3067 _ACEOF 3068 if ac_fn_c_try_compile "$LINENO"; then : 3069 eval "$3=yes" 3070 else 3071 eval "$3=no" 3072 fi 3073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3074 fi 3075 eval ac_res=\$$3 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 3077 $as_echo "$ac_res" >&6; } 3078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 3079 3080 } # ac_fn_c_check_header_compile 3081 cat >config.log <<_ACEOF 3082 This file contains any messages produced by compilers while 3083 running configure, to aid debugging if configure makes a mistake. 3084 3085 It was created by OpenJDK $as_me jdk9, which was 3086 generated by GNU Autoconf 2.69. Invocation command line was 3087 3088 $ $0 $@ 3089 3090 _ACEOF 3091 exec 5>>config.log 3092 { 3093 cat <<_ASUNAME 3094 ## --------- ## 3095 ## Platform. ## 3096 ## --------- ## 3097 3098 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 3099 uname -m = `(uname -m) 2>/dev/null || echo unknown` 3100 uname -r = `(uname -r) 2>/dev/null || echo unknown` 3101 uname -s = `(uname -s) 2>/dev/null || echo unknown` 3102 uname -v = `(uname -v) 2>/dev/null || echo unknown` 3103 3104 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 3105 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 3106 3107 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 3108 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 3109 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 3110 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 3111 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 3112 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 3113 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 3114 3115 _ASUNAME 3116 3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3118 for as_dir in $PATH 3119 do 3120 IFS=$as_save_IFS 3121 test -z "$as_dir" && as_dir=. 3122 $as_echo "PATH: $as_dir" 3123 done 3124 IFS=$as_save_IFS 3125 3126 } >&5 3127 3128 cat >&5 <<_ACEOF 3129 3130 3131 ## ----------- ## 3132 ## Core tests. ## 3133 ## ----------- ## 3134 3135 _ACEOF 3136 3137 3138 # Keep a trace of the command line. 3139 # Strip out --no-create and --no-recursion so they do not pile up. 3140 # Strip out --silent because we don't want to record it for future runs. 3141 # Also quote any args containing shell meta-characters. 3142 # Make two passes to allow for proper duplicate-argument suppression. 3143 ac_configure_args= 3144 ac_configure_args0= 3145 ac_configure_args1= 3146 ac_must_keep_next=false 3147 for ac_pass in 1 2 3148 do 3149 for ac_arg 3150 do 3151 case $ac_arg in 3152 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 3153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 3154 | -silent | --silent | --silen | --sile | --sil) 3155 continue ;; 3156 *\'*) 3157 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 3158 esac 3159 case $ac_pass in 3160 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 3161 2) 3162 as_fn_append ac_configure_args1 " '$ac_arg'" 3163 if test $ac_must_keep_next = true; then 3164 ac_must_keep_next=false # Got value, back to normal. 3165 else 3166 case $ac_arg in 3167 *=* | --config-cache | -C | -disable-* | --disable-* \ 3168 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 3169 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3170 | -with-* | --with-* | -without-* | --without-* | --x) 3171 case "$ac_configure_args0 " in 3172 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3173 esac 3174 ;; 3175 -* ) ac_must_keep_next=true ;; 3176 esac 3177 fi 3178 as_fn_append ac_configure_args " '$ac_arg'" 3179 ;; 3180 esac 3181 done 3182 done 3183 { ac_configure_args0=; unset ac_configure_args0;} 3184 { ac_configure_args1=; unset ac_configure_args1;} 3185 3186 # When interrupted or exit'd, cleanup temporary files, and complete 3187 # config.log. We remove comments because anyway the quotes in there 3188 # would cause problems or look ugly. 3189 # WARNING: Use '\'' to represent an apostrophe within the trap. 3190 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3191 trap 'exit_status=$? 3192 # Save into config.log some information that might help in debugging. 3193 { 3194 echo 3195 3196 $as_echo "## ---------------- ## 3197 ## Cache variables. ## 3198 ## ---------------- ##" 3199 echo 3200 # The following way of writing the cache mishandles newlines in values, 3201 ( 3202 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3203 eval ac_val=\$$ac_var 3204 case $ac_val in #( 3205 *${as_nl}*) 3206 case $ac_var in #( 3207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3209 esac 3210 case $ac_var in #( 3211 _ | IFS | as_nl) ;; #( 3212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3213 *) { eval $ac_var=; unset $ac_var;} ;; 3214 esac ;; 3215 esac 3216 done 3217 (set) 2>&1 | 3218 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3219 *${as_nl}ac_space=\ *) 3220 sed -n \ 3221 "s/'\''/'\''\\\\'\'''\''/g; 3222 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3223 ;; #( 3224 *) 3225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3226 ;; 3227 esac | 3228 sort 3229 ) 3230 echo 3231 3232 $as_echo "## ----------------- ## 3233 ## Output variables. ## 3234 ## ----------------- ##" 3235 echo 3236 for ac_var in $ac_subst_vars 3237 do 3238 eval ac_val=\$$ac_var 3239 case $ac_val in 3240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3241 esac 3242 $as_echo "$ac_var='\''$ac_val'\''" 3243 done | sort 3244 echo 3245 3246 if test -n "$ac_subst_files"; then 3247 $as_echo "## ------------------- ## 3248 ## File substitutions. ## 3249 ## ------------------- ##" 3250 echo 3251 for ac_var in $ac_subst_files 3252 do 3253 eval ac_val=\$$ac_var 3254 case $ac_val in 3255 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3256 esac 3257 $as_echo "$ac_var='\''$ac_val'\''" 3258 done | sort 3259 echo 3260 fi 3261 3262 if test -s confdefs.h; then 3263 $as_echo "## ----------- ## 3264 ## confdefs.h. ## 3265 ## ----------- ##" 3266 echo 3267 cat confdefs.h 3268 echo 3269 fi 3270 test "$ac_signal" != 0 && 3271 $as_echo "$as_me: caught signal $ac_signal" 3272 $as_echo "$as_me: exit $exit_status" 3273 } >&5 3274 rm -f core *.core core.conftest.* && 3275 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3276 exit $exit_status 3277 ' 0 3278 for ac_signal in 1 2 13 15; do 3279 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3280 done 3281 ac_signal=0 3282 3283 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3284 rm -f -r conftest* confdefs.h 3285 3286 $as_echo "/* confdefs.h */" > confdefs.h 3287 3288 # Predefined preprocessor variables. 3289 3290 cat >>confdefs.h <<_ACEOF 3291 #define PACKAGE_NAME "$PACKAGE_NAME" 3292 _ACEOF 3293 3294 cat >>confdefs.h <<_ACEOF 3295 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3296 _ACEOF 3297 3298 cat >>confdefs.h <<_ACEOF 3299 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3300 _ACEOF 3301 3302 cat >>confdefs.h <<_ACEOF 3303 #define PACKAGE_STRING "$PACKAGE_STRING" 3304 _ACEOF 3305 3306 cat >>confdefs.h <<_ACEOF 3307 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3308 _ACEOF 3309 3310 cat >>confdefs.h <<_ACEOF 3311 #define PACKAGE_URL "$PACKAGE_URL" 3312 _ACEOF 3313 3314 3315 # Let the site file select an alternate cache file if it wants to. 3316 # Prefer an explicitly selected file to automatically selected ones. 3317 ac_site_file1=NONE 3318 ac_site_file2=NONE 3319 if test -n "$CONFIG_SITE"; then 3320 # We do not want a PATH search for config.site. 3321 case $CONFIG_SITE in #(( 3322 -*) ac_site_file1=./$CONFIG_SITE;; 3323 */*) ac_site_file1=$CONFIG_SITE;; 3324 *) ac_site_file1=./$CONFIG_SITE;; 3325 esac 3326 elif test "x$prefix" != xNONE; then 3327 ac_site_file1=$prefix/share/config.site 3328 ac_site_file2=$prefix/etc/config.site 3329 else 3330 ac_site_file1=$ac_default_prefix/share/config.site 3331 ac_site_file2=$ac_default_prefix/etc/config.site 3332 fi 3333 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3334 do 3335 test "x$ac_site_file" = xNONE && continue 3336 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3338 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3339 sed 's/^/| /' "$ac_site_file" >&5 3340 . "$ac_site_file" \ 3341 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3343 as_fn_error $? "failed to load site script $ac_site_file 3344 See \`config.log' for more details" "$LINENO" 5; } 3345 fi 3346 done 3347 3348 if test -r "$cache_file"; then 3349 # Some versions of bash will fail to source /dev/null (special files 3350 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3351 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3352 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3353 $as_echo "$as_me: loading cache $cache_file" >&6;} 3354 case $cache_file in 3355 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3356 *) . "./$cache_file";; 3357 esac 3358 fi 3359 else 3360 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3361 $as_echo "$as_me: creating cache $cache_file" >&6;} 3362 >$cache_file 3363 fi 3364 3365 # Check that the precious variables saved in the cache have kept the same 3366 # value. 3367 ac_cache_corrupted=false 3368 for ac_var in $ac_precious_vars; do 3369 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3370 eval ac_new_set=\$ac_env_${ac_var}_set 3371 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3372 eval ac_new_val=\$ac_env_${ac_var}_value 3373 case $ac_old_set,$ac_new_set in 3374 set,) 3375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3376 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3377 ac_cache_corrupted=: ;; 3378 ,set) 3379 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3380 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3381 ac_cache_corrupted=: ;; 3382 ,);; 3383 *) 3384 if test "x$ac_old_val" != "x$ac_new_val"; then 3385 # differences in whitespace do not lead to failure. 3386 ac_old_val_w=`echo x $ac_old_val` 3387 ac_new_val_w=`echo x $ac_new_val` 3388 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3390 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3391 ac_cache_corrupted=: 3392 else 3393 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3394 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3395 eval $ac_var=\$ac_old_val 3396 fi 3397 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3398 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3399 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3400 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3401 fi;; 3402 esac 3403 # Pass precious variables to config.status. 3404 if test "$ac_new_set" = set; then 3405 case $ac_new_val in 3406 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3407 *) ac_arg=$ac_var=$ac_new_val ;; 3408 esac 3409 case " $ac_configure_args " in 3410 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3411 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3412 esac 3413 fi 3414 done 3415 if $ac_cache_corrupted; then 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3419 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3420 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3421 fi 3422 ## -------------------- ## 3423 ## Main body of script. ## 3424 ## -------------------- ## 3425 3426 ac_ext=c 3427 ac_cpp='$CPP $CPPFLAGS' 3428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3430 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3431 3432 3433 3434 ac_aux_dir= 3435 for ac_dir in $TOPDIR/make/autoconf/build-aux "$srcdir"/$TOPDIR/make/autoconf/build-aux; do 3436 if test -f "$ac_dir/install-sh"; then 3437 ac_aux_dir=$ac_dir 3438 ac_install_sh="$ac_aux_dir/install-sh -c" 3439 break 3440 elif test -f "$ac_dir/install.sh"; then 3441 ac_aux_dir=$ac_dir 3442 ac_install_sh="$ac_aux_dir/install.sh -c" 3443 break 3444 elif test -f "$ac_dir/shtool"; then 3445 ac_aux_dir=$ac_dir 3446 ac_install_sh="$ac_aux_dir/shtool install -c" 3447 break 3448 fi 3449 done 3450 if test -z "$ac_aux_dir"; then 3451 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 3452 fi 3453 3454 # These three variables are undocumented and unsupported, 3455 # and are intended to be withdrawn in a future Autoconf release. 3456 # They can cause serious problems if a builder's source tree is in a directory 3457 # whose full name contains unusual characters. 3458 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3459 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3460 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3461 3462 3463 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3464 3465 # 3466 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3467 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3468 # 3469 # This code is free software; you can redistribute it and/or modify it 3470 # under the terms of the GNU General Public License version 2 only, as 3471 # published by the Free Software Foundation. Oracle designates this 3472 # particular file as subject to the "Classpath" exception as provided 3473 # by Oracle in the LICENSE file that accompanied this code. 3474 # 3475 # This code is distributed in the hope that it will be useful, but WITHOUT 3476 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3477 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3478 # version 2 for more details (a copy is included in the LICENSE file that 3479 # accompanied this code). 3480 # 3481 # You should have received a copy of the GNU General Public License version 3482 # 2 along with this work; if not, write to the Free Software Foundation, 3483 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3484 # 3485 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3486 # or visit www.oracle.com if you need additional information or have any 3487 # questions. 3488 # 3489 3490 # 3491 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3492 # 3493 # This program is free software; you can redistribute it and/or modify 3494 # it under the terms of the GNU General Public License as published by 3495 # the Free Software Foundation; either version 2 of the License, or 3496 # (at your option) any later version. 3497 # 3498 # This program is distributed in the hope that it will be useful, but 3499 # WITHOUT ANY WARRANTY; without even the implied warranty of 3500 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3501 # General Public License for more details. 3502 # 3503 # You should have received a copy of the GNU General Public License 3504 # along with this program; if not, write to the Free Software 3505 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3506 # 3507 # As a special exception to the GNU General Public License, if you 3508 # distribute this file as part of a program that contains a 3509 # configuration script generated by Autoconf, you may include it under 3510 # the same distribution terms that you use for the rest of that program. 3511 3512 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3513 # ---------------------------------- 3514 # PKG_PROG_PKG_CONFIG 3515 3516 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3517 # 3518 # Check to see whether a particular set of modules exists. Similar 3519 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3520 # 3521 # 3522 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3523 # this or PKG_CHECK_MODULES is called, or make sure to call 3524 # PKG_CHECK_EXISTS manually 3525 # -------------------------------------------------------------- 3526 3527 3528 3529 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3530 # --------------------------------------------- 3531 # _PKG_CONFIG 3532 3533 # _PKG_SHORT_ERRORS_SUPPORTED 3534 # ----------------------------- 3535 # _PKG_SHORT_ERRORS_SUPPORTED 3536 3537 3538 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3539 # [ACTION-IF-NOT-FOUND]) 3540 # 3541 # 3542 # Note that if there is a possibility the first call to 3543 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3544 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3545 # 3546 # 3547 # -------------------------------------------------------------- 3548 # PKG_CHECK_MODULES 3549 3550 3551 # Include these first... 3552 # 3553 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3554 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3555 # 3556 # This code is free software; you can redistribute it and/or modify it 3557 # under the terms of the GNU General Public License version 2 only, as 3558 # published by the Free Software Foundation. Oracle designates this 3559 # particular file as subject to the "Classpath" exception as provided 3560 # by Oracle in the LICENSE file that accompanied this code. 3561 # 3562 # This code is distributed in the hope that it will be useful, but WITHOUT 3563 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3564 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3565 # version 2 for more details (a copy is included in the LICENSE file that 3566 # accompanied this code). 3567 # 3568 # You should have received a copy of the GNU General Public License version 3569 # 2 along with this work; if not, write to the Free Software Foundation, 3570 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3571 # 3572 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3573 # or visit www.oracle.com if you need additional information or have any 3574 # questions. 3575 # 3576 3577 # Create a function/macro that takes a series of named arguments. The call is 3578 # similar to AC_DEFUN, but the setup of the function looks like this: 3579 # BASIC_DEFUN_NAMED([MYFUNC], [FOO *BAR], [$@], [ 3580 # ... do something 3581 # AC_MSG_NOTICE([Value of BAR is ARG_BAR]) 3582 # ]) 3583 # A star (*) in front of a named argument means that it is required and it's 3584 # presence will be verified. To pass e.g. the first value as a normal indexed 3585 # argument, use [m4_shift($@)] as the third argument instead of [$@]. These 3586 # arguments are referenced in the function by their name prefixed by ARG_, e.g. 3587 # "ARG_FOO". 3588 # 3589 # The generated function can be called like this: 3590 # MYFUNC(FOO: [foo-val], 3591 # BAR: [ 3592 # $ECHO hello world 3593 # ]) 3594 # Note that the argument value must start on the same line as the argument name. 3595 # 3596 # Argument 1: Name of the function to define 3597 # Argument 2: List of legal named arguments, with a * prefix for required arguments 3598 # Argument 3: Argument array to treat as named, typically $@ 3599 # Argument 4: The main function body 3600 3601 3602 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3603 # If so, then append $1 to $2 \ 3604 # Also set JVM_ARG_OK to true/false depending on outcome. 3605 3606 3607 # Appends a string to a path variable, only adding the : when needed. 3608 3609 3610 # Prepends a string to a path variable, only adding the : when needed. 3611 3612 3613 # This will make sure the given variable points to a full and proper 3614 # path. This means: 3615 # 1) There will be no spaces in the path. On unix platforms, 3616 # spaces in the path will result in an error. On Windows, 3617 # the path will be rewritten using short-style to be space-free. 3618 # 2) The path will be absolute, and it will be in unix-style (on 3619 # cygwin). 3620 # $1: The name of the variable to fix 3621 3622 3623 # This will make sure the given variable points to a executable 3624 # with a full and proper path. This means: 3625 # 1) There will be no spaces in the path. On unix platforms, 3626 # spaces in the path will result in an error. On Windows, 3627 # the path will be rewritten using short-style to be space-free. 3628 # 2) The path will be absolute, and it will be in unix-style (on 3629 # cygwin). 3630 # Any arguments given to the executable is preserved. 3631 # If the input variable does not have a directory specification, then 3632 # it need to be in the PATH. 3633 # $1: The name of the variable to fix 3634 3635 3636 3637 3638 # Register a --with argument but mark it as deprecated 3639 # $1: The name of the with argument to deprecate, not including --with- 3640 3641 3642 # Register a --enable argument but mark it as deprecated 3643 # $1: The name of the with argument to deprecate, not including --enable- 3644 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3645 # $3: Messages to user. 3646 3647 3648 3649 3650 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3651 # $1: variable to check 3652 3653 3654 # Check that there are no unprocessed overridden variables left. 3655 # If so, they are an incorrect argument and we will exit with an error. 3656 3657 3658 # Setup a tool for the given variable. If correctly specified by the user, 3659 # use that value, otherwise search for the tool using the supplied code snippet. 3660 # $1: variable to set 3661 # $2: code snippet to call to look for the tool 3662 # $3: code snippet to call if variable was used to find tool 3663 3664 3665 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3666 # $1: variable to set 3667 # $2: executable name (or list of names) to look for 3668 # $3: [path] 3669 3670 3671 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3672 # $1: variable to set 3673 # $2: executable name (or list of names) to look for 3674 3675 3676 # Like BASIC_PATH_PROGS but fails if no tool was found. 3677 # $1: variable to set 3678 # $2: executable name (or list of names) to look for 3679 # $3: [path] 3680 3681 3682 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3683 # $1: variable to set 3684 # $2: autoconf macro to call to look for the special tool 3685 3686 3687 # Setup the most fundamental tools that relies on not much else to set up, 3688 # but is used by much of the early bootstrap code. 3689 3690 3691 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3692 3693 3694 # Evaluates platform specific overrides for devkit variables. 3695 # $1: Name of variable 3696 3697 3698 3699 3700 3701 3702 #%%% Simple tools %%% 3703 3704 # Check if we have found a usable version of make 3705 # $1: the path to a potential make binary (or empty) 3706 # $2: the description on how we found this 3707 3708 3709 3710 3711 # Goes looking for a usable version of GNU make. 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 # Check if build directory is on local disk. If not possible to determine, 3723 # we prefer to claim it's local. 3724 # Argument 1: directory to test 3725 # Argument 2: what to do if it is on local disk 3726 # Argument 3: what to do otherwise (remote disk or failure) 3727 3728 3729 # Check that source files have basic read permissions set. This might 3730 # not be the case in cygwin in certain conditions. 3731 3732 3733 3734 3735 # Check for support for specific options in bash 3736 3737 3738 ################################################################################ 3739 # 3740 # Default make target 3741 # 3742 3743 3744 # Code to run after AC_OUTPUT 3745 3746 3747 # 3748 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3749 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3750 # 3751 # This code is free software; you can redistribute it and/or modify it 3752 # under the terms of the GNU General Public License version 2 only, as 3753 # published by the Free Software Foundation. Oracle designates this 3754 # particular file as subject to the "Classpath" exception as provided 3755 # by Oracle in the LICENSE file that accompanied this code. 3756 # 3757 # This code is distributed in the hope that it will be useful, but WITHOUT 3758 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3759 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3760 # version 2 for more details (a copy is included in the LICENSE file that 3761 # accompanied this code). 3762 # 3763 # You should have received a copy of the GNU General Public License version 3764 # 2 along with this work; if not, write to the Free Software Foundation, 3765 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3766 # 3767 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3768 # or visit www.oracle.com if you need additional information or have any 3769 # questions. 3770 # 3771 3772 3773 3774 3775 3776 # Helper function which possibly converts a path using DOS-style short mode. 3777 # If so, the updated path is stored in $new_path. 3778 # $1: The path to check 3779 3780 3781 # Helper function which possibly converts a path using DOS-style short mode. 3782 # If so, the updated path is stored in $new_path. 3783 # $1: The path to check 3784 3785 3786 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3787 # and could probably be heavily simplified. However, all changes in this 3788 # area tend to need lot of testing in different scenarios, and in lack of 3789 # proper unit testing, cleaning this up has not been deemed worth the effort 3790 # at the moment. 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3801 3802 3803 3804 3805 # ... then the rest 3806 # 3807 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3808 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3809 # 3810 # This code is free software; you can redistribute it and/or modify it 3811 # under the terms of the GNU General Public License version 2 only, as 3812 # published by the Free Software Foundation. Oracle designates this 3813 # particular file as subject to the "Classpath" exception as provided 3814 # by Oracle in the LICENSE file that accompanied this code. 3815 # 3816 # This code is distributed in the hope that it will be useful, but WITHOUT 3817 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3818 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3819 # version 2 for more details (a copy is included in the LICENSE file that 3820 # accompanied this code). 3821 # 3822 # You should have received a copy of the GNU General Public License version 3823 # 2 along with this work; if not, write to the Free Software Foundation, 3824 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3825 # 3826 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3827 # or visit www.oracle.com if you need additional information or have any 3828 # questions. 3829 # 3830 3831 ######################################################################## 3832 # This file handles detection of the Boot JDK. The Boot JDK detection 3833 # process has been developed as a response to solve a complex real-world 3834 # problem. Initially, it was simple, but it has grown as platform after 3835 # platform, idiosyncracy after idiosyncracy has been supported. 3836 # 3837 # The basic idea is this: 3838 # 1) You need an acceptable *) JDK to use as a Boot JDK 3839 # 2) There are several ways to locate a JDK, that are mostly platform 3840 # dependent **) 3841 # 3) You can have multiple JDKs installed 3842 # 4) If possible, configure should try to dig out an acceptable JDK 3843 # automatically, without having to resort to command-line options 3844 # 3845 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3846 # javac) and not a JRE, etc. 3847 # 3848 # **) On Windows we typically use a well-known path. 3849 # On MacOSX we typically use the tool java_home. 3850 # On Linux we typically find javac in the $PATH, and then follow a 3851 # chain of symlinks that often ends up in a real JDK. 3852 # 3853 # This leads to the code where we check in different ways to locate a 3854 # JDK, and if one is found, check if it is acceptable. If not, we print 3855 # our reasons for rejecting it (useful when debugging non-working 3856 # configure situations) and continue checking the next one. 3857 ######################################################################## 3858 3859 # Execute the check given as argument, and verify the result 3860 # If the Boot JDK was previously found, do nothing 3861 # $1 A command line (typically autoconf macro) to execute 3862 3863 3864 # Test: Is bootjdk explicitly set by command line arguments? 3865 3866 3867 # Test: Is $JAVA_HOME set? 3868 3869 3870 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3871 3872 3873 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3874 # $1: Argument to the java_home binary (optional) 3875 3876 3877 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3878 3879 3880 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3881 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3882 # $1 = Path to directory containing jdk installations. 3883 # $2 = String to append to the found JDK directory to get the proper JDK home 3884 3885 3886 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3887 # environmental variable as base for where to look. 3888 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3889 3890 3891 # Test: Is there a JDK installed in default, well-known locations? 3892 3893 3894 # Check that a command-line tool in the Boot JDK is correct 3895 # $1 = name of variable to assign 3896 # $2 = name of binary 3897 3898 3899 ############################################################################### 3900 # 3901 # We need a Boot JDK to bootstrap the build. 3902 # 3903 3904 3905 3906 3907 3908 # BUILD_JDK: the location of the latest JDK that can run 3909 # on the host system and supports the target class file version 3910 # generated in this JDK build. This variable should only be 3911 # used after the launchers are built. 3912 # 3913 3914 # Execute the check given as argument, and verify the result. 3915 # If the JDK was previously found, do nothing. 3916 # $1 A command line (typically autoconf macro) to execute 3917 3918 3919 # By default the BUILD_JDK is the JDK_OUTPUTDIR. If the target architecture 3920 # is different than the host system doing the build (e.g. cross-compilation), 3921 # a special BUILD_JDK is built as part of the build process. An external 3922 # prebuilt BUILD_JDK can also be supplied. 3923 3924 3925 # 3926 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 3927 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3928 # 3929 # This code is free software; you can redistribute it and/or modify it 3930 # under the terms of the GNU General Public License version 2 only, as 3931 # published by the Free Software Foundation. Oracle designates this 3932 # particular file as subject to the "Classpath" exception as provided 3933 # by Oracle in the LICENSE file that accompanied this code. 3934 # 3935 # This code is distributed in the hope that it will be useful, but WITHOUT 3936 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3937 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3938 # version 2 for more details (a copy is included in the LICENSE file that 3939 # accompanied this code). 3940 # 3941 # You should have received a copy of the GNU General Public License version 3942 # 2 along with this work; if not, write to the Free Software Foundation, 3943 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3944 # 3945 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3946 # or visit www.oracle.com if you need additional information or have any 3947 # questions. 3948 # 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 ################################################################################ 3967 # 3968 # Runs icecc-create-env once and prints the error if it fails 3969 # 3970 # $1: arguments to icecc-create-env 3971 # $2: log file 3972 # 3973 3974 3975 ################################################################################ 3976 # 3977 # Optionally enable distributed compilation of native code using icecc/icecream 3978 # 3979 3980 3981 3982 3983 3984 3985 3986 # 3987 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 3988 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3989 # 3990 # This code is free software; you can redistribute it and/or modify it 3991 # under the terms of the GNU General Public License version 2 only, as 3992 # published by the Free Software Foundation. Oracle designates this 3993 # particular file as subject to the "Classpath" exception as provided 3994 # by Oracle in the LICENSE file that accompanied this code. 3995 # 3996 # This code is distributed in the hope that it will be useful, but WITHOUT 3997 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3998 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3999 # version 2 for more details (a copy is included in the LICENSE file that 4000 # accompanied this code). 4001 # 4002 # You should have received a copy of the GNU General Public License version 4003 # 2 along with this work; if not, write to the Free Software Foundation, 4004 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4005 # 4006 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4007 # or visit www.oracle.com if you need additional information or have any 4008 # questions. 4009 # 4010 4011 ################################################################################ 4012 # 4013 # Setup ABI profile (for arm) 4014 # 4015 4016 4017 # Reset the global CFLAGS/LDFLAGS variables and initialize them with the 4018 # corresponding configure arguments instead 4019 4020 4021 # Setup the sysroot flags and add them to global CFLAGS and LDFLAGS so 4022 # that configure can use them while detecting compilers. 4023 # TOOLCHAIN_TYPE is available here. 4024 # Param 1 - Optional prefix to all variables. (e.g BUILD_) 4025 4026 4027 4028 4029 4030 4031 # Documentation on common flags used for solstudio in HIGHEST. 4032 # 4033 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 4034 # done with care, there are some assumptions below that need to 4035 # be understood about the use of pointers, and IEEE behavior. 4036 # 4037 # -fns: Use non-standard floating point mode (not IEEE 754) 4038 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 4039 # -fsingle: Use single precision floating point with 'float' 4040 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 4041 # (Source with excessing pointer casting and data access with mixed 4042 # pointer types are not recommended) 4043 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 4044 # (If you expect perfect errno behavior, do not use this) 4045 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 4046 # -xrestrict: Pointer parameters to functions do not overlap 4047 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 4048 # If you pass in multiple pointers to the same data, do not use this) 4049 # -xlibmil: Inline some library routines 4050 # (If you expect perfect errno behavior, do not use this) 4051 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 4052 # (If you expect perfect errno behavior, do not use this) 4053 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 4054 4055 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 4056 # Bug? 4057 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 4058 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 4059 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 4060 #fi 4061 4062 4063 4064 4065 4066 4067 ################################################################################ 4068 # $1 - Either BUILD or TARGET to pick the correct OS/CPU variables to check 4069 # conditionals against. 4070 # $2 - Optional prefix for each variable defined. 4071 4072 4073 # FLAGS_C_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4074 # IF_FALSE: [RUN-IF-FALSE]) 4075 # ------------------------------------------------------------ 4076 # Check that the C compiler supports an argument 4077 4078 4079 4080 4081 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4082 # IF_FALSE: [RUN-IF-FALSE]) 4083 # ------------------------------------------------------------ 4084 # Check that the C++ compiler supports an argument 4085 4086 4087 4088 4089 # FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4090 # IF_FALSE: [RUN-IF-FALSE]) 4091 # ------------------------------------------------------------ 4092 # Check that the C and C++ compilers support an argument 4093 4094 4095 4096 4097 # FLAGS_LINKER_CHECK_ARGUMENTS(ARGUMENT: [ARGUMENT], IF_TRUE: [RUN-IF-TRUE], 4098 # IF_FALSE: [RUN-IF-FALSE]) 4099 # ------------------------------------------------------------ 4100 # Check that the linker support an argument 4101 4102 4103 4104 4105 4106 4107 # FLAGS_SETUP_GCC6_COMPILER_FLAGS([PREFIX]) 4108 # Arguments: 4109 # $1 - Optional prefix for each variable defined. 4110 4111 4112 # 4113 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4114 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4115 # 4116 # This code is free software; you can redistribute it and/or modify it 4117 # under the terms of the GNU General Public License version 2 only, as 4118 # published by the Free Software Foundation. Oracle designates this 4119 # particular file as subject to the "Classpath" exception as provided 4120 # by Oracle in the LICENSE file that accompanied this code. 4121 # 4122 # This code is distributed in the hope that it will be useful, but WITHOUT 4123 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4124 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4125 # version 2 for more details (a copy is included in the LICENSE file that 4126 # accompanied this code). 4127 # 4128 # You should have received a copy of the GNU General Public License version 4129 # 2 along with this work; if not, write to the Free Software Foundation, 4130 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4131 # 4132 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4133 # or visit www.oracle.com if you need additional information or have any 4134 # questions. 4135 # 4136 4137 4138 4139 4140 4141 cygwin_help() { 4142 case $1 in 4143 unzip) 4144 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 4145 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4146 ;; 4147 zip) 4148 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 4149 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4150 ;; 4151 make) 4152 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 4153 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 4154 ;; 4155 freetype) 4156 HELP_MSG=" 4157 The freetype library can now be build during the configure process. 4158 Download the freetype sources and unpack them into an arbitrary directory: 4159 4160 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 4161 tar -xzf freetype-2.5.3.tar.gz 4162 4163 Then run configure with '--with-freetype-src=<freetype_src>'. This will 4164 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 4165 builds or into '<freetype_src>/lib32' for 32-bit builds. 4166 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 4167 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds. 4168 4169 Alternatively you can unpack the sources like this to use the default directory: 4170 4171 tar --one-top-level=$HOME/freetype --strip-components=1 -xzf freetype-2.5.3.tar.gz" 4172 ;; 4173 esac 4174 } 4175 4176 msys_help() { 4177 PKGHANDLER_COMMAND="" 4178 } 4179 4180 apt_help() { 4181 case $1 in 4182 reduced) 4183 PKGHANDLER_COMMAND="sudo apt-get install gcc-multilib g++-multilib" ;; 4184 devkit) 4185 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 4186 openjdk) 4187 PKGHANDLER_COMMAND="sudo apt-get install openjdk-8-jdk" ;; 4188 alsa) 4189 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 4190 cups) 4191 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 4192 fontconfig) 4193 PKGHANDLER_COMMAND="sudo apt-get install libfontconfig1-dev" ;; 4194 freetype) 4195 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 4196 ffi) 4197 PKGHANDLER_COMMAND="sudo apt-get install libffi-dev" ;; 4198 x11) 4199 PKGHANDLER_COMMAND="sudo apt-get install libx11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 4200 ccache) 4201 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 4202 dtrace) 4203 PKGHANDLER_COMMAND="sudo apt-get install systemtap-sdt-dev" ;; 4204 esac 4205 } 4206 4207 yum_help() { 4208 case $1 in 4209 devkit) 4210 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 4211 openjdk) 4212 PKGHANDLER_COMMAND="sudo yum install java-1.8.0-openjdk-devel" ;; 4213 alsa) 4214 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 4215 cups) 4216 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 4217 fontconfig) 4218 PKGHANDLER_COMMAND="sudo yum install fontconfig-devel" ;; 4219 freetype) 4220 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 4221 x11) 4222 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 4223 ccache) 4224 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 4225 esac 4226 } 4227 4228 brew_help() { 4229 case $1 in 4230 openjdk) 4231 PKGHANDLER_COMMAND="brew cask install java" ;; 4232 freetype) 4233 PKGHANDLER_COMMAND="brew install freetype" ;; 4234 ccache) 4235 PKGHANDLER_COMMAND="brew install ccache" ;; 4236 esac 4237 } 4238 4239 port_help() { 4240 PKGHANDLER_COMMAND="" 4241 } 4242 4243 pkgutil_help() { 4244 PKGHANDLER_COMMAND="" 4245 } 4246 4247 pkgadd_help() { 4248 PKGHANDLER_COMMAND="" 4249 } 4250 4251 # This function will check if we're called from the "configure" wrapper while 4252 # printing --help. If so, we will print out additional information that can 4253 # only be extracted within the autoconf script, and then exit. This must be 4254 # called at the very beginning in configure.ac. 4255 4256 4257 4258 4259 4260 4261 # 4262 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4263 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4264 # 4265 # This code is free software; you can redistribute it and/or modify it 4266 # under the terms of the GNU General Public License version 2 only, as 4267 # published by the Free Software Foundation. Oracle designates this 4268 # particular file as subject to the "Classpath" exception as provided 4269 # by Oracle in the LICENSE file that accompanied this code. 4270 # 4271 # This code is distributed in the hope that it will be useful, but WITHOUT 4272 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4273 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4274 # version 2 for more details (a copy is included in the LICENSE file that 4275 # accompanied this code). 4276 # 4277 # You should have received a copy of the GNU General Public License version 4278 # 2 along with this work; if not, write to the Free Software Foundation, 4279 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4280 # 4281 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4282 # or visit www.oracle.com if you need additional information or have any 4283 # questions. 4284 # 4285 4286 # All valid JVM features, regardless of platform 4287 VALID_JVM_FEATURES="compiler1 compiler2 zero minimal dtrace jvmti jvmci \ 4288 graal vm-structs jni-check services management all-gcs nmt cds \ 4289 static-build link-time-opt aot" 4290 4291 # All valid JVM variants 4292 VALID_JVM_VARIANTS="server client minimal core zero custom" 4293 4294 ############################################################################### 4295 # Check if the specified JVM variant should be built. To be used in shell if 4296 # constructs, like this: 4297 # if HOTSPOT_CHECK_JVM_VARIANT(server); then 4298 # 4299 # Only valid to use after HOTSPOT_SETUP_JVM_VARIANTS has setup variants. 4300 4301 # Definition kept in one line to allow inlining in if statements. 4302 # Additional [] needed to keep m4 from mangling shell constructs. 4303 4304 4305 ############################################################################### 4306 # Check if the specified JVM features are explicitly enabled. To be used in 4307 # shell if constructs, like this: 4308 # if HOTSPOT_CHECK_JVM_FEATURE(jvmti); then 4309 # 4310 # Only valid to use after HOTSPOT_SETUP_JVM_FEATURES has setup features. 4311 4312 # Definition kept in one line to allow inlining in if statements. 4313 # Additional [] needed to keep m4 from mangling shell constructs. 4314 4315 4316 ############################################################################### 4317 # Check which variants of the JVM that we want to build. Available variants are: 4318 # server: normal interpreter, and a tiered C1/C2 compiler 4319 # client: normal interpreter, and C1 (no C2 compiler) 4320 # minimal: reduced form of client with optional features stripped out 4321 # core: normal interpreter only, no compiler 4322 # zero: C++ based interpreter only, no compiler 4323 # custom: baseline JVM with no default features 4324 # 4325 4326 4327 ############################################################################### 4328 # Check if dtrace should be enabled and has all prerequisites present. 4329 # 4330 4331 4332 ################################################################################ 4333 # Check if AOT should be enabled 4334 # 4335 4336 4337 ################################################################################ 4338 # Allow to disable CDS 4339 # 4340 4341 4342 ############################################################################### 4343 # Set up all JVM features for each JVM variant. 4344 # 4345 4346 4347 ############################################################################### 4348 # Validate JVM features once all setup is complete, including custom setup. 4349 # 4350 4351 4352 ################################################################################ 4353 # 4354 # Specify which sources will be used to build the 64-bit ARM port 4355 # 4356 # --with-cpu-port=arm64 will use hotspot/src/cpu/arm 4357 # --with-cpu-port=aarch64 will use hotspot/src/cpu/aarch64 4358 # 4359 4360 4361 4362 ################################################################################ 4363 # Check if gtest should be built 4364 # 4365 4366 4367 # 4368 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4369 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4370 # 4371 # This code is free software; you can redistribute it and/or modify it 4372 # under the terms of the GNU General Public License version 2 only, as 4373 # published by the Free Software Foundation. Oracle designates this 4374 # particular file as subject to the "Classpath" exception as provided 4375 # by Oracle in the LICENSE file that accompanied this code. 4376 # 4377 # This code is distributed in the hope that it will be useful, but WITHOUT 4378 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4379 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4380 # version 2 for more details (a copy is included in the LICENSE file that 4381 # accompanied this code). 4382 # 4383 # You should have received a copy of the GNU General Public License version 4384 # 2 along with this work; if not, write to the Free Software Foundation, 4385 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4386 # 4387 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4388 # or visit www.oracle.com if you need additional information or have any 4389 # questions. 4390 # 4391 4392 ############################################################################### 4393 # Check which variant of the JDK that we want to build. 4394 # Currently we have: 4395 # normal: standard edition 4396 # but the custom make system may add other variants 4397 # 4398 # Effectively the JDK variant gives a name to a specific set of 4399 # modules to compile into the JDK. 4400 4401 4402 ############################################################################### 4403 # Set the debug level 4404 # release: no debug information, all optimizations, no asserts. 4405 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 4406 # fastdebug: debug information (-g), all optimizations, all asserts 4407 # slowdebug: debug information (-g), no optimizations, all asserts 4408 4409 4410 ############################################################################### 4411 # 4412 # Should we build only OpenJDK even if closed sources are present? 4413 # 4414 4415 4416 4417 4418 ############################################################################### 4419 # 4420 # Enable or disable the elliptic curve crypto implementation 4421 # 4422 4423 4424 4425 4426 ################################################################################ 4427 # 4428 # Gcov coverage data for hotspot 4429 # 4430 4431 4432 ############################################################################### 4433 # 4434 # AddressSanitizer 4435 # 4436 4437 4438 ################################################################################ 4439 # 4440 # Static build support. When enabled will generate static 4441 # libraries instead of shared libraries for all JDK libs. 4442 # 4443 4444 4445 ################################################################################ 4446 # 4447 # jlink options. 4448 # We always keep packaged modules in JDK image. 4449 # 4450 4451 4452 ################################################################################ 4453 # 4454 # Check if building of the jtreg failure handler should be enabled. 4455 # 4456 4457 4458 ################################################################################ 4459 # 4460 # Enable or disable generation of the classlist at build time 4461 # 4462 4463 4464 # 4465 # Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved. 4466 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4467 # 4468 # This code is free software; you can redistribute it and/or modify it 4469 # under the terms of the GNU General Public License version 2 only, as 4470 # published by the Free Software Foundation. Oracle designates this 4471 # particular file as subject to the "Classpath" exception as provided 4472 # by Oracle in the LICENSE file that accompanied this code. 4473 # 4474 # This code is distributed in the hope that it will be useful, but WITHOUT 4475 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4476 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4477 # version 2 for more details (a copy is included in the LICENSE file that 4478 # accompanied this code). 4479 # 4480 # You should have received a copy of the GNU General Public License version 4481 # 2 along with this work; if not, write to the Free Software Foundation, 4482 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4483 # 4484 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4485 # or visit www.oracle.com if you need additional information or have any 4486 # questions. 4487 # 4488 4489 ############################################################################### 4490 # 4491 # Setup version numbers 4492 # 4493 4494 # Verify that a given string represents a valid version number, and assign it 4495 # to a variable. 4496 4497 # Argument 1: the variable to assign to 4498 # Argument 2: the value given by the user 4499 4500 4501 4502 4503 # 4504 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4505 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4506 # 4507 # This code is free software; you can redistribute it and/or modify it 4508 # under the terms of the GNU General Public License version 2 only, as 4509 # published by the Free Software Foundation. Oracle designates this 4510 # particular file as subject to the "Classpath" exception as provided 4511 # by Oracle in the LICENSE file that accompanied this code. 4512 # 4513 # This code is distributed in the hope that it will be useful, but WITHOUT 4514 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4515 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4516 # version 2 for more details (a copy is included in the LICENSE file that 4517 # accompanied this code). 4518 # 4519 # You should have received a copy of the GNU General Public License version 4520 # 2 along with this work; if not, write to the Free Software Foundation, 4521 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4522 # 4523 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4524 # or visit www.oracle.com if you need additional information or have any 4525 # questions. 4526 # 4527 4528 # Major library component reside in separate files. 4529 # 4530 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4531 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4532 # 4533 # This code is free software; you can redistribute it and/or modify it 4534 # under the terms of the GNU General Public License version 2 only, as 4535 # published by the Free Software Foundation. Oracle designates this 4536 # particular file as subject to the "Classpath" exception as provided 4537 # by Oracle in the LICENSE file that accompanied this code. 4538 # 4539 # This code is distributed in the hope that it will be useful, but WITHOUT 4540 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4541 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4542 # version 2 for more details (a copy is included in the LICENSE file that 4543 # accompanied this code). 4544 # 4545 # You should have received a copy of the GNU General Public License version 4546 # 2 along with this work; if not, write to the Free Software Foundation, 4547 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4548 # 4549 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4550 # or visit www.oracle.com if you need additional information or have any 4551 # questions. 4552 # 4553 4554 ################################################################################ 4555 # Setup alsa (Advanced Linux Sound Architecture) 4556 ################################################################################ 4557 4558 4559 # 4560 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4561 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4562 # 4563 # This code is free software; you can redistribute it and/or modify it 4564 # under the terms of the GNU General Public License version 2 only, as 4565 # published by the Free Software Foundation. Oracle designates this 4566 # particular file as subject to the "Classpath" exception as provided 4567 # by Oracle in the LICENSE file that accompanied this code. 4568 # 4569 # This code is distributed in the hope that it will be useful, but WITHOUT 4570 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4571 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4572 # version 2 for more details (a copy is included in the LICENSE file that 4573 # accompanied this code). 4574 # 4575 # You should have received a copy of the GNU General Public License version 4576 # 2 along with this work; if not, write to the Free Software Foundation, 4577 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4578 # 4579 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4580 # or visit www.oracle.com if you need additional information or have any 4581 # questions. 4582 # 4583 4584 ################################################################################ 4585 # Setup bundled libraries. 4586 # 4587 # For libjpeg, giflib, libpng, lcms2 and zlib, the source is present in the 4588 # OpenJDK repository. Default is to use these libraries as bundled, but they 4589 # might be replaced by en external version by the user. 4590 ################################################################################ 4591 4592 4593 ################################################################################ 4594 # Setup libjpeg 4595 ################################################################################ 4596 4597 4598 ################################################################################ 4599 # Setup giflib 4600 ################################################################################ 4601 4602 4603 ################################################################################ 4604 # Setup libpng 4605 ################################################################################ 4606 4607 4608 ################################################################################ 4609 # Setup zlib 4610 ################################################################################ 4611 4612 4613 ################################################################################ 4614 # Setup lcms (Little CMS) 4615 ################################################################################ 4616 4617 4618 # 4619 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4620 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4621 # 4622 # This code is free software; you can redistribute it and/or modify it 4623 # under the terms of the GNU General Public License version 2 only, as 4624 # published by the Free Software Foundation. Oracle designates this 4625 # particular file as subject to the "Classpath" exception as provided 4626 # by Oracle in the LICENSE file that accompanied this code. 4627 # 4628 # This code is distributed in the hope that it will be useful, but WITHOUT 4629 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4630 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4631 # version 2 for more details (a copy is included in the LICENSE file that 4632 # accompanied this code). 4633 # 4634 # You should have received a copy of the GNU General Public License version 4635 # 2 along with this work; if not, write to the Free Software Foundation, 4636 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4637 # 4638 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4639 # or visit www.oracle.com if you need additional information or have any 4640 # questions. 4641 # 4642 4643 ################################################################################ 4644 # Setup cups (Common Unix Printing System) 4645 ################################################################################ 4646 4647 4648 # 4649 # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 4650 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4651 # 4652 # This code is free software; you can redistribute it and/or modify it 4653 # under the terms of the GNU General Public License version 2 only, as 4654 # published by the Free Software Foundation. Oracle designates this 4655 # particular file as subject to the "Classpath" exception as provided 4656 # by Oracle in the LICENSE file that accompanied this code. 4657 # 4658 # This code is distributed in the hope that it will be useful, but WITHOUT 4659 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4660 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4661 # version 2 for more details (a copy is included in the LICENSE file that 4662 # accompanied this code). 4663 # 4664 # You should have received a copy of the GNU General Public License version 4665 # 2 along with this work; if not, write to the Free Software Foundation, 4666 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4667 # 4668 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4669 # or visit www.oracle.com if you need additional information or have any 4670 # questions. 4671 # 4672 4673 ################################################################################ 4674 # Setup libffi (Foreign Function Interface) 4675 ################################################################################ 4676 4677 4678 # 4679 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4680 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4681 # 4682 # This code is free software; you can redistribute it and/or modify it 4683 # under the terms of the GNU General Public License version 2 only, as 4684 # published by the Free Software Foundation. Oracle designates this 4685 # particular file as subject to the "Classpath" exception as provided 4686 # by Oracle in the LICENSE file that accompanied this code. 4687 # 4688 # This code is distributed in the hope that it will be useful, but WITHOUT 4689 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4690 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4691 # version 2 for more details (a copy is included in the LICENSE file that 4692 # accompanied this code). 4693 # 4694 # You should have received a copy of the GNU General Public License version 4695 # 2 along with this work; if not, write to the Free Software Foundation, 4696 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4697 # 4698 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4699 # or visit www.oracle.com if you need additional information or have any 4700 # questions. 4701 # 4702 4703 ################################################################################ 4704 # Build the freetype lib from source 4705 ################################################################################ 4706 4707 4708 ################################################################################ 4709 # Check if a potential freeype library match is correct and usable 4710 ################################################################################ 4711 4712 4713 ################################################################################ 4714 # Setup freetype (The FreeType2 font rendering library) 4715 ################################################################################ 4716 4717 4718 # 4719 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. 4720 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4721 # 4722 # This code is free software; you can redistribute it and/or modify it 4723 # under the terms of the GNU General Public License version 2 only, as 4724 # published by the Free Software Foundation. Oracle designates this 4725 # particular file as subject to the "Classpath" exception as provided 4726 # by Oracle in the LICENSE file that accompanied this code. 4727 # 4728 # This code is distributed in the hope that it will be useful, but WITHOUT 4729 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4730 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4731 # version 2 for more details (a copy is included in the LICENSE file that 4732 # accompanied this code). 4733 # 4734 # You should have received a copy of the GNU General Public License version 4735 # 2 along with this work; if not, write to the Free Software Foundation, 4736 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4737 # 4738 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4739 # or visit www.oracle.com if you need additional information or have any 4740 # questions. 4741 # 4742 4743 ################################################################################ 4744 # Setup the standard C/C++ runtime libraries. 4745 # 4746 # Most importantly, determine if stdc++ should be linked statically or 4747 # dynamically. 4748 ################################################################################ 4749 4750 4751 # 4752 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4753 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4754 # 4755 # This code is free software; you can redistribute it and/or modify it 4756 # under the terms of the GNU General Public License version 2 only, as 4757 # published by the Free Software Foundation. Oracle designates this 4758 # particular file as subject to the "Classpath" exception as provided 4759 # by Oracle in the LICENSE file that accompanied this code. 4760 # 4761 # This code is distributed in the hope that it will be useful, but WITHOUT 4762 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4763 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4764 # version 2 for more details (a copy is included in the LICENSE file that 4765 # accompanied this code). 4766 # 4767 # You should have received a copy of the GNU General Public License version 4768 # 2 along with this work; if not, write to the Free Software Foundation, 4769 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4770 # 4771 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4772 # or visit www.oracle.com if you need additional information or have any 4773 # questions. 4774 # 4775 4776 ################################################################################ 4777 # Setup X11 Windows system 4778 ################################################################################ 4779 4780 4781 # 4782 # Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. 4783 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4784 # 4785 # This code is free software; you can redistribute it and/or modify it 4786 # under the terms of the GNU General Public License version 2 only, as 4787 # published by the Free Software Foundation. Oracle designates this 4788 # particular file as subject to the "Classpath" exception as provided 4789 # by Oracle in the LICENSE file that accompanied this code. 4790 # 4791 # This code is distributed in the hope that it will be useful, but WITHOUT 4792 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4793 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4794 # version 2 for more details (a copy is included in the LICENSE file that 4795 # accompanied this code). 4796 # 4797 # You should have received a copy of the GNU General Public License version 4798 # 2 along with this work; if not, write to the Free Software Foundation, 4799 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4800 # 4801 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4802 # or visit www.oracle.com if you need additional information or have any 4803 # questions. 4804 # 4805 4806 ################################################################################ 4807 # Setup fontconfig 4808 ################################################################################ 4809 4810 4811 4812 ################################################################################ 4813 # Determine which libraries are needed for this configuration 4814 ################################################################################ 4815 4816 4817 ################################################################################ 4818 # Parse library options, and setup needed libraries 4819 ################################################################################ 4820 4821 4822 ################################################################################ 4823 # Setup various libraries, typically small system libraries 4824 ################################################################################ 4825 4826 4827 ################################################################################ 4828 # libstlport.so.1 is needed for running gtest on Solaris. Find it to 4829 # redistribute it in the test image. 4830 ################################################################################ 4831 4832 4833 4834 # 4835 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4836 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4837 # 4838 # This code is free software; you can redistribute it and/or modify it 4839 # under the terms of the GNU General Public License version 2 only, as 4840 # published by the Free Software Foundation. Oracle designates this 4841 # particular file as subject to the "Classpath" exception as provided 4842 # by Oracle in the LICENSE file that accompanied this code. 4843 # 4844 # This code is distributed in the hope that it will be useful, but WITHOUT 4845 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4846 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4847 # version 2 for more details (a copy is included in the LICENSE file that 4848 # accompanied this code). 4849 # 4850 # You should have received a copy of the GNU General Public License version 4851 # 2 along with this work; if not, write to the Free Software Foundation, 4852 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4853 # 4854 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4855 # or visit www.oracle.com if you need additional information or have any 4856 # questions. 4857 # 4858 4859 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4860 # Converts autoconf style CPU name to OpenJDK style, into 4861 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4862 4863 4864 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4865 # Converts autoconf style OS name to OpenJDK style, into 4866 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4867 4868 4869 # Expects $host_os $host_cpu $build_os and $build_cpu 4870 # and $with_target_bits to have been setup! 4871 # 4872 # Translate the standard triplet(quadruplet) definition 4873 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4874 # OPENJDK_BUILD_OS, etc. 4875 4876 4877 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4878 # accordingly. Must be done after setting up build and target system, but before 4879 # doing anything else with these values. 4880 4881 4882 # Setup the legacy variables, for controlling the old makefiles. 4883 # 4884 4885 4886 # $1 - Either TARGET or BUILD to setup the variables for. 4887 4888 4889 4890 4891 4892 4893 #%%% Build and target systems %%% 4894 4895 4896 4897 4898 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4899 # Add -mX to various FLAGS variables. 4900 4901 4902 4903 4904 4905 4906 # 4907 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4908 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4909 # 4910 # This code is free software; you can redistribute it and/or modify it 4911 # under the terms of the GNU General Public License version 2 only, as 4912 # published by the Free Software Foundation. Oracle designates this 4913 # particular file as subject to the "Classpath" exception as provided 4914 # by Oracle in the LICENSE file that accompanied this code. 4915 # 4916 # This code is distributed in the hope that it will be useful, but WITHOUT 4917 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4918 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4919 # version 2 for more details (a copy is included in the LICENSE file that 4920 # accompanied this code). 4921 # 4922 # You should have received a copy of the GNU General Public License version 4923 # 2 along with this work; if not, write to the Free Software Foundation, 4924 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4925 # 4926 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4927 # or visit www.oracle.com if you need additional information or have any 4928 # questions. 4929 # 4930 4931 4932 4933 ################################################################################ 4934 # Define a mechanism for importing extra prebuilt modules 4935 # 4936 4937 4938 4939 # 4940 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved. 4941 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4942 # 4943 # This code is free software; you can redistribute it and/or modify it 4944 # under the terms of the GNU General Public License version 2 only, as 4945 # published by the Free Software Foundation. Oracle designates this 4946 # particular file as subject to the "Classpath" exception as provided 4947 # by Oracle in the LICENSE file that accompanied this code. 4948 # 4949 # This code is distributed in the hope that it will be useful, but WITHOUT 4950 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4951 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4952 # version 2 for more details (a copy is included in the LICENSE file that 4953 # accompanied this code). 4954 # 4955 # You should have received a copy of the GNU General Public License version 4956 # 2 along with this work; if not, write to the Free Software Foundation, 4957 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4958 # 4959 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4960 # or visit www.oracle.com if you need additional information or have any 4961 # questions. 4962 # 4963 4964 ######################################################################## 4965 # This file is responsible for detecting, verifying and setting up the 4966 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4967 # proper paths to the binaries, but it will not setup any flags. 4968 # 4969 # The binaries used is determined by the toolchain type, which is the family of 4970 # compilers and related tools that are used. 4971 ######################################################################## 4972 4973 4974 # All valid toolchains, regardless of platform (used by help.m4) 4975 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4976 4977 # These toolchains are valid on different platforms 4978 VALID_TOOLCHAINS_linux="gcc clang" 4979 VALID_TOOLCHAINS_solaris="solstudio" 4980 VALID_TOOLCHAINS_macosx="gcc clang" 4981 VALID_TOOLCHAINS_aix="xlc" 4982 VALID_TOOLCHAINS_windows="microsoft" 4983 4984 # Toolchain descriptions 4985 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4986 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4987 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4988 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4989 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4990 4991 # Minimum supported versions, empty means unspecified 4992 TOOLCHAIN_MINIMUM_VERSION_clang="3.2" 4993 TOOLCHAIN_MINIMUM_VERSION_gcc="4.7" 4994 TOOLCHAIN_MINIMUM_VERSION_microsoft="16.00.30319.01" # VS2010 4995 TOOLCHAIN_MINIMUM_VERSION_solstudio="5.13" 4996 TOOLCHAIN_MINIMUM_VERSION_xlc="" 4997 4998 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4999 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 5000 # $1 - optional variable prefix for compiler and version variables (BUILD_) 5001 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 5002 5003 5004 # Check if the configured compiler (C and C++) is of a specific version or 5005 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 5006 # 5007 # Arguments: 5008 # VERSION: The version string to check against the found version 5009 # IF_AT_LEAST: block to run if the compiler is at least this version (>=) 5010 # IF_OLDER_THAN: block to run if the compiler is older than this version (<) 5011 # PREFIX: Optional variable prefix for compiler to compare version for (OPENJDK_BUILD_) 5012 5013 5014 5015 5016 # Setup a number of variables describing how native output files are 5017 # named on this platform/toolchain. 5018 5019 5020 # Determine which toolchain type to use, and make sure it is valid for this 5021 # platform. Setup various information about the selected toolchain. 5022 5023 5024 # Before we start detecting the toolchain executables, we might need some 5025 # special setup, e.g. additional paths etc. 5026 5027 5028 # Restore path, etc 5029 5030 5031 # Check if a compiler is of the toolchain type we expect, and save the version 5032 # information from it. If the compiler does not match the expected type, 5033 # this function will abort using AC_MSG_ERROR. If it matches, the version will 5034 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 5035 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 5036 # 5037 # $1 = compiler to test (CC or CXX) 5038 # $2 = human readable name of compiler (C or C++) 5039 5040 5041 # Try to locate the given C or C++ compiler in the path, or otherwise. 5042 # 5043 # $1 = compiler to test (CC or CXX) 5044 # $2 = human readable name of compiler (C or C++) 5045 # $3 = compiler name to search for 5046 5047 5048 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 5049 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 5050 # archiver (AR). Verify that the compilers are correct according to the 5051 # toolchain type. 5052 5053 5054 # Setup additional tools that is considered a part of the toolchain, but not the 5055 # core part. Many of these are highly platform-specific and do not exist, 5056 # and/or are not needed on all platforms. 5057 5058 5059 # Setup the build tools (i.e, the compiler and linker used to build programs 5060 # that should be run on the build platform, not the target platform, as a build 5061 # helper). Since the non-cross-compile case uses the normal, target compilers 5062 # for this, we can only do this after these have been setup. 5063 5064 5065 # Do some additional checks on the detected tools. 5066 5067 5068 # Setup the JTReg Regression Test Harness. 5069 5070 5071 # Setup the JIB dependency resolver 5072 5073 5074 # 5075 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 5076 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5077 # 5078 # This code is free software; you can redistribute it and/or modify it 5079 # under the terms of the GNU General Public License version 2 only, as 5080 # published by the Free Software Foundation. Oracle designates this 5081 # particular file as subject to the "Classpath" exception as provided 5082 # by Oracle in the LICENSE file that accompanied this code. 5083 # 5084 # This code is distributed in the hope that it will be useful, but WITHOUT 5085 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 5086 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 5087 # version 2 for more details (a copy is included in the LICENSE file that 5088 # accompanied this code). 5089 # 5090 # You should have received a copy of the GNU General Public License version 5091 # 2 along with this work; if not, write to the Free Software Foundation, 5092 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 5093 # 5094 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 5095 # or visit www.oracle.com if you need additional information or have any 5096 # questions. 5097 # 5098 5099 ################################################################################ 5100 # The order of these defines the priority by which we try to find them. 5101 VALID_VS_VERSIONS="2013 2012 2010" 5102 5103 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 5104 VS_VERSION_INTERNAL_2010=100 5105 VS_MSVCR_2010=msvcr100.dll 5106 # We don't use msvcp on Visual Studio 2010 5107 #VS_MSVCP_2010=msvcp100.dll 5108 VS_ENVVAR_2010="VS100COMNTOOLS" 5109 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 5110 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 5111 VS_VS_PLATFORM_NAME_2010="v100" 5112 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 5113 5114 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 5115 VS_VERSION_INTERNAL_2012=110 5116 VS_MSVCR_2012=msvcr110.dll 5117 VS_MSVCP_2012=msvcp110.dll 5118 VS_ENVVAR_2012="VS110COMNTOOLS" 5119 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 5120 VS_SDK_INSTALLDIR_2012= 5121 VS_VS_PLATFORM_NAME_2012="v110" 5122 VS_SDK_PLATFORM_NAME_2012= 5123 5124 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 5125 VS_VERSION_INTERNAL_2013=120 5126 VS_MSVCR_2013=msvcr120.dll 5127 VS_MSVCP_2013=msvcp120.dll 5128 VS_ENVVAR_2013="VS120COMNTOOLS" 5129 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 5130 VS_SDK_INSTALLDIR_2013= 5131 VS_VS_PLATFORM_NAME_2013="v120" 5132 VS_SDK_PLATFORM_NAME_2013= 5133 5134 ################################################################################ 5135 5136 5137 5138 ################################################################################ 5139 5140 5141 5142 ################################################################################ 5143 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 5144 # build environment and assigns it to VS_ENV_CMD 5145 5146 5147 ################################################################################ 5148 5149 5150 5151 ################################################################################ 5152 # Check if the VS env variables were setup prior to running configure. 5153 # If not, then find vcvarsall.bat and run it automatically, and integrate 5154 # the set env variables into the spec file. 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 # This line needs to be here, verbatim, after all includes and the dummy hook 5170 # definitions. It is replaced with custom functionality when building 5171 # custom sources. 5172 #CUSTOM_AUTOCONF_INCLUDE 5173 5174 # Do not change or remove the following line, it is needed for consistency checks: 5175 DATE_WHEN_GENERATED=1513717875 5176 5177 ############################################################################### 5178 # 5179 # Initialization / Boot-strapping 5180 # 5181 # The bootstrapping process needs to solve the "chicken or the egg" problem, 5182 # thus it jumps back and forth, each time gaining something needed later on. 5183 # 5184 ############################################################################### 5185 5186 # If we are requested to print additional help, do that and then exit. 5187 # This must be the very first call. 5188 5189 if test "x$CONFIGURE_PRINT_ADDITIONAL_HELP" != x; then 5190 5191 # Print available toolchains 5192 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 5193 $PRINTF "Which are valid to use depends on the build platform.\n" 5194 for toolchain in $VALID_TOOLCHAINS_all; do 5195 # Use indirect variable referencing 5196 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 5197 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 5198 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 5199 done 5200 $PRINTF "\n" 5201 5202 # Print available jvm features 5203 $PRINTF "The following JVM features are available as arguments to --with-jvm-features.\n" 5204 $PRINTF "Which are valid to use depends on the target platform.\n " 5205 $PRINTF "%s " $VALID_JVM_FEATURES 5206 $PRINTF "\n" 5207 5208 # And now exit directly 5209 exit 0 5210 fi 5211 5212 5213 # Basic initialization that must happen first of all in the normal process. 5214 5215 # Save the original command line. This is passed to us by the wrapper configure script. 5216 5217 # Save the path variable before it gets changed 5218 ORIGINAL_PATH="$PATH" 5219 5220 DATE_WHEN_CONFIGURED=`LANG=C date` 5221 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 5223 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 5225 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 5226 5227 5228 # Start with tools that do not need have cross compilation support 5229 # and can be expected to be found in the default PATH. These tools are 5230 # used by configure. 5231 5232 # First are all the simple required tools. 5233 5234 5235 5236 # Publish this variable in the help. 5237 5238 5239 if [ -z "${BASENAME+x}" ]; then 5240 # The variable is not set by user, try to locate tool using the code snippet 5241 for ac_prog in basename 5242 do 5243 # Extract the first word of "$ac_prog", so it can be a program name with args. 5244 set dummy $ac_prog; ac_word=$2 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5246 $as_echo_n "checking for $ac_word... " >&6; } 5247 if ${ac_cv_path_BASENAME+:} false; then : 5248 $as_echo_n "(cached) " >&6 5249 else 5250 case $BASENAME in 5251 [\\/]* | ?:[\\/]*) 5252 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5253 ;; 5254 *) 5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256 for as_dir in $PATH 5257 do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5262 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266 done 5267 done 5268 IFS=$as_save_IFS 5269 5270 ;; 5271 esac 5272 fi 5273 BASENAME=$ac_cv_path_BASENAME 5274 if test -n "$BASENAME"; then 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5276 $as_echo "$BASENAME" >&6; } 5277 else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5279 $as_echo "no" >&6; } 5280 fi 5281 5282 5283 test -n "$BASENAME" && break 5284 done 5285 5286 else 5287 # The variable is set, but is it from the command line or the environment? 5288 5289 # Try to remove the string !BASENAME! from our list. 5290 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 5291 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5292 # If it failed, the variable was not from the command line. Ignore it, 5293 # but warn the user (except for BASH, which is always set by the calling BASH). 5294 if test "xBASENAME" != xBASH; then 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 5296 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 5297 fi 5298 # Try to locate tool using the code snippet 5299 for ac_prog in basename 5300 do 5301 # Extract the first word of "$ac_prog", so it can be a program name with args. 5302 set dummy $ac_prog; ac_word=$2 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5304 $as_echo_n "checking for $ac_word... " >&6; } 5305 if ${ac_cv_path_BASENAME+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307 else 5308 case $BASENAME in 5309 [\\/]* | ?:[\\/]*) 5310 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5311 ;; 5312 *) 5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5314 for as_dir in $PATH 5315 do 5316 IFS=$as_save_IFS 5317 test -z "$as_dir" && as_dir=. 5318 for ac_exec_ext in '' $ac_executable_extensions; do 5319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5320 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5322 break 2 5323 fi 5324 done 5325 done 5326 IFS=$as_save_IFS 5327 5328 ;; 5329 esac 5330 fi 5331 BASENAME=$ac_cv_path_BASENAME 5332 if test -n "$BASENAME"; then 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5334 $as_echo "$BASENAME" >&6; } 5335 else 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5337 $as_echo "no" >&6; } 5338 fi 5339 5340 5341 test -n "$BASENAME" && break 5342 done 5343 5344 else 5345 # If it succeeded, then it was overridden by the user. We will use it 5346 # for the tool. 5347 5348 # First remove it from the list of overridden variables, so we can test 5349 # for unknown variables in the end. 5350 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5351 5352 # Check if we try to supply an empty value 5353 if test "x$BASENAME" = x; then 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASENAME= (no value)" >&5 5355 $as_echo "$as_me: Setting user supplied tool BASENAME= (no value)" >&6;} 5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5357 $as_echo_n "checking for BASENAME... " >&6; } 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5359 $as_echo "disabled" >&6; } 5360 else 5361 # Check if the provided tool contains a complete path. 5362 tool_specified="$BASENAME" 5363 tool_basename="${tool_specified##*/}" 5364 if test "x$tool_basename" = "x$tool_specified"; then 5365 # A command without a complete path is provided, search $PATH. 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 5367 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 5368 # Extract the first word of "$tool_basename", so it can be a program name with args. 5369 set dummy $tool_basename; ac_word=$2 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5371 $as_echo_n "checking for $ac_word... " >&6; } 5372 if ${ac_cv_path_BASENAME+:} false; then : 5373 $as_echo_n "(cached) " >&6 5374 else 5375 case $BASENAME in 5376 [\\/]* | ?:[\\/]*) 5377 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 5378 ;; 5379 *) 5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5381 for as_dir in $PATH 5382 do 5383 IFS=$as_save_IFS 5384 test -z "$as_dir" && as_dir=. 5385 for ac_exec_ext in '' $ac_executable_extensions; do 5386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5387 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5389 break 2 5390 fi 5391 done 5392 done 5393 IFS=$as_save_IFS 5394 5395 ;; 5396 esac 5397 fi 5398 BASENAME=$ac_cv_path_BASENAME 5399 if test -n "$BASENAME"; then 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 5401 $as_echo "$BASENAME" >&6; } 5402 else 5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5404 $as_echo "no" >&6; } 5405 fi 5406 5407 5408 if test "x$BASENAME" = x; then 5409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5410 fi 5411 else 5412 # Otherwise we believe it is a complete path. Use it as it is. 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 5414 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 5416 $as_echo_n "checking for BASENAME... " >&6; } 5417 if test ! -x "$tool_specified"; then 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5419 $as_echo "not found" >&6; } 5420 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 5421 fi 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5423 $as_echo "$tool_specified" >&6; } 5424 fi 5425 fi 5426 fi 5427 5428 fi 5429 5430 5431 5432 if test "x$BASENAME" = x; then 5433 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 5434 fi 5435 5436 5437 5438 5439 5440 # Publish this variable in the help. 5441 5442 5443 if [ -z "${BASH+x}" ]; then 5444 # The variable is not set by user, try to locate tool using the code snippet 5445 for ac_prog in bash 5446 do 5447 # Extract the first word of "$ac_prog", so it can be a program name with args. 5448 set dummy $ac_prog; ac_word=$2 5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5450 $as_echo_n "checking for $ac_word... " >&6; } 5451 if ${ac_cv_path_BASH+:} false; then : 5452 $as_echo_n "(cached) " >&6 5453 else 5454 case $BASH in 5455 [\\/]* | ?:[\\/]*) 5456 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5457 ;; 5458 *) 5459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5460 for as_dir in $PATH 5461 do 5462 IFS=$as_save_IFS 5463 test -z "$as_dir" && as_dir=. 5464 for ac_exec_ext in '' $ac_executable_extensions; do 5465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5466 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5468 break 2 5469 fi 5470 done 5471 done 5472 IFS=$as_save_IFS 5473 5474 ;; 5475 esac 5476 fi 5477 BASH=$ac_cv_path_BASH 5478 if test -n "$BASH"; then 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5480 $as_echo "$BASH" >&6; } 5481 else 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5483 $as_echo "no" >&6; } 5484 fi 5485 5486 5487 test -n "$BASH" && break 5488 done 5489 5490 else 5491 # The variable is set, but is it from the command line or the environment? 5492 5493 # Try to remove the string !BASH! from our list. 5494 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 5495 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5496 # If it failed, the variable was not from the command line. Ignore it, 5497 # but warn the user (except for BASH, which is always set by the calling BASH). 5498 if test "xBASH" != xBASH; then 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 5500 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 5501 fi 5502 # Try to locate tool using the code snippet 5503 for ac_prog in bash 5504 do 5505 # Extract the first word of "$ac_prog", so it can be a program name with args. 5506 set dummy $ac_prog; ac_word=$2 5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5508 $as_echo_n "checking for $ac_word... " >&6; } 5509 if ${ac_cv_path_BASH+:} false; then : 5510 $as_echo_n "(cached) " >&6 5511 else 5512 case $BASH in 5513 [\\/]* | ?:[\\/]*) 5514 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5515 ;; 5516 *) 5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5518 for as_dir in $PATH 5519 do 5520 IFS=$as_save_IFS 5521 test -z "$as_dir" && as_dir=. 5522 for ac_exec_ext in '' $ac_executable_extensions; do 5523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5524 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5526 break 2 5527 fi 5528 done 5529 done 5530 IFS=$as_save_IFS 5531 5532 ;; 5533 esac 5534 fi 5535 BASH=$ac_cv_path_BASH 5536 if test -n "$BASH"; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5538 $as_echo "$BASH" >&6; } 5539 else 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5541 $as_echo "no" >&6; } 5542 fi 5543 5544 5545 test -n "$BASH" && break 5546 done 5547 5548 else 5549 # If it succeeded, then it was overridden by the user. We will use it 5550 # for the tool. 5551 5552 # First remove it from the list of overridden variables, so we can test 5553 # for unknown variables in the end. 5554 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5555 5556 # Check if we try to supply an empty value 5557 if test "x$BASH" = x; then 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BASH= (no value)" >&5 5559 $as_echo "$as_me: Setting user supplied tool BASH= (no value)" >&6;} 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5561 $as_echo_n "checking for BASH... " >&6; } 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5563 $as_echo "disabled" >&6; } 5564 else 5565 # Check if the provided tool contains a complete path. 5566 tool_specified="$BASH" 5567 tool_basename="${tool_specified##*/}" 5568 if test "x$tool_basename" = "x$tool_specified"; then 5569 # A command without a complete path is provided, search $PATH. 5570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 5571 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 5572 # Extract the first word of "$tool_basename", so it can be a program name with args. 5573 set dummy $tool_basename; ac_word=$2 5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5575 $as_echo_n "checking for $ac_word... " >&6; } 5576 if ${ac_cv_path_BASH+:} false; then : 5577 $as_echo_n "(cached) " >&6 5578 else 5579 case $BASH in 5580 [\\/]* | ?:[\\/]*) 5581 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 5582 ;; 5583 *) 5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5585 for as_dir in $PATH 5586 do 5587 IFS=$as_save_IFS 5588 test -z "$as_dir" && as_dir=. 5589 for ac_exec_ext in '' $ac_executable_extensions; do 5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5591 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5593 break 2 5594 fi 5595 done 5596 done 5597 IFS=$as_save_IFS 5598 5599 ;; 5600 esac 5601 fi 5602 BASH=$ac_cv_path_BASH 5603 if test -n "$BASH"; then 5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 5605 $as_echo "$BASH" >&6; } 5606 else 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5608 $as_echo "no" >&6; } 5609 fi 5610 5611 5612 if test "x$BASH" = x; then 5613 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5614 fi 5615 else 5616 # Otherwise we believe it is a complete path. Use it as it is. 5617 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 5618 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 5620 $as_echo_n "checking for BASH... " >&6; } 5621 if test ! -x "$tool_specified"; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5623 $as_echo "not found" >&6; } 5624 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 5625 fi 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5627 $as_echo "$tool_specified" >&6; } 5628 fi 5629 fi 5630 fi 5631 5632 fi 5633 5634 5635 5636 if test "x$BASH" = x; then 5637 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 5638 fi 5639 5640 5641 5642 5643 5644 # Publish this variable in the help. 5645 5646 5647 if [ -z "${CAT+x}" ]; then 5648 # The variable is not set by user, try to locate tool using the code snippet 5649 for ac_prog in cat 5650 do 5651 # Extract the first word of "$ac_prog", so it can be a program name with args. 5652 set dummy $ac_prog; ac_word=$2 5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5654 $as_echo_n "checking for $ac_word... " >&6; } 5655 if ${ac_cv_path_CAT+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657 else 5658 case $CAT in 5659 [\\/]* | ?:[\\/]*) 5660 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5661 ;; 5662 *) 5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5664 for as_dir in $PATH 5665 do 5666 IFS=$as_save_IFS 5667 test -z "$as_dir" && as_dir=. 5668 for ac_exec_ext in '' $ac_executable_extensions; do 5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5670 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5672 break 2 5673 fi 5674 done 5675 done 5676 IFS=$as_save_IFS 5677 5678 ;; 5679 esac 5680 fi 5681 CAT=$ac_cv_path_CAT 5682 if test -n "$CAT"; then 5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5684 $as_echo "$CAT" >&6; } 5685 else 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5687 $as_echo "no" >&6; } 5688 fi 5689 5690 5691 test -n "$CAT" && break 5692 done 5693 5694 else 5695 # The variable is set, but is it from the command line or the environment? 5696 5697 # Try to remove the string !CAT! from our list. 5698 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 5699 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5700 # If it failed, the variable was not from the command line. Ignore it, 5701 # but warn the user (except for BASH, which is always set by the calling BASH). 5702 if test "xCAT" != xBASH; then 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 5704 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 5705 fi 5706 # Try to locate tool using the code snippet 5707 for ac_prog in cat 5708 do 5709 # Extract the first word of "$ac_prog", so it can be a program name with args. 5710 set dummy $ac_prog; ac_word=$2 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5712 $as_echo_n "checking for $ac_word... " >&6; } 5713 if ${ac_cv_path_CAT+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715 else 5716 case $CAT in 5717 [\\/]* | ?:[\\/]*) 5718 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5719 ;; 5720 *) 5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5722 for as_dir in $PATH 5723 do 5724 IFS=$as_save_IFS 5725 test -z "$as_dir" && as_dir=. 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5728 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5730 break 2 5731 fi 5732 done 5733 done 5734 IFS=$as_save_IFS 5735 5736 ;; 5737 esac 5738 fi 5739 CAT=$ac_cv_path_CAT 5740 if test -n "$CAT"; then 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5742 $as_echo "$CAT" >&6; } 5743 else 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5745 $as_echo "no" >&6; } 5746 fi 5747 5748 5749 test -n "$CAT" && break 5750 done 5751 5752 else 5753 # If it succeeded, then it was overridden by the user. We will use it 5754 # for the tool. 5755 5756 # First remove it from the list of overridden variables, so we can test 5757 # for unknown variables in the end. 5758 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5759 5760 # Check if we try to supply an empty value 5761 if test "x$CAT" = x; then 5762 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CAT= (no value)" >&5 5763 $as_echo "$as_me: Setting user supplied tool CAT= (no value)" >&6;} 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5765 $as_echo_n "checking for CAT... " >&6; } 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5767 $as_echo "disabled" >&6; } 5768 else 5769 # Check if the provided tool contains a complete path. 5770 tool_specified="$CAT" 5771 tool_basename="${tool_specified##*/}" 5772 if test "x$tool_basename" = "x$tool_specified"; then 5773 # A command without a complete path is provided, search $PATH. 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 5775 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 5776 # Extract the first word of "$tool_basename", so it can be a program name with args. 5777 set dummy $tool_basename; ac_word=$2 5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5779 $as_echo_n "checking for $ac_word... " >&6; } 5780 if ${ac_cv_path_CAT+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782 else 5783 case $CAT in 5784 [\\/]* | ?:[\\/]*) 5785 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 5786 ;; 5787 *) 5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5789 for as_dir in $PATH 5790 do 5791 IFS=$as_save_IFS 5792 test -z "$as_dir" && as_dir=. 5793 for ac_exec_ext in '' $ac_executable_extensions; do 5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5795 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5797 break 2 5798 fi 5799 done 5800 done 5801 IFS=$as_save_IFS 5802 5803 ;; 5804 esac 5805 fi 5806 CAT=$ac_cv_path_CAT 5807 if test -n "$CAT"; then 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 5809 $as_echo "$CAT" >&6; } 5810 else 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5812 $as_echo "no" >&6; } 5813 fi 5814 5815 5816 if test "x$CAT" = x; then 5817 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5818 fi 5819 else 5820 # Otherwise we believe it is a complete path. Use it as it is. 5821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 5822 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 5824 $as_echo_n "checking for CAT... " >&6; } 5825 if test ! -x "$tool_specified"; then 5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5827 $as_echo "not found" >&6; } 5828 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 5829 fi 5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5831 $as_echo "$tool_specified" >&6; } 5832 fi 5833 fi 5834 fi 5835 5836 fi 5837 5838 5839 5840 if test "x$CAT" = x; then 5841 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 5842 fi 5843 5844 5845 5846 5847 5848 # Publish this variable in the help. 5849 5850 5851 if [ -z "${CHMOD+x}" ]; then 5852 # The variable is not set by user, try to locate tool using the code snippet 5853 for ac_prog in chmod 5854 do 5855 # Extract the first word of "$ac_prog", so it can be a program name with args. 5856 set dummy $ac_prog; ac_word=$2 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5858 $as_echo_n "checking for $ac_word... " >&6; } 5859 if ${ac_cv_path_CHMOD+:} false; then : 5860 $as_echo_n "(cached) " >&6 5861 else 5862 case $CHMOD in 5863 [\\/]* | ?:[\\/]*) 5864 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5865 ;; 5866 *) 5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868 for as_dir in $PATH 5869 do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_exec_ext in '' $ac_executable_extensions; do 5873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5874 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5876 break 2 5877 fi 5878 done 5879 done 5880 IFS=$as_save_IFS 5881 5882 ;; 5883 esac 5884 fi 5885 CHMOD=$ac_cv_path_CHMOD 5886 if test -n "$CHMOD"; then 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5888 $as_echo "$CHMOD" >&6; } 5889 else 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5891 $as_echo "no" >&6; } 5892 fi 5893 5894 5895 test -n "$CHMOD" && break 5896 done 5897 5898 else 5899 # The variable is set, but is it from the command line or the environment? 5900 5901 # Try to remove the string !CHMOD! from our list. 5902 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5903 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5904 # If it failed, the variable was not from the command line. Ignore it, 5905 # but warn the user (except for BASH, which is always set by the calling BASH). 5906 if test "xCHMOD" != xBASH; then 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5908 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5909 fi 5910 # Try to locate tool using the code snippet 5911 for ac_prog in chmod 5912 do 5913 # Extract the first word of "$ac_prog", so it can be a program name with args. 5914 set dummy $ac_prog; ac_word=$2 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5916 $as_echo_n "checking for $ac_word... " >&6; } 5917 if ${ac_cv_path_CHMOD+:} false; then : 5918 $as_echo_n "(cached) " >&6 5919 else 5920 case $CHMOD in 5921 [\\/]* | ?:[\\/]*) 5922 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5923 ;; 5924 *) 5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5926 for as_dir in $PATH 5927 do 5928 IFS=$as_save_IFS 5929 test -z "$as_dir" && as_dir=. 5930 for ac_exec_ext in '' $ac_executable_extensions; do 5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5932 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5934 break 2 5935 fi 5936 done 5937 done 5938 IFS=$as_save_IFS 5939 5940 ;; 5941 esac 5942 fi 5943 CHMOD=$ac_cv_path_CHMOD 5944 if test -n "$CHMOD"; then 5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5946 $as_echo "$CHMOD" >&6; } 5947 else 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5949 $as_echo "no" >&6; } 5950 fi 5951 5952 5953 test -n "$CHMOD" && break 5954 done 5955 5956 else 5957 # If it succeeded, then it was overridden by the user. We will use it 5958 # for the tool. 5959 5960 # First remove it from the list of overridden variables, so we can test 5961 # for unknown variables in the end. 5962 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5963 5964 # Check if we try to supply an empty value 5965 if test "x$CHMOD" = x; then 5966 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CHMOD= (no value)" >&5 5967 $as_echo "$as_me: Setting user supplied tool CHMOD= (no value)" >&6;} 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5969 $as_echo_n "checking for CHMOD... " >&6; } 5970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 5971 $as_echo "disabled" >&6; } 5972 else 5973 # Check if the provided tool contains a complete path. 5974 tool_specified="$CHMOD" 5975 tool_basename="${tool_specified##*/}" 5976 if test "x$tool_basename" = "x$tool_specified"; then 5977 # A command without a complete path is provided, search $PATH. 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5979 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5980 # Extract the first word of "$tool_basename", so it can be a program name with args. 5981 set dummy $tool_basename; ac_word=$2 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5983 $as_echo_n "checking for $ac_word... " >&6; } 5984 if ${ac_cv_path_CHMOD+:} false; then : 5985 $as_echo_n "(cached) " >&6 5986 else 5987 case $CHMOD in 5988 [\\/]* | ?:[\\/]*) 5989 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5990 ;; 5991 *) 5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5993 for as_dir in $PATH 5994 do 5995 IFS=$as_save_IFS 5996 test -z "$as_dir" && as_dir=. 5997 for ac_exec_ext in '' $ac_executable_extensions; do 5998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5999 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 6000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6001 break 2 6002 fi 6003 done 6004 done 6005 IFS=$as_save_IFS 6006 6007 ;; 6008 esac 6009 fi 6010 CHMOD=$ac_cv_path_CHMOD 6011 if test -n "$CHMOD"; then 6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 6013 $as_echo "$CHMOD" >&6; } 6014 else 6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6016 $as_echo "no" >&6; } 6017 fi 6018 6019 6020 if test "x$CHMOD" = x; then 6021 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6022 fi 6023 else 6024 # Otherwise we believe it is a complete path. Use it as it is. 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 6026 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 6028 $as_echo_n "checking for CHMOD... " >&6; } 6029 if test ! -x "$tool_specified"; then 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6031 $as_echo "not found" >&6; } 6032 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 6033 fi 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6035 $as_echo "$tool_specified" >&6; } 6036 fi 6037 fi 6038 fi 6039 6040 fi 6041 6042 6043 6044 if test "x$CHMOD" = x; then 6045 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 6046 fi 6047 6048 6049 6050 6051 6052 # Publish this variable in the help. 6053 6054 6055 if [ -z "${CMP+x}" ]; then 6056 # The variable is not set by user, try to locate tool using the code snippet 6057 for ac_prog in cmp 6058 do 6059 # Extract the first word of "$ac_prog", so it can be a program name with args. 6060 set dummy $ac_prog; ac_word=$2 6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6062 $as_echo_n "checking for $ac_word... " >&6; } 6063 if ${ac_cv_path_CMP+:} false; then : 6064 $as_echo_n "(cached) " >&6 6065 else 6066 case $CMP in 6067 [\\/]* | ?:[\\/]*) 6068 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6069 ;; 6070 *) 6071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6072 for as_dir in $PATH 6073 do 6074 IFS=$as_save_IFS 6075 test -z "$as_dir" && as_dir=. 6076 for ac_exec_ext in '' $ac_executable_extensions; do 6077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6078 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6080 break 2 6081 fi 6082 done 6083 done 6084 IFS=$as_save_IFS 6085 6086 ;; 6087 esac 6088 fi 6089 CMP=$ac_cv_path_CMP 6090 if test -n "$CMP"; then 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6092 $as_echo "$CMP" >&6; } 6093 else 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6095 $as_echo "no" >&6; } 6096 fi 6097 6098 6099 test -n "$CMP" && break 6100 done 6101 6102 else 6103 # The variable is set, but is it from the command line or the environment? 6104 6105 # Try to remove the string !CMP! from our list. 6106 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 6107 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6108 # If it failed, the variable was not from the command line. Ignore it, 6109 # but warn the user (except for BASH, which is always set by the calling BASH). 6110 if test "xCMP" != xBASH; then 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 6112 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 6113 fi 6114 # Try to locate tool using the code snippet 6115 for ac_prog in cmp 6116 do 6117 # Extract the first word of "$ac_prog", so it can be a program name with args. 6118 set dummy $ac_prog; ac_word=$2 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6120 $as_echo_n "checking for $ac_word... " >&6; } 6121 if ${ac_cv_path_CMP+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123 else 6124 case $CMP in 6125 [\\/]* | ?:[\\/]*) 6126 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6127 ;; 6128 *) 6129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6130 for as_dir in $PATH 6131 do 6132 IFS=$as_save_IFS 6133 test -z "$as_dir" && as_dir=. 6134 for ac_exec_ext in '' $ac_executable_extensions; do 6135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6136 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6138 break 2 6139 fi 6140 done 6141 done 6142 IFS=$as_save_IFS 6143 6144 ;; 6145 esac 6146 fi 6147 CMP=$ac_cv_path_CMP 6148 if test -n "$CMP"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6150 $as_echo "$CMP" >&6; } 6151 else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153 $as_echo "no" >&6; } 6154 fi 6155 6156 6157 test -n "$CMP" && break 6158 done 6159 6160 else 6161 # If it succeeded, then it was overridden by the user. We will use it 6162 # for the tool. 6163 6164 # First remove it from the list of overridden variables, so we can test 6165 # for unknown variables in the end. 6166 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6167 6168 # Check if we try to supply an empty value 6169 if test "x$CMP" = x; then 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CMP= (no value)" >&5 6171 $as_echo "$as_me: Setting user supplied tool CMP= (no value)" >&6;} 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6173 $as_echo_n "checking for CMP... " >&6; } 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6175 $as_echo "disabled" >&6; } 6176 else 6177 # Check if the provided tool contains a complete path. 6178 tool_specified="$CMP" 6179 tool_basename="${tool_specified##*/}" 6180 if test "x$tool_basename" = "x$tool_specified"; then 6181 # A command without a complete path is provided, search $PATH. 6182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 6183 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 6184 # Extract the first word of "$tool_basename", so it can be a program name with args. 6185 set dummy $tool_basename; ac_word=$2 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6187 $as_echo_n "checking for $ac_word... " >&6; } 6188 if ${ac_cv_path_CMP+:} false; then : 6189 $as_echo_n "(cached) " >&6 6190 else 6191 case $CMP in 6192 [\\/]* | ?:[\\/]*) 6193 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 6194 ;; 6195 *) 6196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6197 for as_dir in $PATH 6198 do 6199 IFS=$as_save_IFS 6200 test -z "$as_dir" && as_dir=. 6201 for ac_exec_ext in '' $ac_executable_extensions; do 6202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6203 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 6204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6205 break 2 6206 fi 6207 done 6208 done 6209 IFS=$as_save_IFS 6210 6211 ;; 6212 esac 6213 fi 6214 CMP=$ac_cv_path_CMP 6215 if test -n "$CMP"; then 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 6217 $as_echo "$CMP" >&6; } 6218 else 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6220 $as_echo "no" >&6; } 6221 fi 6222 6223 6224 if test "x$CMP" = x; then 6225 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6226 fi 6227 else 6228 # Otherwise we believe it is a complete path. Use it as it is. 6229 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 6230 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 6232 $as_echo_n "checking for CMP... " >&6; } 6233 if test ! -x "$tool_specified"; then 6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6235 $as_echo "not found" >&6; } 6236 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 6237 fi 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6239 $as_echo "$tool_specified" >&6; } 6240 fi 6241 fi 6242 fi 6243 6244 fi 6245 6246 6247 6248 if test "x$CMP" = x; then 6249 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 6250 fi 6251 6252 6253 6254 6255 6256 # Publish this variable in the help. 6257 6258 6259 if [ -z "${COMM+x}" ]; then 6260 # The variable is not set by user, try to locate tool using the code snippet 6261 for ac_prog in comm 6262 do 6263 # Extract the first word of "$ac_prog", so it can be a program name with args. 6264 set dummy $ac_prog; ac_word=$2 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6266 $as_echo_n "checking for $ac_word... " >&6; } 6267 if ${ac_cv_path_COMM+:} false; then : 6268 $as_echo_n "(cached) " >&6 6269 else 6270 case $COMM in 6271 [\\/]* | ?:[\\/]*) 6272 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6273 ;; 6274 *) 6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6276 for as_dir in $PATH 6277 do 6278 IFS=$as_save_IFS 6279 test -z "$as_dir" && as_dir=. 6280 for ac_exec_ext in '' $ac_executable_extensions; do 6281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6282 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6284 break 2 6285 fi 6286 done 6287 done 6288 IFS=$as_save_IFS 6289 6290 ;; 6291 esac 6292 fi 6293 COMM=$ac_cv_path_COMM 6294 if test -n "$COMM"; then 6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6296 $as_echo "$COMM" >&6; } 6297 else 6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6299 $as_echo "no" >&6; } 6300 fi 6301 6302 6303 test -n "$COMM" && break 6304 done 6305 6306 else 6307 # The variable is set, but is it from the command line or the environment? 6308 6309 # Try to remove the string !COMM! from our list. 6310 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 6311 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6312 # If it failed, the variable was not from the command line. Ignore it, 6313 # but warn the user (except for BASH, which is always set by the calling BASH). 6314 if test "xCOMM" != xBASH; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 6316 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 6317 fi 6318 # Try to locate tool using the code snippet 6319 for ac_prog in comm 6320 do 6321 # Extract the first word of "$ac_prog", so it can be a program name with args. 6322 set dummy $ac_prog; ac_word=$2 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6324 $as_echo_n "checking for $ac_word... " >&6; } 6325 if ${ac_cv_path_COMM+:} false; then : 6326 $as_echo_n "(cached) " >&6 6327 else 6328 case $COMM in 6329 [\\/]* | ?:[\\/]*) 6330 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6331 ;; 6332 *) 6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6334 for as_dir in $PATH 6335 do 6336 IFS=$as_save_IFS 6337 test -z "$as_dir" && as_dir=. 6338 for ac_exec_ext in '' $ac_executable_extensions; do 6339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6340 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6342 break 2 6343 fi 6344 done 6345 done 6346 IFS=$as_save_IFS 6347 6348 ;; 6349 esac 6350 fi 6351 COMM=$ac_cv_path_COMM 6352 if test -n "$COMM"; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6354 $as_echo "$COMM" >&6; } 6355 else 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357 $as_echo "no" >&6; } 6358 fi 6359 6360 6361 test -n "$COMM" && break 6362 done 6363 6364 else 6365 # If it succeeded, then it was overridden by the user. We will use it 6366 # for the tool. 6367 6368 # First remove it from the list of overridden variables, so we can test 6369 # for unknown variables in the end. 6370 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6371 6372 # Check if we try to supply an empty value 6373 if test "x$COMM" = x; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool COMM= (no value)" >&5 6375 $as_echo "$as_me: Setting user supplied tool COMM= (no value)" >&6;} 6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6377 $as_echo_n "checking for COMM... " >&6; } 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6379 $as_echo "disabled" >&6; } 6380 else 6381 # Check if the provided tool contains a complete path. 6382 tool_specified="$COMM" 6383 tool_basename="${tool_specified##*/}" 6384 if test "x$tool_basename" = "x$tool_specified"; then 6385 # A command without a complete path is provided, search $PATH. 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 6387 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 6388 # Extract the first word of "$tool_basename", so it can be a program name with args. 6389 set dummy $tool_basename; ac_word=$2 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6391 $as_echo_n "checking for $ac_word... " >&6; } 6392 if ${ac_cv_path_COMM+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394 else 6395 case $COMM in 6396 [\\/]* | ?:[\\/]*) 6397 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 6398 ;; 6399 *) 6400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6401 for as_dir in $PATH 6402 do 6403 IFS=$as_save_IFS 6404 test -z "$as_dir" && as_dir=. 6405 for ac_exec_ext in '' $ac_executable_extensions; do 6406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6407 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 6408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6409 break 2 6410 fi 6411 done 6412 done 6413 IFS=$as_save_IFS 6414 6415 ;; 6416 esac 6417 fi 6418 COMM=$ac_cv_path_COMM 6419 if test -n "$COMM"; then 6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 6421 $as_echo "$COMM" >&6; } 6422 else 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6424 $as_echo "no" >&6; } 6425 fi 6426 6427 6428 if test "x$COMM" = x; then 6429 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6430 fi 6431 else 6432 # Otherwise we believe it is a complete path. Use it as it is. 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 6434 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 6436 $as_echo_n "checking for COMM... " >&6; } 6437 if test ! -x "$tool_specified"; then 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6439 $as_echo "not found" >&6; } 6440 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 6441 fi 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6443 $as_echo "$tool_specified" >&6; } 6444 fi 6445 fi 6446 fi 6447 6448 fi 6449 6450 6451 6452 if test "x$COMM" = x; then 6453 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 6454 fi 6455 6456 6457 6458 6459 6460 # Publish this variable in the help. 6461 6462 6463 if [ -z "${CP+x}" ]; then 6464 # The variable is not set by user, try to locate tool using the code snippet 6465 for ac_prog in cp 6466 do 6467 # Extract the first word of "$ac_prog", so it can be a program name with args. 6468 set dummy $ac_prog; ac_word=$2 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6470 $as_echo_n "checking for $ac_word... " >&6; } 6471 if ${ac_cv_path_CP+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473 else 6474 case $CP in 6475 [\\/]* | ?:[\\/]*) 6476 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6477 ;; 6478 *) 6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480 for as_dir in $PATH 6481 do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490 done 6491 done 6492 IFS=$as_save_IFS 6493 6494 ;; 6495 esac 6496 fi 6497 CP=$ac_cv_path_CP 6498 if test -n "$CP"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6500 $as_echo "$CP" >&6; } 6501 else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503 $as_echo "no" >&6; } 6504 fi 6505 6506 6507 test -n "$CP" && break 6508 done 6509 6510 else 6511 # The variable is set, but is it from the command line or the environment? 6512 6513 # Try to remove the string !CP! from our list. 6514 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 6515 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6516 # If it failed, the variable was not from the command line. Ignore it, 6517 # but warn the user (except for BASH, which is always set by the calling BASH). 6518 if test "xCP" != xBASH; then 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 6520 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 6521 fi 6522 # Try to locate tool using the code snippet 6523 for ac_prog in cp 6524 do 6525 # Extract the first word of "$ac_prog", so it can be a program name with args. 6526 set dummy $ac_prog; ac_word=$2 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6528 $as_echo_n "checking for $ac_word... " >&6; } 6529 if ${ac_cv_path_CP+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531 else 6532 case $CP in 6533 [\\/]* | ?:[\\/]*) 6534 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6535 ;; 6536 *) 6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6538 for as_dir in $PATH 6539 do 6540 IFS=$as_save_IFS 6541 test -z "$as_dir" && as_dir=. 6542 for ac_exec_ext in '' $ac_executable_extensions; do 6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6544 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6546 break 2 6547 fi 6548 done 6549 done 6550 IFS=$as_save_IFS 6551 6552 ;; 6553 esac 6554 fi 6555 CP=$ac_cv_path_CP 6556 if test -n "$CP"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6558 $as_echo "$CP" >&6; } 6559 else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561 $as_echo "no" >&6; } 6562 fi 6563 6564 6565 test -n "$CP" && break 6566 done 6567 6568 else 6569 # If it succeeded, then it was overridden by the user. We will use it 6570 # for the tool. 6571 6572 # First remove it from the list of overridden variables, so we can test 6573 # for unknown variables in the end. 6574 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6575 6576 # Check if we try to supply an empty value 6577 if test "x$CP" = x; then 6578 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CP= (no value)" >&5 6579 $as_echo "$as_me: Setting user supplied tool CP= (no value)" >&6;} 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6581 $as_echo_n "checking for CP... " >&6; } 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6583 $as_echo "disabled" >&6; } 6584 else 6585 # Check if the provided tool contains a complete path. 6586 tool_specified="$CP" 6587 tool_basename="${tool_specified##*/}" 6588 if test "x$tool_basename" = "x$tool_specified"; then 6589 # A command without a complete path is provided, search $PATH. 6590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 6591 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 6592 # Extract the first word of "$tool_basename", so it can be a program name with args. 6593 set dummy $tool_basename; ac_word=$2 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595 $as_echo_n "checking for $ac_word... " >&6; } 6596 if ${ac_cv_path_CP+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598 else 6599 case $CP in 6600 [\\/]* | ?:[\\/]*) 6601 ac_cv_path_CP="$CP" # Let the user override the test with a path. 6602 ;; 6603 *) 6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6605 for as_dir in $PATH 6606 do 6607 IFS=$as_save_IFS 6608 test -z "$as_dir" && as_dir=. 6609 for ac_exec_ext in '' $ac_executable_extensions; do 6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6611 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6613 break 2 6614 fi 6615 done 6616 done 6617 IFS=$as_save_IFS 6618 6619 ;; 6620 esac 6621 fi 6622 CP=$ac_cv_path_CP 6623 if test -n "$CP"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 6625 $as_echo "$CP" >&6; } 6626 else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628 $as_echo "no" >&6; } 6629 fi 6630 6631 6632 if test "x$CP" = x; then 6633 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6634 fi 6635 else 6636 # Otherwise we believe it is a complete path. Use it as it is. 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 6638 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 6639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 6640 $as_echo_n "checking for CP... " >&6; } 6641 if test ! -x "$tool_specified"; then 6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6643 $as_echo "not found" >&6; } 6644 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 6645 fi 6646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6647 $as_echo "$tool_specified" >&6; } 6648 fi 6649 fi 6650 fi 6651 6652 fi 6653 6654 6655 6656 if test "x$CP" = x; then 6657 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 6658 fi 6659 6660 6661 6662 6663 6664 # Publish this variable in the help. 6665 6666 6667 if [ -z "${CUT+x}" ]; then 6668 # The variable is not set by user, try to locate tool using the code snippet 6669 for ac_prog in cut 6670 do 6671 # Extract the first word of "$ac_prog", so it can be a program name with args. 6672 set dummy $ac_prog; ac_word=$2 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6674 $as_echo_n "checking for $ac_word... " >&6; } 6675 if ${ac_cv_path_CUT+:} false; then : 6676 $as_echo_n "(cached) " >&6 6677 else 6678 case $CUT in 6679 [\\/]* | ?:[\\/]*) 6680 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6681 ;; 6682 *) 6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6684 for as_dir in $PATH 6685 do 6686 IFS=$as_save_IFS 6687 test -z "$as_dir" && as_dir=. 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6690 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6692 break 2 6693 fi 6694 done 6695 done 6696 IFS=$as_save_IFS 6697 6698 ;; 6699 esac 6700 fi 6701 CUT=$ac_cv_path_CUT 6702 if test -n "$CUT"; then 6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6704 $as_echo "$CUT" >&6; } 6705 else 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6707 $as_echo "no" >&6; } 6708 fi 6709 6710 6711 test -n "$CUT" && break 6712 done 6713 6714 else 6715 # The variable is set, but is it from the command line or the environment? 6716 6717 # Try to remove the string !CUT! from our list. 6718 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 6719 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6720 # If it failed, the variable was not from the command line. Ignore it, 6721 # but warn the user (except for BASH, which is always set by the calling BASH). 6722 if test "xCUT" != xBASH; then 6723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 6724 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 6725 fi 6726 # Try to locate tool using the code snippet 6727 for ac_prog in cut 6728 do 6729 # Extract the first word of "$ac_prog", so it can be a program name with args. 6730 set dummy $ac_prog; ac_word=$2 6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6732 $as_echo_n "checking for $ac_word... " >&6; } 6733 if ${ac_cv_path_CUT+:} false; then : 6734 $as_echo_n "(cached) " >&6 6735 else 6736 case $CUT in 6737 [\\/]* | ?:[\\/]*) 6738 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6739 ;; 6740 *) 6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6742 for as_dir in $PATH 6743 do 6744 IFS=$as_save_IFS 6745 test -z "$as_dir" && as_dir=. 6746 for ac_exec_ext in '' $ac_executable_extensions; do 6747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6748 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6750 break 2 6751 fi 6752 done 6753 done 6754 IFS=$as_save_IFS 6755 6756 ;; 6757 esac 6758 fi 6759 CUT=$ac_cv_path_CUT 6760 if test -n "$CUT"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6762 $as_echo "$CUT" >&6; } 6763 else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765 $as_echo "no" >&6; } 6766 fi 6767 6768 6769 test -n "$CUT" && break 6770 done 6771 6772 else 6773 # If it succeeded, then it was overridden by the user. We will use it 6774 # for the tool. 6775 6776 # First remove it from the list of overridden variables, so we can test 6777 # for unknown variables in the end. 6778 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6779 6780 # Check if we try to supply an empty value 6781 if test "x$CUT" = x; then 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CUT= (no value)" >&5 6783 $as_echo "$as_me: Setting user supplied tool CUT= (no value)" >&6;} 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6785 $as_echo_n "checking for CUT... " >&6; } 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6787 $as_echo "disabled" >&6; } 6788 else 6789 # Check if the provided tool contains a complete path. 6790 tool_specified="$CUT" 6791 tool_basename="${tool_specified##*/}" 6792 if test "x$tool_basename" = "x$tool_specified"; then 6793 # A command without a complete path is provided, search $PATH. 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 6795 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 6796 # Extract the first word of "$tool_basename", so it can be a program name with args. 6797 set dummy $tool_basename; ac_word=$2 6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6799 $as_echo_n "checking for $ac_word... " >&6; } 6800 if ${ac_cv_path_CUT+:} false; then : 6801 $as_echo_n "(cached) " >&6 6802 else 6803 case $CUT in 6804 [\\/]* | ?:[\\/]*) 6805 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 6806 ;; 6807 *) 6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6809 for as_dir in $PATH 6810 do 6811 IFS=$as_save_IFS 6812 test -z "$as_dir" && as_dir=. 6813 for ac_exec_ext in '' $ac_executable_extensions; do 6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6815 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6817 break 2 6818 fi 6819 done 6820 done 6821 IFS=$as_save_IFS 6822 6823 ;; 6824 esac 6825 fi 6826 CUT=$ac_cv_path_CUT 6827 if test -n "$CUT"; then 6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 6829 $as_echo "$CUT" >&6; } 6830 else 6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6832 $as_echo "no" >&6; } 6833 fi 6834 6835 6836 if test "x$CUT" = x; then 6837 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6838 fi 6839 else 6840 # Otherwise we believe it is a complete path. Use it as it is. 6841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6842 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6844 $as_echo_n "checking for CUT... " >&6; } 6845 if test ! -x "$tool_specified"; then 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6847 $as_echo "not found" >&6; } 6848 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6849 fi 6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6851 $as_echo "$tool_specified" >&6; } 6852 fi 6853 fi 6854 fi 6855 6856 fi 6857 6858 6859 6860 if test "x$CUT" = x; then 6861 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6862 fi 6863 6864 6865 6866 6867 6868 # Publish this variable in the help. 6869 6870 6871 if [ -z "${DATE+x}" ]; then 6872 # The variable is not set by user, try to locate tool using the code snippet 6873 for ac_prog in date 6874 do 6875 # Extract the first word of "$ac_prog", so it can be a program name with args. 6876 set dummy $ac_prog; ac_word=$2 6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6878 $as_echo_n "checking for $ac_word... " >&6; } 6879 if ${ac_cv_path_DATE+:} false; then : 6880 $as_echo_n "(cached) " >&6 6881 else 6882 case $DATE in 6883 [\\/]* | ?:[\\/]*) 6884 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6885 ;; 6886 *) 6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6888 for as_dir in $PATH 6889 do 6890 IFS=$as_save_IFS 6891 test -z "$as_dir" && as_dir=. 6892 for ac_exec_ext in '' $ac_executable_extensions; do 6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6894 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6896 break 2 6897 fi 6898 done 6899 done 6900 IFS=$as_save_IFS 6901 6902 ;; 6903 esac 6904 fi 6905 DATE=$ac_cv_path_DATE 6906 if test -n "$DATE"; then 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6908 $as_echo "$DATE" >&6; } 6909 else 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6911 $as_echo "no" >&6; } 6912 fi 6913 6914 6915 test -n "$DATE" && break 6916 done 6917 6918 else 6919 # The variable is set, but is it from the command line or the environment? 6920 6921 # Try to remove the string !DATE! from our list. 6922 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6923 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6924 # If it failed, the variable was not from the command line. Ignore it, 6925 # but warn the user (except for BASH, which is always set by the calling BASH). 6926 if test "xDATE" != xBASH; then 6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6928 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6929 fi 6930 # Try to locate tool using the code snippet 6931 for ac_prog in date 6932 do 6933 # Extract the first word of "$ac_prog", so it can be a program name with args. 6934 set dummy $ac_prog; ac_word=$2 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6936 $as_echo_n "checking for $ac_word... " >&6; } 6937 if ${ac_cv_path_DATE+:} false; then : 6938 $as_echo_n "(cached) " >&6 6939 else 6940 case $DATE in 6941 [\\/]* | ?:[\\/]*) 6942 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6943 ;; 6944 *) 6945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6946 for as_dir in $PATH 6947 do 6948 IFS=$as_save_IFS 6949 test -z "$as_dir" && as_dir=. 6950 for ac_exec_ext in '' $ac_executable_extensions; do 6951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6952 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6954 break 2 6955 fi 6956 done 6957 done 6958 IFS=$as_save_IFS 6959 6960 ;; 6961 esac 6962 fi 6963 DATE=$ac_cv_path_DATE 6964 if test -n "$DATE"; then 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6966 $as_echo "$DATE" >&6; } 6967 else 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6969 $as_echo "no" >&6; } 6970 fi 6971 6972 6973 test -n "$DATE" && break 6974 done 6975 6976 else 6977 # If it succeeded, then it was overridden by the user. We will use it 6978 # for the tool. 6979 6980 # First remove it from the list of overridden variables, so we can test 6981 # for unknown variables in the end. 6982 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6983 6984 # Check if we try to supply an empty value 6985 if test "x$DATE" = x; then 6986 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DATE= (no value)" >&5 6987 $as_echo "$as_me: Setting user supplied tool DATE= (no value)" >&6;} 6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6989 $as_echo_n "checking for DATE... " >&6; } 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 6991 $as_echo "disabled" >&6; } 6992 else 6993 # Check if the provided tool contains a complete path. 6994 tool_specified="$DATE" 6995 tool_basename="${tool_specified##*/}" 6996 if test "x$tool_basename" = "x$tool_specified"; then 6997 # A command without a complete path is provided, search $PATH. 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6999 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 7000 # Extract the first word of "$tool_basename", so it can be a program name with args. 7001 set dummy $tool_basename; ac_word=$2 7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7003 $as_echo_n "checking for $ac_word... " >&6; } 7004 if ${ac_cv_path_DATE+:} false; then : 7005 $as_echo_n "(cached) " >&6 7006 else 7007 case $DATE in 7008 [\\/]* | ?:[\\/]*) 7009 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 7010 ;; 7011 *) 7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7013 for as_dir in $PATH 7014 do 7015 IFS=$as_save_IFS 7016 test -z "$as_dir" && as_dir=. 7017 for ac_exec_ext in '' $ac_executable_extensions; do 7018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7019 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7021 break 2 7022 fi 7023 done 7024 done 7025 IFS=$as_save_IFS 7026 7027 ;; 7028 esac 7029 fi 7030 DATE=$ac_cv_path_DATE 7031 if test -n "$DATE"; then 7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 7033 $as_echo "$DATE" >&6; } 7034 else 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7036 $as_echo "no" >&6; } 7037 fi 7038 7039 7040 if test "x$DATE" = x; then 7041 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7042 fi 7043 else 7044 # Otherwise we believe it is a complete path. Use it as it is. 7045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 7046 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 7048 $as_echo_n "checking for DATE... " >&6; } 7049 if test ! -x "$tool_specified"; then 7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7051 $as_echo "not found" >&6; } 7052 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 7053 fi 7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7055 $as_echo "$tool_specified" >&6; } 7056 fi 7057 fi 7058 fi 7059 7060 fi 7061 7062 7063 7064 if test "x$DATE" = x; then 7065 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 7066 fi 7067 7068 7069 7070 7071 7072 # Publish this variable in the help. 7073 7074 7075 if [ -z "${DIFF+x}" ]; then 7076 # The variable is not set by user, try to locate tool using the code snippet 7077 for ac_prog in gdiff diff 7078 do 7079 # Extract the first word of "$ac_prog", so it can be a program name with args. 7080 set dummy $ac_prog; ac_word=$2 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7082 $as_echo_n "checking for $ac_word... " >&6; } 7083 if ${ac_cv_path_DIFF+:} false; then : 7084 $as_echo_n "(cached) " >&6 7085 else 7086 case $DIFF in 7087 [\\/]* | ?:[\\/]*) 7088 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7089 ;; 7090 *) 7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7092 for as_dir in $PATH 7093 do 7094 IFS=$as_save_IFS 7095 test -z "$as_dir" && as_dir=. 7096 for ac_exec_ext in '' $ac_executable_extensions; do 7097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7098 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7100 break 2 7101 fi 7102 done 7103 done 7104 IFS=$as_save_IFS 7105 7106 ;; 7107 esac 7108 fi 7109 DIFF=$ac_cv_path_DIFF 7110 if test -n "$DIFF"; then 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7112 $as_echo "$DIFF" >&6; } 7113 else 7114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7115 $as_echo "no" >&6; } 7116 fi 7117 7118 7119 test -n "$DIFF" && break 7120 done 7121 7122 else 7123 # The variable is set, but is it from the command line or the environment? 7124 7125 # Try to remove the string !DIFF! from our list. 7126 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 7127 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7128 # If it failed, the variable was not from the command line. Ignore it, 7129 # but warn the user (except for BASH, which is always set by the calling BASH). 7130 if test "xDIFF" != xBASH; then 7131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 7132 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 7133 fi 7134 # Try to locate tool using the code snippet 7135 for ac_prog in gdiff diff 7136 do 7137 # Extract the first word of "$ac_prog", so it can be a program name with args. 7138 set dummy $ac_prog; ac_word=$2 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7140 $as_echo_n "checking for $ac_word... " >&6; } 7141 if ${ac_cv_path_DIFF+:} false; then : 7142 $as_echo_n "(cached) " >&6 7143 else 7144 case $DIFF in 7145 [\\/]* | ?:[\\/]*) 7146 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7147 ;; 7148 *) 7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150 for as_dir in $PATH 7151 do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7156 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160 done 7161 done 7162 IFS=$as_save_IFS 7163 7164 ;; 7165 esac 7166 fi 7167 DIFF=$ac_cv_path_DIFF 7168 if test -n "$DIFF"; then 7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7170 $as_echo "$DIFF" >&6; } 7171 else 7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7173 $as_echo "no" >&6; } 7174 fi 7175 7176 7177 test -n "$DIFF" && break 7178 done 7179 7180 else 7181 # If it succeeded, then it was overridden by the user. We will use it 7182 # for the tool. 7183 7184 # First remove it from the list of overridden variables, so we can test 7185 # for unknown variables in the end. 7186 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7187 7188 # Check if we try to supply an empty value 7189 if test "x$DIFF" = x; then 7190 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIFF= (no value)" >&5 7191 $as_echo "$as_me: Setting user supplied tool DIFF= (no value)" >&6;} 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7193 $as_echo_n "checking for DIFF... " >&6; } 7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7195 $as_echo "disabled" >&6; } 7196 else 7197 # Check if the provided tool contains a complete path. 7198 tool_specified="$DIFF" 7199 tool_basename="${tool_specified##*/}" 7200 if test "x$tool_basename" = "x$tool_specified"; then 7201 # A command without a complete path is provided, search $PATH. 7202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 7203 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 7204 # Extract the first word of "$tool_basename", so it can be a program name with args. 7205 set dummy $tool_basename; ac_word=$2 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207 $as_echo_n "checking for $ac_word... " >&6; } 7208 if ${ac_cv_path_DIFF+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210 else 7211 case $DIFF in 7212 [\\/]* | ?:[\\/]*) 7213 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 7214 ;; 7215 *) 7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7217 for as_dir in $PATH 7218 do 7219 IFS=$as_save_IFS 7220 test -z "$as_dir" && as_dir=. 7221 for ac_exec_ext in '' $ac_executable_extensions; do 7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7223 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7225 break 2 7226 fi 7227 done 7228 done 7229 IFS=$as_save_IFS 7230 7231 ;; 7232 esac 7233 fi 7234 DIFF=$ac_cv_path_DIFF 7235 if test -n "$DIFF"; then 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 7237 $as_echo "$DIFF" >&6; } 7238 else 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7240 $as_echo "no" >&6; } 7241 fi 7242 7243 7244 if test "x$DIFF" = x; then 7245 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7246 fi 7247 else 7248 # Otherwise we believe it is a complete path. Use it as it is. 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 7250 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 7252 $as_echo_n "checking for DIFF... " >&6; } 7253 if test ! -x "$tool_specified"; then 7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7255 $as_echo "not found" >&6; } 7256 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 7257 fi 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7259 $as_echo "$tool_specified" >&6; } 7260 fi 7261 fi 7262 fi 7263 7264 fi 7265 7266 7267 7268 if test "x$DIFF" = x; then 7269 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 7270 fi 7271 7272 7273 7274 7275 7276 # Publish this variable in the help. 7277 7278 7279 if [ -z "${DIRNAME+x}" ]; then 7280 # The variable is not set by user, try to locate tool using the code snippet 7281 for ac_prog in dirname 7282 do 7283 # Extract the first word of "$ac_prog", so it can be a program name with args. 7284 set dummy $ac_prog; ac_word=$2 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7286 $as_echo_n "checking for $ac_word... " >&6; } 7287 if ${ac_cv_path_DIRNAME+:} false; then : 7288 $as_echo_n "(cached) " >&6 7289 else 7290 case $DIRNAME in 7291 [\\/]* | ?:[\\/]*) 7292 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7293 ;; 7294 *) 7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296 for as_dir in $PATH 7297 do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7302 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306 done 7307 done 7308 IFS=$as_save_IFS 7309 7310 ;; 7311 esac 7312 fi 7313 DIRNAME=$ac_cv_path_DIRNAME 7314 if test -n "$DIRNAME"; then 7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7316 $as_echo "$DIRNAME" >&6; } 7317 else 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7319 $as_echo "no" >&6; } 7320 fi 7321 7322 7323 test -n "$DIRNAME" && break 7324 done 7325 7326 else 7327 # The variable is set, but is it from the command line or the environment? 7328 7329 # Try to remove the string !DIRNAME! from our list. 7330 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 7331 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7332 # If it failed, the variable was not from the command line. Ignore it, 7333 # but warn the user (except for BASH, which is always set by the calling BASH). 7334 if test "xDIRNAME" != xBASH; then 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 7336 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 7337 fi 7338 # Try to locate tool using the code snippet 7339 for ac_prog in dirname 7340 do 7341 # Extract the first word of "$ac_prog", so it can be a program name with args. 7342 set dummy $ac_prog; ac_word=$2 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7344 $as_echo_n "checking for $ac_word... " >&6; } 7345 if ${ac_cv_path_DIRNAME+:} false; then : 7346 $as_echo_n "(cached) " >&6 7347 else 7348 case $DIRNAME in 7349 [\\/]* | ?:[\\/]*) 7350 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7351 ;; 7352 *) 7353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7354 for as_dir in $PATH 7355 do 7356 IFS=$as_save_IFS 7357 test -z "$as_dir" && as_dir=. 7358 for ac_exec_ext in '' $ac_executable_extensions; do 7359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7360 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7362 break 2 7363 fi 7364 done 7365 done 7366 IFS=$as_save_IFS 7367 7368 ;; 7369 esac 7370 fi 7371 DIRNAME=$ac_cv_path_DIRNAME 7372 if test -n "$DIRNAME"; then 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7374 $as_echo "$DIRNAME" >&6; } 7375 else 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7377 $as_echo "no" >&6; } 7378 fi 7379 7380 7381 test -n "$DIRNAME" && break 7382 done 7383 7384 else 7385 # If it succeeded, then it was overridden by the user. We will use it 7386 # for the tool. 7387 7388 # First remove it from the list of overridden variables, so we can test 7389 # for unknown variables in the end. 7390 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7391 7392 # Check if we try to supply an empty value 7393 if test "x$DIRNAME" = x; then 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DIRNAME= (no value)" >&5 7395 $as_echo "$as_me: Setting user supplied tool DIRNAME= (no value)" >&6;} 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7397 $as_echo_n "checking for DIRNAME... " >&6; } 7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7399 $as_echo "disabled" >&6; } 7400 else 7401 # Check if the provided tool contains a complete path. 7402 tool_specified="$DIRNAME" 7403 tool_basename="${tool_specified##*/}" 7404 if test "x$tool_basename" = "x$tool_specified"; then 7405 # A command without a complete path is provided, search $PATH. 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 7407 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 7408 # Extract the first word of "$tool_basename", so it can be a program name with args. 7409 set dummy $tool_basename; ac_word=$2 7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7411 $as_echo_n "checking for $ac_word... " >&6; } 7412 if ${ac_cv_path_DIRNAME+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414 else 7415 case $DIRNAME in 7416 [\\/]* | ?:[\\/]*) 7417 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 7418 ;; 7419 *) 7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7421 for as_dir in $PATH 7422 do 7423 IFS=$as_save_IFS 7424 test -z "$as_dir" && as_dir=. 7425 for ac_exec_ext in '' $ac_executable_extensions; do 7426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7427 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7429 break 2 7430 fi 7431 done 7432 done 7433 IFS=$as_save_IFS 7434 7435 ;; 7436 esac 7437 fi 7438 DIRNAME=$ac_cv_path_DIRNAME 7439 if test -n "$DIRNAME"; then 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 7441 $as_echo "$DIRNAME" >&6; } 7442 else 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7444 $as_echo "no" >&6; } 7445 fi 7446 7447 7448 if test "x$DIRNAME" = x; then 7449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7450 fi 7451 else 7452 # Otherwise we believe it is a complete path. Use it as it is. 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 7454 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 7456 $as_echo_n "checking for DIRNAME... " >&6; } 7457 if test ! -x "$tool_specified"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7459 $as_echo "not found" >&6; } 7460 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 7461 fi 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7463 $as_echo "$tool_specified" >&6; } 7464 fi 7465 fi 7466 fi 7467 7468 fi 7469 7470 7471 7472 if test "x$DIRNAME" = x; then 7473 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 7474 fi 7475 7476 7477 7478 7479 7480 # Publish this variable in the help. 7481 7482 7483 if [ -z "${ECHO+x}" ]; then 7484 # The variable is not set by user, try to locate tool using the code snippet 7485 for ac_prog in echo 7486 do 7487 # Extract the first word of "$ac_prog", so it can be a program name with args. 7488 set dummy $ac_prog; ac_word=$2 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7490 $as_echo_n "checking for $ac_word... " >&6; } 7491 if ${ac_cv_path_ECHO+:} false; then : 7492 $as_echo_n "(cached) " >&6 7493 else 7494 case $ECHO in 7495 [\\/]* | ?:[\\/]*) 7496 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7497 ;; 7498 *) 7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7500 for as_dir in $PATH 7501 do 7502 IFS=$as_save_IFS 7503 test -z "$as_dir" && as_dir=. 7504 for ac_exec_ext in '' $ac_executable_extensions; do 7505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7506 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7508 break 2 7509 fi 7510 done 7511 done 7512 IFS=$as_save_IFS 7513 7514 ;; 7515 esac 7516 fi 7517 ECHO=$ac_cv_path_ECHO 7518 if test -n "$ECHO"; then 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7520 $as_echo "$ECHO" >&6; } 7521 else 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7523 $as_echo "no" >&6; } 7524 fi 7525 7526 7527 test -n "$ECHO" && break 7528 done 7529 7530 else 7531 # The variable is set, but is it from the command line or the environment? 7532 7533 # Try to remove the string !ECHO! from our list. 7534 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 7535 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7536 # If it failed, the variable was not from the command line. Ignore it, 7537 # but warn the user (except for BASH, which is always set by the calling BASH). 7538 if test "xECHO" != xBASH; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 7540 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 7541 fi 7542 # Try to locate tool using the code snippet 7543 for ac_prog in echo 7544 do 7545 # Extract the first word of "$ac_prog", so it can be a program name with args. 7546 set dummy $ac_prog; ac_word=$2 7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7548 $as_echo_n "checking for $ac_word... " >&6; } 7549 if ${ac_cv_path_ECHO+:} false; then : 7550 $as_echo_n "(cached) " >&6 7551 else 7552 case $ECHO in 7553 [\\/]* | ?:[\\/]*) 7554 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7555 ;; 7556 *) 7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7558 for as_dir in $PATH 7559 do 7560 IFS=$as_save_IFS 7561 test -z "$as_dir" && as_dir=. 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7564 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7566 break 2 7567 fi 7568 done 7569 done 7570 IFS=$as_save_IFS 7571 7572 ;; 7573 esac 7574 fi 7575 ECHO=$ac_cv_path_ECHO 7576 if test -n "$ECHO"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7578 $as_echo "$ECHO" >&6; } 7579 else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581 $as_echo "no" >&6; } 7582 fi 7583 7584 7585 test -n "$ECHO" && break 7586 done 7587 7588 else 7589 # If it succeeded, then it was overridden by the user. We will use it 7590 # for the tool. 7591 7592 # First remove it from the list of overridden variables, so we can test 7593 # for unknown variables in the end. 7594 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7595 7596 # Check if we try to supply an empty value 7597 if test "x$ECHO" = x; then 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ECHO= (no value)" >&5 7599 $as_echo "$as_me: Setting user supplied tool ECHO= (no value)" >&6;} 7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7601 $as_echo_n "checking for ECHO... " >&6; } 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7603 $as_echo "disabled" >&6; } 7604 else 7605 # Check if the provided tool contains a complete path. 7606 tool_specified="$ECHO" 7607 tool_basename="${tool_specified##*/}" 7608 if test "x$tool_basename" = "x$tool_specified"; then 7609 # A command without a complete path is provided, search $PATH. 7610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 7611 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 7612 # Extract the first word of "$tool_basename", so it can be a program name with args. 7613 set dummy $tool_basename; ac_word=$2 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7615 $as_echo_n "checking for $ac_word... " >&6; } 7616 if ${ac_cv_path_ECHO+:} false; then : 7617 $as_echo_n "(cached) " >&6 7618 else 7619 case $ECHO in 7620 [\\/]* | ?:[\\/]*) 7621 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 7622 ;; 7623 *) 7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7625 for as_dir in $PATH 7626 do 7627 IFS=$as_save_IFS 7628 test -z "$as_dir" && as_dir=. 7629 for ac_exec_ext in '' $ac_executable_extensions; do 7630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7631 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 7632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7633 break 2 7634 fi 7635 done 7636 done 7637 IFS=$as_save_IFS 7638 7639 ;; 7640 esac 7641 fi 7642 ECHO=$ac_cv_path_ECHO 7643 if test -n "$ECHO"; then 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 7645 $as_echo "$ECHO" >&6; } 7646 else 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7648 $as_echo "no" >&6; } 7649 fi 7650 7651 7652 if test "x$ECHO" = x; then 7653 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7654 fi 7655 else 7656 # Otherwise we believe it is a complete path. Use it as it is. 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 7658 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 7660 $as_echo_n "checking for ECHO... " >&6; } 7661 if test ! -x "$tool_specified"; then 7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7663 $as_echo "not found" >&6; } 7664 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 7665 fi 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7667 $as_echo "$tool_specified" >&6; } 7668 fi 7669 fi 7670 fi 7671 7672 fi 7673 7674 7675 7676 if test "x$ECHO" = x; then 7677 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 7678 fi 7679 7680 7681 7682 7683 7684 # Publish this variable in the help. 7685 7686 7687 if [ -z "${EXPR+x}" ]; then 7688 # The variable is not set by user, try to locate tool using the code snippet 7689 for ac_prog in expr 7690 do 7691 # Extract the first word of "$ac_prog", so it can be a program name with args. 7692 set dummy $ac_prog; ac_word=$2 7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7694 $as_echo_n "checking for $ac_word... " >&6; } 7695 if ${ac_cv_path_EXPR+:} false; then : 7696 $as_echo_n "(cached) " >&6 7697 else 7698 case $EXPR in 7699 [\\/]* | ?:[\\/]*) 7700 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7701 ;; 7702 *) 7703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704 for as_dir in $PATH 7705 do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7710 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714 done 7715 done 7716 IFS=$as_save_IFS 7717 7718 ;; 7719 esac 7720 fi 7721 EXPR=$ac_cv_path_EXPR 7722 if test -n "$EXPR"; then 7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7724 $as_echo "$EXPR" >&6; } 7725 else 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7727 $as_echo "no" >&6; } 7728 fi 7729 7730 7731 test -n "$EXPR" && break 7732 done 7733 7734 else 7735 # The variable is set, but is it from the command line or the environment? 7736 7737 # Try to remove the string !EXPR! from our list. 7738 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 7739 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7740 # If it failed, the variable was not from the command line. Ignore it, 7741 # but warn the user (except for BASH, which is always set by the calling BASH). 7742 if test "xEXPR" != xBASH; then 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 7744 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 7745 fi 7746 # Try to locate tool using the code snippet 7747 for ac_prog in expr 7748 do 7749 # Extract the first word of "$ac_prog", so it can be a program name with args. 7750 set dummy $ac_prog; ac_word=$2 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7752 $as_echo_n "checking for $ac_word... " >&6; } 7753 if ${ac_cv_path_EXPR+:} false; then : 7754 $as_echo_n "(cached) " >&6 7755 else 7756 case $EXPR in 7757 [\\/]* | ?:[\\/]*) 7758 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7759 ;; 7760 *) 7761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7762 for as_dir in $PATH 7763 do 7764 IFS=$as_save_IFS 7765 test -z "$as_dir" && as_dir=. 7766 for ac_exec_ext in '' $ac_executable_extensions; do 7767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7768 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7770 break 2 7771 fi 7772 done 7773 done 7774 IFS=$as_save_IFS 7775 7776 ;; 7777 esac 7778 fi 7779 EXPR=$ac_cv_path_EXPR 7780 if test -n "$EXPR"; then 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7782 $as_echo "$EXPR" >&6; } 7783 else 7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7785 $as_echo "no" >&6; } 7786 fi 7787 7788 7789 test -n "$EXPR" && break 7790 done 7791 7792 else 7793 # If it succeeded, then it was overridden by the user. We will use it 7794 # for the tool. 7795 7796 # First remove it from the list of overridden variables, so we can test 7797 # for unknown variables in the end. 7798 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7799 7800 # Check if we try to supply an empty value 7801 if test "x$EXPR" = x; then 7802 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EXPR= (no value)" >&5 7803 $as_echo "$as_me: Setting user supplied tool EXPR= (no value)" >&6;} 7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7805 $as_echo_n "checking for EXPR... " >&6; } 7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 7807 $as_echo "disabled" >&6; } 7808 else 7809 # Check if the provided tool contains a complete path. 7810 tool_specified="$EXPR" 7811 tool_basename="${tool_specified##*/}" 7812 if test "x$tool_basename" = "x$tool_specified"; then 7813 # A command without a complete path is provided, search $PATH. 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 7815 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 7816 # Extract the first word of "$tool_basename", so it can be a program name with args. 7817 set dummy $tool_basename; ac_word=$2 7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7819 $as_echo_n "checking for $ac_word... " >&6; } 7820 if ${ac_cv_path_EXPR+:} false; then : 7821 $as_echo_n "(cached) " >&6 7822 else 7823 case $EXPR in 7824 [\\/]* | ?:[\\/]*) 7825 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 7826 ;; 7827 *) 7828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7829 for as_dir in $PATH 7830 do 7831 IFS=$as_save_IFS 7832 test -z "$as_dir" && as_dir=. 7833 for ac_exec_ext in '' $ac_executable_extensions; do 7834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7835 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 7836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7837 break 2 7838 fi 7839 done 7840 done 7841 IFS=$as_save_IFS 7842 7843 ;; 7844 esac 7845 fi 7846 EXPR=$ac_cv_path_EXPR 7847 if test -n "$EXPR"; then 7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 7849 $as_echo "$EXPR" >&6; } 7850 else 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7852 $as_echo "no" >&6; } 7853 fi 7854 7855 7856 if test "x$EXPR" = x; then 7857 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7858 fi 7859 else 7860 # Otherwise we believe it is a complete path. Use it as it is. 7861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 7862 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 7864 $as_echo_n "checking for EXPR... " >&6; } 7865 if test ! -x "$tool_specified"; then 7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7867 $as_echo "not found" >&6; } 7868 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 7869 fi 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7871 $as_echo "$tool_specified" >&6; } 7872 fi 7873 fi 7874 fi 7875 7876 fi 7877 7878 7879 7880 if test "x$EXPR" = x; then 7881 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 7882 fi 7883 7884 7885 7886 7887 7888 # Publish this variable in the help. 7889 7890 7891 if [ -z "${FILE+x}" ]; then 7892 # The variable is not set by user, try to locate tool using the code snippet 7893 for ac_prog in file 7894 do 7895 # Extract the first word of "$ac_prog", so it can be a program name with args. 7896 set dummy $ac_prog; ac_word=$2 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7898 $as_echo_n "checking for $ac_word... " >&6; } 7899 if ${ac_cv_path_FILE+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901 else 7902 case $FILE in 7903 [\\/]* | ?:[\\/]*) 7904 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7905 ;; 7906 *) 7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7908 for as_dir in $PATH 7909 do 7910 IFS=$as_save_IFS 7911 test -z "$as_dir" && as_dir=. 7912 for ac_exec_ext in '' $ac_executable_extensions; do 7913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7914 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7916 break 2 7917 fi 7918 done 7919 done 7920 IFS=$as_save_IFS 7921 7922 ;; 7923 esac 7924 fi 7925 FILE=$ac_cv_path_FILE 7926 if test -n "$FILE"; then 7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7928 $as_echo "$FILE" >&6; } 7929 else 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7931 $as_echo "no" >&6; } 7932 fi 7933 7934 7935 test -n "$FILE" && break 7936 done 7937 7938 else 7939 # The variable is set, but is it from the command line or the environment? 7940 7941 # Try to remove the string !FILE! from our list. 7942 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7943 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7944 # If it failed, the variable was not from the command line. Ignore it, 7945 # but warn the user (except for BASH, which is always set by the calling BASH). 7946 if test "xFILE" != xBASH; then 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7948 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7949 fi 7950 # Try to locate tool using the code snippet 7951 for ac_prog in file 7952 do 7953 # Extract the first word of "$ac_prog", so it can be a program name with args. 7954 set dummy $ac_prog; ac_word=$2 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7956 $as_echo_n "checking for $ac_word... " >&6; } 7957 if ${ac_cv_path_FILE+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959 else 7960 case $FILE in 7961 [\\/]* | ?:[\\/]*) 7962 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7963 ;; 7964 *) 7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966 for as_dir in $PATH 7967 do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976 done 7977 done 7978 IFS=$as_save_IFS 7979 7980 ;; 7981 esac 7982 fi 7983 FILE=$ac_cv_path_FILE 7984 if test -n "$FILE"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7986 $as_echo "$FILE" >&6; } 7987 else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989 $as_echo "no" >&6; } 7990 fi 7991 7992 7993 test -n "$FILE" && break 7994 done 7995 7996 else 7997 # If it succeeded, then it was overridden by the user. We will use it 7998 # for the tool. 7999 8000 # First remove it from the list of overridden variables, so we can test 8001 # for unknown variables in the end. 8002 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8003 8004 # Check if we try to supply an empty value 8005 if test "x$FILE" = x; then 8006 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FILE= (no value)" >&5 8007 $as_echo "$as_me: Setting user supplied tool FILE= (no value)" >&6;} 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8009 $as_echo_n "checking for FILE... " >&6; } 8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8011 $as_echo "disabled" >&6; } 8012 else 8013 # Check if the provided tool contains a complete path. 8014 tool_specified="$FILE" 8015 tool_basename="${tool_specified##*/}" 8016 if test "x$tool_basename" = "x$tool_specified"; then 8017 # A command without a complete path is provided, search $PATH. 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 8019 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 8020 # Extract the first word of "$tool_basename", so it can be a program name with args. 8021 set dummy $tool_basename; ac_word=$2 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8023 $as_echo_n "checking for $ac_word... " >&6; } 8024 if ${ac_cv_path_FILE+:} false; then : 8025 $as_echo_n "(cached) " >&6 8026 else 8027 case $FILE in 8028 [\\/]* | ?:[\\/]*) 8029 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 8030 ;; 8031 *) 8032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8033 for as_dir in $PATH 8034 do 8035 IFS=$as_save_IFS 8036 test -z "$as_dir" && as_dir=. 8037 for ac_exec_ext in '' $ac_executable_extensions; do 8038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8039 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 8040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8041 break 2 8042 fi 8043 done 8044 done 8045 IFS=$as_save_IFS 8046 8047 ;; 8048 esac 8049 fi 8050 FILE=$ac_cv_path_FILE 8051 if test -n "$FILE"; then 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 8053 $as_echo "$FILE" >&6; } 8054 else 8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8056 $as_echo "no" >&6; } 8057 fi 8058 8059 8060 if test "x$FILE" = x; then 8061 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8062 fi 8063 else 8064 # Otherwise we believe it is a complete path. Use it as it is. 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 8066 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 8068 $as_echo_n "checking for FILE... " >&6; } 8069 if test ! -x "$tool_specified"; then 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8071 $as_echo "not found" >&6; } 8072 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 8073 fi 8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8075 $as_echo "$tool_specified" >&6; } 8076 fi 8077 fi 8078 fi 8079 8080 fi 8081 8082 8083 8084 if test "x$FILE" = x; then 8085 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 8086 fi 8087 8088 8089 8090 8091 8092 # Publish this variable in the help. 8093 8094 8095 if [ -z "${FIND+x}" ]; then 8096 # The variable is not set by user, try to locate tool using the code snippet 8097 for ac_prog in find 8098 do 8099 # Extract the first word of "$ac_prog", so it can be a program name with args. 8100 set dummy $ac_prog; ac_word=$2 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8102 $as_echo_n "checking for $ac_word... " >&6; } 8103 if ${ac_cv_path_FIND+:} false; then : 8104 $as_echo_n "(cached) " >&6 8105 else 8106 case $FIND in 8107 [\\/]* | ?:[\\/]*) 8108 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8109 ;; 8110 *) 8111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8112 for as_dir in $PATH 8113 do 8114 IFS=$as_save_IFS 8115 test -z "$as_dir" && as_dir=. 8116 for ac_exec_ext in '' $ac_executable_extensions; do 8117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8118 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8120 break 2 8121 fi 8122 done 8123 done 8124 IFS=$as_save_IFS 8125 8126 ;; 8127 esac 8128 fi 8129 FIND=$ac_cv_path_FIND 8130 if test -n "$FIND"; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8132 $as_echo "$FIND" >&6; } 8133 else 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8135 $as_echo "no" >&6; } 8136 fi 8137 8138 8139 test -n "$FIND" && break 8140 done 8141 8142 else 8143 # The variable is set, but is it from the command line or the environment? 8144 8145 # Try to remove the string !FIND! from our list. 8146 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 8147 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8148 # If it failed, the variable was not from the command line. Ignore it, 8149 # but warn the user (except for BASH, which is always set by the calling BASH). 8150 if test "xFIND" != xBASH; then 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 8152 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 8153 fi 8154 # Try to locate tool using the code snippet 8155 for ac_prog in find 8156 do 8157 # Extract the first word of "$ac_prog", so it can be a program name with args. 8158 set dummy $ac_prog; ac_word=$2 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8160 $as_echo_n "checking for $ac_word... " >&6; } 8161 if ${ac_cv_path_FIND+:} false; then : 8162 $as_echo_n "(cached) " >&6 8163 else 8164 case $FIND in 8165 [\\/]* | ?:[\\/]*) 8166 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8167 ;; 8168 *) 8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8170 for as_dir in $PATH 8171 do 8172 IFS=$as_save_IFS 8173 test -z "$as_dir" && as_dir=. 8174 for ac_exec_ext in '' $ac_executable_extensions; do 8175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8176 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8178 break 2 8179 fi 8180 done 8181 done 8182 IFS=$as_save_IFS 8183 8184 ;; 8185 esac 8186 fi 8187 FIND=$ac_cv_path_FIND 8188 if test -n "$FIND"; then 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8190 $as_echo "$FIND" >&6; } 8191 else 8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8193 $as_echo "no" >&6; } 8194 fi 8195 8196 8197 test -n "$FIND" && break 8198 done 8199 8200 else 8201 # If it succeeded, then it was overridden by the user. We will use it 8202 # for the tool. 8203 8204 # First remove it from the list of overridden variables, so we can test 8205 # for unknown variables in the end. 8206 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8207 8208 # Check if we try to supply an empty value 8209 if test "x$FIND" = x; then 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FIND= (no value)" >&5 8211 $as_echo "$as_me: Setting user supplied tool FIND= (no value)" >&6;} 8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8213 $as_echo_n "checking for FIND... " >&6; } 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8215 $as_echo "disabled" >&6; } 8216 else 8217 # Check if the provided tool contains a complete path. 8218 tool_specified="$FIND" 8219 tool_basename="${tool_specified##*/}" 8220 if test "x$tool_basename" = "x$tool_specified"; then 8221 # A command without a complete path is provided, search $PATH. 8222 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 8223 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 8224 # Extract the first word of "$tool_basename", so it can be a program name with args. 8225 set dummy $tool_basename; ac_word=$2 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8227 $as_echo_n "checking for $ac_word... " >&6; } 8228 if ${ac_cv_path_FIND+:} false; then : 8229 $as_echo_n "(cached) " >&6 8230 else 8231 case $FIND in 8232 [\\/]* | ?:[\\/]*) 8233 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 8234 ;; 8235 *) 8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8237 for as_dir in $PATH 8238 do 8239 IFS=$as_save_IFS 8240 test -z "$as_dir" && as_dir=. 8241 for ac_exec_ext in '' $ac_executable_extensions; do 8242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8243 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8245 break 2 8246 fi 8247 done 8248 done 8249 IFS=$as_save_IFS 8250 8251 ;; 8252 esac 8253 fi 8254 FIND=$ac_cv_path_FIND 8255 if test -n "$FIND"; then 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 8257 $as_echo "$FIND" >&6; } 8258 else 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8260 $as_echo "no" >&6; } 8261 fi 8262 8263 8264 if test "x$FIND" = x; then 8265 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8266 fi 8267 else 8268 # Otherwise we believe it is a complete path. Use it as it is. 8269 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 8270 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 8272 $as_echo_n "checking for FIND... " >&6; } 8273 if test ! -x "$tool_specified"; then 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8275 $as_echo "not found" >&6; } 8276 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 8277 fi 8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8279 $as_echo "$tool_specified" >&6; } 8280 fi 8281 fi 8282 fi 8283 8284 fi 8285 8286 8287 8288 if test "x$FIND" = x; then 8289 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 8290 fi 8291 8292 8293 8294 8295 8296 # Publish this variable in the help. 8297 8298 8299 if [ -z "${HEAD+x}" ]; then 8300 # The variable is not set by user, try to locate tool using the code snippet 8301 for ac_prog in head 8302 do 8303 # Extract the first word of "$ac_prog", so it can be a program name with args. 8304 set dummy $ac_prog; ac_word=$2 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8306 $as_echo_n "checking for $ac_word... " >&6; } 8307 if ${ac_cv_path_HEAD+:} false; then : 8308 $as_echo_n "(cached) " >&6 8309 else 8310 case $HEAD in 8311 [\\/]* | ?:[\\/]*) 8312 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8313 ;; 8314 *) 8315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8316 for as_dir in $PATH 8317 do 8318 IFS=$as_save_IFS 8319 test -z "$as_dir" && as_dir=. 8320 for ac_exec_ext in '' $ac_executable_extensions; do 8321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8322 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8324 break 2 8325 fi 8326 done 8327 done 8328 IFS=$as_save_IFS 8329 8330 ;; 8331 esac 8332 fi 8333 HEAD=$ac_cv_path_HEAD 8334 if test -n "$HEAD"; then 8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8336 $as_echo "$HEAD" >&6; } 8337 else 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8339 $as_echo "no" >&6; } 8340 fi 8341 8342 8343 test -n "$HEAD" && break 8344 done 8345 8346 else 8347 # The variable is set, but is it from the command line or the environment? 8348 8349 # Try to remove the string !HEAD! from our list. 8350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 8351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8352 # If it failed, the variable was not from the command line. Ignore it, 8353 # but warn the user (except for BASH, which is always set by the calling BASH). 8354 if test "xHEAD" != xBASH; then 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 8356 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 8357 fi 8358 # Try to locate tool using the code snippet 8359 for ac_prog in head 8360 do 8361 # Extract the first word of "$ac_prog", so it can be a program name with args. 8362 set dummy $ac_prog; ac_word=$2 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8364 $as_echo_n "checking for $ac_word... " >&6; } 8365 if ${ac_cv_path_HEAD+:} false; then : 8366 $as_echo_n "(cached) " >&6 8367 else 8368 case $HEAD in 8369 [\\/]* | ?:[\\/]*) 8370 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8371 ;; 8372 *) 8373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8374 for as_dir in $PATH 8375 do 8376 IFS=$as_save_IFS 8377 test -z "$as_dir" && as_dir=. 8378 for ac_exec_ext in '' $ac_executable_extensions; do 8379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8380 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8382 break 2 8383 fi 8384 done 8385 done 8386 IFS=$as_save_IFS 8387 8388 ;; 8389 esac 8390 fi 8391 HEAD=$ac_cv_path_HEAD 8392 if test -n "$HEAD"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8394 $as_echo "$HEAD" >&6; } 8395 else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8397 $as_echo "no" >&6; } 8398 fi 8399 8400 8401 test -n "$HEAD" && break 8402 done 8403 8404 else 8405 # If it succeeded, then it was overridden by the user. We will use it 8406 # for the tool. 8407 8408 # First remove it from the list of overridden variables, so we can test 8409 # for unknown variables in the end. 8410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8411 8412 # Check if we try to supply an empty value 8413 if test "x$HEAD" = x; then 8414 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HEAD= (no value)" >&5 8415 $as_echo "$as_me: Setting user supplied tool HEAD= (no value)" >&6;} 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8417 $as_echo_n "checking for HEAD... " >&6; } 8418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8419 $as_echo "disabled" >&6; } 8420 else 8421 # Check if the provided tool contains a complete path. 8422 tool_specified="$HEAD" 8423 tool_basename="${tool_specified##*/}" 8424 if test "x$tool_basename" = "x$tool_specified"; then 8425 # A command without a complete path is provided, search $PATH. 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 8427 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 8428 # Extract the first word of "$tool_basename", so it can be a program name with args. 8429 set dummy $tool_basename; ac_word=$2 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8431 $as_echo_n "checking for $ac_word... " >&6; } 8432 if ${ac_cv_path_HEAD+:} false; then : 8433 $as_echo_n "(cached) " >&6 8434 else 8435 case $HEAD in 8436 [\\/]* | ?:[\\/]*) 8437 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 8438 ;; 8439 *) 8440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8441 for as_dir in $PATH 8442 do 8443 IFS=$as_save_IFS 8444 test -z "$as_dir" && as_dir=. 8445 for ac_exec_ext in '' $ac_executable_extensions; do 8446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8447 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 8448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8449 break 2 8450 fi 8451 done 8452 done 8453 IFS=$as_save_IFS 8454 8455 ;; 8456 esac 8457 fi 8458 HEAD=$ac_cv_path_HEAD 8459 if test -n "$HEAD"; then 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 8461 $as_echo "$HEAD" >&6; } 8462 else 8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8464 $as_echo "no" >&6; } 8465 fi 8466 8467 8468 if test "x$HEAD" = x; then 8469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8470 fi 8471 else 8472 # Otherwise we believe it is a complete path. Use it as it is. 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 8474 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 8476 $as_echo_n "checking for HEAD... " >&6; } 8477 if test ! -x "$tool_specified"; then 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8479 $as_echo "not found" >&6; } 8480 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 8481 fi 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8483 $as_echo "$tool_specified" >&6; } 8484 fi 8485 fi 8486 fi 8487 8488 fi 8489 8490 8491 8492 if test "x$HEAD" = x; then 8493 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 8494 fi 8495 8496 8497 8498 8499 8500 # Publish this variable in the help. 8501 8502 8503 if [ -z "${GUNZIP+x}" ]; then 8504 # The variable is not set by user, try to locate tool using the code snippet 8505 for ac_prog in gunzip 8506 do 8507 # Extract the first word of "$ac_prog", so it can be a program name with args. 8508 set dummy $ac_prog; ac_word=$2 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8510 $as_echo_n "checking for $ac_word... " >&6; } 8511 if ${ac_cv_path_GUNZIP+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513 else 8514 case $GUNZIP in 8515 [\\/]* | ?:[\\/]*) 8516 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8517 ;; 8518 *) 8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8520 for as_dir in $PATH 8521 do 8522 IFS=$as_save_IFS 8523 test -z "$as_dir" && as_dir=. 8524 for ac_exec_ext in '' $ac_executable_extensions; do 8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8526 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8528 break 2 8529 fi 8530 done 8531 done 8532 IFS=$as_save_IFS 8533 8534 ;; 8535 esac 8536 fi 8537 GUNZIP=$ac_cv_path_GUNZIP 8538 if test -n "$GUNZIP"; then 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8540 $as_echo "$GUNZIP" >&6; } 8541 else 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8543 $as_echo "no" >&6; } 8544 fi 8545 8546 8547 test -n "$GUNZIP" && break 8548 done 8549 8550 else 8551 # The variable is set, but is it from the command line or the environment? 8552 8553 # Try to remove the string !GUNZIP! from our list. 8554 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GUNZIP!/} 8555 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8556 # If it failed, the variable was not from the command line. Ignore it, 8557 # but warn the user (except for BASH, which is always set by the calling BASH). 8558 if test "xGUNZIP" != xBASH; then 8559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&5 8560 $as_echo "$as_me: WARNING: Ignoring value of GUNZIP from the environment. Use command line variables instead." >&2;} 8561 fi 8562 # Try to locate tool using the code snippet 8563 for ac_prog in gunzip 8564 do 8565 # Extract the first word of "$ac_prog", so it can be a program name with args. 8566 set dummy $ac_prog; ac_word=$2 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8568 $as_echo_n "checking for $ac_word... " >&6; } 8569 if ${ac_cv_path_GUNZIP+:} false; then : 8570 $as_echo_n "(cached) " >&6 8571 else 8572 case $GUNZIP in 8573 [\\/]* | ?:[\\/]*) 8574 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8575 ;; 8576 *) 8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8578 for as_dir in $PATH 8579 do 8580 IFS=$as_save_IFS 8581 test -z "$as_dir" && as_dir=. 8582 for ac_exec_ext in '' $ac_executable_extensions; do 8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8584 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8586 break 2 8587 fi 8588 done 8589 done 8590 IFS=$as_save_IFS 8591 8592 ;; 8593 esac 8594 fi 8595 GUNZIP=$ac_cv_path_GUNZIP 8596 if test -n "$GUNZIP"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8598 $as_echo "$GUNZIP" >&6; } 8599 else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601 $as_echo "no" >&6; } 8602 fi 8603 8604 8605 test -n "$GUNZIP" && break 8606 done 8607 8608 else 8609 # If it succeeded, then it was overridden by the user. We will use it 8610 # for the tool. 8611 8612 # First remove it from the list of overridden variables, so we can test 8613 # for unknown variables in the end. 8614 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8615 8616 # Check if we try to supply an empty value 8617 if test "x$GUNZIP" = x; then 8618 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GUNZIP= (no value)" >&5 8619 $as_echo "$as_me: Setting user supplied tool GUNZIP= (no value)" >&6;} 8620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8621 $as_echo_n "checking for GUNZIP... " >&6; } 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8623 $as_echo "disabled" >&6; } 8624 else 8625 # Check if the provided tool contains a complete path. 8626 tool_specified="$GUNZIP" 8627 tool_basename="${tool_specified##*/}" 8628 if test "x$tool_basename" = "x$tool_specified"; then 8629 # A command without a complete path is provided, search $PATH. 8630 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GUNZIP=$tool_basename" >&5 8631 $as_echo "$as_me: Will search for user supplied tool GUNZIP=$tool_basename" >&6;} 8632 # Extract the first word of "$tool_basename", so it can be a program name with args. 8633 set dummy $tool_basename; ac_word=$2 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8635 $as_echo_n "checking for $ac_word... " >&6; } 8636 if ${ac_cv_path_GUNZIP+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638 else 8639 case $GUNZIP in 8640 [\\/]* | ?:[\\/]*) 8641 ac_cv_path_GUNZIP="$GUNZIP" # Let the user override the test with a path. 8642 ;; 8643 *) 8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8645 for as_dir in $PATH 8646 do 8647 IFS=$as_save_IFS 8648 test -z "$as_dir" && as_dir=. 8649 for ac_exec_ext in '' $ac_executable_extensions; do 8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8651 ac_cv_path_GUNZIP="$as_dir/$ac_word$ac_exec_ext" 8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8653 break 2 8654 fi 8655 done 8656 done 8657 IFS=$as_save_IFS 8658 8659 ;; 8660 esac 8661 fi 8662 GUNZIP=$ac_cv_path_GUNZIP 8663 if test -n "$GUNZIP"; then 8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUNZIP" >&5 8665 $as_echo "$GUNZIP" >&6; } 8666 else 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8668 $as_echo "no" >&6; } 8669 fi 8670 8671 8672 if test "x$GUNZIP" = x; then 8673 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8674 fi 8675 else 8676 # Otherwise we believe it is a complete path. Use it as it is. 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GUNZIP=$tool_specified" >&5 8678 $as_echo "$as_me: Will use user supplied tool GUNZIP=$tool_specified" >&6;} 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GUNZIP" >&5 8680 $as_echo_n "checking for GUNZIP... " >&6; } 8681 if test ! -x "$tool_specified"; then 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8683 $as_echo "not found" >&6; } 8684 as_fn_error $? "User supplied tool GUNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8685 fi 8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8687 $as_echo "$tool_specified" >&6; } 8688 fi 8689 fi 8690 fi 8691 8692 fi 8693 8694 8695 8696 if test "x$GUNZIP" = x; then 8697 as_fn_error $? "Could not find required tool for GUNZIP" "$LINENO" 5 8698 fi 8699 8700 8701 8702 8703 8704 # Publish this variable in the help. 8705 8706 8707 if [ -z "${GZIP+x}" ]; then 8708 # The variable is not set by user, try to locate tool using the code snippet 8709 for ac_prog in pigz gzip 8710 do 8711 # Extract the first word of "$ac_prog", so it can be a program name with args. 8712 set dummy $ac_prog; ac_word=$2 8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8714 $as_echo_n "checking for $ac_word... " >&6; } 8715 if ${ac_cv_path_GZIP+:} false; then : 8716 $as_echo_n "(cached) " >&6 8717 else 8718 case $GZIP in 8719 [\\/]* | ?:[\\/]*) 8720 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8721 ;; 8722 *) 8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8724 for as_dir in $PATH 8725 do 8726 IFS=$as_save_IFS 8727 test -z "$as_dir" && as_dir=. 8728 for ac_exec_ext in '' $ac_executable_extensions; do 8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8730 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8732 break 2 8733 fi 8734 done 8735 done 8736 IFS=$as_save_IFS 8737 8738 ;; 8739 esac 8740 fi 8741 GZIP=$ac_cv_path_GZIP 8742 if test -n "$GZIP"; then 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8744 $as_echo "$GZIP" >&6; } 8745 else 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8747 $as_echo "no" >&6; } 8748 fi 8749 8750 8751 test -n "$GZIP" && break 8752 done 8753 8754 else 8755 # The variable is set, but is it from the command line or the environment? 8756 8757 # Try to remove the string !GZIP! from our list. 8758 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GZIP!/} 8759 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8760 # If it failed, the variable was not from the command line. Ignore it, 8761 # but warn the user (except for BASH, which is always set by the calling BASH). 8762 if test "xGZIP" != xBASH; then 8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&5 8764 $as_echo "$as_me: WARNING: Ignoring value of GZIP from the environment. Use command line variables instead." >&2;} 8765 fi 8766 # Try to locate tool using the code snippet 8767 for ac_prog in pigz gzip 8768 do 8769 # Extract the first word of "$ac_prog", so it can be a program name with args. 8770 set dummy $ac_prog; ac_word=$2 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8772 $as_echo_n "checking for $ac_word... " >&6; } 8773 if ${ac_cv_path_GZIP+:} false; then : 8774 $as_echo_n "(cached) " >&6 8775 else 8776 case $GZIP in 8777 [\\/]* | ?:[\\/]*) 8778 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8779 ;; 8780 *) 8781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8782 for as_dir in $PATH 8783 do 8784 IFS=$as_save_IFS 8785 test -z "$as_dir" && as_dir=. 8786 for ac_exec_ext in '' $ac_executable_extensions; do 8787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8788 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8790 break 2 8791 fi 8792 done 8793 done 8794 IFS=$as_save_IFS 8795 8796 ;; 8797 esac 8798 fi 8799 GZIP=$ac_cv_path_GZIP 8800 if test -n "$GZIP"; then 8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8802 $as_echo "$GZIP" >&6; } 8803 else 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8805 $as_echo "no" >&6; } 8806 fi 8807 8808 8809 test -n "$GZIP" && break 8810 done 8811 8812 else 8813 # If it succeeded, then it was overridden by the user. We will use it 8814 # for the tool. 8815 8816 # First remove it from the list of overridden variables, so we can test 8817 # for unknown variables in the end. 8818 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8819 8820 # Check if we try to supply an empty value 8821 if test "x$GZIP" = x; then 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GZIP= (no value)" >&5 8823 $as_echo "$as_me: Setting user supplied tool GZIP= (no value)" >&6;} 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8825 $as_echo_n "checking for GZIP... " >&6; } 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 8827 $as_echo "disabled" >&6; } 8828 else 8829 # Check if the provided tool contains a complete path. 8830 tool_specified="$GZIP" 8831 tool_basename="${tool_specified##*/}" 8832 if test "x$tool_basename" = "x$tool_specified"; then 8833 # A command without a complete path is provided, search $PATH. 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GZIP=$tool_basename" >&5 8835 $as_echo "$as_me: Will search for user supplied tool GZIP=$tool_basename" >&6;} 8836 # Extract the first word of "$tool_basename", so it can be a program name with args. 8837 set dummy $tool_basename; ac_word=$2 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8839 $as_echo_n "checking for $ac_word... " >&6; } 8840 if ${ac_cv_path_GZIP+:} false; then : 8841 $as_echo_n "(cached) " >&6 8842 else 8843 case $GZIP in 8844 [\\/]* | ?:[\\/]*) 8845 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. 8846 ;; 8847 *) 8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8849 for as_dir in $PATH 8850 do 8851 IFS=$as_save_IFS 8852 test -z "$as_dir" && as_dir=. 8853 for ac_exec_ext in '' $ac_executable_extensions; do 8854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8855 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" 8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8857 break 2 8858 fi 8859 done 8860 done 8861 IFS=$as_save_IFS 8862 8863 ;; 8864 esac 8865 fi 8866 GZIP=$ac_cv_path_GZIP 8867 if test -n "$GZIP"; then 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 8869 $as_echo "$GZIP" >&6; } 8870 else 8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8872 $as_echo "no" >&6; } 8873 fi 8874 8875 8876 if test "x$GZIP" = x; then 8877 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8878 fi 8879 else 8880 # Otherwise we believe it is a complete path. Use it as it is. 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GZIP=$tool_specified" >&5 8882 $as_echo "$as_me: Will use user supplied tool GZIP=$tool_specified" >&6;} 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GZIP" >&5 8884 $as_echo_n "checking for GZIP... " >&6; } 8885 if test ! -x "$tool_specified"; then 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8887 $as_echo "not found" >&6; } 8888 as_fn_error $? "User supplied tool GZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 8889 fi 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8891 $as_echo "$tool_specified" >&6; } 8892 fi 8893 fi 8894 fi 8895 8896 fi 8897 8898 8899 8900 if test "x$GZIP" = x; then 8901 as_fn_error $? "Could not find required tool for GZIP" "$LINENO" 5 8902 fi 8903 8904 8905 8906 8907 8908 # Publish this variable in the help. 8909 8910 8911 if [ -z "${LN+x}" ]; then 8912 # The variable is not set by user, try to locate tool using the code snippet 8913 for ac_prog in ln 8914 do 8915 # Extract the first word of "$ac_prog", so it can be a program name with args. 8916 set dummy $ac_prog; ac_word=$2 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8918 $as_echo_n "checking for $ac_word... " >&6; } 8919 if ${ac_cv_path_LN+:} false; then : 8920 $as_echo_n "(cached) " >&6 8921 else 8922 case $LN in 8923 [\\/]* | ?:[\\/]*) 8924 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8925 ;; 8926 *) 8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8928 for as_dir in $PATH 8929 do 8930 IFS=$as_save_IFS 8931 test -z "$as_dir" && as_dir=. 8932 for ac_exec_ext in '' $ac_executable_extensions; do 8933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8934 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8936 break 2 8937 fi 8938 done 8939 done 8940 IFS=$as_save_IFS 8941 8942 ;; 8943 esac 8944 fi 8945 LN=$ac_cv_path_LN 8946 if test -n "$LN"; then 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 8948 $as_echo "$LN" >&6; } 8949 else 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8951 $as_echo "no" >&6; } 8952 fi 8953 8954 8955 test -n "$LN" && break 8956 done 8957 8958 else 8959 # The variable is set, but is it from the command line or the environment? 8960 8961 # Try to remove the string !LN! from our list. 8962 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 8963 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8964 # If it failed, the variable was not from the command line. Ignore it, 8965 # but warn the user (except for BASH, which is always set by the calling BASH). 8966 if test "xLN" != xBASH; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 8968 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 8969 fi 8970 # Try to locate tool using the code snippet 8971 for ac_prog in ln 8972 do 8973 # Extract the first word of "$ac_prog", so it can be a program name with args. 8974 set dummy $ac_prog; ac_word=$2 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8976 $as_echo_n "checking for $ac_word... " >&6; } 8977 if ${ac_cv_path_LN+:} false; then : 8978 $as_echo_n "(cached) " >&6 8979 else 8980 case $LN in 8981 [\\/]* | ?:[\\/]*) 8982 ac_cv_path_LN="$LN" # Let the user override the test with a path. 8983 ;; 8984 *) 8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8986 for as_dir in $PATH 8987 do 8988 IFS=$as_save_IFS 8989 test -z "$as_dir" && as_dir=. 8990 for ac_exec_ext in '' $ac_executable_extensions; do 8991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8992 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8994 break 2 8995 fi 8996 done 8997 done 8998 IFS=$as_save_IFS 8999 9000 ;; 9001 esac 9002 fi 9003 LN=$ac_cv_path_LN 9004 if test -n "$LN"; then 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9006 $as_echo "$LN" >&6; } 9007 else 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9009 $as_echo "no" >&6; } 9010 fi 9011 9012 9013 test -n "$LN" && break 9014 done 9015 9016 else 9017 # If it succeeded, then it was overridden by the user. We will use it 9018 # for the tool. 9019 9020 # First remove it from the list of overridden variables, so we can test 9021 # for unknown variables in the end. 9022 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9023 9024 # Check if we try to supply an empty value 9025 if test "x$LN" = x; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LN= (no value)" >&5 9027 $as_echo "$as_me: Setting user supplied tool LN= (no value)" >&6;} 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9029 $as_echo_n "checking for LN... " >&6; } 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9031 $as_echo "disabled" >&6; } 9032 else 9033 # Check if the provided tool contains a complete path. 9034 tool_specified="$LN" 9035 tool_basename="${tool_specified##*/}" 9036 if test "x$tool_basename" = "x$tool_specified"; then 9037 # A command without a complete path is provided, search $PATH. 9038 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 9039 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 9040 # Extract the first word of "$tool_basename", so it can be a program name with args. 9041 set dummy $tool_basename; ac_word=$2 9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9043 $as_echo_n "checking for $ac_word... " >&6; } 9044 if ${ac_cv_path_LN+:} false; then : 9045 $as_echo_n "(cached) " >&6 9046 else 9047 case $LN in 9048 [\\/]* | ?:[\\/]*) 9049 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9050 ;; 9051 *) 9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9053 for as_dir in $PATH 9054 do 9055 IFS=$as_save_IFS 9056 test -z "$as_dir" && as_dir=. 9057 for ac_exec_ext in '' $ac_executable_extensions; do 9058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9059 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9061 break 2 9062 fi 9063 done 9064 done 9065 IFS=$as_save_IFS 9066 9067 ;; 9068 esac 9069 fi 9070 LN=$ac_cv_path_LN 9071 if test -n "$LN"; then 9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9073 $as_echo "$LN" >&6; } 9074 else 9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9076 $as_echo "no" >&6; } 9077 fi 9078 9079 9080 if test "x$LN" = x; then 9081 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9082 fi 9083 else 9084 # Otherwise we believe it is a complete path. Use it as it is. 9085 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 9086 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 9088 $as_echo_n "checking for LN... " >&6; } 9089 if test ! -x "$tool_specified"; then 9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9091 $as_echo "not found" >&6; } 9092 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 9093 fi 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9095 $as_echo "$tool_specified" >&6; } 9096 fi 9097 fi 9098 fi 9099 9100 fi 9101 9102 9103 9104 if test "x$LN" = x; then 9105 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 9106 fi 9107 9108 9109 9110 9111 9112 # Publish this variable in the help. 9113 9114 9115 if [ -z "${LS+x}" ]; then 9116 # The variable is not set by user, try to locate tool using the code snippet 9117 for ac_prog in ls 9118 do 9119 # Extract the first word of "$ac_prog", so it can be a program name with args. 9120 set dummy $ac_prog; ac_word=$2 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9122 $as_echo_n "checking for $ac_word... " >&6; } 9123 if ${ac_cv_path_LS+:} false; then : 9124 $as_echo_n "(cached) " >&6 9125 else 9126 case $LS in 9127 [\\/]* | ?:[\\/]*) 9128 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9129 ;; 9130 *) 9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9132 for as_dir in $PATH 9133 do 9134 IFS=$as_save_IFS 9135 test -z "$as_dir" && as_dir=. 9136 for ac_exec_ext in '' $ac_executable_extensions; do 9137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9138 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9140 break 2 9141 fi 9142 done 9143 done 9144 IFS=$as_save_IFS 9145 9146 ;; 9147 esac 9148 fi 9149 LS=$ac_cv_path_LS 9150 if test -n "$LS"; then 9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9152 $as_echo "$LS" >&6; } 9153 else 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9155 $as_echo "no" >&6; } 9156 fi 9157 9158 9159 test -n "$LS" && break 9160 done 9161 9162 else 9163 # The variable is set, but is it from the command line or the environment? 9164 9165 # Try to remove the string !LS! from our list. 9166 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 9167 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9168 # If it failed, the variable was not from the command line. Ignore it, 9169 # but warn the user (except for BASH, which is always set by the calling BASH). 9170 if test "xLS" != xBASH; then 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 9172 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 9173 fi 9174 # Try to locate tool using the code snippet 9175 for ac_prog in ls 9176 do 9177 # Extract the first word of "$ac_prog", so it can be a program name with args. 9178 set dummy $ac_prog; ac_word=$2 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9180 $as_echo_n "checking for $ac_word... " >&6; } 9181 if ${ac_cv_path_LS+:} false; then : 9182 $as_echo_n "(cached) " >&6 9183 else 9184 case $LS in 9185 [\\/]* | ?:[\\/]*) 9186 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9187 ;; 9188 *) 9189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9190 for as_dir in $PATH 9191 do 9192 IFS=$as_save_IFS 9193 test -z "$as_dir" && as_dir=. 9194 for ac_exec_ext in '' $ac_executable_extensions; do 9195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9196 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9198 break 2 9199 fi 9200 done 9201 done 9202 IFS=$as_save_IFS 9203 9204 ;; 9205 esac 9206 fi 9207 LS=$ac_cv_path_LS 9208 if test -n "$LS"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9210 $as_echo "$LS" >&6; } 9211 else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213 $as_echo "no" >&6; } 9214 fi 9215 9216 9217 test -n "$LS" && break 9218 done 9219 9220 else 9221 # If it succeeded, then it was overridden by the user. We will use it 9222 # for the tool. 9223 9224 # First remove it from the list of overridden variables, so we can test 9225 # for unknown variables in the end. 9226 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9227 9228 # Check if we try to supply an empty value 9229 if test "x$LS" = x; then 9230 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LS= (no value)" >&5 9231 $as_echo "$as_me: Setting user supplied tool LS= (no value)" >&6;} 9232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9233 $as_echo_n "checking for LS... " >&6; } 9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9235 $as_echo "disabled" >&6; } 9236 else 9237 # Check if the provided tool contains a complete path. 9238 tool_specified="$LS" 9239 tool_basename="${tool_specified##*/}" 9240 if test "x$tool_basename" = "x$tool_specified"; then 9241 # A command without a complete path is provided, search $PATH. 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 9243 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 9244 # Extract the first word of "$tool_basename", so it can be a program name with args. 9245 set dummy $tool_basename; ac_word=$2 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9247 $as_echo_n "checking for $ac_word... " >&6; } 9248 if ${ac_cv_path_LS+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250 else 9251 case $LS in 9252 [\\/]* | ?:[\\/]*) 9253 ac_cv_path_LS="$LS" # Let the user override the test with a path. 9254 ;; 9255 *) 9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9257 for as_dir in $PATH 9258 do 9259 IFS=$as_save_IFS 9260 test -z "$as_dir" && as_dir=. 9261 for ac_exec_ext in '' $ac_executable_extensions; do 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9263 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9265 break 2 9266 fi 9267 done 9268 done 9269 IFS=$as_save_IFS 9270 9271 ;; 9272 esac 9273 fi 9274 LS=$ac_cv_path_LS 9275 if test -n "$LS"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 9277 $as_echo "$LS" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280 $as_echo "no" >&6; } 9281 fi 9282 9283 9284 if test "x$LS" = x; then 9285 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9286 fi 9287 else 9288 # Otherwise we believe it is a complete path. Use it as it is. 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 9290 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 9292 $as_echo_n "checking for LS... " >&6; } 9293 if test ! -x "$tool_specified"; then 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9295 $as_echo "not found" >&6; } 9296 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 9297 fi 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9299 $as_echo "$tool_specified" >&6; } 9300 fi 9301 fi 9302 fi 9303 9304 fi 9305 9306 9307 9308 if test "x$LS" = x; then 9309 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 9310 fi 9311 9312 9313 9314 9315 9316 # Publish this variable in the help. 9317 9318 9319 if [ -z "${MKDIR+x}" ]; then 9320 # The variable is not set by user, try to locate tool using the code snippet 9321 for ac_prog in mkdir 9322 do 9323 # Extract the first word of "$ac_prog", so it can be a program name with args. 9324 set dummy $ac_prog; ac_word=$2 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9326 $as_echo_n "checking for $ac_word... " >&6; } 9327 if ${ac_cv_path_MKDIR+:} false; then : 9328 $as_echo_n "(cached) " >&6 9329 else 9330 case $MKDIR in 9331 [\\/]* | ?:[\\/]*) 9332 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9333 ;; 9334 *) 9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9336 for as_dir in $PATH 9337 do 9338 IFS=$as_save_IFS 9339 test -z "$as_dir" && as_dir=. 9340 for ac_exec_ext in '' $ac_executable_extensions; do 9341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9342 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9344 break 2 9345 fi 9346 done 9347 done 9348 IFS=$as_save_IFS 9349 9350 ;; 9351 esac 9352 fi 9353 MKDIR=$ac_cv_path_MKDIR 9354 if test -n "$MKDIR"; then 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9356 $as_echo "$MKDIR" >&6; } 9357 else 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9359 $as_echo "no" >&6; } 9360 fi 9361 9362 9363 test -n "$MKDIR" && break 9364 done 9365 9366 else 9367 # The variable is set, but is it from the command line or the environment? 9368 9369 # Try to remove the string !MKDIR! from our list. 9370 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 9371 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9372 # If it failed, the variable was not from the command line. Ignore it, 9373 # but warn the user (except for BASH, which is always set by the calling BASH). 9374 if test "xMKDIR" != xBASH; then 9375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 9376 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 9377 fi 9378 # Try to locate tool using the code snippet 9379 for ac_prog in mkdir 9380 do 9381 # Extract the first word of "$ac_prog", so it can be a program name with args. 9382 set dummy $ac_prog; ac_word=$2 9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9384 $as_echo_n "checking for $ac_word... " >&6; } 9385 if ${ac_cv_path_MKDIR+:} false; then : 9386 $as_echo_n "(cached) " >&6 9387 else 9388 case $MKDIR in 9389 [\\/]* | ?:[\\/]*) 9390 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9391 ;; 9392 *) 9393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9394 for as_dir in $PATH 9395 do 9396 IFS=$as_save_IFS 9397 test -z "$as_dir" && as_dir=. 9398 for ac_exec_ext in '' $ac_executable_extensions; do 9399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9400 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9402 break 2 9403 fi 9404 done 9405 done 9406 IFS=$as_save_IFS 9407 9408 ;; 9409 esac 9410 fi 9411 MKDIR=$ac_cv_path_MKDIR 9412 if test -n "$MKDIR"; then 9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9414 $as_echo "$MKDIR" >&6; } 9415 else 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9417 $as_echo "no" >&6; } 9418 fi 9419 9420 9421 test -n "$MKDIR" && break 9422 done 9423 9424 else 9425 # If it succeeded, then it was overridden by the user. We will use it 9426 # for the tool. 9427 9428 # First remove it from the list of overridden variables, so we can test 9429 # for unknown variables in the end. 9430 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9431 9432 # Check if we try to supply an empty value 9433 if test "x$MKDIR" = x; then 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKDIR= (no value)" >&5 9435 $as_echo "$as_me: Setting user supplied tool MKDIR= (no value)" >&6;} 9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9437 $as_echo_n "checking for MKDIR... " >&6; } 9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9439 $as_echo "disabled" >&6; } 9440 else 9441 # Check if the provided tool contains a complete path. 9442 tool_specified="$MKDIR" 9443 tool_basename="${tool_specified##*/}" 9444 if test "x$tool_basename" = "x$tool_specified"; then 9445 # A command without a complete path is provided, search $PATH. 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 9447 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 9448 # Extract the first word of "$tool_basename", so it can be a program name with args. 9449 set dummy $tool_basename; ac_word=$2 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9451 $as_echo_n "checking for $ac_word... " >&6; } 9452 if ${ac_cv_path_MKDIR+:} false; then : 9453 $as_echo_n "(cached) " >&6 9454 else 9455 case $MKDIR in 9456 [\\/]* | ?:[\\/]*) 9457 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 9458 ;; 9459 *) 9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9461 for as_dir in $PATH 9462 do 9463 IFS=$as_save_IFS 9464 test -z "$as_dir" && as_dir=. 9465 for ac_exec_ext in '' $ac_executable_extensions; do 9466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9467 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9469 break 2 9470 fi 9471 done 9472 done 9473 IFS=$as_save_IFS 9474 9475 ;; 9476 esac 9477 fi 9478 MKDIR=$ac_cv_path_MKDIR 9479 if test -n "$MKDIR"; then 9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 9481 $as_echo "$MKDIR" >&6; } 9482 else 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9484 $as_echo "no" >&6; } 9485 fi 9486 9487 9488 if test "x$MKDIR" = x; then 9489 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9490 fi 9491 else 9492 # Otherwise we believe it is a complete path. Use it as it is. 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 9494 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 9496 $as_echo_n "checking for MKDIR... " >&6; } 9497 if test ! -x "$tool_specified"; then 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9499 $as_echo "not found" >&6; } 9500 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 9501 fi 9502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9503 $as_echo "$tool_specified" >&6; } 9504 fi 9505 fi 9506 fi 9507 9508 fi 9509 9510 9511 9512 if test "x$MKDIR" = x; then 9513 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 9514 fi 9515 9516 9517 9518 9519 9520 # Publish this variable in the help. 9521 9522 9523 if [ -z "${MKTEMP+x}" ]; then 9524 # The variable is not set by user, try to locate tool using the code snippet 9525 for ac_prog in mktemp 9526 do 9527 # Extract the first word of "$ac_prog", so it can be a program name with args. 9528 set dummy $ac_prog; ac_word=$2 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9530 $as_echo_n "checking for $ac_word... " >&6; } 9531 if ${ac_cv_path_MKTEMP+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533 else 9534 case $MKTEMP in 9535 [\\/]* | ?:[\\/]*) 9536 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9537 ;; 9538 *) 9539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9540 for as_dir in $PATH 9541 do 9542 IFS=$as_save_IFS 9543 test -z "$as_dir" && as_dir=. 9544 for ac_exec_ext in '' $ac_executable_extensions; do 9545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9546 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9548 break 2 9549 fi 9550 done 9551 done 9552 IFS=$as_save_IFS 9553 9554 ;; 9555 esac 9556 fi 9557 MKTEMP=$ac_cv_path_MKTEMP 9558 if test -n "$MKTEMP"; then 9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9560 $as_echo "$MKTEMP" >&6; } 9561 else 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9563 $as_echo "no" >&6; } 9564 fi 9565 9566 9567 test -n "$MKTEMP" && break 9568 done 9569 9570 else 9571 # The variable is set, but is it from the command line or the environment? 9572 9573 # Try to remove the string !MKTEMP! from our list. 9574 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 9575 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9576 # If it failed, the variable was not from the command line. Ignore it, 9577 # but warn the user (except for BASH, which is always set by the calling BASH). 9578 if test "xMKTEMP" != xBASH; then 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 9580 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 9581 fi 9582 # Try to locate tool using the code snippet 9583 for ac_prog in mktemp 9584 do 9585 # Extract the first word of "$ac_prog", so it can be a program name with args. 9586 set dummy $ac_prog; ac_word=$2 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9588 $as_echo_n "checking for $ac_word... " >&6; } 9589 if ${ac_cv_path_MKTEMP+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591 else 9592 case $MKTEMP in 9593 [\\/]* | ?:[\\/]*) 9594 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9595 ;; 9596 *) 9597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9598 for as_dir in $PATH 9599 do 9600 IFS=$as_save_IFS 9601 test -z "$as_dir" && as_dir=. 9602 for ac_exec_ext in '' $ac_executable_extensions; do 9603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9604 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9606 break 2 9607 fi 9608 done 9609 done 9610 IFS=$as_save_IFS 9611 9612 ;; 9613 esac 9614 fi 9615 MKTEMP=$ac_cv_path_MKTEMP 9616 if test -n "$MKTEMP"; then 9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9618 $as_echo "$MKTEMP" >&6; } 9619 else 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9621 $as_echo "no" >&6; } 9622 fi 9623 9624 9625 test -n "$MKTEMP" && break 9626 done 9627 9628 else 9629 # If it succeeded, then it was overridden by the user. We will use it 9630 # for the tool. 9631 9632 # First remove it from the list of overridden variables, so we can test 9633 # for unknown variables in the end. 9634 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9635 9636 # Check if we try to supply an empty value 9637 if test "x$MKTEMP" = x; then 9638 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MKTEMP= (no value)" >&5 9639 $as_echo "$as_me: Setting user supplied tool MKTEMP= (no value)" >&6;} 9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9641 $as_echo_n "checking for MKTEMP... " >&6; } 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9643 $as_echo "disabled" >&6; } 9644 else 9645 # Check if the provided tool contains a complete path. 9646 tool_specified="$MKTEMP" 9647 tool_basename="${tool_specified##*/}" 9648 if test "x$tool_basename" = "x$tool_specified"; then 9649 # A command without a complete path is provided, search $PATH. 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 9651 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 9652 # Extract the first word of "$tool_basename", so it can be a program name with args. 9653 set dummy $tool_basename; ac_word=$2 9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9655 $as_echo_n "checking for $ac_word... " >&6; } 9656 if ${ac_cv_path_MKTEMP+:} false; then : 9657 $as_echo_n "(cached) " >&6 9658 else 9659 case $MKTEMP in 9660 [\\/]* | ?:[\\/]*) 9661 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 9662 ;; 9663 *) 9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9665 for as_dir in $PATH 9666 do 9667 IFS=$as_save_IFS 9668 test -z "$as_dir" && as_dir=. 9669 for ac_exec_ext in '' $ac_executable_extensions; do 9670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9671 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 9672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9673 break 2 9674 fi 9675 done 9676 done 9677 IFS=$as_save_IFS 9678 9679 ;; 9680 esac 9681 fi 9682 MKTEMP=$ac_cv_path_MKTEMP 9683 if test -n "$MKTEMP"; then 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 9685 $as_echo "$MKTEMP" >&6; } 9686 else 9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9688 $as_echo "no" >&6; } 9689 fi 9690 9691 9692 if test "x$MKTEMP" = x; then 9693 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9694 fi 9695 else 9696 # Otherwise we believe it is a complete path. Use it as it is. 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 9698 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 9700 $as_echo_n "checking for MKTEMP... " >&6; } 9701 if test ! -x "$tool_specified"; then 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9703 $as_echo "not found" >&6; } 9704 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 9705 fi 9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9707 $as_echo "$tool_specified" >&6; } 9708 fi 9709 fi 9710 fi 9711 9712 fi 9713 9714 9715 9716 if test "x$MKTEMP" = x; then 9717 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 9718 fi 9719 9720 9721 9722 9723 9724 # Publish this variable in the help. 9725 9726 9727 if [ -z "${MV+x}" ]; then 9728 # The variable is not set by user, try to locate tool using the code snippet 9729 for ac_prog in mv 9730 do 9731 # Extract the first word of "$ac_prog", so it can be a program name with args. 9732 set dummy $ac_prog; ac_word=$2 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9734 $as_echo_n "checking for $ac_word... " >&6; } 9735 if ${ac_cv_path_MV+:} false; then : 9736 $as_echo_n "(cached) " >&6 9737 else 9738 case $MV in 9739 [\\/]* | ?:[\\/]*) 9740 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9741 ;; 9742 *) 9743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9744 for as_dir in $PATH 9745 do 9746 IFS=$as_save_IFS 9747 test -z "$as_dir" && as_dir=. 9748 for ac_exec_ext in '' $ac_executable_extensions; do 9749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9750 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9752 break 2 9753 fi 9754 done 9755 done 9756 IFS=$as_save_IFS 9757 9758 ;; 9759 esac 9760 fi 9761 MV=$ac_cv_path_MV 9762 if test -n "$MV"; then 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9764 $as_echo "$MV" >&6; } 9765 else 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9767 $as_echo "no" >&6; } 9768 fi 9769 9770 9771 test -n "$MV" && break 9772 done 9773 9774 else 9775 # The variable is set, but is it from the command line or the environment? 9776 9777 # Try to remove the string !MV! from our list. 9778 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 9779 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9780 # If it failed, the variable was not from the command line. Ignore it, 9781 # but warn the user (except for BASH, which is always set by the calling BASH). 9782 if test "xMV" != xBASH; then 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 9784 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 9785 fi 9786 # Try to locate tool using the code snippet 9787 for ac_prog in mv 9788 do 9789 # Extract the first word of "$ac_prog", so it can be a program name with args. 9790 set dummy $ac_prog; ac_word=$2 9791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9792 $as_echo_n "checking for $ac_word... " >&6; } 9793 if ${ac_cv_path_MV+:} false; then : 9794 $as_echo_n "(cached) " >&6 9795 else 9796 case $MV in 9797 [\\/]* | ?:[\\/]*) 9798 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9799 ;; 9800 *) 9801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9802 for as_dir in $PATH 9803 do 9804 IFS=$as_save_IFS 9805 test -z "$as_dir" && as_dir=. 9806 for ac_exec_ext in '' $ac_executable_extensions; do 9807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9808 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9810 break 2 9811 fi 9812 done 9813 done 9814 IFS=$as_save_IFS 9815 9816 ;; 9817 esac 9818 fi 9819 MV=$ac_cv_path_MV 9820 if test -n "$MV"; then 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9822 $as_echo "$MV" >&6; } 9823 else 9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9825 $as_echo "no" >&6; } 9826 fi 9827 9828 9829 test -n "$MV" && break 9830 done 9831 9832 else 9833 # If it succeeded, then it was overridden by the user. We will use it 9834 # for the tool. 9835 9836 # First remove it from the list of overridden variables, so we can test 9837 # for unknown variables in the end. 9838 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9839 9840 # Check if we try to supply an empty value 9841 if test "x$MV" = x; then 9842 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MV= (no value)" >&5 9843 $as_echo "$as_me: Setting user supplied tool MV= (no value)" >&6;} 9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9845 $as_echo_n "checking for MV... " >&6; } 9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 9847 $as_echo "disabled" >&6; } 9848 else 9849 # Check if the provided tool contains a complete path. 9850 tool_specified="$MV" 9851 tool_basename="${tool_specified##*/}" 9852 if test "x$tool_basename" = "x$tool_specified"; then 9853 # A command without a complete path is provided, search $PATH. 9854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 9855 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 9856 # Extract the first word of "$tool_basename", so it can be a program name with args. 9857 set dummy $tool_basename; ac_word=$2 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9859 $as_echo_n "checking for $ac_word... " >&6; } 9860 if ${ac_cv_path_MV+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862 else 9863 case $MV in 9864 [\\/]* | ?:[\\/]*) 9865 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9866 ;; 9867 *) 9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9869 for as_dir in $PATH 9870 do 9871 IFS=$as_save_IFS 9872 test -z "$as_dir" && as_dir=. 9873 for ac_exec_ext in '' $ac_executable_extensions; do 9874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9875 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9877 break 2 9878 fi 9879 done 9880 done 9881 IFS=$as_save_IFS 9882 9883 ;; 9884 esac 9885 fi 9886 MV=$ac_cv_path_MV 9887 if test -n "$MV"; then 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9889 $as_echo "$MV" >&6; } 9890 else 9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9892 $as_echo "no" >&6; } 9893 fi 9894 9895 9896 if test "x$MV" = x; then 9897 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9898 fi 9899 else 9900 # Otherwise we believe it is a complete path. Use it as it is. 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 9902 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 9904 $as_echo_n "checking for MV... " >&6; } 9905 if test ! -x "$tool_specified"; then 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9907 $as_echo "not found" >&6; } 9908 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 9909 fi 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9911 $as_echo "$tool_specified" >&6; } 9912 fi 9913 fi 9914 fi 9915 9916 fi 9917 9918 9919 9920 if test "x$MV" = x; then 9921 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 9922 fi 9923 9924 9925 9926 9927 9928 # Publish this variable in the help. 9929 9930 9931 if [ -z "${NAWK+x}" ]; then 9932 # The variable is not set by user, try to locate tool using the code snippet 9933 for ac_prog in nawk gawk awk 9934 do 9935 # Extract the first word of "$ac_prog", so it can be a program name with args. 9936 set dummy $ac_prog; ac_word=$2 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9938 $as_echo_n "checking for $ac_word... " >&6; } 9939 if ${ac_cv_path_NAWK+:} false; then : 9940 $as_echo_n "(cached) " >&6 9941 else 9942 case $NAWK in 9943 [\\/]* | ?:[\\/]*) 9944 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 9945 ;; 9946 *) 9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9948 for as_dir in $PATH 9949 do 9950 IFS=$as_save_IFS 9951 test -z "$as_dir" && as_dir=. 9952 for ac_exec_ext in '' $ac_executable_extensions; do 9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9954 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9956 break 2 9957 fi 9958 done 9959 done 9960 IFS=$as_save_IFS 9961 9962 ;; 9963 esac 9964 fi 9965 NAWK=$ac_cv_path_NAWK 9966 if test -n "$NAWK"; then 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 9968 $as_echo "$NAWK" >&6; } 9969 else 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9971 $as_echo "no" >&6; } 9972 fi 9973 9974 9975 test -n "$NAWK" && break 9976 done 9977 9978 else 9979 # The variable is set, but is it from the command line or the environment? 9980 9981 # Try to remove the string !NAWK! from our list. 9982 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 9983 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9984 # If it failed, the variable was not from the command line. Ignore it, 9985 # but warn the user (except for BASH, which is always set by the calling BASH). 9986 if test "xNAWK" != xBASH; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 9988 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 9989 fi 9990 # Try to locate tool using the code snippet 9991 for ac_prog in nawk gawk awk 9992 do 9993 # Extract the first word of "$ac_prog", so it can be a program name with args. 9994 set dummy $ac_prog; ac_word=$2 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9996 $as_echo_n "checking for $ac_word... " >&6; } 9997 if ${ac_cv_path_NAWK+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999 else 10000 case $NAWK in 10001 [\\/]* | ?:[\\/]*) 10002 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10003 ;; 10004 *) 10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10006 for as_dir in $PATH 10007 do 10008 IFS=$as_save_IFS 10009 test -z "$as_dir" && as_dir=. 10010 for ac_exec_ext in '' $ac_executable_extensions; do 10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10012 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10014 break 2 10015 fi 10016 done 10017 done 10018 IFS=$as_save_IFS 10019 10020 ;; 10021 esac 10022 fi 10023 NAWK=$ac_cv_path_NAWK 10024 if test -n "$NAWK"; then 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10026 $as_echo "$NAWK" >&6; } 10027 else 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10029 $as_echo "no" >&6; } 10030 fi 10031 10032 10033 test -n "$NAWK" && break 10034 done 10035 10036 else 10037 # If it succeeded, then it was overridden by the user. We will use it 10038 # for the tool. 10039 10040 # First remove it from the list of overridden variables, so we can test 10041 # for unknown variables in the end. 10042 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10043 10044 # Check if we try to supply an empty value 10045 if test "x$NAWK" = x; then 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NAWK= (no value)" >&5 10047 $as_echo "$as_me: Setting user supplied tool NAWK= (no value)" >&6;} 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10049 $as_echo_n "checking for NAWK... " >&6; } 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10051 $as_echo "disabled" >&6; } 10052 else 10053 # Check if the provided tool contains a complete path. 10054 tool_specified="$NAWK" 10055 tool_basename="${tool_specified##*/}" 10056 if test "x$tool_basename" = "x$tool_specified"; then 10057 # A command without a complete path is provided, search $PATH. 10058 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 10059 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 10060 # Extract the first word of "$tool_basename", so it can be a program name with args. 10061 set dummy $tool_basename; ac_word=$2 10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10063 $as_echo_n "checking for $ac_word... " >&6; } 10064 if ${ac_cv_path_NAWK+:} false; then : 10065 $as_echo_n "(cached) " >&6 10066 else 10067 case $NAWK in 10068 [\\/]* | ?:[\\/]*) 10069 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 10070 ;; 10071 *) 10072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10073 for as_dir in $PATH 10074 do 10075 IFS=$as_save_IFS 10076 test -z "$as_dir" && as_dir=. 10077 for ac_exec_ext in '' $ac_executable_extensions; do 10078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10079 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 10080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10081 break 2 10082 fi 10083 done 10084 done 10085 IFS=$as_save_IFS 10086 10087 ;; 10088 esac 10089 fi 10090 NAWK=$ac_cv_path_NAWK 10091 if test -n "$NAWK"; then 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 10093 $as_echo "$NAWK" >&6; } 10094 else 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10096 $as_echo "no" >&6; } 10097 fi 10098 10099 10100 if test "x$NAWK" = x; then 10101 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10102 fi 10103 else 10104 # Otherwise we believe it is a complete path. Use it as it is. 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 10106 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 10108 $as_echo_n "checking for NAWK... " >&6; } 10109 if test ! -x "$tool_specified"; then 10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10111 $as_echo "not found" >&6; } 10112 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 10113 fi 10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10115 $as_echo "$tool_specified" >&6; } 10116 fi 10117 fi 10118 fi 10119 10120 fi 10121 10122 10123 10124 if test "x$NAWK" = x; then 10125 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 10126 fi 10127 10128 10129 10130 10131 10132 # Publish this variable in the help. 10133 10134 10135 if [ -z "${PRINTF+x}" ]; then 10136 # The variable is not set by user, try to locate tool using the code snippet 10137 for ac_prog in printf 10138 do 10139 # Extract the first word of "$ac_prog", so it can be a program name with args. 10140 set dummy $ac_prog; ac_word=$2 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10142 $as_echo_n "checking for $ac_word... " >&6; } 10143 if ${ac_cv_path_PRINTF+:} false; then : 10144 $as_echo_n "(cached) " >&6 10145 else 10146 case $PRINTF in 10147 [\\/]* | ?:[\\/]*) 10148 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10149 ;; 10150 *) 10151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10152 for as_dir in $PATH 10153 do 10154 IFS=$as_save_IFS 10155 test -z "$as_dir" && as_dir=. 10156 for ac_exec_ext in '' $ac_executable_extensions; do 10157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10158 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10160 break 2 10161 fi 10162 done 10163 done 10164 IFS=$as_save_IFS 10165 10166 ;; 10167 esac 10168 fi 10169 PRINTF=$ac_cv_path_PRINTF 10170 if test -n "$PRINTF"; then 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10172 $as_echo "$PRINTF" >&6; } 10173 else 10174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10175 $as_echo "no" >&6; } 10176 fi 10177 10178 10179 test -n "$PRINTF" && break 10180 done 10181 10182 else 10183 # The variable is set, but is it from the command line or the environment? 10184 10185 # Try to remove the string !PRINTF! from our list. 10186 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 10187 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10188 # If it failed, the variable was not from the command line. Ignore it, 10189 # but warn the user (except for BASH, which is always set by the calling BASH). 10190 if test "xPRINTF" != xBASH; then 10191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 10192 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 10193 fi 10194 # Try to locate tool using the code snippet 10195 for ac_prog in printf 10196 do 10197 # Extract the first word of "$ac_prog", so it can be a program name with args. 10198 set dummy $ac_prog; ac_word=$2 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10200 $as_echo_n "checking for $ac_word... " >&6; } 10201 if ${ac_cv_path_PRINTF+:} false; then : 10202 $as_echo_n "(cached) " >&6 10203 else 10204 case $PRINTF in 10205 [\\/]* | ?:[\\/]*) 10206 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10207 ;; 10208 *) 10209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10210 for as_dir in $PATH 10211 do 10212 IFS=$as_save_IFS 10213 test -z "$as_dir" && as_dir=. 10214 for ac_exec_ext in '' $ac_executable_extensions; do 10215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10216 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10218 break 2 10219 fi 10220 done 10221 done 10222 IFS=$as_save_IFS 10223 10224 ;; 10225 esac 10226 fi 10227 PRINTF=$ac_cv_path_PRINTF 10228 if test -n "$PRINTF"; then 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10230 $as_echo "$PRINTF" >&6; } 10231 else 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10233 $as_echo "no" >&6; } 10234 fi 10235 10236 10237 test -n "$PRINTF" && break 10238 done 10239 10240 else 10241 # If it succeeded, then it was overridden by the user. We will use it 10242 # for the tool. 10243 10244 # First remove it from the list of overridden variables, so we can test 10245 # for unknown variables in the end. 10246 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10247 10248 # Check if we try to supply an empty value 10249 if test "x$PRINTF" = x; then 10250 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PRINTF= (no value)" >&5 10251 $as_echo "$as_me: Setting user supplied tool PRINTF= (no value)" >&6;} 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10253 $as_echo_n "checking for PRINTF... " >&6; } 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10255 $as_echo "disabled" >&6; } 10256 else 10257 # Check if the provided tool contains a complete path. 10258 tool_specified="$PRINTF" 10259 tool_basename="${tool_specified##*/}" 10260 if test "x$tool_basename" = "x$tool_specified"; then 10261 # A command without a complete path is provided, search $PATH. 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 10263 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 10264 # Extract the first word of "$tool_basename", so it can be a program name with args. 10265 set dummy $tool_basename; ac_word=$2 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10267 $as_echo_n "checking for $ac_word... " >&6; } 10268 if ${ac_cv_path_PRINTF+:} false; then : 10269 $as_echo_n "(cached) " >&6 10270 else 10271 case $PRINTF in 10272 [\\/]* | ?:[\\/]*) 10273 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 10274 ;; 10275 *) 10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10277 for as_dir in $PATH 10278 do 10279 IFS=$as_save_IFS 10280 test -z "$as_dir" && as_dir=. 10281 for ac_exec_ext in '' $ac_executable_extensions; do 10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10283 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10285 break 2 10286 fi 10287 done 10288 done 10289 IFS=$as_save_IFS 10290 10291 ;; 10292 esac 10293 fi 10294 PRINTF=$ac_cv_path_PRINTF 10295 if test -n "$PRINTF"; then 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 10297 $as_echo "$PRINTF" >&6; } 10298 else 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10300 $as_echo "no" >&6; } 10301 fi 10302 10303 10304 if test "x$PRINTF" = x; then 10305 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10306 fi 10307 else 10308 # Otherwise we believe it is a complete path. Use it as it is. 10309 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 10310 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 10311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 10312 $as_echo_n "checking for PRINTF... " >&6; } 10313 if test ! -x "$tool_specified"; then 10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10315 $as_echo "not found" >&6; } 10316 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 10317 fi 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10319 $as_echo "$tool_specified" >&6; } 10320 fi 10321 fi 10322 fi 10323 10324 fi 10325 10326 10327 10328 if test "x$PRINTF" = x; then 10329 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 10330 fi 10331 10332 10333 10334 10335 10336 # Publish this variable in the help. 10337 10338 10339 if [ -z "${RM+x}" ]; then 10340 # The variable is not set by user, try to locate tool using the code snippet 10341 for ac_prog in rm 10342 do 10343 # Extract the first word of "$ac_prog", so it can be a program name with args. 10344 set dummy $ac_prog; ac_word=$2 10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10346 $as_echo_n "checking for $ac_word... " >&6; } 10347 if ${ac_cv_path_RM+:} false; then : 10348 $as_echo_n "(cached) " >&6 10349 else 10350 case $RM in 10351 [\\/]* | ?:[\\/]*) 10352 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10353 ;; 10354 *) 10355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10356 for as_dir in $PATH 10357 do 10358 IFS=$as_save_IFS 10359 test -z "$as_dir" && as_dir=. 10360 for ac_exec_ext in '' $ac_executable_extensions; do 10361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10362 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10364 break 2 10365 fi 10366 done 10367 done 10368 IFS=$as_save_IFS 10369 10370 ;; 10371 esac 10372 fi 10373 RM=$ac_cv_path_RM 10374 if test -n "$RM"; then 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10376 $as_echo "$RM" >&6; } 10377 else 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10379 $as_echo "no" >&6; } 10380 fi 10381 10382 10383 test -n "$RM" && break 10384 done 10385 10386 else 10387 # The variable is set, but is it from the command line or the environment? 10388 10389 # Try to remove the string !RM! from our list. 10390 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 10391 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10392 # If it failed, the variable was not from the command line. Ignore it, 10393 # but warn the user (except for BASH, which is always set by the calling BASH). 10394 if test "xRM" != xBASH; then 10395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 10396 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 10397 fi 10398 # Try to locate tool using the code snippet 10399 for ac_prog in rm 10400 do 10401 # Extract the first word of "$ac_prog", so it can be a program name with args. 10402 set dummy $ac_prog; ac_word=$2 10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10404 $as_echo_n "checking for $ac_word... " >&6; } 10405 if ${ac_cv_path_RM+:} false; then : 10406 $as_echo_n "(cached) " >&6 10407 else 10408 case $RM in 10409 [\\/]* | ?:[\\/]*) 10410 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10411 ;; 10412 *) 10413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10414 for as_dir in $PATH 10415 do 10416 IFS=$as_save_IFS 10417 test -z "$as_dir" && as_dir=. 10418 for ac_exec_ext in '' $ac_executable_extensions; do 10419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10420 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10422 break 2 10423 fi 10424 done 10425 done 10426 IFS=$as_save_IFS 10427 10428 ;; 10429 esac 10430 fi 10431 RM=$ac_cv_path_RM 10432 if test -n "$RM"; then 10433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10434 $as_echo "$RM" >&6; } 10435 else 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10437 $as_echo "no" >&6; } 10438 fi 10439 10440 10441 test -n "$RM" && break 10442 done 10443 10444 else 10445 # If it succeeded, then it was overridden by the user. We will use it 10446 # for the tool. 10447 10448 # First remove it from the list of overridden variables, so we can test 10449 # for unknown variables in the end. 10450 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10451 10452 # Check if we try to supply an empty value 10453 if test "x$RM" = x; then 10454 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RM= (no value)" >&5 10455 $as_echo "$as_me: Setting user supplied tool RM= (no value)" >&6;} 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10457 $as_echo_n "checking for RM... " >&6; } 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10459 $as_echo "disabled" >&6; } 10460 else 10461 # Check if the provided tool contains a complete path. 10462 tool_specified="$RM" 10463 tool_basename="${tool_specified##*/}" 10464 if test "x$tool_basename" = "x$tool_specified"; then 10465 # A command without a complete path is provided, search $PATH. 10466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 10467 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 10468 # Extract the first word of "$tool_basename", so it can be a program name with args. 10469 set dummy $tool_basename; ac_word=$2 10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10471 $as_echo_n "checking for $ac_word... " >&6; } 10472 if ${ac_cv_path_RM+:} false; then : 10473 $as_echo_n "(cached) " >&6 10474 else 10475 case $RM in 10476 [\\/]* | ?:[\\/]*) 10477 ac_cv_path_RM="$RM" # Let the user override the test with a path. 10478 ;; 10479 *) 10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10481 for as_dir in $PATH 10482 do 10483 IFS=$as_save_IFS 10484 test -z "$as_dir" && as_dir=. 10485 for ac_exec_ext in '' $ac_executable_extensions; do 10486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10487 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 10488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10489 break 2 10490 fi 10491 done 10492 done 10493 IFS=$as_save_IFS 10494 10495 ;; 10496 esac 10497 fi 10498 RM=$ac_cv_path_RM 10499 if test -n "$RM"; then 10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 10501 $as_echo "$RM" >&6; } 10502 else 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10504 $as_echo "no" >&6; } 10505 fi 10506 10507 10508 if test "x$RM" = x; then 10509 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10510 fi 10511 else 10512 # Otherwise we believe it is a complete path. Use it as it is. 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 10514 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 10516 $as_echo_n "checking for RM... " >&6; } 10517 if test ! -x "$tool_specified"; then 10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10519 $as_echo "not found" >&6; } 10520 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 10521 fi 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10523 $as_echo "$tool_specified" >&6; } 10524 fi 10525 fi 10526 fi 10527 10528 fi 10529 10530 10531 10532 if test "x$RM" = x; then 10533 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 10534 fi 10535 10536 10537 10538 10539 10540 # Publish this variable in the help. 10541 10542 10543 if [ -z "${RMDIR+x}" ]; then 10544 # The variable is not set by user, try to locate tool using the code snippet 10545 for ac_prog in rmdir 10546 do 10547 # Extract the first word of "$ac_prog", so it can be a program name with args. 10548 set dummy $ac_prog; ac_word=$2 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10550 $as_echo_n "checking for $ac_word... " >&6; } 10551 if ${ac_cv_path_RMDIR+:} false; then : 10552 $as_echo_n "(cached) " >&6 10553 else 10554 case $RMDIR in 10555 [\\/]* | ?:[\\/]*) 10556 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10557 ;; 10558 *) 10559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10560 for as_dir in $PATH 10561 do 10562 IFS=$as_save_IFS 10563 test -z "$as_dir" && as_dir=. 10564 for ac_exec_ext in '' $ac_executable_extensions; do 10565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10566 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10568 break 2 10569 fi 10570 done 10571 done 10572 IFS=$as_save_IFS 10573 10574 ;; 10575 esac 10576 fi 10577 RMDIR=$ac_cv_path_RMDIR 10578 if test -n "$RMDIR"; then 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10580 $as_echo "$RMDIR" >&6; } 10581 else 10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10583 $as_echo "no" >&6; } 10584 fi 10585 10586 10587 test -n "$RMDIR" && break 10588 done 10589 10590 else 10591 # The variable is set, but is it from the command line or the environment? 10592 10593 # Try to remove the string !RMDIR! from our list. 10594 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RMDIR!/} 10595 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10596 # If it failed, the variable was not from the command line. Ignore it, 10597 # but warn the user (except for BASH, which is always set by the calling BASH). 10598 if test "xRMDIR" != xBASH; then 10599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&5 10600 $as_echo "$as_me: WARNING: Ignoring value of RMDIR from the environment. Use command line variables instead." >&2;} 10601 fi 10602 # Try to locate tool using the code snippet 10603 for ac_prog in rmdir 10604 do 10605 # Extract the first word of "$ac_prog", so it can be a program name with args. 10606 set dummy $ac_prog; ac_word=$2 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10608 $as_echo_n "checking for $ac_word... " >&6; } 10609 if ${ac_cv_path_RMDIR+:} false; then : 10610 $as_echo_n "(cached) " >&6 10611 else 10612 case $RMDIR in 10613 [\\/]* | ?:[\\/]*) 10614 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10615 ;; 10616 *) 10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10618 for as_dir in $PATH 10619 do 10620 IFS=$as_save_IFS 10621 test -z "$as_dir" && as_dir=. 10622 for ac_exec_ext in '' $ac_executable_extensions; do 10623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10624 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10626 break 2 10627 fi 10628 done 10629 done 10630 IFS=$as_save_IFS 10631 10632 ;; 10633 esac 10634 fi 10635 RMDIR=$ac_cv_path_RMDIR 10636 if test -n "$RMDIR"; then 10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10638 $as_echo "$RMDIR" >&6; } 10639 else 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10641 $as_echo "no" >&6; } 10642 fi 10643 10644 10645 test -n "$RMDIR" && break 10646 done 10647 10648 else 10649 # If it succeeded, then it was overridden by the user. We will use it 10650 # for the tool. 10651 10652 # First remove it from the list of overridden variables, so we can test 10653 # for unknown variables in the end. 10654 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10655 10656 # Check if we try to supply an empty value 10657 if test "x$RMDIR" = x; then 10658 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool RMDIR= (no value)" >&5 10659 $as_echo "$as_me: Setting user supplied tool RMDIR= (no value)" >&6;} 10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10661 $as_echo_n "checking for RMDIR... " >&6; } 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10663 $as_echo "disabled" >&6; } 10664 else 10665 # Check if the provided tool contains a complete path. 10666 tool_specified="$RMDIR" 10667 tool_basename="${tool_specified##*/}" 10668 if test "x$tool_basename" = "x$tool_specified"; then 10669 # A command without a complete path is provided, search $PATH. 10670 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RMDIR=$tool_basename" >&5 10671 $as_echo "$as_me: Will search for user supplied tool RMDIR=$tool_basename" >&6;} 10672 # Extract the first word of "$tool_basename", so it can be a program name with args. 10673 set dummy $tool_basename; ac_word=$2 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10675 $as_echo_n "checking for $ac_word... " >&6; } 10676 if ${ac_cv_path_RMDIR+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678 else 10679 case $RMDIR in 10680 [\\/]* | ?:[\\/]*) 10681 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. 10682 ;; 10683 *) 10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10685 for as_dir in $PATH 10686 do 10687 IFS=$as_save_IFS 10688 test -z "$as_dir" && as_dir=. 10689 for ac_exec_ext in '' $ac_executable_extensions; do 10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10691 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10693 break 2 10694 fi 10695 done 10696 done 10697 IFS=$as_save_IFS 10698 10699 ;; 10700 esac 10701 fi 10702 RMDIR=$ac_cv_path_RMDIR 10703 if test -n "$RMDIR"; then 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 10705 $as_echo "$RMDIR" >&6; } 10706 else 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10708 $as_echo "no" >&6; } 10709 fi 10710 10711 10712 if test "x$RMDIR" = x; then 10713 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10714 fi 10715 else 10716 # Otherwise we believe it is a complete path. Use it as it is. 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RMDIR=$tool_specified" >&5 10718 $as_echo "$as_me: Will use user supplied tool RMDIR=$tool_specified" >&6;} 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RMDIR" >&5 10720 $as_echo_n "checking for RMDIR... " >&6; } 10721 if test ! -x "$tool_specified"; then 10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10723 $as_echo "not found" >&6; } 10724 as_fn_error $? "User supplied tool RMDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 10725 fi 10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10727 $as_echo "$tool_specified" >&6; } 10728 fi 10729 fi 10730 fi 10731 10732 fi 10733 10734 10735 10736 if test "x$RMDIR" = x; then 10737 as_fn_error $? "Could not find required tool for RMDIR" "$LINENO" 5 10738 fi 10739 10740 10741 10742 10743 10744 # Publish this variable in the help. 10745 10746 10747 if [ -z "${SH+x}" ]; then 10748 # The variable is not set by user, try to locate tool using the code snippet 10749 for ac_prog in sh 10750 do 10751 # Extract the first word of "$ac_prog", so it can be a program name with args. 10752 set dummy $ac_prog; ac_word=$2 10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10754 $as_echo_n "checking for $ac_word... " >&6; } 10755 if ${ac_cv_path_SH+:} false; then : 10756 $as_echo_n "(cached) " >&6 10757 else 10758 case $SH in 10759 [\\/]* | ?:[\\/]*) 10760 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10761 ;; 10762 *) 10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10764 for as_dir in $PATH 10765 do 10766 IFS=$as_save_IFS 10767 test -z "$as_dir" && as_dir=. 10768 for ac_exec_ext in '' $ac_executable_extensions; do 10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10770 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10772 break 2 10773 fi 10774 done 10775 done 10776 IFS=$as_save_IFS 10777 10778 ;; 10779 esac 10780 fi 10781 SH=$ac_cv_path_SH 10782 if test -n "$SH"; then 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10784 $as_echo "$SH" >&6; } 10785 else 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10787 $as_echo "no" >&6; } 10788 fi 10789 10790 10791 test -n "$SH" && break 10792 done 10793 10794 else 10795 # The variable is set, but is it from the command line or the environment? 10796 10797 # Try to remove the string !SH! from our list. 10798 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 10799 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10800 # If it failed, the variable was not from the command line. Ignore it, 10801 # but warn the user (except for BASH, which is always set by the calling BASH). 10802 if test "xSH" != xBASH; then 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 10804 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 10805 fi 10806 # Try to locate tool using the code snippet 10807 for ac_prog in sh 10808 do 10809 # Extract the first word of "$ac_prog", so it can be a program name with args. 10810 set dummy $ac_prog; ac_word=$2 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10812 $as_echo_n "checking for $ac_word... " >&6; } 10813 if ${ac_cv_path_SH+:} false; then : 10814 $as_echo_n "(cached) " >&6 10815 else 10816 case $SH in 10817 [\\/]* | ?:[\\/]*) 10818 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10819 ;; 10820 *) 10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10822 for as_dir in $PATH 10823 do 10824 IFS=$as_save_IFS 10825 test -z "$as_dir" && as_dir=. 10826 for ac_exec_ext in '' $ac_executable_extensions; do 10827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10828 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10830 break 2 10831 fi 10832 done 10833 done 10834 IFS=$as_save_IFS 10835 10836 ;; 10837 esac 10838 fi 10839 SH=$ac_cv_path_SH 10840 if test -n "$SH"; then 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10842 $as_echo "$SH" >&6; } 10843 else 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10845 $as_echo "no" >&6; } 10846 fi 10847 10848 10849 test -n "$SH" && break 10850 done 10851 10852 else 10853 # If it succeeded, then it was overridden by the user. We will use it 10854 # for the tool. 10855 10856 # First remove it from the list of overridden variables, so we can test 10857 # for unknown variables in the end. 10858 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10859 10860 # Check if we try to supply an empty value 10861 if test "x$SH" = x; then 10862 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SH= (no value)" >&5 10863 $as_echo "$as_me: Setting user supplied tool SH= (no value)" >&6;} 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10865 $as_echo_n "checking for SH... " >&6; } 10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 10867 $as_echo "disabled" >&6; } 10868 else 10869 # Check if the provided tool contains a complete path. 10870 tool_specified="$SH" 10871 tool_basename="${tool_specified##*/}" 10872 if test "x$tool_basename" = "x$tool_specified"; then 10873 # A command without a complete path is provided, search $PATH. 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 10875 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 10876 # Extract the first word of "$tool_basename", so it can be a program name with args. 10877 set dummy $tool_basename; ac_word=$2 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10879 $as_echo_n "checking for $ac_word... " >&6; } 10880 if ${ac_cv_path_SH+:} false; then : 10881 $as_echo_n "(cached) " >&6 10882 else 10883 case $SH in 10884 [\\/]* | ?:[\\/]*) 10885 ac_cv_path_SH="$SH" # Let the user override the test with a path. 10886 ;; 10887 *) 10888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10889 for as_dir in $PATH 10890 do 10891 IFS=$as_save_IFS 10892 test -z "$as_dir" && as_dir=. 10893 for ac_exec_ext in '' $ac_executable_extensions; do 10894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10895 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 10896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10897 break 2 10898 fi 10899 done 10900 done 10901 IFS=$as_save_IFS 10902 10903 ;; 10904 esac 10905 fi 10906 SH=$ac_cv_path_SH 10907 if test -n "$SH"; then 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 10909 $as_echo "$SH" >&6; } 10910 else 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10912 $as_echo "no" >&6; } 10913 fi 10914 10915 10916 if test "x$SH" = x; then 10917 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10918 fi 10919 else 10920 # Otherwise we believe it is a complete path. Use it as it is. 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 10922 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 10924 $as_echo_n "checking for SH... " >&6; } 10925 if test ! -x "$tool_specified"; then 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10927 $as_echo "not found" >&6; } 10928 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 10929 fi 10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10931 $as_echo "$tool_specified" >&6; } 10932 fi 10933 fi 10934 fi 10935 10936 fi 10937 10938 10939 10940 if test "x$SH" = x; then 10941 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 10942 fi 10943 10944 10945 10946 10947 10948 # Publish this variable in the help. 10949 10950 10951 if [ -z "${SORT+x}" ]; then 10952 # The variable is not set by user, try to locate tool using the code snippet 10953 for ac_prog in sort 10954 do 10955 # Extract the first word of "$ac_prog", so it can be a program name with args. 10956 set dummy $ac_prog; ac_word=$2 10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10958 $as_echo_n "checking for $ac_word... " >&6; } 10959 if ${ac_cv_path_SORT+:} false; then : 10960 $as_echo_n "(cached) " >&6 10961 else 10962 case $SORT in 10963 [\\/]* | ?:[\\/]*) 10964 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 10965 ;; 10966 *) 10967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10968 for as_dir in $PATH 10969 do 10970 IFS=$as_save_IFS 10971 test -z "$as_dir" && as_dir=. 10972 for ac_exec_ext in '' $ac_executable_extensions; do 10973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10974 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 10975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10976 break 2 10977 fi 10978 done 10979 done 10980 IFS=$as_save_IFS 10981 10982 ;; 10983 esac 10984 fi 10985 SORT=$ac_cv_path_SORT 10986 if test -n "$SORT"; then 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 10988 $as_echo "$SORT" >&6; } 10989 else 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10991 $as_echo "no" >&6; } 10992 fi 10993 10994 10995 test -n "$SORT" && break 10996 done 10997 10998 else 10999 # The variable is set, but is it from the command line or the environment? 11000 11001 # Try to remove the string !SORT! from our list. 11002 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 11003 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11004 # If it failed, the variable was not from the command line. Ignore it, 11005 # but warn the user (except for BASH, which is always set by the calling BASH). 11006 if test "xSORT" != xBASH; then 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 11008 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 11009 fi 11010 # Try to locate tool using the code snippet 11011 for ac_prog in sort 11012 do 11013 # Extract the first word of "$ac_prog", so it can be a program name with args. 11014 set dummy $ac_prog; ac_word=$2 11015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11016 $as_echo_n "checking for $ac_word... " >&6; } 11017 if ${ac_cv_path_SORT+:} false; then : 11018 $as_echo_n "(cached) " >&6 11019 else 11020 case $SORT in 11021 [\\/]* | ?:[\\/]*) 11022 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11023 ;; 11024 *) 11025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11026 for as_dir in $PATH 11027 do 11028 IFS=$as_save_IFS 11029 test -z "$as_dir" && as_dir=. 11030 for ac_exec_ext in '' $ac_executable_extensions; do 11031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11032 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11034 break 2 11035 fi 11036 done 11037 done 11038 IFS=$as_save_IFS 11039 11040 ;; 11041 esac 11042 fi 11043 SORT=$ac_cv_path_SORT 11044 if test -n "$SORT"; then 11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11046 $as_echo "$SORT" >&6; } 11047 else 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11049 $as_echo "no" >&6; } 11050 fi 11051 11052 11053 test -n "$SORT" && break 11054 done 11055 11056 else 11057 # If it succeeded, then it was overridden by the user. We will use it 11058 # for the tool. 11059 11060 # First remove it from the list of overridden variables, so we can test 11061 # for unknown variables in the end. 11062 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11063 11064 # Check if we try to supply an empty value 11065 if test "x$SORT" = x; then 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SORT= (no value)" >&5 11067 $as_echo "$as_me: Setting user supplied tool SORT= (no value)" >&6;} 11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11069 $as_echo_n "checking for SORT... " >&6; } 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11071 $as_echo "disabled" >&6; } 11072 else 11073 # Check if the provided tool contains a complete path. 11074 tool_specified="$SORT" 11075 tool_basename="${tool_specified##*/}" 11076 if test "x$tool_basename" = "x$tool_specified"; then 11077 # A command without a complete path is provided, search $PATH. 11078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 11079 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 11080 # Extract the first word of "$tool_basename", so it can be a program name with args. 11081 set dummy $tool_basename; ac_word=$2 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11083 $as_echo_n "checking for $ac_word... " >&6; } 11084 if ${ac_cv_path_SORT+:} false; then : 11085 $as_echo_n "(cached) " >&6 11086 else 11087 case $SORT in 11088 [\\/]* | ?:[\\/]*) 11089 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 11090 ;; 11091 *) 11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11093 for as_dir in $PATH 11094 do 11095 IFS=$as_save_IFS 11096 test -z "$as_dir" && as_dir=. 11097 for ac_exec_ext in '' $ac_executable_extensions; do 11098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11099 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 11100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11101 break 2 11102 fi 11103 done 11104 done 11105 IFS=$as_save_IFS 11106 11107 ;; 11108 esac 11109 fi 11110 SORT=$ac_cv_path_SORT 11111 if test -n "$SORT"; then 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 11113 $as_echo "$SORT" >&6; } 11114 else 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11116 $as_echo "no" >&6; } 11117 fi 11118 11119 11120 if test "x$SORT" = x; then 11121 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11122 fi 11123 else 11124 # Otherwise we believe it is a complete path. Use it as it is. 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 11126 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 11127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 11128 $as_echo_n "checking for SORT... " >&6; } 11129 if test ! -x "$tool_specified"; then 11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11131 $as_echo "not found" >&6; } 11132 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 11133 fi 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11135 $as_echo "$tool_specified" >&6; } 11136 fi 11137 fi 11138 fi 11139 11140 fi 11141 11142 11143 11144 if test "x$SORT" = x; then 11145 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 11146 fi 11147 11148 11149 11150 11151 11152 # Publish this variable in the help. 11153 11154 11155 if [ -z "${TAIL+x}" ]; then 11156 # The variable is not set by user, try to locate tool using the code snippet 11157 for ac_prog in tail 11158 do 11159 # Extract the first word of "$ac_prog", so it can be a program name with args. 11160 set dummy $ac_prog; ac_word=$2 11161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11162 $as_echo_n "checking for $ac_word... " >&6; } 11163 if ${ac_cv_path_TAIL+:} false; then : 11164 $as_echo_n "(cached) " >&6 11165 else 11166 case $TAIL in 11167 [\\/]* | ?:[\\/]*) 11168 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11169 ;; 11170 *) 11171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11172 for as_dir in $PATH 11173 do 11174 IFS=$as_save_IFS 11175 test -z "$as_dir" && as_dir=. 11176 for ac_exec_ext in '' $ac_executable_extensions; do 11177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11178 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11180 break 2 11181 fi 11182 done 11183 done 11184 IFS=$as_save_IFS 11185 11186 ;; 11187 esac 11188 fi 11189 TAIL=$ac_cv_path_TAIL 11190 if test -n "$TAIL"; then 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11192 $as_echo "$TAIL" >&6; } 11193 else 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11195 $as_echo "no" >&6; } 11196 fi 11197 11198 11199 test -n "$TAIL" && break 11200 done 11201 11202 else 11203 # The variable is set, but is it from the command line or the environment? 11204 11205 # Try to remove the string !TAIL! from our list. 11206 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 11207 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11208 # If it failed, the variable was not from the command line. Ignore it, 11209 # but warn the user (except for BASH, which is always set by the calling BASH). 11210 if test "xTAIL" != xBASH; then 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 11212 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 11213 fi 11214 # Try to locate tool using the code snippet 11215 for ac_prog in tail 11216 do 11217 # Extract the first word of "$ac_prog", so it can be a program name with args. 11218 set dummy $ac_prog; ac_word=$2 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11220 $as_echo_n "checking for $ac_word... " >&6; } 11221 if ${ac_cv_path_TAIL+:} false; then : 11222 $as_echo_n "(cached) " >&6 11223 else 11224 case $TAIL in 11225 [\\/]* | ?:[\\/]*) 11226 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11227 ;; 11228 *) 11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11230 for as_dir in $PATH 11231 do 11232 IFS=$as_save_IFS 11233 test -z "$as_dir" && as_dir=. 11234 for ac_exec_ext in '' $ac_executable_extensions; do 11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11236 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11238 break 2 11239 fi 11240 done 11241 done 11242 IFS=$as_save_IFS 11243 11244 ;; 11245 esac 11246 fi 11247 TAIL=$ac_cv_path_TAIL 11248 if test -n "$TAIL"; then 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11250 $as_echo "$TAIL" >&6; } 11251 else 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11253 $as_echo "no" >&6; } 11254 fi 11255 11256 11257 test -n "$TAIL" && break 11258 done 11259 11260 else 11261 # If it succeeded, then it was overridden by the user. We will use it 11262 # for the tool. 11263 11264 # First remove it from the list of overridden variables, so we can test 11265 # for unknown variables in the end. 11266 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11267 11268 # Check if we try to supply an empty value 11269 if test "x$TAIL" = x; then 11270 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAIL= (no value)" >&5 11271 $as_echo "$as_me: Setting user supplied tool TAIL= (no value)" >&6;} 11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11273 $as_echo_n "checking for TAIL... " >&6; } 11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11275 $as_echo "disabled" >&6; } 11276 else 11277 # Check if the provided tool contains a complete path. 11278 tool_specified="$TAIL" 11279 tool_basename="${tool_specified##*/}" 11280 if test "x$tool_basename" = "x$tool_specified"; then 11281 # A command without a complete path is provided, search $PATH. 11282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 11283 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 11284 # Extract the first word of "$tool_basename", so it can be a program name with args. 11285 set dummy $tool_basename; ac_word=$2 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11287 $as_echo_n "checking for $ac_word... " >&6; } 11288 if ${ac_cv_path_TAIL+:} false; then : 11289 $as_echo_n "(cached) " >&6 11290 else 11291 case $TAIL in 11292 [\\/]* | ?:[\\/]*) 11293 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 11294 ;; 11295 *) 11296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11297 for as_dir in $PATH 11298 do 11299 IFS=$as_save_IFS 11300 test -z "$as_dir" && as_dir=. 11301 for ac_exec_ext in '' $ac_executable_extensions; do 11302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11303 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 11304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11305 break 2 11306 fi 11307 done 11308 done 11309 IFS=$as_save_IFS 11310 11311 ;; 11312 esac 11313 fi 11314 TAIL=$ac_cv_path_TAIL 11315 if test -n "$TAIL"; then 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 11317 $as_echo "$TAIL" >&6; } 11318 else 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11320 $as_echo "no" >&6; } 11321 fi 11322 11323 11324 if test "x$TAIL" = x; then 11325 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11326 fi 11327 else 11328 # Otherwise we believe it is a complete path. Use it as it is. 11329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 11330 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 11331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 11332 $as_echo_n "checking for TAIL... " >&6; } 11333 if test ! -x "$tool_specified"; then 11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11335 $as_echo "not found" >&6; } 11336 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 11337 fi 11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11339 $as_echo "$tool_specified" >&6; } 11340 fi 11341 fi 11342 fi 11343 11344 fi 11345 11346 11347 11348 if test "x$TAIL" = x; then 11349 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 11350 fi 11351 11352 11353 11354 11355 11356 # Publish this variable in the help. 11357 11358 11359 if [ -z "${TAR+x}" ]; then 11360 # The variable is not set by user, try to locate tool using the code snippet 11361 for ac_prog in gtar tar 11362 do 11363 # Extract the first word of "$ac_prog", so it can be a program name with args. 11364 set dummy $ac_prog; ac_word=$2 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11366 $as_echo_n "checking for $ac_word... " >&6; } 11367 if ${ac_cv_path_TAR+:} false; then : 11368 $as_echo_n "(cached) " >&6 11369 else 11370 case $TAR in 11371 [\\/]* | ?:[\\/]*) 11372 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11373 ;; 11374 *) 11375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11376 for as_dir in $PATH 11377 do 11378 IFS=$as_save_IFS 11379 test -z "$as_dir" && as_dir=. 11380 for ac_exec_ext in '' $ac_executable_extensions; do 11381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11382 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11384 break 2 11385 fi 11386 done 11387 done 11388 IFS=$as_save_IFS 11389 11390 ;; 11391 esac 11392 fi 11393 TAR=$ac_cv_path_TAR 11394 if test -n "$TAR"; then 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11396 $as_echo "$TAR" >&6; } 11397 else 11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11399 $as_echo "no" >&6; } 11400 fi 11401 11402 11403 test -n "$TAR" && break 11404 done 11405 11406 else 11407 # The variable is set, but is it from the command line or the environment? 11408 11409 # Try to remove the string !TAR! from our list. 11410 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 11411 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11412 # If it failed, the variable was not from the command line. Ignore it, 11413 # but warn the user (except for BASH, which is always set by the calling BASH). 11414 if test "xTAR" != xBASH; then 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 11416 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 11417 fi 11418 # Try to locate tool using the code snippet 11419 for ac_prog in gtar tar 11420 do 11421 # Extract the first word of "$ac_prog", so it can be a program name with args. 11422 set dummy $ac_prog; ac_word=$2 11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11424 $as_echo_n "checking for $ac_word... " >&6; } 11425 if ${ac_cv_path_TAR+:} false; then : 11426 $as_echo_n "(cached) " >&6 11427 else 11428 case $TAR in 11429 [\\/]* | ?:[\\/]*) 11430 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11431 ;; 11432 *) 11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11434 for as_dir in $PATH 11435 do 11436 IFS=$as_save_IFS 11437 test -z "$as_dir" && as_dir=. 11438 for ac_exec_ext in '' $ac_executable_extensions; do 11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11440 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11442 break 2 11443 fi 11444 done 11445 done 11446 IFS=$as_save_IFS 11447 11448 ;; 11449 esac 11450 fi 11451 TAR=$ac_cv_path_TAR 11452 if test -n "$TAR"; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11454 $as_echo "$TAR" >&6; } 11455 else 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11457 $as_echo "no" >&6; } 11458 fi 11459 11460 11461 test -n "$TAR" && break 11462 done 11463 11464 else 11465 # If it succeeded, then it was overridden by the user. We will use it 11466 # for the tool. 11467 11468 # First remove it from the list of overridden variables, so we can test 11469 # for unknown variables in the end. 11470 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11471 11472 # Check if we try to supply an empty value 11473 if test "x$TAR" = x; then 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TAR= (no value)" >&5 11475 $as_echo "$as_me: Setting user supplied tool TAR= (no value)" >&6;} 11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11477 $as_echo_n "checking for TAR... " >&6; } 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11479 $as_echo "disabled" >&6; } 11480 else 11481 # Check if the provided tool contains a complete path. 11482 tool_specified="$TAR" 11483 tool_basename="${tool_specified##*/}" 11484 if test "x$tool_basename" = "x$tool_specified"; then 11485 # A command without a complete path is provided, search $PATH. 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 11487 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 11488 # Extract the first word of "$tool_basename", so it can be a program name with args. 11489 set dummy $tool_basename; ac_word=$2 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11491 $as_echo_n "checking for $ac_word... " >&6; } 11492 if ${ac_cv_path_TAR+:} false; then : 11493 $as_echo_n "(cached) " >&6 11494 else 11495 case $TAR in 11496 [\\/]* | ?:[\\/]*) 11497 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 11498 ;; 11499 *) 11500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11501 for as_dir in $PATH 11502 do 11503 IFS=$as_save_IFS 11504 test -z "$as_dir" && as_dir=. 11505 for ac_exec_ext in '' $ac_executable_extensions; do 11506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11507 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 11508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11509 break 2 11510 fi 11511 done 11512 done 11513 IFS=$as_save_IFS 11514 11515 ;; 11516 esac 11517 fi 11518 TAR=$ac_cv_path_TAR 11519 if test -n "$TAR"; then 11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 11521 $as_echo "$TAR" >&6; } 11522 else 11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11524 $as_echo "no" >&6; } 11525 fi 11526 11527 11528 if test "x$TAR" = x; then 11529 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11530 fi 11531 else 11532 # Otherwise we believe it is a complete path. Use it as it is. 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 11534 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 11535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 11536 $as_echo_n "checking for TAR... " >&6; } 11537 if test ! -x "$tool_specified"; then 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11539 $as_echo "not found" >&6; } 11540 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 11541 fi 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11543 $as_echo "$tool_specified" >&6; } 11544 fi 11545 fi 11546 fi 11547 11548 fi 11549 11550 11551 11552 if test "x$TAR" = x; then 11553 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 11554 fi 11555 11556 11557 11558 11559 11560 # Publish this variable in the help. 11561 11562 11563 if [ -z "${TEE+x}" ]; then 11564 # The variable is not set by user, try to locate tool using the code snippet 11565 for ac_prog in tee 11566 do 11567 # Extract the first word of "$ac_prog", so it can be a program name with args. 11568 set dummy $ac_prog; ac_word=$2 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11570 $as_echo_n "checking for $ac_word... " >&6; } 11571 if ${ac_cv_path_TEE+:} false; then : 11572 $as_echo_n "(cached) " >&6 11573 else 11574 case $TEE in 11575 [\\/]* | ?:[\\/]*) 11576 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11577 ;; 11578 *) 11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11580 for as_dir in $PATH 11581 do 11582 IFS=$as_save_IFS 11583 test -z "$as_dir" && as_dir=. 11584 for ac_exec_ext in '' $ac_executable_extensions; do 11585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11586 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11588 break 2 11589 fi 11590 done 11591 done 11592 IFS=$as_save_IFS 11593 11594 ;; 11595 esac 11596 fi 11597 TEE=$ac_cv_path_TEE 11598 if test -n "$TEE"; then 11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11600 $as_echo "$TEE" >&6; } 11601 else 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11603 $as_echo "no" >&6; } 11604 fi 11605 11606 11607 test -n "$TEE" && break 11608 done 11609 11610 else 11611 # The variable is set, but is it from the command line or the environment? 11612 11613 # Try to remove the string !TEE! from our list. 11614 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 11615 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11616 # If it failed, the variable was not from the command line. Ignore it, 11617 # but warn the user (except for BASH, which is always set by the calling BASH). 11618 if test "xTEE" != xBASH; then 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 11620 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 11621 fi 11622 # Try to locate tool using the code snippet 11623 for ac_prog in tee 11624 do 11625 # Extract the first word of "$ac_prog", so it can be a program name with args. 11626 set dummy $ac_prog; ac_word=$2 11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11628 $as_echo_n "checking for $ac_word... " >&6; } 11629 if ${ac_cv_path_TEE+:} false; then : 11630 $as_echo_n "(cached) " >&6 11631 else 11632 case $TEE in 11633 [\\/]* | ?:[\\/]*) 11634 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11635 ;; 11636 *) 11637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11638 for as_dir in $PATH 11639 do 11640 IFS=$as_save_IFS 11641 test -z "$as_dir" && as_dir=. 11642 for ac_exec_ext in '' $ac_executable_extensions; do 11643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11644 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11646 break 2 11647 fi 11648 done 11649 done 11650 IFS=$as_save_IFS 11651 11652 ;; 11653 esac 11654 fi 11655 TEE=$ac_cv_path_TEE 11656 if test -n "$TEE"; then 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11658 $as_echo "$TEE" >&6; } 11659 else 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11661 $as_echo "no" >&6; } 11662 fi 11663 11664 11665 test -n "$TEE" && break 11666 done 11667 11668 else 11669 # If it succeeded, then it was overridden by the user. We will use it 11670 # for the tool. 11671 11672 # First remove it from the list of overridden variables, so we can test 11673 # for unknown variables in the end. 11674 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11675 11676 # Check if we try to supply an empty value 11677 if test "x$TEE" = x; then 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TEE= (no value)" >&5 11679 $as_echo "$as_me: Setting user supplied tool TEE= (no value)" >&6;} 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11681 $as_echo_n "checking for TEE... " >&6; } 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11683 $as_echo "disabled" >&6; } 11684 else 11685 # Check if the provided tool contains a complete path. 11686 tool_specified="$TEE" 11687 tool_basename="${tool_specified##*/}" 11688 if test "x$tool_basename" = "x$tool_specified"; then 11689 # A command without a complete path is provided, search $PATH. 11690 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 11691 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 11692 # Extract the first word of "$tool_basename", so it can be a program name with args. 11693 set dummy $tool_basename; ac_word=$2 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11695 $as_echo_n "checking for $ac_word... " >&6; } 11696 if ${ac_cv_path_TEE+:} false; then : 11697 $as_echo_n "(cached) " >&6 11698 else 11699 case $TEE in 11700 [\\/]* | ?:[\\/]*) 11701 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 11702 ;; 11703 *) 11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11705 for as_dir in $PATH 11706 do 11707 IFS=$as_save_IFS 11708 test -z "$as_dir" && as_dir=. 11709 for ac_exec_ext in '' $ac_executable_extensions; do 11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11711 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 11712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11713 break 2 11714 fi 11715 done 11716 done 11717 IFS=$as_save_IFS 11718 11719 ;; 11720 esac 11721 fi 11722 TEE=$ac_cv_path_TEE 11723 if test -n "$TEE"; then 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 11725 $as_echo "$TEE" >&6; } 11726 else 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11728 $as_echo "no" >&6; } 11729 fi 11730 11731 11732 if test "x$TEE" = x; then 11733 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11734 fi 11735 else 11736 # Otherwise we believe it is a complete path. Use it as it is. 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 11738 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 11740 $as_echo_n "checking for TEE... " >&6; } 11741 if test ! -x "$tool_specified"; then 11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11743 $as_echo "not found" >&6; } 11744 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 11745 fi 11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11747 $as_echo "$tool_specified" >&6; } 11748 fi 11749 fi 11750 fi 11751 11752 fi 11753 11754 11755 11756 if test "x$TEE" = x; then 11757 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 11758 fi 11759 11760 11761 11762 11763 11764 # Publish this variable in the help. 11765 11766 11767 if [ -z "${TOUCH+x}" ]; then 11768 # The variable is not set by user, try to locate tool using the code snippet 11769 for ac_prog in touch 11770 do 11771 # Extract the first word of "$ac_prog", so it can be a program name with args. 11772 set dummy $ac_prog; ac_word=$2 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11774 $as_echo_n "checking for $ac_word... " >&6; } 11775 if ${ac_cv_path_TOUCH+:} false; then : 11776 $as_echo_n "(cached) " >&6 11777 else 11778 case $TOUCH in 11779 [\\/]* | ?:[\\/]*) 11780 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11781 ;; 11782 *) 11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11784 for as_dir in $PATH 11785 do 11786 IFS=$as_save_IFS 11787 test -z "$as_dir" && as_dir=. 11788 for ac_exec_ext in '' $ac_executable_extensions; do 11789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11790 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11792 break 2 11793 fi 11794 done 11795 done 11796 IFS=$as_save_IFS 11797 11798 ;; 11799 esac 11800 fi 11801 TOUCH=$ac_cv_path_TOUCH 11802 if test -n "$TOUCH"; then 11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11804 $as_echo "$TOUCH" >&6; } 11805 else 11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11807 $as_echo "no" >&6; } 11808 fi 11809 11810 11811 test -n "$TOUCH" && break 11812 done 11813 11814 else 11815 # The variable is set, but is it from the command line or the environment? 11816 11817 # Try to remove the string !TOUCH! from our list. 11818 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 11819 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11820 # If it failed, the variable was not from the command line. Ignore it, 11821 # but warn the user (except for BASH, which is always set by the calling BASH). 11822 if test "xTOUCH" != xBASH; then 11823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 11824 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 11825 fi 11826 # Try to locate tool using the code snippet 11827 for ac_prog in touch 11828 do 11829 # Extract the first word of "$ac_prog", so it can be a program name with args. 11830 set dummy $ac_prog; ac_word=$2 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11832 $as_echo_n "checking for $ac_word... " >&6; } 11833 if ${ac_cv_path_TOUCH+:} false; then : 11834 $as_echo_n "(cached) " >&6 11835 else 11836 case $TOUCH in 11837 [\\/]* | ?:[\\/]*) 11838 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11839 ;; 11840 *) 11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11842 for as_dir in $PATH 11843 do 11844 IFS=$as_save_IFS 11845 test -z "$as_dir" && as_dir=. 11846 for ac_exec_ext in '' $ac_executable_extensions; do 11847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11848 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11850 break 2 11851 fi 11852 done 11853 done 11854 IFS=$as_save_IFS 11855 11856 ;; 11857 esac 11858 fi 11859 TOUCH=$ac_cv_path_TOUCH 11860 if test -n "$TOUCH"; then 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11862 $as_echo "$TOUCH" >&6; } 11863 else 11864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11865 $as_echo "no" >&6; } 11866 fi 11867 11868 11869 test -n "$TOUCH" && break 11870 done 11871 11872 else 11873 # If it succeeded, then it was overridden by the user. We will use it 11874 # for the tool. 11875 11876 # First remove it from the list of overridden variables, so we can test 11877 # for unknown variables in the end. 11878 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11879 11880 # Check if we try to supply an empty value 11881 if test "x$TOUCH" = x; then 11882 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TOUCH= (no value)" >&5 11883 $as_echo "$as_me: Setting user supplied tool TOUCH= (no value)" >&6;} 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11885 $as_echo_n "checking for TOUCH... " >&6; } 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 11887 $as_echo "disabled" >&6; } 11888 else 11889 # Check if the provided tool contains a complete path. 11890 tool_specified="$TOUCH" 11891 tool_basename="${tool_specified##*/}" 11892 if test "x$tool_basename" = "x$tool_specified"; then 11893 # A command without a complete path is provided, search $PATH. 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 11895 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 11896 # Extract the first word of "$tool_basename", so it can be a program name with args. 11897 set dummy $tool_basename; ac_word=$2 11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11899 $as_echo_n "checking for $ac_word... " >&6; } 11900 if ${ac_cv_path_TOUCH+:} false; then : 11901 $as_echo_n "(cached) " >&6 11902 else 11903 case $TOUCH in 11904 [\\/]* | ?:[\\/]*) 11905 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 11906 ;; 11907 *) 11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11909 for as_dir in $PATH 11910 do 11911 IFS=$as_save_IFS 11912 test -z "$as_dir" && as_dir=. 11913 for ac_exec_ext in '' $ac_executable_extensions; do 11914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11915 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 11916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11917 break 2 11918 fi 11919 done 11920 done 11921 IFS=$as_save_IFS 11922 11923 ;; 11924 esac 11925 fi 11926 TOUCH=$ac_cv_path_TOUCH 11927 if test -n "$TOUCH"; then 11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 11929 $as_echo "$TOUCH" >&6; } 11930 else 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11932 $as_echo "no" >&6; } 11933 fi 11934 11935 11936 if test "x$TOUCH" = x; then 11937 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11938 fi 11939 else 11940 # Otherwise we believe it is a complete path. Use it as it is. 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 11942 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 11944 $as_echo_n "checking for TOUCH... " >&6; } 11945 if test ! -x "$tool_specified"; then 11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11947 $as_echo "not found" >&6; } 11948 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 11949 fi 11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11951 $as_echo "$tool_specified" >&6; } 11952 fi 11953 fi 11954 fi 11955 11956 fi 11957 11958 11959 11960 if test "x$TOUCH" = x; then 11961 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 11962 fi 11963 11964 11965 11966 11967 11968 # Publish this variable in the help. 11969 11970 11971 if [ -z "${TR+x}" ]; then 11972 # The variable is not set by user, try to locate tool using the code snippet 11973 for ac_prog in tr 11974 do 11975 # Extract the first word of "$ac_prog", so it can be a program name with args. 11976 set dummy $ac_prog; ac_word=$2 11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11978 $as_echo_n "checking for $ac_word... " >&6; } 11979 if ${ac_cv_path_TR+:} false; then : 11980 $as_echo_n "(cached) " >&6 11981 else 11982 case $TR in 11983 [\\/]* | ?:[\\/]*) 11984 ac_cv_path_TR="$TR" # Let the user override the test with a path. 11985 ;; 11986 *) 11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11988 for as_dir in $PATH 11989 do 11990 IFS=$as_save_IFS 11991 test -z "$as_dir" && as_dir=. 11992 for ac_exec_ext in '' $ac_executable_extensions; do 11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11994 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 11995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11996 break 2 11997 fi 11998 done 11999 done 12000 IFS=$as_save_IFS 12001 12002 ;; 12003 esac 12004 fi 12005 TR=$ac_cv_path_TR 12006 if test -n "$TR"; then 12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12008 $as_echo "$TR" >&6; } 12009 else 12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12011 $as_echo "no" >&6; } 12012 fi 12013 12014 12015 test -n "$TR" && break 12016 done 12017 12018 else 12019 # The variable is set, but is it from the command line or the environment? 12020 12021 # Try to remove the string !TR! from our list. 12022 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 12023 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12024 # If it failed, the variable was not from the command line. Ignore it, 12025 # but warn the user (except for BASH, which is always set by the calling BASH). 12026 if test "xTR" != xBASH; then 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 12028 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 12029 fi 12030 # Try to locate tool using the code snippet 12031 for ac_prog in tr 12032 do 12033 # Extract the first word of "$ac_prog", so it can be a program name with args. 12034 set dummy $ac_prog; ac_word=$2 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12036 $as_echo_n "checking for $ac_word... " >&6; } 12037 if ${ac_cv_path_TR+:} false; then : 12038 $as_echo_n "(cached) " >&6 12039 else 12040 case $TR in 12041 [\\/]* | ?:[\\/]*) 12042 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12043 ;; 12044 *) 12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12046 for as_dir in $PATH 12047 do 12048 IFS=$as_save_IFS 12049 test -z "$as_dir" && as_dir=. 12050 for ac_exec_ext in '' $ac_executable_extensions; do 12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12052 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12054 break 2 12055 fi 12056 done 12057 done 12058 IFS=$as_save_IFS 12059 12060 ;; 12061 esac 12062 fi 12063 TR=$ac_cv_path_TR 12064 if test -n "$TR"; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12066 $as_echo "$TR" >&6; } 12067 else 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12069 $as_echo "no" >&6; } 12070 fi 12071 12072 12073 test -n "$TR" && break 12074 done 12075 12076 else 12077 # If it succeeded, then it was overridden by the user. We will use it 12078 # for the tool. 12079 12080 # First remove it from the list of overridden variables, so we can test 12081 # for unknown variables in the end. 12082 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12083 12084 # Check if we try to supply an empty value 12085 if test "x$TR" = x; then 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TR= (no value)" >&5 12087 $as_echo "$as_me: Setting user supplied tool TR= (no value)" >&6;} 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12089 $as_echo_n "checking for TR... " >&6; } 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12091 $as_echo "disabled" >&6; } 12092 else 12093 # Check if the provided tool contains a complete path. 12094 tool_specified="$TR" 12095 tool_basename="${tool_specified##*/}" 12096 if test "x$tool_basename" = "x$tool_specified"; then 12097 # A command without a complete path is provided, search $PATH. 12098 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 12099 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 12100 # Extract the first word of "$tool_basename", so it can be a program name with args. 12101 set dummy $tool_basename; ac_word=$2 12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12103 $as_echo_n "checking for $ac_word... " >&6; } 12104 if ${ac_cv_path_TR+:} false; then : 12105 $as_echo_n "(cached) " >&6 12106 else 12107 case $TR in 12108 [\\/]* | ?:[\\/]*) 12109 ac_cv_path_TR="$TR" # Let the user override the test with a path. 12110 ;; 12111 *) 12112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12113 for as_dir in $PATH 12114 do 12115 IFS=$as_save_IFS 12116 test -z "$as_dir" && as_dir=. 12117 for ac_exec_ext in '' $ac_executable_extensions; do 12118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12119 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 12120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12121 break 2 12122 fi 12123 done 12124 done 12125 IFS=$as_save_IFS 12126 12127 ;; 12128 esac 12129 fi 12130 TR=$ac_cv_path_TR 12131 if test -n "$TR"; then 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 12133 $as_echo "$TR" >&6; } 12134 else 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12136 $as_echo "no" >&6; } 12137 fi 12138 12139 12140 if test "x$TR" = x; then 12141 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12142 fi 12143 else 12144 # Otherwise we believe it is a complete path. Use it as it is. 12145 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 12146 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 12148 $as_echo_n "checking for TR... " >&6; } 12149 if test ! -x "$tool_specified"; then 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12151 $as_echo "not found" >&6; } 12152 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 12153 fi 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12155 $as_echo "$tool_specified" >&6; } 12156 fi 12157 fi 12158 fi 12159 12160 fi 12161 12162 12163 12164 if test "x$TR" = x; then 12165 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 12166 fi 12167 12168 12169 12170 12171 12172 # Publish this variable in the help. 12173 12174 12175 if [ -z "${UNAME+x}" ]; then 12176 # The variable is not set by user, try to locate tool using the code snippet 12177 for ac_prog in uname 12178 do 12179 # Extract the first word of "$ac_prog", so it can be a program name with args. 12180 set dummy $ac_prog; ac_word=$2 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12182 $as_echo_n "checking for $ac_word... " >&6; } 12183 if ${ac_cv_path_UNAME+:} false; then : 12184 $as_echo_n "(cached) " >&6 12185 else 12186 case $UNAME in 12187 [\\/]* | ?:[\\/]*) 12188 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12189 ;; 12190 *) 12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12192 for as_dir in $PATH 12193 do 12194 IFS=$as_save_IFS 12195 test -z "$as_dir" && as_dir=. 12196 for ac_exec_ext in '' $ac_executable_extensions; do 12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12198 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12200 break 2 12201 fi 12202 done 12203 done 12204 IFS=$as_save_IFS 12205 12206 ;; 12207 esac 12208 fi 12209 UNAME=$ac_cv_path_UNAME 12210 if test -n "$UNAME"; then 12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12212 $as_echo "$UNAME" >&6; } 12213 else 12214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12215 $as_echo "no" >&6; } 12216 fi 12217 12218 12219 test -n "$UNAME" && break 12220 done 12221 12222 else 12223 # The variable is set, but is it from the command line or the environment? 12224 12225 # Try to remove the string !UNAME! from our list. 12226 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 12227 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12228 # If it failed, the variable was not from the command line. Ignore it, 12229 # but warn the user (except for BASH, which is always set by the calling BASH). 12230 if test "xUNAME" != xBASH; then 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 12232 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 12233 fi 12234 # Try to locate tool using the code snippet 12235 for ac_prog in uname 12236 do 12237 # Extract the first word of "$ac_prog", so it can be a program name with args. 12238 set dummy $ac_prog; ac_word=$2 12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12240 $as_echo_n "checking for $ac_word... " >&6; } 12241 if ${ac_cv_path_UNAME+:} false; then : 12242 $as_echo_n "(cached) " >&6 12243 else 12244 case $UNAME in 12245 [\\/]* | ?:[\\/]*) 12246 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12247 ;; 12248 *) 12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12250 for as_dir in $PATH 12251 do 12252 IFS=$as_save_IFS 12253 test -z "$as_dir" && as_dir=. 12254 for ac_exec_ext in '' $ac_executable_extensions; do 12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12256 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12258 break 2 12259 fi 12260 done 12261 done 12262 IFS=$as_save_IFS 12263 12264 ;; 12265 esac 12266 fi 12267 UNAME=$ac_cv_path_UNAME 12268 if test -n "$UNAME"; then 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12270 $as_echo "$UNAME" >&6; } 12271 else 12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12273 $as_echo "no" >&6; } 12274 fi 12275 12276 12277 test -n "$UNAME" && break 12278 done 12279 12280 else 12281 # If it succeeded, then it was overridden by the user. We will use it 12282 # for the tool. 12283 12284 # First remove it from the list of overridden variables, so we can test 12285 # for unknown variables in the end. 12286 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12287 12288 # Check if we try to supply an empty value 12289 if test "x$UNAME" = x; then 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNAME= (no value)" >&5 12291 $as_echo "$as_me: Setting user supplied tool UNAME= (no value)" >&6;} 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12293 $as_echo_n "checking for UNAME... " >&6; } 12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12295 $as_echo "disabled" >&6; } 12296 else 12297 # Check if the provided tool contains a complete path. 12298 tool_specified="$UNAME" 12299 tool_basename="${tool_specified##*/}" 12300 if test "x$tool_basename" = "x$tool_specified"; then 12301 # A command without a complete path is provided, search $PATH. 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 12303 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 12304 # Extract the first word of "$tool_basename", so it can be a program name with args. 12305 set dummy $tool_basename; ac_word=$2 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12307 $as_echo_n "checking for $ac_word... " >&6; } 12308 if ${ac_cv_path_UNAME+:} false; then : 12309 $as_echo_n "(cached) " >&6 12310 else 12311 case $UNAME in 12312 [\\/]* | ?:[\\/]*) 12313 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 12314 ;; 12315 *) 12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12317 for as_dir in $PATH 12318 do 12319 IFS=$as_save_IFS 12320 test -z "$as_dir" && as_dir=. 12321 for ac_exec_ext in '' $ac_executable_extensions; do 12322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12323 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 12324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12325 break 2 12326 fi 12327 done 12328 done 12329 IFS=$as_save_IFS 12330 12331 ;; 12332 esac 12333 fi 12334 UNAME=$ac_cv_path_UNAME 12335 if test -n "$UNAME"; then 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 12337 $as_echo "$UNAME" >&6; } 12338 else 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12340 $as_echo "no" >&6; } 12341 fi 12342 12343 12344 if test "x$UNAME" = x; then 12345 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12346 fi 12347 else 12348 # Otherwise we believe it is a complete path. Use it as it is. 12349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 12350 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 12352 $as_echo_n "checking for UNAME... " >&6; } 12353 if test ! -x "$tool_specified"; then 12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12355 $as_echo "not found" >&6; } 12356 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 12357 fi 12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12359 $as_echo "$tool_specified" >&6; } 12360 fi 12361 fi 12362 fi 12363 12364 fi 12365 12366 12367 12368 if test "x$UNAME" = x; then 12369 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 12370 fi 12371 12372 12373 12374 12375 12376 # Publish this variable in the help. 12377 12378 12379 if [ -z "${UNIQ+x}" ]; then 12380 # The variable is not set by user, try to locate tool using the code snippet 12381 for ac_prog in uniq 12382 do 12383 # Extract the first word of "$ac_prog", so it can be a program name with args. 12384 set dummy $ac_prog; ac_word=$2 12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12386 $as_echo_n "checking for $ac_word... " >&6; } 12387 if ${ac_cv_path_UNIQ+:} false; then : 12388 $as_echo_n "(cached) " >&6 12389 else 12390 case $UNIQ in 12391 [\\/]* | ?:[\\/]*) 12392 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12393 ;; 12394 *) 12395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12396 for as_dir in $PATH 12397 do 12398 IFS=$as_save_IFS 12399 test -z "$as_dir" && as_dir=. 12400 for ac_exec_ext in '' $ac_executable_extensions; do 12401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12402 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12404 break 2 12405 fi 12406 done 12407 done 12408 IFS=$as_save_IFS 12409 12410 ;; 12411 esac 12412 fi 12413 UNIQ=$ac_cv_path_UNIQ 12414 if test -n "$UNIQ"; then 12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12416 $as_echo "$UNIQ" >&6; } 12417 else 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12419 $as_echo "no" >&6; } 12420 fi 12421 12422 12423 test -n "$UNIQ" && break 12424 done 12425 12426 else 12427 # The variable is set, but is it from the command line or the environment? 12428 12429 # Try to remove the string !UNIQ! from our list. 12430 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 12431 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12432 # If it failed, the variable was not from the command line. Ignore it, 12433 # but warn the user (except for BASH, which is always set by the calling BASH). 12434 if test "xUNIQ" != xBASH; then 12435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 12436 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 12437 fi 12438 # Try to locate tool using the code snippet 12439 for ac_prog in uniq 12440 do 12441 # Extract the first word of "$ac_prog", so it can be a program name with args. 12442 set dummy $ac_prog; ac_word=$2 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12444 $as_echo_n "checking for $ac_word... " >&6; } 12445 if ${ac_cv_path_UNIQ+:} false; then : 12446 $as_echo_n "(cached) " >&6 12447 else 12448 case $UNIQ in 12449 [\\/]* | ?:[\\/]*) 12450 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12451 ;; 12452 *) 12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12454 for as_dir in $PATH 12455 do 12456 IFS=$as_save_IFS 12457 test -z "$as_dir" && as_dir=. 12458 for ac_exec_ext in '' $ac_executable_extensions; do 12459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12460 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12462 break 2 12463 fi 12464 done 12465 done 12466 IFS=$as_save_IFS 12467 12468 ;; 12469 esac 12470 fi 12471 UNIQ=$ac_cv_path_UNIQ 12472 if test -n "$UNIQ"; then 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12474 $as_echo "$UNIQ" >&6; } 12475 else 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12477 $as_echo "no" >&6; } 12478 fi 12479 12480 12481 test -n "$UNIQ" && break 12482 done 12483 12484 else 12485 # If it succeeded, then it was overridden by the user. We will use it 12486 # for the tool. 12487 12488 # First remove it from the list of overridden variables, so we can test 12489 # for unknown variables in the end. 12490 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12491 12492 # Check if we try to supply an empty value 12493 if test "x$UNIQ" = x; then 12494 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNIQ= (no value)" >&5 12495 $as_echo "$as_me: Setting user supplied tool UNIQ= (no value)" >&6;} 12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12497 $as_echo_n "checking for UNIQ... " >&6; } 12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12499 $as_echo "disabled" >&6; } 12500 else 12501 # Check if the provided tool contains a complete path. 12502 tool_specified="$UNIQ" 12503 tool_basename="${tool_specified##*/}" 12504 if test "x$tool_basename" = "x$tool_specified"; then 12505 # A command without a complete path is provided, search $PATH. 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 12507 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 12508 # Extract the first word of "$tool_basename", so it can be a program name with args. 12509 set dummy $tool_basename; ac_word=$2 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12511 $as_echo_n "checking for $ac_word... " >&6; } 12512 if ${ac_cv_path_UNIQ+:} false; then : 12513 $as_echo_n "(cached) " >&6 12514 else 12515 case $UNIQ in 12516 [\\/]* | ?:[\\/]*) 12517 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 12518 ;; 12519 *) 12520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12521 for as_dir in $PATH 12522 do 12523 IFS=$as_save_IFS 12524 test -z "$as_dir" && as_dir=. 12525 for ac_exec_ext in '' $ac_executable_extensions; do 12526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12527 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 12528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12529 break 2 12530 fi 12531 done 12532 done 12533 IFS=$as_save_IFS 12534 12535 ;; 12536 esac 12537 fi 12538 UNIQ=$ac_cv_path_UNIQ 12539 if test -n "$UNIQ"; then 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 12541 $as_echo "$UNIQ" >&6; } 12542 else 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12544 $as_echo "no" >&6; } 12545 fi 12546 12547 12548 if test "x$UNIQ" = x; then 12549 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12550 fi 12551 else 12552 # Otherwise we believe it is a complete path. Use it as it is. 12553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 12554 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 12556 $as_echo_n "checking for UNIQ... " >&6; } 12557 if test ! -x "$tool_specified"; then 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12559 $as_echo "not found" >&6; } 12560 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 12561 fi 12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12563 $as_echo "$tool_specified" >&6; } 12564 fi 12565 fi 12566 fi 12567 12568 fi 12569 12570 12571 12572 if test "x$UNIQ" = x; then 12573 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 12574 fi 12575 12576 12577 12578 12579 12580 # Publish this variable in the help. 12581 12582 12583 if [ -z "${WC+x}" ]; then 12584 # The variable is not set by user, try to locate tool using the code snippet 12585 for ac_prog in wc 12586 do 12587 # Extract the first word of "$ac_prog", so it can be a program name with args. 12588 set dummy $ac_prog; ac_word=$2 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12590 $as_echo_n "checking for $ac_word... " >&6; } 12591 if ${ac_cv_path_WC+:} false; then : 12592 $as_echo_n "(cached) " >&6 12593 else 12594 case $WC in 12595 [\\/]* | ?:[\\/]*) 12596 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12597 ;; 12598 *) 12599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12600 for as_dir in $PATH 12601 do 12602 IFS=$as_save_IFS 12603 test -z "$as_dir" && as_dir=. 12604 for ac_exec_ext in '' $ac_executable_extensions; do 12605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12606 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12608 break 2 12609 fi 12610 done 12611 done 12612 IFS=$as_save_IFS 12613 12614 ;; 12615 esac 12616 fi 12617 WC=$ac_cv_path_WC 12618 if test -n "$WC"; then 12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12620 $as_echo "$WC" >&6; } 12621 else 12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12623 $as_echo "no" >&6; } 12624 fi 12625 12626 12627 test -n "$WC" && break 12628 done 12629 12630 else 12631 # The variable is set, but is it from the command line or the environment? 12632 12633 # Try to remove the string !WC! from our list. 12634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 12635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12636 # If it failed, the variable was not from the command line. Ignore it, 12637 # but warn the user (except for BASH, which is always set by the calling BASH). 12638 if test "xWC" != xBASH; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 12640 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 12641 fi 12642 # Try to locate tool using the code snippet 12643 for ac_prog in wc 12644 do 12645 # Extract the first word of "$ac_prog", so it can be a program name with args. 12646 set dummy $ac_prog; ac_word=$2 12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12648 $as_echo_n "checking for $ac_word... " >&6; } 12649 if ${ac_cv_path_WC+:} false; then : 12650 $as_echo_n "(cached) " >&6 12651 else 12652 case $WC in 12653 [\\/]* | ?:[\\/]*) 12654 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12655 ;; 12656 *) 12657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12658 for as_dir in $PATH 12659 do 12660 IFS=$as_save_IFS 12661 test -z "$as_dir" && as_dir=. 12662 for ac_exec_ext in '' $ac_executable_extensions; do 12663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12664 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12666 break 2 12667 fi 12668 done 12669 done 12670 IFS=$as_save_IFS 12671 12672 ;; 12673 esac 12674 fi 12675 WC=$ac_cv_path_WC 12676 if test -n "$WC"; then 12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12678 $as_echo "$WC" >&6; } 12679 else 12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12681 $as_echo "no" >&6; } 12682 fi 12683 12684 12685 test -n "$WC" && break 12686 done 12687 12688 else 12689 # If it succeeded, then it was overridden by the user. We will use it 12690 # for the tool. 12691 12692 # First remove it from the list of overridden variables, so we can test 12693 # for unknown variables in the end. 12694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12695 12696 # Check if we try to supply an empty value 12697 if test "x$WC" = x; then 12698 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WC= (no value)" >&5 12699 $as_echo "$as_me: Setting user supplied tool WC= (no value)" >&6;} 12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12701 $as_echo_n "checking for WC... " >&6; } 12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12703 $as_echo "disabled" >&6; } 12704 else 12705 # Check if the provided tool contains a complete path. 12706 tool_specified="$WC" 12707 tool_basename="${tool_specified##*/}" 12708 if test "x$tool_basename" = "x$tool_specified"; then 12709 # A command without a complete path is provided, search $PATH. 12710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 12711 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 12712 # Extract the first word of "$tool_basename", so it can be a program name with args. 12713 set dummy $tool_basename; ac_word=$2 12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12715 $as_echo_n "checking for $ac_word... " >&6; } 12716 if ${ac_cv_path_WC+:} false; then : 12717 $as_echo_n "(cached) " >&6 12718 else 12719 case $WC in 12720 [\\/]* | ?:[\\/]*) 12721 ac_cv_path_WC="$WC" # Let the user override the test with a path. 12722 ;; 12723 *) 12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12725 for as_dir in $PATH 12726 do 12727 IFS=$as_save_IFS 12728 test -z "$as_dir" && as_dir=. 12729 for ac_exec_ext in '' $ac_executable_extensions; do 12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12731 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 12732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12733 break 2 12734 fi 12735 done 12736 done 12737 IFS=$as_save_IFS 12738 12739 ;; 12740 esac 12741 fi 12742 WC=$ac_cv_path_WC 12743 if test -n "$WC"; then 12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 12745 $as_echo "$WC" >&6; } 12746 else 12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12748 $as_echo "no" >&6; } 12749 fi 12750 12751 12752 if test "x$WC" = x; then 12753 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12754 fi 12755 else 12756 # Otherwise we believe it is a complete path. Use it as it is. 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 12758 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 12760 $as_echo_n "checking for WC... " >&6; } 12761 if test ! -x "$tool_specified"; then 12762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12763 $as_echo "not found" >&6; } 12764 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 12765 fi 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12767 $as_echo "$tool_specified" >&6; } 12768 fi 12769 fi 12770 fi 12771 12772 fi 12773 12774 12775 12776 if test "x$WC" = x; then 12777 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 12778 fi 12779 12780 12781 12782 12783 12784 # Publish this variable in the help. 12785 12786 12787 if [ -z "${WHICH+x}" ]; then 12788 # The variable is not set by user, try to locate tool using the code snippet 12789 for ac_prog in which 12790 do 12791 # Extract the first word of "$ac_prog", so it can be a program name with args. 12792 set dummy $ac_prog; ac_word=$2 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12794 $as_echo_n "checking for $ac_word... " >&6; } 12795 if ${ac_cv_path_WHICH+:} false; then : 12796 $as_echo_n "(cached) " >&6 12797 else 12798 case $WHICH in 12799 [\\/]* | ?:[\\/]*) 12800 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12801 ;; 12802 *) 12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12804 for as_dir in $PATH 12805 do 12806 IFS=$as_save_IFS 12807 test -z "$as_dir" && as_dir=. 12808 for ac_exec_ext in '' $ac_executable_extensions; do 12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12810 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12812 break 2 12813 fi 12814 done 12815 done 12816 IFS=$as_save_IFS 12817 12818 ;; 12819 esac 12820 fi 12821 WHICH=$ac_cv_path_WHICH 12822 if test -n "$WHICH"; then 12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12824 $as_echo "$WHICH" >&6; } 12825 else 12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12827 $as_echo "no" >&6; } 12828 fi 12829 12830 12831 test -n "$WHICH" && break 12832 done 12833 12834 else 12835 # The variable is set, but is it from the command line or the environment? 12836 12837 # Try to remove the string !WHICH! from our list. 12838 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 12839 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12840 # If it failed, the variable was not from the command line. Ignore it, 12841 # but warn the user (except for BASH, which is always set by the calling BASH). 12842 if test "xWHICH" != xBASH; then 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 12844 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 12845 fi 12846 # Try to locate tool using the code snippet 12847 for ac_prog in which 12848 do 12849 # Extract the first word of "$ac_prog", so it can be a program name with args. 12850 set dummy $ac_prog; ac_word=$2 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12852 $as_echo_n "checking for $ac_word... " >&6; } 12853 if ${ac_cv_path_WHICH+:} false; then : 12854 $as_echo_n "(cached) " >&6 12855 else 12856 case $WHICH in 12857 [\\/]* | ?:[\\/]*) 12858 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12859 ;; 12860 *) 12861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12862 for as_dir in $PATH 12863 do 12864 IFS=$as_save_IFS 12865 test -z "$as_dir" && as_dir=. 12866 for ac_exec_ext in '' $ac_executable_extensions; do 12867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12868 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12870 break 2 12871 fi 12872 done 12873 done 12874 IFS=$as_save_IFS 12875 12876 ;; 12877 esac 12878 fi 12879 WHICH=$ac_cv_path_WHICH 12880 if test -n "$WHICH"; then 12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12882 $as_echo "$WHICH" >&6; } 12883 else 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12885 $as_echo "no" >&6; } 12886 fi 12887 12888 12889 test -n "$WHICH" && break 12890 done 12891 12892 else 12893 # If it succeeded, then it was overridden by the user. We will use it 12894 # for the tool. 12895 12896 # First remove it from the list of overridden variables, so we can test 12897 # for unknown variables in the end. 12898 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12899 12900 # Check if we try to supply an empty value 12901 if test "x$WHICH" = x; then 12902 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool WHICH= (no value)" >&5 12903 $as_echo "$as_me: Setting user supplied tool WHICH= (no value)" >&6;} 12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12905 $as_echo_n "checking for WHICH... " >&6; } 12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 12907 $as_echo "disabled" >&6; } 12908 else 12909 # Check if the provided tool contains a complete path. 12910 tool_specified="$WHICH" 12911 tool_basename="${tool_specified##*/}" 12912 if test "x$tool_basename" = "x$tool_specified"; then 12913 # A command without a complete path is provided, search $PATH. 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 12915 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 12916 # Extract the first word of "$tool_basename", so it can be a program name with args. 12917 set dummy $tool_basename; ac_word=$2 12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12919 $as_echo_n "checking for $ac_word... " >&6; } 12920 if ${ac_cv_path_WHICH+:} false; then : 12921 $as_echo_n "(cached) " >&6 12922 else 12923 case $WHICH in 12924 [\\/]* | ?:[\\/]*) 12925 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 12926 ;; 12927 *) 12928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12929 for as_dir in $PATH 12930 do 12931 IFS=$as_save_IFS 12932 test -z "$as_dir" && as_dir=. 12933 for ac_exec_ext in '' $ac_executable_extensions; do 12934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12935 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 12936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12937 break 2 12938 fi 12939 done 12940 done 12941 IFS=$as_save_IFS 12942 12943 ;; 12944 esac 12945 fi 12946 WHICH=$ac_cv_path_WHICH 12947 if test -n "$WHICH"; then 12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 12949 $as_echo "$WHICH" >&6; } 12950 else 12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12952 $as_echo "no" >&6; } 12953 fi 12954 12955 12956 if test "x$WHICH" = x; then 12957 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12958 fi 12959 else 12960 # Otherwise we believe it is a complete path. Use it as it is. 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 12962 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 12964 $as_echo_n "checking for WHICH... " >&6; } 12965 if test ! -x "$tool_specified"; then 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12967 $as_echo "not found" >&6; } 12968 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 12969 fi 12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12971 $as_echo "$tool_specified" >&6; } 12972 fi 12973 fi 12974 fi 12975 12976 fi 12977 12978 12979 12980 if test "x$WHICH" = x; then 12981 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 12982 fi 12983 12984 12985 12986 12987 12988 # Publish this variable in the help. 12989 12990 12991 if [ -z "${XARGS+x}" ]; then 12992 # The variable is not set by user, try to locate tool using the code snippet 12993 for ac_prog in xargs 12994 do 12995 # Extract the first word of "$ac_prog", so it can be a program name with args. 12996 set dummy $ac_prog; ac_word=$2 12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12998 $as_echo_n "checking for $ac_word... " >&6; } 12999 if ${ac_cv_path_XARGS+:} false; then : 13000 $as_echo_n "(cached) " >&6 13001 else 13002 case $XARGS in 13003 [\\/]* | ?:[\\/]*) 13004 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13005 ;; 13006 *) 13007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13008 for as_dir in $PATH 13009 do 13010 IFS=$as_save_IFS 13011 test -z "$as_dir" && as_dir=. 13012 for ac_exec_ext in '' $ac_executable_extensions; do 13013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13014 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13016 break 2 13017 fi 13018 done 13019 done 13020 IFS=$as_save_IFS 13021 13022 ;; 13023 esac 13024 fi 13025 XARGS=$ac_cv_path_XARGS 13026 if test -n "$XARGS"; then 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13028 $as_echo "$XARGS" >&6; } 13029 else 13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13031 $as_echo "no" >&6; } 13032 fi 13033 13034 13035 test -n "$XARGS" && break 13036 done 13037 13038 else 13039 # The variable is set, but is it from the command line or the environment? 13040 13041 # Try to remove the string !XARGS! from our list. 13042 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 13043 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13044 # If it failed, the variable was not from the command line. Ignore it, 13045 # but warn the user (except for BASH, which is always set by the calling BASH). 13046 if test "xXARGS" != xBASH; then 13047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 13048 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 13049 fi 13050 # Try to locate tool using the code snippet 13051 for ac_prog in xargs 13052 do 13053 # Extract the first word of "$ac_prog", so it can be a program name with args. 13054 set dummy $ac_prog; ac_word=$2 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13056 $as_echo_n "checking for $ac_word... " >&6; } 13057 if ${ac_cv_path_XARGS+:} false; then : 13058 $as_echo_n "(cached) " >&6 13059 else 13060 case $XARGS in 13061 [\\/]* | ?:[\\/]*) 13062 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13063 ;; 13064 *) 13065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13066 for as_dir in $PATH 13067 do 13068 IFS=$as_save_IFS 13069 test -z "$as_dir" && as_dir=. 13070 for ac_exec_ext in '' $ac_executable_extensions; do 13071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13072 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13074 break 2 13075 fi 13076 done 13077 done 13078 IFS=$as_save_IFS 13079 13080 ;; 13081 esac 13082 fi 13083 XARGS=$ac_cv_path_XARGS 13084 if test -n "$XARGS"; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13086 $as_echo "$XARGS" >&6; } 13087 else 13088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13089 $as_echo "no" >&6; } 13090 fi 13091 13092 13093 test -n "$XARGS" && break 13094 done 13095 13096 else 13097 # If it succeeded, then it was overridden by the user. We will use it 13098 # for the tool. 13099 13100 # First remove it from the list of overridden variables, so we can test 13101 # for unknown variables in the end. 13102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13103 13104 # Check if we try to supply an empty value 13105 if test "x$XARGS" = x; then 13106 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XARGS= (no value)" >&5 13107 $as_echo "$as_me: Setting user supplied tool XARGS= (no value)" >&6;} 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13109 $as_echo_n "checking for XARGS... " >&6; } 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13111 $as_echo "disabled" >&6; } 13112 else 13113 # Check if the provided tool contains a complete path. 13114 tool_specified="$XARGS" 13115 tool_basename="${tool_specified##*/}" 13116 if test "x$tool_basename" = "x$tool_specified"; then 13117 # A command without a complete path is provided, search $PATH. 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 13119 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 13120 # Extract the first word of "$tool_basename", so it can be a program name with args. 13121 set dummy $tool_basename; ac_word=$2 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13123 $as_echo_n "checking for $ac_word... " >&6; } 13124 if ${ac_cv_path_XARGS+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126 else 13127 case $XARGS in 13128 [\\/]* | ?:[\\/]*) 13129 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 13130 ;; 13131 *) 13132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13133 for as_dir in $PATH 13134 do 13135 IFS=$as_save_IFS 13136 test -z "$as_dir" && as_dir=. 13137 for ac_exec_ext in '' $ac_executable_extensions; do 13138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13139 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 13140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13141 break 2 13142 fi 13143 done 13144 done 13145 IFS=$as_save_IFS 13146 13147 ;; 13148 esac 13149 fi 13150 XARGS=$ac_cv_path_XARGS 13151 if test -n "$XARGS"; then 13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 13153 $as_echo "$XARGS" >&6; } 13154 else 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13156 $as_echo "no" >&6; } 13157 fi 13158 13159 13160 if test "x$XARGS" = x; then 13161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13162 fi 13163 else 13164 # Otherwise we believe it is a complete path. Use it as it is. 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 13166 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 13168 $as_echo_n "checking for XARGS... " >&6; } 13169 if test ! -x "$tool_specified"; then 13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13171 $as_echo "not found" >&6; } 13172 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 13173 fi 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13175 $as_echo "$tool_specified" >&6; } 13176 fi 13177 fi 13178 fi 13179 13180 fi 13181 13182 13183 13184 if test "x$XARGS" = x; then 13185 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 13186 fi 13187 13188 13189 13190 # Then required tools that require some special treatment. 13191 13192 13193 # Publish this variable in the help. 13194 13195 13196 if [ -z "${AWK+x}" ]; then 13197 # The variable is not set by user, try to locate tool using the code snippet 13198 for ac_prog in gawk mawk nawk awk 13199 do 13200 # Extract the first word of "$ac_prog", so it can be a program name with args. 13201 set dummy $ac_prog; ac_word=$2 13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13203 $as_echo_n "checking for $ac_word... " >&6; } 13204 if ${ac_cv_prog_AWK+:} false; then : 13205 $as_echo_n "(cached) " >&6 13206 else 13207 if test -n "$AWK"; then 13208 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13209 else 13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13211 for as_dir in $PATH 13212 do 13213 IFS=$as_save_IFS 13214 test -z "$as_dir" && as_dir=. 13215 for ac_exec_ext in '' $ac_executable_extensions; do 13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13217 ac_cv_prog_AWK="$ac_prog" 13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13219 break 2 13220 fi 13221 done 13222 done 13223 IFS=$as_save_IFS 13224 13225 fi 13226 fi 13227 AWK=$ac_cv_prog_AWK 13228 if test -n "$AWK"; then 13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13230 $as_echo "$AWK" >&6; } 13231 else 13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13233 $as_echo "no" >&6; } 13234 fi 13235 13236 13237 test -n "$AWK" && break 13238 done 13239 13240 else 13241 # The variable is set, but is it from the command line or the environment? 13242 13243 # Try to remove the string !AWK! from our list. 13244 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 13245 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13246 # If it failed, the variable was not from the command line. Ignore it, 13247 # but warn the user (except for BASH, which is always set by the calling BASH). 13248 if test "xAWK" != xBASH; then 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 13250 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 13251 fi 13252 # Try to locate tool using the code snippet 13253 for ac_prog in gawk mawk nawk awk 13254 do 13255 # Extract the first word of "$ac_prog", so it can be a program name with args. 13256 set dummy $ac_prog; ac_word=$2 13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13258 $as_echo_n "checking for $ac_word... " >&6; } 13259 if ${ac_cv_prog_AWK+:} false; then : 13260 $as_echo_n "(cached) " >&6 13261 else 13262 if test -n "$AWK"; then 13263 ac_cv_prog_AWK="$AWK" # Let the user override the test. 13264 else 13265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13266 for as_dir in $PATH 13267 do 13268 IFS=$as_save_IFS 13269 test -z "$as_dir" && as_dir=. 13270 for ac_exec_ext in '' $ac_executable_extensions; do 13271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13272 ac_cv_prog_AWK="$ac_prog" 13273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13274 break 2 13275 fi 13276 done 13277 done 13278 IFS=$as_save_IFS 13279 13280 fi 13281 fi 13282 AWK=$ac_cv_prog_AWK 13283 if test -n "$AWK"; then 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13285 $as_echo "$AWK" >&6; } 13286 else 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13288 $as_echo "no" >&6; } 13289 fi 13290 13291 13292 test -n "$AWK" && break 13293 done 13294 13295 else 13296 # If it succeeded, then it was overridden by the user. We will use it 13297 # for the tool. 13298 13299 # First remove it from the list of overridden variables, so we can test 13300 # for unknown variables in the end. 13301 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13302 13303 # Check if we try to supply an empty value 13304 if test "x$AWK" = x; then 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AWK= (no value)" >&5 13306 $as_echo "$as_me: Setting user supplied tool AWK= (no value)" >&6;} 13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13308 $as_echo_n "checking for AWK... " >&6; } 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13310 $as_echo "disabled" >&6; } 13311 else 13312 # Check if the provided tool contains a complete path. 13313 tool_specified="$AWK" 13314 tool_basename="${tool_specified##*/}" 13315 if test "x$tool_basename" = "x$tool_specified"; then 13316 # A command without a complete path is provided, search $PATH. 13317 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 13318 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 13319 # Extract the first word of "$tool_basename", so it can be a program name with args. 13320 set dummy $tool_basename; ac_word=$2 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13322 $as_echo_n "checking for $ac_word... " >&6; } 13323 if ${ac_cv_path_AWK+:} false; then : 13324 $as_echo_n "(cached) " >&6 13325 else 13326 case $AWK in 13327 [\\/]* | ?:[\\/]*) 13328 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 13329 ;; 13330 *) 13331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13332 for as_dir in $PATH 13333 do 13334 IFS=$as_save_IFS 13335 test -z "$as_dir" && as_dir=. 13336 for ac_exec_ext in '' $ac_executable_extensions; do 13337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13338 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 13339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13340 break 2 13341 fi 13342 done 13343 done 13344 IFS=$as_save_IFS 13345 13346 ;; 13347 esac 13348 fi 13349 AWK=$ac_cv_path_AWK 13350 if test -n "$AWK"; then 13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 13352 $as_echo "$AWK" >&6; } 13353 else 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13355 $as_echo "no" >&6; } 13356 fi 13357 13358 13359 if test "x$AWK" = x; then 13360 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13361 fi 13362 else 13363 # Otherwise we believe it is a complete path. Use it as it is. 13364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 13365 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 13366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 13367 $as_echo_n "checking for AWK... " >&6; } 13368 if test ! -x "$tool_specified"; then 13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13370 $as_echo "not found" >&6; } 13371 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 13372 fi 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13374 $as_echo "$tool_specified" >&6; } 13375 fi 13376 fi 13377 fi 13378 13379 fi 13380 13381 13382 if test "x$AWK" = x; then 13383 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 13384 fi 13385 13386 13387 13388 13389 # Publish this variable in the help. 13390 13391 13392 if [ -z "${GREP+x}" ]; then 13393 # The variable is not set by user, try to locate tool using the code snippet 13394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13395 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13396 if ${ac_cv_path_GREP+:} false; then : 13397 $as_echo_n "(cached) " >&6 13398 else 13399 if test -z "$GREP"; then 13400 ac_path_GREP_found=false 13401 # Loop through the user's path and test for each of PROGNAME-LIST 13402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13403 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13404 do 13405 IFS=$as_save_IFS 13406 test -z "$as_dir" && as_dir=. 13407 for ac_prog in grep ggrep; do 13408 for ac_exec_ext in '' $ac_executable_extensions; do 13409 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13410 as_fn_executable_p "$ac_path_GREP" || continue 13411 # Check for GNU ac_path_GREP and select it if it is found. 13412 # Check for GNU $ac_path_GREP 13413 case `"$ac_path_GREP" --version 2>&1` in 13414 *GNU*) 13415 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13416 *) 13417 ac_count=0 13418 $as_echo_n 0123456789 >"conftest.in" 13419 while : 13420 do 13421 cat "conftest.in" "conftest.in" >"conftest.tmp" 13422 mv "conftest.tmp" "conftest.in" 13423 cp "conftest.in" "conftest.nl" 13424 $as_echo 'GREP' >> "conftest.nl" 13425 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13426 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13427 as_fn_arith $ac_count + 1 && ac_count=$as_val 13428 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13429 # Best one so far, save it but keep looking for a better one 13430 ac_cv_path_GREP="$ac_path_GREP" 13431 ac_path_GREP_max=$ac_count 13432 fi 13433 # 10*(2^10) chars as input seems more than enough 13434 test $ac_count -gt 10 && break 13435 done 13436 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13437 esac 13438 13439 $ac_path_GREP_found && break 3 13440 done 13441 done 13442 done 13443 IFS=$as_save_IFS 13444 if test -z "$ac_cv_path_GREP"; then 13445 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13446 fi 13447 else 13448 ac_cv_path_GREP=$GREP 13449 fi 13450 13451 fi 13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13453 $as_echo "$ac_cv_path_GREP" >&6; } 13454 GREP="$ac_cv_path_GREP" 13455 13456 13457 else 13458 # The variable is set, but is it from the command line or the environment? 13459 13460 # Try to remove the string !GREP! from our list. 13461 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 13462 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13463 # If it failed, the variable was not from the command line. Ignore it, 13464 # but warn the user (except for BASH, which is always set by the calling BASH). 13465 if test "xGREP" != xBASH; then 13466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 13467 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 13468 fi 13469 # Try to locate tool using the code snippet 13470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 13471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 13472 if ${ac_cv_path_GREP+:} false; then : 13473 $as_echo_n "(cached) " >&6 13474 else 13475 if test -z "$GREP"; then 13476 ac_path_GREP_found=false 13477 # Loop through the user's path and test for each of PROGNAME-LIST 13478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13480 do 13481 IFS=$as_save_IFS 13482 test -z "$as_dir" && as_dir=. 13483 for ac_prog in grep ggrep; do 13484 for ac_exec_ext in '' $ac_executable_extensions; do 13485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 13486 as_fn_executable_p "$ac_path_GREP" || continue 13487 # Check for GNU ac_path_GREP and select it if it is found. 13488 # Check for GNU $ac_path_GREP 13489 case `"$ac_path_GREP" --version 2>&1` in 13490 *GNU*) 13491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 13492 *) 13493 ac_count=0 13494 $as_echo_n 0123456789 >"conftest.in" 13495 while : 13496 do 13497 cat "conftest.in" "conftest.in" >"conftest.tmp" 13498 mv "conftest.tmp" "conftest.in" 13499 cp "conftest.in" "conftest.nl" 13500 $as_echo 'GREP' >> "conftest.nl" 13501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13503 as_fn_arith $ac_count + 1 && ac_count=$as_val 13504 if test $ac_count -gt ${ac_path_GREP_max-0}; then 13505 # Best one so far, save it but keep looking for a better one 13506 ac_cv_path_GREP="$ac_path_GREP" 13507 ac_path_GREP_max=$ac_count 13508 fi 13509 # 10*(2^10) chars as input seems more than enough 13510 test $ac_count -gt 10 && break 13511 done 13512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13513 esac 13514 13515 $ac_path_GREP_found && break 3 13516 done 13517 done 13518 done 13519 IFS=$as_save_IFS 13520 if test -z "$ac_cv_path_GREP"; then 13521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13522 fi 13523 else 13524 ac_cv_path_GREP=$GREP 13525 fi 13526 13527 fi 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 13529 $as_echo "$ac_cv_path_GREP" >&6; } 13530 GREP="$ac_cv_path_GREP" 13531 13532 13533 else 13534 # If it succeeded, then it was overridden by the user. We will use it 13535 # for the tool. 13536 13537 # First remove it from the list of overridden variables, so we can test 13538 # for unknown variables in the end. 13539 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13540 13541 # Check if we try to supply an empty value 13542 if test "x$GREP" = x; then 13543 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GREP= (no value)" >&5 13544 $as_echo "$as_me: Setting user supplied tool GREP= (no value)" >&6;} 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13546 $as_echo_n "checking for GREP... " >&6; } 13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13548 $as_echo "disabled" >&6; } 13549 else 13550 # Check if the provided tool contains a complete path. 13551 tool_specified="$GREP" 13552 tool_basename="${tool_specified##*/}" 13553 if test "x$tool_basename" = "x$tool_specified"; then 13554 # A command without a complete path is provided, search $PATH. 13555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 13556 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 13557 # Extract the first word of "$tool_basename", so it can be a program name with args. 13558 set dummy $tool_basename; ac_word=$2 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13560 $as_echo_n "checking for $ac_word... " >&6; } 13561 if ${ac_cv_path_GREP+:} false; then : 13562 $as_echo_n "(cached) " >&6 13563 else 13564 case $GREP in 13565 [\\/]* | ?:[\\/]*) 13566 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 13567 ;; 13568 *) 13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13570 for as_dir in $PATH 13571 do 13572 IFS=$as_save_IFS 13573 test -z "$as_dir" && as_dir=. 13574 for ac_exec_ext in '' $ac_executable_extensions; do 13575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13576 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 13577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13578 break 2 13579 fi 13580 done 13581 done 13582 IFS=$as_save_IFS 13583 13584 ;; 13585 esac 13586 fi 13587 GREP=$ac_cv_path_GREP 13588 if test -n "$GREP"; then 13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 13590 $as_echo "$GREP" >&6; } 13591 else 13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13593 $as_echo "no" >&6; } 13594 fi 13595 13596 13597 if test "x$GREP" = x; then 13598 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13599 fi 13600 else 13601 # Otherwise we believe it is a complete path. Use it as it is. 13602 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 13603 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 13605 $as_echo_n "checking for GREP... " >&6; } 13606 if test ! -x "$tool_specified"; then 13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13608 $as_echo "not found" >&6; } 13609 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13610 fi 13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13612 $as_echo "$tool_specified" >&6; } 13613 fi 13614 fi 13615 fi 13616 13617 fi 13618 13619 13620 if test "x$GREP" = x; then 13621 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 13622 fi 13623 13624 13625 13626 13627 # Publish this variable in the help. 13628 13629 13630 if [ -z "${EGREP+x}" ]; then 13631 # The variable is not set by user, try to locate tool using the code snippet 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13633 $as_echo_n "checking for egrep... " >&6; } 13634 if ${ac_cv_path_EGREP+:} false; then : 13635 $as_echo_n "(cached) " >&6 13636 else 13637 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13638 then ac_cv_path_EGREP="$GREP -E" 13639 else 13640 if test -z "$EGREP"; then 13641 ac_path_EGREP_found=false 13642 # Loop through the user's path and test for each of PROGNAME-LIST 13643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13644 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13645 do 13646 IFS=$as_save_IFS 13647 test -z "$as_dir" && as_dir=. 13648 for ac_prog in egrep; do 13649 for ac_exec_ext in '' $ac_executable_extensions; do 13650 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13651 as_fn_executable_p "$ac_path_EGREP" || continue 13652 # Check for GNU ac_path_EGREP and select it if it is found. 13653 # Check for GNU $ac_path_EGREP 13654 case `"$ac_path_EGREP" --version 2>&1` in 13655 *GNU*) 13656 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13657 *) 13658 ac_count=0 13659 $as_echo_n 0123456789 >"conftest.in" 13660 while : 13661 do 13662 cat "conftest.in" "conftest.in" >"conftest.tmp" 13663 mv "conftest.tmp" "conftest.in" 13664 cp "conftest.in" "conftest.nl" 13665 $as_echo 'EGREP' >> "conftest.nl" 13666 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13667 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13668 as_fn_arith $ac_count + 1 && ac_count=$as_val 13669 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13670 # Best one so far, save it but keep looking for a better one 13671 ac_cv_path_EGREP="$ac_path_EGREP" 13672 ac_path_EGREP_max=$ac_count 13673 fi 13674 # 10*(2^10) chars as input seems more than enough 13675 test $ac_count -gt 10 && break 13676 done 13677 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13678 esac 13679 13680 $ac_path_EGREP_found && break 3 13681 done 13682 done 13683 done 13684 IFS=$as_save_IFS 13685 if test -z "$ac_cv_path_EGREP"; then 13686 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13687 fi 13688 else 13689 ac_cv_path_EGREP=$EGREP 13690 fi 13691 13692 fi 13693 fi 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13695 $as_echo "$ac_cv_path_EGREP" >&6; } 13696 EGREP="$ac_cv_path_EGREP" 13697 13698 13699 else 13700 # The variable is set, but is it from the command line or the environment? 13701 13702 # Try to remove the string !EGREP! from our list. 13703 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 13704 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13705 # If it failed, the variable was not from the command line. Ignore it, 13706 # but warn the user (except for BASH, which is always set by the calling BASH). 13707 if test "xEGREP" != xBASH; then 13708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 13709 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 13710 fi 13711 # Try to locate tool using the code snippet 13712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 13713 $as_echo_n "checking for egrep... " >&6; } 13714 if ${ac_cv_path_EGREP+:} false; then : 13715 $as_echo_n "(cached) " >&6 13716 else 13717 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 13718 then ac_cv_path_EGREP="$GREP -E" 13719 else 13720 if test -z "$EGREP"; then 13721 ac_path_EGREP_found=false 13722 # Loop through the user's path and test for each of PROGNAME-LIST 13723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13724 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13725 do 13726 IFS=$as_save_IFS 13727 test -z "$as_dir" && as_dir=. 13728 for ac_prog in egrep; do 13729 for ac_exec_ext in '' $ac_executable_extensions; do 13730 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 13731 as_fn_executable_p "$ac_path_EGREP" || continue 13732 # Check for GNU ac_path_EGREP and select it if it is found. 13733 # Check for GNU $ac_path_EGREP 13734 case `"$ac_path_EGREP" --version 2>&1` in 13735 *GNU*) 13736 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 13737 *) 13738 ac_count=0 13739 $as_echo_n 0123456789 >"conftest.in" 13740 while : 13741 do 13742 cat "conftest.in" "conftest.in" >"conftest.tmp" 13743 mv "conftest.tmp" "conftest.in" 13744 cp "conftest.in" "conftest.nl" 13745 $as_echo 'EGREP' >> "conftest.nl" 13746 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 13747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13748 as_fn_arith $ac_count + 1 && ac_count=$as_val 13749 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 13750 # Best one so far, save it but keep looking for a better one 13751 ac_cv_path_EGREP="$ac_path_EGREP" 13752 ac_path_EGREP_max=$ac_count 13753 fi 13754 # 10*(2^10) chars as input seems more than enough 13755 test $ac_count -gt 10 && break 13756 done 13757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13758 esac 13759 13760 $ac_path_EGREP_found && break 3 13761 done 13762 done 13763 done 13764 IFS=$as_save_IFS 13765 if test -z "$ac_cv_path_EGREP"; then 13766 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13767 fi 13768 else 13769 ac_cv_path_EGREP=$EGREP 13770 fi 13771 13772 fi 13773 fi 13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 13775 $as_echo "$ac_cv_path_EGREP" >&6; } 13776 EGREP="$ac_cv_path_EGREP" 13777 13778 13779 else 13780 # If it succeeded, then it was overridden by the user. We will use it 13781 # for the tool. 13782 13783 # First remove it from the list of overridden variables, so we can test 13784 # for unknown variables in the end. 13785 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13786 13787 # Check if we try to supply an empty value 13788 if test "x$EGREP" = x; then 13789 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool EGREP= (no value)" >&5 13790 $as_echo "$as_me: Setting user supplied tool EGREP= (no value)" >&6;} 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13792 $as_echo_n "checking for EGREP... " >&6; } 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 13794 $as_echo "disabled" >&6; } 13795 else 13796 # Check if the provided tool contains a complete path. 13797 tool_specified="$EGREP" 13798 tool_basename="${tool_specified##*/}" 13799 if test "x$tool_basename" = "x$tool_specified"; then 13800 # A command without a complete path is provided, search $PATH. 13801 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 13802 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 13803 # Extract the first word of "$tool_basename", so it can be a program name with args. 13804 set dummy $tool_basename; ac_word=$2 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13806 $as_echo_n "checking for $ac_word... " >&6; } 13807 if ${ac_cv_path_EGREP+:} false; then : 13808 $as_echo_n "(cached) " >&6 13809 else 13810 case $EGREP in 13811 [\\/]* | ?:[\\/]*) 13812 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 13813 ;; 13814 *) 13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13816 for as_dir in $PATH 13817 do 13818 IFS=$as_save_IFS 13819 test -z "$as_dir" && as_dir=. 13820 for ac_exec_ext in '' $ac_executable_extensions; do 13821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13822 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 13823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13824 break 2 13825 fi 13826 done 13827 done 13828 IFS=$as_save_IFS 13829 13830 ;; 13831 esac 13832 fi 13833 EGREP=$ac_cv_path_EGREP 13834 if test -n "$EGREP"; then 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 13836 $as_echo "$EGREP" >&6; } 13837 else 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13839 $as_echo "no" >&6; } 13840 fi 13841 13842 13843 if test "x$EGREP" = x; then 13844 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13845 fi 13846 else 13847 # Otherwise we believe it is a complete path. Use it as it is. 13848 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 13849 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 13851 $as_echo_n "checking for EGREP... " >&6; } 13852 if test ! -x "$tool_specified"; then 13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13854 $as_echo "not found" >&6; } 13855 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 13856 fi 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13858 $as_echo "$tool_specified" >&6; } 13859 fi 13860 fi 13861 fi 13862 13863 fi 13864 13865 13866 if test "x$EGREP" = x; then 13867 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 13868 fi 13869 13870 13871 13872 13873 # Publish this variable in the help. 13874 13875 13876 if [ -z "${FGREP+x}" ]; then 13877 # The variable is not set by user, try to locate tool using the code snippet 13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13879 $as_echo_n "checking for fgrep... " >&6; } 13880 if ${ac_cv_path_FGREP+:} false; then : 13881 $as_echo_n "(cached) " >&6 13882 else 13883 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13884 then ac_cv_path_FGREP="$GREP -F" 13885 else 13886 if test -z "$FGREP"; then 13887 ac_path_FGREP_found=false 13888 # Loop through the user's path and test for each of PROGNAME-LIST 13889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13891 do 13892 IFS=$as_save_IFS 13893 test -z "$as_dir" && as_dir=. 13894 for ac_prog in fgrep; do 13895 for ac_exec_ext in '' $ac_executable_extensions; do 13896 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13897 as_fn_executable_p "$ac_path_FGREP" || continue 13898 # Check for GNU ac_path_FGREP and select it if it is found. 13899 # Check for GNU $ac_path_FGREP 13900 case `"$ac_path_FGREP" --version 2>&1` in 13901 *GNU*) 13902 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13903 *) 13904 ac_count=0 13905 $as_echo_n 0123456789 >"conftest.in" 13906 while : 13907 do 13908 cat "conftest.in" "conftest.in" >"conftest.tmp" 13909 mv "conftest.tmp" "conftest.in" 13910 cp "conftest.in" "conftest.nl" 13911 $as_echo 'FGREP' >> "conftest.nl" 13912 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13914 as_fn_arith $ac_count + 1 && ac_count=$as_val 13915 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13916 # Best one so far, save it but keep looking for a better one 13917 ac_cv_path_FGREP="$ac_path_FGREP" 13918 ac_path_FGREP_max=$ac_count 13919 fi 13920 # 10*(2^10) chars as input seems more than enough 13921 test $ac_count -gt 10 && break 13922 done 13923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 13924 esac 13925 13926 $ac_path_FGREP_found && break 3 13927 done 13928 done 13929 done 13930 IFS=$as_save_IFS 13931 if test -z "$ac_cv_path_FGREP"; then 13932 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 13933 fi 13934 else 13935 ac_cv_path_FGREP=$FGREP 13936 fi 13937 13938 fi 13939 fi 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 13941 $as_echo "$ac_cv_path_FGREP" >&6; } 13942 FGREP="$ac_cv_path_FGREP" 13943 13944 13945 else 13946 # The variable is set, but is it from the command line or the environment? 13947 13948 # Try to remove the string !FGREP! from our list. 13949 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 13950 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13951 # If it failed, the variable was not from the command line. Ignore it, 13952 # but warn the user (except for BASH, which is always set by the calling BASH). 13953 if test "xFGREP" != xBASH; then 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 13955 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 13956 fi 13957 # Try to locate tool using the code snippet 13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 13959 $as_echo_n "checking for fgrep... " >&6; } 13960 if ${ac_cv_path_FGREP+:} false; then : 13961 $as_echo_n "(cached) " >&6 13962 else 13963 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 13964 then ac_cv_path_FGREP="$GREP -F" 13965 else 13966 if test -z "$FGREP"; then 13967 ac_path_FGREP_found=false 13968 # Loop through the user's path and test for each of PROGNAME-LIST 13969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13970 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 13971 do 13972 IFS=$as_save_IFS 13973 test -z "$as_dir" && as_dir=. 13974 for ac_prog in fgrep; do 13975 for ac_exec_ext in '' $ac_executable_extensions; do 13976 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 13977 as_fn_executable_p "$ac_path_FGREP" || continue 13978 # Check for GNU ac_path_FGREP and select it if it is found. 13979 # Check for GNU $ac_path_FGREP 13980 case `"$ac_path_FGREP" --version 2>&1` in 13981 *GNU*) 13982 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 13983 *) 13984 ac_count=0 13985 $as_echo_n 0123456789 >"conftest.in" 13986 while : 13987 do 13988 cat "conftest.in" "conftest.in" >"conftest.tmp" 13989 mv "conftest.tmp" "conftest.in" 13990 cp "conftest.in" "conftest.nl" 13991 $as_echo 'FGREP' >> "conftest.nl" 13992 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 13993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 13994 as_fn_arith $ac_count + 1 && ac_count=$as_val 13995 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 13996 # Best one so far, save it but keep looking for a better one 13997 ac_cv_path_FGREP="$ac_path_FGREP" 13998 ac_path_FGREP_max=$ac_count 13999 fi 14000 # 10*(2^10) chars as input seems more than enough 14001 test $ac_count -gt 10 && break 14002 done 14003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14004 esac 14005 14006 $ac_path_FGREP_found && break 3 14007 done 14008 done 14009 done 14010 IFS=$as_save_IFS 14011 if test -z "$ac_cv_path_FGREP"; then 14012 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 14013 fi 14014 else 14015 ac_cv_path_FGREP=$FGREP 14016 fi 14017 14018 fi 14019 fi 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 14021 $as_echo "$ac_cv_path_FGREP" >&6; } 14022 FGREP="$ac_cv_path_FGREP" 14023 14024 14025 else 14026 # If it succeeded, then it was overridden by the user. We will use it 14027 # for the tool. 14028 14029 # First remove it from the list of overridden variables, so we can test 14030 # for unknown variables in the end. 14031 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14032 14033 # Check if we try to supply an empty value 14034 if test "x$FGREP" = x; then 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FGREP= (no value)" >&5 14036 $as_echo "$as_me: Setting user supplied tool FGREP= (no value)" >&6;} 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14038 $as_echo_n "checking for FGREP... " >&6; } 14039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14040 $as_echo "disabled" >&6; } 14041 else 14042 # Check if the provided tool contains a complete path. 14043 tool_specified="$FGREP" 14044 tool_basename="${tool_specified##*/}" 14045 if test "x$tool_basename" = "x$tool_specified"; then 14046 # A command without a complete path is provided, search $PATH. 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 14048 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 14049 # Extract the first word of "$tool_basename", so it can be a program name with args. 14050 set dummy $tool_basename; ac_word=$2 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14052 $as_echo_n "checking for $ac_word... " >&6; } 14053 if ${ac_cv_path_FGREP+:} false; then : 14054 $as_echo_n "(cached) " >&6 14055 else 14056 case $FGREP in 14057 [\\/]* | ?:[\\/]*) 14058 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 14059 ;; 14060 *) 14061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14062 for as_dir in $PATH 14063 do 14064 IFS=$as_save_IFS 14065 test -z "$as_dir" && as_dir=. 14066 for ac_exec_ext in '' $ac_executable_extensions; do 14067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14068 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 14069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14070 break 2 14071 fi 14072 done 14073 done 14074 IFS=$as_save_IFS 14075 14076 ;; 14077 esac 14078 fi 14079 FGREP=$ac_cv_path_FGREP 14080 if test -n "$FGREP"; then 14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 14082 $as_echo "$FGREP" >&6; } 14083 else 14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14085 $as_echo "no" >&6; } 14086 fi 14087 14088 14089 if test "x$FGREP" = x; then 14090 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14091 fi 14092 else 14093 # Otherwise we believe it is a complete path. Use it as it is. 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 14095 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 14097 $as_echo_n "checking for FGREP... " >&6; } 14098 if test ! -x "$tool_specified"; then 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14100 $as_echo "not found" >&6; } 14101 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 14102 fi 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14104 $as_echo "$tool_specified" >&6; } 14105 fi 14106 fi 14107 fi 14108 14109 fi 14110 14111 14112 if test "x$FGREP" = x; then 14113 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 14114 fi 14115 14116 14117 14118 14119 # Publish this variable in the help. 14120 14121 14122 if [ -z "${SED+x}" ]; then 14123 # The variable is not set by user, try to locate tool using the code snippet 14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14125 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14126 if ${ac_cv_path_SED+:} false; then : 14127 $as_echo_n "(cached) " >&6 14128 else 14129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14130 for ac_i in 1 2 3 4 5 6 7; do 14131 ac_script="$ac_script$as_nl$ac_script" 14132 done 14133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14134 { ac_script=; unset ac_script;} 14135 if test -z "$SED"; then 14136 ac_path_SED_found=false 14137 # Loop through the user's path and test for each of PROGNAME-LIST 14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14139 for as_dir in $PATH 14140 do 14141 IFS=$as_save_IFS 14142 test -z "$as_dir" && as_dir=. 14143 for ac_prog in sed gsed; do 14144 for ac_exec_ext in '' $ac_executable_extensions; do 14145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14146 as_fn_executable_p "$ac_path_SED" || continue 14147 # Check for GNU ac_path_SED and select it if it is found. 14148 # Check for GNU $ac_path_SED 14149 case `"$ac_path_SED" --version 2>&1` in 14150 *GNU*) 14151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14152 *) 14153 ac_count=0 14154 $as_echo_n 0123456789 >"conftest.in" 14155 while : 14156 do 14157 cat "conftest.in" "conftest.in" >"conftest.tmp" 14158 mv "conftest.tmp" "conftest.in" 14159 cp "conftest.in" "conftest.nl" 14160 $as_echo '' >> "conftest.nl" 14161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14163 as_fn_arith $ac_count + 1 && ac_count=$as_val 14164 if test $ac_count -gt ${ac_path_SED_max-0}; then 14165 # Best one so far, save it but keep looking for a better one 14166 ac_cv_path_SED="$ac_path_SED" 14167 ac_path_SED_max=$ac_count 14168 fi 14169 # 10*(2^10) chars as input seems more than enough 14170 test $ac_count -gt 10 && break 14171 done 14172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14173 esac 14174 14175 $ac_path_SED_found && break 3 14176 done 14177 done 14178 done 14179 IFS=$as_save_IFS 14180 if test -z "$ac_cv_path_SED"; then 14181 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14182 fi 14183 else 14184 ac_cv_path_SED=$SED 14185 fi 14186 14187 fi 14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14189 $as_echo "$ac_cv_path_SED" >&6; } 14190 SED="$ac_cv_path_SED" 14191 rm -f conftest.sed 14192 14193 else 14194 # The variable is set, but is it from the command line or the environment? 14195 14196 # Try to remove the string !SED! from our list. 14197 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 14198 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14199 # If it failed, the variable was not from the command line. Ignore it, 14200 # but warn the user (except for BASH, which is always set by the calling BASH). 14201 if test "xSED" != xBASH; then 14202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 14203 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 14204 fi 14205 # Try to locate tool using the code snippet 14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 14207 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 14208 if ${ac_cv_path_SED+:} false; then : 14209 $as_echo_n "(cached) " >&6 14210 else 14211 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 14212 for ac_i in 1 2 3 4 5 6 7; do 14213 ac_script="$ac_script$as_nl$ac_script" 14214 done 14215 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 14216 { ac_script=; unset ac_script;} 14217 if test -z "$SED"; then 14218 ac_path_SED_found=false 14219 # Loop through the user's path and test for each of PROGNAME-LIST 14220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14221 for as_dir in $PATH 14222 do 14223 IFS=$as_save_IFS 14224 test -z "$as_dir" && as_dir=. 14225 for ac_prog in sed gsed; do 14226 for ac_exec_ext in '' $ac_executable_extensions; do 14227 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 14228 as_fn_executable_p "$ac_path_SED" || continue 14229 # Check for GNU ac_path_SED and select it if it is found. 14230 # Check for GNU $ac_path_SED 14231 case `"$ac_path_SED" --version 2>&1` in 14232 *GNU*) 14233 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 14234 *) 14235 ac_count=0 14236 $as_echo_n 0123456789 >"conftest.in" 14237 while : 14238 do 14239 cat "conftest.in" "conftest.in" >"conftest.tmp" 14240 mv "conftest.tmp" "conftest.in" 14241 cp "conftest.in" "conftest.nl" 14242 $as_echo '' >> "conftest.nl" 14243 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 14244 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 14245 as_fn_arith $ac_count + 1 && ac_count=$as_val 14246 if test $ac_count -gt ${ac_path_SED_max-0}; then 14247 # Best one so far, save it but keep looking for a better one 14248 ac_cv_path_SED="$ac_path_SED" 14249 ac_path_SED_max=$ac_count 14250 fi 14251 # 10*(2^10) chars as input seems more than enough 14252 test $ac_count -gt 10 && break 14253 done 14254 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 14255 esac 14256 14257 $ac_path_SED_found && break 3 14258 done 14259 done 14260 done 14261 IFS=$as_save_IFS 14262 if test -z "$ac_cv_path_SED"; then 14263 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 14264 fi 14265 else 14266 ac_cv_path_SED=$SED 14267 fi 14268 14269 fi 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 14271 $as_echo "$ac_cv_path_SED" >&6; } 14272 SED="$ac_cv_path_SED" 14273 rm -f conftest.sed 14274 14275 else 14276 # If it succeeded, then it was overridden by the user. We will use it 14277 # for the tool. 14278 14279 # First remove it from the list of overridden variables, so we can test 14280 # for unknown variables in the end. 14281 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14282 14283 # Check if we try to supply an empty value 14284 if test "x$SED" = x; then 14285 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SED= (no value)" >&5 14286 $as_echo "$as_me: Setting user supplied tool SED= (no value)" >&6;} 14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14288 $as_echo_n "checking for SED... " >&6; } 14289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14290 $as_echo "disabled" >&6; } 14291 else 14292 # Check if the provided tool contains a complete path. 14293 tool_specified="$SED" 14294 tool_basename="${tool_specified##*/}" 14295 if test "x$tool_basename" = "x$tool_specified"; then 14296 # A command without a complete path is provided, search $PATH. 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 14298 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 14299 # Extract the first word of "$tool_basename", so it can be a program name with args. 14300 set dummy $tool_basename; ac_word=$2 14301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14302 $as_echo_n "checking for $ac_word... " >&6; } 14303 if ${ac_cv_path_SED+:} false; then : 14304 $as_echo_n "(cached) " >&6 14305 else 14306 case $SED in 14307 [\\/]* | ?:[\\/]*) 14308 ac_cv_path_SED="$SED" # Let the user override the test with a path. 14309 ;; 14310 *) 14311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14312 for as_dir in $PATH 14313 do 14314 IFS=$as_save_IFS 14315 test -z "$as_dir" && as_dir=. 14316 for ac_exec_ext in '' $ac_executable_extensions; do 14317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14318 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 14319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14320 break 2 14321 fi 14322 done 14323 done 14324 IFS=$as_save_IFS 14325 14326 ;; 14327 esac 14328 fi 14329 SED=$ac_cv_path_SED 14330 if test -n "$SED"; then 14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 14332 $as_echo "$SED" >&6; } 14333 else 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14335 $as_echo "no" >&6; } 14336 fi 14337 14338 14339 if test "x$SED" = x; then 14340 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14341 fi 14342 else 14343 # Otherwise we believe it is a complete path. Use it as it is. 14344 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 14345 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 14347 $as_echo_n "checking for SED... " >&6; } 14348 if test ! -x "$tool_specified"; then 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14350 $as_echo "not found" >&6; } 14351 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 14352 fi 14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14354 $as_echo "$tool_specified" >&6; } 14355 fi 14356 fi 14357 fi 14358 14359 fi 14360 14361 14362 if test "x$SED" = x; then 14363 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 14364 fi 14365 14366 14367 14368 # Always force rm. 14369 RM="$RM -f" 14370 14371 # pwd behaves differently on various platforms and some don't support the -L flag. 14372 # Always use the bash builtin pwd to get uniform behavior. 14373 THEPWDCMD=pwd 14374 14375 # These are not required on all platforms 14376 14377 14378 # Publish this variable in the help. 14379 14380 14381 if [ -z "${CYGPATH+x}" ]; then 14382 # The variable is not set by user, try to locate tool using the code snippet 14383 for ac_prog in cygpath 14384 do 14385 # Extract the first word of "$ac_prog", so it can be a program name with args. 14386 set dummy $ac_prog; ac_word=$2 14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14388 $as_echo_n "checking for $ac_word... " >&6; } 14389 if ${ac_cv_path_CYGPATH+:} false; then : 14390 $as_echo_n "(cached) " >&6 14391 else 14392 case $CYGPATH in 14393 [\\/]* | ?:[\\/]*) 14394 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14395 ;; 14396 *) 14397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14398 for as_dir in $PATH 14399 do 14400 IFS=$as_save_IFS 14401 test -z "$as_dir" && as_dir=. 14402 for ac_exec_ext in '' $ac_executable_extensions; do 14403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14404 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14406 break 2 14407 fi 14408 done 14409 done 14410 IFS=$as_save_IFS 14411 14412 ;; 14413 esac 14414 fi 14415 CYGPATH=$ac_cv_path_CYGPATH 14416 if test -n "$CYGPATH"; then 14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14418 $as_echo "$CYGPATH" >&6; } 14419 else 14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14421 $as_echo "no" >&6; } 14422 fi 14423 14424 14425 test -n "$CYGPATH" && break 14426 done 14427 14428 else 14429 # The variable is set, but is it from the command line or the environment? 14430 14431 # Try to remove the string !CYGPATH! from our list. 14432 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 14433 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14434 # If it failed, the variable was not from the command line. Ignore it, 14435 # but warn the user (except for BASH, which is always set by the calling BASH). 14436 if test "xCYGPATH" != xBASH; then 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 14438 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 14439 fi 14440 # Try to locate tool using the code snippet 14441 for ac_prog in cygpath 14442 do 14443 # Extract the first word of "$ac_prog", so it can be a program name with args. 14444 set dummy $ac_prog; ac_word=$2 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14446 $as_echo_n "checking for $ac_word... " >&6; } 14447 if ${ac_cv_path_CYGPATH+:} false; then : 14448 $as_echo_n "(cached) " >&6 14449 else 14450 case $CYGPATH in 14451 [\\/]* | ?:[\\/]*) 14452 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14453 ;; 14454 *) 14455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14456 for as_dir in $PATH 14457 do 14458 IFS=$as_save_IFS 14459 test -z "$as_dir" && as_dir=. 14460 for ac_exec_ext in '' $ac_executable_extensions; do 14461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14462 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14464 break 2 14465 fi 14466 done 14467 done 14468 IFS=$as_save_IFS 14469 14470 ;; 14471 esac 14472 fi 14473 CYGPATH=$ac_cv_path_CYGPATH 14474 if test -n "$CYGPATH"; then 14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14476 $as_echo "$CYGPATH" >&6; } 14477 else 14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14479 $as_echo "no" >&6; } 14480 fi 14481 14482 14483 test -n "$CYGPATH" && break 14484 done 14485 14486 else 14487 # If it succeeded, then it was overridden by the user. We will use it 14488 # for the tool. 14489 14490 # First remove it from the list of overridden variables, so we can test 14491 # for unknown variables in the end. 14492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14493 14494 # Check if we try to supply an empty value 14495 if test "x$CYGPATH" = x; then 14496 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CYGPATH= (no value)" >&5 14497 $as_echo "$as_me: Setting user supplied tool CYGPATH= (no value)" >&6;} 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14499 $as_echo_n "checking for CYGPATH... " >&6; } 14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14501 $as_echo "disabled" >&6; } 14502 else 14503 # Check if the provided tool contains a complete path. 14504 tool_specified="$CYGPATH" 14505 tool_basename="${tool_specified##*/}" 14506 if test "x$tool_basename" = "x$tool_specified"; then 14507 # A command without a complete path is provided, search $PATH. 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 14509 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 14510 # Extract the first word of "$tool_basename", so it can be a program name with args. 14511 set dummy $tool_basename; ac_word=$2 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14513 $as_echo_n "checking for $ac_word... " >&6; } 14514 if ${ac_cv_path_CYGPATH+:} false; then : 14515 $as_echo_n "(cached) " >&6 14516 else 14517 case $CYGPATH in 14518 [\\/]* | ?:[\\/]*) 14519 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 14520 ;; 14521 *) 14522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14523 for as_dir in $PATH 14524 do 14525 IFS=$as_save_IFS 14526 test -z "$as_dir" && as_dir=. 14527 for ac_exec_ext in '' $ac_executable_extensions; do 14528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14529 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 14530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14531 break 2 14532 fi 14533 done 14534 done 14535 IFS=$as_save_IFS 14536 14537 ;; 14538 esac 14539 fi 14540 CYGPATH=$ac_cv_path_CYGPATH 14541 if test -n "$CYGPATH"; then 14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 14543 $as_echo "$CYGPATH" >&6; } 14544 else 14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14546 $as_echo "no" >&6; } 14547 fi 14548 14549 14550 if test "x$CYGPATH" = x; then 14551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14552 fi 14553 else 14554 # Otherwise we believe it is a complete path. Use it as it is. 14555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 14556 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 14557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 14558 $as_echo_n "checking for CYGPATH... " >&6; } 14559 if test ! -x "$tool_specified"; then 14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14561 $as_echo "not found" >&6; } 14562 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 14563 fi 14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14565 $as_echo "$tool_specified" >&6; } 14566 fi 14567 fi 14568 fi 14569 14570 fi 14571 14572 14573 14574 14575 # Publish this variable in the help. 14576 14577 14578 if [ -z "${READLINK+x}" ]; then 14579 # The variable is not set by user, try to locate tool using the code snippet 14580 for ac_prog in greadlink readlink 14581 do 14582 # Extract the first word of "$ac_prog", so it can be a program name with args. 14583 set dummy $ac_prog; ac_word=$2 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14585 $as_echo_n "checking for $ac_word... " >&6; } 14586 if ${ac_cv_path_READLINK+:} false; then : 14587 $as_echo_n "(cached) " >&6 14588 else 14589 case $READLINK in 14590 [\\/]* | ?:[\\/]*) 14591 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14592 ;; 14593 *) 14594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14595 for as_dir in $PATH 14596 do 14597 IFS=$as_save_IFS 14598 test -z "$as_dir" && as_dir=. 14599 for ac_exec_ext in '' $ac_executable_extensions; do 14600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14601 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14603 break 2 14604 fi 14605 done 14606 done 14607 IFS=$as_save_IFS 14608 14609 ;; 14610 esac 14611 fi 14612 READLINK=$ac_cv_path_READLINK 14613 if test -n "$READLINK"; then 14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14615 $as_echo "$READLINK" >&6; } 14616 else 14617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14618 $as_echo "no" >&6; } 14619 fi 14620 14621 14622 test -n "$READLINK" && break 14623 done 14624 14625 else 14626 # The variable is set, but is it from the command line or the environment? 14627 14628 # Try to remove the string !READLINK! from our list. 14629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 14630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14631 # If it failed, the variable was not from the command line. Ignore it, 14632 # but warn the user (except for BASH, which is always set by the calling BASH). 14633 if test "xREADLINK" != xBASH; then 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 14635 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 14636 fi 14637 # Try to locate tool using the code snippet 14638 for ac_prog in greadlink readlink 14639 do 14640 # Extract the first word of "$ac_prog", so it can be a program name with args. 14641 set dummy $ac_prog; ac_word=$2 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14643 $as_echo_n "checking for $ac_word... " >&6; } 14644 if ${ac_cv_path_READLINK+:} false; then : 14645 $as_echo_n "(cached) " >&6 14646 else 14647 case $READLINK in 14648 [\\/]* | ?:[\\/]*) 14649 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14650 ;; 14651 *) 14652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14653 for as_dir in $PATH 14654 do 14655 IFS=$as_save_IFS 14656 test -z "$as_dir" && as_dir=. 14657 for ac_exec_ext in '' $ac_executable_extensions; do 14658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14659 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14661 break 2 14662 fi 14663 done 14664 done 14665 IFS=$as_save_IFS 14666 14667 ;; 14668 esac 14669 fi 14670 READLINK=$ac_cv_path_READLINK 14671 if test -n "$READLINK"; then 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14673 $as_echo "$READLINK" >&6; } 14674 else 14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14676 $as_echo "no" >&6; } 14677 fi 14678 14679 14680 test -n "$READLINK" && break 14681 done 14682 14683 else 14684 # If it succeeded, then it was overridden by the user. We will use it 14685 # for the tool. 14686 14687 # First remove it from the list of overridden variables, so we can test 14688 # for unknown variables in the end. 14689 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14690 14691 # Check if we try to supply an empty value 14692 if test "x$READLINK" = x; then 14693 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READLINK= (no value)" >&5 14694 $as_echo "$as_me: Setting user supplied tool READLINK= (no value)" >&6;} 14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14696 $as_echo_n "checking for READLINK... " >&6; } 14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14698 $as_echo "disabled" >&6; } 14699 else 14700 # Check if the provided tool contains a complete path. 14701 tool_specified="$READLINK" 14702 tool_basename="${tool_specified##*/}" 14703 if test "x$tool_basename" = "x$tool_specified"; then 14704 # A command without a complete path is provided, search $PATH. 14705 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 14706 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 14707 # Extract the first word of "$tool_basename", so it can be a program name with args. 14708 set dummy $tool_basename; ac_word=$2 14709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14710 $as_echo_n "checking for $ac_word... " >&6; } 14711 if ${ac_cv_path_READLINK+:} false; then : 14712 $as_echo_n "(cached) " >&6 14713 else 14714 case $READLINK in 14715 [\\/]* | ?:[\\/]*) 14716 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 14717 ;; 14718 *) 14719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14720 for as_dir in $PATH 14721 do 14722 IFS=$as_save_IFS 14723 test -z "$as_dir" && as_dir=. 14724 for ac_exec_ext in '' $ac_executable_extensions; do 14725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14726 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 14727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14728 break 2 14729 fi 14730 done 14731 done 14732 IFS=$as_save_IFS 14733 14734 ;; 14735 esac 14736 fi 14737 READLINK=$ac_cv_path_READLINK 14738 if test -n "$READLINK"; then 14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 14740 $as_echo "$READLINK" >&6; } 14741 else 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14743 $as_echo "no" >&6; } 14744 fi 14745 14746 14747 if test "x$READLINK" = x; then 14748 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14749 fi 14750 else 14751 # Otherwise we believe it is a complete path. Use it as it is. 14752 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 14753 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 14754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 14755 $as_echo_n "checking for READLINK... " >&6; } 14756 if test ! -x "$tool_specified"; then 14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14758 $as_echo "not found" >&6; } 14759 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 14760 fi 14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14762 $as_echo "$tool_specified" >&6; } 14763 fi 14764 fi 14765 fi 14766 14767 fi 14768 14769 14770 14771 14772 # Publish this variable in the help. 14773 14774 14775 if [ -z "${DF+x}" ]; then 14776 # The variable is not set by user, try to locate tool using the code snippet 14777 for ac_prog in df 14778 do 14779 # Extract the first word of "$ac_prog", so it can be a program name with args. 14780 set dummy $ac_prog; ac_word=$2 14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14782 $as_echo_n "checking for $ac_word... " >&6; } 14783 if ${ac_cv_path_DF+:} false; then : 14784 $as_echo_n "(cached) " >&6 14785 else 14786 case $DF in 14787 [\\/]* | ?:[\\/]*) 14788 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14789 ;; 14790 *) 14791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14792 for as_dir in $PATH 14793 do 14794 IFS=$as_save_IFS 14795 test -z "$as_dir" && as_dir=. 14796 for ac_exec_ext in '' $ac_executable_extensions; do 14797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14798 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14800 break 2 14801 fi 14802 done 14803 done 14804 IFS=$as_save_IFS 14805 14806 ;; 14807 esac 14808 fi 14809 DF=$ac_cv_path_DF 14810 if test -n "$DF"; then 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14812 $as_echo "$DF" >&6; } 14813 else 14814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14815 $as_echo "no" >&6; } 14816 fi 14817 14818 14819 test -n "$DF" && break 14820 done 14821 14822 else 14823 # The variable is set, but is it from the command line or the environment? 14824 14825 # Try to remove the string !DF! from our list. 14826 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 14827 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 14828 # If it failed, the variable was not from the command line. Ignore it, 14829 # but warn the user (except for BASH, which is always set by the calling BASH). 14830 if test "xDF" != xBASH; then 14831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 14832 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 14833 fi 14834 # Try to locate tool using the code snippet 14835 for ac_prog in df 14836 do 14837 # Extract the first word of "$ac_prog", so it can be a program name with args. 14838 set dummy $ac_prog; ac_word=$2 14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14840 $as_echo_n "checking for $ac_word... " >&6; } 14841 if ${ac_cv_path_DF+:} false; then : 14842 $as_echo_n "(cached) " >&6 14843 else 14844 case $DF in 14845 [\\/]* | ?:[\\/]*) 14846 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14847 ;; 14848 *) 14849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14850 for as_dir in $PATH 14851 do 14852 IFS=$as_save_IFS 14853 test -z "$as_dir" && as_dir=. 14854 for ac_exec_ext in '' $ac_executable_extensions; do 14855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14856 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14858 break 2 14859 fi 14860 done 14861 done 14862 IFS=$as_save_IFS 14863 14864 ;; 14865 esac 14866 fi 14867 DF=$ac_cv_path_DF 14868 if test -n "$DF"; then 14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14870 $as_echo "$DF" >&6; } 14871 else 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14873 $as_echo "no" >&6; } 14874 fi 14875 14876 14877 test -n "$DF" && break 14878 done 14879 14880 else 14881 # If it succeeded, then it was overridden by the user. We will use it 14882 # for the tool. 14883 14884 # First remove it from the list of overridden variables, so we can test 14885 # for unknown variables in the end. 14886 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 14887 14888 # Check if we try to supply an empty value 14889 if test "x$DF" = x; then 14890 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DF= (no value)" >&5 14891 $as_echo "$as_me: Setting user supplied tool DF= (no value)" >&6;} 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14893 $as_echo_n "checking for DF... " >&6; } 14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 14895 $as_echo "disabled" >&6; } 14896 else 14897 # Check if the provided tool contains a complete path. 14898 tool_specified="$DF" 14899 tool_basename="${tool_specified##*/}" 14900 if test "x$tool_basename" = "x$tool_specified"; then 14901 # A command without a complete path is provided, search $PATH. 14902 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 14903 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 14904 # Extract the first word of "$tool_basename", so it can be a program name with args. 14905 set dummy $tool_basename; ac_word=$2 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14907 $as_echo_n "checking for $ac_word... " >&6; } 14908 if ${ac_cv_path_DF+:} false; then : 14909 $as_echo_n "(cached) " >&6 14910 else 14911 case $DF in 14912 [\\/]* | ?:[\\/]*) 14913 ac_cv_path_DF="$DF" # Let the user override the test with a path. 14914 ;; 14915 *) 14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14917 for as_dir in $PATH 14918 do 14919 IFS=$as_save_IFS 14920 test -z "$as_dir" && as_dir=. 14921 for ac_exec_ext in '' $ac_executable_extensions; do 14922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14923 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 14924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14925 break 2 14926 fi 14927 done 14928 done 14929 IFS=$as_save_IFS 14930 14931 ;; 14932 esac 14933 fi 14934 DF=$ac_cv_path_DF 14935 if test -n "$DF"; then 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 14937 $as_echo "$DF" >&6; } 14938 else 14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14940 $as_echo "no" >&6; } 14941 fi 14942 14943 14944 if test "x$DF" = x; then 14945 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 14946 fi 14947 else 14948 # Otherwise we believe it is a complete path. Use it as it is. 14949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 14950 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 14952 $as_echo_n "checking for DF... " >&6; } 14953 if test ! -x "$tool_specified"; then 14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14955 $as_echo "not found" >&6; } 14956 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 14957 fi 14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 14959 $as_echo "$tool_specified" >&6; } 14960 fi 14961 fi 14962 fi 14963 14964 fi 14965 14966 14967 14968 14969 # Publish this variable in the help. 14970 14971 14972 if [ -z "${CPIO+x}" ]; then 14973 # The variable is not set by user, try to locate tool using the code snippet 14974 for ac_prog in cpio bsdcpio 14975 do 14976 # Extract the first word of "$ac_prog", so it can be a program name with args. 14977 set dummy $ac_prog; ac_word=$2 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14979 $as_echo_n "checking for $ac_word... " >&6; } 14980 if ${ac_cv_path_CPIO+:} false; then : 14981 $as_echo_n "(cached) " >&6 14982 else 14983 case $CPIO in 14984 [\\/]* | ?:[\\/]*) 14985 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 14986 ;; 14987 *) 14988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14989 for as_dir in $PATH 14990 do 14991 IFS=$as_save_IFS 14992 test -z "$as_dir" && as_dir=. 14993 for ac_exec_ext in '' $ac_executable_extensions; do 14994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14995 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 14996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14997 break 2 14998 fi 14999 done 15000 done 15001 IFS=$as_save_IFS 15002 15003 ;; 15004 esac 15005 fi 15006 CPIO=$ac_cv_path_CPIO 15007 if test -n "$CPIO"; then 15008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15009 $as_echo "$CPIO" >&6; } 15010 else 15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15012 $as_echo "no" >&6; } 15013 fi 15014 15015 15016 test -n "$CPIO" && break 15017 done 15018 15019 else 15020 # The variable is set, but is it from the command line or the environment? 15021 15022 # Try to remove the string !CPIO! from our list. 15023 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 15024 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15025 # If it failed, the variable was not from the command line. Ignore it, 15026 # but warn the user (except for BASH, which is always set by the calling BASH). 15027 if test "xCPIO" != xBASH; then 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 15029 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 15030 fi 15031 # Try to locate tool using the code snippet 15032 for ac_prog in cpio bsdcpio 15033 do 15034 # Extract the first word of "$ac_prog", so it can be a program name with args. 15035 set dummy $ac_prog; ac_word=$2 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15037 $as_echo_n "checking for $ac_word... " >&6; } 15038 if ${ac_cv_path_CPIO+:} false; then : 15039 $as_echo_n "(cached) " >&6 15040 else 15041 case $CPIO in 15042 [\\/]* | ?:[\\/]*) 15043 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15044 ;; 15045 *) 15046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15047 for as_dir in $PATH 15048 do 15049 IFS=$as_save_IFS 15050 test -z "$as_dir" && as_dir=. 15051 for ac_exec_ext in '' $ac_executable_extensions; do 15052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15053 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15055 break 2 15056 fi 15057 done 15058 done 15059 IFS=$as_save_IFS 15060 15061 ;; 15062 esac 15063 fi 15064 CPIO=$ac_cv_path_CPIO 15065 if test -n "$CPIO"; then 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15067 $as_echo "$CPIO" >&6; } 15068 else 15069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15070 $as_echo "no" >&6; } 15071 fi 15072 15073 15074 test -n "$CPIO" && break 15075 done 15076 15077 else 15078 # If it succeeded, then it was overridden by the user. We will use it 15079 # for the tool. 15080 15081 # First remove it from the list of overridden variables, so we can test 15082 # for unknown variables in the end. 15083 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15084 15085 # Check if we try to supply an empty value 15086 if test "x$CPIO" = x; then 15087 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CPIO= (no value)" >&5 15088 $as_echo "$as_me: Setting user supplied tool CPIO= (no value)" >&6;} 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15090 $as_echo_n "checking for CPIO... " >&6; } 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15092 $as_echo "disabled" >&6; } 15093 else 15094 # Check if the provided tool contains a complete path. 15095 tool_specified="$CPIO" 15096 tool_basename="${tool_specified##*/}" 15097 if test "x$tool_basename" = "x$tool_specified"; then 15098 # A command without a complete path is provided, search $PATH. 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 15100 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 15101 # Extract the first word of "$tool_basename", so it can be a program name with args. 15102 set dummy $tool_basename; ac_word=$2 15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15104 $as_echo_n "checking for $ac_word... " >&6; } 15105 if ${ac_cv_path_CPIO+:} false; then : 15106 $as_echo_n "(cached) " >&6 15107 else 15108 case $CPIO in 15109 [\\/]* | ?:[\\/]*) 15110 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 15111 ;; 15112 *) 15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15114 for as_dir in $PATH 15115 do 15116 IFS=$as_save_IFS 15117 test -z "$as_dir" && as_dir=. 15118 for ac_exec_ext in '' $ac_executable_extensions; do 15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15120 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15122 break 2 15123 fi 15124 done 15125 done 15126 IFS=$as_save_IFS 15127 15128 ;; 15129 esac 15130 fi 15131 CPIO=$ac_cv_path_CPIO 15132 if test -n "$CPIO"; then 15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 15134 $as_echo "$CPIO" >&6; } 15135 else 15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15137 $as_echo "no" >&6; } 15138 fi 15139 15140 15141 if test "x$CPIO" = x; then 15142 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15143 fi 15144 else 15145 # Otherwise we believe it is a complete path. Use it as it is. 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 15147 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 15149 $as_echo_n "checking for CPIO... " >&6; } 15150 if test ! -x "$tool_specified"; then 15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15152 $as_echo "not found" >&6; } 15153 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 15154 fi 15155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15156 $as_echo "$tool_specified" >&6; } 15157 fi 15158 fi 15159 fi 15160 15161 fi 15162 15163 15164 15165 15166 # Publish this variable in the help. 15167 15168 15169 if [ -z "${NICE+x}" ]; then 15170 # The variable is not set by user, try to locate tool using the code snippet 15171 for ac_prog in nice 15172 do 15173 # Extract the first word of "$ac_prog", so it can be a program name with args. 15174 set dummy $ac_prog; ac_word=$2 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15176 $as_echo_n "checking for $ac_word... " >&6; } 15177 if ${ac_cv_path_NICE+:} false; then : 15178 $as_echo_n "(cached) " >&6 15179 else 15180 case $NICE in 15181 [\\/]* | ?:[\\/]*) 15182 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15183 ;; 15184 *) 15185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15186 for as_dir in $PATH 15187 do 15188 IFS=$as_save_IFS 15189 test -z "$as_dir" && as_dir=. 15190 for ac_exec_ext in '' $ac_executable_extensions; do 15191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15192 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15194 break 2 15195 fi 15196 done 15197 done 15198 IFS=$as_save_IFS 15199 15200 ;; 15201 esac 15202 fi 15203 NICE=$ac_cv_path_NICE 15204 if test -n "$NICE"; then 15205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15206 $as_echo "$NICE" >&6; } 15207 else 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15209 $as_echo "no" >&6; } 15210 fi 15211 15212 15213 test -n "$NICE" && break 15214 done 15215 15216 else 15217 # The variable is set, but is it from the command line or the environment? 15218 15219 # Try to remove the string !NICE! from our list. 15220 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NICE!/} 15221 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15222 # If it failed, the variable was not from the command line. Ignore it, 15223 # but warn the user (except for BASH, which is always set by the calling BASH). 15224 if test "xNICE" != xBASH; then 15225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&5 15226 $as_echo "$as_me: WARNING: Ignoring value of NICE from the environment. Use command line variables instead." >&2;} 15227 fi 15228 # Try to locate tool using the code snippet 15229 for ac_prog in nice 15230 do 15231 # Extract the first word of "$ac_prog", so it can be a program name with args. 15232 set dummy $ac_prog; ac_word=$2 15233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15234 $as_echo_n "checking for $ac_word... " >&6; } 15235 if ${ac_cv_path_NICE+:} false; then : 15236 $as_echo_n "(cached) " >&6 15237 else 15238 case $NICE in 15239 [\\/]* | ?:[\\/]*) 15240 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15241 ;; 15242 *) 15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15244 for as_dir in $PATH 15245 do 15246 IFS=$as_save_IFS 15247 test -z "$as_dir" && as_dir=. 15248 for ac_exec_ext in '' $ac_executable_extensions; do 15249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15250 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15252 break 2 15253 fi 15254 done 15255 done 15256 IFS=$as_save_IFS 15257 15258 ;; 15259 esac 15260 fi 15261 NICE=$ac_cv_path_NICE 15262 if test -n "$NICE"; then 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15264 $as_echo "$NICE" >&6; } 15265 else 15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15267 $as_echo "no" >&6; } 15268 fi 15269 15270 15271 test -n "$NICE" && break 15272 done 15273 15274 else 15275 # If it succeeded, then it was overridden by the user. We will use it 15276 # for the tool. 15277 15278 # First remove it from the list of overridden variables, so we can test 15279 # for unknown variables in the end. 15280 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15281 15282 # Check if we try to supply an empty value 15283 if test "x$NICE" = x; then 15284 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NICE= (no value)" >&5 15285 $as_echo "$as_me: Setting user supplied tool NICE= (no value)" >&6;} 15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15287 $as_echo_n "checking for NICE... " >&6; } 15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15289 $as_echo "disabled" >&6; } 15290 else 15291 # Check if the provided tool contains a complete path. 15292 tool_specified="$NICE" 15293 tool_basename="${tool_specified##*/}" 15294 if test "x$tool_basename" = "x$tool_specified"; then 15295 # A command without a complete path is provided, search $PATH. 15296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NICE=$tool_basename" >&5 15297 $as_echo "$as_me: Will search for user supplied tool NICE=$tool_basename" >&6;} 15298 # Extract the first word of "$tool_basename", so it can be a program name with args. 15299 set dummy $tool_basename; ac_word=$2 15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15301 $as_echo_n "checking for $ac_word... " >&6; } 15302 if ${ac_cv_path_NICE+:} false; then : 15303 $as_echo_n "(cached) " >&6 15304 else 15305 case $NICE in 15306 [\\/]* | ?:[\\/]*) 15307 ac_cv_path_NICE="$NICE" # Let the user override the test with a path. 15308 ;; 15309 *) 15310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15311 for as_dir in $PATH 15312 do 15313 IFS=$as_save_IFS 15314 test -z "$as_dir" && as_dir=. 15315 for ac_exec_ext in '' $ac_executable_extensions; do 15316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15317 ac_cv_path_NICE="$as_dir/$ac_word$ac_exec_ext" 15318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15319 break 2 15320 fi 15321 done 15322 done 15323 IFS=$as_save_IFS 15324 15325 ;; 15326 esac 15327 fi 15328 NICE=$ac_cv_path_NICE 15329 if test -n "$NICE"; then 15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NICE" >&5 15331 $as_echo "$NICE" >&6; } 15332 else 15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15334 $as_echo "no" >&6; } 15335 fi 15336 15337 15338 if test "x$NICE" = x; then 15339 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15340 fi 15341 else 15342 # Otherwise we believe it is a complete path. Use it as it is. 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NICE=$tool_specified" >&5 15344 $as_echo "$as_me: Will use user supplied tool NICE=$tool_specified" >&6;} 15345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NICE" >&5 15346 $as_echo_n "checking for NICE... " >&6; } 15347 if test ! -x "$tool_specified"; then 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15349 $as_echo "not found" >&6; } 15350 as_fn_error $? "User supplied tool NICE=$tool_specified does not exist or is not executable" "$LINENO" 5 15351 fi 15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15353 $as_echo "$tool_specified" >&6; } 15354 fi 15355 fi 15356 fi 15357 15358 fi 15359 15360 15361 15362 15363 # Publish this variable in the help. 15364 15365 15366 if [ -z "${PANDOC+x}" ]; then 15367 # The variable is not set by user, try to locate tool using the code snippet 15368 for ac_prog in pandoc 15369 do 15370 # Extract the first word of "$ac_prog", so it can be a program name with args. 15371 set dummy $ac_prog; ac_word=$2 15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15373 $as_echo_n "checking for $ac_word... " >&6; } 15374 if ${ac_cv_path_PANDOC+:} false; then : 15375 $as_echo_n "(cached) " >&6 15376 else 15377 case $PANDOC in 15378 [\\/]* | ?:[\\/]*) 15379 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15380 ;; 15381 *) 15382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15383 for as_dir in $PATH 15384 do 15385 IFS=$as_save_IFS 15386 test -z "$as_dir" && as_dir=. 15387 for ac_exec_ext in '' $ac_executable_extensions; do 15388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15389 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15391 break 2 15392 fi 15393 done 15394 done 15395 IFS=$as_save_IFS 15396 15397 ;; 15398 esac 15399 fi 15400 PANDOC=$ac_cv_path_PANDOC 15401 if test -n "$PANDOC"; then 15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15403 $as_echo "$PANDOC" >&6; } 15404 else 15405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15406 $as_echo "no" >&6; } 15407 fi 15408 15409 15410 test -n "$PANDOC" && break 15411 done 15412 15413 else 15414 # The variable is set, but is it from the command line or the environment? 15415 15416 # Try to remove the string !PANDOC! from our list. 15417 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PANDOC!/} 15418 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 15419 # If it failed, the variable was not from the command line. Ignore it, 15420 # but warn the user (except for BASH, which is always set by the calling BASH). 15421 if test "xPANDOC" != xBASH; then 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&5 15423 $as_echo "$as_me: WARNING: Ignoring value of PANDOC from the environment. Use command line variables instead." >&2;} 15424 fi 15425 # Try to locate tool using the code snippet 15426 for ac_prog in pandoc 15427 do 15428 # Extract the first word of "$ac_prog", so it can be a program name with args. 15429 set dummy $ac_prog; ac_word=$2 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15431 $as_echo_n "checking for $ac_word... " >&6; } 15432 if ${ac_cv_path_PANDOC+:} false; then : 15433 $as_echo_n "(cached) " >&6 15434 else 15435 case $PANDOC in 15436 [\\/]* | ?:[\\/]*) 15437 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15438 ;; 15439 *) 15440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15441 for as_dir in $PATH 15442 do 15443 IFS=$as_save_IFS 15444 test -z "$as_dir" && as_dir=. 15445 for ac_exec_ext in '' $ac_executable_extensions; do 15446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15447 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15449 break 2 15450 fi 15451 done 15452 done 15453 IFS=$as_save_IFS 15454 15455 ;; 15456 esac 15457 fi 15458 PANDOC=$ac_cv_path_PANDOC 15459 if test -n "$PANDOC"; then 15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15461 $as_echo "$PANDOC" >&6; } 15462 else 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15464 $as_echo "no" >&6; } 15465 fi 15466 15467 15468 test -n "$PANDOC" && break 15469 done 15470 15471 else 15472 # If it succeeded, then it was overridden by the user. We will use it 15473 # for the tool. 15474 15475 # First remove it from the list of overridden variables, so we can test 15476 # for unknown variables in the end. 15477 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 15478 15479 # Check if we try to supply an empty value 15480 if test "x$PANDOC" = x; then 15481 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PANDOC= (no value)" >&5 15482 $as_echo "$as_me: Setting user supplied tool PANDOC= (no value)" >&6;} 15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15484 $as_echo_n "checking for PANDOC... " >&6; } 15485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 15486 $as_echo "disabled" >&6; } 15487 else 15488 # Check if the provided tool contains a complete path. 15489 tool_specified="$PANDOC" 15490 tool_basename="${tool_specified##*/}" 15491 if test "x$tool_basename" = "x$tool_specified"; then 15492 # A command without a complete path is provided, search $PATH. 15493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PANDOC=$tool_basename" >&5 15494 $as_echo "$as_me: Will search for user supplied tool PANDOC=$tool_basename" >&6;} 15495 # Extract the first word of "$tool_basename", so it can be a program name with args. 15496 set dummy $tool_basename; ac_word=$2 15497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15498 $as_echo_n "checking for $ac_word... " >&6; } 15499 if ${ac_cv_path_PANDOC+:} false; then : 15500 $as_echo_n "(cached) " >&6 15501 else 15502 case $PANDOC in 15503 [\\/]* | ?:[\\/]*) 15504 ac_cv_path_PANDOC="$PANDOC" # Let the user override the test with a path. 15505 ;; 15506 *) 15507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15508 for as_dir in $PATH 15509 do 15510 IFS=$as_save_IFS 15511 test -z "$as_dir" && as_dir=. 15512 for ac_exec_ext in '' $ac_executable_extensions; do 15513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15514 ac_cv_path_PANDOC="$as_dir/$ac_word$ac_exec_ext" 15515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15516 break 2 15517 fi 15518 done 15519 done 15520 IFS=$as_save_IFS 15521 15522 ;; 15523 esac 15524 fi 15525 PANDOC=$ac_cv_path_PANDOC 15526 if test -n "$PANDOC"; then 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANDOC" >&5 15528 $as_echo "$PANDOC" >&6; } 15529 else 15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15531 $as_echo "no" >&6; } 15532 fi 15533 15534 15535 if test "x$PANDOC" = x; then 15536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 15537 fi 15538 else 15539 # Otherwise we believe it is a complete path. Use it as it is. 15540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PANDOC=$tool_specified" >&5 15541 $as_echo "$as_me: Will use user supplied tool PANDOC=$tool_specified" >&6;} 15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANDOC" >&5 15543 $as_echo_n "checking for PANDOC... " >&6; } 15544 if test ! -x "$tool_specified"; then 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 15546 $as_echo "not found" >&6; } 15547 as_fn_error $? "User supplied tool PANDOC=$tool_specified does not exist or is not executable" "$LINENO" 5 15548 fi 15549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 15550 $as_echo "$tool_specified" >&6; } 15551 fi 15552 fi 15553 fi 15554 15555 fi 15556 15557 15558 15559 15560 # Now we can determine OpenJDK build and target platforms. This is required to 15561 # have early on. 15562 # Make sure we can run config.sub. 15563 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 15564 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 15565 15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 15567 $as_echo_n "checking build system type... " >&6; } 15568 if ${ac_cv_build+:} false; then : 15569 $as_echo_n "(cached) " >&6 15570 else 15571 ac_build_alias=$build_alias 15572 test "x$ac_build_alias" = x && 15573 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 15574 test "x$ac_build_alias" = x && 15575 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 15576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 15577 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 15578 15579 fi 15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 15581 $as_echo "$ac_cv_build" >&6; } 15582 case $ac_cv_build in 15583 *-*-*) ;; 15584 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 15585 esac 15586 build=$ac_cv_build 15587 ac_save_IFS=$IFS; IFS='-' 15588 set x $ac_cv_build 15589 shift 15590 build_cpu=$1 15591 build_vendor=$2 15592 shift; shift 15593 # Remember, the first character of IFS is used to create $*, 15594 # except with old shells: 15595 build_os=$* 15596 IFS=$ac_save_IFS 15597 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 15598 15599 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 15601 $as_echo_n "checking host system type... " >&6; } 15602 if ${ac_cv_host+:} false; then : 15603 $as_echo_n "(cached) " >&6 15604 else 15605 if test "x$host_alias" = x; then 15606 ac_cv_host=$ac_cv_build 15607 else 15608 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 15609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 15610 fi 15611 15612 fi 15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 15614 $as_echo "$ac_cv_host" >&6; } 15615 case $ac_cv_host in 15616 *-*-*) ;; 15617 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 15618 esac 15619 host=$ac_cv_host 15620 ac_save_IFS=$IFS; IFS='-' 15621 set x $ac_cv_host 15622 shift 15623 host_cpu=$1 15624 host_vendor=$2 15625 shift; shift 15626 # Remember, the first character of IFS is used to create $*, 15627 # except with old shells: 15628 host_os=$* 15629 IFS=$ac_save_IFS 15630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 15631 15632 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 15634 $as_echo_n "checking target system type... " >&6; } 15635 if ${ac_cv_target+:} false; then : 15636 $as_echo_n "(cached) " >&6 15637 else 15638 if test "x$target_alias" = x; then 15639 ac_cv_target=$ac_cv_host 15640 else 15641 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 15642 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 15643 fi 15644 15645 fi 15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 15647 $as_echo "$ac_cv_target" >&6; } 15648 case $ac_cv_target in 15649 *-*-*) ;; 15650 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 15651 esac 15652 target=$ac_cv_target 15653 ac_save_IFS=$IFS; IFS='-' 15654 set x $ac_cv_target 15655 shift 15656 target_cpu=$1 15657 target_vendor=$2 15658 shift; shift 15659 # Remember, the first character of IFS is used to create $*, 15660 # except with old shells: 15661 target_os=$* 15662 IFS=$ac_save_IFS 15663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 15664 15665 15666 # The aliases save the names the user supplied, while $host etc. 15667 # will get canonicalized. 15668 test -n "$target_alias" && 15669 test "$program_prefix$program_suffix$program_transform_name" = \ 15670 NONENONEs,x,x, && 15671 program_prefix=${target_alias}- 15672 15673 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 15674 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 15675 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 15676 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 15677 # to use the configure naming style. 15678 15679 15680 15681 15682 15683 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 15684 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 15685 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 15686 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 15687 OPENJDK_TARGET_AUTOCONF_NAME="$host" 15688 OPENJDK_BUILD_AUTOCONF_NAME="$build" 15689 15690 15691 15692 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15693 15694 case "$build_os" in 15695 *linux*) 15696 VAR_OS=linux 15697 VAR_OS_TYPE=unix 15698 ;; 15699 *solaris*) 15700 VAR_OS=solaris 15701 VAR_OS_TYPE=unix 15702 ;; 15703 *darwin*) 15704 VAR_OS=macosx 15705 VAR_OS_TYPE=unix 15706 ;; 15707 *bsd*) 15708 VAR_OS=bsd 15709 VAR_OS_TYPE=unix 15710 ;; 15711 *cygwin*) 15712 VAR_OS=windows 15713 VAR_OS_ENV=windows.cygwin 15714 ;; 15715 *mingw*) 15716 VAR_OS=windows 15717 VAR_OS_ENV=windows.msys 15718 ;; 15719 *aix*) 15720 VAR_OS=aix 15721 VAR_OS_TYPE=unix 15722 ;; 15723 *) 15724 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 15725 ;; 15726 esac 15727 15728 15729 # First argument is the cpu name from the trip/quad 15730 case "$build_cpu" in 15731 x86_64) 15732 VAR_CPU=x86_64 15733 VAR_CPU_ARCH=x86 15734 VAR_CPU_BITS=64 15735 VAR_CPU_ENDIAN=little 15736 ;; 15737 i?86) 15738 VAR_CPU=x86 15739 VAR_CPU_ARCH=x86 15740 VAR_CPU_BITS=32 15741 VAR_CPU_ENDIAN=little 15742 ;; 15743 alpha*) 15744 VAR_CPU=alpha 15745 VAR_CPU_ARCH=alpha 15746 VAR_CPU_BITS=64 15747 VAR_CPU_ENDIAN=little 15748 ;; 15749 arm*) 15750 VAR_CPU=arm 15751 VAR_CPU_ARCH=arm 15752 VAR_CPU_BITS=32 15753 VAR_CPU_ENDIAN=little 15754 ;; 15755 aarch64) 15756 VAR_CPU=aarch64 15757 VAR_CPU_ARCH=aarch64 15758 VAR_CPU_BITS=64 15759 VAR_CPU_ENDIAN=little 15760 ;; 15761 m68k) 15762 VAR_CPU=m68k 15763 VAR_CPU_ARCH=m68k 15764 VAR_CPU_BITS=32 15765 VAR_CPU_ENDIAN=big 15766 ;; 15767 mips) 15768 VAR_CPU=mips 15769 VAR_CPU_ARCH=mips 15770 VAR_CPU_BITS=32 15771 VAR_CPU_ENDIAN=big 15772 ;; 15773 mipsel) 15774 VAR_CPU=mipsel 15775 VAR_CPU_ARCH=mipsel 15776 VAR_CPU_BITS=32 15777 VAR_CPU_ENDIAN=little 15778 ;; 15779 mips64) 15780 VAR_CPU=mips64 15781 VAR_CPU_ARCH=mips64 15782 VAR_CPU_BITS=64 15783 VAR_CPU_ENDIAN=big 15784 ;; 15785 mips64el) 15786 VAR_CPU=mips64el 15787 VAR_CPU_ARCH=mips64el 15788 VAR_CPU_BITS=64 15789 VAR_CPU_ENDIAN=little 15790 ;; 15791 powerpc) 15792 VAR_CPU=ppc 15793 VAR_CPU_ARCH=ppc 15794 VAR_CPU_BITS=32 15795 VAR_CPU_ENDIAN=big 15796 ;; 15797 powerpc64) 15798 VAR_CPU=ppc64 15799 VAR_CPU_ARCH=ppc 15800 VAR_CPU_BITS=64 15801 VAR_CPU_ENDIAN=big 15802 ;; 15803 powerpc64le) 15804 VAR_CPU=ppc64le 15805 VAR_CPU_ARCH=ppc 15806 VAR_CPU_BITS=64 15807 VAR_CPU_ENDIAN=little 15808 ;; 15809 s390) 15810 VAR_CPU=s390 15811 VAR_CPU_ARCH=s390 15812 VAR_CPU_BITS=32 15813 VAR_CPU_ENDIAN=big 15814 ;; 15815 s390x) 15816 VAR_CPU=s390x 15817 VAR_CPU_ARCH=s390 15818 VAR_CPU_BITS=64 15819 VAR_CPU_ENDIAN=big 15820 ;; 15821 sh*eb) 15822 VAR_CPU=sh 15823 VAR_CPU_ARCH=sh 15824 VAR_CPU_BITS=32 15825 VAR_CPU_ENDIAN=big 15826 ;; 15827 sh*) 15828 VAR_CPU=sh 15829 VAR_CPU_ARCH=sh 15830 VAR_CPU_BITS=32 15831 VAR_CPU_ENDIAN=little 15832 ;; 15833 sparc) 15834 VAR_CPU=sparc 15835 VAR_CPU_ARCH=sparc 15836 VAR_CPU_BITS=32 15837 VAR_CPU_ENDIAN=big 15838 ;; 15839 sparcv9|sparc64) 15840 VAR_CPU=sparcv9 15841 VAR_CPU_ARCH=sparc 15842 VAR_CPU_BITS=64 15843 VAR_CPU_ENDIAN=big 15844 ;; 15845 *) 15846 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 15847 ;; 15848 esac 15849 15850 # ..and setup our own variables. (Do this explicitly to facilitate searching) 15851 OPENJDK_BUILD_OS="$VAR_OS" 15852 if test "x$VAR_OS_TYPE" != x; then 15853 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 15854 else 15855 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 15856 fi 15857 if test "x$VAR_OS_ENV" != x; then 15858 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 15859 else 15860 OPENJDK_BUILD_OS_ENV="$VAR_OS" 15861 fi 15862 OPENJDK_BUILD_CPU="$VAR_CPU" 15863 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 15864 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 15865 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 15866 15867 15868 15869 15870 15871 15872 15873 15874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 15875 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 15877 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 15878 15879 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 15880 15881 case "$host_os" in 15882 *linux*) 15883 VAR_OS=linux 15884 VAR_OS_TYPE=unix 15885 ;; 15886 *solaris*) 15887 VAR_OS=solaris 15888 VAR_OS_TYPE=unix 15889 ;; 15890 *darwin*) 15891 VAR_OS=macosx 15892 VAR_OS_TYPE=unix 15893 ;; 15894 *bsd*) 15895 VAR_OS=bsd 15896 VAR_OS_TYPE=unix 15897 ;; 15898 *cygwin*) 15899 VAR_OS=windows 15900 VAR_OS_ENV=windows.cygwin 15901 ;; 15902 *mingw*) 15903 VAR_OS=windows 15904 VAR_OS_ENV=windows.msys 15905 ;; 15906 *aix*) 15907 VAR_OS=aix 15908 VAR_OS_TYPE=unix 15909 ;; 15910 *) 15911 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 15912 ;; 15913 esac 15914 15915 15916 # First argument is the cpu name from the trip/quad 15917 case "$host_cpu" in 15918 x86_64) 15919 VAR_CPU=x86_64 15920 VAR_CPU_ARCH=x86 15921 VAR_CPU_BITS=64 15922 VAR_CPU_ENDIAN=little 15923 ;; 15924 i?86) 15925 VAR_CPU=x86 15926 VAR_CPU_ARCH=x86 15927 VAR_CPU_BITS=32 15928 VAR_CPU_ENDIAN=little 15929 ;; 15930 alpha*) 15931 VAR_CPU=alpha 15932 VAR_CPU_ARCH=alpha 15933 VAR_CPU_BITS=64 15934 VAR_CPU_ENDIAN=little 15935 ;; 15936 arm*) 15937 VAR_CPU=arm 15938 VAR_CPU_ARCH=arm 15939 VAR_CPU_BITS=32 15940 VAR_CPU_ENDIAN=little 15941 ;; 15942 aarch64) 15943 VAR_CPU=aarch64 15944 VAR_CPU_ARCH=aarch64 15945 VAR_CPU_BITS=64 15946 VAR_CPU_ENDIAN=little 15947 ;; 15948 m68k) 15949 VAR_CPU=m68k 15950 VAR_CPU_ARCH=m68k 15951 VAR_CPU_BITS=32 15952 VAR_CPU_ENDIAN=big 15953 ;; 15954 mips) 15955 VAR_CPU=mips 15956 VAR_CPU_ARCH=mips 15957 VAR_CPU_BITS=32 15958 VAR_CPU_ENDIAN=big 15959 ;; 15960 mipsel) 15961 VAR_CPU=mipsel 15962 VAR_CPU_ARCH=mipsel 15963 VAR_CPU_BITS=32 15964 VAR_CPU_ENDIAN=little 15965 ;; 15966 mips64) 15967 VAR_CPU=mips64 15968 VAR_CPU_ARCH=mips64 15969 VAR_CPU_BITS=64 15970 VAR_CPU_ENDIAN=big 15971 ;; 15972 mips64el) 15973 VAR_CPU=mips64el 15974 VAR_CPU_ARCH=mips64el 15975 VAR_CPU_BITS=64 15976 VAR_CPU_ENDIAN=little 15977 ;; 15978 powerpc) 15979 VAR_CPU=ppc 15980 VAR_CPU_ARCH=ppc 15981 VAR_CPU_BITS=32 15982 VAR_CPU_ENDIAN=big 15983 ;; 15984 powerpc64) 15985 VAR_CPU=ppc64 15986 VAR_CPU_ARCH=ppc 15987 VAR_CPU_BITS=64 15988 VAR_CPU_ENDIAN=big 15989 ;; 15990 powerpc64le) 15991 VAR_CPU=ppc64le 15992 VAR_CPU_ARCH=ppc 15993 VAR_CPU_BITS=64 15994 VAR_CPU_ENDIAN=little 15995 ;; 15996 s390) 15997 VAR_CPU=s390 15998 VAR_CPU_ARCH=s390 15999 VAR_CPU_BITS=32 16000 VAR_CPU_ENDIAN=big 16001 ;; 16002 s390x) 16003 VAR_CPU=s390x 16004 VAR_CPU_ARCH=s390 16005 VAR_CPU_BITS=64 16006 VAR_CPU_ENDIAN=big 16007 ;; 16008 sh*eb) 16009 VAR_CPU=sh 16010 VAR_CPU_ARCH=sh 16011 VAR_CPU_BITS=32 16012 VAR_CPU_ENDIAN=big 16013 ;; 16014 sh*) 16015 VAR_CPU=sh 16016 VAR_CPU_ARCH=sh 16017 VAR_CPU_BITS=32 16018 VAR_CPU_ENDIAN=little 16019 ;; 16020 sparc) 16021 VAR_CPU=sparc 16022 VAR_CPU_ARCH=sparc 16023 VAR_CPU_BITS=32 16024 VAR_CPU_ENDIAN=big 16025 ;; 16026 sparcv9|sparc64) 16027 VAR_CPU=sparcv9 16028 VAR_CPU_ARCH=sparc 16029 VAR_CPU_BITS=64 16030 VAR_CPU_ENDIAN=big 16031 ;; 16032 *) 16033 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 16034 ;; 16035 esac 16036 16037 # ... and setup our own variables. (Do this explicitly to facilitate searching) 16038 OPENJDK_TARGET_OS="$VAR_OS" 16039 if test "x$VAR_OS_TYPE" != x; then 16040 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 16041 else 16042 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 16043 fi 16044 if test "x$VAR_OS_ENV" != x; then 16045 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 16046 else 16047 OPENJDK_TARGET_OS_ENV="$VAR_OS" 16048 fi 16049 OPENJDK_TARGET_CPU="$VAR_CPU" 16050 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 16051 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 16052 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 16053 16054 16055 16056 16057 16058 16059 16060 16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 16062 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 16063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 16064 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 16065 16066 16067 16068 # Check whether --with-target-bits was given. 16069 if test "${with_target_bits+set}" = set; then : 16070 withval=$with_target_bits; 16071 fi 16072 16073 16074 # We have three types of compiles: 16075 # native == normal compilation, target system == build system 16076 # cross == traditional cross compilation, target system != build system; special toolchain needed 16077 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 16078 # 16079 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 16080 # We're doing a proper cross-compilation 16081 COMPILE_TYPE="cross" 16082 else 16083 COMPILE_TYPE="native" 16084 fi 16085 16086 if test "x$with_target_bits" != x; then 16087 if test "x$COMPILE_TYPE" = "xcross"; then 16088 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 16089 fi 16090 16091 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16092 # A reduced build is requested 16093 COMPILE_TYPE="reduced" 16094 OPENJDK_TARGET_CPU_BITS=32 16095 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 16096 OPENJDK_TARGET_CPU=x86 16097 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 16098 OPENJDK_TARGET_CPU=sparc 16099 else 16100 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 16101 fi 16102 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 16103 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 16104 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 16105 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 16106 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 16107 else 16108 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 16109 fi 16110 fi 16111 16112 16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 16114 $as_echo_n "checking compilation type... " >&6; } 16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 16116 $as_echo "$COMPILE_TYPE" >&6; } 16117 16118 16119 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16120 OPENJDK_MODULE_TARGET_OS_NAME="macos" 16121 else 16122 OPENJDK_MODULE_TARGET_OS_NAME="$OPENJDK_TARGET_OS" 16123 fi 16124 16125 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16126 OPENJDK_MODULE_TARGET_OS_ARCH="amd64" 16127 else 16128 OPENJDK_MODULE_TARGET_OS_ARCH="$OPENJDK_TARGET_CPU" 16129 fi 16130 16131 OPENJDK_MODULE_TARGET_PLATFORM="${OPENJDK_MODULE_TARGET_OS_NAME}-${OPENJDK_MODULE_TARGET_OS_ARCH}" 16132 16133 16134 16135 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 16136 RELEASE_FILE_OS_NAME=SunOS 16137 fi 16138 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 16139 RELEASE_FILE_OS_NAME=Linux 16140 fi 16141 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16142 RELEASE_FILE_OS_NAME=Windows 16143 fi 16144 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16145 RELEASE_FILE_OS_NAME="Darwin" 16146 fi 16147 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 16148 RELEASE_FILE_OS_NAME="AIX" 16149 fi 16150 RELEASE_FILE_OS_ARCH=${OPENJDK_TARGET_CPU} 16151 16152 16153 16154 16155 16156 16157 # Also store the legacy naming of the cpu. 16158 # Ie i586 and amd64 instead of x86 and x86_64 16159 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 16160 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16161 OPENJDK_TARGET_CPU_LEGACY="i586" 16162 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16163 # On all platforms except MacOSX replace x86_64 with amd64. 16164 OPENJDK_TARGET_CPU_LEGACY="amd64" 16165 elif test "x$OPENJDK_TARGET_CPU" = xalpha; then 16166 # Avoid name collisions with variables named alpha 16167 OPENJDK_TARGET_CPU_LEGACY="_alpha_" 16168 elif test "x$OPENJDK_TARGET_CPU" = xsh; then 16169 # Avoid name collisions with variables named sh 16170 OPENJDK_TARGET_CPU_LEGACY="_sh_" 16171 fi 16172 16173 16174 # And the second legacy naming of the cpu. 16175 # Ie i386 and amd64 instead of x86 and x86_64. 16176 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 16177 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16178 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 16179 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16180 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 16181 fi 16182 16183 16184 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16185 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16186 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 16187 OPENJDK_TARGET_CPU_ISADIR="" 16188 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 16189 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16190 OPENJDK_TARGET_CPU_ISADIR="/amd64" 16191 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16192 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 16193 fi 16194 fi 16195 16196 16197 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 16198 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 16199 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 16200 # On linux only, we replace x86 with i386. 16201 OPENJDK_TARGET_CPU_OSARCH="i386" 16202 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16203 # On all platforms except macosx, we replace x86_64 with amd64. 16204 OPENJDK_TARGET_CPU_OSARCH="amd64" 16205 fi 16206 16207 16208 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 16209 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16210 OPENJDK_TARGET_CPU_JLI="i386" 16211 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16212 # On all platforms except macosx, we replace x86_64 with amd64. 16213 OPENJDK_TARGET_CPU_JLI="amd64" 16214 fi 16215 16216 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16217 # Macosx is osx and x86_64 is x64 16218 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16219 OPENJDK_TARGET_OS_BUNDLE="osx" 16220 else 16221 OPENJDK_TARGET_OS_BUNDLE="$OPENJDK_TARGET_OS" 16222 fi 16223 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16224 OPENJDK_TARGET_CPU_BUNDLE="x64" 16225 else 16226 OPENJDK_TARGET_CPU_BUNDLE="$OPENJDK_TARGET_CPU" 16227 fi 16228 OPENJDK_TARGET_BUNDLE_PLATFORM="${OPENJDK_TARGET_OS_BUNDLE}-${OPENJDK_TARGET_CPU_BUNDLE}" 16229 16230 16231 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 16232 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16233 # unpack200.exe. This variable is used in 16234 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16235 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 16236 OPENJDK_TARGET_ADD_LP64="-D_LP64=1" 16237 fi 16238 fi 16239 16240 if test "x$COMPILE_TYPE" = "xcross"; then 16241 # FIXME: ... or should this include reduced builds..? 16242 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 16243 else 16244 DEFINE_CROSS_COMPILE_ARCH="" 16245 fi 16246 16247 16248 # Convert openjdk platform names to hotspot names 16249 16250 HOTSPOT_TARGET_OS=${OPENJDK_TARGET_OS} 16251 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 16252 HOTSPOT_TARGET_OS=bsd 16253 fi 16254 16255 16256 HOTSPOT_TARGET_OS_TYPE=${OPENJDK_TARGET_OS_TYPE} 16257 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 16258 HOTSPOT_TARGET_OS_TYPE=posix 16259 fi 16260 16261 16262 HOTSPOT_TARGET_CPU=${OPENJDK_TARGET_CPU} 16263 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16264 HOTSPOT_TARGET_CPU=x86_32 16265 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16266 HOTSPOT_TARGET_CPU=sparc 16267 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16268 HOTSPOT_TARGET_CPU=ppc_64 16269 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16270 HOTSPOT_TARGET_CPU=ppc_64 16271 fi 16272 16273 16274 # This is identical with OPENJDK_*, but define anyway for consistency. 16275 HOTSPOT_TARGET_CPU_ARCH=${OPENJDK_TARGET_CPU_ARCH} 16276 16277 16278 # Setup HOTSPOT_TARGET_CPU_DEFINE 16279 if test "x$OPENJDK_TARGET_CPU" = xx86; then 16280 HOTSPOT_TARGET_CPU_DEFINE=IA32 16281 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 16282 HOTSPOT_TARGET_CPU_DEFINE=AMD64 16283 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 16284 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16285 elif test "x$OPENJDK_TARGET_CPU" = xaarch64; then 16286 HOTSPOT_TARGET_CPU_DEFINE=AARCH64 16287 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 16288 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16289 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 16290 HOTSPOT_TARGET_CPU_DEFINE=PPC64 16291 16292 # The cpu defines below are for zero, we don't support them directly. 16293 elif test "x$OPENJDK_TARGET_CPU" = xsparc; then 16294 HOTSPOT_TARGET_CPU_DEFINE=SPARC 16295 elif test "x$OPENJDK_TARGET_CPU" = xppc; then 16296 HOTSPOT_TARGET_CPU_DEFINE=PPC32 16297 elif test "x$OPENJDK_TARGET_CPU" = xs390; then 16298 HOTSPOT_TARGET_CPU_DEFINE=S390 16299 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 16300 HOTSPOT_TARGET_CPU_DEFINE=S390 16301 elif test "x$OPENJDK_TARGET_CPU" != x; then 16302 HOTSPOT_TARGET_CPU_DEFINE=$(echo $OPENJDK_TARGET_CPU | tr a-z A-Z) 16303 fi 16304 16305 16306 16307 16308 # Also store the legacy naming of the cpu. 16309 # Ie i586 and amd64 instead of x86 and x86_64 16310 OPENJDK_BUILD_CPU_LEGACY="$OPENJDK_BUILD_CPU" 16311 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16312 OPENJDK_BUILD_CPU_LEGACY="i586" 16313 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16314 # On all platforms except MacOSX replace x86_64 with amd64. 16315 OPENJDK_BUILD_CPU_LEGACY="amd64" 16316 elif test "x$OPENJDK_BUILD_CPU" = xalpha; then 16317 # Avoid name collisions with variables named alpha 16318 OPENJDK_BUILD_CPU_LEGACY="_alpha_" 16319 elif test "x$OPENJDK_BUILD_CPU" = xsh; then 16320 # Avoid name collisions with variables named sh 16321 OPENJDK_BUILD_CPU_LEGACY="_sh_" 16322 fi 16323 16324 16325 # And the second legacy naming of the cpu. 16326 # Ie i386 and amd64 instead of x86 and x86_64. 16327 OPENJDK_BUILD_CPU_LEGACY_LIB="$OPENJDK_BUILD_CPU" 16328 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16329 OPENJDK_BUILD_CPU_LEGACY_LIB="i386" 16330 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16331 OPENJDK_BUILD_CPU_LEGACY_LIB="amd64" 16332 fi 16333 16334 16335 # OPENJDK_BUILD_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 16336 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 16337 # /usr/lib${OPENJDK_BUILD_CPU_ISADIR}/libexample.so 16338 OPENJDK_BUILD_CPU_ISADIR="" 16339 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 16340 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16341 OPENJDK_BUILD_CPU_ISADIR="/amd64" 16342 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16343 OPENJDK_BUILD_CPU_ISADIR="/sparcv9" 16344 fi 16345 fi 16346 16347 16348 # Setup OPENJDK_BUILD_CPU_OSARCH, which is used to set the os.arch Java system property 16349 OPENJDK_BUILD_CPU_OSARCH="$OPENJDK_BUILD_CPU" 16350 if test "x$OPENJDK_BUILD_OS" = xlinux && test "x$OPENJDK_BUILD_CPU" = xx86; then 16351 # On linux only, we replace x86 with i386. 16352 OPENJDK_BUILD_CPU_OSARCH="i386" 16353 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16354 # On all platforms except macosx, we replace x86_64 with amd64. 16355 OPENJDK_BUILD_CPU_OSARCH="amd64" 16356 fi 16357 16358 16359 OPENJDK_BUILD_CPU_JLI="$OPENJDK_BUILD_CPU" 16360 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16361 OPENJDK_BUILD_CPU_JLI="i386" 16362 elif test "x$OPENJDK_BUILD_OS" != xmacosx && test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16363 # On all platforms except macosx, we replace x86_64 with amd64. 16364 OPENJDK_BUILD_CPU_JLI="amd64" 16365 fi 16366 16367 # The new version string in JDK 9 also defined new naming of OS and ARCH for bundles 16368 # Macosx is osx and x86_64 is x64 16369 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16370 OPENJDK_BUILD_OS_BUNDLE="osx" 16371 else 16372 OPENJDK_BUILD_OS_BUNDLE="$OPENJDK_TARGET_OS" 16373 fi 16374 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16375 OPENJDK_BUILD_CPU_BUNDLE="x64" 16376 else 16377 OPENJDK_BUILD_CPU_BUNDLE="$OPENJDK_BUILD_CPU" 16378 fi 16379 OPENJDK_BUILD_BUNDLE_PLATFORM="${OPENJDK_BUILD_OS_BUNDLE}-${OPENJDK_BUILD_CPU_BUNDLE}" 16380 16381 16382 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 16383 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 16384 # unpack200.exe. This variable is used in 16385 # FLAGS_SETUP_COMPILER_FLAGS_FOR_JDK_HELPER. 16386 if test "x$OPENJDK_BUILD_OS" = xlinux || test "x$OPENJDK_BUILD_OS" = xmacosx; then 16387 OPENJDK_BUILD_ADD_LP64="-D_LP64=1" 16388 fi 16389 fi 16390 16391 if test "x$COMPILE_TYPE" = "xcross"; then 16392 # FIXME: ... or should this include reduced builds..? 16393 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_BUILD_CPU_LEGACY" 16394 else 16395 DEFINE_CROSS_COMPILE_ARCH="" 16396 fi 16397 16398 16399 # Convert openjdk platform names to hotspot names 16400 16401 HOTSPOT_BUILD_OS=${OPENJDK_BUILD_OS} 16402 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 16403 HOTSPOT_BUILD_OS=bsd 16404 fi 16405 16406 16407 HOTSPOT_BUILD_OS_TYPE=${OPENJDK_BUILD_OS_TYPE} 16408 if test "x$OPENJDK_BUILD_OS_TYPE" = xunix; then 16409 HOTSPOT_BUILD_OS_TYPE=posix 16410 fi 16411 16412 16413 HOTSPOT_BUILD_CPU=${OPENJDK_BUILD_CPU} 16414 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16415 HOTSPOT_BUILD_CPU=x86_32 16416 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16417 HOTSPOT_BUILD_CPU=sparc 16418 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16419 HOTSPOT_BUILD_CPU=ppc_64 16420 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16421 HOTSPOT_BUILD_CPU=ppc_64 16422 fi 16423 16424 16425 # This is identical with OPENJDK_*, but define anyway for consistency. 16426 HOTSPOT_BUILD_CPU_ARCH=${OPENJDK_BUILD_CPU_ARCH} 16427 16428 16429 # Setup HOTSPOT_BUILD_CPU_DEFINE 16430 if test "x$OPENJDK_BUILD_CPU" = xx86; then 16431 HOTSPOT_BUILD_CPU_DEFINE=IA32 16432 elif test "x$OPENJDK_BUILD_CPU" = xx86_64; then 16433 HOTSPOT_BUILD_CPU_DEFINE=AMD64 16434 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 16435 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16436 elif test "x$OPENJDK_BUILD_CPU" = xaarch64; then 16437 HOTSPOT_BUILD_CPU_DEFINE=AARCH64 16438 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 16439 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16440 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 16441 HOTSPOT_BUILD_CPU_DEFINE=PPC64 16442 16443 # The cpu defines below are for zero, we don't support them directly. 16444 elif test "x$OPENJDK_BUILD_CPU" = xsparc; then 16445 HOTSPOT_BUILD_CPU_DEFINE=SPARC 16446 elif test "x$OPENJDK_BUILD_CPU" = xppc; then 16447 HOTSPOT_BUILD_CPU_DEFINE=PPC32 16448 elif test "x$OPENJDK_BUILD_CPU" = xs390; then 16449 HOTSPOT_BUILD_CPU_DEFINE=S390 16450 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 16451 HOTSPOT_BUILD_CPU_DEFINE=S390 16452 elif test "x$OPENJDK_BUILD_CPU" != x; then 16453 HOTSPOT_BUILD_CPU_DEFINE=$(echo $OPENJDK_BUILD_CPU | tr a-z A-Z) 16454 fi 16455 16456 16457 16458 16459 16460 16461 # Continue setting up basic stuff. Most remaining code require fundamental tools. 16462 16463 # Save the current directory this script was started from 16464 CURDIR="$PWD" 16465 16466 # We might need to rewrite ORIGINAL_PATH, if it includes "#", to quote them 16467 # for make. We couldn't do this when we retrieved ORIGINAL_PATH, since SED 16468 # was not available at that time. 16469 REWRITTEN_PATH=`$ECHO "$ORIGINAL_PATH" | $SED -e 's/#/\\\\#/g'` 16470 if test "x$REWRITTEN_PATH" != "x$ORIGINAL_PATH"; then 16471 ORIGINAL_PATH="$REWRITTEN_PATH" 16472 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&5 16473 $as_echo "$as_me: Rewriting ORIGINAL_PATH to $REWRITTEN_PATH" >&6;} 16474 fi 16475 16476 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 16477 PATH_SEP=";" 16478 16479 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 16480 if test $SRC_ROOT_LENGTH -gt 100; then 16481 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 16482 fi 16483 16484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 16486 $as_echo_n "checking cygwin release... " >&6; } 16487 CYGWIN_VERSION=`$UNAME -r` 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 16489 $as_echo "$CYGWIN_VERSION" >&6; } 16490 WINDOWS_ENV_VENDOR='cygwin' 16491 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 16492 16493 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 16494 if test "x$CYGWIN_VERSION_OLD" != x; then 16495 { $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 16496 $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;} 16497 as_fn_error $? "Cannot continue" "$LINENO" 5 16498 fi 16499 if test "x$CYGPATH" = x; then 16500 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 16501 fi 16502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 16503 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 16504 # The cmd output ends with Windows line endings (CR/LF) 16505 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 16506 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 16507 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 16509 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 16510 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 16511 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 16512 if test "x$test_cygdrive_prefix" = x; then 16513 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 16514 fi 16515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 16517 $as_echo_n "checking msys release... " >&6; } 16518 MSYS_VERSION=`$UNAME -r` 16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 16520 $as_echo "$MSYS_VERSION" >&6; } 16521 16522 WINDOWS_ENV_VENDOR='msys' 16523 WINDOWS_ENV_VERSION="$MSYS_VERSION" 16524 16525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 16526 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 16527 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 16528 MSYS_ROOT_PATH=`cd / ; cmd /c cd | $GREP ".*"` 16529 16530 windows_path="$MSYS_ROOT_PATH" 16531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16532 unix_path=`$CYGPATH -u "$windows_path"` 16533 MSYS_ROOT_PATH="$unix_path" 16534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16536 MSYS_ROOT_PATH="$unix_path" 16537 fi 16538 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 16540 $as_echo "$MSYS_ROOT_PATH" >&6; } 16541 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 16542 else 16543 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 16544 fi 16545 16546 # Test if windows or unix (cygwin/msys) find is first in path. 16547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 16548 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 16549 FIND_BINARY_OUTPUT=`find --version 2>&1` 16550 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 16552 $as_echo "unix style" >&6; } 16553 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 16555 $as_echo "Windows" >&6; } 16556 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 16557 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 16558 { $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 16559 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 16560 as_fn_error $? "Cannot continue" "$LINENO" 5 16561 else 16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 16563 $as_echo "unknown" >&6; } 16564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 16565 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 16566 fi 16567 16568 else 16569 PATH_SEP=":" 16570 fi 16571 16572 16573 # We get the top-level directory from the supporting wrappers. 16574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 16575 $as_echo_n "checking for top-level directory... " >&6; } 16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 16577 $as_echo "$TOPDIR" >&6; } 16578 16579 16580 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 16581 16582 # Only process if variable expands to non-empty 16583 16584 if test "x$CURDIR" != x; then 16585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16586 16587 # Input might be given as Windows format, start by converting to 16588 # unix format. 16589 path="$CURDIR" 16590 new_path=`$CYGPATH -u "$path"` 16591 16592 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16593 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16594 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16595 # "foo.exe" is OK but "foo" is an error. 16596 # 16597 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16598 # It is also a way to make sure we got the proper file name for the real test later on. 16599 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16600 if test "x$test_shortpath" = x; then 16601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16602 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16603 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 16604 fi 16605 16606 # Call helper function which possibly converts this using DOS-style short mode. 16607 # If so, the updated path is stored in $new_path. 16608 16609 input_path="$new_path" 16610 # Check if we need to convert this using DOS-style short mode. If the path 16611 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16612 # take no chances and rewrite it. 16613 # Note: m4 eats our [], so we need to use [ and ] instead. 16614 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16615 if test "x$has_forbidden_chars" != x; then 16616 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16617 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16618 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16619 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16620 # Going to short mode and back again did indeed matter. Since short mode is 16621 # case insensitive, let's make it lowercase to improve readability. 16622 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16623 # Now convert it back to Unix-style (cygpath) 16624 input_path=`$CYGPATH -u "$shortmode_path"` 16625 new_path="$input_path" 16626 fi 16627 fi 16628 16629 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16630 if test "x$test_cygdrive_prefix" = x; then 16631 # As a simple fix, exclude /usr/bin since it's not a real path. 16632 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16633 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16634 # a path prefixed by /cygdrive for fixpath to work. 16635 new_path="$CYGWIN_ROOT_PATH$input_path" 16636 fi 16637 fi 16638 16639 16640 if test "x$path" != "x$new_path"; then 16641 CURDIR="$new_path" 16642 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16643 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16644 fi 16645 16646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16647 16648 path="$CURDIR" 16649 has_colon=`$ECHO $path | $GREP ^.:` 16650 new_path="$path" 16651 if test "x$has_colon" = x; then 16652 # Not in mixed or Windows style, start by that. 16653 new_path=`cmd //c echo $path` 16654 fi 16655 16656 16657 input_path="$new_path" 16658 # Check if we need to convert this using DOS-style short mode. If the path 16659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16660 # take no chances and rewrite it. 16661 # Note: m4 eats our [], so we need to use [ and ] instead. 16662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16663 if test "x$has_forbidden_chars" != x; then 16664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16665 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16666 fi 16667 16668 16669 windows_path="$new_path" 16670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16671 unix_path=`$CYGPATH -u "$windows_path"` 16672 new_path="$unix_path" 16673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16675 new_path="$unix_path" 16676 fi 16677 16678 if test "x$path" != "x$new_path"; then 16679 CURDIR="$new_path" 16680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 16681 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 16682 fi 16683 16684 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16685 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16686 16687 else 16688 # We're on a unix platform. Hooray! :) 16689 path="$CURDIR" 16690 has_space=`$ECHO "$path" | $GREP " "` 16691 if test "x$has_space" != x; then 16692 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 16693 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 16694 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16695 fi 16696 16697 # Use eval to expand a potential ~ 16698 eval path="$path" 16699 if test ! -f "$path" && test ! -d "$path"; then 16700 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16701 fi 16702 16703 if test -d "$path"; then 16704 CURDIR="`cd "$path"; $THEPWDCMD -L`" 16705 else 16706 dir="`$DIRNAME "$path"`" 16707 base="`$BASENAME "$path"`" 16708 CURDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16709 fi 16710 fi 16711 fi 16712 16713 16714 # Only process if variable expands to non-empty 16715 16716 if test "x$TOPDIR" != x; then 16717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16718 16719 # Input might be given as Windows format, start by converting to 16720 # unix format. 16721 path="$TOPDIR" 16722 new_path=`$CYGPATH -u "$path"` 16723 16724 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16725 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16726 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16727 # "foo.exe" is OK but "foo" is an error. 16728 # 16729 # This test is therefore slightly more accurate than "test -f" to check for file precense. 16730 # It is also a way to make sure we got the proper file name for the real test later on. 16731 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16732 if test "x$test_shortpath" = x; then 16733 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16734 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16735 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 16736 fi 16737 16738 # Call helper function which possibly converts this using DOS-style short mode. 16739 # If so, the updated path is stored in $new_path. 16740 16741 input_path="$new_path" 16742 # Check if we need to convert this using DOS-style short mode. If the path 16743 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16744 # take no chances and rewrite it. 16745 # Note: m4 eats our [], so we need to use [ and ] instead. 16746 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16747 if test "x$has_forbidden_chars" != x; then 16748 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16749 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16750 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16751 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16752 # Going to short mode and back again did indeed matter. Since short mode is 16753 # case insensitive, let's make it lowercase to improve readability. 16754 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16755 # Now convert it back to Unix-style (cygpath) 16756 input_path=`$CYGPATH -u "$shortmode_path"` 16757 new_path="$input_path" 16758 fi 16759 fi 16760 16761 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16762 if test "x$test_cygdrive_prefix" = x; then 16763 # As a simple fix, exclude /usr/bin since it's not a real path. 16764 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 16765 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16766 # a path prefixed by /cygdrive for fixpath to work. 16767 new_path="$CYGWIN_ROOT_PATH$input_path" 16768 fi 16769 fi 16770 16771 16772 if test "x$path" != "x$new_path"; then 16773 TOPDIR="$new_path" 16774 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16775 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16776 fi 16777 16778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16779 16780 path="$TOPDIR" 16781 has_colon=`$ECHO $path | $GREP ^.:` 16782 new_path="$path" 16783 if test "x$has_colon" = x; then 16784 # Not in mixed or Windows style, start by that. 16785 new_path=`cmd //c echo $path` 16786 fi 16787 16788 16789 input_path="$new_path" 16790 # Check if we need to convert this using DOS-style short mode. If the path 16791 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16792 # take no chances and rewrite it. 16793 # Note: m4 eats our [], so we need to use [ and ] instead. 16794 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16795 if test "x$has_forbidden_chars" != x; then 16796 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16797 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16798 fi 16799 16800 16801 windows_path="$new_path" 16802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16803 unix_path=`$CYGPATH -u "$windows_path"` 16804 new_path="$unix_path" 16805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16807 new_path="$unix_path" 16808 fi 16809 16810 if test "x$path" != "x$new_path"; then 16811 TOPDIR="$new_path" 16812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 16813 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 16814 fi 16815 16816 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16817 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16818 16819 else 16820 # We're on a unix platform. Hooray! :) 16821 path="$TOPDIR" 16822 has_space=`$ECHO "$path" | $GREP " "` 16823 if test "x$has_space" != x; then 16824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 16825 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 16826 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 16827 fi 16828 16829 # Use eval to expand a potential ~ 16830 eval path="$path" 16831 if test ! -f "$path" && test ! -d "$path"; then 16832 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 16833 fi 16834 16835 if test -d "$path"; then 16836 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 16837 else 16838 dir="`$DIRNAME "$path"`" 16839 base="`$BASENAME "$path"`" 16840 TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 16841 fi 16842 fi 16843 fi 16844 16845 16846 # Locate the directory of this script. 16847 AUTOCONF_DIR=$TOPDIR/make/autoconf 16848 16849 # Setup username (for use in adhoc version strings etc) 16850 # Outer [ ] to quote m4. 16851 USERNAME=`$ECHO "$USER" | $TR -d -c '[a-z][A-Z][0-9]'` 16852 16853 16854 16855 # Check if it's a pure open build or if custom sources are to be used. 16856 16857 # Check whether --enable-openjdk-only was given. 16858 if test "${enable_openjdk_only+set}" = set; then : 16859 enableval=$enable_openjdk_only; 16860 else 16861 enable_openjdk_only="no" 16862 fi 16863 16864 16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if custom source is suppressed (openjdk-only)" >&5 16866 $as_echo_n "checking if custom source is suppressed (openjdk-only)... " >&6; } 16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_openjdk_only" >&5 16868 $as_echo "$enable_openjdk_only" >&6; } 16869 if test "x$enable_openjdk_only" = "xyes"; then 16870 SUPPRESS_CUSTOM_EXTENSIONS="true" 16871 elif test "x$enable_openjdk_only" = "xno"; then 16872 SUPPRESS_CUSTOM_EXTENSIONS="false" 16873 else 16874 as_fn_error $? "Invalid value for --enable-openjdk-only: $enable_openjdk_only" "$LINENO" 5 16875 fi 16876 16877 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 16878 # the IncludeCustomExtension macro. 16879 16880 16881 # Check whether --with-custom-make-dir was given. 16882 if test "${with_custom_make_dir+set}" = set; then : 16883 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 16884 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 16885 fi 16886 16887 16888 16889 16890 # These are needed to be able to create a configuration name (and thus the output directory) 16891 16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 16893 $as_echo_n "checking which variant of the JDK to build... " >&6; } 16894 16895 # Check whether --with-jdk-variant was given. 16896 if test "${with_jdk_variant+set}" = set; then : 16897 withval=$with_jdk_variant; 16898 fi 16899 16900 16901 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 16902 JDK_VARIANT="normal" 16903 else 16904 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 16905 fi 16906 16907 16908 16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 16910 $as_echo "$JDK_VARIANT" >&6; } 16911 16912 16913 DEBUG_LEVEL="release" 16914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 16915 $as_echo_n "checking which debug level to use... " >&6; } 16916 # Check whether --enable-debug was given. 16917 if test "${enable_debug+set}" = set; then : 16918 enableval=$enable_debug; 16919 ENABLE_DEBUG="${enableval}" 16920 DEBUG_LEVEL="fastdebug" 16921 16922 else 16923 ENABLE_DEBUG="no" 16924 fi 16925 16926 16927 16928 # Check whether --with-debug-level was given. 16929 if test "${with_debug_level+set}" = set; then : 16930 withval=$with_debug_level; 16931 DEBUG_LEVEL="${withval}" 16932 if test "x$ENABLE_DEBUG" = xyes; then 16933 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 16934 fi 16935 16936 fi 16937 16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 16939 $as_echo "$DEBUG_LEVEL" >&6; } 16940 16941 if test "x$DEBUG_LEVEL" != xrelease && \ 16942 test "x$DEBUG_LEVEL" != xoptimized && \ 16943 test "x$DEBUG_LEVEL" != xfastdebug && \ 16944 test "x$DEBUG_LEVEL" != xslowdebug; then 16945 as_fn_error $? "Allowed debug levels are: release, fastdebug, slowdebug and optimized" "$LINENO" 5 16946 fi 16947 16948 # Translate DEBUG_LEVEL to debug level used by Hotspot 16949 HOTSPOT_DEBUG_LEVEL="$DEBUG_LEVEL" 16950 if test "x$DEBUG_LEVEL" = xrelease; then 16951 HOTSPOT_DEBUG_LEVEL="product" 16952 elif test "x$DEBUG_LEVEL" = xslowdebug; then 16953 HOTSPOT_DEBUG_LEVEL="debug" 16954 fi 16955 16956 if test "x$DEBUG_LEVEL" = xoptimized; then 16957 # The debug level 'optimized' is a little special because it is currently only 16958 # applicable to the HotSpot build where it means to build a completely 16959 # optimized version of the VM without any debugging code (like for the 16960 # 'release' debug level which is called 'product' in the HotSpot build) but 16961 # with the exception that it can contain additional code which is otherwise 16962 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 16963 # test new and/or experimental features which are not intended for customer 16964 # shipment. Because these new features need to be tested and benchmarked in 16965 # real world scenarios, we want to build the containing JDK at the 'release' 16966 # debug level. 16967 DEBUG_LEVEL="release" 16968 fi 16969 16970 16971 16972 16973 16974 16975 # Check whether --with-jvm-variants was given. 16976 if test "${with_jvm_variants+set}" = set; then : 16977 withval=$with_jvm_variants; 16978 fi 16979 16980 16981 16982 16983 # Check whether --with-cpu-port was given. 16984 if test "${with_cpu_port+set}" = set; then : 16985 withval=$with_cpu_port; 16986 fi 16987 16988 16989 if test "x$with_cpu_port" != x; then 16990 if test "x$OPENJDK_TARGET_CPU" != xaarch64; then 16991 as_fn_error $? "--with-cpu-port only available on aarch64" "$LINENO" 5 16992 fi 16993 if test "x$with_cpu_port" != xarm64 && \ 16994 test "x$with_cpu_port" != xaarch64; then 16995 as_fn_error $? "--with-cpu-port must specify arm64 or aarch64" "$LINENO" 5 16996 fi 16997 HOTSPOT_TARGET_CPU_PORT="$with_cpu_port" 16998 fi 16999 17000 17001 if test "x$with_jvm_variants" = x; then 17002 with_jvm_variants="server" 17003 fi 17004 JVM_VARIANTS_OPT="$with_jvm_variants" 17005 17006 # Has the user listed more than one variant? 17007 # Additional [] needed to keep m4 from mangling shell constructs. 17008 if [[ "$JVM_VARIANTS_OPT" =~ "," ]] ; then 17009 BUILDING_MULTIPLE_JVM_VARIANTS=true 17010 else 17011 BUILDING_MULTIPLE_JVM_VARIANTS=false 17012 fi 17013 # Replace the commas with AND for use in the build directory name. 17014 JVM_VARIANTS_WITH_AND=`$ECHO "$JVM_VARIANTS_OPT" | $SED -e 's/,/AND/g'` 17015 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 17017 $as_echo_n "checking which variants of the JVM to build... " >&6; } 17018 # JVM_VARIANTS is a space-separated list. 17019 # Also use minimal, not minimal1 (which is kept for backwards compatibility). 17020 JVM_VARIANTS=`$ECHO $JVM_VARIANTS_OPT | $SED -e 's/,/ /g' -e 's/minimal1/minimal/'` 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_VARIANTS" >&5 17022 $as_echo "$JVM_VARIANTS" >&6; } 17023 17024 # Check that the selected variants are valid 17025 17026 # grep filter function inspired by a comment to http://stackoverflow.com/a/1617326 17027 # Notice that the original variant failes on SLES 10 and 11 17028 NEEDLE=${VALID_JVM_VARIANTS// /$'\n'} 17029 STACK=${JVM_VARIANTS// /$'\n'} 17030 INVALID_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17031 if test "x$INVALID_VARIANTS" != x; then 17032 { $as_echo "$as_me:${as_lineno-$LINENO}: Unknown variant(s) specified: $INVALID_VARIANTS" >&5 17033 $as_echo "$as_me: Unknown variant(s) specified: $INVALID_VARIANTS" >&6;} 17034 as_fn_error $? "The available JVM variants are: $VALID_JVM_VARIANTS" "$LINENO" 5 17035 fi 17036 17037 # All "special" variants share the same output directory ("server") 17038 VALID_MULTIPLE_JVM_VARIANTS="server client minimal" 17039 NEEDLE=${VALID_MULTIPLE_JVM_VARIANTS// /$'\n'} 17040 STACK=${JVM_VARIANTS// /$'\n'} 17041 INVALID_MULTIPLE_VARIANTS=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 17042 if test "x$INVALID_MULTIPLE_VARIANTS" != x && test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = xtrue; then 17043 as_fn_error $? "You cannot build multiple variants with anything else than $VALID_MULTIPLE_JVM_VARIANTS." "$LINENO" 5 17044 fi 17045 17046 # The "main" variant is the one used by other libs to link against during the 17047 # build. 17048 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 17049 MAIN_VARIANT_PRIO_ORDER="server client minimal" 17050 for variant in $MAIN_VARIANT_PRIO_ORDER; do 17051 if [[ " $JVM_VARIANTS " =~ " $variant " ]] ; then 17052 JVM_VARIANT_MAIN="$variant" 17053 break 17054 fi 17055 done 17056 else 17057 JVM_VARIANT_MAIN="$JVM_VARIANTS" 17058 fi 17059 17060 17061 17062 17063 17064 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 17065 # zero behaves as a platform and rewrites these values. This is really weird. :( 17066 # We are guaranteed that we do not build any other variants when building zero. 17067 HOTSPOT_TARGET_CPU=zero 17068 HOTSPOT_TARGET_CPU_ARCH=zero 17069 fi 17070 17071 17072 # With basic setup done, call the custom early hook. 17073 17074 17075 # Check if we have devkits, extra paths or sysroot set. 17076 17077 17078 # Check whether --with-devkit was given. 17079 if test "${with_devkit+set}" = set; then : 17080 withval=$with_devkit; 17081 17082 # Only process if variable expands to non-empty 17083 17084 if test "x$with_devkit" != x; then 17085 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17086 17087 # Input might be given as Windows format, start by converting to 17088 # unix format. 17089 path="$with_devkit" 17090 new_path=`$CYGPATH -u "$path"` 17091 17092 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17093 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17094 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17095 # "foo.exe" is OK but "foo" is an error. 17096 # 17097 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17098 # It is also a way to make sure we got the proper file name for the real test later on. 17099 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17100 if test "x$test_shortpath" = x; then 17101 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17102 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17103 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 17104 fi 17105 17106 # Call helper function which possibly converts this using DOS-style short mode. 17107 # If so, the updated path is stored in $new_path. 17108 17109 input_path="$new_path" 17110 # Check if we need to convert this using DOS-style short mode. If the path 17111 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17112 # take no chances and rewrite it. 17113 # Note: m4 eats our [], so we need to use [ and ] instead. 17114 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17115 if test "x$has_forbidden_chars" != x; then 17116 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17117 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17118 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17119 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17120 # Going to short mode and back again did indeed matter. Since short mode is 17121 # case insensitive, let's make it lowercase to improve readability. 17122 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17123 # Now convert it back to Unix-style (cygpath) 17124 input_path=`$CYGPATH -u "$shortmode_path"` 17125 new_path="$input_path" 17126 fi 17127 fi 17128 17129 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17130 if test "x$test_cygdrive_prefix" = x; then 17131 # As a simple fix, exclude /usr/bin since it's not a real path. 17132 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17133 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17134 # a path prefixed by /cygdrive for fixpath to work. 17135 new_path="$CYGWIN_ROOT_PATH$input_path" 17136 fi 17137 fi 17138 17139 17140 if test "x$path" != "x$new_path"; then 17141 with_devkit="$new_path" 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17143 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17144 fi 17145 17146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17147 17148 path="$with_devkit" 17149 has_colon=`$ECHO $path | $GREP ^.:` 17150 new_path="$path" 17151 if test "x$has_colon" = x; then 17152 # Not in mixed or Windows style, start by that. 17153 new_path=`cmd //c echo $path` 17154 fi 17155 17156 17157 input_path="$new_path" 17158 # Check if we need to convert this using DOS-style short mode. If the path 17159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17160 # take no chances and rewrite it. 17161 # Note: m4 eats our [], so we need to use [ and ] instead. 17162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17163 if test "x$has_forbidden_chars" != x; then 17164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17165 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17166 fi 17167 17168 17169 windows_path="$new_path" 17170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17171 unix_path=`$CYGPATH -u "$windows_path"` 17172 new_path="$unix_path" 17173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17175 new_path="$unix_path" 17176 fi 17177 17178 if test "x$path" != "x$new_path"; then 17179 with_devkit="$new_path" 17180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 17181 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 17182 fi 17183 17184 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17185 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17186 17187 else 17188 # We're on a unix platform. Hooray! :) 17189 path="$with_devkit" 17190 has_space=`$ECHO "$path" | $GREP " "` 17191 if test "x$has_space" != x; then 17192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 17193 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 17194 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17195 fi 17196 17197 # Use eval to expand a potential ~ 17198 eval path="$path" 17199 if test ! -f "$path" && test ! -d "$path"; then 17200 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 17201 fi 17202 17203 if test -d "$path"; then 17204 with_devkit="`cd "$path"; $THEPWDCMD -L`" 17205 else 17206 dir="`$DIRNAME "$path"`" 17207 base="`$BASENAME "$path"`" 17208 with_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 17209 fi 17210 fi 17211 fi 17212 17213 DEVKIT_ROOT="$with_devkit" 17214 # Check for a meta data info file in the root of the devkit 17215 if test -f "$DEVKIT_ROOT/devkit.info"; then 17216 . $DEVKIT_ROOT/devkit.info 17217 # This potentially sets the following: 17218 # A descriptive name of the devkit 17219 17220 if test "x$DEVKIT_NAME" = x; then 17221 eval DEVKIT_NAME="\${DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 17222 fi 17223 17224 # Corresponds to --with-extra-path 17225 17226 if test "x$DEVKIT_EXTRA_PATH" = x; then 17227 eval DEVKIT_EXTRA_PATH="\${DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 17228 fi 17229 17230 # Corresponds to --with-toolchain-path 17231 17232 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17233 eval DEVKIT_TOOLCHAIN_PATH="\${DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 17234 fi 17235 17236 # Corresponds to --with-sysroot 17237 17238 if test "x$DEVKIT_SYSROOT" = x; then 17239 eval DEVKIT_SYSROOT="\${DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 17240 fi 17241 17242 17243 # Identifies the Visual Studio version in the devkit 17244 17245 if test "x$DEVKIT_VS_VERSION" = x; then 17246 eval DEVKIT_VS_VERSION="\${DEVKIT_VS_VERSION_${OPENJDK_TARGET_CPU}}" 17247 fi 17248 17249 # The Visual Studio include environment variable 17250 17251 if test "x$DEVKIT_VS_INCLUDE" = x; then 17252 eval DEVKIT_VS_INCLUDE="\${DEVKIT_VS_INCLUDE_${OPENJDK_TARGET_CPU}}" 17253 fi 17254 17255 # The Visual Studio lib environment variable 17256 17257 if test "x$DEVKIT_VS_LIB" = x; then 17258 eval DEVKIT_VS_LIB="\${DEVKIT_VS_LIB_${OPENJDK_TARGET_CPU}}" 17259 fi 17260 17261 # Corresponds to --with-msvcr-dll 17262 17263 if test "x$DEVKIT_MSVCR_DLL" = x; then 17264 eval DEVKIT_MSVCR_DLL="\${DEVKIT_MSVCR_DLL_${OPENJDK_TARGET_CPU}}" 17265 fi 17266 17267 # Corresponds to --with-msvcp-dll 17268 17269 if test "x$DEVKIT_MSVCP_DLL" = x; then 17270 eval DEVKIT_MSVCP_DLL="\${DEVKIT_MSVCP_DLL_${OPENJDK_TARGET_CPU}}" 17271 fi 17272 17273 fi 17274 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 17276 $as_echo_n "checking for devkit... " >&6; } 17277 if test "x$DEVKIT_NAME" != x; then 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 17279 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 17280 else 17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 17282 $as_echo "$DEVKIT_ROOT" >&6; } 17283 fi 17284 17285 17286 if test "x$DEVKIT_EXTRA_PATH" != x; then 17287 if test "x$EXTRA_PATH" = x; then 17288 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 17289 else 17290 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 17291 fi 17292 fi 17293 17294 17295 # Fallback default of just /bin if DEVKIT_PATH is not defined 17296 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 17297 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 17298 fi 17299 17300 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 17301 if test "x$TOOLCHAIN_PATH" = x; then 17302 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 17303 else 17304 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 17305 fi 17306 fi 17307 17308 17309 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 17310 # places for backwards compatiblity. 17311 if test "x$DEVKIT_SYSROOT" != x; then 17312 SYSROOT="$DEVKIT_SYSROOT" 17313 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 17314 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 17315 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 17316 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 17317 fi 17318 17319 if test "x$DEVKIT_ROOT" != x; then 17320 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib" 17321 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 17322 DEVKIT_LIB_DIR="$DEVKIT_ROOT/lib64" 17323 fi 17324 17325 fi 17326 17327 17328 fi 17329 17330 17331 # You can force the sysroot if the sysroot encoded into the compiler tools 17332 # is not correct. 17333 17334 # Check whether --with-sys-root was given. 17335 if test "${with_sys_root+set}" = set; then : 17336 withval=$with_sys_root; SYSROOT=$with_sys_root 17337 17338 fi 17339 17340 17341 17342 # Check whether --with-sysroot was given. 17343 if test "${with_sysroot+set}" = set; then : 17344 withval=$with_sysroot; SYSROOT=$with_sysroot 17345 17346 fi 17347 17348 17349 17350 # Check whether --with-tools-dir was given. 17351 if test "${with_tools_dir+set}" = set; then : 17352 withval=$with_tools_dir; 17353 if test "x$with_tools_dir" != x; then 17354 if test "x$TOOLCHAIN_PATH" = x; then 17355 TOOLCHAIN_PATH="$with_tools_dir" 17356 else 17357 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 17358 fi 17359 fi 17360 17361 17362 fi 17363 17364 17365 17366 # Check whether --with-toolchain-path was given. 17367 if test "${with_toolchain_path+set}" = set; then : 17368 withval=$with_toolchain_path; 17369 if test "x$with_toolchain_path" != x; then 17370 if test "x$TOOLCHAIN_PATH" = x; then 17371 TOOLCHAIN_PATH="$with_toolchain_path" 17372 else 17373 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 17374 fi 17375 fi 17376 17377 17378 fi 17379 17380 17381 17382 # Check whether --with-extra-path was given. 17383 if test "${with_extra_path+set}" = set; then : 17384 withval=$with_extra_path; 17385 if test "x$with_extra_path" != x; then 17386 if test "x$EXTRA_PATH" = x; then 17387 EXTRA_PATH="$with_extra_path" 17388 else 17389 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 17390 fi 17391 fi 17392 17393 17394 fi 17395 17396 17397 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 17398 # If a devkit has been supplied, find xcodebuild in the toolchain_path. 17399 # If not, detect if Xcode is installed by running xcodebuild -version 17400 # if no Xcode installed, xcodebuild exits with 1 17401 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 17402 if test "x$DEVKIT_ROOT" != x || /usr/bin/xcodebuild -version >/dev/null 2>&1; then 17403 # We need to use xcodebuild in the toolchain dir provided by the user, this will 17404 # fall back on the stub binary in /usr/bin/xcodebuild 17405 # Extract the first word of "xcodebuild", so it can be a program name with args. 17406 set dummy xcodebuild; ac_word=$2 17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17408 $as_echo_n "checking for $ac_word... " >&6; } 17409 if ${ac_cv_path_XCODEBUILD+:} false; then : 17410 $as_echo_n "(cached) " >&6 17411 else 17412 case $XCODEBUILD in 17413 [\\/]* | ?:[\\/]*) 17414 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 17415 ;; 17416 *) 17417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17418 for as_dir in $TOOLCHAIN_PATH 17419 do 17420 IFS=$as_save_IFS 17421 test -z "$as_dir" && as_dir=. 17422 for ac_exec_ext in '' $ac_executable_extensions; do 17423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17424 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 17425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17426 break 2 17427 fi 17428 done 17429 done 17430 IFS=$as_save_IFS 17431 17432 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 17433 ;; 17434 esac 17435 fi 17436 XCODEBUILD=$ac_cv_path_XCODEBUILD 17437 if test -n "$XCODEBUILD"; then 17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 17439 $as_echo "$XCODEBUILD" >&6; } 17440 else 17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17442 $as_echo "no" >&6; } 17443 fi 17444 17445 17446 else 17447 # this should result in SYSROOT being empty, unless --with-sysroot is provided 17448 # when only the command line tools are installed there are no SDKs, so headers 17449 # are copied into the system frameworks 17450 XCODEBUILD= 17451 17452 fi 17453 17454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 17455 $as_echo_n "checking for sdk name... " >&6; } 17456 17457 # Check whether --with-sdk-name was given. 17458 if test "${with_sdk_name+set}" = set; then : 17459 withval=$with_sdk_name; SDKNAME=$with_sdk_name 17460 17461 fi 17462 17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 17464 $as_echo "$SDKNAME" >&6; } 17465 17466 # if toolchain path is specified then don't rely on system headers, they may not compile 17467 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 17468 test -z "$TOOLCHAIN_PATH" && \ 17469 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 17470 17471 if test -z "$SYSROOT"; then 17472 if test -n "$XCODEBUILD"; then 17473 # if we don't have system headers, use default SDK name (last resort) 17474 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17475 SDKNAME=${SDKNAME:-macosx} 17476 fi 17477 17478 if test -n "$SDKNAME"; then 17479 # Call xcodebuild to determine SYSROOT 17480 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | $GREP '^Path: ' | $SED 's/Path: //'` 17481 fi 17482 else 17483 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 17484 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 17485 fi 17486 fi 17487 else 17488 # warn user if --with-sdk-name was also set 17489 if test -n "$with_sdk_name"; then 17490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 17491 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 17492 fi 17493 fi 17494 17495 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 17496 # If no system framework headers, then SYSROOT must be set, or we won't build 17497 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 17498 fi 17499 17500 # Perform a basic sanity test 17501 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 17502 if test -z "$SYSROOT"; then 17503 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 17504 else 17505 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 17506 fi 17507 fi 17508 17509 # set SDKROOT too, Xcode tools will pick it up 17510 SDKROOT="$SYSROOT" 17511 17512 fi 17513 17514 # Prepend the extra path to the global path 17515 17516 if test "x$EXTRA_PATH" != x; then 17517 if test "x$PATH" = x; then 17518 PATH="$EXTRA_PATH" 17519 else 17520 PATH="$EXTRA_PATH:$PATH" 17521 fi 17522 fi 17523 17524 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 17526 $as_echo_n "checking for sysroot... " >&6; } 17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 17528 $as_echo "$SYSROOT" >&6; } 17529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 17530 $as_echo_n "checking for toolchain path... " >&6; } 17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 17532 $as_echo "$TOOLCHAIN_PATH" >&6; } 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 17534 $as_echo_n "checking for extra path... " >&6; } 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 17536 $as_echo "$EXTRA_PATH" >&6; } 17537 17538 17539 # To properly create a configuration name, we need to have the OpenJDK target 17540 # and options (variants and debug level) parsed. 17541 17542 17543 17544 # Check whether --with-conf-name was given. 17545 if test "${with_conf_name+set}" = set; then : 17546 withval=$with_conf_name; CONF_NAME=${with_conf_name} 17547 fi 17548 17549 17550 # Test from where we are running configure, in or outside of src root. 17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 17552 $as_echo_n "checking where to store configuration... " >&6; } 17553 if test "x$CURDIR" = "x$TOPDIR" || test "x$CURDIR" = "x$CUSTOM_ROOT" \ 17554 || test "x$CURDIR" = "x$TOPDIR/make/autoconf" \ 17555 || test "x$CURDIR" = "x$TOPDIR/make" ; then 17556 # We are running configure from the src root. 17557 # Create a default ./build/target-variant-debuglevel output root. 17558 if test "x${CONF_NAME}" = x; then 17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 17560 $as_echo "in default location" >&6; } 17561 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${JVM_VARIANTS_WITH_AND}-${DEBUG_LEVEL}" 17562 else 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 17564 $as_echo "in build directory with custom name" >&6; } 17565 fi 17566 17567 if test "x$CUSTOM_ROOT" != x; then 17568 OUTPUTDIR="${CUSTOM_ROOT}/build/${CONF_NAME}" 17569 else 17570 OUTPUTDIR="${TOPDIR}/build/${CONF_NAME}" 17571 fi 17572 $MKDIR -p "$OUTPUTDIR" 17573 if test ! -d "$OUTPUTDIR"; then 17574 as_fn_error $? "Could not create build directory $OUTPUTDIR" "$LINENO" 5 17575 fi 17576 else 17577 # We are running configure from outside of the src dir. 17578 # Then use the current directory as output dir! 17579 # If configuration is situated in normal build directory, just use the build 17580 # directory name as configuration name, otherwise use the complete path. 17581 if test "x${CONF_NAME}" = x; then 17582 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${TOPDIR}/build/!!"` 17583 fi 17584 OUTPUTDIR="$CURDIR" 17585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 17586 $as_echo "in current directory" >&6; } 17587 17588 # WARNING: This might be a bad thing to do. You need to be sure you want to 17589 # have a configuration in this directory. Do some sanity checks! 17590 17591 if test ! -e "$OUTPUTDIR/spec.gmk"; then 17592 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 17593 # other files 17594 files_present=`$LS $OUTPUTDIR` 17595 # Configure has already touched config.log and confdefs.h in the current dir when this check 17596 # is performed. 17597 filtered_files=`$ECHO "$files_present" \ 17598 | $SED -e 's/config.log//g' \ 17599 -e 's/configure.log//g' \ 17600 -e 's/confdefs.h//g' \ 17601 -e 's/ //g' \ 17602 | $TR -d '\n'` 17603 if test "x$filtered_files" != x; then 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 17605 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 17607 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 17608 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 17609 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 17611 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 17613 $as_echo "$as_me: seriously mess up just about everything." >&6;} 17614 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $TOPDIR' and restart configure" >&5 17615 $as_echo "$as_me: Try 'cd $TOPDIR' and restart configure" >&6;} 17616 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 17617 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 17618 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 17619 fi 17620 fi 17621 fi 17622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 17623 $as_echo_n "checking what configuration name to use... " >&6; } 17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 17625 $as_echo "$CONF_NAME" >&6; } 17626 17627 17628 # Only process if variable expands to non-empty 17629 17630 if test "x$OUTPUTDIR" != x; then 17631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17632 17633 # Input might be given as Windows format, start by converting to 17634 # unix format. 17635 path="$OUTPUTDIR" 17636 new_path=`$CYGPATH -u "$path"` 17637 17638 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17639 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17640 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17641 # "foo.exe" is OK but "foo" is an error. 17642 # 17643 # This test is therefore slightly more accurate than "test -f" to check for file precense. 17644 # It is also a way to make sure we got the proper file name for the real test later on. 17645 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17646 if test "x$test_shortpath" = x; then 17647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17648 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17649 as_fn_error $? "Cannot locate the the path of OUTPUTDIR" "$LINENO" 5 17650 fi 17651 17652 # Call helper function which possibly converts this using DOS-style short mode. 17653 # If so, the updated path is stored in $new_path. 17654 17655 input_path="$new_path" 17656 # Check if we need to convert this using DOS-style short mode. If the path 17657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17658 # take no chances and rewrite it. 17659 # Note: m4 eats our [], so we need to use [ and ] instead. 17660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17661 if test "x$has_forbidden_chars" != x; then 17662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17663 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17664 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17665 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17666 # Going to short mode and back again did indeed matter. Since short mode is 17667 # case insensitive, let's make it lowercase to improve readability. 17668 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17669 # Now convert it back to Unix-style (cygpath) 17670 input_path=`$CYGPATH -u "$shortmode_path"` 17671 new_path="$input_path" 17672 fi 17673 fi 17674 17675 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17676 if test "x$test_cygdrive_prefix" = x; then 17677 # As a simple fix, exclude /usr/bin since it's not a real path. 17678 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 17679 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17680 # a path prefixed by /cygdrive for fixpath to work. 17681 new_path="$CYGWIN_ROOT_PATH$input_path" 17682 fi 17683 fi 17684 17685 17686 if test "x$path" != "x$new_path"; then 17687 OUTPUTDIR="$new_path" 17688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17689 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17690 fi 17691 17692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17693 17694 path="$OUTPUTDIR" 17695 has_colon=`$ECHO $path | $GREP ^.:` 17696 new_path="$path" 17697 if test "x$has_colon" = x; then 17698 # Not in mixed or Windows style, start by that. 17699 new_path=`cmd //c echo $path` 17700 fi 17701 17702 17703 input_path="$new_path" 17704 # Check if we need to convert this using DOS-style short mode. If the path 17705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17706 # take no chances and rewrite it. 17707 # Note: m4 eats our [], so we need to use [ and ] instead. 17708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17709 if test "x$has_forbidden_chars" != x; then 17710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17711 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17712 fi 17713 17714 17715 windows_path="$new_path" 17716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17717 unix_path=`$CYGPATH -u "$windows_path"` 17718 new_path="$unix_path" 17719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17721 new_path="$unix_path" 17722 fi 17723 17724 if test "x$path" != "x$new_path"; then 17725 OUTPUTDIR="$new_path" 17726 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUTDIR to \"$new_path\"" >&5 17727 $as_echo "$as_me: Rewriting OUTPUTDIR to \"$new_path\"" >&6;} 17728 fi 17729 17730 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17731 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17732 17733 else 17734 # We're on a unix platform. Hooray! :) 17735 path="$OUTPUTDIR" 17736 has_space=`$ECHO "$path" | $GREP " "` 17737 if test "x$has_space" != x; then 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&5 17739 $as_echo "$as_me: The path of OUTPUTDIR, which resolves as \"$path\", is invalid." >&6;} 17740 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 17741 fi 17742 17743 # Use eval to expand a potential ~ 17744 eval path="$path" 17745 if test ! -f "$path" && test ! -d "$path"; then 17746 as_fn_error $? "The path of OUTPUTDIR, which resolves as \"$path\", is not found." "$LINENO" 5 17747 fi 17748 17749 if test -d "$path"; then 17750 OUTPUTDIR="`cd "$path"; $THEPWDCMD -L`" 17751 else 17752 dir="`$DIRNAME "$path"`" 17753 base="`$BASENAME "$path"`" 17754 OUTPUTDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 17755 fi 17756 fi 17757 fi 17758 17759 17760 CONFIGURESUPPORT_OUTPUTDIR="$OUTPUTDIR/configure-support" 17761 $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR" 17762 17763 SPEC="$OUTPUTDIR/spec.gmk" 17764 17765 17766 17767 17768 17769 # The spec.gmk file contains all variables for the make system. 17770 ac_config_files="$ac_config_files $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 17771 17772 # The bootcycle-spec.gmk file contains support for boot cycle builds. 17773 ac_config_files="$ac_config_files $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 17774 17775 # The buildjdk-spec.gmk file contains support for building a buildjdk when cross compiling. 17776 ac_config_files="$ac_config_files $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" 17777 17778 # The compare.sh is used to compare the build output to other builds. 17779 ac_config_files="$ac_config_files $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" 17780 17781 # The generated Makefile knows where the spec.gmk is and where the source is. 17782 # You can run make from the OUTPUTDIR, or from the top-level Makefile 17783 # which will look for generated configurations 17784 ac_config_files="$ac_config_files $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" 17785 17786 17787 17788 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 17789 17790 for ac_prog in apt-get yum brew port pkgutil pkgadd 17791 do 17792 # Extract the first word of "$ac_prog", so it can be a program name with args. 17793 set dummy $ac_prog; ac_word=$2 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17795 $as_echo_n "checking for $ac_word... " >&6; } 17796 if ${ac_cv_prog_PKGHANDLER+:} false; then : 17797 $as_echo_n "(cached) " >&6 17798 else 17799 if test -n "$PKGHANDLER"; then 17800 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 17801 else 17802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17803 for as_dir in $PATH 17804 do 17805 IFS=$as_save_IFS 17806 test -z "$as_dir" && as_dir=. 17807 for ac_exec_ext in '' $ac_executable_extensions; do 17808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17809 ac_cv_prog_PKGHANDLER="$ac_prog" 17810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17811 break 2 17812 fi 17813 done 17814 done 17815 IFS=$as_save_IFS 17816 17817 fi 17818 fi 17819 PKGHANDLER=$ac_cv_prog_PKGHANDLER 17820 if test -n "$PKGHANDLER"; then 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 17822 $as_echo "$PKGHANDLER" >&6; } 17823 else 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17825 $as_echo "no" >&6; } 17826 fi 17827 17828 17829 test -n "$PKGHANDLER" && break 17830 done 17831 17832 17833 17834 # Setup tools that requires more complex handling, or that is not needed by the configure script. 17835 17836 17837 17838 # Publish this variable in the help. 17839 17840 17841 if [ -z "${MAKE+x}" ]; then 17842 # The variable is not set by user, try to locate tool using the code snippet 17843 17844 # Try our hardest to locate a correct version of GNU make 17845 for ac_prog in gmake 17846 do 17847 # Extract the first word of "$ac_prog", so it can be a program name with args. 17848 set dummy $ac_prog; ac_word=$2 17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17850 $as_echo_n "checking for $ac_word... " >&6; } 17851 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 17852 $as_echo_n "(cached) " >&6 17853 else 17854 case $CHECK_GMAKE in 17855 [\\/]* | ?:[\\/]*) 17856 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 17857 ;; 17858 *) 17859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17860 for as_dir in $PATH 17861 do 17862 IFS=$as_save_IFS 17863 test -z "$as_dir" && as_dir=. 17864 for ac_exec_ext in '' $ac_executable_extensions; do 17865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17866 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 17867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17868 break 2 17869 fi 17870 done 17871 done 17872 IFS=$as_save_IFS 17873 17874 ;; 17875 esac 17876 fi 17877 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 17878 if test -n "$CHECK_GMAKE"; then 17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 17880 $as_echo "$CHECK_GMAKE" >&6; } 17881 else 17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17883 $as_echo "no" >&6; } 17884 fi 17885 17886 17887 test -n "$CHECK_GMAKE" && break 17888 done 17889 17890 17891 MAKE_CANDIDATE=""$CHECK_GMAKE"" 17892 DESCRIPTION="gmake in PATH" 17893 17894 # On Cygwin, we require a newer version of make than on other platforms 17895 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17896 MAKE_VERSION_EXPR="-e 4\." 17897 MAKE_REQUIRED_VERSION="4.0" 17898 else 17899 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 17900 MAKE_REQUIRED_VERSION="3.81" 17901 fi 17902 17903 if test "x$MAKE_CANDIDATE" != x; then 17904 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 17905 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 17906 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 17907 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 17908 if test "x$IS_GNU_MAKE" = x; then 17909 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 17910 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 17911 else 17912 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 17913 if test "x$IS_MODERN_MAKE" = x; then 17914 { $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 17915 $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;} 17916 else 17917 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 17918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17919 MAKE_EXPECTED_ENV='cygwin' 17920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17921 MAKE_EXPECTED_ENV='msys' 17922 else 17923 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 17924 fi 17925 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 17926 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 17927 else 17928 # Not relevant for non-Windows 17929 IS_MAKE_CORRECT_ENV=true 17930 fi 17931 if test "x$IS_MAKE_CORRECT_ENV" = x; then 17932 { $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 17933 $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;} 17934 else 17935 FOUND_MAKE=$MAKE_CANDIDATE 17936 17937 # Only process if variable expands to non-empty 17938 17939 if test "x$FOUND_MAKE" != x; then 17940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17941 17942 # First separate the path from the arguments. This will split at the first 17943 # space. 17944 complete="$FOUND_MAKE" 17945 path="${complete%% *}" 17946 tmp="$complete EOL" 17947 arguments="${tmp#* }" 17948 17949 # Input might be given as Windows format, start by converting to 17950 # unix format. 17951 new_path=`$CYGPATH -u "$path"` 17952 17953 # Now try to locate executable using which 17954 new_path=`$WHICH "$new_path" 2> /dev/null` 17955 # bat and cmd files are not always considered executable in cygwin causing which 17956 # to not find them 17957 if test "x$new_path" = x \ 17958 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17959 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17960 new_path=`$CYGPATH -u "$path"` 17961 fi 17962 if test "x$new_path" = x; then 17963 # Oops. Which didn't find the executable. 17964 # The splitting of arguments from the executable at a space might have been incorrect, 17965 # since paths with space are more likely in Windows. Give it another try with the whole 17966 # argument. 17967 path="$complete" 17968 arguments="EOL" 17969 new_path=`$CYGPATH -u "$path"` 17970 new_path=`$WHICH "$new_path" 2> /dev/null` 17971 # bat and cmd files are not always considered executable in cygwin causing which 17972 # to not find them 17973 if test "x$new_path" = x \ 17974 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17975 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17976 new_path=`$CYGPATH -u "$path"` 17977 fi 17978 if test "x$new_path" = x; then 17979 # It's still not found. Now this is an unrecoverable error. 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17981 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17982 has_space=`$ECHO "$complete" | $GREP " "` 17983 if test "x$has_space" != x; then 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17985 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17986 fi 17987 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17988 fi 17989 fi 17990 17991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17994 # "foo.exe" is OK but "foo" is an error. 17995 # 17996 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17997 # It is also a way to make sure we got the proper file name for the real test later on. 17998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17999 if test "x$test_shortpath" = x; then 18000 # Short path failed, file does not exist as specified. 18001 # Try adding .exe or .cmd 18002 if test -f "${new_path}.exe"; then 18003 input_to_shortpath="${new_path}.exe" 18004 elif test -f "${new_path}.cmd"; then 18005 input_to_shortpath="${new_path}.cmd" 18006 else 18007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18008 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18010 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18011 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18012 fi 18013 else 18014 input_to_shortpath="$new_path" 18015 fi 18016 18017 # Call helper function which possibly converts this using DOS-style short mode. 18018 # If so, the updated path is stored in $new_path. 18019 new_path="$input_to_shortpath" 18020 18021 input_path="$input_to_shortpath" 18022 # Check if we need to convert this using DOS-style short mode. If the path 18023 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18024 # take no chances and rewrite it. 18025 # Note: m4 eats our [], so we need to use [ and ] instead. 18026 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18027 if test "x$has_forbidden_chars" != x; then 18028 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18029 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18030 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18031 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18032 # Going to short mode and back again did indeed matter. Since short mode is 18033 # case insensitive, let's make it lowercase to improve readability. 18034 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18035 # Now convert it back to Unix-style (cygpath) 18036 input_path=`$CYGPATH -u "$shortmode_path"` 18037 new_path="$input_path" 18038 fi 18039 fi 18040 18041 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18042 if test "x$test_cygdrive_prefix" = x; then 18043 # As a simple fix, exclude /usr/bin since it's not a real path. 18044 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18045 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18046 # a path prefixed by /cygdrive for fixpath to work. 18047 new_path="$CYGWIN_ROOT_PATH$input_path" 18048 fi 18049 fi 18050 18051 # remove trailing .exe if any 18052 new_path="${new_path/%.exe/}" 18053 18054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18055 18056 # First separate the path from the arguments. This will split at the first 18057 # space. 18058 complete="$FOUND_MAKE" 18059 path="${complete%% *}" 18060 tmp="$complete EOL" 18061 arguments="${tmp#* }" 18062 18063 # Input might be given as Windows format, start by converting to 18064 # unix format. 18065 new_path="$path" 18066 18067 windows_path="$new_path" 18068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18069 unix_path=`$CYGPATH -u "$windows_path"` 18070 new_path="$unix_path" 18071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18073 new_path="$unix_path" 18074 fi 18075 18076 18077 # Now try to locate executable using which 18078 new_path=`$WHICH "$new_path" 2> /dev/null` 18079 18080 if test "x$new_path" = x; then 18081 # Oops. Which didn't find the executable. 18082 # The splitting of arguments from the executable at a space might have been incorrect, 18083 # since paths with space are more likely in Windows. Give it another try with the whole 18084 # argument. 18085 path="$complete" 18086 arguments="EOL" 18087 new_path="$path" 18088 18089 windows_path="$new_path" 18090 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18091 unix_path=`$CYGPATH -u "$windows_path"` 18092 new_path="$unix_path" 18093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18094 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18095 new_path="$unix_path" 18096 fi 18097 18098 18099 new_path=`$WHICH "$new_path" 2> /dev/null` 18100 # bat and cmd files are not always considered executable in MSYS causing which 18101 # to not find them 18102 if test "x$new_path" = x \ 18103 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18104 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18105 new_path="$path" 18106 18107 windows_path="$new_path" 18108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18109 unix_path=`$CYGPATH -u "$windows_path"` 18110 new_path="$unix_path" 18111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18113 new_path="$unix_path" 18114 fi 18115 18116 fi 18117 18118 if test "x$new_path" = x; then 18119 # It's still not found. Now this is an unrecoverable error. 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18121 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18122 has_space=`$ECHO "$complete" | $GREP " "` 18123 if test "x$has_space" != x; then 18124 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18125 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18126 fi 18127 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18128 fi 18129 fi 18130 18131 # Now new_path has a complete unix path to the binary 18132 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18133 # Keep paths in /bin as-is, but remove trailing .exe if any 18134 new_path="${new_path/%.exe/}" 18135 # Do not save /bin paths to all_fixpath_prefixes! 18136 else 18137 # Not in mixed or Windows style, start by that. 18138 new_path=`cmd //c echo $new_path` 18139 18140 input_path="$new_path" 18141 # Check if we need to convert this using DOS-style short mode. If the path 18142 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18143 # take no chances and rewrite it. 18144 # Note: m4 eats our [], so we need to use [ and ] instead. 18145 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18146 if test "x$has_forbidden_chars" != x; then 18147 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18148 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18149 fi 18150 18151 # Output is in $new_path 18152 18153 windows_path="$new_path" 18154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18155 unix_path=`$CYGPATH -u "$windows_path"` 18156 new_path="$unix_path" 18157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18158 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18159 new_path="$unix_path" 18160 fi 18161 18162 # remove trailing .exe if any 18163 new_path="${new_path/%.exe/}" 18164 18165 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18166 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18167 fi 18168 18169 else 18170 # We're on a unix platform. Hooray! :) 18171 # First separate the path from the arguments. This will split at the first 18172 # space. 18173 complete="$FOUND_MAKE" 18174 path="${complete%% *}" 18175 tmp="$complete EOL" 18176 arguments="${tmp#* }" 18177 18178 # Cannot rely on the command "which" here since it doesn't always work. 18179 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18180 if test -z "$is_absolute_path"; then 18181 # Path to executable is not absolute. Find it. 18182 IFS_save="$IFS" 18183 IFS=: 18184 for p in $PATH; do 18185 if test -f "$p/$path" && test -x "$p/$path"; then 18186 new_path="$p/$path" 18187 break 18188 fi 18189 done 18190 IFS="$IFS_save" 18191 else 18192 # This is an absolute path, we can use it without further modifications. 18193 new_path="$path" 18194 fi 18195 18196 if test "x$new_path" = x; then 18197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18198 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18199 has_space=`$ECHO "$complete" | $GREP " "` 18200 if test "x$has_space" != x; then 18201 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18202 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18203 fi 18204 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18205 fi 18206 fi 18207 18208 # Now join together the path and the arguments once again 18209 if test "x$arguments" != xEOL; then 18210 new_complete="$new_path ${arguments% *}" 18211 else 18212 new_complete="$new_path" 18213 fi 18214 18215 if test "x$complete" != "x$new_complete"; then 18216 FOUND_MAKE="$new_complete" 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18218 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18219 fi 18220 fi 18221 18222 fi 18223 fi 18224 fi 18225 fi 18226 18227 18228 if test "x$FOUND_MAKE" = x; then 18229 for ac_prog in make 18230 do 18231 # Extract the first word of "$ac_prog", so it can be a program name with args. 18232 set dummy $ac_prog; ac_word=$2 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18234 $as_echo_n "checking for $ac_word... " >&6; } 18235 if ${ac_cv_path_CHECK_MAKE+:} false; then : 18236 $as_echo_n "(cached) " >&6 18237 else 18238 case $CHECK_MAKE in 18239 [\\/]* | ?:[\\/]*) 18240 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 18241 ;; 18242 *) 18243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18244 for as_dir in $PATH 18245 do 18246 IFS=$as_save_IFS 18247 test -z "$as_dir" && as_dir=. 18248 for ac_exec_ext in '' $ac_executable_extensions; do 18249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18250 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 18251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18252 break 2 18253 fi 18254 done 18255 done 18256 IFS=$as_save_IFS 18257 18258 ;; 18259 esac 18260 fi 18261 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 18262 if test -n "$CHECK_MAKE"; then 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 18264 $as_echo "$CHECK_MAKE" >&6; } 18265 else 18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18267 $as_echo "no" >&6; } 18268 fi 18269 18270 18271 test -n "$CHECK_MAKE" && break 18272 done 18273 18274 18275 MAKE_CANDIDATE=""$CHECK_MAKE"" 18276 DESCRIPTION="make in PATH" 18277 18278 # On Cygwin, we require a newer version of make than on other platforms 18279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18280 MAKE_VERSION_EXPR="-e 4\." 18281 MAKE_REQUIRED_VERSION="4.0" 18282 else 18283 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18284 MAKE_REQUIRED_VERSION="3.81" 18285 fi 18286 18287 if test "x$MAKE_CANDIDATE" != x; then 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18289 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18290 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18291 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18292 if test "x$IS_GNU_MAKE" = x; then 18293 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18294 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18295 else 18296 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18297 if test "x$IS_MODERN_MAKE" = x; then 18298 { $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 18299 $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;} 18300 else 18301 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18303 MAKE_EXPECTED_ENV='cygwin' 18304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18305 MAKE_EXPECTED_ENV='msys' 18306 else 18307 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18308 fi 18309 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18310 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18311 else 18312 # Not relevant for non-Windows 18313 IS_MAKE_CORRECT_ENV=true 18314 fi 18315 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18316 { $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 18317 $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;} 18318 else 18319 FOUND_MAKE=$MAKE_CANDIDATE 18320 18321 # Only process if variable expands to non-empty 18322 18323 if test "x$FOUND_MAKE" != x; then 18324 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18325 18326 # First separate the path from the arguments. This will split at the first 18327 # space. 18328 complete="$FOUND_MAKE" 18329 path="${complete%% *}" 18330 tmp="$complete EOL" 18331 arguments="${tmp#* }" 18332 18333 # Input might be given as Windows format, start by converting to 18334 # unix format. 18335 new_path=`$CYGPATH -u "$path"` 18336 18337 # Now try to locate executable using which 18338 new_path=`$WHICH "$new_path" 2> /dev/null` 18339 # bat and cmd files are not always considered executable in cygwin causing which 18340 # to not find them 18341 if test "x$new_path" = x \ 18342 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18344 new_path=`$CYGPATH -u "$path"` 18345 fi 18346 if test "x$new_path" = x; then 18347 # Oops. Which didn't find the executable. 18348 # The splitting of arguments from the executable at a space might have been incorrect, 18349 # since paths with space are more likely in Windows. Give it another try with the whole 18350 # argument. 18351 path="$complete" 18352 arguments="EOL" 18353 new_path=`$CYGPATH -u "$path"` 18354 new_path=`$WHICH "$new_path" 2> /dev/null` 18355 # bat and cmd files are not always considered executable in cygwin causing which 18356 # to not find them 18357 if test "x$new_path" = x \ 18358 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18359 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18360 new_path=`$CYGPATH -u "$path"` 18361 fi 18362 if test "x$new_path" = x; then 18363 # It's still not found. Now this is an unrecoverable error. 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18365 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18366 has_space=`$ECHO "$complete" | $GREP " "` 18367 if test "x$has_space" != x; then 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18369 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18370 fi 18371 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18372 fi 18373 fi 18374 18375 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18376 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18377 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18378 # "foo.exe" is OK but "foo" is an error. 18379 # 18380 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18381 # It is also a way to make sure we got the proper file name for the real test later on. 18382 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18383 if test "x$test_shortpath" = x; then 18384 # Short path failed, file does not exist as specified. 18385 # Try adding .exe or .cmd 18386 if test -f "${new_path}.exe"; then 18387 input_to_shortpath="${new_path}.exe" 18388 elif test -f "${new_path}.cmd"; then 18389 input_to_shortpath="${new_path}.cmd" 18390 else 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18392 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18393 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18394 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18395 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18396 fi 18397 else 18398 input_to_shortpath="$new_path" 18399 fi 18400 18401 # Call helper function which possibly converts this using DOS-style short mode. 18402 # If so, the updated path is stored in $new_path. 18403 new_path="$input_to_shortpath" 18404 18405 input_path="$input_to_shortpath" 18406 # Check if we need to convert this using DOS-style short mode. If the path 18407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18408 # take no chances and rewrite it. 18409 # Note: m4 eats our [], so we need to use [ and ] instead. 18410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18411 if test "x$has_forbidden_chars" != x; then 18412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18413 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18414 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18415 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18416 # Going to short mode and back again did indeed matter. Since short mode is 18417 # case insensitive, let's make it lowercase to improve readability. 18418 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18419 # Now convert it back to Unix-style (cygpath) 18420 input_path=`$CYGPATH -u "$shortmode_path"` 18421 new_path="$input_path" 18422 fi 18423 fi 18424 18425 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18426 if test "x$test_cygdrive_prefix" = x; then 18427 # As a simple fix, exclude /usr/bin since it's not a real path. 18428 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18429 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18430 # a path prefixed by /cygdrive for fixpath to work. 18431 new_path="$CYGWIN_ROOT_PATH$input_path" 18432 fi 18433 fi 18434 18435 # remove trailing .exe if any 18436 new_path="${new_path/%.exe/}" 18437 18438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18439 18440 # First separate the path from the arguments. This will split at the first 18441 # space. 18442 complete="$FOUND_MAKE" 18443 path="${complete%% *}" 18444 tmp="$complete EOL" 18445 arguments="${tmp#* }" 18446 18447 # Input might be given as Windows format, start by converting to 18448 # unix format. 18449 new_path="$path" 18450 18451 windows_path="$new_path" 18452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18453 unix_path=`$CYGPATH -u "$windows_path"` 18454 new_path="$unix_path" 18455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18457 new_path="$unix_path" 18458 fi 18459 18460 18461 # Now try to locate executable using which 18462 new_path=`$WHICH "$new_path" 2> /dev/null` 18463 18464 if test "x$new_path" = x; then 18465 # Oops. Which didn't find the executable. 18466 # The splitting of arguments from the executable at a space might have been incorrect, 18467 # since paths with space are more likely in Windows. Give it another try with the whole 18468 # argument. 18469 path="$complete" 18470 arguments="EOL" 18471 new_path="$path" 18472 18473 windows_path="$new_path" 18474 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18475 unix_path=`$CYGPATH -u "$windows_path"` 18476 new_path="$unix_path" 18477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18478 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18479 new_path="$unix_path" 18480 fi 18481 18482 18483 new_path=`$WHICH "$new_path" 2> /dev/null` 18484 # bat and cmd files are not always considered executable in MSYS causing which 18485 # to not find them 18486 if test "x$new_path" = x \ 18487 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18488 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18489 new_path="$path" 18490 18491 windows_path="$new_path" 18492 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18493 unix_path=`$CYGPATH -u "$windows_path"` 18494 new_path="$unix_path" 18495 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18496 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18497 new_path="$unix_path" 18498 fi 18499 18500 fi 18501 18502 if test "x$new_path" = x; then 18503 # It's still not found. Now this is an unrecoverable error. 18504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18505 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18506 has_space=`$ECHO "$complete" | $GREP " "` 18507 if test "x$has_space" != x; then 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18509 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18510 fi 18511 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18512 fi 18513 fi 18514 18515 # Now new_path has a complete unix path to the binary 18516 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18517 # Keep paths in /bin as-is, but remove trailing .exe if any 18518 new_path="${new_path/%.exe/}" 18519 # Do not save /bin paths to all_fixpath_prefixes! 18520 else 18521 # Not in mixed or Windows style, start by that. 18522 new_path=`cmd //c echo $new_path` 18523 18524 input_path="$new_path" 18525 # Check if we need to convert this using DOS-style short mode. If the path 18526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18527 # take no chances and rewrite it. 18528 # Note: m4 eats our [], so we need to use [ and ] instead. 18529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18530 if test "x$has_forbidden_chars" != x; then 18531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18532 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18533 fi 18534 18535 # Output is in $new_path 18536 18537 windows_path="$new_path" 18538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18539 unix_path=`$CYGPATH -u "$windows_path"` 18540 new_path="$unix_path" 18541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18543 new_path="$unix_path" 18544 fi 18545 18546 # remove trailing .exe if any 18547 new_path="${new_path/%.exe/}" 18548 18549 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18550 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18551 fi 18552 18553 else 18554 # We're on a unix platform. Hooray! :) 18555 # First separate the path from the arguments. This will split at the first 18556 # space. 18557 complete="$FOUND_MAKE" 18558 path="${complete%% *}" 18559 tmp="$complete EOL" 18560 arguments="${tmp#* }" 18561 18562 # Cannot rely on the command "which" here since it doesn't always work. 18563 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18564 if test -z "$is_absolute_path"; then 18565 # Path to executable is not absolute. Find it. 18566 IFS_save="$IFS" 18567 IFS=: 18568 for p in $PATH; do 18569 if test -f "$p/$path" && test -x "$p/$path"; then 18570 new_path="$p/$path" 18571 break 18572 fi 18573 done 18574 IFS="$IFS_save" 18575 else 18576 # This is an absolute path, we can use it without further modifications. 18577 new_path="$path" 18578 fi 18579 18580 if test "x$new_path" = x; then 18581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18582 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18583 has_space=`$ECHO "$complete" | $GREP " "` 18584 if test "x$has_space" != x; then 18585 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18586 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18587 fi 18588 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18589 fi 18590 fi 18591 18592 # Now join together the path and the arguments once again 18593 if test "x$arguments" != xEOL; then 18594 new_complete="$new_path ${arguments% *}" 18595 else 18596 new_complete="$new_path" 18597 fi 18598 18599 if test "x$complete" != "x$new_complete"; then 18600 FOUND_MAKE="$new_complete" 18601 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18602 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18603 fi 18604 fi 18605 18606 fi 18607 fi 18608 fi 18609 fi 18610 18611 fi 18612 18613 if test "x$FOUND_MAKE" = x; then 18614 if test "x$TOOLCHAIN_PATH" != x; then 18615 # We have a toolchain path, check that as well before giving up. 18616 OLD_PATH=$PATH 18617 PATH=$TOOLCHAIN_PATH:$PATH 18618 for ac_prog in gmake 18619 do 18620 # Extract the first word of "$ac_prog", so it can be a program name with args. 18621 set dummy $ac_prog; ac_word=$2 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18623 $as_echo_n "checking for $ac_word... " >&6; } 18624 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 18625 $as_echo_n "(cached) " >&6 18626 else 18627 case $CHECK_TOOLSDIR_GMAKE in 18628 [\\/]* | ?:[\\/]*) 18629 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 18630 ;; 18631 *) 18632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18633 for as_dir in $PATH 18634 do 18635 IFS=$as_save_IFS 18636 test -z "$as_dir" && as_dir=. 18637 for ac_exec_ext in '' $ac_executable_extensions; do 18638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18639 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 18640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18641 break 2 18642 fi 18643 done 18644 done 18645 IFS=$as_save_IFS 18646 18647 ;; 18648 esac 18649 fi 18650 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 18651 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 18653 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 18654 else 18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18656 $as_echo "no" >&6; } 18657 fi 18658 18659 18660 test -n "$CHECK_TOOLSDIR_GMAKE" && break 18661 done 18662 18663 18664 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 18665 DESCRIPTION="gmake in tools-dir" 18666 18667 # On Cygwin, we require a newer version of make than on other platforms 18668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18669 MAKE_VERSION_EXPR="-e 4\." 18670 MAKE_REQUIRED_VERSION="4.0" 18671 else 18672 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 18673 MAKE_REQUIRED_VERSION="3.81" 18674 fi 18675 18676 if test "x$MAKE_CANDIDATE" != x; then 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 18678 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 18679 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 18680 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 18681 if test "x$IS_GNU_MAKE" = x; then 18682 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 18683 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 18684 else 18685 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 18686 if test "x$IS_MODERN_MAKE" = x; then 18687 { $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 18688 $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;} 18689 else 18690 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 18691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18692 MAKE_EXPECTED_ENV='cygwin' 18693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18694 MAKE_EXPECTED_ENV='msys' 18695 else 18696 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 18697 fi 18698 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 18699 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 18700 else 18701 # Not relevant for non-Windows 18702 IS_MAKE_CORRECT_ENV=true 18703 fi 18704 if test "x$IS_MAKE_CORRECT_ENV" = x; then 18705 { $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 18706 $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;} 18707 else 18708 FOUND_MAKE=$MAKE_CANDIDATE 18709 18710 # Only process if variable expands to non-empty 18711 18712 if test "x$FOUND_MAKE" != x; then 18713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18714 18715 # First separate the path from the arguments. This will split at the first 18716 # space. 18717 complete="$FOUND_MAKE" 18718 path="${complete%% *}" 18719 tmp="$complete EOL" 18720 arguments="${tmp#* }" 18721 18722 # Input might be given as Windows format, start by converting to 18723 # unix format. 18724 new_path=`$CYGPATH -u "$path"` 18725 18726 # Now try to locate executable using which 18727 new_path=`$WHICH "$new_path" 2> /dev/null` 18728 # bat and cmd files are not always considered executable in cygwin causing which 18729 # to not find them 18730 if test "x$new_path" = x \ 18731 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18732 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18733 new_path=`$CYGPATH -u "$path"` 18734 fi 18735 if test "x$new_path" = x; then 18736 # Oops. Which didn't find the executable. 18737 # The splitting of arguments from the executable at a space might have been incorrect, 18738 # since paths with space are more likely in Windows. Give it another try with the whole 18739 # argument. 18740 path="$complete" 18741 arguments="EOL" 18742 new_path=`$CYGPATH -u "$path"` 18743 new_path=`$WHICH "$new_path" 2> /dev/null` 18744 # bat and cmd files are not always considered executable in cygwin causing which 18745 # to not find them 18746 if test "x$new_path" = x \ 18747 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18748 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18749 new_path=`$CYGPATH -u "$path"` 18750 fi 18751 if test "x$new_path" = x; then 18752 # It's still not found. Now this is an unrecoverable error. 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18754 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18755 has_space=`$ECHO "$complete" | $GREP " "` 18756 if test "x$has_space" != x; then 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18758 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18759 fi 18760 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18761 fi 18762 fi 18763 18764 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 18765 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 18766 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 18767 # "foo.exe" is OK but "foo" is an error. 18768 # 18769 # This test is therefore slightly more accurate than "test -f" to check for file presence. 18770 # It is also a way to make sure we got the proper file name for the real test later on. 18771 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 18772 if test "x$test_shortpath" = x; then 18773 # Short path failed, file does not exist as specified. 18774 # Try adding .exe or .cmd 18775 if test -f "${new_path}.exe"; then 18776 input_to_shortpath="${new_path}.exe" 18777 elif test -f "${new_path}.cmd"; then 18778 input_to_shortpath="${new_path}.cmd" 18779 else 18780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 18781 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 18782 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 18783 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 18784 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18785 fi 18786 else 18787 input_to_shortpath="$new_path" 18788 fi 18789 18790 # Call helper function which possibly converts this using DOS-style short mode. 18791 # If so, the updated path is stored in $new_path. 18792 new_path="$input_to_shortpath" 18793 18794 input_path="$input_to_shortpath" 18795 # Check if we need to convert this using DOS-style short mode. If the path 18796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18797 # take no chances and rewrite it. 18798 # Note: m4 eats our [], so we need to use [ and ] instead. 18799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 18800 if test "x$has_forbidden_chars" != x; then 18801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18802 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 18803 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 18804 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 18805 # Going to short mode and back again did indeed matter. Since short mode is 18806 # case insensitive, let's make it lowercase to improve readability. 18807 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18808 # Now convert it back to Unix-style (cygpath) 18809 input_path=`$CYGPATH -u "$shortmode_path"` 18810 new_path="$input_path" 18811 fi 18812 fi 18813 18814 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 18815 if test "x$test_cygdrive_prefix" = x; then 18816 # As a simple fix, exclude /usr/bin since it's not a real path. 18817 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 18818 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 18819 # a path prefixed by /cygdrive for fixpath to work. 18820 new_path="$CYGWIN_ROOT_PATH$input_path" 18821 fi 18822 fi 18823 18824 # remove trailing .exe if any 18825 new_path="${new_path/%.exe/}" 18826 18827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18828 18829 # First separate the path from the arguments. This will split at the first 18830 # space. 18831 complete="$FOUND_MAKE" 18832 path="${complete%% *}" 18833 tmp="$complete EOL" 18834 arguments="${tmp#* }" 18835 18836 # Input might be given as Windows format, start by converting to 18837 # unix format. 18838 new_path="$path" 18839 18840 windows_path="$new_path" 18841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18842 unix_path=`$CYGPATH -u "$windows_path"` 18843 new_path="$unix_path" 18844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18846 new_path="$unix_path" 18847 fi 18848 18849 18850 # Now try to locate executable using which 18851 new_path=`$WHICH "$new_path" 2> /dev/null` 18852 18853 if test "x$new_path" = x; then 18854 # Oops. Which didn't find the executable. 18855 # The splitting of arguments from the executable at a space might have been incorrect, 18856 # since paths with space are more likely in Windows. Give it another try with the whole 18857 # argument. 18858 path="$complete" 18859 arguments="EOL" 18860 new_path="$path" 18861 18862 windows_path="$new_path" 18863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18864 unix_path=`$CYGPATH -u "$windows_path"` 18865 new_path="$unix_path" 18866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18868 new_path="$unix_path" 18869 fi 18870 18871 18872 new_path=`$WHICH "$new_path" 2> /dev/null` 18873 # bat and cmd files are not always considered executable in MSYS causing which 18874 # to not find them 18875 if test "x$new_path" = x \ 18876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 18877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 18878 new_path="$path" 18879 18880 windows_path="$new_path" 18881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18882 unix_path=`$CYGPATH -u "$windows_path"` 18883 new_path="$unix_path" 18884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18886 new_path="$unix_path" 18887 fi 18888 18889 fi 18890 18891 if test "x$new_path" = x; then 18892 # It's still not found. Now this is an unrecoverable error. 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18894 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18895 has_space=`$ECHO "$complete" | $GREP " "` 18896 if test "x$has_space" != x; then 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 18898 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 18899 fi 18900 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18901 fi 18902 fi 18903 18904 # Now new_path has a complete unix path to the binary 18905 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 18906 # Keep paths in /bin as-is, but remove trailing .exe if any 18907 new_path="${new_path/%.exe/}" 18908 # Do not save /bin paths to all_fixpath_prefixes! 18909 else 18910 # Not in mixed or Windows style, start by that. 18911 new_path=`cmd //c echo $new_path` 18912 18913 input_path="$new_path" 18914 # Check if we need to convert this using DOS-style short mode. If the path 18915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 18916 # take no chances and rewrite it. 18917 # Note: m4 eats our [], so we need to use [ and ] instead. 18918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 18919 if test "x$has_forbidden_chars" != x; then 18920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 18921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 18922 fi 18923 18924 # Output is in $new_path 18925 18926 windows_path="$new_path" 18927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 18928 unix_path=`$CYGPATH -u "$windows_path"` 18929 new_path="$unix_path" 18930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 18931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 18932 new_path="$unix_path" 18933 fi 18934 18935 # remove trailing .exe if any 18936 new_path="${new_path/%.exe/}" 18937 18938 # Save the first 10 bytes of this path to the storage, so fixpath can work. 18939 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 18940 fi 18941 18942 else 18943 # We're on a unix platform. Hooray! :) 18944 # First separate the path from the arguments. This will split at the first 18945 # space. 18946 complete="$FOUND_MAKE" 18947 path="${complete%% *}" 18948 tmp="$complete EOL" 18949 arguments="${tmp#* }" 18950 18951 # Cannot rely on the command "which" here since it doesn't always work. 18952 is_absolute_path=`$ECHO "$path" | $GREP ^/` 18953 if test -z "$is_absolute_path"; then 18954 # Path to executable is not absolute. Find it. 18955 IFS_save="$IFS" 18956 IFS=: 18957 for p in $PATH; do 18958 if test -f "$p/$path" && test -x "$p/$path"; then 18959 new_path="$p/$path" 18960 break 18961 fi 18962 done 18963 IFS="$IFS_save" 18964 else 18965 # This is an absolute path, we can use it without further modifications. 18966 new_path="$path" 18967 fi 18968 18969 if test "x$new_path" = x; then 18970 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 18971 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 18972 has_space=`$ECHO "$complete" | $GREP " "` 18973 if test "x$has_space" != x; then 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 18975 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 18976 fi 18977 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 18978 fi 18979 fi 18980 18981 # Now join together the path and the arguments once again 18982 if test "x$arguments" != xEOL; then 18983 new_complete="$new_path ${arguments% *}" 18984 else 18985 new_complete="$new_path" 18986 fi 18987 18988 if test "x$complete" != "x$new_complete"; then 18989 FOUND_MAKE="$new_complete" 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 18991 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 18992 fi 18993 fi 18994 18995 fi 18996 fi 18997 fi 18998 fi 18999 19000 if test "x$FOUND_MAKE" = x; then 19001 for ac_prog in make 19002 do 19003 # Extract the first word of "$ac_prog", so it can be a program name with args. 19004 set dummy $ac_prog; ac_word=$2 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19006 $as_echo_n "checking for $ac_word... " >&6; } 19007 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 19008 $as_echo_n "(cached) " >&6 19009 else 19010 case $CHECK_TOOLSDIR_MAKE in 19011 [\\/]* | ?:[\\/]*) 19012 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 19013 ;; 19014 *) 19015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19016 for as_dir in $PATH 19017 do 19018 IFS=$as_save_IFS 19019 test -z "$as_dir" && as_dir=. 19020 for ac_exec_ext in '' $ac_executable_extensions; do 19021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19022 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 19023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19024 break 2 19025 fi 19026 done 19027 done 19028 IFS=$as_save_IFS 19029 19030 ;; 19031 esac 19032 fi 19033 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 19034 if test -n "$CHECK_TOOLSDIR_MAKE"; then 19035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 19036 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 19037 else 19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19039 $as_echo "no" >&6; } 19040 fi 19041 19042 19043 test -n "$CHECK_TOOLSDIR_MAKE" && break 19044 done 19045 19046 19047 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 19048 DESCRIPTION="make in tools-dir" 19049 19050 # On Cygwin, we require a newer version of make than on other platforms 19051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19052 MAKE_VERSION_EXPR="-e 4\." 19053 MAKE_REQUIRED_VERSION="4.0" 19054 else 19055 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19056 MAKE_REQUIRED_VERSION="3.81" 19057 fi 19058 19059 if test "x$MAKE_CANDIDATE" != x; then 19060 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19061 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19062 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19063 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19064 if test "x$IS_GNU_MAKE" = x; then 19065 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19066 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19067 else 19068 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19069 if test "x$IS_MODERN_MAKE" = x; then 19070 { $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 19071 $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;} 19072 else 19073 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19075 MAKE_EXPECTED_ENV='cygwin' 19076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19077 MAKE_EXPECTED_ENV='msys' 19078 else 19079 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19080 fi 19081 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19082 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19083 else 19084 # Not relevant for non-Windows 19085 IS_MAKE_CORRECT_ENV=true 19086 fi 19087 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19088 { $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 19089 $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;} 19090 else 19091 FOUND_MAKE=$MAKE_CANDIDATE 19092 19093 # Only process if variable expands to non-empty 19094 19095 if test "x$FOUND_MAKE" != x; then 19096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19097 19098 # First separate the path from the arguments. This will split at the first 19099 # space. 19100 complete="$FOUND_MAKE" 19101 path="${complete%% *}" 19102 tmp="$complete EOL" 19103 arguments="${tmp#* }" 19104 19105 # Input might be given as Windows format, start by converting to 19106 # unix format. 19107 new_path=`$CYGPATH -u "$path"` 19108 19109 # Now try to locate executable using which 19110 new_path=`$WHICH "$new_path" 2> /dev/null` 19111 # bat and cmd files are not always considered executable in cygwin causing which 19112 # to not find them 19113 if test "x$new_path" = x \ 19114 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19115 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19116 new_path=`$CYGPATH -u "$path"` 19117 fi 19118 if test "x$new_path" = x; then 19119 # Oops. Which didn't find the executable. 19120 # The splitting of arguments from the executable at a space might have been incorrect, 19121 # since paths with space are more likely in Windows. Give it another try with the whole 19122 # argument. 19123 path="$complete" 19124 arguments="EOL" 19125 new_path=`$CYGPATH -u "$path"` 19126 new_path=`$WHICH "$new_path" 2> /dev/null` 19127 # bat and cmd files are not always considered executable in cygwin causing which 19128 # to not find them 19129 if test "x$new_path" = x \ 19130 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19131 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19132 new_path=`$CYGPATH -u "$path"` 19133 fi 19134 if test "x$new_path" = x; then 19135 # It's still not found. Now this is an unrecoverable error. 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19137 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19138 has_space=`$ECHO "$complete" | $GREP " "` 19139 if test "x$has_space" != x; then 19140 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19141 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19142 fi 19143 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19144 fi 19145 fi 19146 19147 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19148 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19149 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19150 # "foo.exe" is OK but "foo" is an error. 19151 # 19152 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19153 # It is also a way to make sure we got the proper file name for the real test later on. 19154 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19155 if test "x$test_shortpath" = x; then 19156 # Short path failed, file does not exist as specified. 19157 # Try adding .exe or .cmd 19158 if test -f "${new_path}.exe"; then 19159 input_to_shortpath="${new_path}.exe" 19160 elif test -f "${new_path}.cmd"; then 19161 input_to_shortpath="${new_path}.cmd" 19162 else 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19164 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19165 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19166 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19167 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19168 fi 19169 else 19170 input_to_shortpath="$new_path" 19171 fi 19172 19173 # Call helper function which possibly converts this using DOS-style short mode. 19174 # If so, the updated path is stored in $new_path. 19175 new_path="$input_to_shortpath" 19176 19177 input_path="$input_to_shortpath" 19178 # Check if we need to convert this using DOS-style short mode. If the path 19179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19180 # take no chances and rewrite it. 19181 # Note: m4 eats our [], so we need to use [ and ] instead. 19182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19183 if test "x$has_forbidden_chars" != x; then 19184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19188 # Going to short mode and back again did indeed matter. Since short mode is 19189 # case insensitive, let's make it lowercase to improve readability. 19190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19191 # Now convert it back to Unix-style (cygpath) 19192 input_path=`$CYGPATH -u "$shortmode_path"` 19193 new_path="$input_path" 19194 fi 19195 fi 19196 19197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19198 if test "x$test_cygdrive_prefix" = x; then 19199 # As a simple fix, exclude /usr/bin since it's not a real path. 19200 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19202 # a path prefixed by /cygdrive for fixpath to work. 19203 new_path="$CYGWIN_ROOT_PATH$input_path" 19204 fi 19205 fi 19206 19207 # remove trailing .exe if any 19208 new_path="${new_path/%.exe/}" 19209 19210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19211 19212 # First separate the path from the arguments. This will split at the first 19213 # space. 19214 complete="$FOUND_MAKE" 19215 path="${complete%% *}" 19216 tmp="$complete EOL" 19217 arguments="${tmp#* }" 19218 19219 # Input might be given as Windows format, start by converting to 19220 # unix format. 19221 new_path="$path" 19222 19223 windows_path="$new_path" 19224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19225 unix_path=`$CYGPATH -u "$windows_path"` 19226 new_path="$unix_path" 19227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19229 new_path="$unix_path" 19230 fi 19231 19232 19233 # Now try to locate executable using which 19234 new_path=`$WHICH "$new_path" 2> /dev/null` 19235 19236 if test "x$new_path" = x; then 19237 # Oops. Which didn't find the executable. 19238 # The splitting of arguments from the executable at a space might have been incorrect, 19239 # since paths with space are more likely in Windows. Give it another try with the whole 19240 # argument. 19241 path="$complete" 19242 arguments="EOL" 19243 new_path="$path" 19244 19245 windows_path="$new_path" 19246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19247 unix_path=`$CYGPATH -u "$windows_path"` 19248 new_path="$unix_path" 19249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19251 new_path="$unix_path" 19252 fi 19253 19254 19255 new_path=`$WHICH "$new_path" 2> /dev/null` 19256 # bat and cmd files are not always considered executable in MSYS causing which 19257 # to not find them 19258 if test "x$new_path" = x \ 19259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19261 new_path="$path" 19262 19263 windows_path="$new_path" 19264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19265 unix_path=`$CYGPATH -u "$windows_path"` 19266 new_path="$unix_path" 19267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19269 new_path="$unix_path" 19270 fi 19271 19272 fi 19273 19274 if test "x$new_path" = x; then 19275 # It's still not found. Now this is an unrecoverable error. 19276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19277 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19278 has_space=`$ECHO "$complete" | $GREP " "` 19279 if test "x$has_space" != x; then 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19281 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19282 fi 19283 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19284 fi 19285 fi 19286 19287 # Now new_path has a complete unix path to the binary 19288 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19289 # Keep paths in /bin as-is, but remove trailing .exe if any 19290 new_path="${new_path/%.exe/}" 19291 # Do not save /bin paths to all_fixpath_prefixes! 19292 else 19293 # Not in mixed or Windows style, start by that. 19294 new_path=`cmd //c echo $new_path` 19295 19296 input_path="$new_path" 19297 # Check if we need to convert this using DOS-style short mode. If the path 19298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19299 # take no chances and rewrite it. 19300 # Note: m4 eats our [], so we need to use [ and ] instead. 19301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19302 if test "x$has_forbidden_chars" != x; then 19303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19304 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19305 fi 19306 19307 # Output is in $new_path 19308 19309 windows_path="$new_path" 19310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19311 unix_path=`$CYGPATH -u "$windows_path"` 19312 new_path="$unix_path" 19313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19315 new_path="$unix_path" 19316 fi 19317 19318 # remove trailing .exe if any 19319 new_path="${new_path/%.exe/}" 19320 19321 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19322 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19323 fi 19324 19325 else 19326 # We're on a unix platform. Hooray! :) 19327 # First separate the path from the arguments. This will split at the first 19328 # space. 19329 complete="$FOUND_MAKE" 19330 path="${complete%% *}" 19331 tmp="$complete EOL" 19332 arguments="${tmp#* }" 19333 19334 # Cannot rely on the command "which" here since it doesn't always work. 19335 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19336 if test -z "$is_absolute_path"; then 19337 # Path to executable is not absolute. Find it. 19338 IFS_save="$IFS" 19339 IFS=: 19340 for p in $PATH; do 19341 if test -f "$p/$path" && test -x "$p/$path"; then 19342 new_path="$p/$path" 19343 break 19344 fi 19345 done 19346 IFS="$IFS_save" 19347 else 19348 # This is an absolute path, we can use it without further modifications. 19349 new_path="$path" 19350 fi 19351 19352 if test "x$new_path" = x; then 19353 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19354 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19355 has_space=`$ECHO "$complete" | $GREP " "` 19356 if test "x$has_space" != x; then 19357 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19358 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19359 fi 19360 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19361 fi 19362 fi 19363 19364 # Now join together the path and the arguments once again 19365 if test "x$arguments" != xEOL; then 19366 new_complete="$new_path ${arguments% *}" 19367 else 19368 new_complete="$new_path" 19369 fi 19370 19371 if test "x$complete" != "x$new_complete"; then 19372 FOUND_MAKE="$new_complete" 19373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19374 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19375 fi 19376 fi 19377 19378 fi 19379 fi 19380 fi 19381 fi 19382 19383 fi 19384 PATH=$OLD_PATH 19385 fi 19386 fi 19387 19388 if test "x$FOUND_MAKE" = x; then 19389 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 19390 fi 19391 19392 else 19393 # The variable is set, but is it from the command line or the environment? 19394 19395 # Try to remove the string !MAKE! from our list. 19396 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MAKE!/} 19397 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19398 # If it failed, the variable was not from the command line. Ignore it, 19399 # but warn the user (except for BASH, which is always set by the calling BASH). 19400 if test "xMAKE" != xBASH; then 19401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&5 19402 $as_echo "$as_me: WARNING: Ignoring value of MAKE from the environment. Use command line variables instead." >&2;} 19403 fi 19404 # Try to locate tool using the code snippet 19405 19406 # Try our hardest to locate a correct version of GNU make 19407 for ac_prog in gmake 19408 do 19409 # Extract the first word of "$ac_prog", so it can be a program name with args. 19410 set dummy $ac_prog; ac_word=$2 19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19412 $as_echo_n "checking for $ac_word... " >&6; } 19413 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 19414 $as_echo_n "(cached) " >&6 19415 else 19416 case $CHECK_GMAKE in 19417 [\\/]* | ?:[\\/]*) 19418 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 19419 ;; 19420 *) 19421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19422 for as_dir in $PATH 19423 do 19424 IFS=$as_save_IFS 19425 test -z "$as_dir" && as_dir=. 19426 for ac_exec_ext in '' $ac_executable_extensions; do 19427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19428 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 19429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19430 break 2 19431 fi 19432 done 19433 done 19434 IFS=$as_save_IFS 19435 19436 ;; 19437 esac 19438 fi 19439 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 19440 if test -n "$CHECK_GMAKE"; then 19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 19442 $as_echo "$CHECK_GMAKE" >&6; } 19443 else 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19445 $as_echo "no" >&6; } 19446 fi 19447 19448 19449 test -n "$CHECK_GMAKE" && break 19450 done 19451 19452 19453 MAKE_CANDIDATE=""$CHECK_GMAKE"" 19454 DESCRIPTION="gmake in PATH" 19455 19456 # On Cygwin, we require a newer version of make than on other platforms 19457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19458 MAKE_VERSION_EXPR="-e 4\." 19459 MAKE_REQUIRED_VERSION="4.0" 19460 else 19461 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19462 MAKE_REQUIRED_VERSION="3.81" 19463 fi 19464 19465 if test "x$MAKE_CANDIDATE" != x; then 19466 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19467 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19468 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19469 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19470 if test "x$IS_GNU_MAKE" = x; then 19471 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19472 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19473 else 19474 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19475 if test "x$IS_MODERN_MAKE" = x; then 19476 { $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 19477 $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;} 19478 else 19479 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19481 MAKE_EXPECTED_ENV='cygwin' 19482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19483 MAKE_EXPECTED_ENV='msys' 19484 else 19485 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19486 fi 19487 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19488 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19489 else 19490 # Not relevant for non-Windows 19491 IS_MAKE_CORRECT_ENV=true 19492 fi 19493 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19494 { $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 19495 $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;} 19496 else 19497 FOUND_MAKE=$MAKE_CANDIDATE 19498 19499 # Only process if variable expands to non-empty 19500 19501 if test "x$FOUND_MAKE" != x; then 19502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19503 19504 # First separate the path from the arguments. This will split at the first 19505 # space. 19506 complete="$FOUND_MAKE" 19507 path="${complete%% *}" 19508 tmp="$complete EOL" 19509 arguments="${tmp#* }" 19510 19511 # Input might be given as Windows format, start by converting to 19512 # unix format. 19513 new_path=`$CYGPATH -u "$path"` 19514 19515 # Now try to locate executable using which 19516 new_path=`$WHICH "$new_path" 2> /dev/null` 19517 # bat and cmd files are not always considered executable in cygwin causing which 19518 # to not find them 19519 if test "x$new_path" = x \ 19520 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19521 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19522 new_path=`$CYGPATH -u "$path"` 19523 fi 19524 if test "x$new_path" = x; then 19525 # Oops. Which didn't find the executable. 19526 # The splitting of arguments from the executable at a space might have been incorrect, 19527 # since paths with space are more likely in Windows. Give it another try with the whole 19528 # argument. 19529 path="$complete" 19530 arguments="EOL" 19531 new_path=`$CYGPATH -u "$path"` 19532 new_path=`$WHICH "$new_path" 2> /dev/null` 19533 # bat and cmd files are not always considered executable in cygwin causing which 19534 # to not find them 19535 if test "x$new_path" = x \ 19536 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19537 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19538 new_path=`$CYGPATH -u "$path"` 19539 fi 19540 if test "x$new_path" = x; then 19541 # It's still not found. Now this is an unrecoverable error. 19542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19543 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19544 has_space=`$ECHO "$complete" | $GREP " "` 19545 if test "x$has_space" != x; then 19546 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19547 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19548 fi 19549 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19550 fi 19551 fi 19552 19553 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19554 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19555 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19556 # "foo.exe" is OK but "foo" is an error. 19557 # 19558 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19559 # It is also a way to make sure we got the proper file name for the real test later on. 19560 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19561 if test "x$test_shortpath" = x; then 19562 # Short path failed, file does not exist as specified. 19563 # Try adding .exe or .cmd 19564 if test -f "${new_path}.exe"; then 19565 input_to_shortpath="${new_path}.exe" 19566 elif test -f "${new_path}.cmd"; then 19567 input_to_shortpath="${new_path}.cmd" 19568 else 19569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19570 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19572 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19573 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19574 fi 19575 else 19576 input_to_shortpath="$new_path" 19577 fi 19578 19579 # Call helper function which possibly converts this using DOS-style short mode. 19580 # If so, the updated path is stored in $new_path. 19581 new_path="$input_to_shortpath" 19582 19583 input_path="$input_to_shortpath" 19584 # Check if we need to convert this using DOS-style short mode. If the path 19585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19586 # take no chances and rewrite it. 19587 # Note: m4 eats our [], so we need to use [ and ] instead. 19588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19589 if test "x$has_forbidden_chars" != x; then 19590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19591 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19592 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19593 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19594 # Going to short mode and back again did indeed matter. Since short mode is 19595 # case insensitive, let's make it lowercase to improve readability. 19596 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19597 # Now convert it back to Unix-style (cygpath) 19598 input_path=`$CYGPATH -u "$shortmode_path"` 19599 new_path="$input_path" 19600 fi 19601 fi 19602 19603 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19604 if test "x$test_cygdrive_prefix" = x; then 19605 # As a simple fix, exclude /usr/bin since it's not a real path. 19606 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19607 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19608 # a path prefixed by /cygdrive for fixpath to work. 19609 new_path="$CYGWIN_ROOT_PATH$input_path" 19610 fi 19611 fi 19612 19613 # remove trailing .exe if any 19614 new_path="${new_path/%.exe/}" 19615 19616 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19617 19618 # First separate the path from the arguments. This will split at the first 19619 # space. 19620 complete="$FOUND_MAKE" 19621 path="${complete%% *}" 19622 tmp="$complete EOL" 19623 arguments="${tmp#* }" 19624 19625 # Input might be given as Windows format, start by converting to 19626 # unix format. 19627 new_path="$path" 19628 19629 windows_path="$new_path" 19630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19631 unix_path=`$CYGPATH -u "$windows_path"` 19632 new_path="$unix_path" 19633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19635 new_path="$unix_path" 19636 fi 19637 19638 19639 # Now try to locate executable using which 19640 new_path=`$WHICH "$new_path" 2> /dev/null` 19641 19642 if test "x$new_path" = x; then 19643 # Oops. Which didn't find the executable. 19644 # The splitting of arguments from the executable at a space might have been incorrect, 19645 # since paths with space are more likely in Windows. Give it another try with the whole 19646 # argument. 19647 path="$complete" 19648 arguments="EOL" 19649 new_path="$path" 19650 19651 windows_path="$new_path" 19652 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19653 unix_path=`$CYGPATH -u "$windows_path"` 19654 new_path="$unix_path" 19655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19656 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19657 new_path="$unix_path" 19658 fi 19659 19660 19661 new_path=`$WHICH "$new_path" 2> /dev/null` 19662 # bat and cmd files are not always considered executable in MSYS causing which 19663 # to not find them 19664 if test "x$new_path" = x \ 19665 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19666 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19667 new_path="$path" 19668 19669 windows_path="$new_path" 19670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19671 unix_path=`$CYGPATH -u "$windows_path"` 19672 new_path="$unix_path" 19673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19675 new_path="$unix_path" 19676 fi 19677 19678 fi 19679 19680 if test "x$new_path" = x; then 19681 # It's still not found. Now this is an unrecoverable error. 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19683 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19684 has_space=`$ECHO "$complete" | $GREP " "` 19685 if test "x$has_space" != x; then 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19687 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19688 fi 19689 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19690 fi 19691 fi 19692 19693 # Now new_path has a complete unix path to the binary 19694 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 19695 # Keep paths in /bin as-is, but remove trailing .exe if any 19696 new_path="${new_path/%.exe/}" 19697 # Do not save /bin paths to all_fixpath_prefixes! 19698 else 19699 # Not in mixed or Windows style, start by that. 19700 new_path=`cmd //c echo $new_path` 19701 19702 input_path="$new_path" 19703 # Check if we need to convert this using DOS-style short mode. If the path 19704 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19705 # take no chances and rewrite it. 19706 # Note: m4 eats our [], so we need to use [ and ] instead. 19707 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19708 if test "x$has_forbidden_chars" != x; then 19709 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19710 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19711 fi 19712 19713 # Output is in $new_path 19714 19715 windows_path="$new_path" 19716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19717 unix_path=`$CYGPATH -u "$windows_path"` 19718 new_path="$unix_path" 19719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19721 new_path="$unix_path" 19722 fi 19723 19724 # remove trailing .exe if any 19725 new_path="${new_path/%.exe/}" 19726 19727 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19728 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19729 fi 19730 19731 else 19732 # We're on a unix platform. Hooray! :) 19733 # First separate the path from the arguments. This will split at the first 19734 # space. 19735 complete="$FOUND_MAKE" 19736 path="${complete%% *}" 19737 tmp="$complete EOL" 19738 arguments="${tmp#* }" 19739 19740 # Cannot rely on the command "which" here since it doesn't always work. 19741 is_absolute_path=`$ECHO "$path" | $GREP ^/` 19742 if test -z "$is_absolute_path"; then 19743 # Path to executable is not absolute. Find it. 19744 IFS_save="$IFS" 19745 IFS=: 19746 for p in $PATH; do 19747 if test -f "$p/$path" && test -x "$p/$path"; then 19748 new_path="$p/$path" 19749 break 19750 fi 19751 done 19752 IFS="$IFS_save" 19753 else 19754 # This is an absolute path, we can use it without further modifications. 19755 new_path="$path" 19756 fi 19757 19758 if test "x$new_path" = x; then 19759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19760 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19761 has_space=`$ECHO "$complete" | $GREP " "` 19762 if test "x$has_space" != x; then 19763 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 19764 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 19765 fi 19766 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19767 fi 19768 fi 19769 19770 # Now join together the path and the arguments once again 19771 if test "x$arguments" != xEOL; then 19772 new_complete="$new_path ${arguments% *}" 19773 else 19774 new_complete="$new_path" 19775 fi 19776 19777 if test "x$complete" != "x$new_complete"; then 19778 FOUND_MAKE="$new_complete" 19779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 19780 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 19781 fi 19782 fi 19783 19784 fi 19785 fi 19786 fi 19787 fi 19788 19789 19790 if test "x$FOUND_MAKE" = x; then 19791 for ac_prog in make 19792 do 19793 # Extract the first word of "$ac_prog", so it can be a program name with args. 19794 set dummy $ac_prog; ac_word=$2 19795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19796 $as_echo_n "checking for $ac_word... " >&6; } 19797 if ${ac_cv_path_CHECK_MAKE+:} false; then : 19798 $as_echo_n "(cached) " >&6 19799 else 19800 case $CHECK_MAKE in 19801 [\\/]* | ?:[\\/]*) 19802 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 19803 ;; 19804 *) 19805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19806 for as_dir in $PATH 19807 do 19808 IFS=$as_save_IFS 19809 test -z "$as_dir" && as_dir=. 19810 for ac_exec_ext in '' $ac_executable_extensions; do 19811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19812 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 19813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19814 break 2 19815 fi 19816 done 19817 done 19818 IFS=$as_save_IFS 19819 19820 ;; 19821 esac 19822 fi 19823 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 19824 if test -n "$CHECK_MAKE"; then 19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 19826 $as_echo "$CHECK_MAKE" >&6; } 19827 else 19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19829 $as_echo "no" >&6; } 19830 fi 19831 19832 19833 test -n "$CHECK_MAKE" && break 19834 done 19835 19836 19837 MAKE_CANDIDATE=""$CHECK_MAKE"" 19838 DESCRIPTION="make in PATH" 19839 19840 # On Cygwin, we require a newer version of make than on other platforms 19841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19842 MAKE_VERSION_EXPR="-e 4\." 19843 MAKE_REQUIRED_VERSION="4.0" 19844 else 19845 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 19846 MAKE_REQUIRED_VERSION="3.81" 19847 fi 19848 19849 if test "x$MAKE_CANDIDATE" != x; then 19850 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 19851 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 19852 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 19853 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 19854 if test "x$IS_GNU_MAKE" = x; then 19855 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 19856 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 19857 else 19858 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 19859 if test "x$IS_MODERN_MAKE" = x; then 19860 { $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 19861 $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;} 19862 else 19863 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 19864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19865 MAKE_EXPECTED_ENV='cygwin' 19866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19867 MAKE_EXPECTED_ENV='msys' 19868 else 19869 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 19870 fi 19871 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 19872 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 19873 else 19874 # Not relevant for non-Windows 19875 IS_MAKE_CORRECT_ENV=true 19876 fi 19877 if test "x$IS_MAKE_CORRECT_ENV" = x; then 19878 { $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 19879 $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;} 19880 else 19881 FOUND_MAKE=$MAKE_CANDIDATE 19882 19883 # Only process if variable expands to non-empty 19884 19885 if test "x$FOUND_MAKE" != x; then 19886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19887 19888 # First separate the path from the arguments. This will split at the first 19889 # space. 19890 complete="$FOUND_MAKE" 19891 path="${complete%% *}" 19892 tmp="$complete EOL" 19893 arguments="${tmp#* }" 19894 19895 # Input might be given as Windows format, start by converting to 19896 # unix format. 19897 new_path=`$CYGPATH -u "$path"` 19898 19899 # Now try to locate executable using which 19900 new_path=`$WHICH "$new_path" 2> /dev/null` 19901 # bat and cmd files are not always considered executable in cygwin causing which 19902 # to not find them 19903 if test "x$new_path" = x \ 19904 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19905 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19906 new_path=`$CYGPATH -u "$path"` 19907 fi 19908 if test "x$new_path" = x; then 19909 # Oops. Which didn't find the executable. 19910 # The splitting of arguments from the executable at a space might have been incorrect, 19911 # since paths with space are more likely in Windows. Give it another try with the whole 19912 # argument. 19913 path="$complete" 19914 arguments="EOL" 19915 new_path=`$CYGPATH -u "$path"` 19916 new_path=`$WHICH "$new_path" 2> /dev/null` 19917 # bat and cmd files are not always considered executable in cygwin causing which 19918 # to not find them 19919 if test "x$new_path" = x \ 19920 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 19921 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 19922 new_path=`$CYGPATH -u "$path"` 19923 fi 19924 if test "x$new_path" = x; then 19925 # It's still not found. Now this is an unrecoverable error. 19926 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 19927 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 19928 has_space=`$ECHO "$complete" | $GREP " "` 19929 if test "x$has_space" != x; then 19930 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 19931 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 19932 fi 19933 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19934 fi 19935 fi 19936 19937 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19938 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19939 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19940 # "foo.exe" is OK but "foo" is an error. 19941 # 19942 # This test is therefore slightly more accurate than "test -f" to check for file presence. 19943 # It is also a way to make sure we got the proper file name for the real test later on. 19944 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19945 if test "x$test_shortpath" = x; then 19946 # Short path failed, file does not exist as specified. 19947 # Try adding .exe or .cmd 19948 if test -f "${new_path}.exe"; then 19949 input_to_shortpath="${new_path}.exe" 19950 elif test -f "${new_path}.cmd"; then 19951 input_to_shortpath="${new_path}.cmd" 19952 else 19953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 19954 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 19955 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 19956 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 19957 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 19958 fi 19959 else 19960 input_to_shortpath="$new_path" 19961 fi 19962 19963 # Call helper function which possibly converts this using DOS-style short mode. 19964 # If so, the updated path is stored in $new_path. 19965 new_path="$input_to_shortpath" 19966 19967 input_path="$input_to_shortpath" 19968 # Check if we need to convert this using DOS-style short mode. If the path 19969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19970 # take no chances and rewrite it. 19971 # Note: m4 eats our [], so we need to use [ and ] instead. 19972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19973 if test "x$has_forbidden_chars" != x; then 19974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19975 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19976 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19977 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19978 # Going to short mode and back again did indeed matter. Since short mode is 19979 # case insensitive, let's make it lowercase to improve readability. 19980 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19981 # Now convert it back to Unix-style (cygpath) 19982 input_path=`$CYGPATH -u "$shortmode_path"` 19983 new_path="$input_path" 19984 fi 19985 fi 19986 19987 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19988 if test "x$test_cygdrive_prefix" = x; then 19989 # As a simple fix, exclude /usr/bin since it's not a real path. 19990 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 19991 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19992 # a path prefixed by /cygdrive for fixpath to work. 19993 new_path="$CYGWIN_ROOT_PATH$input_path" 19994 fi 19995 fi 19996 19997 # remove trailing .exe if any 19998 new_path="${new_path/%.exe/}" 19999 20000 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20001 20002 # First separate the path from the arguments. This will split at the first 20003 # space. 20004 complete="$FOUND_MAKE" 20005 path="${complete%% *}" 20006 tmp="$complete EOL" 20007 arguments="${tmp#* }" 20008 20009 # Input might be given as Windows format, start by converting to 20010 # unix format. 20011 new_path="$path" 20012 20013 windows_path="$new_path" 20014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20015 unix_path=`$CYGPATH -u "$windows_path"` 20016 new_path="$unix_path" 20017 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20018 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20019 new_path="$unix_path" 20020 fi 20021 20022 20023 # Now try to locate executable using which 20024 new_path=`$WHICH "$new_path" 2> /dev/null` 20025 20026 if test "x$new_path" = x; then 20027 # Oops. Which didn't find the executable. 20028 # The splitting of arguments from the executable at a space might have been incorrect, 20029 # since paths with space are more likely in Windows. Give it another try with the whole 20030 # argument. 20031 path="$complete" 20032 arguments="EOL" 20033 new_path="$path" 20034 20035 windows_path="$new_path" 20036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20037 unix_path=`$CYGPATH -u "$windows_path"` 20038 new_path="$unix_path" 20039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20041 new_path="$unix_path" 20042 fi 20043 20044 20045 new_path=`$WHICH "$new_path" 2> /dev/null` 20046 # bat and cmd files are not always considered executable in MSYS causing which 20047 # to not find them 20048 if test "x$new_path" = x \ 20049 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20050 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20051 new_path="$path" 20052 20053 windows_path="$new_path" 20054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20055 unix_path=`$CYGPATH -u "$windows_path"` 20056 new_path="$unix_path" 20057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20058 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20059 new_path="$unix_path" 20060 fi 20061 20062 fi 20063 20064 if test "x$new_path" = x; then 20065 # It's still not found. Now this is an unrecoverable error. 20066 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20067 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20068 has_space=`$ECHO "$complete" | $GREP " "` 20069 if test "x$has_space" != x; then 20070 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20071 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20072 fi 20073 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20074 fi 20075 fi 20076 20077 # Now new_path has a complete unix path to the binary 20078 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20079 # Keep paths in /bin as-is, but remove trailing .exe if any 20080 new_path="${new_path/%.exe/}" 20081 # Do not save /bin paths to all_fixpath_prefixes! 20082 else 20083 # Not in mixed or Windows style, start by that. 20084 new_path=`cmd //c echo $new_path` 20085 20086 input_path="$new_path" 20087 # Check if we need to convert this using DOS-style short mode. If the path 20088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20089 # take no chances and rewrite it. 20090 # Note: m4 eats our [], so we need to use [ and ] instead. 20091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20092 if test "x$has_forbidden_chars" != x; then 20093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20094 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20095 fi 20096 20097 # Output is in $new_path 20098 20099 windows_path="$new_path" 20100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20101 unix_path=`$CYGPATH -u "$windows_path"` 20102 new_path="$unix_path" 20103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20105 new_path="$unix_path" 20106 fi 20107 20108 # remove trailing .exe if any 20109 new_path="${new_path/%.exe/}" 20110 20111 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20112 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20113 fi 20114 20115 else 20116 # We're on a unix platform. Hooray! :) 20117 # First separate the path from the arguments. This will split at the first 20118 # space. 20119 complete="$FOUND_MAKE" 20120 path="${complete%% *}" 20121 tmp="$complete EOL" 20122 arguments="${tmp#* }" 20123 20124 # Cannot rely on the command "which" here since it doesn't always work. 20125 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20126 if test -z "$is_absolute_path"; then 20127 # Path to executable is not absolute. Find it. 20128 IFS_save="$IFS" 20129 IFS=: 20130 for p in $PATH; do 20131 if test -f "$p/$path" && test -x "$p/$path"; then 20132 new_path="$p/$path" 20133 break 20134 fi 20135 done 20136 IFS="$IFS_save" 20137 else 20138 # This is an absolute path, we can use it without further modifications. 20139 new_path="$path" 20140 fi 20141 20142 if test "x$new_path" = x; then 20143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20144 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20145 has_space=`$ECHO "$complete" | $GREP " "` 20146 if test "x$has_space" != x; then 20147 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20148 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20149 fi 20150 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20151 fi 20152 fi 20153 20154 # Now join together the path and the arguments once again 20155 if test "x$arguments" != xEOL; then 20156 new_complete="$new_path ${arguments% *}" 20157 else 20158 new_complete="$new_path" 20159 fi 20160 20161 if test "x$complete" != "x$new_complete"; then 20162 FOUND_MAKE="$new_complete" 20163 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20164 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20165 fi 20166 fi 20167 20168 fi 20169 fi 20170 fi 20171 fi 20172 20173 fi 20174 20175 if test "x$FOUND_MAKE" = x; then 20176 if test "x$TOOLCHAIN_PATH" != x; then 20177 # We have a toolchain path, check that as well before giving up. 20178 OLD_PATH=$PATH 20179 PATH=$TOOLCHAIN_PATH:$PATH 20180 for ac_prog in gmake 20181 do 20182 # Extract the first word of "$ac_prog", so it can be a program name with args. 20183 set dummy $ac_prog; ac_word=$2 20184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20185 $as_echo_n "checking for $ac_word... " >&6; } 20186 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 20187 $as_echo_n "(cached) " >&6 20188 else 20189 case $CHECK_TOOLSDIR_GMAKE in 20190 [\\/]* | ?:[\\/]*) 20191 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 20192 ;; 20193 *) 20194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20195 for as_dir in $PATH 20196 do 20197 IFS=$as_save_IFS 20198 test -z "$as_dir" && as_dir=. 20199 for ac_exec_ext in '' $ac_executable_extensions; do 20200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20201 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 20202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20203 break 2 20204 fi 20205 done 20206 done 20207 IFS=$as_save_IFS 20208 20209 ;; 20210 esac 20211 fi 20212 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 20213 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 20214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 20215 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 20216 else 20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20218 $as_echo "no" >&6; } 20219 fi 20220 20221 20222 test -n "$CHECK_TOOLSDIR_GMAKE" && break 20223 done 20224 20225 20226 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 20227 DESCRIPTION="gmake in tools-dir" 20228 20229 # On Cygwin, we require a newer version of make than on other platforms 20230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20231 MAKE_VERSION_EXPR="-e 4\." 20232 MAKE_REQUIRED_VERSION="4.0" 20233 else 20234 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20235 MAKE_REQUIRED_VERSION="3.81" 20236 fi 20237 20238 if test "x$MAKE_CANDIDATE" != x; then 20239 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20240 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20241 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20242 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20243 if test "x$IS_GNU_MAKE" = x; then 20244 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20245 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20246 else 20247 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20248 if test "x$IS_MODERN_MAKE" = x; then 20249 { $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 20250 $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;} 20251 else 20252 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20254 MAKE_EXPECTED_ENV='cygwin' 20255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20256 MAKE_EXPECTED_ENV='msys' 20257 else 20258 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20259 fi 20260 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20261 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20262 else 20263 # Not relevant for non-Windows 20264 IS_MAKE_CORRECT_ENV=true 20265 fi 20266 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20267 { $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 20268 $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;} 20269 else 20270 FOUND_MAKE=$MAKE_CANDIDATE 20271 20272 # Only process if variable expands to non-empty 20273 20274 if test "x$FOUND_MAKE" != x; then 20275 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20276 20277 # First separate the path from the arguments. This will split at the first 20278 # space. 20279 complete="$FOUND_MAKE" 20280 path="${complete%% *}" 20281 tmp="$complete EOL" 20282 arguments="${tmp#* }" 20283 20284 # Input might be given as Windows format, start by converting to 20285 # unix format. 20286 new_path=`$CYGPATH -u "$path"` 20287 20288 # Now try to locate executable using which 20289 new_path=`$WHICH "$new_path" 2> /dev/null` 20290 # bat and cmd files are not always considered executable in cygwin causing which 20291 # to not find them 20292 if test "x$new_path" = x \ 20293 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20294 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20295 new_path=`$CYGPATH -u "$path"` 20296 fi 20297 if test "x$new_path" = x; then 20298 # Oops. Which didn't find the executable. 20299 # The splitting of arguments from the executable at a space might have been incorrect, 20300 # since paths with space are more likely in Windows. Give it another try with the whole 20301 # argument. 20302 path="$complete" 20303 arguments="EOL" 20304 new_path=`$CYGPATH -u "$path"` 20305 new_path=`$WHICH "$new_path" 2> /dev/null` 20306 # bat and cmd files are not always considered executable in cygwin causing which 20307 # to not find them 20308 if test "x$new_path" = x \ 20309 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20310 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20311 new_path=`$CYGPATH -u "$path"` 20312 fi 20313 if test "x$new_path" = x; then 20314 # It's still not found. Now this is an unrecoverable error. 20315 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20316 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20317 has_space=`$ECHO "$complete" | $GREP " "` 20318 if test "x$has_space" != x; then 20319 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20320 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20321 fi 20322 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20323 fi 20324 fi 20325 20326 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20327 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20328 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20329 # "foo.exe" is OK but "foo" is an error. 20330 # 20331 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20332 # It is also a way to make sure we got the proper file name for the real test later on. 20333 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20334 if test "x$test_shortpath" = x; then 20335 # Short path failed, file does not exist as specified. 20336 # Try adding .exe or .cmd 20337 if test -f "${new_path}.exe"; then 20338 input_to_shortpath="${new_path}.exe" 20339 elif test -f "${new_path}.cmd"; then 20340 input_to_shortpath="${new_path}.cmd" 20341 else 20342 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20343 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20344 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20345 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20346 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20347 fi 20348 else 20349 input_to_shortpath="$new_path" 20350 fi 20351 20352 # Call helper function which possibly converts this using DOS-style short mode. 20353 # If so, the updated path is stored in $new_path. 20354 new_path="$input_to_shortpath" 20355 20356 input_path="$input_to_shortpath" 20357 # Check if we need to convert this using DOS-style short mode. If the path 20358 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20359 # take no chances and rewrite it. 20360 # Note: m4 eats our [], so we need to use [ and ] instead. 20361 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20362 if test "x$has_forbidden_chars" != x; then 20363 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20364 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20365 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20366 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20367 # Going to short mode and back again did indeed matter. Since short mode is 20368 # case insensitive, let's make it lowercase to improve readability. 20369 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20370 # Now convert it back to Unix-style (cygpath) 20371 input_path=`$CYGPATH -u "$shortmode_path"` 20372 new_path="$input_path" 20373 fi 20374 fi 20375 20376 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20377 if test "x$test_cygdrive_prefix" = x; then 20378 # As a simple fix, exclude /usr/bin since it's not a real path. 20379 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20380 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20381 # a path prefixed by /cygdrive for fixpath to work. 20382 new_path="$CYGWIN_ROOT_PATH$input_path" 20383 fi 20384 fi 20385 20386 # remove trailing .exe if any 20387 new_path="${new_path/%.exe/}" 20388 20389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20390 20391 # First separate the path from the arguments. This will split at the first 20392 # space. 20393 complete="$FOUND_MAKE" 20394 path="${complete%% *}" 20395 tmp="$complete EOL" 20396 arguments="${tmp#* }" 20397 20398 # Input might be given as Windows format, start by converting to 20399 # unix format. 20400 new_path="$path" 20401 20402 windows_path="$new_path" 20403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20404 unix_path=`$CYGPATH -u "$windows_path"` 20405 new_path="$unix_path" 20406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20408 new_path="$unix_path" 20409 fi 20410 20411 20412 # Now try to locate executable using which 20413 new_path=`$WHICH "$new_path" 2> /dev/null` 20414 20415 if test "x$new_path" = x; then 20416 # Oops. Which didn't find the executable. 20417 # The splitting of arguments from the executable at a space might have been incorrect, 20418 # since paths with space are more likely in Windows. Give it another try with the whole 20419 # argument. 20420 path="$complete" 20421 arguments="EOL" 20422 new_path="$path" 20423 20424 windows_path="$new_path" 20425 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20426 unix_path=`$CYGPATH -u "$windows_path"` 20427 new_path="$unix_path" 20428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20429 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20430 new_path="$unix_path" 20431 fi 20432 20433 20434 new_path=`$WHICH "$new_path" 2> /dev/null` 20435 # bat and cmd files are not always considered executable in MSYS causing which 20436 # to not find them 20437 if test "x$new_path" = x \ 20438 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20439 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20440 new_path="$path" 20441 20442 windows_path="$new_path" 20443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20444 unix_path=`$CYGPATH -u "$windows_path"` 20445 new_path="$unix_path" 20446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20448 new_path="$unix_path" 20449 fi 20450 20451 fi 20452 20453 if test "x$new_path" = x; then 20454 # It's still not found. Now this is an unrecoverable error. 20455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20456 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20457 has_space=`$ECHO "$complete" | $GREP " "` 20458 if test "x$has_space" != x; then 20459 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20460 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20461 fi 20462 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20463 fi 20464 fi 20465 20466 # Now new_path has a complete unix path to the binary 20467 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20468 # Keep paths in /bin as-is, but remove trailing .exe if any 20469 new_path="${new_path/%.exe/}" 20470 # Do not save /bin paths to all_fixpath_prefixes! 20471 else 20472 # Not in mixed or Windows style, start by that. 20473 new_path=`cmd //c echo $new_path` 20474 20475 input_path="$new_path" 20476 # Check if we need to convert this using DOS-style short mode. If the path 20477 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20478 # take no chances and rewrite it. 20479 # Note: m4 eats our [], so we need to use [ and ] instead. 20480 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20481 if test "x$has_forbidden_chars" != x; then 20482 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20483 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20484 fi 20485 20486 # Output is in $new_path 20487 20488 windows_path="$new_path" 20489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20490 unix_path=`$CYGPATH -u "$windows_path"` 20491 new_path="$unix_path" 20492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20494 new_path="$unix_path" 20495 fi 20496 20497 # remove trailing .exe if any 20498 new_path="${new_path/%.exe/}" 20499 20500 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20501 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20502 fi 20503 20504 else 20505 # We're on a unix platform. Hooray! :) 20506 # First separate the path from the arguments. This will split at the first 20507 # space. 20508 complete="$FOUND_MAKE" 20509 path="${complete%% *}" 20510 tmp="$complete EOL" 20511 arguments="${tmp#* }" 20512 20513 # Cannot rely on the command "which" here since it doesn't always work. 20514 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20515 if test -z "$is_absolute_path"; then 20516 # Path to executable is not absolute. Find it. 20517 IFS_save="$IFS" 20518 IFS=: 20519 for p in $PATH; do 20520 if test -f "$p/$path" && test -x "$p/$path"; then 20521 new_path="$p/$path" 20522 break 20523 fi 20524 done 20525 IFS="$IFS_save" 20526 else 20527 # This is an absolute path, we can use it without further modifications. 20528 new_path="$path" 20529 fi 20530 20531 if test "x$new_path" = x; then 20532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20533 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20534 has_space=`$ECHO "$complete" | $GREP " "` 20535 if test "x$has_space" != x; then 20536 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20537 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20538 fi 20539 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20540 fi 20541 fi 20542 20543 # Now join together the path and the arguments once again 20544 if test "x$arguments" != xEOL; then 20545 new_complete="$new_path ${arguments% *}" 20546 else 20547 new_complete="$new_path" 20548 fi 20549 20550 if test "x$complete" != "x$new_complete"; then 20551 FOUND_MAKE="$new_complete" 20552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20553 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20554 fi 20555 fi 20556 20557 fi 20558 fi 20559 fi 20560 fi 20561 20562 if test "x$FOUND_MAKE" = x; then 20563 for ac_prog in make 20564 do 20565 # Extract the first word of "$ac_prog", so it can be a program name with args. 20566 set dummy $ac_prog; ac_word=$2 20567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20568 $as_echo_n "checking for $ac_word... " >&6; } 20569 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 20570 $as_echo_n "(cached) " >&6 20571 else 20572 case $CHECK_TOOLSDIR_MAKE in 20573 [\\/]* | ?:[\\/]*) 20574 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 20575 ;; 20576 *) 20577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20578 for as_dir in $PATH 20579 do 20580 IFS=$as_save_IFS 20581 test -z "$as_dir" && as_dir=. 20582 for ac_exec_ext in '' $ac_executable_extensions; do 20583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20584 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 20585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20586 break 2 20587 fi 20588 done 20589 done 20590 IFS=$as_save_IFS 20591 20592 ;; 20593 esac 20594 fi 20595 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 20596 if test -n "$CHECK_TOOLSDIR_MAKE"; then 20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 20598 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 20599 else 20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20601 $as_echo "no" >&6; } 20602 fi 20603 20604 20605 test -n "$CHECK_TOOLSDIR_MAKE" && break 20606 done 20607 20608 20609 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 20610 DESCRIPTION="make in tools-dir" 20611 20612 # On Cygwin, we require a newer version of make than on other platforms 20613 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20614 MAKE_VERSION_EXPR="-e 4\." 20615 MAKE_REQUIRED_VERSION="4.0" 20616 else 20617 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 20618 MAKE_REQUIRED_VERSION="3.81" 20619 fi 20620 20621 if test "x$MAKE_CANDIDATE" != x; then 20622 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 20623 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 20624 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 20625 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 20626 if test "x$IS_GNU_MAKE" = x; then 20627 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 20628 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 20629 else 20630 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 20631 if test "x$IS_MODERN_MAKE" = x; then 20632 { $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 20633 $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;} 20634 else 20635 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 20636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20637 MAKE_EXPECTED_ENV='cygwin' 20638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20639 MAKE_EXPECTED_ENV='msys' 20640 else 20641 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 20642 fi 20643 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 20644 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 20645 else 20646 # Not relevant for non-Windows 20647 IS_MAKE_CORRECT_ENV=true 20648 fi 20649 if test "x$IS_MAKE_CORRECT_ENV" = x; then 20650 { $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 20651 $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;} 20652 else 20653 FOUND_MAKE=$MAKE_CANDIDATE 20654 20655 # Only process if variable expands to non-empty 20656 20657 if test "x$FOUND_MAKE" != x; then 20658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20659 20660 # First separate the path from the arguments. This will split at the first 20661 # space. 20662 complete="$FOUND_MAKE" 20663 path="${complete%% *}" 20664 tmp="$complete EOL" 20665 arguments="${tmp#* }" 20666 20667 # Input might be given as Windows format, start by converting to 20668 # unix format. 20669 new_path=`$CYGPATH -u "$path"` 20670 20671 # Now try to locate executable using which 20672 new_path=`$WHICH "$new_path" 2> /dev/null` 20673 # bat and cmd files are not always considered executable in cygwin causing which 20674 # to not find them 20675 if test "x$new_path" = x \ 20676 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20677 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20678 new_path=`$CYGPATH -u "$path"` 20679 fi 20680 if test "x$new_path" = x; then 20681 # Oops. Which didn't find the executable. 20682 # The splitting of arguments from the executable at a space might have been incorrect, 20683 # since paths with space are more likely in Windows. Give it another try with the whole 20684 # argument. 20685 path="$complete" 20686 arguments="EOL" 20687 new_path=`$CYGPATH -u "$path"` 20688 new_path=`$WHICH "$new_path" 2> /dev/null` 20689 # bat and cmd files are not always considered executable in cygwin causing which 20690 # to not find them 20691 if test "x$new_path" = x \ 20692 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20693 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20694 new_path=`$CYGPATH -u "$path"` 20695 fi 20696 if test "x$new_path" = x; then 20697 # It's still not found. Now this is an unrecoverable error. 20698 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20699 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20700 has_space=`$ECHO "$complete" | $GREP " "` 20701 if test "x$has_space" != x; then 20702 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20703 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20704 fi 20705 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20706 fi 20707 fi 20708 20709 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20710 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20711 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20712 # "foo.exe" is OK but "foo" is an error. 20713 # 20714 # This test is therefore slightly more accurate than "test -f" to check for file presence. 20715 # It is also a way to make sure we got the proper file name for the real test later on. 20716 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20717 if test "x$test_shortpath" = x; then 20718 # Short path failed, file does not exist as specified. 20719 # Try adding .exe or .cmd 20720 if test -f "${new_path}.exe"; then 20721 input_to_shortpath="${new_path}.exe" 20722 elif test -f "${new_path}.cmd"; then 20723 input_to_shortpath="${new_path}.cmd" 20724 else 20725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 20726 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 20727 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 20728 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 20729 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20730 fi 20731 else 20732 input_to_shortpath="$new_path" 20733 fi 20734 20735 # Call helper function which possibly converts this using DOS-style short mode. 20736 # If so, the updated path is stored in $new_path. 20737 new_path="$input_to_shortpath" 20738 20739 input_path="$input_to_shortpath" 20740 # Check if we need to convert this using DOS-style short mode. If the path 20741 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20742 # take no chances and rewrite it. 20743 # Note: m4 eats our [], so we need to use [ and ] instead. 20744 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20745 if test "x$has_forbidden_chars" != x; then 20746 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20747 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20748 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20749 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20750 # Going to short mode and back again did indeed matter. Since short mode is 20751 # case insensitive, let's make it lowercase to improve readability. 20752 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20753 # Now convert it back to Unix-style (cygpath) 20754 input_path=`$CYGPATH -u "$shortmode_path"` 20755 new_path="$input_path" 20756 fi 20757 fi 20758 20759 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20760 if test "x$test_cygdrive_prefix" = x; then 20761 # As a simple fix, exclude /usr/bin since it's not a real path. 20762 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 20763 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20764 # a path prefixed by /cygdrive for fixpath to work. 20765 new_path="$CYGWIN_ROOT_PATH$input_path" 20766 fi 20767 fi 20768 20769 # remove trailing .exe if any 20770 new_path="${new_path/%.exe/}" 20771 20772 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20773 20774 # First separate the path from the arguments. This will split at the first 20775 # space. 20776 complete="$FOUND_MAKE" 20777 path="${complete%% *}" 20778 tmp="$complete EOL" 20779 arguments="${tmp#* }" 20780 20781 # Input might be given as Windows format, start by converting to 20782 # unix format. 20783 new_path="$path" 20784 20785 windows_path="$new_path" 20786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20787 unix_path=`$CYGPATH -u "$windows_path"` 20788 new_path="$unix_path" 20789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20791 new_path="$unix_path" 20792 fi 20793 20794 20795 # Now try to locate executable using which 20796 new_path=`$WHICH "$new_path" 2> /dev/null` 20797 20798 if test "x$new_path" = x; then 20799 # Oops. Which didn't find the executable. 20800 # The splitting of arguments from the executable at a space might have been incorrect, 20801 # since paths with space are more likely in Windows. Give it another try with the whole 20802 # argument. 20803 path="$complete" 20804 arguments="EOL" 20805 new_path="$path" 20806 20807 windows_path="$new_path" 20808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20809 unix_path=`$CYGPATH -u "$windows_path"` 20810 new_path="$unix_path" 20811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20813 new_path="$unix_path" 20814 fi 20815 20816 20817 new_path=`$WHICH "$new_path" 2> /dev/null` 20818 # bat and cmd files are not always considered executable in MSYS causing which 20819 # to not find them 20820 if test "x$new_path" = x \ 20821 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 20822 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 20823 new_path="$path" 20824 20825 windows_path="$new_path" 20826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20827 unix_path=`$CYGPATH -u "$windows_path"` 20828 new_path="$unix_path" 20829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20831 new_path="$unix_path" 20832 fi 20833 20834 fi 20835 20836 if test "x$new_path" = x; then 20837 # It's still not found. Now this is an unrecoverable error. 20838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20839 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20840 has_space=`$ECHO "$complete" | $GREP " "` 20841 if test "x$has_space" != x; then 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 20843 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 20844 fi 20845 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20846 fi 20847 fi 20848 20849 # Now new_path has a complete unix path to the binary 20850 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 20851 # Keep paths in /bin as-is, but remove trailing .exe if any 20852 new_path="${new_path/%.exe/}" 20853 # Do not save /bin paths to all_fixpath_prefixes! 20854 else 20855 # Not in mixed or Windows style, start by that. 20856 new_path=`cmd //c echo $new_path` 20857 20858 input_path="$new_path" 20859 # Check if we need to convert this using DOS-style short mode. If the path 20860 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20861 # take no chances and rewrite it. 20862 # Note: m4 eats our [], so we need to use [ and ] instead. 20863 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20864 if test "x$has_forbidden_chars" != x; then 20865 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20866 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20867 fi 20868 20869 # Output is in $new_path 20870 20871 windows_path="$new_path" 20872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20873 unix_path=`$CYGPATH -u "$windows_path"` 20874 new_path="$unix_path" 20875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20877 new_path="$unix_path" 20878 fi 20879 20880 # remove trailing .exe if any 20881 new_path="${new_path/%.exe/}" 20882 20883 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20884 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20885 fi 20886 20887 else 20888 # We're on a unix platform. Hooray! :) 20889 # First separate the path from the arguments. This will split at the first 20890 # space. 20891 complete="$FOUND_MAKE" 20892 path="${complete%% *}" 20893 tmp="$complete EOL" 20894 arguments="${tmp#* }" 20895 20896 # Cannot rely on the command "which" here since it doesn't always work. 20897 is_absolute_path=`$ECHO "$path" | $GREP ^/` 20898 if test -z "$is_absolute_path"; then 20899 # Path to executable is not absolute. Find it. 20900 IFS_save="$IFS" 20901 IFS=: 20902 for p in $PATH; do 20903 if test -f "$p/$path" && test -x "$p/$path"; then 20904 new_path="$p/$path" 20905 break 20906 fi 20907 done 20908 IFS="$IFS_save" 20909 else 20910 # This is an absolute path, we can use it without further modifications. 20911 new_path="$path" 20912 fi 20913 20914 if test "x$new_path" = x; then 20915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 20916 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 20917 has_space=`$ECHO "$complete" | $GREP " "` 20918 if test "x$has_space" != x; then 20919 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 20920 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 20921 fi 20922 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 20923 fi 20924 fi 20925 20926 # Now join together the path and the arguments once again 20927 if test "x$arguments" != xEOL; then 20928 new_complete="$new_path ${arguments% *}" 20929 else 20930 new_complete="$new_path" 20931 fi 20932 20933 if test "x$complete" != "x$new_complete"; then 20934 FOUND_MAKE="$new_complete" 20935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 20936 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 20937 fi 20938 fi 20939 20940 fi 20941 fi 20942 fi 20943 fi 20944 20945 fi 20946 PATH=$OLD_PATH 20947 fi 20948 fi 20949 20950 if test "x$FOUND_MAKE" = x; then 20951 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 20952 fi 20953 20954 else 20955 # If it succeeded, then it was overridden by the user. We will use it 20956 # for the tool. 20957 20958 # First remove it from the list of overridden variables, so we can test 20959 # for unknown variables in the end. 20960 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 20961 20962 # Check if we try to supply an empty value 20963 if test "x$MAKE" = x; then 20964 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool MAKE= (no value)" >&5 20965 $as_echo "$as_me: Setting user supplied tool MAKE= (no value)" >&6;} 20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 20967 $as_echo_n "checking for MAKE... " >&6; } 20968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 20969 $as_echo "disabled" >&6; } 20970 else 20971 # Check if the provided tool contains a complete path. 20972 tool_specified="$MAKE" 20973 tool_basename="${tool_specified##*/}" 20974 if test "x$tool_basename" = "x$tool_specified"; then 20975 # A command without a complete path is provided, search $PATH. 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MAKE=$tool_basename" >&5 20977 $as_echo "$as_me: Will search for user supplied tool MAKE=$tool_basename" >&6;} 20978 # Extract the first word of "$tool_basename", so it can be a program name with args. 20979 set dummy $tool_basename; ac_word=$2 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20981 $as_echo_n "checking for $ac_word... " >&6; } 20982 if ${ac_cv_path_MAKE+:} false; then : 20983 $as_echo_n "(cached) " >&6 20984 else 20985 case $MAKE in 20986 [\\/]* | ?:[\\/]*) 20987 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 20988 ;; 20989 *) 20990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20991 for as_dir in $PATH 20992 do 20993 IFS=$as_save_IFS 20994 test -z "$as_dir" && as_dir=. 20995 for ac_exec_ext in '' $ac_executable_extensions; do 20996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20997 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 20998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20999 break 2 21000 fi 21001 done 21002 done 21003 IFS=$as_save_IFS 21004 21005 ;; 21006 esac 21007 fi 21008 MAKE=$ac_cv_path_MAKE 21009 if test -n "$MAKE"; then 21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 21011 $as_echo "$MAKE" >&6; } 21012 else 21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21014 $as_echo "no" >&6; } 21015 fi 21016 21017 21018 if test "x$MAKE" = x; then 21019 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21020 fi 21021 else 21022 # Otherwise we believe it is a complete path. Use it as it is. 21023 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MAKE=$tool_specified" >&5 21024 $as_echo "$as_me: Will use user supplied tool MAKE=$tool_specified" >&6;} 21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAKE" >&5 21026 $as_echo_n "checking for MAKE... " >&6; } 21027 if test ! -x "$tool_specified"; then 21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21029 $as_echo "not found" >&6; } 21030 as_fn_error $? "User supplied tool MAKE=$tool_specified does not exist or is not executable" "$LINENO" 5 21031 fi 21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21033 $as_echo "$tool_specified" >&6; } 21034 fi 21035 fi 21036 fi 21037 21038 # If MAKE was set by user, verify the version 21039 21040 MAKE_CANDIDATE=""$MAKE"" 21041 DESCRIPTION="user supplied MAKE=$MAKE" 21042 21043 # On Cygwin, we require a newer version of make than on other platforms 21044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21045 MAKE_VERSION_EXPR="-e 4\." 21046 MAKE_REQUIRED_VERSION="4.0" 21047 else 21048 MAKE_VERSION_EXPR="-e 3\.8[12] -e 4\." 21049 MAKE_REQUIRED_VERSION="3.81" 21050 fi 21051 21052 if test "x$MAKE_CANDIDATE" != x; then 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 21054 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 21055 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 21056 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 21057 if test "x$IS_GNU_MAKE" = x; then 21058 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 21059 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 21060 else 21061 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP $MAKE_VERSION_EXPR` 21062 if test "x$IS_MODERN_MAKE" = x; then 21063 { $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 21064 $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;} 21065 else 21066 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 21067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21068 MAKE_EXPECTED_ENV='cygwin' 21069 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21070 MAKE_EXPECTED_ENV='msys' 21071 else 21072 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 21073 fi 21074 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 21075 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 21076 else 21077 # Not relevant for non-Windows 21078 IS_MAKE_CORRECT_ENV=true 21079 fi 21080 if test "x$IS_MAKE_CORRECT_ENV" = x; then 21081 { $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 21082 $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;} 21083 else 21084 FOUND_MAKE=$MAKE_CANDIDATE 21085 21086 # Only process if variable expands to non-empty 21087 21088 if test "x$FOUND_MAKE" != x; then 21089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21090 21091 # First separate the path from the arguments. This will split at the first 21092 # space. 21093 complete="$FOUND_MAKE" 21094 path="${complete%% *}" 21095 tmp="$complete EOL" 21096 arguments="${tmp#* }" 21097 21098 # Input might be given as Windows format, start by converting to 21099 # unix format. 21100 new_path=`$CYGPATH -u "$path"` 21101 21102 # Now try to locate executable using which 21103 new_path=`$WHICH "$new_path" 2> /dev/null` 21104 # bat and cmd files are not always considered executable in cygwin causing which 21105 # to not find them 21106 if test "x$new_path" = x \ 21107 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21108 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21109 new_path=`$CYGPATH -u "$path"` 21110 fi 21111 if test "x$new_path" = x; then 21112 # Oops. Which didn't find the executable. 21113 # The splitting of arguments from the executable at a space might have been incorrect, 21114 # since paths with space are more likely in Windows. Give it another try with the whole 21115 # argument. 21116 path="$complete" 21117 arguments="EOL" 21118 new_path=`$CYGPATH -u "$path"` 21119 new_path=`$WHICH "$new_path" 2> /dev/null` 21120 # bat and cmd files are not always considered executable in cygwin causing which 21121 # to not find them 21122 if test "x$new_path" = x \ 21123 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21124 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21125 new_path=`$CYGPATH -u "$path"` 21126 fi 21127 if test "x$new_path" = x; then 21128 # It's still not found. Now this is an unrecoverable error. 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21130 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21131 has_space=`$ECHO "$complete" | $GREP " "` 21132 if test "x$has_space" != x; then 21133 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21134 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21135 fi 21136 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21137 fi 21138 fi 21139 21140 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21141 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21142 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21143 # "foo.exe" is OK but "foo" is an error. 21144 # 21145 # This test is therefore slightly more accurate than "test -f" to check for file presence. 21146 # It is also a way to make sure we got the proper file name for the real test later on. 21147 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21148 if test "x$test_shortpath" = x; then 21149 # Short path failed, file does not exist as specified. 21150 # Try adding .exe or .cmd 21151 if test -f "${new_path}.exe"; then 21152 input_to_shortpath="${new_path}.exe" 21153 elif test -f "${new_path}.cmd"; then 21154 input_to_shortpath="${new_path}.cmd" 21155 else 21156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 21157 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 21159 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 21160 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21161 fi 21162 else 21163 input_to_shortpath="$new_path" 21164 fi 21165 21166 # Call helper function which possibly converts this using DOS-style short mode. 21167 # If so, the updated path is stored in $new_path. 21168 new_path="$input_to_shortpath" 21169 21170 input_path="$input_to_shortpath" 21171 # Check if we need to convert this using DOS-style short mode. If the path 21172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21173 # take no chances and rewrite it. 21174 # Note: m4 eats our [], so we need to use [ and ] instead. 21175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21176 if test "x$has_forbidden_chars" != x; then 21177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21178 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21179 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21180 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21181 # Going to short mode and back again did indeed matter. Since short mode is 21182 # case insensitive, let's make it lowercase to improve readability. 21183 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21184 # Now convert it back to Unix-style (cygpath) 21185 input_path=`$CYGPATH -u "$shortmode_path"` 21186 new_path="$input_path" 21187 fi 21188 fi 21189 21190 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21191 if test "x$test_cygdrive_prefix" = x; then 21192 # As a simple fix, exclude /usr/bin since it's not a real path. 21193 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 21194 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21195 # a path prefixed by /cygdrive for fixpath to work. 21196 new_path="$CYGWIN_ROOT_PATH$input_path" 21197 fi 21198 fi 21199 21200 # remove trailing .exe if any 21201 new_path="${new_path/%.exe/}" 21202 21203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21204 21205 # First separate the path from the arguments. This will split at the first 21206 # space. 21207 complete="$FOUND_MAKE" 21208 path="${complete%% *}" 21209 tmp="$complete EOL" 21210 arguments="${tmp#* }" 21211 21212 # Input might be given as Windows format, start by converting to 21213 # unix format. 21214 new_path="$path" 21215 21216 windows_path="$new_path" 21217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21218 unix_path=`$CYGPATH -u "$windows_path"` 21219 new_path="$unix_path" 21220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21222 new_path="$unix_path" 21223 fi 21224 21225 21226 # Now try to locate executable using which 21227 new_path=`$WHICH "$new_path" 2> /dev/null` 21228 21229 if test "x$new_path" = x; then 21230 # Oops. Which didn't find the executable. 21231 # The splitting of arguments from the executable at a space might have been incorrect, 21232 # since paths with space are more likely in Windows. Give it another try with the whole 21233 # argument. 21234 path="$complete" 21235 arguments="EOL" 21236 new_path="$path" 21237 21238 windows_path="$new_path" 21239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21240 unix_path=`$CYGPATH -u "$windows_path"` 21241 new_path="$unix_path" 21242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21244 new_path="$unix_path" 21245 fi 21246 21247 21248 new_path=`$WHICH "$new_path" 2> /dev/null` 21249 # bat and cmd files are not always considered executable in MSYS causing which 21250 # to not find them 21251 if test "x$new_path" = x \ 21252 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 21253 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 21254 new_path="$path" 21255 21256 windows_path="$new_path" 21257 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21258 unix_path=`$CYGPATH -u "$windows_path"` 21259 new_path="$unix_path" 21260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21261 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21262 new_path="$unix_path" 21263 fi 21264 21265 fi 21266 21267 if test "x$new_path" = x; then 21268 # It's still not found. Now this is an unrecoverable error. 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21270 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21271 has_space=`$ECHO "$complete" | $GREP " "` 21272 if test "x$has_space" != x; then 21273 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 21274 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 21275 fi 21276 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21277 fi 21278 fi 21279 21280 # Now new_path has a complete unix path to the binary 21281 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 21282 # Keep paths in /bin as-is, but remove trailing .exe if any 21283 new_path="${new_path/%.exe/}" 21284 # Do not save /bin paths to all_fixpath_prefixes! 21285 else 21286 # Not in mixed or Windows style, start by that. 21287 new_path=`cmd //c echo $new_path` 21288 21289 input_path="$new_path" 21290 # Check if we need to convert this using DOS-style short mode. If the path 21291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21292 # take no chances and rewrite it. 21293 # Note: m4 eats our [], so we need to use [ and ] instead. 21294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21295 if test "x$has_forbidden_chars" != x; then 21296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21298 fi 21299 21300 # Output is in $new_path 21301 21302 windows_path="$new_path" 21303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21304 unix_path=`$CYGPATH -u "$windows_path"` 21305 new_path="$unix_path" 21306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21308 new_path="$unix_path" 21309 fi 21310 21311 # remove trailing .exe if any 21312 new_path="${new_path/%.exe/}" 21313 21314 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21315 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21316 fi 21317 21318 else 21319 # We're on a unix platform. Hooray! :) 21320 # First separate the path from the arguments. This will split at the first 21321 # space. 21322 complete="$FOUND_MAKE" 21323 path="${complete%% *}" 21324 tmp="$complete EOL" 21325 arguments="${tmp#* }" 21326 21327 # Cannot rely on the command "which" here since it doesn't always work. 21328 is_absolute_path=`$ECHO "$path" | $GREP ^/` 21329 if test -z "$is_absolute_path"; then 21330 # Path to executable is not absolute. Find it. 21331 IFS_save="$IFS" 21332 IFS=: 21333 for p in $PATH; do 21334 if test -f "$p/$path" && test -x "$p/$path"; then 21335 new_path="$p/$path" 21336 break 21337 fi 21338 done 21339 IFS="$IFS_save" 21340 else 21341 # This is an absolute path, we can use it without further modifications. 21342 new_path="$path" 21343 fi 21344 21345 if test "x$new_path" = x; then 21346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 21347 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 21348 has_space=`$ECHO "$complete" | $GREP " "` 21349 if test "x$has_space" != x; then 21350 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 21351 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 21352 fi 21353 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 21354 fi 21355 fi 21356 21357 # Now join together the path and the arguments once again 21358 if test "x$arguments" != xEOL; then 21359 new_complete="$new_path ${arguments% *}" 21360 else 21361 new_complete="$new_path" 21362 fi 21363 21364 if test "x$complete" != "x$new_complete"; then 21365 FOUND_MAKE="$new_complete" 21366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 21367 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 21368 fi 21369 fi 21370 21371 fi 21372 fi 21373 fi 21374 fi 21375 21376 if test "x$FOUND_MAKE" = x; then 21377 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make $MAKE_REQUIRED_VERSION or newer." "$LINENO" 5 21378 fi 21379 21380 fi 21381 21382 21383 MAKE=$FOUND_MAKE 21384 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 21386 $as_echo "$as_me: Using GNU make at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 21387 21388 21389 # Check if make supports the output sync option and if so, setup using it. 21390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 21391 $as_echo_n "checking if make --output-sync is supported... " >&6; } 21392 if $MAKE --version -O > /dev/null 2>&1; then 21393 OUTPUT_SYNC_SUPPORTED=true 21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21395 $as_echo "yes" >&6; } 21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 21397 $as_echo_n "checking for output-sync value... " >&6; } 21398 21399 # Check whether --with-output-sync was given. 21400 if test "${with_output_sync+set}" = set; then : 21401 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 21402 fi 21403 21404 if test "x$OUTPUT_SYNC" = "x"; then 21405 OUTPUT_SYNC=none 21406 fi 21407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 21408 $as_echo "$OUTPUT_SYNC" >&6; } 21409 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 21410 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 21411 fi 21412 else 21413 OUTPUT_SYNC_SUPPORTED=false 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21415 $as_echo "no" >&6; } 21416 fi 21417 21418 21419 21420 21421 21422 21423 # Test if find supports -delete 21424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 21425 $as_echo_n "checking if find supports -delete... " >&6; } 21426 FIND_DELETE="-delete" 21427 21428 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 21429 21430 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 21431 21432 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 21433 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 21434 # No, it does not. 21435 $RM $DELETEDIR/TestIfFindSupportsDelete 21436 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21437 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 21438 FIND_DELETE="-print | $XARGS $RM" 21439 else 21440 FIND_DELETE="-exec $RM \{\} \+" 21441 fi 21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21443 $as_echo "no" >&6; } 21444 else 21445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21446 $as_echo "yes" >&6; } 21447 fi 21448 $RMDIR $DELETEDIR 21449 21450 21451 21452 # Test which kind of tar was found 21453 if test "x$($TAR --version | $GREP "GNU tar")" != "x"; then 21454 TAR_TYPE="gnu" 21455 elif test "x$($TAR --version | $GREP "bsdtar")" != "x"; then 21456 TAR_TYPE="bsd" 21457 elif test "x$($TAR -v | $GREP "bsdtar")" != "x"; then 21458 TAR_TYPE="bsd" 21459 elif test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 21460 TAR_TYPE="solaris" 21461 fi 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of tar was found" >&5 21463 $as_echo_n "checking what type of tar was found... " >&6; } 21464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR_TYPE" >&5 21465 $as_echo "$TAR_TYPE" >&6; } 21466 21467 TAR_CREATE_FILE_PARAM="" 21468 21469 if test "x$TAR_TYPE" = "xgnu"; then 21470 TAR_INCLUDE_PARAM="T" 21471 TAR_SUPPORTS_TRANSFORM="true" 21472 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 21473 # When using gnu tar for Solaris targets, need to use compatibility mode 21474 TAR_CREATE_EXTRA_PARAM="--format=ustar" 21475 fi 21476 else 21477 TAR_INCLUDE_PARAM="I" 21478 TAR_SUPPORTS_TRANSFORM="false" 21479 fi 21480 21481 21482 21483 21484 21485 21486 # Test that grep supports -Fx with a list of pattern which includes null pattern. 21487 # This is a problem for the grep resident on AIX. 21488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly" >&5 21489 $as_echo_n "checking that grep ($GREP) -Fx handles empty lines in the pattern list correctly... " >&6; } 21490 # Multiple subsequent spaces.. 21491 STACK_SPACES='aaa bbb ccc' 21492 # ..converted to subsequent newlines, causes STACK_LIST to be a list with some empty 21493 # patterns in it. 21494 STACK_LIST=${STACK_SPACES// /$'\n'} 21495 NEEDLE_SPACES='ccc bbb aaa' 21496 NEEDLE_LIST=${NEEDLE_SPACES// /$'\n'} 21497 RESULT="$($GREP -Fvx "$STACK_LIST" <<< "$NEEDLE_LIST")" 21498 if test "x$RESULT" == "x"; then 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21500 $as_echo "yes" >&6; } 21501 else 21502 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 21503 ADDINFO="Please make sure you use GNU grep, usually found at /opt/freeware/bin." 21504 fi 21505 as_fn_error $? "grep does not handle -Fx correctly. ${ADDINFO}" "$LINENO" 5 21506 fi 21507 21508 21509 # These tools might not be installed by default, 21510 # need hint on how to install them. 21511 21512 21513 21514 # Publish this variable in the help. 21515 21516 21517 if [ -z "${UNZIP+x}" ]; then 21518 # The variable is not set by user, try to locate tool using the code snippet 21519 for ac_prog in unzip 21520 do 21521 # Extract the first word of "$ac_prog", so it can be a program name with args. 21522 set dummy $ac_prog; ac_word=$2 21523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21524 $as_echo_n "checking for $ac_word... " >&6; } 21525 if ${ac_cv_path_UNZIP+:} false; then : 21526 $as_echo_n "(cached) " >&6 21527 else 21528 case $UNZIP in 21529 [\\/]* | ?:[\\/]*) 21530 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21531 ;; 21532 *) 21533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21534 for as_dir in $PATH 21535 do 21536 IFS=$as_save_IFS 21537 test -z "$as_dir" && as_dir=. 21538 for ac_exec_ext in '' $ac_executable_extensions; do 21539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21540 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21542 break 2 21543 fi 21544 done 21545 done 21546 IFS=$as_save_IFS 21547 21548 ;; 21549 esac 21550 fi 21551 UNZIP=$ac_cv_path_UNZIP 21552 if test -n "$UNZIP"; then 21553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21554 $as_echo "$UNZIP" >&6; } 21555 else 21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21557 $as_echo "no" >&6; } 21558 fi 21559 21560 21561 test -n "$UNZIP" && break 21562 done 21563 21564 else 21565 # The variable is set, but is it from the command line or the environment? 21566 21567 # Try to remove the string !UNZIP! from our list. 21568 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 21569 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21570 # If it failed, the variable was not from the command line. Ignore it, 21571 # but warn the user (except for BASH, which is always set by the calling BASH). 21572 if test "xUNZIP" != xBASH; then 21573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 21574 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 21575 fi 21576 # Try to locate tool using the code snippet 21577 for ac_prog in unzip 21578 do 21579 # Extract the first word of "$ac_prog", so it can be a program name with args. 21580 set dummy $ac_prog; ac_word=$2 21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21582 $as_echo_n "checking for $ac_word... " >&6; } 21583 if ${ac_cv_path_UNZIP+:} false; then : 21584 $as_echo_n "(cached) " >&6 21585 else 21586 case $UNZIP in 21587 [\\/]* | ?:[\\/]*) 21588 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21589 ;; 21590 *) 21591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21592 for as_dir in $PATH 21593 do 21594 IFS=$as_save_IFS 21595 test -z "$as_dir" && as_dir=. 21596 for ac_exec_ext in '' $ac_executable_extensions; do 21597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21598 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21600 break 2 21601 fi 21602 done 21603 done 21604 IFS=$as_save_IFS 21605 21606 ;; 21607 esac 21608 fi 21609 UNZIP=$ac_cv_path_UNZIP 21610 if test -n "$UNZIP"; then 21611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21612 $as_echo "$UNZIP" >&6; } 21613 else 21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21615 $as_echo "no" >&6; } 21616 fi 21617 21618 21619 test -n "$UNZIP" && break 21620 done 21621 21622 else 21623 # If it succeeded, then it was overridden by the user. We will use it 21624 # for the tool. 21625 21626 # First remove it from the list of overridden variables, so we can test 21627 # for unknown variables in the end. 21628 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21629 21630 # Check if we try to supply an empty value 21631 if test "x$UNZIP" = x; then 21632 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool UNZIP= (no value)" >&5 21633 $as_echo "$as_me: Setting user supplied tool UNZIP= (no value)" >&6;} 21634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21635 $as_echo_n "checking for UNZIP... " >&6; } 21636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21637 $as_echo "disabled" >&6; } 21638 else 21639 # Check if the provided tool contains a complete path. 21640 tool_specified="$UNZIP" 21641 tool_basename="${tool_specified##*/}" 21642 if test "x$tool_basename" = "x$tool_specified"; then 21643 # A command without a complete path is provided, search $PATH. 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 21645 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 21646 # Extract the first word of "$tool_basename", so it can be a program name with args. 21647 set dummy $tool_basename; ac_word=$2 21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21649 $as_echo_n "checking for $ac_word... " >&6; } 21650 if ${ac_cv_path_UNZIP+:} false; then : 21651 $as_echo_n "(cached) " >&6 21652 else 21653 case $UNZIP in 21654 [\\/]* | ?:[\\/]*) 21655 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 21656 ;; 21657 *) 21658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21659 for as_dir in $PATH 21660 do 21661 IFS=$as_save_IFS 21662 test -z "$as_dir" && as_dir=. 21663 for ac_exec_ext in '' $ac_executable_extensions; do 21664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21665 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 21666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21667 break 2 21668 fi 21669 done 21670 done 21671 IFS=$as_save_IFS 21672 21673 ;; 21674 esac 21675 fi 21676 UNZIP=$ac_cv_path_UNZIP 21677 if test -n "$UNZIP"; then 21678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 21679 $as_echo "$UNZIP" >&6; } 21680 else 21681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21682 $as_echo "no" >&6; } 21683 fi 21684 21685 21686 if test "x$UNZIP" = x; then 21687 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21688 fi 21689 else 21690 # Otherwise we believe it is a complete path. Use it as it is. 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 21692 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 21693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 21694 $as_echo_n "checking for UNZIP... " >&6; } 21695 if test ! -x "$tool_specified"; then 21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21697 $as_echo "not found" >&6; } 21698 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 21699 fi 21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21701 $as_echo "$tool_specified" >&6; } 21702 fi 21703 fi 21704 fi 21705 21706 fi 21707 21708 21709 21710 if test "x$UNZIP" = x; then 21711 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 21712 fi 21713 21714 21715 # Since zip uses "ZIP" as a environment variable for passing options, we need 21716 # to name our variable differently, hence ZIPEXE. 21717 21718 21719 21720 # Publish this variable in the help. 21721 21722 21723 if [ -z "${ZIPEXE+x}" ]; then 21724 # The variable is not set by user, try to locate tool using the code snippet 21725 for ac_prog in zip 21726 do 21727 # Extract the first word of "$ac_prog", so it can be a program name with args. 21728 set dummy $ac_prog; ac_word=$2 21729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21730 $as_echo_n "checking for $ac_word... " >&6; } 21731 if ${ac_cv_path_ZIPEXE+:} false; then : 21732 $as_echo_n "(cached) " >&6 21733 else 21734 case $ZIPEXE in 21735 [\\/]* | ?:[\\/]*) 21736 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21737 ;; 21738 *) 21739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21740 for as_dir in $PATH 21741 do 21742 IFS=$as_save_IFS 21743 test -z "$as_dir" && as_dir=. 21744 for ac_exec_ext in '' $ac_executable_extensions; do 21745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21746 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21748 break 2 21749 fi 21750 done 21751 done 21752 IFS=$as_save_IFS 21753 21754 ;; 21755 esac 21756 fi 21757 ZIPEXE=$ac_cv_path_ZIPEXE 21758 if test -n "$ZIPEXE"; then 21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21760 $as_echo "$ZIPEXE" >&6; } 21761 else 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21763 $as_echo "no" >&6; } 21764 fi 21765 21766 21767 test -n "$ZIPEXE" && break 21768 done 21769 21770 else 21771 # The variable is set, but is it from the command line or the environment? 21772 21773 # Try to remove the string !ZIPEXE! from our list. 21774 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIPEXE!/} 21775 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21776 # If it failed, the variable was not from the command line. Ignore it, 21777 # but warn the user (except for BASH, which is always set by the calling BASH). 21778 if test "xZIPEXE" != xBASH; then 21779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&5 21780 $as_echo "$as_me: WARNING: Ignoring value of ZIPEXE from the environment. Use command line variables instead." >&2;} 21781 fi 21782 # Try to locate tool using the code snippet 21783 for ac_prog in zip 21784 do 21785 # Extract the first word of "$ac_prog", so it can be a program name with args. 21786 set dummy $ac_prog; ac_word=$2 21787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21788 $as_echo_n "checking for $ac_word... " >&6; } 21789 if ${ac_cv_path_ZIPEXE+:} false; then : 21790 $as_echo_n "(cached) " >&6 21791 else 21792 case $ZIPEXE in 21793 [\\/]* | ?:[\\/]*) 21794 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21795 ;; 21796 *) 21797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21798 for as_dir in $PATH 21799 do 21800 IFS=$as_save_IFS 21801 test -z "$as_dir" && as_dir=. 21802 for ac_exec_ext in '' $ac_executable_extensions; do 21803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21804 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21806 break 2 21807 fi 21808 done 21809 done 21810 IFS=$as_save_IFS 21811 21812 ;; 21813 esac 21814 fi 21815 ZIPEXE=$ac_cv_path_ZIPEXE 21816 if test -n "$ZIPEXE"; then 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21818 $as_echo "$ZIPEXE" >&6; } 21819 else 21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21821 $as_echo "no" >&6; } 21822 fi 21823 21824 21825 test -n "$ZIPEXE" && break 21826 done 21827 21828 else 21829 # If it succeeded, then it was overridden by the user. We will use it 21830 # for the tool. 21831 21832 # First remove it from the list of overridden variables, so we can test 21833 # for unknown variables in the end. 21834 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 21835 21836 # Check if we try to supply an empty value 21837 if test "x$ZIPEXE" = x; then 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ZIPEXE= (no value)" >&5 21839 $as_echo "$as_me: Setting user supplied tool ZIPEXE= (no value)" >&6;} 21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21841 $as_echo_n "checking for ZIPEXE... " >&6; } 21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 21843 $as_echo "disabled" >&6; } 21844 else 21845 # Check if the provided tool contains a complete path. 21846 tool_specified="$ZIPEXE" 21847 tool_basename="${tool_specified##*/}" 21848 if test "x$tool_basename" = "x$tool_specified"; then 21849 # A command without a complete path is provided, search $PATH. 21850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIPEXE=$tool_basename" >&5 21851 $as_echo "$as_me: Will search for user supplied tool ZIPEXE=$tool_basename" >&6;} 21852 # Extract the first word of "$tool_basename", so it can be a program name with args. 21853 set dummy $tool_basename; ac_word=$2 21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21855 $as_echo_n "checking for $ac_word... " >&6; } 21856 if ${ac_cv_path_ZIPEXE+:} false; then : 21857 $as_echo_n "(cached) " >&6 21858 else 21859 case $ZIPEXE in 21860 [\\/]* | ?:[\\/]*) 21861 ac_cv_path_ZIPEXE="$ZIPEXE" # Let the user override the test with a path. 21862 ;; 21863 *) 21864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21865 for as_dir in $PATH 21866 do 21867 IFS=$as_save_IFS 21868 test -z "$as_dir" && as_dir=. 21869 for ac_exec_ext in '' $ac_executable_extensions; do 21870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21871 ac_cv_path_ZIPEXE="$as_dir/$ac_word$ac_exec_ext" 21872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21873 break 2 21874 fi 21875 done 21876 done 21877 IFS=$as_save_IFS 21878 21879 ;; 21880 esac 21881 fi 21882 ZIPEXE=$ac_cv_path_ZIPEXE 21883 if test -n "$ZIPEXE"; then 21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIPEXE" >&5 21885 $as_echo "$ZIPEXE" >&6; } 21886 else 21887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21888 $as_echo "no" >&6; } 21889 fi 21890 21891 21892 if test "x$ZIPEXE" = x; then 21893 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 21894 fi 21895 else 21896 # Otherwise we believe it is a complete path. Use it as it is. 21897 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIPEXE=$tool_specified" >&5 21898 $as_echo "$as_me: Will use user supplied tool ZIPEXE=$tool_specified" >&6;} 21899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIPEXE" >&5 21900 $as_echo_n "checking for ZIPEXE... " >&6; } 21901 if test ! -x "$tool_specified"; then 21902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 21903 $as_echo "not found" >&6; } 21904 as_fn_error $? "User supplied tool ZIPEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 21905 fi 21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 21907 $as_echo "$tool_specified" >&6; } 21908 fi 21909 fi 21910 fi 21911 21912 fi 21913 21914 21915 21916 if test "x$ZIPEXE" = x; then 21917 as_fn_error $? "Could not find required tool for ZIPEXE" "$LINENO" 5 21918 fi 21919 21920 21921 21922 # Non-required basic tools 21923 21924 21925 21926 # Publish this variable in the help. 21927 21928 21929 if [ -z "${LDD+x}" ]; then 21930 # The variable is not set by user, try to locate tool using the code snippet 21931 for ac_prog in ldd 21932 do 21933 # Extract the first word of "$ac_prog", so it can be a program name with args. 21934 set dummy $ac_prog; ac_word=$2 21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21936 $as_echo_n "checking for $ac_word... " >&6; } 21937 if ${ac_cv_path_LDD+:} false; then : 21938 $as_echo_n "(cached) " >&6 21939 else 21940 case $LDD in 21941 [\\/]* | ?:[\\/]*) 21942 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 21943 ;; 21944 *) 21945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21946 for as_dir in $PATH 21947 do 21948 IFS=$as_save_IFS 21949 test -z "$as_dir" && as_dir=. 21950 for ac_exec_ext in '' $ac_executable_extensions; do 21951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21952 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 21953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21954 break 2 21955 fi 21956 done 21957 done 21958 IFS=$as_save_IFS 21959 21960 ;; 21961 esac 21962 fi 21963 LDD=$ac_cv_path_LDD 21964 if test -n "$LDD"; then 21965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 21966 $as_echo "$LDD" >&6; } 21967 else 21968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21969 $as_echo "no" >&6; } 21970 fi 21971 21972 21973 test -n "$LDD" && break 21974 done 21975 21976 else 21977 # The variable is set, but is it from the command line or the environment? 21978 21979 # Try to remove the string !LDD! from our list. 21980 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 21981 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 21982 # If it failed, the variable was not from the command line. Ignore it, 21983 # but warn the user (except for BASH, which is always set by the calling BASH). 21984 if test "xLDD" != xBASH; then 21985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 21986 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 21987 fi 21988 # Try to locate tool using the code snippet 21989 for ac_prog in ldd 21990 do 21991 # Extract the first word of "$ac_prog", so it can be a program name with args. 21992 set dummy $ac_prog; ac_word=$2 21993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21994 $as_echo_n "checking for $ac_word... " >&6; } 21995 if ${ac_cv_path_LDD+:} false; then : 21996 $as_echo_n "(cached) " >&6 21997 else 21998 case $LDD in 21999 [\\/]* | ?:[\\/]*) 22000 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22001 ;; 22002 *) 22003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22004 for as_dir in $PATH 22005 do 22006 IFS=$as_save_IFS 22007 test -z "$as_dir" && as_dir=. 22008 for ac_exec_ext in '' $ac_executable_extensions; do 22009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22010 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22012 break 2 22013 fi 22014 done 22015 done 22016 IFS=$as_save_IFS 22017 22018 ;; 22019 esac 22020 fi 22021 LDD=$ac_cv_path_LDD 22022 if test -n "$LDD"; then 22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22024 $as_echo "$LDD" >&6; } 22025 else 22026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22027 $as_echo "no" >&6; } 22028 fi 22029 22030 22031 test -n "$LDD" && break 22032 done 22033 22034 else 22035 # If it succeeded, then it was overridden by the user. We will use it 22036 # for the tool. 22037 22038 # First remove it from the list of overridden variables, so we can test 22039 # for unknown variables in the end. 22040 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22041 22042 # Check if we try to supply an empty value 22043 if test "x$LDD" = x; then 22044 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LDD= (no value)" >&5 22045 $as_echo "$as_me: Setting user supplied tool LDD= (no value)" >&6;} 22046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22047 $as_echo_n "checking for LDD... " >&6; } 22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22049 $as_echo "disabled" >&6; } 22050 else 22051 # Check if the provided tool contains a complete path. 22052 tool_specified="$LDD" 22053 tool_basename="${tool_specified##*/}" 22054 if test "x$tool_basename" = "x$tool_specified"; then 22055 # A command without a complete path is provided, search $PATH. 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 22057 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 22058 # Extract the first word of "$tool_basename", so it can be a program name with args. 22059 set dummy $tool_basename; ac_word=$2 22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22061 $as_echo_n "checking for $ac_word... " >&6; } 22062 if ${ac_cv_path_LDD+:} false; then : 22063 $as_echo_n "(cached) " >&6 22064 else 22065 case $LDD in 22066 [\\/]* | ?:[\\/]*) 22067 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 22068 ;; 22069 *) 22070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22071 for as_dir in $PATH 22072 do 22073 IFS=$as_save_IFS 22074 test -z "$as_dir" && as_dir=. 22075 for ac_exec_ext in '' $ac_executable_extensions; do 22076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22077 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 22078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22079 break 2 22080 fi 22081 done 22082 done 22083 IFS=$as_save_IFS 22084 22085 ;; 22086 esac 22087 fi 22088 LDD=$ac_cv_path_LDD 22089 if test -n "$LDD"; then 22090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 22091 $as_echo "$LDD" >&6; } 22092 else 22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22094 $as_echo "no" >&6; } 22095 fi 22096 22097 22098 if test "x$LDD" = x; then 22099 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22100 fi 22101 else 22102 # Otherwise we believe it is a complete path. Use it as it is. 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 22104 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 22105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 22106 $as_echo_n "checking for LDD... " >&6; } 22107 if test ! -x "$tool_specified"; then 22108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22109 $as_echo "not found" >&6; } 22110 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 22111 fi 22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22113 $as_echo "$tool_specified" >&6; } 22114 fi 22115 fi 22116 fi 22117 22118 fi 22119 22120 22121 if test "x$LDD" = "x"; then 22122 # List shared lib dependencies is used for 22123 # debug output and checking for forbidden dependencies. 22124 # We can build without it. 22125 LDD="true" 22126 fi 22127 22128 22129 # Publish this variable in the help. 22130 22131 22132 if [ -z "${READELF+x}" ]; then 22133 # The variable is not set by user, try to locate tool using the code snippet 22134 for ac_prog in greadelf readelf 22135 do 22136 # Extract the first word of "$ac_prog", so it can be a program name with args. 22137 set dummy $ac_prog; ac_word=$2 22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22139 $as_echo_n "checking for $ac_word... " >&6; } 22140 if ${ac_cv_path_READELF+:} false; then : 22141 $as_echo_n "(cached) " >&6 22142 else 22143 case $READELF in 22144 [\\/]* | ?:[\\/]*) 22145 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22146 ;; 22147 *) 22148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22149 for as_dir in $PATH 22150 do 22151 IFS=$as_save_IFS 22152 test -z "$as_dir" && as_dir=. 22153 for ac_exec_ext in '' $ac_executable_extensions; do 22154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22155 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22157 break 2 22158 fi 22159 done 22160 done 22161 IFS=$as_save_IFS 22162 22163 ;; 22164 esac 22165 fi 22166 READELF=$ac_cv_path_READELF 22167 if test -n "$READELF"; then 22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22169 $as_echo "$READELF" >&6; } 22170 else 22171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22172 $as_echo "no" >&6; } 22173 fi 22174 22175 22176 test -n "$READELF" && break 22177 done 22178 22179 else 22180 # The variable is set, but is it from the command line or the environment? 22181 22182 # Try to remove the string !READELF! from our list. 22183 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 22184 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22185 # If it failed, the variable was not from the command line. Ignore it, 22186 # but warn the user (except for BASH, which is always set by the calling BASH). 22187 if test "xREADELF" != xBASH; then 22188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 22189 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 22190 fi 22191 # Try to locate tool using the code snippet 22192 for ac_prog in greadelf readelf 22193 do 22194 # Extract the first word of "$ac_prog", so it can be a program name with args. 22195 set dummy $ac_prog; ac_word=$2 22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22197 $as_echo_n "checking for $ac_word... " >&6; } 22198 if ${ac_cv_path_READELF+:} false; then : 22199 $as_echo_n "(cached) " >&6 22200 else 22201 case $READELF in 22202 [\\/]* | ?:[\\/]*) 22203 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22204 ;; 22205 *) 22206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22207 for as_dir in $PATH 22208 do 22209 IFS=$as_save_IFS 22210 test -z "$as_dir" && as_dir=. 22211 for ac_exec_ext in '' $ac_executable_extensions; do 22212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22213 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22215 break 2 22216 fi 22217 done 22218 done 22219 IFS=$as_save_IFS 22220 22221 ;; 22222 esac 22223 fi 22224 READELF=$ac_cv_path_READELF 22225 if test -n "$READELF"; then 22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22227 $as_echo "$READELF" >&6; } 22228 else 22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22230 $as_echo "no" >&6; } 22231 fi 22232 22233 22234 test -n "$READELF" && break 22235 done 22236 22237 else 22238 # If it succeeded, then it was overridden by the user. We will use it 22239 # for the tool. 22240 22241 # First remove it from the list of overridden variables, so we can test 22242 # for unknown variables in the end. 22243 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22244 22245 # Check if we try to supply an empty value 22246 if test "x$READELF" = x; then 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool READELF= (no value)" >&5 22248 $as_echo "$as_me: Setting user supplied tool READELF= (no value)" >&6;} 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22250 $as_echo_n "checking for READELF... " >&6; } 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22252 $as_echo "disabled" >&6; } 22253 else 22254 # Check if the provided tool contains a complete path. 22255 tool_specified="$READELF" 22256 tool_basename="${tool_specified##*/}" 22257 if test "x$tool_basename" = "x$tool_specified"; then 22258 # A command without a complete path is provided, search $PATH. 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 22260 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 22261 # Extract the first word of "$tool_basename", so it can be a program name with args. 22262 set dummy $tool_basename; ac_word=$2 22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22264 $as_echo_n "checking for $ac_word... " >&6; } 22265 if ${ac_cv_path_READELF+:} false; then : 22266 $as_echo_n "(cached) " >&6 22267 else 22268 case $READELF in 22269 [\\/]* | ?:[\\/]*) 22270 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 22271 ;; 22272 *) 22273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22274 for as_dir in $PATH 22275 do 22276 IFS=$as_save_IFS 22277 test -z "$as_dir" && as_dir=. 22278 for ac_exec_ext in '' $ac_executable_extensions; do 22279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22280 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 22281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22282 break 2 22283 fi 22284 done 22285 done 22286 IFS=$as_save_IFS 22287 22288 ;; 22289 esac 22290 fi 22291 READELF=$ac_cv_path_READELF 22292 if test -n "$READELF"; then 22293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 22294 $as_echo "$READELF" >&6; } 22295 else 22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22297 $as_echo "no" >&6; } 22298 fi 22299 22300 22301 if test "x$READELF" = x; then 22302 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22303 fi 22304 else 22305 # Otherwise we believe it is a complete path. Use it as it is. 22306 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 22307 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 22309 $as_echo_n "checking for READELF... " >&6; } 22310 if test ! -x "$tool_specified"; then 22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22312 $as_echo "not found" >&6; } 22313 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 22314 fi 22315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22316 $as_echo "$tool_specified" >&6; } 22317 fi 22318 fi 22319 fi 22320 22321 fi 22322 22323 22324 22325 22326 # Publish this variable in the help. 22327 22328 22329 if [ -z "${DOT+x}" ]; then 22330 # The variable is not set by user, try to locate tool using the code snippet 22331 for ac_prog in dot 22332 do 22333 # Extract the first word of "$ac_prog", so it can be a program name with args. 22334 set dummy $ac_prog; ac_word=$2 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22336 $as_echo_n "checking for $ac_word... " >&6; } 22337 if ${ac_cv_path_DOT+:} false; then : 22338 $as_echo_n "(cached) " >&6 22339 else 22340 case $DOT in 22341 [\\/]* | ?:[\\/]*) 22342 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22343 ;; 22344 *) 22345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22346 for as_dir in $PATH 22347 do 22348 IFS=$as_save_IFS 22349 test -z "$as_dir" && as_dir=. 22350 for ac_exec_ext in '' $ac_executable_extensions; do 22351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22352 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22354 break 2 22355 fi 22356 done 22357 done 22358 IFS=$as_save_IFS 22359 22360 ;; 22361 esac 22362 fi 22363 DOT=$ac_cv_path_DOT 22364 if test -n "$DOT"; then 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22366 $as_echo "$DOT" >&6; } 22367 else 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22369 $as_echo "no" >&6; } 22370 fi 22371 22372 22373 test -n "$DOT" && break 22374 done 22375 22376 else 22377 # The variable is set, but is it from the command line or the environment? 22378 22379 # Try to remove the string !DOT! from our list. 22380 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DOT!/} 22381 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22382 # If it failed, the variable was not from the command line. Ignore it, 22383 # but warn the user (except for BASH, which is always set by the calling BASH). 22384 if test "xDOT" != xBASH; then 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&5 22386 $as_echo "$as_me: WARNING: Ignoring value of DOT from the environment. Use command line variables instead." >&2;} 22387 fi 22388 # Try to locate tool using the code snippet 22389 for ac_prog in dot 22390 do 22391 # Extract the first word of "$ac_prog", so it can be a program name with args. 22392 set dummy $ac_prog; ac_word=$2 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22394 $as_echo_n "checking for $ac_word... " >&6; } 22395 if ${ac_cv_path_DOT+:} false; then : 22396 $as_echo_n "(cached) " >&6 22397 else 22398 case $DOT in 22399 [\\/]* | ?:[\\/]*) 22400 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22401 ;; 22402 *) 22403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22404 for as_dir in $PATH 22405 do 22406 IFS=$as_save_IFS 22407 test -z "$as_dir" && as_dir=. 22408 for ac_exec_ext in '' $ac_executable_extensions; do 22409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22410 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22412 break 2 22413 fi 22414 done 22415 done 22416 IFS=$as_save_IFS 22417 22418 ;; 22419 esac 22420 fi 22421 DOT=$ac_cv_path_DOT 22422 if test -n "$DOT"; then 22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22424 $as_echo "$DOT" >&6; } 22425 else 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22427 $as_echo "no" >&6; } 22428 fi 22429 22430 22431 test -n "$DOT" && break 22432 done 22433 22434 else 22435 # If it succeeded, then it was overridden by the user. We will use it 22436 # for the tool. 22437 22438 # First remove it from the list of overridden variables, so we can test 22439 # for unknown variables in the end. 22440 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22441 22442 # Check if we try to supply an empty value 22443 if test "x$DOT" = x; then 22444 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DOT= (no value)" >&5 22445 $as_echo "$as_me: Setting user supplied tool DOT= (no value)" >&6;} 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22447 $as_echo_n "checking for DOT... " >&6; } 22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22449 $as_echo "disabled" >&6; } 22450 else 22451 # Check if the provided tool contains a complete path. 22452 tool_specified="$DOT" 22453 tool_basename="${tool_specified##*/}" 22454 if test "x$tool_basename" = "x$tool_specified"; then 22455 # A command without a complete path is provided, search $PATH. 22456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DOT=$tool_basename" >&5 22457 $as_echo "$as_me: Will search for user supplied tool DOT=$tool_basename" >&6;} 22458 # Extract the first word of "$tool_basename", so it can be a program name with args. 22459 set dummy $tool_basename; ac_word=$2 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22461 $as_echo_n "checking for $ac_word... " >&6; } 22462 if ${ac_cv_path_DOT+:} false; then : 22463 $as_echo_n "(cached) " >&6 22464 else 22465 case $DOT in 22466 [\\/]* | ?:[\\/]*) 22467 ac_cv_path_DOT="$DOT" # Let the user override the test with a path. 22468 ;; 22469 *) 22470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22471 for as_dir in $PATH 22472 do 22473 IFS=$as_save_IFS 22474 test -z "$as_dir" && as_dir=. 22475 for ac_exec_ext in '' $ac_executable_extensions; do 22476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22477 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext" 22478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22479 break 2 22480 fi 22481 done 22482 done 22483 IFS=$as_save_IFS 22484 22485 ;; 22486 esac 22487 fi 22488 DOT=$ac_cv_path_DOT 22489 if test -n "$DOT"; then 22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5 22491 $as_echo "$DOT" >&6; } 22492 else 22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22494 $as_echo "no" >&6; } 22495 fi 22496 22497 22498 if test "x$DOT" = x; then 22499 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22500 fi 22501 else 22502 # Otherwise we believe it is a complete path. Use it as it is. 22503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DOT=$tool_specified" >&5 22504 $as_echo "$as_me: Will use user supplied tool DOT=$tool_specified" >&6;} 22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DOT" >&5 22506 $as_echo_n "checking for DOT... " >&6; } 22507 if test ! -x "$tool_specified"; then 22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22509 $as_echo "not found" >&6; } 22510 as_fn_error $? "User supplied tool DOT=$tool_specified does not exist or is not executable" "$LINENO" 5 22511 fi 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22513 $as_echo "$tool_specified" >&6; } 22514 fi 22515 fi 22516 fi 22517 22518 fi 22519 22520 22521 22522 22523 # Publish this variable in the help. 22524 22525 22526 if [ -z "${HG+x}" ]; then 22527 # The variable is not set by user, try to locate tool using the code snippet 22528 for ac_prog in hg 22529 do 22530 # Extract the first word of "$ac_prog", so it can be a program name with args. 22531 set dummy $ac_prog; ac_word=$2 22532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22533 $as_echo_n "checking for $ac_word... " >&6; } 22534 if ${ac_cv_path_HG+:} false; then : 22535 $as_echo_n "(cached) " >&6 22536 else 22537 case $HG in 22538 [\\/]* | ?:[\\/]*) 22539 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22540 ;; 22541 *) 22542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22543 for as_dir in $PATH 22544 do 22545 IFS=$as_save_IFS 22546 test -z "$as_dir" && as_dir=. 22547 for ac_exec_ext in '' $ac_executable_extensions; do 22548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22549 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22551 break 2 22552 fi 22553 done 22554 done 22555 IFS=$as_save_IFS 22556 22557 ;; 22558 esac 22559 fi 22560 HG=$ac_cv_path_HG 22561 if test -n "$HG"; then 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22563 $as_echo "$HG" >&6; } 22564 else 22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22566 $as_echo "no" >&6; } 22567 fi 22568 22569 22570 test -n "$HG" && break 22571 done 22572 22573 else 22574 # The variable is set, but is it from the command line or the environment? 22575 22576 # Try to remove the string !HG! from our list. 22577 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 22578 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22579 # If it failed, the variable was not from the command line. Ignore it, 22580 # but warn the user (except for BASH, which is always set by the calling BASH). 22581 if test "xHG" != xBASH; then 22582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 22583 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 22584 fi 22585 # Try to locate tool using the code snippet 22586 for ac_prog in hg 22587 do 22588 # Extract the first word of "$ac_prog", so it can be a program name with args. 22589 set dummy $ac_prog; ac_word=$2 22590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22591 $as_echo_n "checking for $ac_word... " >&6; } 22592 if ${ac_cv_path_HG+:} false; then : 22593 $as_echo_n "(cached) " >&6 22594 else 22595 case $HG in 22596 [\\/]* | ?:[\\/]*) 22597 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22598 ;; 22599 *) 22600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22601 for as_dir in $PATH 22602 do 22603 IFS=$as_save_IFS 22604 test -z "$as_dir" && as_dir=. 22605 for ac_exec_ext in '' $ac_executable_extensions; do 22606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22607 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22609 break 2 22610 fi 22611 done 22612 done 22613 IFS=$as_save_IFS 22614 22615 ;; 22616 esac 22617 fi 22618 HG=$ac_cv_path_HG 22619 if test -n "$HG"; then 22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22621 $as_echo "$HG" >&6; } 22622 else 22623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22624 $as_echo "no" >&6; } 22625 fi 22626 22627 22628 test -n "$HG" && break 22629 done 22630 22631 else 22632 # If it succeeded, then it was overridden by the user. We will use it 22633 # for the tool. 22634 22635 # First remove it from the list of overridden variables, so we can test 22636 # for unknown variables in the end. 22637 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22638 22639 # Check if we try to supply an empty value 22640 if test "x$HG" = x; then 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool HG= (no value)" >&5 22642 $as_echo "$as_me: Setting user supplied tool HG= (no value)" >&6;} 22643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22644 $as_echo_n "checking for HG... " >&6; } 22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22646 $as_echo "disabled" >&6; } 22647 else 22648 # Check if the provided tool contains a complete path. 22649 tool_specified="$HG" 22650 tool_basename="${tool_specified##*/}" 22651 if test "x$tool_basename" = "x$tool_specified"; then 22652 # A command without a complete path is provided, search $PATH. 22653 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 22654 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 22655 # Extract the first word of "$tool_basename", so it can be a program name with args. 22656 set dummy $tool_basename; ac_word=$2 22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22658 $as_echo_n "checking for $ac_word... " >&6; } 22659 if ${ac_cv_path_HG+:} false; then : 22660 $as_echo_n "(cached) " >&6 22661 else 22662 case $HG in 22663 [\\/]* | ?:[\\/]*) 22664 ac_cv_path_HG="$HG" # Let the user override the test with a path. 22665 ;; 22666 *) 22667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22668 for as_dir in $PATH 22669 do 22670 IFS=$as_save_IFS 22671 test -z "$as_dir" && as_dir=. 22672 for ac_exec_ext in '' $ac_executable_extensions; do 22673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22674 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 22675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22676 break 2 22677 fi 22678 done 22679 done 22680 IFS=$as_save_IFS 22681 22682 ;; 22683 esac 22684 fi 22685 HG=$ac_cv_path_HG 22686 if test -n "$HG"; then 22687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 22688 $as_echo "$HG" >&6; } 22689 else 22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22691 $as_echo "no" >&6; } 22692 fi 22693 22694 22695 if test "x$HG" = x; then 22696 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22697 fi 22698 else 22699 # Otherwise we believe it is a complete path. Use it as it is. 22700 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 22701 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 22703 $as_echo_n "checking for HG... " >&6; } 22704 if test ! -x "$tool_specified"; then 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22706 $as_echo "not found" >&6; } 22707 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 22708 fi 22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22710 $as_echo "$tool_specified" >&6; } 22711 fi 22712 fi 22713 fi 22714 22715 fi 22716 22717 22718 22719 22720 # Publish this variable in the help. 22721 22722 22723 if [ -z "${STAT+x}" ]; then 22724 # The variable is not set by user, try to locate tool using the code snippet 22725 for ac_prog in stat 22726 do 22727 # Extract the first word of "$ac_prog", so it can be a program name with args. 22728 set dummy $ac_prog; ac_word=$2 22729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22730 $as_echo_n "checking for $ac_word... " >&6; } 22731 if ${ac_cv_path_STAT+:} false; then : 22732 $as_echo_n "(cached) " >&6 22733 else 22734 case $STAT in 22735 [\\/]* | ?:[\\/]*) 22736 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22737 ;; 22738 *) 22739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22740 for as_dir in $PATH 22741 do 22742 IFS=$as_save_IFS 22743 test -z "$as_dir" && as_dir=. 22744 for ac_exec_ext in '' $ac_executable_extensions; do 22745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22746 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22748 break 2 22749 fi 22750 done 22751 done 22752 IFS=$as_save_IFS 22753 22754 ;; 22755 esac 22756 fi 22757 STAT=$ac_cv_path_STAT 22758 if test -n "$STAT"; then 22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22760 $as_echo "$STAT" >&6; } 22761 else 22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22763 $as_echo "no" >&6; } 22764 fi 22765 22766 22767 test -n "$STAT" && break 22768 done 22769 22770 else 22771 # The variable is set, but is it from the command line or the environment? 22772 22773 # Try to remove the string !STAT! from our list. 22774 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 22775 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22776 # If it failed, the variable was not from the command line. Ignore it, 22777 # but warn the user (except for BASH, which is always set by the calling BASH). 22778 if test "xSTAT" != xBASH; then 22779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 22780 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 22781 fi 22782 # Try to locate tool using the code snippet 22783 for ac_prog in stat 22784 do 22785 # Extract the first word of "$ac_prog", so it can be a program name with args. 22786 set dummy $ac_prog; ac_word=$2 22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22788 $as_echo_n "checking for $ac_word... " >&6; } 22789 if ${ac_cv_path_STAT+:} false; then : 22790 $as_echo_n "(cached) " >&6 22791 else 22792 case $STAT in 22793 [\\/]* | ?:[\\/]*) 22794 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22795 ;; 22796 *) 22797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22798 for as_dir in $PATH 22799 do 22800 IFS=$as_save_IFS 22801 test -z "$as_dir" && as_dir=. 22802 for ac_exec_ext in '' $ac_executable_extensions; do 22803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22804 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22806 break 2 22807 fi 22808 done 22809 done 22810 IFS=$as_save_IFS 22811 22812 ;; 22813 esac 22814 fi 22815 STAT=$ac_cv_path_STAT 22816 if test -n "$STAT"; then 22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22818 $as_echo "$STAT" >&6; } 22819 else 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22821 $as_echo "no" >&6; } 22822 fi 22823 22824 22825 test -n "$STAT" && break 22826 done 22827 22828 else 22829 # If it succeeded, then it was overridden by the user. We will use it 22830 # for the tool. 22831 22832 # First remove it from the list of overridden variables, so we can test 22833 # for unknown variables in the end. 22834 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 22835 22836 # Check if we try to supply an empty value 22837 if test "x$STAT" = x; then 22838 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STAT= (no value)" >&5 22839 $as_echo "$as_me: Setting user supplied tool STAT= (no value)" >&6;} 22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22841 $as_echo_n "checking for STAT... " >&6; } 22842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 22843 $as_echo "disabled" >&6; } 22844 else 22845 # Check if the provided tool contains a complete path. 22846 tool_specified="$STAT" 22847 tool_basename="${tool_specified##*/}" 22848 if test "x$tool_basename" = "x$tool_specified"; then 22849 # A command without a complete path is provided, search $PATH. 22850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 22851 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 22852 # Extract the first word of "$tool_basename", so it can be a program name with args. 22853 set dummy $tool_basename; ac_word=$2 22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22855 $as_echo_n "checking for $ac_word... " >&6; } 22856 if ${ac_cv_path_STAT+:} false; then : 22857 $as_echo_n "(cached) " >&6 22858 else 22859 case $STAT in 22860 [\\/]* | ?:[\\/]*) 22861 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 22862 ;; 22863 *) 22864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22865 for as_dir in $PATH 22866 do 22867 IFS=$as_save_IFS 22868 test -z "$as_dir" && as_dir=. 22869 for ac_exec_ext in '' $ac_executable_extensions; do 22870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22871 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 22872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22873 break 2 22874 fi 22875 done 22876 done 22877 IFS=$as_save_IFS 22878 22879 ;; 22880 esac 22881 fi 22882 STAT=$ac_cv_path_STAT 22883 if test -n "$STAT"; then 22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 22885 $as_echo "$STAT" >&6; } 22886 else 22887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22888 $as_echo "no" >&6; } 22889 fi 22890 22891 22892 if test "x$STAT" = x; then 22893 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 22894 fi 22895 else 22896 # Otherwise we believe it is a complete path. Use it as it is. 22897 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 22898 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 22899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 22900 $as_echo_n "checking for STAT... " >&6; } 22901 if test ! -x "$tool_specified"; then 22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 22903 $as_echo "not found" >&6; } 22904 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 22905 fi 22906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 22907 $as_echo "$tool_specified" >&6; } 22908 fi 22909 fi 22910 fi 22911 22912 fi 22913 22914 22915 22916 22917 # Publish this variable in the help. 22918 22919 22920 if [ -z "${TIME+x}" ]; then 22921 # The variable is not set by user, try to locate tool using the code snippet 22922 for ac_prog in time 22923 do 22924 # Extract the first word of "$ac_prog", so it can be a program name with args. 22925 set dummy $ac_prog; ac_word=$2 22926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22927 $as_echo_n "checking for $ac_word... " >&6; } 22928 if ${ac_cv_path_TIME+:} false; then : 22929 $as_echo_n "(cached) " >&6 22930 else 22931 case $TIME in 22932 [\\/]* | ?:[\\/]*) 22933 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22934 ;; 22935 *) 22936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22937 for as_dir in $PATH 22938 do 22939 IFS=$as_save_IFS 22940 test -z "$as_dir" && as_dir=. 22941 for ac_exec_ext in '' $ac_executable_extensions; do 22942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 22943 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 22944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 22945 break 2 22946 fi 22947 done 22948 done 22949 IFS=$as_save_IFS 22950 22951 ;; 22952 esac 22953 fi 22954 TIME=$ac_cv_path_TIME 22955 if test -n "$TIME"; then 22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 22957 $as_echo "$TIME" >&6; } 22958 else 22959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22960 $as_echo "no" >&6; } 22961 fi 22962 22963 22964 test -n "$TIME" && break 22965 done 22966 22967 else 22968 # The variable is set, but is it from the command line or the environment? 22969 22970 # Try to remove the string !TIME! from our list. 22971 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 22972 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 22973 # If it failed, the variable was not from the command line. Ignore it, 22974 # but warn the user (except for BASH, which is always set by the calling BASH). 22975 if test "xTIME" != xBASH; then 22976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 22977 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 22978 fi 22979 # Try to locate tool using the code snippet 22980 for ac_prog in time 22981 do 22982 # Extract the first word of "$ac_prog", so it can be a program name with args. 22983 set dummy $ac_prog; ac_word=$2 22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 22985 $as_echo_n "checking for $ac_word... " >&6; } 22986 if ${ac_cv_path_TIME+:} false; then : 22987 $as_echo_n "(cached) " >&6 22988 else 22989 case $TIME in 22990 [\\/]* | ?:[\\/]*) 22991 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 22992 ;; 22993 *) 22994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22995 for as_dir in $PATH 22996 do 22997 IFS=$as_save_IFS 22998 test -z "$as_dir" && as_dir=. 22999 for ac_exec_ext in '' $ac_executable_extensions; do 23000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23001 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23003 break 2 23004 fi 23005 done 23006 done 23007 IFS=$as_save_IFS 23008 23009 ;; 23010 esac 23011 fi 23012 TIME=$ac_cv_path_TIME 23013 if test -n "$TIME"; then 23014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23015 $as_echo "$TIME" >&6; } 23016 else 23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23018 $as_echo "no" >&6; } 23019 fi 23020 23021 23022 test -n "$TIME" && break 23023 done 23024 23025 else 23026 # If it succeeded, then it was overridden by the user. We will use it 23027 # for the tool. 23028 23029 # First remove it from the list of overridden variables, so we can test 23030 # for unknown variables in the end. 23031 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23032 23033 # Check if we try to supply an empty value 23034 if test "x$TIME" = x; then 23035 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool TIME= (no value)" >&5 23036 $as_echo "$as_me: Setting user supplied tool TIME= (no value)" >&6;} 23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23038 $as_echo_n "checking for TIME... " >&6; } 23039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23040 $as_echo "disabled" >&6; } 23041 else 23042 # Check if the provided tool contains a complete path. 23043 tool_specified="$TIME" 23044 tool_basename="${tool_specified##*/}" 23045 if test "x$tool_basename" = "x$tool_specified"; then 23046 # A command without a complete path is provided, search $PATH. 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 23048 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 23049 # Extract the first word of "$tool_basename", so it can be a program name with args. 23050 set dummy $tool_basename; ac_word=$2 23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23052 $as_echo_n "checking for $ac_word... " >&6; } 23053 if ${ac_cv_path_TIME+:} false; then : 23054 $as_echo_n "(cached) " >&6 23055 else 23056 case $TIME in 23057 [\\/]* | ?:[\\/]*) 23058 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 23059 ;; 23060 *) 23061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23062 for as_dir in $PATH 23063 do 23064 IFS=$as_save_IFS 23065 test -z "$as_dir" && as_dir=. 23066 for ac_exec_ext in '' $ac_executable_extensions; do 23067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23068 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 23069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23070 break 2 23071 fi 23072 done 23073 done 23074 IFS=$as_save_IFS 23075 23076 ;; 23077 esac 23078 fi 23079 TIME=$ac_cv_path_TIME 23080 if test -n "$TIME"; then 23081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 23082 $as_echo "$TIME" >&6; } 23083 else 23084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23085 $as_echo "no" >&6; } 23086 fi 23087 23088 23089 if test "x$TIME" = x; then 23090 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23091 fi 23092 else 23093 # Otherwise we believe it is a complete path. Use it as it is. 23094 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 23095 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 23096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 23097 $as_echo_n "checking for TIME... " >&6; } 23098 if test ! -x "$tool_specified"; then 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23100 $as_echo "not found" >&6; } 23101 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 23102 fi 23103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23104 $as_echo "$tool_specified" >&6; } 23105 fi 23106 fi 23107 fi 23108 23109 fi 23110 23111 23112 23113 23114 # Publish this variable in the help. 23115 23116 23117 if [ -z "${FLOCK+x}" ]; then 23118 # The variable is not set by user, try to locate tool using the code snippet 23119 for ac_prog in flock 23120 do 23121 # Extract the first word of "$ac_prog", so it can be a program name with args. 23122 set dummy $ac_prog; ac_word=$2 23123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23124 $as_echo_n "checking for $ac_word... " >&6; } 23125 if ${ac_cv_path_FLOCK+:} false; then : 23126 $as_echo_n "(cached) " >&6 23127 else 23128 case $FLOCK in 23129 [\\/]* | ?:[\\/]*) 23130 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23131 ;; 23132 *) 23133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23134 for as_dir in $PATH 23135 do 23136 IFS=$as_save_IFS 23137 test -z "$as_dir" && as_dir=. 23138 for ac_exec_ext in '' $ac_executable_extensions; do 23139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23140 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23142 break 2 23143 fi 23144 done 23145 done 23146 IFS=$as_save_IFS 23147 23148 ;; 23149 esac 23150 fi 23151 FLOCK=$ac_cv_path_FLOCK 23152 if test -n "$FLOCK"; then 23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23154 $as_echo "$FLOCK" >&6; } 23155 else 23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23157 $as_echo "no" >&6; } 23158 fi 23159 23160 23161 test -n "$FLOCK" && break 23162 done 23163 23164 else 23165 # The variable is set, but is it from the command line or the environment? 23166 23167 # Try to remove the string !FLOCK! from our list. 23168 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FLOCK!/} 23169 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23170 # If it failed, the variable was not from the command line. Ignore it, 23171 # but warn the user (except for BASH, which is always set by the calling BASH). 23172 if test "xFLOCK" != xBASH; then 23173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&5 23174 $as_echo "$as_me: WARNING: Ignoring value of FLOCK from the environment. Use command line variables instead." >&2;} 23175 fi 23176 # Try to locate tool using the code snippet 23177 for ac_prog in flock 23178 do 23179 # Extract the first word of "$ac_prog", so it can be a program name with args. 23180 set dummy $ac_prog; ac_word=$2 23181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23182 $as_echo_n "checking for $ac_word... " >&6; } 23183 if ${ac_cv_path_FLOCK+:} false; then : 23184 $as_echo_n "(cached) " >&6 23185 else 23186 case $FLOCK in 23187 [\\/]* | ?:[\\/]*) 23188 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23189 ;; 23190 *) 23191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23192 for as_dir in $PATH 23193 do 23194 IFS=$as_save_IFS 23195 test -z "$as_dir" && as_dir=. 23196 for ac_exec_ext in '' $ac_executable_extensions; do 23197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23198 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23200 break 2 23201 fi 23202 done 23203 done 23204 IFS=$as_save_IFS 23205 23206 ;; 23207 esac 23208 fi 23209 FLOCK=$ac_cv_path_FLOCK 23210 if test -n "$FLOCK"; then 23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23212 $as_echo "$FLOCK" >&6; } 23213 else 23214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23215 $as_echo "no" >&6; } 23216 fi 23217 23218 23219 test -n "$FLOCK" && break 23220 done 23221 23222 else 23223 # If it succeeded, then it was overridden by the user. We will use it 23224 # for the tool. 23225 23226 # First remove it from the list of overridden variables, so we can test 23227 # for unknown variables in the end. 23228 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23229 23230 # Check if we try to supply an empty value 23231 if test "x$FLOCK" = x; then 23232 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool FLOCK= (no value)" >&5 23233 $as_echo "$as_me: Setting user supplied tool FLOCK= (no value)" >&6;} 23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23235 $as_echo_n "checking for FLOCK... " >&6; } 23236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23237 $as_echo "disabled" >&6; } 23238 else 23239 # Check if the provided tool contains a complete path. 23240 tool_specified="$FLOCK" 23241 tool_basename="${tool_specified##*/}" 23242 if test "x$tool_basename" = "x$tool_specified"; then 23243 # A command without a complete path is provided, search $PATH. 23244 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FLOCK=$tool_basename" >&5 23245 $as_echo "$as_me: Will search for user supplied tool FLOCK=$tool_basename" >&6;} 23246 # Extract the first word of "$tool_basename", so it can be a program name with args. 23247 set dummy $tool_basename; ac_word=$2 23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23249 $as_echo_n "checking for $ac_word... " >&6; } 23250 if ${ac_cv_path_FLOCK+:} false; then : 23251 $as_echo_n "(cached) " >&6 23252 else 23253 case $FLOCK in 23254 [\\/]* | ?:[\\/]*) 23255 ac_cv_path_FLOCK="$FLOCK" # Let the user override the test with a path. 23256 ;; 23257 *) 23258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23259 for as_dir in $PATH 23260 do 23261 IFS=$as_save_IFS 23262 test -z "$as_dir" && as_dir=. 23263 for ac_exec_ext in '' $ac_executable_extensions; do 23264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23265 ac_cv_path_FLOCK="$as_dir/$ac_word$ac_exec_ext" 23266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23267 break 2 23268 fi 23269 done 23270 done 23271 IFS=$as_save_IFS 23272 23273 ;; 23274 esac 23275 fi 23276 FLOCK=$ac_cv_path_FLOCK 23277 if test -n "$FLOCK"; then 23278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5 23279 $as_echo "$FLOCK" >&6; } 23280 else 23281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23282 $as_echo "no" >&6; } 23283 fi 23284 23285 23286 if test "x$FLOCK" = x; then 23287 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23288 fi 23289 else 23290 # Otherwise we believe it is a complete path. Use it as it is. 23291 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FLOCK=$tool_specified" >&5 23292 $as_echo "$as_me: Will use user supplied tool FLOCK=$tool_specified" >&6;} 23293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLOCK" >&5 23294 $as_echo_n "checking for FLOCK... " >&6; } 23295 if test ! -x "$tool_specified"; then 23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23297 $as_echo "not found" >&6; } 23298 as_fn_error $? "User supplied tool FLOCK=$tool_specified does not exist or is not executable" "$LINENO" 5 23299 fi 23300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23301 $as_echo "$tool_specified" >&6; } 23302 fi 23303 fi 23304 fi 23305 23306 fi 23307 23308 23309 # Dtrace is usually found in /usr/sbin on Solaris, but that directory may not 23310 # be in the user path. 23311 23312 23313 # Publish this variable in the help. 23314 23315 23316 if [ -z "${DTRACE+x}" ]; then 23317 # The variable is not set by user, try to locate tool using the code snippet 23318 for ac_prog in dtrace 23319 do 23320 # Extract the first word of "$ac_prog", so it can be a program name with args. 23321 set dummy $ac_prog; ac_word=$2 23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23323 $as_echo_n "checking for $ac_word... " >&6; } 23324 if ${ac_cv_path_DTRACE+:} false; then : 23325 $as_echo_n "(cached) " >&6 23326 else 23327 case $DTRACE in 23328 [\\/]* | ?:[\\/]*) 23329 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23330 ;; 23331 *) 23332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23333 as_dummy="$PATH:/usr/sbin" 23334 for as_dir in $as_dummy 23335 do 23336 IFS=$as_save_IFS 23337 test -z "$as_dir" && as_dir=. 23338 for ac_exec_ext in '' $ac_executable_extensions; do 23339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23340 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23342 break 2 23343 fi 23344 done 23345 done 23346 IFS=$as_save_IFS 23347 23348 ;; 23349 esac 23350 fi 23351 DTRACE=$ac_cv_path_DTRACE 23352 if test -n "$DTRACE"; then 23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23354 $as_echo "$DTRACE" >&6; } 23355 else 23356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23357 $as_echo "no" >&6; } 23358 fi 23359 23360 23361 test -n "$DTRACE" && break 23362 done 23363 23364 else 23365 # The variable is set, but is it from the command line or the environment? 23366 23367 # Try to remove the string !DTRACE! from our list. 23368 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DTRACE!/} 23369 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23370 # If it failed, the variable was not from the command line. Ignore it, 23371 # but warn the user (except for BASH, which is always set by the calling BASH). 23372 if test "xDTRACE" != xBASH; then 23373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&5 23374 $as_echo "$as_me: WARNING: Ignoring value of DTRACE from the environment. Use command line variables instead." >&2;} 23375 fi 23376 # Try to locate tool using the code snippet 23377 for ac_prog in dtrace 23378 do 23379 # Extract the first word of "$ac_prog", so it can be a program name with args. 23380 set dummy $ac_prog; ac_word=$2 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23382 $as_echo_n "checking for $ac_word... " >&6; } 23383 if ${ac_cv_path_DTRACE+:} false; then : 23384 $as_echo_n "(cached) " >&6 23385 else 23386 case $DTRACE in 23387 [\\/]* | ?:[\\/]*) 23388 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23389 ;; 23390 *) 23391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23392 as_dummy="$PATH:/usr/sbin" 23393 for as_dir in $as_dummy 23394 do 23395 IFS=$as_save_IFS 23396 test -z "$as_dir" && as_dir=. 23397 for ac_exec_ext in '' $ac_executable_extensions; do 23398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23399 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23401 break 2 23402 fi 23403 done 23404 done 23405 IFS=$as_save_IFS 23406 23407 ;; 23408 esac 23409 fi 23410 DTRACE=$ac_cv_path_DTRACE 23411 if test -n "$DTRACE"; then 23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23413 $as_echo "$DTRACE" >&6; } 23414 else 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23416 $as_echo "no" >&6; } 23417 fi 23418 23419 23420 test -n "$DTRACE" && break 23421 done 23422 23423 else 23424 # If it succeeded, then it was overridden by the user. We will use it 23425 # for the tool. 23426 23427 # First remove it from the list of overridden variables, so we can test 23428 # for unknown variables in the end. 23429 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23430 23431 # Check if we try to supply an empty value 23432 if test "x$DTRACE" = x; then 23433 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DTRACE= (no value)" >&5 23434 $as_echo "$as_me: Setting user supplied tool DTRACE= (no value)" >&6;} 23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23436 $as_echo_n "checking for DTRACE... " >&6; } 23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23438 $as_echo "disabled" >&6; } 23439 else 23440 # Check if the provided tool contains a complete path. 23441 tool_specified="$DTRACE" 23442 tool_basename="${tool_specified##*/}" 23443 if test "x$tool_basename" = "x$tool_specified"; then 23444 # A command without a complete path is provided, search $PATH. 23445 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DTRACE=$tool_basename" >&5 23446 $as_echo "$as_me: Will search for user supplied tool DTRACE=$tool_basename" >&6;} 23447 # Extract the first word of "$tool_basename", so it can be a program name with args. 23448 set dummy $tool_basename; ac_word=$2 23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23450 $as_echo_n "checking for $ac_word... " >&6; } 23451 if ${ac_cv_path_DTRACE+:} false; then : 23452 $as_echo_n "(cached) " >&6 23453 else 23454 case $DTRACE in 23455 [\\/]* | ?:[\\/]*) 23456 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 23457 ;; 23458 *) 23459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23460 for as_dir in $PATH 23461 do 23462 IFS=$as_save_IFS 23463 test -z "$as_dir" && as_dir=. 23464 for ac_exec_ext in '' $ac_executable_extensions; do 23465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23466 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 23467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23468 break 2 23469 fi 23470 done 23471 done 23472 IFS=$as_save_IFS 23473 23474 ;; 23475 esac 23476 fi 23477 DTRACE=$ac_cv_path_DTRACE 23478 if test -n "$DTRACE"; then 23479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 23480 $as_echo "$DTRACE" >&6; } 23481 else 23482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23483 $as_echo "no" >&6; } 23484 fi 23485 23486 23487 if test "x$DTRACE" = x; then 23488 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23489 fi 23490 else 23491 # Otherwise we believe it is a complete path. Use it as it is. 23492 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DTRACE=$tool_specified" >&5 23493 $as_echo "$as_me: Will use user supplied tool DTRACE=$tool_specified" >&6;} 23494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DTRACE" >&5 23495 $as_echo_n "checking for DTRACE... " >&6; } 23496 if test ! -x "$tool_specified"; then 23497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23498 $as_echo "not found" >&6; } 23499 as_fn_error $? "User supplied tool DTRACE=$tool_specified does not exist or is not executable" "$LINENO" 5 23500 fi 23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23502 $as_echo "$tool_specified" >&6; } 23503 fi 23504 fi 23505 fi 23506 23507 fi 23508 23509 23510 23511 23512 # Publish this variable in the help. 23513 23514 23515 if [ -z "${PATCH+x}" ]; then 23516 # The variable is not set by user, try to locate tool using the code snippet 23517 for ac_prog in gpatch patch 23518 do 23519 # Extract the first word of "$ac_prog", so it can be a program name with args. 23520 set dummy $ac_prog; ac_word=$2 23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23522 $as_echo_n "checking for $ac_word... " >&6; } 23523 if ${ac_cv_path_PATCH+:} false; then : 23524 $as_echo_n "(cached) " >&6 23525 else 23526 case $PATCH in 23527 [\\/]* | ?:[\\/]*) 23528 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23529 ;; 23530 *) 23531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23532 for as_dir in $PATH 23533 do 23534 IFS=$as_save_IFS 23535 test -z "$as_dir" && as_dir=. 23536 for ac_exec_ext in '' $ac_executable_extensions; do 23537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23538 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23540 break 2 23541 fi 23542 done 23543 done 23544 IFS=$as_save_IFS 23545 23546 ;; 23547 esac 23548 fi 23549 PATCH=$ac_cv_path_PATCH 23550 if test -n "$PATCH"; then 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23552 $as_echo "$PATCH" >&6; } 23553 else 23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23555 $as_echo "no" >&6; } 23556 fi 23557 23558 23559 test -n "$PATCH" && break 23560 done 23561 23562 else 23563 # The variable is set, but is it from the command line or the environment? 23564 23565 # Try to remove the string !PATCH! from our list. 23566 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PATCH!/} 23567 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23568 # If it failed, the variable was not from the command line. Ignore it, 23569 # but warn the user (except for BASH, which is always set by the calling BASH). 23570 if test "xPATCH" != xBASH; then 23571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&5 23572 $as_echo "$as_me: WARNING: Ignoring value of PATCH from the environment. Use command line variables instead." >&2;} 23573 fi 23574 # Try to locate tool using the code snippet 23575 for ac_prog in gpatch patch 23576 do 23577 # Extract the first word of "$ac_prog", so it can be a program name with args. 23578 set dummy $ac_prog; ac_word=$2 23579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23580 $as_echo_n "checking for $ac_word... " >&6; } 23581 if ${ac_cv_path_PATCH+:} false; then : 23582 $as_echo_n "(cached) " >&6 23583 else 23584 case $PATCH in 23585 [\\/]* | ?:[\\/]*) 23586 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23587 ;; 23588 *) 23589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23590 for as_dir in $PATH 23591 do 23592 IFS=$as_save_IFS 23593 test -z "$as_dir" && as_dir=. 23594 for ac_exec_ext in '' $ac_executable_extensions; do 23595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23596 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23598 break 2 23599 fi 23600 done 23601 done 23602 IFS=$as_save_IFS 23603 23604 ;; 23605 esac 23606 fi 23607 PATCH=$ac_cv_path_PATCH 23608 if test -n "$PATCH"; then 23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23610 $as_echo "$PATCH" >&6; } 23611 else 23612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23613 $as_echo "no" >&6; } 23614 fi 23615 23616 23617 test -n "$PATCH" && break 23618 done 23619 23620 else 23621 # If it succeeded, then it was overridden by the user. We will use it 23622 # for the tool. 23623 23624 # First remove it from the list of overridden variables, so we can test 23625 # for unknown variables in the end. 23626 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23627 23628 # Check if we try to supply an empty value 23629 if test "x$PATCH" = x; then 23630 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool PATCH= (no value)" >&5 23631 $as_echo "$as_me: Setting user supplied tool PATCH= (no value)" >&6;} 23632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23633 $as_echo_n "checking for PATCH... " >&6; } 23634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23635 $as_echo "disabled" >&6; } 23636 else 23637 # Check if the provided tool contains a complete path. 23638 tool_specified="$PATCH" 23639 tool_basename="${tool_specified##*/}" 23640 if test "x$tool_basename" = "x$tool_specified"; then 23641 # A command without a complete path is provided, search $PATH. 23642 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PATCH=$tool_basename" >&5 23643 $as_echo "$as_me: Will search for user supplied tool PATCH=$tool_basename" >&6;} 23644 # Extract the first word of "$tool_basename", so it can be a program name with args. 23645 set dummy $tool_basename; ac_word=$2 23646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23647 $as_echo_n "checking for $ac_word... " >&6; } 23648 if ${ac_cv_path_PATCH+:} false; then : 23649 $as_echo_n "(cached) " >&6 23650 else 23651 case $PATCH in 23652 [\\/]* | ?:[\\/]*) 23653 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path. 23654 ;; 23655 *) 23656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23657 for as_dir in $PATH 23658 do 23659 IFS=$as_save_IFS 23660 test -z "$as_dir" && as_dir=. 23661 for ac_exec_ext in '' $ac_executable_extensions; do 23662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23663 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext" 23664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23665 break 2 23666 fi 23667 done 23668 done 23669 IFS=$as_save_IFS 23670 23671 ;; 23672 esac 23673 fi 23674 PATCH=$ac_cv_path_PATCH 23675 if test -n "$PATCH"; then 23676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5 23677 $as_echo "$PATCH" >&6; } 23678 else 23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23680 $as_echo "no" >&6; } 23681 fi 23682 23683 23684 if test "x$PATCH" = x; then 23685 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23686 fi 23687 else 23688 # Otherwise we believe it is a complete path. Use it as it is. 23689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PATCH=$tool_specified" >&5 23690 $as_echo "$as_me: Will use user supplied tool PATCH=$tool_specified" >&6;} 23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PATCH" >&5 23692 $as_echo_n "checking for PATCH... " >&6; } 23693 if test ! -x "$tool_specified"; then 23694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23695 $as_echo "not found" >&6; } 23696 as_fn_error $? "User supplied tool PATCH=$tool_specified does not exist or is not executable" "$LINENO" 5 23697 fi 23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23699 $as_echo "$tool_specified" >&6; } 23700 fi 23701 fi 23702 fi 23703 23704 fi 23705 23706 23707 # Check if it's GNU time 23708 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 23709 if test "x$IS_GNU_TIME" != x; then 23710 IS_GNU_TIME=yes 23711 else 23712 IS_GNU_TIME=no 23713 fi 23714 23715 23716 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 23717 23718 23719 23720 # Publish this variable in the help. 23721 23722 23723 if [ -z "${DSYMUTIL+x}" ]; then 23724 # The variable is not set by user, try to locate tool using the code snippet 23725 for ac_prog in dsymutil 23726 do 23727 # Extract the first word of "$ac_prog", so it can be a program name with args. 23728 set dummy $ac_prog; ac_word=$2 23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23730 $as_echo_n "checking for $ac_word... " >&6; } 23731 if ${ac_cv_path_DSYMUTIL+:} false; then : 23732 $as_echo_n "(cached) " >&6 23733 else 23734 case $DSYMUTIL in 23735 [\\/]* | ?:[\\/]*) 23736 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23737 ;; 23738 *) 23739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23740 for as_dir in $PATH 23741 do 23742 IFS=$as_save_IFS 23743 test -z "$as_dir" && as_dir=. 23744 for ac_exec_ext in '' $ac_executable_extensions; do 23745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23746 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23748 break 2 23749 fi 23750 done 23751 done 23752 IFS=$as_save_IFS 23753 23754 ;; 23755 esac 23756 fi 23757 DSYMUTIL=$ac_cv_path_DSYMUTIL 23758 if test -n "$DSYMUTIL"; then 23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23760 $as_echo "$DSYMUTIL" >&6; } 23761 else 23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23763 $as_echo "no" >&6; } 23764 fi 23765 23766 23767 test -n "$DSYMUTIL" && break 23768 done 23769 23770 else 23771 # The variable is set, but is it from the command line or the environment? 23772 23773 # Try to remove the string !DSYMUTIL! from our list. 23774 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 23775 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23776 # If it failed, the variable was not from the command line. Ignore it, 23777 # but warn the user (except for BASH, which is always set by the calling BASH). 23778 if test "xDSYMUTIL" != xBASH; then 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 23780 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 23781 fi 23782 # Try to locate tool using the code snippet 23783 for ac_prog in dsymutil 23784 do 23785 # Extract the first word of "$ac_prog", so it can be a program name with args. 23786 set dummy $ac_prog; ac_word=$2 23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23788 $as_echo_n "checking for $ac_word... " >&6; } 23789 if ${ac_cv_path_DSYMUTIL+:} false; then : 23790 $as_echo_n "(cached) " >&6 23791 else 23792 case $DSYMUTIL in 23793 [\\/]* | ?:[\\/]*) 23794 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23795 ;; 23796 *) 23797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23798 for as_dir in $PATH 23799 do 23800 IFS=$as_save_IFS 23801 test -z "$as_dir" && as_dir=. 23802 for ac_exec_ext in '' $ac_executable_extensions; do 23803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23804 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23806 break 2 23807 fi 23808 done 23809 done 23810 IFS=$as_save_IFS 23811 23812 ;; 23813 esac 23814 fi 23815 DSYMUTIL=$ac_cv_path_DSYMUTIL 23816 if test -n "$DSYMUTIL"; then 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23818 $as_echo "$DSYMUTIL" >&6; } 23819 else 23820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23821 $as_echo "no" >&6; } 23822 fi 23823 23824 23825 test -n "$DSYMUTIL" && break 23826 done 23827 23828 else 23829 # If it succeeded, then it was overridden by the user. We will use it 23830 # for the tool. 23831 23832 # First remove it from the list of overridden variables, so we can test 23833 # for unknown variables in the end. 23834 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 23835 23836 # Check if we try to supply an empty value 23837 if test "x$DSYMUTIL" = x; then 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool DSYMUTIL= (no value)" >&5 23839 $as_echo "$as_me: Setting user supplied tool DSYMUTIL= (no value)" >&6;} 23840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23841 $as_echo_n "checking for DSYMUTIL... " >&6; } 23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 23843 $as_echo "disabled" >&6; } 23844 else 23845 # Check if the provided tool contains a complete path. 23846 tool_specified="$DSYMUTIL" 23847 tool_basename="${tool_specified##*/}" 23848 if test "x$tool_basename" = "x$tool_specified"; then 23849 # A command without a complete path is provided, search $PATH. 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 23851 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 23852 # Extract the first word of "$tool_basename", so it can be a program name with args. 23853 set dummy $tool_basename; ac_word=$2 23854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23855 $as_echo_n "checking for $ac_word... " >&6; } 23856 if ${ac_cv_path_DSYMUTIL+:} false; then : 23857 $as_echo_n "(cached) " >&6 23858 else 23859 case $DSYMUTIL in 23860 [\\/]* | ?:[\\/]*) 23861 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 23862 ;; 23863 *) 23864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23865 for as_dir in $PATH 23866 do 23867 IFS=$as_save_IFS 23868 test -z "$as_dir" && as_dir=. 23869 for ac_exec_ext in '' $ac_executable_extensions; do 23870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23871 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 23872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23873 break 2 23874 fi 23875 done 23876 done 23877 IFS=$as_save_IFS 23878 23879 ;; 23880 esac 23881 fi 23882 DSYMUTIL=$ac_cv_path_DSYMUTIL 23883 if test -n "$DSYMUTIL"; then 23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 23885 $as_echo "$DSYMUTIL" >&6; } 23886 else 23887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23888 $as_echo "no" >&6; } 23889 fi 23890 23891 23892 if test "x$DSYMUTIL" = x; then 23893 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 23894 fi 23895 else 23896 # Otherwise we believe it is a complete path. Use it as it is. 23897 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 23898 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 23900 $as_echo_n "checking for DSYMUTIL... " >&6; } 23901 if test ! -x "$tool_specified"; then 23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 23903 $as_echo "not found" >&6; } 23904 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 23905 fi 23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 23907 $as_echo "$tool_specified" >&6; } 23908 fi 23909 fi 23910 fi 23911 23912 fi 23913 23914 23915 23916 if test "x$DSYMUTIL" = x; then 23917 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 23918 fi 23919 23920 23921 23922 23923 23924 # Publish this variable in the help. 23925 23926 23927 if [ -z "${XATTR+x}" ]; then 23928 # The variable is not set by user, try to locate tool using the code snippet 23929 for ac_prog in xattr 23930 do 23931 # Extract the first word of "$ac_prog", so it can be a program name with args. 23932 set dummy $ac_prog; ac_word=$2 23933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23934 $as_echo_n "checking for $ac_word... " >&6; } 23935 if ${ac_cv_path_XATTR+:} false; then : 23936 $as_echo_n "(cached) " >&6 23937 else 23938 case $XATTR in 23939 [\\/]* | ?:[\\/]*) 23940 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23941 ;; 23942 *) 23943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23944 for as_dir in $PATH 23945 do 23946 IFS=$as_save_IFS 23947 test -z "$as_dir" && as_dir=. 23948 for ac_exec_ext in '' $ac_executable_extensions; do 23949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23950 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 23951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 23952 break 2 23953 fi 23954 done 23955 done 23956 IFS=$as_save_IFS 23957 23958 ;; 23959 esac 23960 fi 23961 XATTR=$ac_cv_path_XATTR 23962 if test -n "$XATTR"; then 23963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 23964 $as_echo "$XATTR" >&6; } 23965 else 23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 23967 $as_echo "no" >&6; } 23968 fi 23969 23970 23971 test -n "$XATTR" && break 23972 done 23973 23974 else 23975 # The variable is set, but is it from the command line or the environment? 23976 23977 # Try to remove the string !XATTR! from our list. 23978 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 23979 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 23980 # If it failed, the variable was not from the command line. Ignore it, 23981 # but warn the user (except for BASH, which is always set by the calling BASH). 23982 if test "xXATTR" != xBASH; then 23983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 23984 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 23985 fi 23986 # Try to locate tool using the code snippet 23987 for ac_prog in xattr 23988 do 23989 # Extract the first word of "$ac_prog", so it can be a program name with args. 23990 set dummy $ac_prog; ac_word=$2 23991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 23992 $as_echo_n "checking for $ac_word... " >&6; } 23993 if ${ac_cv_path_XATTR+:} false; then : 23994 $as_echo_n "(cached) " >&6 23995 else 23996 case $XATTR in 23997 [\\/]* | ?:[\\/]*) 23998 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 23999 ;; 24000 *) 24001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24002 for as_dir in $PATH 24003 do 24004 IFS=$as_save_IFS 24005 test -z "$as_dir" && as_dir=. 24006 for ac_exec_ext in '' $ac_executable_extensions; do 24007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24008 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24010 break 2 24011 fi 24012 done 24013 done 24014 IFS=$as_save_IFS 24015 24016 ;; 24017 esac 24018 fi 24019 XATTR=$ac_cv_path_XATTR 24020 if test -n "$XATTR"; then 24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24022 $as_echo "$XATTR" >&6; } 24023 else 24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24025 $as_echo "no" >&6; } 24026 fi 24027 24028 24029 test -n "$XATTR" && break 24030 done 24031 24032 else 24033 # If it succeeded, then it was overridden by the user. We will use it 24034 # for the tool. 24035 24036 # First remove it from the list of overridden variables, so we can test 24037 # for unknown variables in the end. 24038 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24039 24040 # Check if we try to supply an empty value 24041 if test "x$XATTR" = x; then 24042 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool XATTR= (no value)" >&5 24043 $as_echo "$as_me: Setting user supplied tool XATTR= (no value)" >&6;} 24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24045 $as_echo_n "checking for XATTR... " >&6; } 24046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24047 $as_echo "disabled" >&6; } 24048 else 24049 # Check if the provided tool contains a complete path. 24050 tool_specified="$XATTR" 24051 tool_basename="${tool_specified##*/}" 24052 if test "x$tool_basename" = "x$tool_specified"; then 24053 # A command without a complete path is provided, search $PATH. 24054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 24055 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 24056 # Extract the first word of "$tool_basename", so it can be a program name with args. 24057 set dummy $tool_basename; ac_word=$2 24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24059 $as_echo_n "checking for $ac_word... " >&6; } 24060 if ${ac_cv_path_XATTR+:} false; then : 24061 $as_echo_n "(cached) " >&6 24062 else 24063 case $XATTR in 24064 [\\/]* | ?:[\\/]*) 24065 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 24066 ;; 24067 *) 24068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24069 for as_dir in $PATH 24070 do 24071 IFS=$as_save_IFS 24072 test -z "$as_dir" && as_dir=. 24073 for ac_exec_ext in '' $ac_executable_extensions; do 24074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24075 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 24076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24077 break 2 24078 fi 24079 done 24080 done 24081 IFS=$as_save_IFS 24082 24083 ;; 24084 esac 24085 fi 24086 XATTR=$ac_cv_path_XATTR 24087 if test -n "$XATTR"; then 24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 24089 $as_echo "$XATTR" >&6; } 24090 else 24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24092 $as_echo "no" >&6; } 24093 fi 24094 24095 24096 if test "x$XATTR" = x; then 24097 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24098 fi 24099 else 24100 # Otherwise we believe it is a complete path. Use it as it is. 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 24102 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 24103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 24104 $as_echo_n "checking for XATTR... " >&6; } 24105 if test ! -x "$tool_specified"; then 24106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24107 $as_echo "not found" >&6; } 24108 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 24109 fi 24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24111 $as_echo "$tool_specified" >&6; } 24112 fi 24113 fi 24114 fi 24115 24116 fi 24117 24118 24119 24120 if test "x$XATTR" = x; then 24121 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 24122 fi 24123 24124 24125 24126 24127 # Publish this variable in the help. 24128 24129 24130 if [ -z "${CODESIGN+x}" ]; then 24131 # The variable is not set by user, try to locate tool using the code snippet 24132 for ac_prog in codesign 24133 do 24134 # Extract the first word of "$ac_prog", so it can be a program name with args. 24135 set dummy $ac_prog; ac_word=$2 24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24137 $as_echo_n "checking for $ac_word... " >&6; } 24138 if ${ac_cv_path_CODESIGN+:} false; then : 24139 $as_echo_n "(cached) " >&6 24140 else 24141 case $CODESIGN in 24142 [\\/]* | ?:[\\/]*) 24143 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24144 ;; 24145 *) 24146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24147 for as_dir in $PATH 24148 do 24149 IFS=$as_save_IFS 24150 test -z "$as_dir" && as_dir=. 24151 for ac_exec_ext in '' $ac_executable_extensions; do 24152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24153 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24155 break 2 24156 fi 24157 done 24158 done 24159 IFS=$as_save_IFS 24160 24161 ;; 24162 esac 24163 fi 24164 CODESIGN=$ac_cv_path_CODESIGN 24165 if test -n "$CODESIGN"; then 24166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24167 $as_echo "$CODESIGN" >&6; } 24168 else 24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24170 $as_echo "no" >&6; } 24171 fi 24172 24173 24174 test -n "$CODESIGN" && break 24175 done 24176 24177 else 24178 # The variable is set, but is it from the command line or the environment? 24179 24180 # Try to remove the string !CODESIGN! from our list. 24181 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 24182 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24183 # If it failed, the variable was not from the command line. Ignore it, 24184 # but warn the user (except for BASH, which is always set by the calling BASH). 24185 if test "xCODESIGN" != xBASH; then 24186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 24187 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 24188 fi 24189 # Try to locate tool using the code snippet 24190 for ac_prog in codesign 24191 do 24192 # Extract the first word of "$ac_prog", so it can be a program name with args. 24193 set dummy $ac_prog; ac_word=$2 24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24195 $as_echo_n "checking for $ac_word... " >&6; } 24196 if ${ac_cv_path_CODESIGN+:} false; then : 24197 $as_echo_n "(cached) " >&6 24198 else 24199 case $CODESIGN in 24200 [\\/]* | ?:[\\/]*) 24201 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24202 ;; 24203 *) 24204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24205 for as_dir in $PATH 24206 do 24207 IFS=$as_save_IFS 24208 test -z "$as_dir" && as_dir=. 24209 for ac_exec_ext in '' $ac_executable_extensions; do 24210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24211 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24213 break 2 24214 fi 24215 done 24216 done 24217 IFS=$as_save_IFS 24218 24219 ;; 24220 esac 24221 fi 24222 CODESIGN=$ac_cv_path_CODESIGN 24223 if test -n "$CODESIGN"; then 24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24225 $as_echo "$CODESIGN" >&6; } 24226 else 24227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24228 $as_echo "no" >&6; } 24229 fi 24230 24231 24232 test -n "$CODESIGN" && break 24233 done 24234 24235 else 24236 # If it succeeded, then it was overridden by the user. We will use it 24237 # for the tool. 24238 24239 # First remove it from the list of overridden variables, so we can test 24240 # for unknown variables in the end. 24241 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24242 24243 # Check if we try to supply an empty value 24244 if test "x$CODESIGN" = x; then 24245 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CODESIGN= (no value)" >&5 24246 $as_echo "$as_me: Setting user supplied tool CODESIGN= (no value)" >&6;} 24247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24248 $as_echo_n "checking for CODESIGN... " >&6; } 24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24250 $as_echo "disabled" >&6; } 24251 else 24252 # Check if the provided tool contains a complete path. 24253 tool_specified="$CODESIGN" 24254 tool_basename="${tool_specified##*/}" 24255 if test "x$tool_basename" = "x$tool_specified"; then 24256 # A command without a complete path is provided, search $PATH. 24257 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 24258 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 24259 # Extract the first word of "$tool_basename", so it can be a program name with args. 24260 set dummy $tool_basename; ac_word=$2 24261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24262 $as_echo_n "checking for $ac_word... " >&6; } 24263 if ${ac_cv_path_CODESIGN+:} false; then : 24264 $as_echo_n "(cached) " >&6 24265 else 24266 case $CODESIGN in 24267 [\\/]* | ?:[\\/]*) 24268 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 24269 ;; 24270 *) 24271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24272 for as_dir in $PATH 24273 do 24274 IFS=$as_save_IFS 24275 test -z "$as_dir" && as_dir=. 24276 for ac_exec_ext in '' $ac_executable_extensions; do 24277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24278 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 24279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24280 break 2 24281 fi 24282 done 24283 done 24284 IFS=$as_save_IFS 24285 24286 ;; 24287 esac 24288 fi 24289 CODESIGN=$ac_cv_path_CODESIGN 24290 if test -n "$CODESIGN"; then 24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 24292 $as_echo "$CODESIGN" >&6; } 24293 else 24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24295 $as_echo "no" >&6; } 24296 fi 24297 24298 24299 if test "x$CODESIGN" = x; then 24300 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24301 fi 24302 else 24303 # Otherwise we believe it is a complete path. Use it as it is. 24304 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 24305 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 24306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 24307 $as_echo_n "checking for CODESIGN... " >&6; } 24308 if test ! -x "$tool_specified"; then 24309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24310 $as_echo "not found" >&6; } 24311 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 24312 fi 24313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24314 $as_echo "$tool_specified" >&6; } 24315 fi 24316 fi 24317 fi 24318 24319 fi 24320 24321 24322 if test "x$CODESIGN" != "x"; then 24323 # Verify that the openjdk_codesign certificate is present 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 24325 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 24326 $RM codesign-testfile 24327 $TOUCH codesign-testfile 24328 $CODESIGN -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 24329 $RM codesign-testfile 24330 if test "x$CODESIGN" = x; then 24331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24332 $as_echo "no" >&6; } 24333 else 24334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24335 $as_echo "yes" >&6; } 24336 fi 24337 fi 24338 24339 24340 24341 # Publish this variable in the help. 24342 24343 24344 if [ -z "${SETFILE+x}" ]; then 24345 # The variable is not set by user, try to locate tool using the code snippet 24346 for ac_prog in SetFile 24347 do 24348 # Extract the first word of "$ac_prog", so it can be a program name with args. 24349 set dummy $ac_prog; ac_word=$2 24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24351 $as_echo_n "checking for $ac_word... " >&6; } 24352 if ${ac_cv_path_SETFILE+:} false; then : 24353 $as_echo_n "(cached) " >&6 24354 else 24355 case $SETFILE in 24356 [\\/]* | ?:[\\/]*) 24357 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24358 ;; 24359 *) 24360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24361 for as_dir in $PATH 24362 do 24363 IFS=$as_save_IFS 24364 test -z "$as_dir" && as_dir=. 24365 for ac_exec_ext in '' $ac_executable_extensions; do 24366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24367 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24369 break 2 24370 fi 24371 done 24372 done 24373 IFS=$as_save_IFS 24374 24375 ;; 24376 esac 24377 fi 24378 SETFILE=$ac_cv_path_SETFILE 24379 if test -n "$SETFILE"; then 24380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24381 $as_echo "$SETFILE" >&6; } 24382 else 24383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24384 $as_echo "no" >&6; } 24385 fi 24386 24387 24388 test -n "$SETFILE" && break 24389 done 24390 24391 else 24392 # The variable is set, but is it from the command line or the environment? 24393 24394 # Try to remove the string !SETFILE! from our list. 24395 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 24396 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24397 # If it failed, the variable was not from the command line. Ignore it, 24398 # but warn the user (except for BASH, which is always set by the calling BASH). 24399 if test "xSETFILE" != xBASH; then 24400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 24401 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 24402 fi 24403 # Try to locate tool using the code snippet 24404 for ac_prog in SetFile 24405 do 24406 # Extract the first word of "$ac_prog", so it can be a program name with args. 24407 set dummy $ac_prog; ac_word=$2 24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24409 $as_echo_n "checking for $ac_word... " >&6; } 24410 if ${ac_cv_path_SETFILE+:} false; then : 24411 $as_echo_n "(cached) " >&6 24412 else 24413 case $SETFILE in 24414 [\\/]* | ?:[\\/]*) 24415 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24416 ;; 24417 *) 24418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24419 for as_dir in $PATH 24420 do 24421 IFS=$as_save_IFS 24422 test -z "$as_dir" && as_dir=. 24423 for ac_exec_ext in '' $ac_executable_extensions; do 24424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24425 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24427 break 2 24428 fi 24429 done 24430 done 24431 IFS=$as_save_IFS 24432 24433 ;; 24434 esac 24435 fi 24436 SETFILE=$ac_cv_path_SETFILE 24437 if test -n "$SETFILE"; then 24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24439 $as_echo "$SETFILE" >&6; } 24440 else 24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24442 $as_echo "no" >&6; } 24443 fi 24444 24445 24446 test -n "$SETFILE" && break 24447 done 24448 24449 else 24450 # If it succeeded, then it was overridden by the user. We will use it 24451 # for the tool. 24452 24453 # First remove it from the list of overridden variables, so we can test 24454 # for unknown variables in the end. 24455 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24456 24457 # Check if we try to supply an empty value 24458 if test "x$SETFILE" = x; then 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool SETFILE= (no value)" >&5 24460 $as_echo "$as_me: Setting user supplied tool SETFILE= (no value)" >&6;} 24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24462 $as_echo_n "checking for SETFILE... " >&6; } 24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 24464 $as_echo "disabled" >&6; } 24465 else 24466 # Check if the provided tool contains a complete path. 24467 tool_specified="$SETFILE" 24468 tool_basename="${tool_specified##*/}" 24469 if test "x$tool_basename" = "x$tool_specified"; then 24470 # A command without a complete path is provided, search $PATH. 24471 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 24472 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 24473 # Extract the first word of "$tool_basename", so it can be a program name with args. 24474 set dummy $tool_basename; ac_word=$2 24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24476 $as_echo_n "checking for $ac_word... " >&6; } 24477 if ${ac_cv_path_SETFILE+:} false; then : 24478 $as_echo_n "(cached) " >&6 24479 else 24480 case $SETFILE in 24481 [\\/]* | ?:[\\/]*) 24482 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 24483 ;; 24484 *) 24485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24486 for as_dir in $PATH 24487 do 24488 IFS=$as_save_IFS 24489 test -z "$as_dir" && as_dir=. 24490 for ac_exec_ext in '' $ac_executable_extensions; do 24491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24492 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 24493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24494 break 2 24495 fi 24496 done 24497 done 24498 IFS=$as_save_IFS 24499 24500 ;; 24501 esac 24502 fi 24503 SETFILE=$ac_cv_path_SETFILE 24504 if test -n "$SETFILE"; then 24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 24506 $as_echo "$SETFILE" >&6; } 24507 else 24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24509 $as_echo "no" >&6; } 24510 fi 24511 24512 24513 if test "x$SETFILE" = x; then 24514 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 24515 fi 24516 else 24517 # Otherwise we believe it is a complete path. Use it as it is. 24518 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 24519 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 24521 $as_echo_n "checking for SETFILE... " >&6; } 24522 if test ! -x "$tool_specified"; then 24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24524 $as_echo "not found" >&6; } 24525 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 24526 fi 24527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 24528 $as_echo "$tool_specified" >&6; } 24529 fi 24530 fi 24531 fi 24532 24533 fi 24534 24535 24536 24537 if test "x$SETFILE" = x; then 24538 as_fn_error $? "Could not find required tool for SETFILE" "$LINENO" 5 24539 fi 24540 24541 24542 fi 24543 24544 24545 # Check bash version 24546 # Extra [ ] to stop m4 mangling 24547 BASH_VER=`$BASH --version | $SED -n -e 's/^.*bash.*ersion *\([0-9.]*\).*$/\1/ p'` 24548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking bash version" >&5 24549 $as_echo_n "checking bash version... " >&6; } 24550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH_VER" >&5 24551 $as_echo "$BASH_VER" >&6; } 24552 24553 BASH_MAJOR=`$ECHO $BASH_VER | $CUT -d . -f 1` 24554 BASH_MINOR=`$ECHO $BASH_VER | $CUT -d . -f 2` 24555 if test $BASH_MAJOR -lt 3 || (test $BASH_MAJOR -eq 3 && test $BASH_MINOR -lt 2); then 24556 as_fn_error $? "bash version 3.2 or better is required" "$LINENO" 5 24557 fi 24558 24559 # Test if bash supports pipefail. 24560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 24561 $as_echo_n "checking if bash supports pipefail... " >&6; } 24562 if ${BASH} -c 'set -o pipefail'; then 24563 BASH_ARGS="$BASH_ARGS -o pipefail" 24564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24565 $as_echo "yes" >&6; } 24566 else 24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24568 $as_echo "no" >&6; } 24569 fi 24570 24571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 24572 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 24573 if ${BASH} -e -c 'true'; then 24574 BASH_ARGS="$BASH_ARGS -e" 24575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24576 $as_echo "yes" >&6; } 24577 else 24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24579 $as_echo "no" >&6; } 24580 fi 24581 24582 24583 24584 24585 # Check if pkg-config is available. 24586 24587 24588 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 24589 if test -n "$ac_tool_prefix"; then 24590 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 24591 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 24592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24593 $as_echo_n "checking for $ac_word... " >&6; } 24594 if ${ac_cv_path_PKG_CONFIG+:} false; then : 24595 $as_echo_n "(cached) " >&6 24596 else 24597 case $PKG_CONFIG in 24598 [\\/]* | ?:[\\/]*) 24599 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 24600 ;; 24601 *) 24602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24603 for as_dir in $PATH 24604 do 24605 IFS=$as_save_IFS 24606 test -z "$as_dir" && as_dir=. 24607 for ac_exec_ext in '' $ac_executable_extensions; do 24608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24609 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24611 break 2 24612 fi 24613 done 24614 done 24615 IFS=$as_save_IFS 24616 24617 ;; 24618 esac 24619 fi 24620 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 24621 if test -n "$PKG_CONFIG"; then 24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 24623 $as_echo "$PKG_CONFIG" >&6; } 24624 else 24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24626 $as_echo "no" >&6; } 24627 fi 24628 24629 24630 fi 24631 if test -z "$ac_cv_path_PKG_CONFIG"; then 24632 ac_pt_PKG_CONFIG=$PKG_CONFIG 24633 # Extract the first word of "pkg-config", so it can be a program name with args. 24634 set dummy pkg-config; ac_word=$2 24635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24636 $as_echo_n "checking for $ac_word... " >&6; } 24637 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 24638 $as_echo_n "(cached) " >&6 24639 else 24640 case $ac_pt_PKG_CONFIG in 24641 [\\/]* | ?:[\\/]*) 24642 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 24643 ;; 24644 *) 24645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24646 for as_dir in $PATH 24647 do 24648 IFS=$as_save_IFS 24649 test -z "$as_dir" && as_dir=. 24650 for ac_exec_ext in '' $ac_executable_extensions; do 24651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24652 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 24653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24654 break 2 24655 fi 24656 done 24657 done 24658 IFS=$as_save_IFS 24659 24660 ;; 24661 esac 24662 fi 24663 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 24664 if test -n "$ac_pt_PKG_CONFIG"; then 24665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 24666 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 24667 else 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24669 $as_echo "no" >&6; } 24670 fi 24671 24672 if test "x$ac_pt_PKG_CONFIG" = x; then 24673 PKG_CONFIG="" 24674 else 24675 case $cross_compiling:$ac_tool_warned in 24676 yes:) 24677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 24678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 24679 ac_tool_warned=yes ;; 24680 esac 24681 PKG_CONFIG=$ac_pt_PKG_CONFIG 24682 fi 24683 else 24684 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 24685 fi 24686 24687 fi 24688 if test -n "$PKG_CONFIG"; then 24689 _pkg_min_version=0.9.0 24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 24691 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 24692 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24694 $as_echo "yes" >&6; } 24695 else 24696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24697 $as_echo "no" >&6; } 24698 PKG_CONFIG="" 24699 fi 24700 24701 fi 24702 24703 # After basic tools have been setup, we can check build os specific details. 24704 24705 ############################################################################### 24706 24707 # Note that this is the build platform OS version! 24708 24709 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 24710 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 24711 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 24712 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 24713 24714 24715 24716 24717 24718 # Misc basic settings 24719 24720 24721 # Check whether --with-default-make-target was given. 24722 if test "${with_default_make_target+set}" = set; then : 24723 withval=$with_default_make_target; 24724 fi 24725 24726 if test "x$with_default_make_target" = "x" \ 24727 || test "x$with_default_make_target" = "xyes"; then 24728 DEFAULT_MAKE_TARGET="exploded-image" 24729 elif test "x$with_default_make_target" = "xno"; then 24730 as_fn_error $? "--without-default-make-target is not a valid option" "$LINENO" 5 24731 else 24732 DEFAULT_MAKE_TARGET="$with_default_make_target" 24733 fi 24734 24735 24736 24737 24738 ############################################################################### 24739 # 24740 # Determine OpenJDK variants, options and version numbers. 24741 # 24742 ############################################################################### 24743 24744 # We need build & target for this. 24745 24746 # Should we build a JDK without a graphical UI? 24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headless only" >&5 24748 $as_echo_n "checking headless only... " >&6; } 24749 # Check whether --enable-headless-only was given. 24750 if test "${enable_headless_only+set}" = set; then : 24751 enableval=$enable_headless_only; 24752 fi 24753 24754 24755 if test "x$enable_headless_only" = "xyes"; then 24756 ENABLE_HEADLESS_ONLY="true" 24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24758 $as_echo "yes" >&6; } 24759 elif test "x$enable_headless_only" = "xno"; then 24760 ENABLE_HEADLESS_ONLY="false" 24761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24762 $as_echo "no" >&6; } 24763 elif test "x$enable_headless_only" = "x"; then 24764 ENABLE_HEADLESS_ONLY="false" 24765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24766 $as_echo "no" >&6; } 24767 else 24768 as_fn_error $? "--enable-headless-only can only take yes or no" "$LINENO" 5 24769 fi 24770 24771 24772 24773 # Should we build the complete docs, or just a lightweight version? 24774 # Check whether --enable-full-docs was given. 24775 if test "${enable_full_docs+set}" = set; then : 24776 enableval=$enable_full_docs; 24777 fi 24778 24779 24780 # Verify dependencies 24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for graphviz dot" >&5 24782 $as_echo_n "checking for graphviz dot... " >&6; } 24783 if test "x$DOT" != "x"; then 24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24785 $as_echo "yes" >&6; } 24786 else 24787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24788 $as_echo "no, cannot generate full docs" >&6; } 24789 FULL_DOCS_DEP_MISSING=true 24790 fi 24791 24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pandoc" >&5 24793 $as_echo_n "checking for pandoc... " >&6; } 24794 if test "x$PANDOC" != "x"; then 24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24796 $as_echo "yes" >&6; } 24797 else 24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, cannot generate full docs" >&5 24799 $as_echo "no, cannot generate full docs" >&6; } 24800 FULL_DOCS_DEP_MISSING=true 24801 fi 24802 24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full docs" >&5 24804 $as_echo_n "checking full docs... " >&6; } 24805 if test "x$enable_full_docs" = xyes; then 24806 if test "x$FULL_DOCS_DEP_MISSING" = "xtrue"; then 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24808 $as_echo "no, missing dependencies" >&6; } 24809 24810 # Print a helpful message on how to acquire the necessary build dependency. 24811 # dot is the help tag: freetype, cups, alsa etc 24812 MISSING_DEPENDENCY=dot 24813 24814 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24815 cygwin_help $MISSING_DEPENDENCY 24816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24817 msys_help $MISSING_DEPENDENCY 24818 else 24819 PKGHANDLER_COMMAND= 24820 24821 case $PKGHANDLER in 24822 apt-get) 24823 apt_help $MISSING_DEPENDENCY ;; 24824 yum) 24825 yum_help $MISSING_DEPENDENCY ;; 24826 brew) 24827 brew_help $MISSING_DEPENDENCY ;; 24828 port) 24829 port_help $MISSING_DEPENDENCY ;; 24830 pkgutil) 24831 pkgutil_help $MISSING_DEPENDENCY ;; 24832 pkgadd) 24833 pkgadd_help $MISSING_DEPENDENCY ;; 24834 esac 24835 24836 if test "x$PKGHANDLER_COMMAND" != x; then 24837 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24838 fi 24839 fi 24840 24841 as_fn_error $? "Cannot enable full docs with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 24842 else 24843 ENABLE_FULL_DOCS=true 24844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 24845 $as_echo "yes, forced" >&6; } 24846 fi 24847 elif test "x$enable_full_docs" = xno; then 24848 ENABLE_FULL_DOCS=false 24849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 24850 $as_echo "no, forced" >&6; } 24851 elif test "x$enable_full_docs" = x; then 24852 # Check for prerequisites 24853 if test "x$FULL_DOCS_DEP_MISSING" = xtrue; then 24854 ENABLE_FULL_DOCS=false 24855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 24856 $as_echo "no, missing dependencies" >&6; } 24857 else 24858 ENABLE_FULL_DOCS=true 24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 24860 $as_echo "yes, dependencies present" >&6; } 24861 fi 24862 else 24863 as_fn_error $? "--enable-full-docs can only take yes or no" "$LINENO" 5 24864 fi 24865 24866 24867 24868 # Choose cacerts source file 24869 24870 # Check whether --with-cacerts-file was given. 24871 if test "${with_cacerts_file+set}" = set; then : 24872 withval=$with_cacerts_file; 24873 fi 24874 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacerts file" >&5 24876 $as_echo_n "checking for cacerts file... " >&6; } 24877 if test "x$with_cacerts_file" == x; then 24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 24879 $as_echo "default" >&6; } 24880 else 24881 CACERTS_FILE=$with_cacerts_file 24882 if test ! -f "$CACERTS_FILE"; then 24883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fail" >&5 24884 $as_echo "fail" >&6; } 24885 as_fn_error $? "Specified cacerts file \"$CACERTS_FILE\" does not exist" "$LINENO" 5 24886 fi 24887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CACERTS_FILE" >&5 24888 $as_echo "$CACERTS_FILE" >&6; } 24889 fi 24890 24891 24892 # Enable or disable unlimited crypto 24893 # Check whether --enable-unlimited-crypto was given. 24894 if test "${enable_unlimited_crypto+set}" = set; then : 24895 enableval=$enable_unlimited_crypto; 24896 else 24897 enable_unlimited_crypto=yes 24898 fi 24899 24900 if test "x$enable_unlimited_crypto" = "xyes"; then 24901 UNLIMITED_CRYPTO=true 24902 else 24903 UNLIMITED_CRYPTO=false 24904 fi 24905 24906 24907 # Should we build the serviceability agent (SA)? 24908 INCLUDE_SA=true 24909 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 24910 INCLUDE_SA=false 24911 fi 24912 if test "x$OPENJDK_TARGET_OS" = xaix ; then 24913 INCLUDE_SA=false 24914 fi 24915 24916 24917 # Compress jars 24918 COMPRESS_JARS=false 24919 24920 24921 24922 # Setup default copyright year. Mostly overridden when building close to a new year. 24923 24924 # Check whether --with-copyright-year was given. 24925 if test "${with_copyright_year+set}" = set; then : 24926 withval=$with_copyright_year; 24927 fi 24928 24929 if test "x$with_copyright_year" = xyes; then 24930 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 24931 elif test "x$with_copyright_year" != x; then 24932 COPYRIGHT_YEAR="$with_copyright_year" 24933 else 24934 COPYRIGHT_YEAR=`$DATE +'%Y'` 24935 fi 24936 24937 24938 24939 # Check whether --enable-keep-packaged-modules was given. 24940 if test "${enable_keep_packaged_modules+set}" = set; then : 24941 enableval=$enable_keep_packaged_modules; 24942 fi 24943 24944 24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if packaged modules are kept" >&5 24946 $as_echo_n "checking if packaged modules are kept... " >&6; } 24947 if test "x$enable_keep_packaged_modules" = "xyes"; then 24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24949 $as_echo "yes" >&6; } 24950 JLINK_KEEP_PACKAGED_MODULES=true 24951 elif test "x$enable_keep_packaged_modules" = "xno"; then 24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24953 $as_echo "no" >&6; } 24954 JLINK_KEEP_PACKAGED_MODULES=false 24955 elif test "x$enable_keep_packaged_modules" = "x"; then 24956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 24957 $as_echo "yes (default)" >&6; } 24958 JLINK_KEEP_PACKAGED_MODULES=true 24959 else 24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: error" >&5 24961 $as_echo "error" >&6; } 24962 as_fn_error $? "--enable-keep-packaged-modules accepts no argument" "$LINENO" 5 24963 fi 24964 24965 24966 24967 24968 # Warn user that old version arguments are deprecated. 24969 24970 24971 # Check whether --with-milestone was given. 24972 if test "${with_milestone+set}" = set; then : 24973 withval=$with_milestone; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-milestone is deprecated and will be ignored." >&5 24974 $as_echo "$as_me: WARNING: Option --with-milestone is deprecated and will be ignored." >&2;} 24975 fi 24976 24977 24978 24979 24980 # Check whether --with-update-version was given. 24981 if test "${with_update_version+set}" = set; then : 24982 withval=$with_update_version; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-update-version is deprecated and will be ignored." >&5 24983 $as_echo "$as_me: WARNING: Option --with-update-version is deprecated and will be ignored." >&2;} 24984 fi 24985 24986 24987 24988 24989 # Check whether --with-user-release-suffix was given. 24990 if test "${with_user_release_suffix+set}" = set; then : 24991 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 24992 $as_echo "$as_me: WARNING: Option --with-user-release-suffix is deprecated and will be ignored." >&2;} 24993 fi 24994 24995 24996 24997 24998 # Check whether --with-build-number was given. 24999 if test "${with_build_number+set}" = set; then : 25000 withval=$with_build_number; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-build-number is deprecated and will be ignored." >&5 25001 $as_echo "$as_me: WARNING: Option --with-build-number is deprecated and will be ignored." >&2;} 25002 fi 25003 25004 25005 25006 25007 # Check whether --with-version-major was given. 25008 if test "${with_version_major+set}" = set; then : 25009 withval=$with_version_major; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-major is deprecated and will be ignored." >&5 25010 $as_echo "$as_me: WARNING: Option --with-version-major is deprecated and will be ignored." >&2;} 25011 fi 25012 25013 25014 25015 25016 # Check whether --with-version-minor was given. 25017 if test "${with_version_minor+set}" = set; then : 25018 withval=$with_version_minor; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-minor is deprecated and will be ignored." >&5 25019 $as_echo "$as_me: WARNING: Option --with-version-minor is deprecated and will be ignored." >&2;} 25020 fi 25021 25022 25023 25024 25025 # Check whether --with-version-security was given. 25026 if test "${with_version_security+set}" = set; then : 25027 withval=$with_version_security; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-version-security is deprecated and will be ignored." >&5 25028 $as_echo "$as_me: WARNING: Option --with-version-security is deprecated and will be ignored." >&2;} 25029 fi 25030 25031 25032 25033 # Source the version numbers file 25034 . $AUTOCONF_DIR/version-numbers 25035 25036 # Some non-version number information is set in that file 25037 25038 25039 25040 25041 25042 25043 25044 25045 # The vendor name, if any 25046 25047 # Check whether --with-vendor-name was given. 25048 if test "${with_vendor_name+set}" = set; then : 25049 withval=$with_vendor_name; 25050 fi 25051 25052 if test "x$with_vendor_name" = xyes; then 25053 as_fn_error $? "--with-vendor-name must have a value" "$LINENO" 5 25054 elif ! [[ $with_vendor_name =~ ^[[:print:]]*$ ]] ; then 25055 as_fn_error $? "--with--vendor-name contains non-printing characters: $with_vendor_name" "$LINENO" 5 25056 else 25057 COMPANY_NAME="$with_vendor_name" 25058 fi 25059 25060 25061 # Override version from arguments 25062 25063 # If --with-version-string is set, process it first. It is possible to 25064 # override parts with more specific flags, since these are processed later. 25065 25066 # Check whether --with-version-string was given. 25067 if test "${with_version_string+set}" = set; then : 25068 withval=$with_version_string; 25069 fi 25070 25071 if test "x$with_version_string" = xyes; then 25072 as_fn_error $? "--with-version-string must have a value" "$LINENO" 5 25073 elif test "x$with_version_string" != x; then 25074 # Additional [] needed to keep m4 from mangling shell constructs. 25075 if [[ $with_version_string =~ ^([0-9]+)(\.([0-9]+))?(\.([0-9]+))?(\.([0-9]+))?(-([a-zA-Z]+))?((\+)([0-9]+)?(-([-a-zA-Z0-9.]+))?)?$ ]] ; then 25076 VERSION_FEATURE=${BASH_REMATCH[1]} 25077 VERSION_INTERIM=${BASH_REMATCH[3]} 25078 VERSION_UPDATE=${BASH_REMATCH[5]} 25079 VERSION_PATCH=${BASH_REMATCH[7]} 25080 VERSION_PRE=${BASH_REMATCH[9]} 25081 version_plus_separator=${BASH_REMATCH[11]} 25082 VERSION_BUILD=${BASH_REMATCH[12]} 25083 VERSION_OPT=${BASH_REMATCH[14]} 25084 # Unspecified numerical fields are interpreted as 0. 25085 if test "x$VERSION_INTERIM" = x; then 25086 VERSION_INTERIM=0 25087 fi 25088 if test "x$VERSION_UPDATE" = x; then 25089 VERSION_UPDATE=0 25090 fi 25091 if test "x$VERSION_PATCH" = x; then 25092 VERSION_PATCH=0 25093 fi 25094 if test "x$version_plus_separator" != x \ 25095 && test "x$VERSION_BUILD$VERSION_OPT" = x; then 25096 as_fn_error $? "Version string contains + but both 'BUILD' and 'OPT' are missing" "$LINENO" 5 25097 fi 25098 # Stop the version part process from setting default values. 25099 # We still allow them to explicitly override though. 25100 NO_DEFAULT_VERSION_PARTS=true 25101 else 25102 as_fn_error $? "--with-version-string fails to parse as a valid version string: $with_version_string" "$LINENO" 5 25103 fi 25104 fi 25105 25106 25107 # Check whether --with-version-pre was given. 25108 if test "${with_version_pre+set}" = set; then : 25109 withval=$with_version_pre; with_version_pre_present=true 25110 else 25111 with_version_pre_present=false 25112 fi 25113 25114 25115 if test "x$with_version_pre_present" = xtrue; then 25116 if test "x$with_version_pre" = xyes; then 25117 as_fn_error $? "--with-version-pre must have a value" "$LINENO" 5 25118 elif test "x$with_version_pre" = xno; then 25119 # Interpret --without-* as empty string instead of the literal "no" 25120 VERSION_PRE= 25121 else 25122 # Only [a-zA-Z] is allowed in the VERSION_PRE. Outer [ ] to quote m4. 25123 VERSION_PRE=`$ECHO "$with_version_pre" | $TR -c -d '[a-z][A-Z]'` 25124 if test "x$VERSION_PRE" != "x$with_version_pre"; then 25125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&5 25126 $as_echo "$as_me: WARNING: --with-version-pre value has been sanitized from '$with_version_pre' to '$VERSION_PRE'" >&2;} 25127 fi 25128 fi 25129 else 25130 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25131 # Default is to use "internal" as pre 25132 VERSION_PRE="internal" 25133 fi 25134 fi 25135 25136 25137 # Check whether --with-version-opt was given. 25138 if test "${with_version_opt+set}" = set; then : 25139 withval=$with_version_opt; with_version_opt_present=true 25140 else 25141 with_version_opt_present=false 25142 fi 25143 25144 25145 if test "x$with_version_opt_present" = xtrue; then 25146 if test "x$with_version_opt" = xyes; then 25147 as_fn_error $? "--with-version-opt must have a value" "$LINENO" 5 25148 elif test "x$with_version_opt" = xno; then 25149 # Interpret --without-* as empty string instead of the literal "no" 25150 VERSION_OPT= 25151 else 25152 # Only [-.a-zA-Z0-9] is allowed in the VERSION_OPT. Outer [ ] to quote m4. 25153 VERSION_OPT=`$ECHO "$with_version_opt" | $TR -c -d '[a-z][A-Z][0-9].-'` 25154 if test "x$VERSION_OPT" != "x$with_version_opt"; then 25155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&5 25156 $as_echo "$as_me: WARNING: --with-version-opt value has been sanitized from '$with_version_opt' to '$VERSION_OPT'" >&2;} 25157 fi 25158 fi 25159 else 25160 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25161 # Default is to calculate a string like this 'adhoc.<username>.<base dir name>' 25162 # Outer [ ] to quote m4. 25163 basedirname=`$BASENAME "$TOPDIR" | $TR -d -c '[a-z][A-Z][0-9].-'` 25164 VERSION_OPT="adhoc.$USERNAME.$basedirname" 25165 fi 25166 fi 25167 25168 25169 # Check whether --with-version-build was given. 25170 if test "${with_version_build+set}" = set; then : 25171 withval=$with_version_build; with_version_build_present=true 25172 else 25173 with_version_build_present=false 25174 fi 25175 25176 25177 if test "x$with_version_build_present" = xtrue; then 25178 if test "x$with_version_build" = xyes; then 25179 as_fn_error $? "--with-version-build must have a value" "$LINENO" 5 25180 elif test "x$with_version_build" = xno; then 25181 # Interpret --without-* as empty string instead of the literal "no" 25182 VERSION_BUILD= 25183 elif test "x$with_version_build" = x; then 25184 VERSION_BUILD= 25185 else 25186 25187 # Additional [] needed to keep m4 from mangling shell constructs. 25188 if ! [[ "$with_version_build" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25189 as_fn_error $? "\"$with_version_build\" is not a valid numerical value for VERSION_BUILD" "$LINENO" 5 25190 fi 25191 # Extract the version number without leading zeros. 25192 cleaned_value=${BASH_REMATCH[1]} 25193 if test "x$cleaned_value" = x; then 25194 # Special case for zero 25195 cleaned_value=${BASH_REMATCH[2]} 25196 fi 25197 25198 if test $cleaned_value -gt 255; then 25199 as_fn_error $? "VERSION_BUILD is given as $with_version_build. This is greater than 255 which is not allowed." "$LINENO" 5 25200 fi 25201 if test "x$cleaned_value" != "x$with_version_build"; then 25202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&5 25203 $as_echo "$as_me: WARNING: Value for VERSION_BUILD has been sanitized from '$with_version_build' to '$cleaned_value'" >&2;} 25204 fi 25205 VERSION_BUILD=$cleaned_value 25206 25207 fi 25208 else 25209 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25210 # Default is to not have a build number. 25211 VERSION_BUILD="" 25212 # FIXME: Until all code can cope with an empty VERSION_BUILD, set it to 0. 25213 VERSION_BUILD=0 25214 fi 25215 fi 25216 25217 25218 # Check whether --with-version-feature was given. 25219 if test "${with_version_feature+set}" = set; then : 25220 withval=$with_version_feature; with_version_feature_present=true 25221 else 25222 with_version_feature_present=false 25223 fi 25224 25225 25226 if test "x$with_version_feature_present" = xtrue; then 25227 if test "x$with_version_feature" = xyes; then 25228 as_fn_error $? "--with-version-feature must have a value" "$LINENO" 5 25229 else 25230 25231 # Additional [] needed to keep m4 from mangling shell constructs. 25232 if ! [[ "$with_version_feature" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25233 as_fn_error $? "\"$with_version_feature\" is not a valid numerical value for VERSION_FEATURE" "$LINENO" 5 25234 fi 25235 # Extract the version number without leading zeros. 25236 cleaned_value=${BASH_REMATCH[1]} 25237 if test "x$cleaned_value" = x; then 25238 # Special case for zero 25239 cleaned_value=${BASH_REMATCH[2]} 25240 fi 25241 25242 if test $cleaned_value -gt 255; then 25243 as_fn_error $? "VERSION_FEATURE is given as $with_version_feature. This is greater than 255 which is not allowed." "$LINENO" 5 25244 fi 25245 if test "x$cleaned_value" != "x$with_version_feature"; then 25246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&5 25247 $as_echo "$as_me: WARNING: Value for VERSION_FEATURE has been sanitized from '$with_version_feature' to '$cleaned_value'" >&2;} 25248 fi 25249 VERSION_FEATURE=$cleaned_value 25250 25251 fi 25252 else 25253 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25254 # Default is to get value from version-numbers 25255 VERSION_FEATURE="$DEFAULT_VERSION_FEATURE" 25256 fi 25257 fi 25258 25259 25260 # Check whether --with-version-interim was given. 25261 if test "${with_version_interim+set}" = set; then : 25262 withval=$with_version_interim; with_version_interim_present=true 25263 else 25264 with_version_interim_present=false 25265 fi 25266 25267 25268 if test "x$with_version_interim_present" = xtrue; then 25269 if test "x$with_version_interim" = xyes; then 25270 as_fn_error $? "--with-version-interim must have a value" "$LINENO" 5 25271 elif test "x$with_version_interim" = xno; then 25272 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25273 VERSION_INTERIM=0 25274 elif test "x$with_version_interim" = x; then 25275 VERSION_INTERIM=0 25276 else 25277 25278 # Additional [] needed to keep m4 from mangling shell constructs. 25279 if ! [[ "$with_version_interim" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25280 as_fn_error $? "\"$with_version_interim\" is not a valid numerical value for VERSION_INTERIM" "$LINENO" 5 25281 fi 25282 # Extract the version number without leading zeros. 25283 cleaned_value=${BASH_REMATCH[1]} 25284 if test "x$cleaned_value" = x; then 25285 # Special case for zero 25286 cleaned_value=${BASH_REMATCH[2]} 25287 fi 25288 25289 if test $cleaned_value -gt 255; then 25290 as_fn_error $? "VERSION_INTERIM is given as $with_version_interim. This is greater than 255 which is not allowed." "$LINENO" 5 25291 fi 25292 if test "x$cleaned_value" != "x$with_version_interim"; then 25293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&5 25294 $as_echo "$as_me: WARNING: Value for VERSION_INTERIM has been sanitized from '$with_version_interim' to '$cleaned_value'" >&2;} 25295 fi 25296 VERSION_INTERIM=$cleaned_value 25297 25298 fi 25299 else 25300 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25301 # Default is 0, if unspecified 25302 VERSION_INTERIM=$DEFAULT_VERSION_INTERIM 25303 fi 25304 fi 25305 25306 25307 # Check whether --with-version-update was given. 25308 if test "${with_version_update+set}" = set; then : 25309 withval=$with_version_update; with_version_update_present=true 25310 else 25311 with_version_update_present=false 25312 fi 25313 25314 25315 if test "x$with_version_update_present" = xtrue; then 25316 if test "x$with_version_update" = xyes; then 25317 as_fn_error $? "--with-version-update must have a value" "$LINENO" 5 25318 elif test "x$with_version_update" = xno; then 25319 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25320 VERSION_UPDATE=0 25321 elif test "x$with_version_update" = x; then 25322 VERSION_UPDATE=0 25323 else 25324 25325 # Additional [] needed to keep m4 from mangling shell constructs. 25326 if ! [[ "$with_version_update" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25327 as_fn_error $? "\"$with_version_update\" is not a valid numerical value for VERSION_UPDATE" "$LINENO" 5 25328 fi 25329 # Extract the version number without leading zeros. 25330 cleaned_value=${BASH_REMATCH[1]} 25331 if test "x$cleaned_value" = x; then 25332 # Special case for zero 25333 cleaned_value=${BASH_REMATCH[2]} 25334 fi 25335 25336 if test $cleaned_value -gt 255; then 25337 as_fn_error $? "VERSION_UPDATE is given as $with_version_update. This is greater than 255 which is not allowed." "$LINENO" 5 25338 fi 25339 if test "x$cleaned_value" != "x$with_version_update"; then 25340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&5 25341 $as_echo "$as_me: WARNING: Value for VERSION_UPDATE has been sanitized from '$with_version_update' to '$cleaned_value'" >&2;} 25342 fi 25343 VERSION_UPDATE=$cleaned_value 25344 25345 fi 25346 else 25347 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25348 # Default is 0, if unspecified 25349 VERSION_UPDATE=$DEFAULT_VERSION_UPDATE 25350 fi 25351 fi 25352 25353 25354 # Check whether --with-version-patch was given. 25355 if test "${with_version_patch+set}" = set; then : 25356 withval=$with_version_patch; with_version_patch_present=true 25357 else 25358 with_version_patch_present=false 25359 fi 25360 25361 25362 if test "x$with_version_patch_present" = xtrue; then 25363 if test "x$with_version_patch" = xyes; then 25364 as_fn_error $? "--with-version-patch must have a value" "$LINENO" 5 25365 elif test "x$with_version_patch" = xno; then 25366 # Interpret --without-* as empty string (i.e. 0) instead of the literal "no" 25367 VERSION_PATCH=0 25368 elif test "x$with_version_patch" = x; then 25369 VERSION_PATCH=0 25370 else 25371 25372 # Additional [] needed to keep m4 from mangling shell constructs. 25373 if ! [[ "$with_version_patch" =~ ^0*([1-9][0-9]*)|(0)$ ]] ; then 25374 as_fn_error $? "\"$with_version_patch\" is not a valid numerical value for VERSION_PATCH" "$LINENO" 5 25375 fi 25376 # Extract the version number without leading zeros. 25377 cleaned_value=${BASH_REMATCH[1]} 25378 if test "x$cleaned_value" = x; then 25379 # Special case for zero 25380 cleaned_value=${BASH_REMATCH[2]} 25381 fi 25382 25383 if test $cleaned_value -gt 255; then 25384 as_fn_error $? "VERSION_PATCH is given as $with_version_patch. This is greater than 255 which is not allowed." "$LINENO" 5 25385 fi 25386 if test "x$cleaned_value" != "x$with_version_patch"; then 25387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&5 25388 $as_echo "$as_me: WARNING: Value for VERSION_PATCH has been sanitized from '$with_version_patch' to '$cleaned_value'" >&2;} 25389 fi 25390 VERSION_PATCH=$cleaned_value 25391 25392 fi 25393 else 25394 if test "x$NO_DEFAULT_VERSION_PARTS" != xtrue; then 25395 # Default is 0, if unspecified 25396 VERSION_PATCH=$DEFAULT_VERSION_PATCH 25397 fi 25398 fi 25399 25400 # Calculate derived version properties 25401 25402 # Set VERSION_IS_GA based on if VERSION_PRE has a value 25403 if test "x$VERSION_PRE" = x; then 25404 VERSION_IS_GA=true 25405 else 25406 VERSION_IS_GA=false 25407 fi 25408 25409 # VERSION_NUMBER but always with exactly 4 positions, with 0 for empty positions. 25410 VERSION_NUMBER_FOUR_POSITIONS=$VERSION_FEATURE.$VERSION_INTERIM.$VERSION_UPDATE.$VERSION_PATCH 25411 25412 stripped_version_number=$VERSION_NUMBER_FOUR_POSITIONS 25413 # Strip trailing zeroes from stripped_version_number 25414 for i in 1 2 3 ; do stripped_version_number=${stripped_version_number%.0} ; done 25415 VERSION_NUMBER=$stripped_version_number 25416 25417 # The complete version string, with additional build information 25418 if test "x$VERSION_BUILD$VERSION_OPT" = x; then 25419 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25420 else 25421 # If either build or opt is set, we need a + separator 25422 VERSION_STRING=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE}+$VERSION_BUILD${VERSION_OPT:+-$VERSION_OPT} 25423 fi 25424 25425 # The short version string, just VERSION_NUMBER and PRE, if present. 25426 VERSION_SHORT=$VERSION_NUMBER${VERSION_PRE:+-$VERSION_PRE} 25427 25428 # The version date 25429 25430 # Check whether --with-version-date was given. 25431 if test "${with_version_date+set}" = set; then : 25432 withval=$with_version_date; 25433 fi 25434 25435 if test "x$with_version_date" = xyes; then 25436 as_fn_error $? "--with-version-date must have a value" "$LINENO" 5 25437 elif test "x$with_version_date" != x; then 25438 if ! [[ $with_version_date =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] ; then 25439 as_fn_error $? "\"$with_version_date\" is not a valid version date" "$LINENO" 5 25440 else 25441 VERSION_DATE="$with_version_date" 25442 fi 25443 else 25444 VERSION_DATE="$DEFAULT_VERSION_DATE" 25445 fi 25446 25447 # The vendor version string, if any 25448 25449 # Check whether --with-vendor-version-string was given. 25450 if test "${with_vendor_version_string+set}" = set; then : 25451 withval=$with_vendor_version_string; 25452 fi 25453 25454 if test "x$with_vendor_version_string" = xyes; then 25455 as_fn_error $? "--with-vendor-version-string must have a value" "$LINENO" 5 25456 elif ! [[ $with_vendor_version_string =~ ^[[:graph:]]*$ ]] ; then 25457 as_fn_error $? "--with--vendor-version-string contains non-graphical characters: $with_vendor_version_string" "$LINENO" 5 25458 else 25459 VENDOR_VERSION_STRING="$with_vendor_version_string" 25460 fi 25461 25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version string" >&5 25463 $as_echo_n "checking for version string... " >&6; } 25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VERSION_STRING" >&5 25465 $as_echo "$VERSION_STRING" >&6; } 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 ############################################################################### 25484 # 25485 # Setup BootJDK, used to bootstrap the build. 25486 # 25487 ############################################################################### 25488 25489 25490 BOOT_JDK_FOUND=no 25491 25492 # Check whether --with-boot-jdk was given. 25493 if test "${with_boot_jdk+set}" = set; then : 25494 withval=$with_boot_jdk; 25495 fi 25496 25497 25498 # We look for the Boot JDK through various means, going from more certain to 25499 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 25500 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 25501 # must check if this is indeed valid; otherwise we'll continue looking. 25502 25503 # Test: Is bootjdk explicitly set by command line arguments? 25504 25505 if test "x$BOOT_JDK_FOUND" = xno; then 25506 # Now execute the test 25507 25508 if test "x$with_boot_jdk" != x; then 25509 BOOT_JDK=$with_boot_jdk 25510 BOOT_JDK_FOUND=maybe 25511 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 25512 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 25513 fi 25514 25515 25516 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25517 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25518 # Do we have a bin/java? 25519 if test ! -x "$BOOT_JDK/bin/java"; then 25520 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25521 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25522 BOOT_JDK_FOUND=no 25523 else 25524 # Do we have a bin/javac? 25525 if test ! -x "$BOOT_JDK/bin/javac"; then 25526 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25527 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25528 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25529 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25530 BOOT_JDK_FOUND=no 25531 else 25532 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25533 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25534 25535 # Extra M4 quote needed to protect [] in grep expression. 25536 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25537 if test "x$FOUND_CORRECT_VERSION" = x; then 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25539 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25541 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25542 BOOT_JDK_FOUND=no 25543 else 25544 # We're done! :-) 25545 BOOT_JDK_FOUND=yes 25546 25547 # Only process if variable expands to non-empty 25548 25549 if test "x$BOOT_JDK" != x; then 25550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25551 25552 # Input might be given as Windows format, start by converting to 25553 # unix format. 25554 path="$BOOT_JDK" 25555 new_path=`$CYGPATH -u "$path"` 25556 25557 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25558 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25559 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25560 # "foo.exe" is OK but "foo" is an error. 25561 # 25562 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25563 # It is also a way to make sure we got the proper file name for the real test later on. 25564 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25565 if test "x$test_shortpath" = x; then 25566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25567 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25568 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25569 fi 25570 25571 # Call helper function which possibly converts this using DOS-style short mode. 25572 # If so, the updated path is stored in $new_path. 25573 25574 input_path="$new_path" 25575 # Check if we need to convert this using DOS-style short mode. If the path 25576 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25577 # take no chances and rewrite it. 25578 # Note: m4 eats our [], so we need to use [ and ] instead. 25579 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25580 if test "x$has_forbidden_chars" != x; then 25581 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25582 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25583 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25584 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25585 # Going to short mode and back again did indeed matter. Since short mode is 25586 # case insensitive, let's make it lowercase to improve readability. 25587 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25588 # Now convert it back to Unix-style (cygpath) 25589 input_path=`$CYGPATH -u "$shortmode_path"` 25590 new_path="$input_path" 25591 fi 25592 fi 25593 25594 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25595 if test "x$test_cygdrive_prefix" = x; then 25596 # As a simple fix, exclude /usr/bin since it's not a real path. 25597 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25598 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25599 # a path prefixed by /cygdrive for fixpath to work. 25600 new_path="$CYGWIN_ROOT_PATH$input_path" 25601 fi 25602 fi 25603 25604 25605 if test "x$path" != "x$new_path"; then 25606 BOOT_JDK="$new_path" 25607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25608 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25609 fi 25610 25611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25612 25613 path="$BOOT_JDK" 25614 has_colon=`$ECHO $path | $GREP ^.:` 25615 new_path="$path" 25616 if test "x$has_colon" = x; then 25617 # Not in mixed or Windows style, start by that. 25618 new_path=`cmd //c echo $path` 25619 fi 25620 25621 25622 input_path="$new_path" 25623 # Check if we need to convert this using DOS-style short mode. If the path 25624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25625 # take no chances and rewrite it. 25626 # Note: m4 eats our [], so we need to use [ and ] instead. 25627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25628 if test "x$has_forbidden_chars" != x; then 25629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25630 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25631 fi 25632 25633 25634 windows_path="$new_path" 25635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25636 unix_path=`$CYGPATH -u "$windows_path"` 25637 new_path="$unix_path" 25638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25640 new_path="$unix_path" 25641 fi 25642 25643 if test "x$path" != "x$new_path"; then 25644 BOOT_JDK="$new_path" 25645 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25646 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25647 fi 25648 25649 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25650 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25651 25652 else 25653 # We're on a unix platform. Hooray! :) 25654 path="$BOOT_JDK" 25655 has_space=`$ECHO "$path" | $GREP " "` 25656 if test "x$has_space" != x; then 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25658 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25659 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25660 fi 25661 25662 # Use eval to expand a potential ~ 25663 eval path="$path" 25664 if test ! -f "$path" && test ! -d "$path"; then 25665 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25666 fi 25667 25668 if test -d "$path"; then 25669 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25670 else 25671 dir="`$DIRNAME "$path"`" 25672 base="`$BASENAME "$path"`" 25673 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25674 fi 25675 fi 25676 fi 25677 25678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25679 $as_echo_n "checking for Boot JDK... " >&6; } 25680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25681 $as_echo "$BOOT_JDK" >&6; } 25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25683 $as_echo_n "checking Boot JDK version... " >&6; } 25684 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25686 $as_echo "$BOOT_JDK_VERSION" >&6; } 25687 fi # end check jdk version 25688 fi # end check javac 25689 fi # end check java 25690 fi # end check boot jdk found 25691 fi 25692 25693 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 25694 # Having specified an argument which is incorrect will produce an instant failure; 25695 # we should not go on looking 25696 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 25697 fi 25698 25699 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 25700 25701 if test "x$BOOT_JDK_FOUND" = xno; then 25702 # Now execute the test 25703 25704 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 25705 # First check at user selected default 25706 25707 if test "x$BOOT_JDK_FOUND" = xno; then 25708 # Now execute the test 25709 25710 if test -x /usr/libexec/java_home; then 25711 BOOT_JDK=`/usr/libexec/java_home ` 25712 BOOT_JDK_FOUND=maybe 25713 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 25714 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 25715 fi 25716 25717 25718 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25719 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25720 # Do we have a bin/java? 25721 if test ! -x "$BOOT_JDK/bin/java"; then 25722 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25723 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25724 BOOT_JDK_FOUND=no 25725 else 25726 # Do we have a bin/javac? 25727 if test ! -x "$BOOT_JDK/bin/javac"; then 25728 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25729 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25730 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25731 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25732 BOOT_JDK_FOUND=no 25733 else 25734 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25735 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25736 25737 # Extra M4 quote needed to protect [] in grep expression. 25738 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25739 if test "x$FOUND_CORRECT_VERSION" = x; then 25740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25743 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25744 BOOT_JDK_FOUND=no 25745 else 25746 # We're done! :-) 25747 BOOT_JDK_FOUND=yes 25748 25749 # Only process if variable expands to non-empty 25750 25751 if test "x$BOOT_JDK" != x; then 25752 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25753 25754 # Input might be given as Windows format, start by converting to 25755 # unix format. 25756 path="$BOOT_JDK" 25757 new_path=`$CYGPATH -u "$path"` 25758 25759 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25760 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25761 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25762 # "foo.exe" is OK but "foo" is an error. 25763 # 25764 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25765 # It is also a way to make sure we got the proper file name for the real test later on. 25766 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25767 if test "x$test_shortpath" = x; then 25768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25770 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25771 fi 25772 25773 # Call helper function which possibly converts this using DOS-style short mode. 25774 # If so, the updated path is stored in $new_path. 25775 25776 input_path="$new_path" 25777 # Check if we need to convert this using DOS-style short mode. If the path 25778 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25779 # take no chances and rewrite it. 25780 # Note: m4 eats our [], so we need to use [ and ] instead. 25781 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25782 if test "x$has_forbidden_chars" != x; then 25783 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25784 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25785 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25786 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25787 # Going to short mode and back again did indeed matter. Since short mode is 25788 # case insensitive, let's make it lowercase to improve readability. 25789 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25790 # Now convert it back to Unix-style (cygpath) 25791 input_path=`$CYGPATH -u "$shortmode_path"` 25792 new_path="$input_path" 25793 fi 25794 fi 25795 25796 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25797 if test "x$test_cygdrive_prefix" = x; then 25798 # As a simple fix, exclude /usr/bin since it's not a real path. 25799 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25800 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25801 # a path prefixed by /cygdrive for fixpath to work. 25802 new_path="$CYGWIN_ROOT_PATH$input_path" 25803 fi 25804 fi 25805 25806 25807 if test "x$path" != "x$new_path"; then 25808 BOOT_JDK="$new_path" 25809 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25810 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25811 fi 25812 25813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25814 25815 path="$BOOT_JDK" 25816 has_colon=`$ECHO $path | $GREP ^.:` 25817 new_path="$path" 25818 if test "x$has_colon" = x; then 25819 # Not in mixed or Windows style, start by that. 25820 new_path=`cmd //c echo $path` 25821 fi 25822 25823 25824 input_path="$new_path" 25825 # Check if we need to convert this using DOS-style short mode. If the path 25826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25827 # take no chances and rewrite it. 25828 # Note: m4 eats our [], so we need to use [ and ] instead. 25829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25830 if test "x$has_forbidden_chars" != x; then 25831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25832 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25833 fi 25834 25835 25836 windows_path="$new_path" 25837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25838 unix_path=`$CYGPATH -u "$windows_path"` 25839 new_path="$unix_path" 25840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25842 new_path="$unix_path" 25843 fi 25844 25845 if test "x$path" != "x$new_path"; then 25846 BOOT_JDK="$new_path" 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25848 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25849 fi 25850 25851 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25852 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25853 25854 else 25855 # We're on a unix platform. Hooray! :) 25856 path="$BOOT_JDK" 25857 has_space=`$ECHO "$path" | $GREP " "` 25858 if test "x$has_space" != x; then 25859 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25860 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25861 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25862 fi 25863 25864 # Use eval to expand a potential ~ 25865 eval path="$path" 25866 if test ! -f "$path" && test ! -d "$path"; then 25867 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25868 fi 25869 25870 if test -d "$path"; then 25871 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25872 else 25873 dir="`$DIRNAME "$path"`" 25874 base="`$BASENAME "$path"`" 25875 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 25876 fi 25877 fi 25878 fi 25879 25880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25881 $as_echo_n "checking for Boot JDK... " >&6; } 25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25883 $as_echo "$BOOT_JDK" >&6; } 25884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25885 $as_echo_n "checking Boot JDK version... " >&6; } 25886 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25888 $as_echo "$BOOT_JDK_VERSION" >&6; } 25889 fi # end check jdk version 25890 fi # end check javac 25891 fi # end check java 25892 fi # end check boot jdk found 25893 fi 25894 25895 # If that did not work out (e.g. too old), try explicit versions instead 25896 25897 if test "x$BOOT_JDK_FOUND" = xno; then 25898 # Now execute the test 25899 25900 if test -x /usr/libexec/java_home; then 25901 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 25902 BOOT_JDK_FOUND=maybe 25903 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 25904 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 25905 fi 25906 25907 25908 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25909 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25910 # Do we have a bin/java? 25911 if test ! -x "$BOOT_JDK/bin/java"; then 25912 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25913 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25914 BOOT_JDK_FOUND=no 25915 else 25916 # Do we have a bin/javac? 25917 if test ! -x "$BOOT_JDK/bin/javac"; then 25918 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25919 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25921 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25922 BOOT_JDK_FOUND=no 25923 else 25924 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25925 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 25926 25927 # Extra M4 quote needed to protect [] in grep expression. 25928 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 25929 if test "x$FOUND_CORRECT_VERSION" = x; then 25930 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25931 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25932 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 25933 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 25934 BOOT_JDK_FOUND=no 25935 else 25936 # We're done! :-) 25937 BOOT_JDK_FOUND=yes 25938 25939 # Only process if variable expands to non-empty 25940 25941 if test "x$BOOT_JDK" != x; then 25942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25943 25944 # Input might be given as Windows format, start by converting to 25945 # unix format. 25946 path="$BOOT_JDK" 25947 new_path=`$CYGPATH -u "$path"` 25948 25949 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25950 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25951 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25952 # "foo.exe" is OK but "foo" is an error. 25953 # 25954 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25955 # It is also a way to make sure we got the proper file name for the real test later on. 25956 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25957 if test "x$test_shortpath" = x; then 25958 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25959 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25960 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25961 fi 25962 25963 # Call helper function which possibly converts this using DOS-style short mode. 25964 # If so, the updated path is stored in $new_path. 25965 25966 input_path="$new_path" 25967 # Check if we need to convert this using DOS-style short mode. If the path 25968 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25969 # take no chances and rewrite it. 25970 # Note: m4 eats our [], so we need to use [ and ] instead. 25971 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25972 if test "x$has_forbidden_chars" != x; then 25973 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25974 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25975 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25976 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25977 # Going to short mode and back again did indeed matter. Since short mode is 25978 # case insensitive, let's make it lowercase to improve readability. 25979 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25980 # Now convert it back to Unix-style (cygpath) 25981 input_path=`$CYGPATH -u "$shortmode_path"` 25982 new_path="$input_path" 25983 fi 25984 fi 25985 25986 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25987 if test "x$test_cygdrive_prefix" = x; then 25988 # As a simple fix, exclude /usr/bin since it's not a real path. 25989 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25990 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25991 # a path prefixed by /cygdrive for fixpath to work. 25992 new_path="$CYGWIN_ROOT_PATH$input_path" 25993 fi 25994 fi 25995 25996 25997 if test "x$path" != "x$new_path"; then 25998 BOOT_JDK="$new_path" 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26000 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26001 fi 26002 26003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26004 26005 path="$BOOT_JDK" 26006 has_colon=`$ECHO $path | $GREP ^.:` 26007 new_path="$path" 26008 if test "x$has_colon" = x; then 26009 # Not in mixed or Windows style, start by that. 26010 new_path=`cmd //c echo $path` 26011 fi 26012 26013 26014 input_path="$new_path" 26015 # Check if we need to convert this using DOS-style short mode. If the path 26016 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26017 # take no chances and rewrite it. 26018 # Note: m4 eats our [], so we need to use [ and ] instead. 26019 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26020 if test "x$has_forbidden_chars" != x; then 26021 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26022 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26023 fi 26024 26025 26026 windows_path="$new_path" 26027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26028 unix_path=`$CYGPATH -u "$windows_path"` 26029 new_path="$unix_path" 26030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26032 new_path="$unix_path" 26033 fi 26034 26035 if test "x$path" != "x$new_path"; then 26036 BOOT_JDK="$new_path" 26037 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26038 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26039 fi 26040 26041 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26042 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26043 26044 else 26045 # We're on a unix platform. Hooray! :) 26046 path="$BOOT_JDK" 26047 has_space=`$ECHO "$path" | $GREP " "` 26048 if test "x$has_space" != x; then 26049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26050 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26051 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26052 fi 26053 26054 # Use eval to expand a potential ~ 26055 eval path="$path" 26056 if test ! -f "$path" && test ! -d "$path"; then 26057 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26058 fi 26059 26060 if test -d "$path"; then 26061 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26062 else 26063 dir="`$DIRNAME "$path"`" 26064 base="`$BASENAME "$path"`" 26065 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26066 fi 26067 fi 26068 fi 26069 26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26071 $as_echo_n "checking for Boot JDK... " >&6; } 26072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26073 $as_echo "$BOOT_JDK" >&6; } 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26075 $as_echo_n "checking Boot JDK version... " >&6; } 26076 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26078 $as_echo "$BOOT_JDK_VERSION" >&6; } 26079 fi # end check jdk version 26080 fi # end check javac 26081 fi # end check java 26082 fi # end check boot jdk found 26083 fi 26084 26085 26086 if test "x$BOOT_JDK_FOUND" = xno; then 26087 # Now execute the test 26088 26089 if test -x /usr/libexec/java_home; then 26090 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 26091 BOOT_JDK_FOUND=maybe 26092 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 26093 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 26094 fi 26095 26096 26097 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26098 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26099 # Do we have a bin/java? 26100 if test ! -x "$BOOT_JDK/bin/java"; then 26101 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26103 BOOT_JDK_FOUND=no 26104 else 26105 # Do we have a bin/javac? 26106 if test ! -x "$BOOT_JDK/bin/javac"; then 26107 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26108 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26109 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26110 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26111 BOOT_JDK_FOUND=no 26112 else 26113 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26114 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26115 26116 # Extra M4 quote needed to protect [] in grep expression. 26117 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26118 if test "x$FOUND_CORRECT_VERSION" = x; then 26119 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26120 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26121 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26122 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26123 BOOT_JDK_FOUND=no 26124 else 26125 # We're done! :-) 26126 BOOT_JDK_FOUND=yes 26127 26128 # Only process if variable expands to non-empty 26129 26130 if test "x$BOOT_JDK" != x; then 26131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26132 26133 # Input might be given as Windows format, start by converting to 26134 # unix format. 26135 path="$BOOT_JDK" 26136 new_path=`$CYGPATH -u "$path"` 26137 26138 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26139 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26140 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26141 # "foo.exe" is OK but "foo" is an error. 26142 # 26143 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26144 # It is also a way to make sure we got the proper file name for the real test later on. 26145 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26146 if test "x$test_shortpath" = x; then 26147 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26148 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26149 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26150 fi 26151 26152 # Call helper function which possibly converts this using DOS-style short mode. 26153 # If so, the updated path is stored in $new_path. 26154 26155 input_path="$new_path" 26156 # Check if we need to convert this using DOS-style short mode. If the path 26157 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26158 # take no chances and rewrite it. 26159 # Note: m4 eats our [], so we need to use [ and ] instead. 26160 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26161 if test "x$has_forbidden_chars" != x; then 26162 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26163 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26164 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26165 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26166 # Going to short mode and back again did indeed matter. Since short mode is 26167 # case insensitive, let's make it lowercase to improve readability. 26168 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26169 # Now convert it back to Unix-style (cygpath) 26170 input_path=`$CYGPATH -u "$shortmode_path"` 26171 new_path="$input_path" 26172 fi 26173 fi 26174 26175 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26176 if test "x$test_cygdrive_prefix" = x; then 26177 # As a simple fix, exclude /usr/bin since it's not a real path. 26178 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26179 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26180 # a path prefixed by /cygdrive for fixpath to work. 26181 new_path="$CYGWIN_ROOT_PATH$input_path" 26182 fi 26183 fi 26184 26185 26186 if test "x$path" != "x$new_path"; then 26187 BOOT_JDK="$new_path" 26188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26189 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26190 fi 26191 26192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26193 26194 path="$BOOT_JDK" 26195 has_colon=`$ECHO $path | $GREP ^.:` 26196 new_path="$path" 26197 if test "x$has_colon" = x; then 26198 # Not in mixed or Windows style, start by that. 26199 new_path=`cmd //c echo $path` 26200 fi 26201 26202 26203 input_path="$new_path" 26204 # Check if we need to convert this using DOS-style short mode. If the path 26205 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26206 # take no chances and rewrite it. 26207 # Note: m4 eats our [], so we need to use [ and ] instead. 26208 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26209 if test "x$has_forbidden_chars" != x; then 26210 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26211 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26212 fi 26213 26214 26215 windows_path="$new_path" 26216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26217 unix_path=`$CYGPATH -u "$windows_path"` 26218 new_path="$unix_path" 26219 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26220 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26221 new_path="$unix_path" 26222 fi 26223 26224 if test "x$path" != "x$new_path"; then 26225 BOOT_JDK="$new_path" 26226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26227 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26228 fi 26229 26230 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26231 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26232 26233 else 26234 # We're on a unix platform. Hooray! :) 26235 path="$BOOT_JDK" 26236 has_space=`$ECHO "$path" | $GREP " "` 26237 if test "x$has_space" != x; then 26238 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26239 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26240 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26241 fi 26242 26243 # Use eval to expand a potential ~ 26244 eval path="$path" 26245 if test ! -f "$path" && test ! -d "$path"; then 26246 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26247 fi 26248 26249 if test -d "$path"; then 26250 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26251 else 26252 dir="`$DIRNAME "$path"`" 26253 base="`$BASENAME "$path"`" 26254 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26255 fi 26256 fi 26257 fi 26258 26259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26260 $as_echo_n "checking for Boot JDK... " >&6; } 26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26262 $as_echo "$BOOT_JDK" >&6; } 26263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26264 $as_echo_n "checking Boot JDK version... " >&6; } 26265 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26267 $as_echo "$BOOT_JDK_VERSION" >&6; } 26268 fi # end check jdk version 26269 fi # end check javac 26270 fi # end check java 26271 fi # end check boot jdk found 26272 fi 26273 26274 26275 if test "x$BOOT_JDK_FOUND" = xno; then 26276 # Now execute the test 26277 26278 if test -x /usr/libexec/java_home; then 26279 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 26280 BOOT_JDK_FOUND=maybe 26281 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 26282 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 26283 fi 26284 26285 26286 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26287 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26288 # Do we have a bin/java? 26289 if test ! -x "$BOOT_JDK/bin/java"; then 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26291 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26292 BOOT_JDK_FOUND=no 26293 else 26294 # Do we have a bin/javac? 26295 if test ! -x "$BOOT_JDK/bin/javac"; then 26296 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26297 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26298 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26299 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26300 BOOT_JDK_FOUND=no 26301 else 26302 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26303 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26304 26305 # Extra M4 quote needed to protect [] in grep expression. 26306 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26307 if test "x$FOUND_CORRECT_VERSION" = x; then 26308 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26309 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26310 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26311 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26312 BOOT_JDK_FOUND=no 26313 else 26314 # We're done! :-) 26315 BOOT_JDK_FOUND=yes 26316 26317 # Only process if variable expands to non-empty 26318 26319 if test "x$BOOT_JDK" != x; then 26320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26321 26322 # Input might be given as Windows format, start by converting to 26323 # unix format. 26324 path="$BOOT_JDK" 26325 new_path=`$CYGPATH -u "$path"` 26326 26327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26330 # "foo.exe" is OK but "foo" is an error. 26331 # 26332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26333 # It is also a way to make sure we got the proper file name for the real test later on. 26334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26335 if test "x$test_shortpath" = x; then 26336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26338 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26339 fi 26340 26341 # Call helper function which possibly converts this using DOS-style short mode. 26342 # If so, the updated path is stored in $new_path. 26343 26344 input_path="$new_path" 26345 # Check if we need to convert this using DOS-style short mode. If the path 26346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26347 # take no chances and rewrite it. 26348 # Note: m4 eats our [], so we need to use [ and ] instead. 26349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26350 if test "x$has_forbidden_chars" != x; then 26351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26355 # Going to short mode and back again did indeed matter. Since short mode is 26356 # case insensitive, let's make it lowercase to improve readability. 26357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26358 # Now convert it back to Unix-style (cygpath) 26359 input_path=`$CYGPATH -u "$shortmode_path"` 26360 new_path="$input_path" 26361 fi 26362 fi 26363 26364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26365 if test "x$test_cygdrive_prefix" = x; then 26366 # As a simple fix, exclude /usr/bin since it's not a real path. 26367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26369 # a path prefixed by /cygdrive for fixpath to work. 26370 new_path="$CYGWIN_ROOT_PATH$input_path" 26371 fi 26372 fi 26373 26374 26375 if test "x$path" != "x$new_path"; then 26376 BOOT_JDK="$new_path" 26377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26378 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26379 fi 26380 26381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26382 26383 path="$BOOT_JDK" 26384 has_colon=`$ECHO $path | $GREP ^.:` 26385 new_path="$path" 26386 if test "x$has_colon" = x; then 26387 # Not in mixed or Windows style, start by that. 26388 new_path=`cmd //c echo $path` 26389 fi 26390 26391 26392 input_path="$new_path" 26393 # Check if we need to convert this using DOS-style short mode. If the path 26394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26395 # take no chances and rewrite it. 26396 # Note: m4 eats our [], so we need to use [ and ] instead. 26397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26398 if test "x$has_forbidden_chars" != x; then 26399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26401 fi 26402 26403 26404 windows_path="$new_path" 26405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26406 unix_path=`$CYGPATH -u "$windows_path"` 26407 new_path="$unix_path" 26408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26410 new_path="$unix_path" 26411 fi 26412 26413 if test "x$path" != "x$new_path"; then 26414 BOOT_JDK="$new_path" 26415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26417 fi 26418 26419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26421 26422 else 26423 # We're on a unix platform. Hooray! :) 26424 path="$BOOT_JDK" 26425 has_space=`$ECHO "$path" | $GREP " "` 26426 if test "x$has_space" != x; then 26427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26428 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26430 fi 26431 26432 # Use eval to expand a potential ~ 26433 eval path="$path" 26434 if test ! -f "$path" && test ! -d "$path"; then 26435 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26436 fi 26437 26438 if test -d "$path"; then 26439 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26440 else 26441 dir="`$DIRNAME "$path"`" 26442 base="`$BASENAME "$path"`" 26443 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26444 fi 26445 fi 26446 fi 26447 26448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26449 $as_echo_n "checking for Boot JDK... " >&6; } 26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26451 $as_echo "$BOOT_JDK" >&6; } 26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26453 $as_echo_n "checking Boot JDK version... " >&6; } 26454 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26456 $as_echo "$BOOT_JDK_VERSION" >&6; } 26457 fi # end check jdk version 26458 fi # end check javac 26459 fi # end check java 26460 fi # end check boot jdk found 26461 fi 26462 26463 fi 26464 26465 26466 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26467 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26468 # Do we have a bin/java? 26469 if test ! -x "$BOOT_JDK/bin/java"; then 26470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26472 BOOT_JDK_FOUND=no 26473 else 26474 # Do we have a bin/javac? 26475 if test ! -x "$BOOT_JDK/bin/javac"; then 26476 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26478 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26479 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26480 BOOT_JDK_FOUND=no 26481 else 26482 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26483 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26484 26485 # Extra M4 quote needed to protect [] in grep expression. 26486 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26487 if test "x$FOUND_CORRECT_VERSION" = x; then 26488 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26489 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26490 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26491 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26492 BOOT_JDK_FOUND=no 26493 else 26494 # We're done! :-) 26495 BOOT_JDK_FOUND=yes 26496 26497 # Only process if variable expands to non-empty 26498 26499 if test "x$BOOT_JDK" != x; then 26500 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26501 26502 # Input might be given as Windows format, start by converting to 26503 # unix format. 26504 path="$BOOT_JDK" 26505 new_path=`$CYGPATH -u "$path"` 26506 26507 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26508 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26509 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26510 # "foo.exe" is OK but "foo" is an error. 26511 # 26512 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26513 # It is also a way to make sure we got the proper file name for the real test later on. 26514 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26515 if test "x$test_shortpath" = x; then 26516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26517 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26518 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26519 fi 26520 26521 # Call helper function which possibly converts this using DOS-style short mode. 26522 # If so, the updated path is stored in $new_path. 26523 26524 input_path="$new_path" 26525 # Check if we need to convert this using DOS-style short mode. If the path 26526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26527 # take no chances and rewrite it. 26528 # Note: m4 eats our [], so we need to use [ and ] instead. 26529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26530 if test "x$has_forbidden_chars" != x; then 26531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26535 # Going to short mode and back again did indeed matter. Since short mode is 26536 # case insensitive, let's make it lowercase to improve readability. 26537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26538 # Now convert it back to Unix-style (cygpath) 26539 input_path=`$CYGPATH -u "$shortmode_path"` 26540 new_path="$input_path" 26541 fi 26542 fi 26543 26544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26545 if test "x$test_cygdrive_prefix" = x; then 26546 # As a simple fix, exclude /usr/bin since it's not a real path. 26547 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26549 # a path prefixed by /cygdrive for fixpath to work. 26550 new_path="$CYGWIN_ROOT_PATH$input_path" 26551 fi 26552 fi 26553 26554 26555 if test "x$path" != "x$new_path"; then 26556 BOOT_JDK="$new_path" 26557 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26558 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26559 fi 26560 26561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26562 26563 path="$BOOT_JDK" 26564 has_colon=`$ECHO $path | $GREP ^.:` 26565 new_path="$path" 26566 if test "x$has_colon" = x; then 26567 # Not in mixed or Windows style, start by that. 26568 new_path=`cmd //c echo $path` 26569 fi 26570 26571 26572 input_path="$new_path" 26573 # Check if we need to convert this using DOS-style short mode. If the path 26574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26575 # take no chances and rewrite it. 26576 # Note: m4 eats our [], so we need to use [ and ] instead. 26577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26578 if test "x$has_forbidden_chars" != x; then 26579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26580 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26581 fi 26582 26583 26584 windows_path="$new_path" 26585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26586 unix_path=`$CYGPATH -u "$windows_path"` 26587 new_path="$unix_path" 26588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26590 new_path="$unix_path" 26591 fi 26592 26593 if test "x$path" != "x$new_path"; then 26594 BOOT_JDK="$new_path" 26595 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26596 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26597 fi 26598 26599 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26600 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26601 26602 else 26603 # We're on a unix platform. Hooray! :) 26604 path="$BOOT_JDK" 26605 has_space=`$ECHO "$path" | $GREP " "` 26606 if test "x$has_space" != x; then 26607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26608 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26609 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26610 fi 26611 26612 # Use eval to expand a potential ~ 26613 eval path="$path" 26614 if test ! -f "$path" && test ! -d "$path"; then 26615 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26616 fi 26617 26618 if test -d "$path"; then 26619 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26620 else 26621 dir="`$DIRNAME "$path"`" 26622 base="`$BASENAME "$path"`" 26623 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26624 fi 26625 fi 26626 fi 26627 26628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26629 $as_echo_n "checking for Boot JDK... " >&6; } 26630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26631 $as_echo "$BOOT_JDK" >&6; } 26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26633 $as_echo_n "checking Boot JDK version... " >&6; } 26634 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26636 $as_echo "$BOOT_JDK_VERSION" >&6; } 26637 fi # end check jdk version 26638 fi # end check javac 26639 fi # end check java 26640 fi # end check boot jdk found 26641 fi 26642 26643 26644 # Test: Is $JAVA_HOME set? 26645 26646 if test "x$BOOT_JDK_FOUND" = xno; then 26647 # Now execute the test 26648 26649 if test "x$JAVA_HOME" != x; then 26650 JAVA_HOME_PROCESSED="$JAVA_HOME" 26651 26652 # Only process if variable expands to non-empty 26653 26654 if test "x$JAVA_HOME_PROCESSED" != x; then 26655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26656 26657 # Input might be given as Windows format, start by converting to 26658 # unix format. 26659 path="$JAVA_HOME_PROCESSED" 26660 new_path=`$CYGPATH -u "$path"` 26661 26662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26665 # "foo.exe" is OK but "foo" is an error. 26666 # 26667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26668 # It is also a way to make sure we got the proper file name for the real test later on. 26669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26670 if test "x$test_shortpath" = x; then 26671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26672 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26673 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 26674 fi 26675 26676 # Call helper function which possibly converts this using DOS-style short mode. 26677 # If so, the updated path is stored in $new_path. 26678 26679 input_path="$new_path" 26680 # Check if we need to convert this using DOS-style short mode. If the path 26681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26682 # take no chances and rewrite it. 26683 # Note: m4 eats our [], so we need to use [ and ] instead. 26684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26685 if test "x$has_forbidden_chars" != x; then 26686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26687 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26688 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26689 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26690 # Going to short mode and back again did indeed matter. Since short mode is 26691 # case insensitive, let's make it lowercase to improve readability. 26692 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26693 # Now convert it back to Unix-style (cygpath) 26694 input_path=`$CYGPATH -u "$shortmode_path"` 26695 new_path="$input_path" 26696 fi 26697 fi 26698 26699 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26700 if test "x$test_cygdrive_prefix" = x; then 26701 # As a simple fix, exclude /usr/bin since it's not a real path. 26702 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26703 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26704 # a path prefixed by /cygdrive for fixpath to work. 26705 new_path="$CYGWIN_ROOT_PATH$input_path" 26706 fi 26707 fi 26708 26709 26710 if test "x$path" != "x$new_path"; then 26711 JAVA_HOME_PROCESSED="$new_path" 26712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26713 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26714 fi 26715 26716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26717 26718 path="$JAVA_HOME_PROCESSED" 26719 has_colon=`$ECHO $path | $GREP ^.:` 26720 new_path="$path" 26721 if test "x$has_colon" = x; then 26722 # Not in mixed or Windows style, start by that. 26723 new_path=`cmd //c echo $path` 26724 fi 26725 26726 26727 input_path="$new_path" 26728 # Check if we need to convert this using DOS-style short mode. If the path 26729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26730 # take no chances and rewrite it. 26731 # Note: m4 eats our [], so we need to use [ and ] instead. 26732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26733 if test "x$has_forbidden_chars" != x; then 26734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26736 fi 26737 26738 26739 windows_path="$new_path" 26740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26741 unix_path=`$CYGPATH -u "$windows_path"` 26742 new_path="$unix_path" 26743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26745 new_path="$unix_path" 26746 fi 26747 26748 if test "x$path" != "x$new_path"; then 26749 JAVA_HOME_PROCESSED="$new_path" 26750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 26751 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 26752 fi 26753 26754 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26755 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26756 26757 else 26758 # We're on a unix platform. Hooray! :) 26759 path="$JAVA_HOME_PROCESSED" 26760 has_space=`$ECHO "$path" | $GREP " "` 26761 if test "x$has_space" != x; then 26762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 26763 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 26764 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26765 fi 26766 26767 # Use eval to expand a potential ~ 26768 eval path="$path" 26769 if test ! -f "$path" && test ! -d "$path"; then 26770 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 26771 fi 26772 26773 if test -d "$path"; then 26774 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 26775 else 26776 dir="`$DIRNAME "$path"`" 26777 base="`$BASENAME "$path"`" 26778 JAVA_HOME_PROCESSED="`cd "$dir"; $THEPWDCMD -L`/$base" 26779 fi 26780 fi 26781 fi 26782 26783 if test ! -d "$JAVA_HOME_PROCESSED"; then 26784 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 26785 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 26786 else 26787 # Aha, the user has set a JAVA_HOME 26788 # let us use that as the Boot JDK. 26789 BOOT_JDK="$JAVA_HOME_PROCESSED" 26790 BOOT_JDK_FOUND=maybe 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 26792 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 26793 fi 26794 fi 26795 26796 26797 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 26798 if test "x$BOOT_JDK_FOUND" = xmaybe; then 26799 # Do we have a bin/java? 26800 if test ! -x "$BOOT_JDK/bin/java"; then 26801 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 26802 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 26803 BOOT_JDK_FOUND=no 26804 else 26805 # Do we have a bin/javac? 26806 if test ! -x "$BOOT_JDK/bin/javac"; then 26807 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 26808 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 26810 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 26811 BOOT_JDK_FOUND=no 26812 else 26813 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 26814 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 26815 26816 # Extra M4 quote needed to protect [] in grep expression. 26817 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 26818 if test "x$FOUND_CORRECT_VERSION" = x; then 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 26820 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 26821 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 26822 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 26823 BOOT_JDK_FOUND=no 26824 else 26825 # We're done! :-) 26826 BOOT_JDK_FOUND=yes 26827 26828 # Only process if variable expands to non-empty 26829 26830 if test "x$BOOT_JDK" != x; then 26831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26832 26833 # Input might be given as Windows format, start by converting to 26834 # unix format. 26835 path="$BOOT_JDK" 26836 new_path=`$CYGPATH -u "$path"` 26837 26838 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26839 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26840 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26841 # "foo.exe" is OK but "foo" is an error. 26842 # 26843 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26844 # It is also a way to make sure we got the proper file name for the real test later on. 26845 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26846 if test "x$test_shortpath" = x; then 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26849 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 26850 fi 26851 26852 # Call helper function which possibly converts this using DOS-style short mode. 26853 # If so, the updated path is stored in $new_path. 26854 26855 input_path="$new_path" 26856 # Check if we need to convert this using DOS-style short mode. If the path 26857 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26858 # take no chances and rewrite it. 26859 # Note: m4 eats our [], so we need to use [ and ] instead. 26860 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26861 if test "x$has_forbidden_chars" != x; then 26862 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26863 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26864 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26865 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26866 # Going to short mode and back again did indeed matter. Since short mode is 26867 # case insensitive, let's make it lowercase to improve readability. 26868 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26869 # Now convert it back to Unix-style (cygpath) 26870 input_path=`$CYGPATH -u "$shortmode_path"` 26871 new_path="$input_path" 26872 fi 26873 fi 26874 26875 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26876 if test "x$test_cygdrive_prefix" = x; then 26877 # As a simple fix, exclude /usr/bin since it's not a real path. 26878 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26879 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26880 # a path prefixed by /cygdrive for fixpath to work. 26881 new_path="$CYGWIN_ROOT_PATH$input_path" 26882 fi 26883 fi 26884 26885 26886 if test "x$path" != "x$new_path"; then 26887 BOOT_JDK="$new_path" 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26889 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26890 fi 26891 26892 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26893 26894 path="$BOOT_JDK" 26895 has_colon=`$ECHO $path | $GREP ^.:` 26896 new_path="$path" 26897 if test "x$has_colon" = x; then 26898 # Not in mixed or Windows style, start by that. 26899 new_path=`cmd //c echo $path` 26900 fi 26901 26902 26903 input_path="$new_path" 26904 # Check if we need to convert this using DOS-style short mode. If the path 26905 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26906 # take no chances and rewrite it. 26907 # Note: m4 eats our [], so we need to use [ and ] instead. 26908 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26909 if test "x$has_forbidden_chars" != x; then 26910 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26911 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26912 fi 26913 26914 26915 windows_path="$new_path" 26916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26917 unix_path=`$CYGPATH -u "$windows_path"` 26918 new_path="$unix_path" 26919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26921 new_path="$unix_path" 26922 fi 26923 26924 if test "x$path" != "x$new_path"; then 26925 BOOT_JDK="$new_path" 26926 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 26927 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 26928 fi 26929 26930 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26931 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26932 26933 else 26934 # We're on a unix platform. Hooray! :) 26935 path="$BOOT_JDK" 26936 has_space=`$ECHO "$path" | $GREP " "` 26937 if test "x$has_space" != x; then 26938 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 26939 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 26940 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26941 fi 26942 26943 # Use eval to expand a potential ~ 26944 eval path="$path" 26945 if test ! -f "$path" && test ! -d "$path"; then 26946 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 26947 fi 26948 26949 if test -d "$path"; then 26950 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 26951 else 26952 dir="`$DIRNAME "$path"`" 26953 base="`$BASENAME "$path"`" 26954 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 26955 fi 26956 fi 26957 fi 26958 26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 26960 $as_echo_n "checking for Boot JDK... " >&6; } 26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 26962 $as_echo "$BOOT_JDK" >&6; } 26963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 26964 $as_echo_n "checking Boot JDK version... " >&6; } 26965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 26967 $as_echo "$BOOT_JDK_VERSION" >&6; } 26968 fi # end check jdk version 26969 fi # end check javac 26970 fi # end check java 26971 fi # end check boot jdk found 26972 fi 26973 26974 26975 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 26976 26977 if test "x$BOOT_JDK_FOUND" = xno; then 26978 # Now execute the test 26979 26980 # Extract the first word of "javac", so it can be a program name with args. 26981 set dummy javac; ac_word=$2 26982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26983 $as_echo_n "checking for $ac_word... " >&6; } 26984 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 26985 $as_echo_n "(cached) " >&6 26986 else 26987 case $JAVAC_CHECK in 26988 [\\/]* | ?:[\\/]*) 26989 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 26990 ;; 26991 *) 26992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26993 for as_dir in $PATH 26994 do 26995 IFS=$as_save_IFS 26996 test -z "$as_dir" && as_dir=. 26997 for ac_exec_ext in '' $ac_executable_extensions; do 26998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26999 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 27000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27001 break 2 27002 fi 27003 done 27004 done 27005 IFS=$as_save_IFS 27006 27007 ;; 27008 esac 27009 fi 27010 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 27011 if test -n "$JAVAC_CHECK"; then 27012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 27013 $as_echo "$JAVAC_CHECK" >&6; } 27014 else 27015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27016 $as_echo "no" >&6; } 27017 fi 27018 27019 27020 # Extract the first word of "java", so it can be a program name with args. 27021 set dummy java; ac_word=$2 27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27023 $as_echo_n "checking for $ac_word... " >&6; } 27024 if ${ac_cv_path_JAVA_CHECK+:} false; then : 27025 $as_echo_n "(cached) " >&6 27026 else 27027 case $JAVA_CHECK in 27028 [\\/]* | ?:[\\/]*) 27029 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 27030 ;; 27031 *) 27032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27033 for as_dir in $PATH 27034 do 27035 IFS=$as_save_IFS 27036 test -z "$as_dir" && as_dir=. 27037 for ac_exec_ext in '' $ac_executable_extensions; do 27038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27039 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 27040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27041 break 2 27042 fi 27043 done 27044 done 27045 IFS=$as_save_IFS 27046 27047 ;; 27048 esac 27049 fi 27050 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 27051 if test -n "$JAVA_CHECK"; then 27052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 27053 $as_echo "$JAVA_CHECK" >&6; } 27054 else 27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27056 $as_echo "no" >&6; } 27057 fi 27058 27059 27060 BINARY="$JAVAC_CHECK" 27061 if test "x$JAVAC_CHECK" = x; then 27062 BINARY="$JAVA_CHECK" 27063 fi 27064 if test "x$BINARY" != x; then 27065 # So there is a java(c) binary, it might be part of a JDK. 27066 # Lets find the JDK/JRE directory by following symbolic links. 27067 # Linux/GNU systems often have links from /usr/bin/java to 27068 # /etc/alternatives/java to the real JDK binary. 27069 27070 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27071 # Follow a chain of symbolic links. Use readlink 27072 # where it exists, else fall back to horribly 27073 # complicated shell code. 27074 if test "x$READLINK_TESTED" != yes; then 27075 # On MacOSX there is a readlink tool with a different 27076 # purpose than the GNU readlink tool. Check the found readlink. 27077 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27078 if test "x$ISGNU" = x; then 27079 # A readlink that we do not know how to use. 27080 # Are there other non-GNU readlinks out there? 27081 READLINK_TESTED=yes 27082 READLINK= 27083 fi 27084 fi 27085 27086 if test "x$READLINK" != x; then 27087 BINARY=`$READLINK -f $BINARY` 27088 else 27089 # Save the current directory for restoring afterwards 27090 STARTDIR=$PWD 27091 COUNTER=0 27092 sym_link_dir=`$DIRNAME $BINARY` 27093 sym_link_file=`$BASENAME $BINARY` 27094 cd $sym_link_dir 27095 # Use -P flag to resolve symlinks in directories. 27096 cd `$THEPWDCMD -P` 27097 sym_link_dir=`$THEPWDCMD -P` 27098 # Resolve file symlinks 27099 while test $COUNTER -lt 20; do 27100 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27101 if test "x$ISLINK" == x; then 27102 # This is not a symbolic link! We are done! 27103 break 27104 fi 27105 # Again resolve directory symlinks since the target of the just found 27106 # link could be in a different directory 27107 cd `$DIRNAME $ISLINK` 27108 sym_link_dir=`$THEPWDCMD -P` 27109 sym_link_file=`$BASENAME $ISLINK` 27110 let COUNTER=COUNTER+1 27111 done 27112 cd $STARTDIR 27113 BINARY=$sym_link_dir/$sym_link_file 27114 fi 27115 fi 27116 27117 BOOT_JDK=`dirname "$BINARY"` 27118 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 27119 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 27120 # Looks like we found ourselves an JDK 27121 BOOT_JDK_FOUND=maybe 27122 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 27123 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 27124 fi 27125 fi 27126 27127 27128 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27129 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27130 # Do we have a bin/java? 27131 if test ! -x "$BOOT_JDK/bin/java"; then 27132 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27133 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27134 BOOT_JDK_FOUND=no 27135 else 27136 # Do we have a bin/javac? 27137 if test ! -x "$BOOT_JDK/bin/javac"; then 27138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27140 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27141 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27142 BOOT_JDK_FOUND=no 27143 else 27144 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27145 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27146 27147 # Extra M4 quote needed to protect [] in grep expression. 27148 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27149 if test "x$FOUND_CORRECT_VERSION" = x; then 27150 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27151 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27153 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27154 BOOT_JDK_FOUND=no 27155 else 27156 # We're done! :-) 27157 BOOT_JDK_FOUND=yes 27158 27159 # Only process if variable expands to non-empty 27160 27161 if test "x$BOOT_JDK" != x; then 27162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27163 27164 # Input might be given as Windows format, start by converting to 27165 # unix format. 27166 path="$BOOT_JDK" 27167 new_path=`$CYGPATH -u "$path"` 27168 27169 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27170 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27171 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27172 # "foo.exe" is OK but "foo" is an error. 27173 # 27174 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27175 # It is also a way to make sure we got the proper file name for the real test later on. 27176 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27177 if test "x$test_shortpath" = x; then 27178 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27179 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27180 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27181 fi 27182 27183 # Call helper function which possibly converts this using DOS-style short mode. 27184 # If so, the updated path is stored in $new_path. 27185 27186 input_path="$new_path" 27187 # Check if we need to convert this using DOS-style short mode. If the path 27188 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27189 # take no chances and rewrite it. 27190 # Note: m4 eats our [], so we need to use [ and ] instead. 27191 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27192 if test "x$has_forbidden_chars" != x; then 27193 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27194 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27195 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27196 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27197 # Going to short mode and back again did indeed matter. Since short mode is 27198 # case insensitive, let's make it lowercase to improve readability. 27199 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27200 # Now convert it back to Unix-style (cygpath) 27201 input_path=`$CYGPATH -u "$shortmode_path"` 27202 new_path="$input_path" 27203 fi 27204 fi 27205 27206 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27207 if test "x$test_cygdrive_prefix" = x; then 27208 # As a simple fix, exclude /usr/bin since it's not a real path. 27209 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27210 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27211 # a path prefixed by /cygdrive for fixpath to work. 27212 new_path="$CYGWIN_ROOT_PATH$input_path" 27213 fi 27214 fi 27215 27216 27217 if test "x$path" != "x$new_path"; then 27218 BOOT_JDK="$new_path" 27219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27220 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27221 fi 27222 27223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27224 27225 path="$BOOT_JDK" 27226 has_colon=`$ECHO $path | $GREP ^.:` 27227 new_path="$path" 27228 if test "x$has_colon" = x; then 27229 # Not in mixed or Windows style, start by that. 27230 new_path=`cmd //c echo $path` 27231 fi 27232 27233 27234 input_path="$new_path" 27235 # Check if we need to convert this using DOS-style short mode. If the path 27236 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27237 # take no chances and rewrite it. 27238 # Note: m4 eats our [], so we need to use [ and ] instead. 27239 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27240 if test "x$has_forbidden_chars" != x; then 27241 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27242 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27243 fi 27244 27245 27246 windows_path="$new_path" 27247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27248 unix_path=`$CYGPATH -u "$windows_path"` 27249 new_path="$unix_path" 27250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27252 new_path="$unix_path" 27253 fi 27254 27255 if test "x$path" != "x$new_path"; then 27256 BOOT_JDK="$new_path" 27257 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27258 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27259 fi 27260 27261 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27262 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27263 27264 else 27265 # We're on a unix platform. Hooray! :) 27266 path="$BOOT_JDK" 27267 has_space=`$ECHO "$path" | $GREP " "` 27268 if test "x$has_space" != x; then 27269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27270 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27271 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27272 fi 27273 27274 # Use eval to expand a potential ~ 27275 eval path="$path" 27276 if test ! -f "$path" && test ! -d "$path"; then 27277 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27278 fi 27279 27280 if test -d "$path"; then 27281 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27282 else 27283 dir="`$DIRNAME "$path"`" 27284 base="`$BASENAME "$path"`" 27285 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27286 fi 27287 fi 27288 fi 27289 27290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27291 $as_echo_n "checking for Boot JDK... " >&6; } 27292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27293 $as_echo "$BOOT_JDK" >&6; } 27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27295 $as_echo_n "checking Boot JDK version... " >&6; } 27296 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27298 $as_echo "$BOOT_JDK_VERSION" >&6; } 27299 fi # end check jdk version 27300 fi # end check javac 27301 fi # end check java 27302 fi # end check boot jdk found 27303 fi 27304 27305 27306 # Test: Is there a JDK installed in default, well-known locations? 27307 27308 if test "x$BOOT_JDK_FOUND" = xno; then 27309 # Now execute the test 27310 27311 if test "x$OPENJDK_TARGET_OS" = xwindows; then 27312 27313 if test "x$BOOT_JDK_FOUND" = xno; then 27314 # Now execute the test 27315 27316 if test "x$ProgramW6432" != x; then 27317 VIRTUAL_DIR="$ProgramW6432/Java" 27318 27319 windows_path="$VIRTUAL_DIR" 27320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27321 unix_path=`$CYGPATH -u "$windows_path"` 27322 VIRTUAL_DIR="$unix_path" 27323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27324 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27325 VIRTUAL_DIR="$unix_path" 27326 fi 27327 27328 27329 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27330 BOOT_JDK_SUFFIX="" 27331 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27332 if test "x$ALL_JDKS_FOUND" != x; then 27333 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27334 27335 if test "x$BOOT_JDK_FOUND" = xno; then 27336 # Now execute the test 27337 27338 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27339 if test -d "$BOOT_JDK"; then 27340 BOOT_JDK_FOUND=maybe 27341 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27342 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27343 fi 27344 27345 27346 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27347 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27348 # Do we have a bin/java? 27349 if test ! -x "$BOOT_JDK/bin/java"; then 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27351 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27352 BOOT_JDK_FOUND=no 27353 else 27354 # Do we have a bin/javac? 27355 if test ! -x "$BOOT_JDK/bin/javac"; then 27356 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27357 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27358 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27359 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27360 BOOT_JDK_FOUND=no 27361 else 27362 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27363 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27364 27365 # Extra M4 quote needed to protect [] in grep expression. 27366 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27367 if test "x$FOUND_CORRECT_VERSION" = x; then 27368 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27369 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27370 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27371 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27372 BOOT_JDK_FOUND=no 27373 else 27374 # We're done! :-) 27375 BOOT_JDK_FOUND=yes 27376 27377 # Only process if variable expands to non-empty 27378 27379 if test "x$BOOT_JDK" != x; then 27380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27381 27382 # Input might be given as Windows format, start by converting to 27383 # unix format. 27384 path="$BOOT_JDK" 27385 new_path=`$CYGPATH -u "$path"` 27386 27387 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27388 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27389 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27390 # "foo.exe" is OK but "foo" is an error. 27391 # 27392 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27393 # It is also a way to make sure we got the proper file name for the real test later on. 27394 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27395 if test "x$test_shortpath" = x; then 27396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27397 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27398 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27399 fi 27400 27401 # Call helper function which possibly converts this using DOS-style short mode. 27402 # If so, the updated path is stored in $new_path. 27403 27404 input_path="$new_path" 27405 # Check if we need to convert this using DOS-style short mode. If the path 27406 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27407 # take no chances and rewrite it. 27408 # Note: m4 eats our [], so we need to use [ and ] instead. 27409 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27410 if test "x$has_forbidden_chars" != x; then 27411 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27412 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27413 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27414 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27415 # Going to short mode and back again did indeed matter. Since short mode is 27416 # case insensitive, let's make it lowercase to improve readability. 27417 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27418 # Now convert it back to Unix-style (cygpath) 27419 input_path=`$CYGPATH -u "$shortmode_path"` 27420 new_path="$input_path" 27421 fi 27422 fi 27423 27424 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27425 if test "x$test_cygdrive_prefix" = x; then 27426 # As a simple fix, exclude /usr/bin since it's not a real path. 27427 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27428 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27429 # a path prefixed by /cygdrive for fixpath to work. 27430 new_path="$CYGWIN_ROOT_PATH$input_path" 27431 fi 27432 fi 27433 27434 27435 if test "x$path" != "x$new_path"; then 27436 BOOT_JDK="$new_path" 27437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27438 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27439 fi 27440 27441 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27442 27443 path="$BOOT_JDK" 27444 has_colon=`$ECHO $path | $GREP ^.:` 27445 new_path="$path" 27446 if test "x$has_colon" = x; then 27447 # Not in mixed or Windows style, start by that. 27448 new_path=`cmd //c echo $path` 27449 fi 27450 27451 27452 input_path="$new_path" 27453 # Check if we need to convert this using DOS-style short mode. If the path 27454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27455 # take no chances and rewrite it. 27456 # Note: m4 eats our [], so we need to use [ and ] instead. 27457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27458 if test "x$has_forbidden_chars" != x; then 27459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27460 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27461 fi 27462 27463 27464 windows_path="$new_path" 27465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27466 unix_path=`$CYGPATH -u "$windows_path"` 27467 new_path="$unix_path" 27468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27470 new_path="$unix_path" 27471 fi 27472 27473 if test "x$path" != "x$new_path"; then 27474 BOOT_JDK="$new_path" 27475 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27476 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27477 fi 27478 27479 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27480 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27481 27482 else 27483 # We're on a unix platform. Hooray! :) 27484 path="$BOOT_JDK" 27485 has_space=`$ECHO "$path" | $GREP " "` 27486 if test "x$has_space" != x; then 27487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27488 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27489 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27490 fi 27491 27492 # Use eval to expand a potential ~ 27493 eval path="$path" 27494 if test ! -f "$path" && test ! -d "$path"; then 27495 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27496 fi 27497 27498 if test -d "$path"; then 27499 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27500 else 27501 dir="`$DIRNAME "$path"`" 27502 base="`$BASENAME "$path"`" 27503 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27504 fi 27505 fi 27506 fi 27507 27508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27509 $as_echo_n "checking for Boot JDK... " >&6; } 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27511 $as_echo "$BOOT_JDK" >&6; } 27512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27513 $as_echo_n "checking Boot JDK version... " >&6; } 27514 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27516 $as_echo "$BOOT_JDK_VERSION" >&6; } 27517 fi # end check jdk version 27518 fi # end check javac 27519 fi # end check java 27520 fi # end check boot jdk found 27521 fi 27522 27523 done 27524 fi 27525 27526 fi 27527 27528 27529 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27530 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27531 # Do we have a bin/java? 27532 if test ! -x "$BOOT_JDK/bin/java"; then 27533 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27534 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27535 BOOT_JDK_FOUND=no 27536 else 27537 # Do we have a bin/javac? 27538 if test ! -x "$BOOT_JDK/bin/javac"; then 27539 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27541 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27542 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27543 BOOT_JDK_FOUND=no 27544 else 27545 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27546 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27547 27548 # Extra M4 quote needed to protect [] in grep expression. 27549 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27550 if test "x$FOUND_CORRECT_VERSION" = x; then 27551 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27552 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27553 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27554 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27555 BOOT_JDK_FOUND=no 27556 else 27557 # We're done! :-) 27558 BOOT_JDK_FOUND=yes 27559 27560 # Only process if variable expands to non-empty 27561 27562 if test "x$BOOT_JDK" != x; then 27563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27564 27565 # Input might be given as Windows format, start by converting to 27566 # unix format. 27567 path="$BOOT_JDK" 27568 new_path=`$CYGPATH -u "$path"` 27569 27570 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27571 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27572 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27573 # "foo.exe" is OK but "foo" is an error. 27574 # 27575 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27576 # It is also a way to make sure we got the proper file name for the real test later on. 27577 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27578 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27582 fi 27583 27584 # Call helper function which possibly converts this using DOS-style short mode. 27585 # If so, the updated path is stored in $new_path. 27586 27587 input_path="$new_path" 27588 # Check if we need to convert this using DOS-style short mode. If the path 27589 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27590 # take no chances and rewrite it. 27591 # Note: m4 eats our [], so we need to use [ and ] instead. 27592 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27593 if test "x$has_forbidden_chars" != x; then 27594 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27595 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27596 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27597 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27598 # Going to short mode and back again did indeed matter. Since short mode is 27599 # case insensitive, let's make it lowercase to improve readability. 27600 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27601 # Now convert it back to Unix-style (cygpath) 27602 input_path=`$CYGPATH -u "$shortmode_path"` 27603 new_path="$input_path" 27604 fi 27605 fi 27606 27607 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27608 if test "x$test_cygdrive_prefix" = x; then 27609 # As a simple fix, exclude /usr/bin since it's not a real path. 27610 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27611 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27612 # a path prefixed by /cygdrive for fixpath to work. 27613 new_path="$CYGWIN_ROOT_PATH$input_path" 27614 fi 27615 fi 27616 27617 27618 if test "x$path" != "x$new_path"; then 27619 BOOT_JDK="$new_path" 27620 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27621 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27622 fi 27623 27624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27625 27626 path="$BOOT_JDK" 27627 has_colon=`$ECHO $path | $GREP ^.:` 27628 new_path="$path" 27629 if test "x$has_colon" = x; then 27630 # Not in mixed or Windows style, start by that. 27631 new_path=`cmd //c echo $path` 27632 fi 27633 27634 27635 input_path="$new_path" 27636 # Check if we need to convert this using DOS-style short mode. If the path 27637 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27638 # take no chances and rewrite it. 27639 # Note: m4 eats our [], so we need to use [ and ] instead. 27640 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27641 if test "x$has_forbidden_chars" != x; then 27642 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27643 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27644 fi 27645 27646 27647 windows_path="$new_path" 27648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27649 unix_path=`$CYGPATH -u "$windows_path"` 27650 new_path="$unix_path" 27651 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27652 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27653 new_path="$unix_path" 27654 fi 27655 27656 if test "x$path" != "x$new_path"; then 27657 BOOT_JDK="$new_path" 27658 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27659 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27660 fi 27661 27662 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27663 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27664 27665 else 27666 # We're on a unix platform. Hooray! :) 27667 path="$BOOT_JDK" 27668 has_space=`$ECHO "$path" | $GREP " "` 27669 if test "x$has_space" != x; then 27670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27671 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27672 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27673 fi 27674 27675 # Use eval to expand a potential ~ 27676 eval path="$path" 27677 if test ! -f "$path" && test ! -d "$path"; then 27678 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27679 fi 27680 27681 if test -d "$path"; then 27682 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27683 else 27684 dir="`$DIRNAME "$path"`" 27685 base="`$BASENAME "$path"`" 27686 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27687 fi 27688 fi 27689 fi 27690 27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27692 $as_echo_n "checking for Boot JDK... " >&6; } 27693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27694 $as_echo "$BOOT_JDK" >&6; } 27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27696 $as_echo_n "checking Boot JDK version... " >&6; } 27697 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27699 $as_echo "$BOOT_JDK_VERSION" >&6; } 27700 fi # end check jdk version 27701 fi # end check javac 27702 fi # end check java 27703 fi # end check boot jdk found 27704 fi 27705 27706 27707 if test "x$BOOT_JDK_FOUND" = xno; then 27708 # Now execute the test 27709 27710 if test "x$PROGRAMW6432" != x; then 27711 VIRTUAL_DIR="$PROGRAMW6432/Java" 27712 27713 windows_path="$VIRTUAL_DIR" 27714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27715 unix_path=`$CYGPATH -u "$windows_path"` 27716 VIRTUAL_DIR="$unix_path" 27717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27719 VIRTUAL_DIR="$unix_path" 27720 fi 27721 27722 27723 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 27724 BOOT_JDK_SUFFIX="" 27725 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 27726 if test "x$ALL_JDKS_FOUND" != x; then 27727 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 27728 27729 if test "x$BOOT_JDK_FOUND" = xno; then 27730 # Now execute the test 27731 27732 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 27733 if test -d "$BOOT_JDK"; then 27734 BOOT_JDK_FOUND=maybe 27735 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 27736 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 27737 fi 27738 27739 27740 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27741 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27742 # Do we have a bin/java? 27743 if test ! -x "$BOOT_JDK/bin/java"; then 27744 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27745 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27746 BOOT_JDK_FOUND=no 27747 else 27748 # Do we have a bin/javac? 27749 if test ! -x "$BOOT_JDK/bin/javac"; then 27750 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27751 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27752 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27753 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27754 BOOT_JDK_FOUND=no 27755 else 27756 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27757 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27758 27759 # Extra M4 quote needed to protect [] in grep expression. 27760 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27761 if test "x$FOUND_CORRECT_VERSION" = x; then 27762 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27763 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27764 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27765 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27766 BOOT_JDK_FOUND=no 27767 else 27768 # We're done! :-) 27769 BOOT_JDK_FOUND=yes 27770 27771 # Only process if variable expands to non-empty 27772 27773 if test "x$BOOT_JDK" != x; then 27774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27775 27776 # Input might be given as Windows format, start by converting to 27777 # unix format. 27778 path="$BOOT_JDK" 27779 new_path=`$CYGPATH -u "$path"` 27780 27781 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27782 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27783 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27784 # "foo.exe" is OK but "foo" is an error. 27785 # 27786 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27787 # It is also a way to make sure we got the proper file name for the real test later on. 27788 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27789 if test "x$test_shortpath" = x; then 27790 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27791 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27792 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27793 fi 27794 27795 # Call helper function which possibly converts this using DOS-style short mode. 27796 # If so, the updated path is stored in $new_path. 27797 27798 input_path="$new_path" 27799 # Check if we need to convert this using DOS-style short mode. If the path 27800 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27801 # take no chances and rewrite it. 27802 # Note: m4 eats our [], so we need to use [ and ] instead. 27803 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27804 if test "x$has_forbidden_chars" != x; then 27805 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27806 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27807 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27808 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27809 # Going to short mode and back again did indeed matter. Since short mode is 27810 # case insensitive, let's make it lowercase to improve readability. 27811 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27812 # Now convert it back to Unix-style (cygpath) 27813 input_path=`$CYGPATH -u "$shortmode_path"` 27814 new_path="$input_path" 27815 fi 27816 fi 27817 27818 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27819 if test "x$test_cygdrive_prefix" = x; then 27820 # As a simple fix, exclude /usr/bin since it's not a real path. 27821 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27822 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27823 # a path prefixed by /cygdrive for fixpath to work. 27824 new_path="$CYGWIN_ROOT_PATH$input_path" 27825 fi 27826 fi 27827 27828 27829 if test "x$path" != "x$new_path"; then 27830 BOOT_JDK="$new_path" 27831 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27832 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27833 fi 27834 27835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27836 27837 path="$BOOT_JDK" 27838 has_colon=`$ECHO $path | $GREP ^.:` 27839 new_path="$path" 27840 if test "x$has_colon" = x; then 27841 # Not in mixed or Windows style, start by that. 27842 new_path=`cmd //c echo $path` 27843 fi 27844 27845 27846 input_path="$new_path" 27847 # Check if we need to convert this using DOS-style short mode. If the path 27848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27849 # take no chances and rewrite it. 27850 # Note: m4 eats our [], so we need to use [ and ] instead. 27851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27852 if test "x$has_forbidden_chars" != x; then 27853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27854 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27855 fi 27856 27857 27858 windows_path="$new_path" 27859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27860 unix_path=`$CYGPATH -u "$windows_path"` 27861 new_path="$unix_path" 27862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27863 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27864 new_path="$unix_path" 27865 fi 27866 27867 if test "x$path" != "x$new_path"; then 27868 BOOT_JDK="$new_path" 27869 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 27870 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 27871 fi 27872 27873 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27874 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27875 27876 else 27877 # We're on a unix platform. Hooray! :) 27878 path="$BOOT_JDK" 27879 has_space=`$ECHO "$path" | $GREP " "` 27880 if test "x$has_space" != x; then 27881 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 27882 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 27883 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27884 fi 27885 27886 # Use eval to expand a potential ~ 27887 eval path="$path" 27888 if test ! -f "$path" && test ! -d "$path"; then 27889 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 27890 fi 27891 27892 if test -d "$path"; then 27893 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 27894 else 27895 dir="`$DIRNAME "$path"`" 27896 base="`$BASENAME "$path"`" 27897 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 27898 fi 27899 fi 27900 fi 27901 27902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 27903 $as_echo_n "checking for Boot JDK... " >&6; } 27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 27905 $as_echo "$BOOT_JDK" >&6; } 27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 27907 $as_echo_n "checking Boot JDK version... " >&6; } 27908 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 27910 $as_echo "$BOOT_JDK_VERSION" >&6; } 27911 fi # end check jdk version 27912 fi # end check javac 27913 fi # end check java 27914 fi # end check boot jdk found 27915 fi 27916 27917 done 27918 fi 27919 27920 fi 27921 27922 27923 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 27924 if test "x$BOOT_JDK_FOUND" = xmaybe; then 27925 # Do we have a bin/java? 27926 if test ! -x "$BOOT_JDK/bin/java"; then 27927 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 27928 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 27929 BOOT_JDK_FOUND=no 27930 else 27931 # Do we have a bin/javac? 27932 if test ! -x "$BOOT_JDK/bin/javac"; then 27933 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 27934 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 27935 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 27936 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 27937 BOOT_JDK_FOUND=no 27938 else 27939 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 27940 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 27941 27942 # Extra M4 quote needed to protect [] in grep expression. 27943 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 27944 if test "x$FOUND_CORRECT_VERSION" = x; then 27945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 27946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 27947 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 27948 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 27949 BOOT_JDK_FOUND=no 27950 else 27951 # We're done! :-) 27952 BOOT_JDK_FOUND=yes 27953 27954 # Only process if variable expands to non-empty 27955 27956 if test "x$BOOT_JDK" != x; then 27957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27958 27959 # Input might be given as Windows format, start by converting to 27960 # unix format. 27961 path="$BOOT_JDK" 27962 new_path=`$CYGPATH -u "$path"` 27963 27964 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27965 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27966 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27967 # "foo.exe" is OK but "foo" is an error. 27968 # 27969 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27970 # It is also a way to make sure we got the proper file name for the real test later on. 27971 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27972 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 27976 fi 27977 27978 # Call helper function which possibly converts this using DOS-style short mode. 27979 # If so, the updated path is stored in $new_path. 27980 27981 input_path="$new_path" 27982 # Check if we need to convert this using DOS-style short mode. If the path 27983 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27984 # take no chances and rewrite it. 27985 # Note: m4 eats our [], so we need to use [ and ] instead. 27986 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27987 if test "x$has_forbidden_chars" != x; then 27988 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27989 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27990 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27991 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27992 # Going to short mode and back again did indeed matter. Since short mode is 27993 # case insensitive, let's make it lowercase to improve readability. 27994 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27995 # Now convert it back to Unix-style (cygpath) 27996 input_path=`$CYGPATH -u "$shortmode_path"` 27997 new_path="$input_path" 27998 fi 27999 fi 28000 28001 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28002 if test "x$test_cygdrive_prefix" = x; then 28003 # As a simple fix, exclude /usr/bin since it's not a real path. 28004 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28005 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28006 # a path prefixed by /cygdrive for fixpath to work. 28007 new_path="$CYGWIN_ROOT_PATH$input_path" 28008 fi 28009 fi 28010 28011 28012 if test "x$path" != "x$new_path"; then 28013 BOOT_JDK="$new_path" 28014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28015 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28016 fi 28017 28018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28019 28020 path="$BOOT_JDK" 28021 has_colon=`$ECHO $path | $GREP ^.:` 28022 new_path="$path" 28023 if test "x$has_colon" = x; then 28024 # Not in mixed or Windows style, start by that. 28025 new_path=`cmd //c echo $path` 28026 fi 28027 28028 28029 input_path="$new_path" 28030 # Check if we need to convert this using DOS-style short mode. If the path 28031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28032 # take no chances and rewrite it. 28033 # Note: m4 eats our [], so we need to use [ and ] instead. 28034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28035 if test "x$has_forbidden_chars" != x; then 28036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28037 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28038 fi 28039 28040 28041 windows_path="$new_path" 28042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28043 unix_path=`$CYGPATH -u "$windows_path"` 28044 new_path="$unix_path" 28045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28047 new_path="$unix_path" 28048 fi 28049 28050 if test "x$path" != "x$new_path"; then 28051 BOOT_JDK="$new_path" 28052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28053 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28054 fi 28055 28056 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28057 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28058 28059 else 28060 # We're on a unix platform. Hooray! :) 28061 path="$BOOT_JDK" 28062 has_space=`$ECHO "$path" | $GREP " "` 28063 if test "x$has_space" != x; then 28064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28065 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28066 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28067 fi 28068 28069 # Use eval to expand a potential ~ 28070 eval path="$path" 28071 if test ! -f "$path" && test ! -d "$path"; then 28072 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28073 fi 28074 28075 if test -d "$path"; then 28076 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28077 else 28078 dir="`$DIRNAME "$path"`" 28079 base="`$BASENAME "$path"`" 28080 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28081 fi 28082 fi 28083 fi 28084 28085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28086 $as_echo_n "checking for Boot JDK... " >&6; } 28087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28088 $as_echo "$BOOT_JDK" >&6; } 28089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28090 $as_echo_n "checking Boot JDK version... " >&6; } 28091 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28093 $as_echo "$BOOT_JDK_VERSION" >&6; } 28094 fi # end check jdk version 28095 fi # end check javac 28096 fi # end check java 28097 fi # end check boot jdk found 28098 fi 28099 28100 28101 if test "x$BOOT_JDK_FOUND" = xno; then 28102 # Now execute the test 28103 28104 if test "x$PROGRAMFILES" != x; then 28105 VIRTUAL_DIR="$PROGRAMFILES/Java" 28106 28107 windows_path="$VIRTUAL_DIR" 28108 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28109 unix_path=`$CYGPATH -u "$windows_path"` 28110 VIRTUAL_DIR="$unix_path" 28111 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28112 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28113 VIRTUAL_DIR="$unix_path" 28114 fi 28115 28116 28117 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28118 BOOT_JDK_SUFFIX="" 28119 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28120 if test "x$ALL_JDKS_FOUND" != x; then 28121 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28122 28123 if test "x$BOOT_JDK_FOUND" = xno; then 28124 # Now execute the test 28125 28126 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28127 if test -d "$BOOT_JDK"; then 28128 BOOT_JDK_FOUND=maybe 28129 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28130 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28131 fi 28132 28133 28134 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28135 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28136 # Do we have a bin/java? 28137 if test ! -x "$BOOT_JDK/bin/java"; then 28138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28140 BOOT_JDK_FOUND=no 28141 else 28142 # Do we have a bin/javac? 28143 if test ! -x "$BOOT_JDK/bin/javac"; then 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28146 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28147 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28148 BOOT_JDK_FOUND=no 28149 else 28150 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28151 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28152 28153 # Extra M4 quote needed to protect [] in grep expression. 28154 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28155 if test "x$FOUND_CORRECT_VERSION" = x; then 28156 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28157 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28158 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28159 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28160 BOOT_JDK_FOUND=no 28161 else 28162 # We're done! :-) 28163 BOOT_JDK_FOUND=yes 28164 28165 # Only process if variable expands to non-empty 28166 28167 if test "x$BOOT_JDK" != x; then 28168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28169 28170 # Input might be given as Windows format, start by converting to 28171 # unix format. 28172 path="$BOOT_JDK" 28173 new_path=`$CYGPATH -u "$path"` 28174 28175 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28176 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28177 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28178 # "foo.exe" is OK but "foo" is an error. 28179 # 28180 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28181 # It is also a way to make sure we got the proper file name for the real test later on. 28182 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28183 if test "x$test_shortpath" = x; then 28184 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28185 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28186 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28187 fi 28188 28189 # Call helper function which possibly converts this using DOS-style short mode. 28190 # If so, the updated path is stored in $new_path. 28191 28192 input_path="$new_path" 28193 # Check if we need to convert this using DOS-style short mode. If the path 28194 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28195 # take no chances and rewrite it. 28196 # Note: m4 eats our [], so we need to use [ and ] instead. 28197 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28198 if test "x$has_forbidden_chars" != x; then 28199 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28200 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28201 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28202 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28203 # Going to short mode and back again did indeed matter. Since short mode is 28204 # case insensitive, let's make it lowercase to improve readability. 28205 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28206 # Now convert it back to Unix-style (cygpath) 28207 input_path=`$CYGPATH -u "$shortmode_path"` 28208 new_path="$input_path" 28209 fi 28210 fi 28211 28212 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28213 if test "x$test_cygdrive_prefix" = x; then 28214 # As a simple fix, exclude /usr/bin since it's not a real path. 28215 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28216 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28217 # a path prefixed by /cygdrive for fixpath to work. 28218 new_path="$CYGWIN_ROOT_PATH$input_path" 28219 fi 28220 fi 28221 28222 28223 if test "x$path" != "x$new_path"; then 28224 BOOT_JDK="$new_path" 28225 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28226 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28227 fi 28228 28229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28230 28231 path="$BOOT_JDK" 28232 has_colon=`$ECHO $path | $GREP ^.:` 28233 new_path="$path" 28234 if test "x$has_colon" = x; then 28235 # Not in mixed or Windows style, start by that. 28236 new_path=`cmd //c echo $path` 28237 fi 28238 28239 28240 input_path="$new_path" 28241 # Check if we need to convert this using DOS-style short mode. If the path 28242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28243 # take no chances and rewrite it. 28244 # Note: m4 eats our [], so we need to use [ and ] instead. 28245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28246 if test "x$has_forbidden_chars" != x; then 28247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28248 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28249 fi 28250 28251 28252 windows_path="$new_path" 28253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28254 unix_path=`$CYGPATH -u "$windows_path"` 28255 new_path="$unix_path" 28256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28258 new_path="$unix_path" 28259 fi 28260 28261 if test "x$path" != "x$new_path"; then 28262 BOOT_JDK="$new_path" 28263 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28264 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28265 fi 28266 28267 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28268 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28269 28270 else 28271 # We're on a unix platform. Hooray! :) 28272 path="$BOOT_JDK" 28273 has_space=`$ECHO "$path" | $GREP " "` 28274 if test "x$has_space" != x; then 28275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28276 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28277 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28278 fi 28279 28280 # Use eval to expand a potential ~ 28281 eval path="$path" 28282 if test ! -f "$path" && test ! -d "$path"; then 28283 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28284 fi 28285 28286 if test -d "$path"; then 28287 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28288 else 28289 dir="`$DIRNAME "$path"`" 28290 base="`$BASENAME "$path"`" 28291 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28292 fi 28293 fi 28294 fi 28295 28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28297 $as_echo_n "checking for Boot JDK... " >&6; } 28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28299 $as_echo "$BOOT_JDK" >&6; } 28300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28301 $as_echo_n "checking Boot JDK version... " >&6; } 28302 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28304 $as_echo "$BOOT_JDK_VERSION" >&6; } 28305 fi # end check jdk version 28306 fi # end check javac 28307 fi # end check java 28308 fi # end check boot jdk found 28309 fi 28310 28311 done 28312 fi 28313 28314 fi 28315 28316 28317 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28318 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28319 # Do we have a bin/java? 28320 if test ! -x "$BOOT_JDK/bin/java"; then 28321 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28322 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28323 BOOT_JDK_FOUND=no 28324 else 28325 # Do we have a bin/javac? 28326 if test ! -x "$BOOT_JDK/bin/javac"; then 28327 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28328 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28329 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28330 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28331 BOOT_JDK_FOUND=no 28332 else 28333 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28334 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28335 28336 # Extra M4 quote needed to protect [] in grep expression. 28337 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28338 if test "x$FOUND_CORRECT_VERSION" = x; then 28339 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28340 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28341 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28342 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28343 BOOT_JDK_FOUND=no 28344 else 28345 # We're done! :-) 28346 BOOT_JDK_FOUND=yes 28347 28348 # Only process if variable expands to non-empty 28349 28350 if test "x$BOOT_JDK" != x; then 28351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28352 28353 # Input might be given as Windows format, start by converting to 28354 # unix format. 28355 path="$BOOT_JDK" 28356 new_path=`$CYGPATH -u "$path"` 28357 28358 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28359 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28360 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28361 # "foo.exe" is OK but "foo" is an error. 28362 # 28363 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28364 # It is also a way to make sure we got the proper file name for the real test later on. 28365 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28366 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28370 fi 28371 28372 # Call helper function which possibly converts this using DOS-style short mode. 28373 # If so, the updated path is stored in $new_path. 28374 28375 input_path="$new_path" 28376 # Check if we need to convert this using DOS-style short mode. If the path 28377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28378 # take no chances and rewrite it. 28379 # Note: m4 eats our [], so we need to use [ and ] instead. 28380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28381 if test "x$has_forbidden_chars" != x; then 28382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28383 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28384 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28385 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28386 # Going to short mode and back again did indeed matter. Since short mode is 28387 # case insensitive, let's make it lowercase to improve readability. 28388 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28389 # Now convert it back to Unix-style (cygpath) 28390 input_path=`$CYGPATH -u "$shortmode_path"` 28391 new_path="$input_path" 28392 fi 28393 fi 28394 28395 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28396 if test "x$test_cygdrive_prefix" = x; then 28397 # As a simple fix, exclude /usr/bin since it's not a real path. 28398 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28399 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28400 # a path prefixed by /cygdrive for fixpath to work. 28401 new_path="$CYGWIN_ROOT_PATH$input_path" 28402 fi 28403 fi 28404 28405 28406 if test "x$path" != "x$new_path"; then 28407 BOOT_JDK="$new_path" 28408 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28409 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28410 fi 28411 28412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28413 28414 path="$BOOT_JDK" 28415 has_colon=`$ECHO $path | $GREP ^.:` 28416 new_path="$path" 28417 if test "x$has_colon" = x; then 28418 # Not in mixed or Windows style, start by that. 28419 new_path=`cmd //c echo $path` 28420 fi 28421 28422 28423 input_path="$new_path" 28424 # Check if we need to convert this using DOS-style short mode. If the path 28425 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28426 # take no chances and rewrite it. 28427 # Note: m4 eats our [], so we need to use [ and ] instead. 28428 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28429 if test "x$has_forbidden_chars" != x; then 28430 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28431 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28432 fi 28433 28434 28435 windows_path="$new_path" 28436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28437 unix_path=`$CYGPATH -u "$windows_path"` 28438 new_path="$unix_path" 28439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28441 new_path="$unix_path" 28442 fi 28443 28444 if test "x$path" != "x$new_path"; then 28445 BOOT_JDK="$new_path" 28446 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28447 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28448 fi 28449 28450 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28451 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28452 28453 else 28454 # We're on a unix platform. Hooray! :) 28455 path="$BOOT_JDK" 28456 has_space=`$ECHO "$path" | $GREP " "` 28457 if test "x$has_space" != x; then 28458 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28459 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28460 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28461 fi 28462 28463 # Use eval to expand a potential ~ 28464 eval path="$path" 28465 if test ! -f "$path" && test ! -d "$path"; then 28466 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28467 fi 28468 28469 if test -d "$path"; then 28470 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28471 else 28472 dir="`$DIRNAME "$path"`" 28473 base="`$BASENAME "$path"`" 28474 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28475 fi 28476 fi 28477 fi 28478 28479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28480 $as_echo_n "checking for Boot JDK... " >&6; } 28481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28482 $as_echo "$BOOT_JDK" >&6; } 28483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28484 $as_echo_n "checking Boot JDK version... " >&6; } 28485 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28487 $as_echo "$BOOT_JDK_VERSION" >&6; } 28488 fi # end check jdk version 28489 fi # end check javac 28490 fi # end check java 28491 fi # end check boot jdk found 28492 fi 28493 28494 28495 if test "x$BOOT_JDK_FOUND" = xno; then 28496 # Now execute the test 28497 28498 if test "x$ProgramFiles" != x; then 28499 VIRTUAL_DIR="$ProgramFiles/Java" 28500 28501 windows_path="$VIRTUAL_DIR" 28502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28503 unix_path=`$CYGPATH -u "$windows_path"` 28504 VIRTUAL_DIR="$unix_path" 28505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28507 VIRTUAL_DIR="$unix_path" 28508 fi 28509 28510 28511 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 28512 BOOT_JDK_SUFFIX="" 28513 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28514 if test "x$ALL_JDKS_FOUND" != x; then 28515 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28516 28517 if test "x$BOOT_JDK_FOUND" = xno; then 28518 # Now execute the test 28519 28520 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28521 if test -d "$BOOT_JDK"; then 28522 BOOT_JDK_FOUND=maybe 28523 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28524 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28525 fi 28526 28527 28528 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28529 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28530 # Do we have a bin/java? 28531 if test ! -x "$BOOT_JDK/bin/java"; then 28532 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28533 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28534 BOOT_JDK_FOUND=no 28535 else 28536 # Do we have a bin/javac? 28537 if test ! -x "$BOOT_JDK/bin/javac"; then 28538 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28539 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28540 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28541 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28542 BOOT_JDK_FOUND=no 28543 else 28544 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28545 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28546 28547 # Extra M4 quote needed to protect [] in grep expression. 28548 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28549 if test "x$FOUND_CORRECT_VERSION" = x; then 28550 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28551 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28552 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28553 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28554 BOOT_JDK_FOUND=no 28555 else 28556 # We're done! :-) 28557 BOOT_JDK_FOUND=yes 28558 28559 # Only process if variable expands to non-empty 28560 28561 if test "x$BOOT_JDK" != x; then 28562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28563 28564 # Input might be given as Windows format, start by converting to 28565 # unix format. 28566 path="$BOOT_JDK" 28567 new_path=`$CYGPATH -u "$path"` 28568 28569 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28570 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28571 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28572 # "foo.exe" is OK but "foo" is an error. 28573 # 28574 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28575 # It is also a way to make sure we got the proper file name for the real test later on. 28576 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28577 if test "x$test_shortpath" = x; then 28578 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28579 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28580 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28581 fi 28582 28583 # Call helper function which possibly converts this using DOS-style short mode. 28584 # If so, the updated path is stored in $new_path. 28585 28586 input_path="$new_path" 28587 # Check if we need to convert this using DOS-style short mode. If the path 28588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28589 # take no chances and rewrite it. 28590 # Note: m4 eats our [], so we need to use [ and ] instead. 28591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28592 if test "x$has_forbidden_chars" != x; then 28593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28594 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28595 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28596 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28597 # Going to short mode and back again did indeed matter. Since short mode is 28598 # case insensitive, let's make it lowercase to improve readability. 28599 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28600 # Now convert it back to Unix-style (cygpath) 28601 input_path=`$CYGPATH -u "$shortmode_path"` 28602 new_path="$input_path" 28603 fi 28604 fi 28605 28606 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28607 if test "x$test_cygdrive_prefix" = x; then 28608 # As a simple fix, exclude /usr/bin since it's not a real path. 28609 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28610 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28611 # a path prefixed by /cygdrive for fixpath to work. 28612 new_path="$CYGWIN_ROOT_PATH$input_path" 28613 fi 28614 fi 28615 28616 28617 if test "x$path" != "x$new_path"; then 28618 BOOT_JDK="$new_path" 28619 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28620 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28621 fi 28622 28623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28624 28625 path="$BOOT_JDK" 28626 has_colon=`$ECHO $path | $GREP ^.:` 28627 new_path="$path" 28628 if test "x$has_colon" = x; then 28629 # Not in mixed or Windows style, start by that. 28630 new_path=`cmd //c echo $path` 28631 fi 28632 28633 28634 input_path="$new_path" 28635 # Check if we need to convert this using DOS-style short mode. If the path 28636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28637 # take no chances and rewrite it. 28638 # Note: m4 eats our [], so we need to use [ and ] instead. 28639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28640 if test "x$has_forbidden_chars" != x; then 28641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28642 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28643 fi 28644 28645 28646 windows_path="$new_path" 28647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28648 unix_path=`$CYGPATH -u "$windows_path"` 28649 new_path="$unix_path" 28650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28652 new_path="$unix_path" 28653 fi 28654 28655 if test "x$path" != "x$new_path"; then 28656 BOOT_JDK="$new_path" 28657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28658 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28659 fi 28660 28661 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28662 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28663 28664 else 28665 # We're on a unix platform. Hooray! :) 28666 path="$BOOT_JDK" 28667 has_space=`$ECHO "$path" | $GREP " "` 28668 if test "x$has_space" != x; then 28669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28670 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28671 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28672 fi 28673 28674 # Use eval to expand a potential ~ 28675 eval path="$path" 28676 if test ! -f "$path" && test ! -d "$path"; then 28677 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28678 fi 28679 28680 if test -d "$path"; then 28681 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28682 else 28683 dir="`$DIRNAME "$path"`" 28684 base="`$BASENAME "$path"`" 28685 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28686 fi 28687 fi 28688 fi 28689 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28691 $as_echo_n "checking for Boot JDK... " >&6; } 28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28693 $as_echo "$BOOT_JDK" >&6; } 28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28695 $as_echo_n "checking Boot JDK version... " >&6; } 28696 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28698 $as_echo "$BOOT_JDK_VERSION" >&6; } 28699 fi # end check jdk version 28700 fi # end check javac 28701 fi # end check java 28702 fi # end check boot jdk found 28703 fi 28704 28705 done 28706 fi 28707 28708 fi 28709 28710 28711 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28712 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28713 # Do we have a bin/java? 28714 if test ! -x "$BOOT_JDK/bin/java"; then 28715 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28716 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28717 BOOT_JDK_FOUND=no 28718 else 28719 # Do we have a bin/javac? 28720 if test ! -x "$BOOT_JDK/bin/javac"; then 28721 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28722 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28723 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28724 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28725 BOOT_JDK_FOUND=no 28726 else 28727 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28728 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28729 28730 # Extra M4 quote needed to protect [] in grep expression. 28731 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28732 if test "x$FOUND_CORRECT_VERSION" = x; then 28733 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28734 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28735 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28736 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28737 BOOT_JDK_FOUND=no 28738 else 28739 # We're done! :-) 28740 BOOT_JDK_FOUND=yes 28741 28742 # Only process if variable expands to non-empty 28743 28744 if test "x$BOOT_JDK" != x; then 28745 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28746 28747 # Input might be given as Windows format, start by converting to 28748 # unix format. 28749 path="$BOOT_JDK" 28750 new_path=`$CYGPATH -u "$path"` 28751 28752 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28753 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28754 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28755 # "foo.exe" is OK but "foo" is an error. 28756 # 28757 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28758 # It is also a way to make sure we got the proper file name for the real test later on. 28759 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28760 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28764 fi 28765 28766 # Call helper function which possibly converts this using DOS-style short mode. 28767 # If so, the updated path is stored in $new_path. 28768 28769 input_path="$new_path" 28770 # Check if we need to convert this using DOS-style short mode. If the path 28771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28772 # take no chances and rewrite it. 28773 # Note: m4 eats our [], so we need to use [ and ] instead. 28774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28775 if test "x$has_forbidden_chars" != x; then 28776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28777 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28778 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28779 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28780 # Going to short mode and back again did indeed matter. Since short mode is 28781 # case insensitive, let's make it lowercase to improve readability. 28782 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28783 # Now convert it back to Unix-style (cygpath) 28784 input_path=`$CYGPATH -u "$shortmode_path"` 28785 new_path="$input_path" 28786 fi 28787 fi 28788 28789 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28790 if test "x$test_cygdrive_prefix" = x; then 28791 # As a simple fix, exclude /usr/bin since it's not a real path. 28792 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28793 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28794 # a path prefixed by /cygdrive for fixpath to work. 28795 new_path="$CYGWIN_ROOT_PATH$input_path" 28796 fi 28797 fi 28798 28799 28800 if test "x$path" != "x$new_path"; then 28801 BOOT_JDK="$new_path" 28802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28803 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28804 fi 28805 28806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28807 28808 path="$BOOT_JDK" 28809 has_colon=`$ECHO $path | $GREP ^.:` 28810 new_path="$path" 28811 if test "x$has_colon" = x; then 28812 # Not in mixed or Windows style, start by that. 28813 new_path=`cmd //c echo $path` 28814 fi 28815 28816 28817 input_path="$new_path" 28818 # Check if we need to convert this using DOS-style short mode. If the path 28819 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28820 # take no chances and rewrite it. 28821 # Note: m4 eats our [], so we need to use [ and ] instead. 28822 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28823 if test "x$has_forbidden_chars" != x; then 28824 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28825 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28826 fi 28827 28828 28829 windows_path="$new_path" 28830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28831 unix_path=`$CYGPATH -u "$windows_path"` 28832 new_path="$unix_path" 28833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28835 new_path="$unix_path" 28836 fi 28837 28838 if test "x$path" != "x$new_path"; then 28839 BOOT_JDK="$new_path" 28840 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 28841 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 28842 fi 28843 28844 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28845 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28846 28847 else 28848 # We're on a unix platform. Hooray! :) 28849 path="$BOOT_JDK" 28850 has_space=`$ECHO "$path" | $GREP " "` 28851 if test "x$has_space" != x; then 28852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28853 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28854 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 28855 fi 28856 28857 # Use eval to expand a potential ~ 28858 eval path="$path" 28859 if test ! -f "$path" && test ! -d "$path"; then 28860 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 28861 fi 28862 28863 if test -d "$path"; then 28864 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 28865 else 28866 dir="`$DIRNAME "$path"`" 28867 base="`$BASENAME "$path"`" 28868 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 28869 fi 28870 fi 28871 fi 28872 28873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 28874 $as_echo_n "checking for Boot JDK... " >&6; } 28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 28876 $as_echo "$BOOT_JDK" >&6; } 28877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 28878 $as_echo_n "checking Boot JDK version... " >&6; } 28879 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 28881 $as_echo "$BOOT_JDK_VERSION" >&6; } 28882 fi # end check jdk version 28883 fi # end check javac 28884 fi # end check java 28885 fi # end check boot jdk found 28886 fi 28887 28888 28889 if test "x$BOOT_JDK_FOUND" = xno; then 28890 # Now execute the test 28891 28892 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 28893 BOOT_JDK_SUFFIX="" 28894 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 28895 if test "x$ALL_JDKS_FOUND" != x; then 28896 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 28897 28898 if test "x$BOOT_JDK_FOUND" = xno; then 28899 # Now execute the test 28900 28901 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 28902 if test -d "$BOOT_JDK"; then 28903 BOOT_JDK_FOUND=maybe 28904 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 28905 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 28906 fi 28907 28908 28909 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 28910 if test "x$BOOT_JDK_FOUND" = xmaybe; then 28911 # Do we have a bin/java? 28912 if test ! -x "$BOOT_JDK/bin/java"; then 28913 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 28914 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 28915 BOOT_JDK_FOUND=no 28916 else 28917 # Do we have a bin/javac? 28918 if test ! -x "$BOOT_JDK/bin/javac"; then 28919 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 28920 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 28921 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 28922 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 28923 BOOT_JDK_FOUND=no 28924 else 28925 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 28926 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 28927 28928 # Extra M4 quote needed to protect [] in grep expression. 28929 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 28930 if test "x$FOUND_CORRECT_VERSION" = x; then 28931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 28932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 28933 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 28934 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 28935 BOOT_JDK_FOUND=no 28936 else 28937 # We're done! :-) 28938 BOOT_JDK_FOUND=yes 28939 28940 # Only process if variable expands to non-empty 28941 28942 if test "x$BOOT_JDK" != x; then 28943 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28944 28945 # Input might be given as Windows format, start by converting to 28946 # unix format. 28947 path="$BOOT_JDK" 28948 new_path=`$CYGPATH -u "$path"` 28949 28950 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28951 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28952 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28953 # "foo.exe" is OK but "foo" is an error. 28954 # 28955 # This test is therefore slightly more accurate than "test -f" to check for file precense. 28956 # It is also a way to make sure we got the proper file name for the real test later on. 28957 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28958 if test "x$test_shortpath" = x; then 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 28960 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 28961 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 28962 fi 28963 28964 # Call helper function which possibly converts this using DOS-style short mode. 28965 # If so, the updated path is stored in $new_path. 28966 28967 input_path="$new_path" 28968 # Check if we need to convert this using DOS-style short mode. If the path 28969 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28970 # take no chances and rewrite it. 28971 # Note: m4 eats our [], so we need to use [ and ] instead. 28972 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28973 if test "x$has_forbidden_chars" != x; then 28974 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28975 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28976 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28977 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28978 # Going to short mode and back again did indeed matter. Since short mode is 28979 # case insensitive, let's make it lowercase to improve readability. 28980 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28981 # Now convert it back to Unix-style (cygpath) 28982 input_path=`$CYGPATH -u "$shortmode_path"` 28983 new_path="$input_path" 28984 fi 28985 fi 28986 28987 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28988 if test "x$test_cygdrive_prefix" = x; then 28989 # As a simple fix, exclude /usr/bin since it's not a real path. 28990 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 28991 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28992 # a path prefixed by /cygdrive for fixpath to work. 28993 new_path="$CYGWIN_ROOT_PATH$input_path" 28994 fi 28995 fi 28996 28997 28998 if test "x$path" != "x$new_path"; then 28999 BOOT_JDK="$new_path" 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29001 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29002 fi 29003 29004 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29005 29006 path="$BOOT_JDK" 29007 has_colon=`$ECHO $path | $GREP ^.:` 29008 new_path="$path" 29009 if test "x$has_colon" = x; then 29010 # Not in mixed or Windows style, start by that. 29011 new_path=`cmd //c echo $path` 29012 fi 29013 29014 29015 input_path="$new_path" 29016 # Check if we need to convert this using DOS-style short mode. If the path 29017 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29018 # take no chances and rewrite it. 29019 # Note: m4 eats our [], so we need to use [ and ] instead. 29020 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29021 if test "x$has_forbidden_chars" != x; then 29022 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29023 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29024 fi 29025 29026 29027 windows_path="$new_path" 29028 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29029 unix_path=`$CYGPATH -u "$windows_path"` 29030 new_path="$unix_path" 29031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29032 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29033 new_path="$unix_path" 29034 fi 29035 29036 if test "x$path" != "x$new_path"; then 29037 BOOT_JDK="$new_path" 29038 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29039 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29040 fi 29041 29042 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29043 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29044 29045 else 29046 # We're on a unix platform. Hooray! :) 29047 path="$BOOT_JDK" 29048 has_space=`$ECHO "$path" | $GREP " "` 29049 if test "x$has_space" != x; then 29050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29051 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29052 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29053 fi 29054 29055 # Use eval to expand a potential ~ 29056 eval path="$path" 29057 if test ! -f "$path" && test ! -d "$path"; then 29058 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29059 fi 29060 29061 if test -d "$path"; then 29062 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29063 else 29064 dir="`$DIRNAME "$path"`" 29065 base="`$BASENAME "$path"`" 29066 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29067 fi 29068 fi 29069 fi 29070 29071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29072 $as_echo_n "checking for Boot JDK... " >&6; } 29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29074 $as_echo "$BOOT_JDK" >&6; } 29075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29076 $as_echo_n "checking Boot JDK version... " >&6; } 29077 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29079 $as_echo "$BOOT_JDK_VERSION" >&6; } 29080 fi # end check jdk version 29081 fi # end check javac 29082 fi # end check java 29083 fi # end check boot jdk found 29084 fi 29085 29086 done 29087 fi 29088 29089 29090 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29091 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29092 # Do we have a bin/java? 29093 if test ! -x "$BOOT_JDK/bin/java"; then 29094 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29096 BOOT_JDK_FOUND=no 29097 else 29098 # Do we have a bin/javac? 29099 if test ! -x "$BOOT_JDK/bin/javac"; then 29100 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29101 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29102 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29103 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29104 BOOT_JDK_FOUND=no 29105 else 29106 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29107 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29108 29109 # Extra M4 quote needed to protect [] in grep expression. 29110 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29111 if test "x$FOUND_CORRECT_VERSION" = x; then 29112 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29113 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29114 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29115 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29116 BOOT_JDK_FOUND=no 29117 else 29118 # We're done! :-) 29119 BOOT_JDK_FOUND=yes 29120 29121 # Only process if variable expands to non-empty 29122 29123 if test "x$BOOT_JDK" != x; then 29124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29125 29126 # Input might be given as Windows format, start by converting to 29127 # unix format. 29128 path="$BOOT_JDK" 29129 new_path=`$CYGPATH -u "$path"` 29130 29131 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29132 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29133 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29134 # "foo.exe" is OK but "foo" is an error. 29135 # 29136 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29137 # It is also a way to make sure we got the proper file name for the real test later on. 29138 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29139 if test "x$test_shortpath" = x; then 29140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29141 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29142 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29143 fi 29144 29145 # Call helper function which possibly converts this using DOS-style short mode. 29146 # If so, the updated path is stored in $new_path. 29147 29148 input_path="$new_path" 29149 # Check if we need to convert this using DOS-style short mode. If the path 29150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29151 # take no chances and rewrite it. 29152 # Note: m4 eats our [], so we need to use [ and ] instead. 29153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29154 if test "x$has_forbidden_chars" != x; then 29155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29159 # Going to short mode and back again did indeed matter. Since short mode is 29160 # case insensitive, let's make it lowercase to improve readability. 29161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29162 # Now convert it back to Unix-style (cygpath) 29163 input_path=`$CYGPATH -u "$shortmode_path"` 29164 new_path="$input_path" 29165 fi 29166 fi 29167 29168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29169 if test "x$test_cygdrive_prefix" = x; then 29170 # As a simple fix, exclude /usr/bin since it's not a real path. 29171 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29173 # a path prefixed by /cygdrive for fixpath to work. 29174 new_path="$CYGWIN_ROOT_PATH$input_path" 29175 fi 29176 fi 29177 29178 29179 if test "x$path" != "x$new_path"; then 29180 BOOT_JDK="$new_path" 29181 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29182 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29183 fi 29184 29185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29186 29187 path="$BOOT_JDK" 29188 has_colon=`$ECHO $path | $GREP ^.:` 29189 new_path="$path" 29190 if test "x$has_colon" = x; then 29191 # Not in mixed or Windows style, start by that. 29192 new_path=`cmd //c echo $path` 29193 fi 29194 29195 29196 input_path="$new_path" 29197 # Check if we need to convert this using DOS-style short mode. If the path 29198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29199 # take no chances and rewrite it. 29200 # Note: m4 eats our [], so we need to use [ and ] instead. 29201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29202 if test "x$has_forbidden_chars" != x; then 29203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29204 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29205 fi 29206 29207 29208 windows_path="$new_path" 29209 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29210 unix_path=`$CYGPATH -u "$windows_path"` 29211 new_path="$unix_path" 29212 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29213 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29214 new_path="$unix_path" 29215 fi 29216 29217 if test "x$path" != "x$new_path"; then 29218 BOOT_JDK="$new_path" 29219 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29220 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29221 fi 29222 29223 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29224 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29225 29226 else 29227 # We're on a unix platform. Hooray! :) 29228 path="$BOOT_JDK" 29229 has_space=`$ECHO "$path" | $GREP " "` 29230 if test "x$has_space" != x; then 29231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29232 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29233 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29234 fi 29235 29236 # Use eval to expand a potential ~ 29237 eval path="$path" 29238 if test ! -f "$path" && test ! -d "$path"; then 29239 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29240 fi 29241 29242 if test -d "$path"; then 29243 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29244 else 29245 dir="`$DIRNAME "$path"`" 29246 base="`$BASENAME "$path"`" 29247 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29248 fi 29249 fi 29250 fi 29251 29252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29253 $as_echo_n "checking for Boot JDK... " >&6; } 29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29255 $as_echo "$BOOT_JDK" >&6; } 29256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29257 $as_echo_n "checking Boot JDK version... " >&6; } 29258 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29260 $as_echo "$BOOT_JDK_VERSION" >&6; } 29261 fi # end check jdk version 29262 fi # end check javac 29263 fi # end check java 29264 fi # end check boot jdk found 29265 fi 29266 29267 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 29268 29269 if test "x$BOOT_JDK_FOUND" = xno; then 29270 # Now execute the test 29271 29272 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 29273 BOOT_JDK_SUFFIX="/Contents/Home" 29274 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29275 if test "x$ALL_JDKS_FOUND" != x; then 29276 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29277 29278 if test "x$BOOT_JDK_FOUND" = xno; then 29279 # Now execute the test 29280 29281 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29282 if test -d "$BOOT_JDK"; then 29283 BOOT_JDK_FOUND=maybe 29284 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29285 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29286 fi 29287 29288 29289 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29290 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29291 # Do we have a bin/java? 29292 if test ! -x "$BOOT_JDK/bin/java"; then 29293 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29294 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29295 BOOT_JDK_FOUND=no 29296 else 29297 # Do we have a bin/javac? 29298 if test ! -x "$BOOT_JDK/bin/javac"; then 29299 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29301 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29302 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29303 BOOT_JDK_FOUND=no 29304 else 29305 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29306 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29307 29308 # Extra M4 quote needed to protect [] in grep expression. 29309 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29310 if test "x$FOUND_CORRECT_VERSION" = x; then 29311 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29312 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29313 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29314 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29315 BOOT_JDK_FOUND=no 29316 else 29317 # We're done! :-) 29318 BOOT_JDK_FOUND=yes 29319 29320 # Only process if variable expands to non-empty 29321 29322 if test "x$BOOT_JDK" != x; then 29323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29324 29325 # Input might be given as Windows format, start by converting to 29326 # unix format. 29327 path="$BOOT_JDK" 29328 new_path=`$CYGPATH -u "$path"` 29329 29330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29333 # "foo.exe" is OK but "foo" is an error. 29334 # 29335 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29336 # It is also a way to make sure we got the proper file name for the real test later on. 29337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29338 if test "x$test_shortpath" = x; then 29339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29340 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29341 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29342 fi 29343 29344 # Call helper function which possibly converts this using DOS-style short mode. 29345 # If so, the updated path is stored in $new_path. 29346 29347 input_path="$new_path" 29348 # Check if we need to convert this using DOS-style short mode. If the path 29349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29350 # take no chances and rewrite it. 29351 # Note: m4 eats our [], so we need to use [ and ] instead. 29352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29353 if test "x$has_forbidden_chars" != x; then 29354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29355 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29356 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29357 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29358 # Going to short mode and back again did indeed matter. Since short mode is 29359 # case insensitive, let's make it lowercase to improve readability. 29360 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29361 # Now convert it back to Unix-style (cygpath) 29362 input_path=`$CYGPATH -u "$shortmode_path"` 29363 new_path="$input_path" 29364 fi 29365 fi 29366 29367 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29368 if test "x$test_cygdrive_prefix" = x; then 29369 # As a simple fix, exclude /usr/bin since it's not a real path. 29370 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29371 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29372 # a path prefixed by /cygdrive for fixpath to work. 29373 new_path="$CYGWIN_ROOT_PATH$input_path" 29374 fi 29375 fi 29376 29377 29378 if test "x$path" != "x$new_path"; then 29379 BOOT_JDK="$new_path" 29380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29381 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29382 fi 29383 29384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29385 29386 path="$BOOT_JDK" 29387 has_colon=`$ECHO $path | $GREP ^.:` 29388 new_path="$path" 29389 if test "x$has_colon" = x; then 29390 # Not in mixed or Windows style, start by that. 29391 new_path=`cmd //c echo $path` 29392 fi 29393 29394 29395 input_path="$new_path" 29396 # Check if we need to convert this using DOS-style short mode. If the path 29397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29398 # take no chances and rewrite it. 29399 # Note: m4 eats our [], so we need to use [ and ] instead. 29400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29401 if test "x$has_forbidden_chars" != x; then 29402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29404 fi 29405 29406 29407 windows_path="$new_path" 29408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29409 unix_path=`$CYGPATH -u "$windows_path"` 29410 new_path="$unix_path" 29411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29413 new_path="$unix_path" 29414 fi 29415 29416 if test "x$path" != "x$new_path"; then 29417 BOOT_JDK="$new_path" 29418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29419 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29420 fi 29421 29422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29424 29425 else 29426 # We're on a unix platform. Hooray! :) 29427 path="$BOOT_JDK" 29428 has_space=`$ECHO "$path" | $GREP " "` 29429 if test "x$has_space" != x; then 29430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29431 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29432 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29433 fi 29434 29435 # Use eval to expand a potential ~ 29436 eval path="$path" 29437 if test ! -f "$path" && test ! -d "$path"; then 29438 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29439 fi 29440 29441 if test -d "$path"; then 29442 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29443 else 29444 dir="`$DIRNAME "$path"`" 29445 base="`$BASENAME "$path"`" 29446 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29447 fi 29448 fi 29449 fi 29450 29451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29452 $as_echo_n "checking for Boot JDK... " >&6; } 29453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29454 $as_echo "$BOOT_JDK" >&6; } 29455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29456 $as_echo_n "checking Boot JDK version... " >&6; } 29457 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29459 $as_echo "$BOOT_JDK_VERSION" >&6; } 29460 fi # end check jdk version 29461 fi # end check javac 29462 fi # end check java 29463 fi # end check boot jdk found 29464 fi 29465 29466 done 29467 fi 29468 29469 29470 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29471 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29472 # Do we have a bin/java? 29473 if test ! -x "$BOOT_JDK/bin/java"; then 29474 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29475 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29476 BOOT_JDK_FOUND=no 29477 else 29478 # Do we have a bin/javac? 29479 if test ! -x "$BOOT_JDK/bin/javac"; then 29480 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29481 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29482 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29483 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29484 BOOT_JDK_FOUND=no 29485 else 29486 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29487 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29488 29489 # Extra M4 quote needed to protect [] in grep expression. 29490 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29491 if test "x$FOUND_CORRECT_VERSION" = x; then 29492 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29493 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29494 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29495 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29496 BOOT_JDK_FOUND=no 29497 else 29498 # We're done! :-) 29499 BOOT_JDK_FOUND=yes 29500 29501 # Only process if variable expands to non-empty 29502 29503 if test "x$BOOT_JDK" != x; then 29504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29505 29506 # Input might be given as Windows format, start by converting to 29507 # unix format. 29508 path="$BOOT_JDK" 29509 new_path=`$CYGPATH -u "$path"` 29510 29511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29514 # "foo.exe" is OK but "foo" is an error. 29515 # 29516 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29517 # It is also a way to make sure we got the proper file name for the real test later on. 29518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29519 if test "x$test_shortpath" = x; then 29520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29521 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29522 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29523 fi 29524 29525 # Call helper function which possibly converts this using DOS-style short mode. 29526 # If so, the updated path is stored in $new_path. 29527 29528 input_path="$new_path" 29529 # Check if we need to convert this using DOS-style short mode. If the path 29530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29531 # take no chances and rewrite it. 29532 # Note: m4 eats our [], so we need to use [ and ] instead. 29533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29534 if test "x$has_forbidden_chars" != x; then 29535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29536 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29537 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29538 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29539 # Going to short mode and back again did indeed matter. Since short mode is 29540 # case insensitive, let's make it lowercase to improve readability. 29541 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29542 # Now convert it back to Unix-style (cygpath) 29543 input_path=`$CYGPATH -u "$shortmode_path"` 29544 new_path="$input_path" 29545 fi 29546 fi 29547 29548 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29549 if test "x$test_cygdrive_prefix" = x; then 29550 # As a simple fix, exclude /usr/bin since it's not a real path. 29551 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29552 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29553 # a path prefixed by /cygdrive for fixpath to work. 29554 new_path="$CYGWIN_ROOT_PATH$input_path" 29555 fi 29556 fi 29557 29558 29559 if test "x$path" != "x$new_path"; then 29560 BOOT_JDK="$new_path" 29561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29562 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29563 fi 29564 29565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29566 29567 path="$BOOT_JDK" 29568 has_colon=`$ECHO $path | $GREP ^.:` 29569 new_path="$path" 29570 if test "x$has_colon" = x; then 29571 # Not in mixed or Windows style, start by that. 29572 new_path=`cmd //c echo $path` 29573 fi 29574 29575 29576 input_path="$new_path" 29577 # Check if we need to convert this using DOS-style short mode. If the path 29578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29579 # take no chances and rewrite it. 29580 # Note: m4 eats our [], so we need to use [ and ] instead. 29581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29582 if test "x$has_forbidden_chars" != x; then 29583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29584 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29585 fi 29586 29587 29588 windows_path="$new_path" 29589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29590 unix_path=`$CYGPATH -u "$windows_path"` 29591 new_path="$unix_path" 29592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29594 new_path="$unix_path" 29595 fi 29596 29597 if test "x$path" != "x$new_path"; then 29598 BOOT_JDK="$new_path" 29599 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29600 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29601 fi 29602 29603 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29604 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29605 29606 else 29607 # We're on a unix platform. Hooray! :) 29608 path="$BOOT_JDK" 29609 has_space=`$ECHO "$path" | $GREP " "` 29610 if test "x$has_space" != x; then 29611 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29612 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29613 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29614 fi 29615 29616 # Use eval to expand a potential ~ 29617 eval path="$path" 29618 if test ! -f "$path" && test ! -d "$path"; then 29619 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29620 fi 29621 29622 if test -d "$path"; then 29623 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29624 else 29625 dir="`$DIRNAME "$path"`" 29626 base="`$BASENAME "$path"`" 29627 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29628 fi 29629 fi 29630 fi 29631 29632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29633 $as_echo_n "checking for Boot JDK... " >&6; } 29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29635 $as_echo "$BOOT_JDK" >&6; } 29636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29637 $as_echo_n "checking Boot JDK version... " >&6; } 29638 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29640 $as_echo "$BOOT_JDK_VERSION" >&6; } 29641 fi # end check jdk version 29642 fi # end check javac 29643 fi # end check java 29644 fi # end check boot jdk found 29645 fi 29646 29647 29648 if test "x$BOOT_JDK_FOUND" = xno; then 29649 # Now execute the test 29650 29651 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 29652 BOOT_JDK_SUFFIX="/Contents/Home" 29653 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 29654 if test "x$ALL_JDKS_FOUND" != x; then 29655 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 29656 29657 if test "x$BOOT_JDK_FOUND" = xno; then 29658 # Now execute the test 29659 29660 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 29661 if test -d "$BOOT_JDK"; then 29662 BOOT_JDK_FOUND=maybe 29663 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 29664 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 29665 fi 29666 29667 29668 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29669 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29670 # Do we have a bin/java? 29671 if test ! -x "$BOOT_JDK/bin/java"; then 29672 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29673 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29674 BOOT_JDK_FOUND=no 29675 else 29676 # Do we have a bin/javac? 29677 if test ! -x "$BOOT_JDK/bin/javac"; then 29678 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29679 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29680 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29681 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29682 BOOT_JDK_FOUND=no 29683 else 29684 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29685 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29686 29687 # Extra M4 quote needed to protect [] in grep expression. 29688 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29689 if test "x$FOUND_CORRECT_VERSION" = x; then 29690 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29691 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29692 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29693 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29694 BOOT_JDK_FOUND=no 29695 else 29696 # We're done! :-) 29697 BOOT_JDK_FOUND=yes 29698 29699 # Only process if variable expands to non-empty 29700 29701 if test "x$BOOT_JDK" != x; then 29702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29703 29704 # Input might be given as Windows format, start by converting to 29705 # unix format. 29706 path="$BOOT_JDK" 29707 new_path=`$CYGPATH -u "$path"` 29708 29709 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29710 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29711 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29712 # "foo.exe" is OK but "foo" is an error. 29713 # 29714 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29715 # It is also a way to make sure we got the proper file name for the real test later on. 29716 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29717 if test "x$test_shortpath" = x; then 29718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29719 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29720 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29721 fi 29722 29723 # Call helper function which possibly converts this using DOS-style short mode. 29724 # If so, the updated path is stored in $new_path. 29725 29726 input_path="$new_path" 29727 # Check if we need to convert this using DOS-style short mode. If the path 29728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29729 # take no chances and rewrite it. 29730 # Note: m4 eats our [], so we need to use [ and ] instead. 29731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29732 if test "x$has_forbidden_chars" != x; then 29733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29734 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29735 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29736 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29737 # Going to short mode and back again did indeed matter. Since short mode is 29738 # case insensitive, let's make it lowercase to improve readability. 29739 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29740 # Now convert it back to Unix-style (cygpath) 29741 input_path=`$CYGPATH -u "$shortmode_path"` 29742 new_path="$input_path" 29743 fi 29744 fi 29745 29746 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29747 if test "x$test_cygdrive_prefix" = x; then 29748 # As a simple fix, exclude /usr/bin since it's not a real path. 29749 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29750 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29751 # a path prefixed by /cygdrive for fixpath to work. 29752 new_path="$CYGWIN_ROOT_PATH$input_path" 29753 fi 29754 fi 29755 29756 29757 if test "x$path" != "x$new_path"; then 29758 BOOT_JDK="$new_path" 29759 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29760 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29761 fi 29762 29763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29764 29765 path="$BOOT_JDK" 29766 has_colon=`$ECHO $path | $GREP ^.:` 29767 new_path="$path" 29768 if test "x$has_colon" = x; then 29769 # Not in mixed or Windows style, start by that. 29770 new_path=`cmd //c echo $path` 29771 fi 29772 29773 29774 input_path="$new_path" 29775 # Check if we need to convert this using DOS-style short mode. If the path 29776 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29777 # take no chances and rewrite it. 29778 # Note: m4 eats our [], so we need to use [ and ] instead. 29779 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29780 if test "x$has_forbidden_chars" != x; then 29781 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29782 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29783 fi 29784 29785 29786 windows_path="$new_path" 29787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29788 unix_path=`$CYGPATH -u "$windows_path"` 29789 new_path="$unix_path" 29790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29792 new_path="$unix_path" 29793 fi 29794 29795 if test "x$path" != "x$new_path"; then 29796 BOOT_JDK="$new_path" 29797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29798 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29799 fi 29800 29801 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29802 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29803 29804 else 29805 # We're on a unix platform. Hooray! :) 29806 path="$BOOT_JDK" 29807 has_space=`$ECHO "$path" | $GREP " "` 29808 if test "x$has_space" != x; then 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29810 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29811 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29812 fi 29813 29814 # Use eval to expand a potential ~ 29815 eval path="$path" 29816 if test ! -f "$path" && test ! -d "$path"; then 29817 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29818 fi 29819 29820 if test -d "$path"; then 29821 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 29822 else 29823 dir="`$DIRNAME "$path"`" 29824 base="`$BASENAME "$path"`" 29825 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 29826 fi 29827 fi 29828 fi 29829 29830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 29831 $as_echo_n "checking for Boot JDK... " >&6; } 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 29833 $as_echo "$BOOT_JDK" >&6; } 29834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 29835 $as_echo_n "checking Boot JDK version... " >&6; } 29836 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 29837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 29838 $as_echo "$BOOT_JDK_VERSION" >&6; } 29839 fi # end check jdk version 29840 fi # end check javac 29841 fi # end check java 29842 fi # end check boot jdk found 29843 fi 29844 29845 done 29846 fi 29847 29848 29849 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 29850 if test "x$BOOT_JDK_FOUND" = xmaybe; then 29851 # Do we have a bin/java? 29852 if test ! -x "$BOOT_JDK/bin/java"; then 29853 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 29854 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 29855 BOOT_JDK_FOUND=no 29856 else 29857 # Do we have a bin/javac? 29858 if test ! -x "$BOOT_JDK/bin/javac"; then 29859 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 29860 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 29861 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 29862 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 29863 BOOT_JDK_FOUND=no 29864 else 29865 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 29866 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 29867 29868 # Extra M4 quote needed to protect [] in grep expression. 29869 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 29870 if test "x$FOUND_CORRECT_VERSION" = x; then 29871 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 29872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 29873 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 29874 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 29875 BOOT_JDK_FOUND=no 29876 else 29877 # We're done! :-) 29878 BOOT_JDK_FOUND=yes 29879 29880 # Only process if variable expands to non-empty 29881 29882 if test "x$BOOT_JDK" != x; then 29883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29884 29885 # Input might be given as Windows format, start by converting to 29886 # unix format. 29887 path="$BOOT_JDK" 29888 new_path=`$CYGPATH -u "$path"` 29889 29890 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29891 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29892 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29893 # "foo.exe" is OK but "foo" is an error. 29894 # 29895 # This test is therefore slightly more accurate than "test -f" to check for file precense. 29896 # It is also a way to make sure we got the proper file name for the real test later on. 29897 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29898 if test "x$test_shortpath" = x; then 29899 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29900 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29901 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 29902 fi 29903 29904 # Call helper function which possibly converts this using DOS-style short mode. 29905 # If so, the updated path is stored in $new_path. 29906 29907 input_path="$new_path" 29908 # Check if we need to convert this using DOS-style short mode. If the path 29909 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29910 # take no chances and rewrite it. 29911 # Note: m4 eats our [], so we need to use [ and ] instead. 29912 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29913 if test "x$has_forbidden_chars" != x; then 29914 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29915 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29916 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29917 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29918 # Going to short mode and back again did indeed matter. Since short mode is 29919 # case insensitive, let's make it lowercase to improve readability. 29920 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29921 # Now convert it back to Unix-style (cygpath) 29922 input_path=`$CYGPATH -u "$shortmode_path"` 29923 new_path="$input_path" 29924 fi 29925 fi 29926 29927 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29928 if test "x$test_cygdrive_prefix" = x; then 29929 # As a simple fix, exclude /usr/bin since it's not a real path. 29930 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 29931 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29932 # a path prefixed by /cygdrive for fixpath to work. 29933 new_path="$CYGWIN_ROOT_PATH$input_path" 29934 fi 29935 fi 29936 29937 29938 if test "x$path" != "x$new_path"; then 29939 BOOT_JDK="$new_path" 29940 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29941 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29942 fi 29943 29944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29945 29946 path="$BOOT_JDK" 29947 has_colon=`$ECHO $path | $GREP ^.:` 29948 new_path="$path" 29949 if test "x$has_colon" = x; then 29950 # Not in mixed or Windows style, start by that. 29951 new_path=`cmd //c echo $path` 29952 fi 29953 29954 29955 input_path="$new_path" 29956 # Check if we need to convert this using DOS-style short mode. If the path 29957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29958 # take no chances and rewrite it. 29959 # Note: m4 eats our [], so we need to use [ and ] instead. 29960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29961 if test "x$has_forbidden_chars" != x; then 29962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29964 fi 29965 29966 29967 windows_path="$new_path" 29968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29969 unix_path=`$CYGPATH -u "$windows_path"` 29970 new_path="$unix_path" 29971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29973 new_path="$unix_path" 29974 fi 29975 29976 if test "x$path" != "x$new_path"; then 29977 BOOT_JDK="$new_path" 29978 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 29979 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 29980 fi 29981 29982 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29983 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29984 29985 else 29986 # We're on a unix platform. Hooray! :) 29987 path="$BOOT_JDK" 29988 has_space=`$ECHO "$path" | $GREP " "` 29989 if test "x$has_space" != x; then 29990 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 29991 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 29992 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 29993 fi 29994 29995 # Use eval to expand a potential ~ 29996 eval path="$path" 29997 if test ! -f "$path" && test ! -d "$path"; then 29998 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 29999 fi 30000 30001 if test -d "$path"; then 30002 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30003 else 30004 dir="`$DIRNAME "$path"`" 30005 base="`$BASENAME "$path"`" 30006 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30007 fi 30008 fi 30009 fi 30010 30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30012 $as_echo_n "checking for Boot JDK... " >&6; } 30013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30014 $as_echo "$BOOT_JDK" >&6; } 30015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30016 $as_echo_n "checking Boot JDK version... " >&6; } 30017 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30019 $as_echo "$BOOT_JDK_VERSION" >&6; } 30020 fi # end check jdk version 30021 fi # end check javac 30022 fi # end check java 30023 fi # end check boot jdk found 30024 fi 30025 30026 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 30027 30028 if test "x$BOOT_JDK_FOUND" = xno; then 30029 # Now execute the test 30030 30031 BOOT_JDK_PREFIX="/usr/lib/jvm" 30032 BOOT_JDK_SUFFIX="" 30033 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 30034 if test "x$ALL_JDKS_FOUND" != x; then 30035 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 30036 30037 if test "x$BOOT_JDK_FOUND" = xno; then 30038 # Now execute the test 30039 30040 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 30041 if test -d "$BOOT_JDK"; then 30042 BOOT_JDK_FOUND=maybe 30043 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 30044 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 30045 fi 30046 30047 30048 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30049 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30050 # Do we have a bin/java? 30051 if test ! -x "$BOOT_JDK/bin/java"; then 30052 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30053 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30054 BOOT_JDK_FOUND=no 30055 else 30056 # Do we have a bin/javac? 30057 if test ! -x "$BOOT_JDK/bin/javac"; then 30058 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30059 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30060 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30061 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30062 BOOT_JDK_FOUND=no 30063 else 30064 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30065 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30066 30067 # Extra M4 quote needed to protect [] in grep expression. 30068 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30069 if test "x$FOUND_CORRECT_VERSION" = x; then 30070 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30071 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30072 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30073 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30074 BOOT_JDK_FOUND=no 30075 else 30076 # We're done! :-) 30077 BOOT_JDK_FOUND=yes 30078 30079 # Only process if variable expands to non-empty 30080 30081 if test "x$BOOT_JDK" != x; then 30082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30083 30084 # Input might be given as Windows format, start by converting to 30085 # unix format. 30086 path="$BOOT_JDK" 30087 new_path=`$CYGPATH -u "$path"` 30088 30089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30092 # "foo.exe" is OK but "foo" is an error. 30093 # 30094 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30095 # It is also a way to make sure we got the proper file name for the real test later on. 30096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30097 if test "x$test_shortpath" = x; then 30098 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30099 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30100 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30101 fi 30102 30103 # Call helper function which possibly converts this using DOS-style short mode. 30104 # If so, the updated path is stored in $new_path. 30105 30106 input_path="$new_path" 30107 # Check if we need to convert this using DOS-style short mode. If the path 30108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30109 # take no chances and rewrite it. 30110 # Note: m4 eats our [], so we need to use [ and ] instead. 30111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30112 if test "x$has_forbidden_chars" != x; then 30113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30117 # Going to short mode and back again did indeed matter. Since short mode is 30118 # case insensitive, let's make it lowercase to improve readability. 30119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30120 # Now convert it back to Unix-style (cygpath) 30121 input_path=`$CYGPATH -u "$shortmode_path"` 30122 new_path="$input_path" 30123 fi 30124 fi 30125 30126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30127 if test "x$test_cygdrive_prefix" = x; then 30128 # As a simple fix, exclude /usr/bin since it's not a real path. 30129 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30131 # a path prefixed by /cygdrive for fixpath to work. 30132 new_path="$CYGWIN_ROOT_PATH$input_path" 30133 fi 30134 fi 30135 30136 30137 if test "x$path" != "x$new_path"; then 30138 BOOT_JDK="$new_path" 30139 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30140 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30141 fi 30142 30143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30144 30145 path="$BOOT_JDK" 30146 has_colon=`$ECHO $path | $GREP ^.:` 30147 new_path="$path" 30148 if test "x$has_colon" = x; then 30149 # Not in mixed or Windows style, start by that. 30150 new_path=`cmd //c echo $path` 30151 fi 30152 30153 30154 input_path="$new_path" 30155 # Check if we need to convert this using DOS-style short mode. If the path 30156 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30157 # take no chances and rewrite it. 30158 # Note: m4 eats our [], so we need to use [ and ] instead. 30159 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30160 if test "x$has_forbidden_chars" != x; then 30161 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30162 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30163 fi 30164 30165 30166 windows_path="$new_path" 30167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30168 unix_path=`$CYGPATH -u "$windows_path"` 30169 new_path="$unix_path" 30170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30172 new_path="$unix_path" 30173 fi 30174 30175 if test "x$path" != "x$new_path"; then 30176 BOOT_JDK="$new_path" 30177 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30178 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30179 fi 30180 30181 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30182 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30183 30184 else 30185 # We're on a unix platform. Hooray! :) 30186 path="$BOOT_JDK" 30187 has_space=`$ECHO "$path" | $GREP " "` 30188 if test "x$has_space" != x; then 30189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30190 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30191 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30192 fi 30193 30194 # Use eval to expand a potential ~ 30195 eval path="$path" 30196 if test ! -f "$path" && test ! -d "$path"; then 30197 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30198 fi 30199 30200 if test -d "$path"; then 30201 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30202 else 30203 dir="`$DIRNAME "$path"`" 30204 base="`$BASENAME "$path"`" 30205 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30206 fi 30207 fi 30208 fi 30209 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30211 $as_echo_n "checking for Boot JDK... " >&6; } 30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30213 $as_echo "$BOOT_JDK" >&6; } 30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30215 $as_echo_n "checking Boot JDK version... " >&6; } 30216 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30218 $as_echo "$BOOT_JDK_VERSION" >&6; } 30219 fi # end check jdk version 30220 fi # end check javac 30221 fi # end check java 30222 fi # end check boot jdk found 30223 fi 30224 30225 done 30226 fi 30227 30228 30229 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30230 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30231 # Do we have a bin/java? 30232 if test ! -x "$BOOT_JDK/bin/java"; then 30233 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30234 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30235 BOOT_JDK_FOUND=no 30236 else 30237 # Do we have a bin/javac? 30238 if test ! -x "$BOOT_JDK/bin/javac"; then 30239 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30240 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30241 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30242 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30243 BOOT_JDK_FOUND=no 30244 else 30245 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30246 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30247 30248 # Extra M4 quote needed to protect [] in grep expression. 30249 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30250 if test "x$FOUND_CORRECT_VERSION" = x; then 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30253 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30254 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30255 BOOT_JDK_FOUND=no 30256 else 30257 # We're done! :-) 30258 BOOT_JDK_FOUND=yes 30259 30260 # Only process if variable expands to non-empty 30261 30262 if test "x$BOOT_JDK" != x; then 30263 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30264 30265 # Input might be given as Windows format, start by converting to 30266 # unix format. 30267 path="$BOOT_JDK" 30268 new_path=`$CYGPATH -u "$path"` 30269 30270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30273 # "foo.exe" is OK but "foo" is an error. 30274 # 30275 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30276 # It is also a way to make sure we got the proper file name for the real test later on. 30277 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30278 if test "x$test_shortpath" = x; then 30279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30280 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30281 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30282 fi 30283 30284 # Call helper function which possibly converts this using DOS-style short mode. 30285 # If so, the updated path is stored in $new_path. 30286 30287 input_path="$new_path" 30288 # Check if we need to convert this using DOS-style short mode. If the path 30289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30290 # take no chances and rewrite it. 30291 # Note: m4 eats our [], so we need to use [ and ] instead. 30292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30293 if test "x$has_forbidden_chars" != x; then 30294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30295 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30296 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30297 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30298 # Going to short mode and back again did indeed matter. Since short mode is 30299 # case insensitive, let's make it lowercase to improve readability. 30300 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30301 # Now convert it back to Unix-style (cygpath) 30302 input_path=`$CYGPATH -u "$shortmode_path"` 30303 new_path="$input_path" 30304 fi 30305 fi 30306 30307 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30308 if test "x$test_cygdrive_prefix" = x; then 30309 # As a simple fix, exclude /usr/bin since it's not a real path. 30310 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30311 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30312 # a path prefixed by /cygdrive for fixpath to work. 30313 new_path="$CYGWIN_ROOT_PATH$input_path" 30314 fi 30315 fi 30316 30317 30318 if test "x$path" != "x$new_path"; then 30319 BOOT_JDK="$new_path" 30320 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30321 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30322 fi 30323 30324 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30325 30326 path="$BOOT_JDK" 30327 has_colon=`$ECHO $path | $GREP ^.:` 30328 new_path="$path" 30329 if test "x$has_colon" = x; then 30330 # Not in mixed or Windows style, start by that. 30331 new_path=`cmd //c echo $path` 30332 fi 30333 30334 30335 input_path="$new_path" 30336 # Check if we need to convert this using DOS-style short mode. If the path 30337 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30338 # take no chances and rewrite it. 30339 # Note: m4 eats our [], so we need to use [ and ] instead. 30340 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30341 if test "x$has_forbidden_chars" != x; then 30342 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30343 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30344 fi 30345 30346 30347 windows_path="$new_path" 30348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30349 unix_path=`$CYGPATH -u "$windows_path"` 30350 new_path="$unix_path" 30351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30353 new_path="$unix_path" 30354 fi 30355 30356 if test "x$path" != "x$new_path"; then 30357 BOOT_JDK="$new_path" 30358 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30359 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30360 fi 30361 30362 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30363 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30364 30365 else 30366 # We're on a unix platform. Hooray! :) 30367 path="$BOOT_JDK" 30368 has_space=`$ECHO "$path" | $GREP " "` 30369 if test "x$has_space" != x; then 30370 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30371 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30372 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30373 fi 30374 30375 # Use eval to expand a potential ~ 30376 eval path="$path" 30377 if test ! -f "$path" && test ! -d "$path"; then 30378 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30379 fi 30380 30381 if test -d "$path"; then 30382 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30383 else 30384 dir="`$DIRNAME "$path"`" 30385 base="`$BASENAME "$path"`" 30386 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30387 fi 30388 fi 30389 fi 30390 30391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30392 $as_echo_n "checking for Boot JDK... " >&6; } 30393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30394 $as_echo "$BOOT_JDK" >&6; } 30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30396 $as_echo_n "checking Boot JDK version... " >&6; } 30397 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30399 $as_echo "$BOOT_JDK_VERSION" >&6; } 30400 fi # end check jdk version 30401 fi # end check javac 30402 fi # end check java 30403 fi # end check boot jdk found 30404 fi 30405 30406 fi 30407 30408 30409 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 30410 if test "x$BOOT_JDK_FOUND" = xmaybe; then 30411 # Do we have a bin/java? 30412 if test ! -x "$BOOT_JDK/bin/java"; then 30413 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 30414 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 30415 BOOT_JDK_FOUND=no 30416 else 30417 # Do we have a bin/javac? 30418 if test ! -x "$BOOT_JDK/bin/javac"; then 30419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 30420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 30421 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 30422 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 30423 BOOT_JDK_FOUND=no 30424 else 30425 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 30426 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 30427 30428 # Extra M4 quote needed to protect [] in grep expression. 30429 FOUND_CORRECT_VERSION=`$ECHO $BOOT_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"|\"9([\.+-].*)?\"'` 30430 if test "x$FOUND_CORRECT_VERSION" = x; then 30431 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 30432 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 30433 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 9 or 10)" >&5 30434 $as_echo "$as_me: (Your Boot JDK must be version 9 or 10)" >&6;} 30435 BOOT_JDK_FOUND=no 30436 else 30437 # We're done! :-) 30438 BOOT_JDK_FOUND=yes 30439 30440 # Only process if variable expands to non-empty 30441 30442 if test "x$BOOT_JDK" != x; then 30443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30444 30445 # Input might be given as Windows format, start by converting to 30446 # unix format. 30447 path="$BOOT_JDK" 30448 new_path=`$CYGPATH -u "$path"` 30449 30450 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30451 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30452 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30453 # "foo.exe" is OK but "foo" is an error. 30454 # 30455 # This test is therefore slightly more accurate than "test -f" to check for file precense. 30456 # It is also a way to make sure we got the proper file name for the real test later on. 30457 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30458 if test "x$test_shortpath" = x; then 30459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30461 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 30462 fi 30463 30464 # Call helper function which possibly converts this using DOS-style short mode. 30465 # If so, the updated path is stored in $new_path. 30466 30467 input_path="$new_path" 30468 # Check if we need to convert this using DOS-style short mode. If the path 30469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30470 # take no chances and rewrite it. 30471 # Note: m4 eats our [], so we need to use [ and ] instead. 30472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30473 if test "x$has_forbidden_chars" != x; then 30474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30478 # Going to short mode and back again did indeed matter. Since short mode is 30479 # case insensitive, let's make it lowercase to improve readability. 30480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30481 # Now convert it back to Unix-style (cygpath) 30482 input_path=`$CYGPATH -u "$shortmode_path"` 30483 new_path="$input_path" 30484 fi 30485 fi 30486 30487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30488 if test "x$test_cygdrive_prefix" = x; then 30489 # As a simple fix, exclude /usr/bin since it's not a real path. 30490 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 30491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30492 # a path prefixed by /cygdrive for fixpath to work. 30493 new_path="$CYGWIN_ROOT_PATH$input_path" 30494 fi 30495 fi 30496 30497 30498 if test "x$path" != "x$new_path"; then 30499 BOOT_JDK="$new_path" 30500 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30502 fi 30503 30504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30505 30506 path="$BOOT_JDK" 30507 has_colon=`$ECHO $path | $GREP ^.:` 30508 new_path="$path" 30509 if test "x$has_colon" = x; then 30510 # Not in mixed or Windows style, start by that. 30511 new_path=`cmd //c echo $path` 30512 fi 30513 30514 30515 input_path="$new_path" 30516 # Check if we need to convert this using DOS-style short mode. If the path 30517 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30518 # take no chances and rewrite it. 30519 # Note: m4 eats our [], so we need to use [ and ] instead. 30520 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30521 if test "x$has_forbidden_chars" != x; then 30522 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30523 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30524 fi 30525 30526 30527 windows_path="$new_path" 30528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30529 unix_path=`$CYGPATH -u "$windows_path"` 30530 new_path="$unix_path" 30531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30532 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30533 new_path="$unix_path" 30534 fi 30535 30536 if test "x$path" != "x$new_path"; then 30537 BOOT_JDK="$new_path" 30538 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 30539 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 30540 fi 30541 30542 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30543 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30544 30545 else 30546 # We're on a unix platform. Hooray! :) 30547 path="$BOOT_JDK" 30548 has_space=`$ECHO "$path" | $GREP " "` 30549 if test "x$has_space" != x; then 30550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 30551 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 30552 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 30553 fi 30554 30555 # Use eval to expand a potential ~ 30556 eval path="$path" 30557 if test ! -f "$path" && test ! -d "$path"; then 30558 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 30559 fi 30560 30561 if test -d "$path"; then 30562 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 30563 else 30564 dir="`$DIRNAME "$path"`" 30565 base="`$BASENAME "$path"`" 30566 BOOT_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 30567 fi 30568 fi 30569 fi 30570 30571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 30572 $as_echo_n "checking for Boot JDK... " >&6; } 30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 30574 $as_echo "$BOOT_JDK" >&6; } 30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 30576 $as_echo_n "checking Boot JDK version... " >&6; } 30577 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 30578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 30579 $as_echo "$BOOT_JDK_VERSION" >&6; } 30580 fi # end check jdk version 30581 fi # end check javac 30582 fi # end check java 30583 fi # end check boot jdk found 30584 fi 30585 30586 30587 # If we haven't found anything yet, we've truly lost. Give up. 30588 if test "x$BOOT_JDK_FOUND" = xno; then 30589 30590 # Print a helpful message on how to acquire the necessary build dependency. 30591 # openjdk is the help tag: freetype, cups, alsa etc 30592 MISSING_DEPENDENCY=openjdk 30593 30594 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30595 cygwin_help $MISSING_DEPENDENCY 30596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30597 msys_help $MISSING_DEPENDENCY 30598 else 30599 PKGHANDLER_COMMAND= 30600 30601 case $PKGHANDLER in 30602 apt-get) 30603 apt_help $MISSING_DEPENDENCY ;; 30604 yum) 30605 yum_help $MISSING_DEPENDENCY ;; 30606 brew) 30607 brew_help $MISSING_DEPENDENCY ;; 30608 port) 30609 port_help $MISSING_DEPENDENCY ;; 30610 pkgutil) 30611 pkgutil_help $MISSING_DEPENDENCY ;; 30612 pkgadd) 30613 pkgadd_help $MISSING_DEPENDENCY ;; 30614 esac 30615 30616 if test "x$PKGHANDLER_COMMAND" != x; then 30617 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 30618 fi 30619 fi 30620 30621 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 30622 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 30623 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitly setting --with-boot-jdk" >&5 30624 $as_echo "$as_me: This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30625 as_fn_error $? "Cannot continue" "$LINENO" 5 30626 fi 30627 30628 30629 30630 # Setup tools from the Boot JDK. 30631 30632 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30633 30634 # Publish this variable in the help. 30635 30636 30637 if [ -z "${JAVA+x}" ]; then 30638 # The variable is not set by user, try to locate tool using the code snippet 30639 30640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30641 $as_echo_n "checking for java in Boot JDK... " >&6; } 30642 JAVA=$BOOT_JDK/bin/java 30643 if test ! -x $JAVA; then 30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30645 $as_echo "not found" >&6; } 30646 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30647 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30648 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30649 fi 30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30651 $as_echo "ok" >&6; } 30652 30653 30654 else 30655 # The variable is set, but is it from the command line or the environment? 30656 30657 # Try to remove the string !JAVA! from our list. 30658 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 30659 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30660 # If it failed, the variable was not from the command line. Ignore it, 30661 # but warn the user (except for BASH, which is always set by the calling BASH). 30662 if test "xJAVA" != xBASH; then 30663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 30664 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 30665 fi 30666 # Try to locate tool using the code snippet 30667 30668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 30669 $as_echo_n "checking for java in Boot JDK... " >&6; } 30670 JAVA=$BOOT_JDK/bin/java 30671 if test ! -x $JAVA; then 30672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30673 $as_echo "not found" >&6; } 30674 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30675 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30676 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 30677 fi 30678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30679 $as_echo "ok" >&6; } 30680 30681 30682 else 30683 # If it succeeded, then it was overridden by the user. We will use it 30684 # for the tool. 30685 30686 # First remove it from the list of overridden variables, so we can test 30687 # for unknown variables in the end. 30688 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30689 30690 # Check if we try to supply an empty value 30691 if test "x$JAVA" = x; then 30692 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVA= (no value)" >&5 30693 $as_echo "$as_me: Setting user supplied tool JAVA= (no value)" >&6;} 30694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30695 $as_echo_n "checking for JAVA... " >&6; } 30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30697 $as_echo "disabled" >&6; } 30698 else 30699 # Check if the provided tool contains a complete path. 30700 tool_specified="$JAVA" 30701 tool_basename="${tool_specified##*/}" 30702 if test "x$tool_basename" = "x$tool_specified"; then 30703 # A command without a complete path is provided, search $PATH. 30704 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 30705 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 30706 # Extract the first word of "$tool_basename", so it can be a program name with args. 30707 set dummy $tool_basename; ac_word=$2 30708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30709 $as_echo_n "checking for $ac_word... " >&6; } 30710 if ${ac_cv_path_JAVA+:} false; then : 30711 $as_echo_n "(cached) " >&6 30712 else 30713 case $JAVA in 30714 [\\/]* | ?:[\\/]*) 30715 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 30716 ;; 30717 *) 30718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30719 for as_dir in $PATH 30720 do 30721 IFS=$as_save_IFS 30722 test -z "$as_dir" && as_dir=. 30723 for ac_exec_ext in '' $ac_executable_extensions; do 30724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30725 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 30726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30727 break 2 30728 fi 30729 done 30730 done 30731 IFS=$as_save_IFS 30732 30733 ;; 30734 esac 30735 fi 30736 JAVA=$ac_cv_path_JAVA 30737 if test -n "$JAVA"; then 30738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 30739 $as_echo "$JAVA" >&6; } 30740 else 30741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30742 $as_echo "no" >&6; } 30743 fi 30744 30745 30746 if test "x$JAVA" = x; then 30747 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30748 fi 30749 else 30750 # Otherwise we believe it is a complete path. Use it as it is. 30751 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 30752 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 30753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 30754 $as_echo_n "checking for JAVA... " >&6; } 30755 if test ! -x "$tool_specified"; then 30756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30757 $as_echo "not found" >&6; } 30758 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 30759 fi 30760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30761 $as_echo "$tool_specified" >&6; } 30762 fi 30763 fi 30764 fi 30765 30766 fi 30767 30768 30769 30770 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30771 30772 # Publish this variable in the help. 30773 30774 30775 if [ -z "${JAVAC+x}" ]; then 30776 # The variable is not set by user, try to locate tool using the code snippet 30777 30778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30779 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30780 JAVAC=$BOOT_JDK/bin/javac 30781 if test ! -x $JAVAC; then 30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30783 $as_echo "not found" >&6; } 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30785 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30786 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30787 fi 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30789 $as_echo "ok" >&6; } 30790 30791 30792 else 30793 # The variable is set, but is it from the command line or the environment? 30794 30795 # Try to remove the string !JAVAC! from our list. 30796 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 30797 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30798 # If it failed, the variable was not from the command line. Ignore it, 30799 # but warn the user (except for BASH, which is always set by the calling BASH). 30800 if test "xJAVAC" != xBASH; then 30801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 30802 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 30803 fi 30804 # Try to locate tool using the code snippet 30805 30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 30807 $as_echo_n "checking for javac in Boot JDK... " >&6; } 30808 JAVAC=$BOOT_JDK/bin/javac 30809 if test ! -x $JAVAC; then 30810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30811 $as_echo "not found" >&6; } 30812 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30813 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30814 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 30815 fi 30816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30817 $as_echo "ok" >&6; } 30818 30819 30820 else 30821 # If it succeeded, then it was overridden by the user. We will use it 30822 # for the tool. 30823 30824 # First remove it from the list of overridden variables, so we can test 30825 # for unknown variables in the end. 30826 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30827 30828 # Check if we try to supply an empty value 30829 if test "x$JAVAC" = x; then 30830 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVAC= (no value)" >&5 30831 $as_echo "$as_me: Setting user supplied tool JAVAC= (no value)" >&6;} 30832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30833 $as_echo_n "checking for JAVAC... " >&6; } 30834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30835 $as_echo "disabled" >&6; } 30836 else 30837 # Check if the provided tool contains a complete path. 30838 tool_specified="$JAVAC" 30839 tool_basename="${tool_specified##*/}" 30840 if test "x$tool_basename" = "x$tool_specified"; then 30841 # A command without a complete path is provided, search $PATH. 30842 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 30843 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 30844 # Extract the first word of "$tool_basename", so it can be a program name with args. 30845 set dummy $tool_basename; ac_word=$2 30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30847 $as_echo_n "checking for $ac_word... " >&6; } 30848 if ${ac_cv_path_JAVAC+:} false; then : 30849 $as_echo_n "(cached) " >&6 30850 else 30851 case $JAVAC in 30852 [\\/]* | ?:[\\/]*) 30853 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 30854 ;; 30855 *) 30856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30857 for as_dir in $PATH 30858 do 30859 IFS=$as_save_IFS 30860 test -z "$as_dir" && as_dir=. 30861 for ac_exec_ext in '' $ac_executable_extensions; do 30862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30863 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 30864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30865 break 2 30866 fi 30867 done 30868 done 30869 IFS=$as_save_IFS 30870 30871 ;; 30872 esac 30873 fi 30874 JAVAC=$ac_cv_path_JAVAC 30875 if test -n "$JAVAC"; then 30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 30877 $as_echo "$JAVAC" >&6; } 30878 else 30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30880 $as_echo "no" >&6; } 30881 fi 30882 30883 30884 if test "x$JAVAC" = x; then 30885 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30886 fi 30887 else 30888 # Otherwise we believe it is a complete path. Use it as it is. 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 30890 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 30891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 30892 $as_echo_n "checking for JAVAC... " >&6; } 30893 if test ! -x "$tool_specified"; then 30894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30895 $as_echo "not found" >&6; } 30896 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 30897 fi 30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30899 $as_echo "$tool_specified" >&6; } 30900 fi 30901 fi 30902 fi 30903 30904 fi 30905 30906 30907 30908 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 30909 30910 # Publish this variable in the help. 30911 30912 30913 if [ -z "${JAVADOC+x}" ]; then 30914 # The variable is not set by user, try to locate tool using the code snippet 30915 30916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 30917 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 30918 JAVADOC=$BOOT_JDK/bin/javadoc 30919 if test ! -x $JAVADOC; then 30920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30921 $as_echo "not found" >&6; } 30922 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30923 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30924 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 30925 fi 30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30927 $as_echo "ok" >&6; } 30928 30929 30930 else 30931 # The variable is set, but is it from the command line or the environment? 30932 30933 # Try to remove the string !JAVADOC! from our list. 30934 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVADOC!/} 30935 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30936 # If it failed, the variable was not from the command line. Ignore it, 30937 # but warn the user (except for BASH, which is always set by the calling BASH). 30938 if test "xJAVADOC" != xBASH; then 30939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&5 30940 $as_echo "$as_me: WARNING: Ignoring value of JAVADOC from the environment. Use command line variables instead." >&2;} 30941 fi 30942 # Try to locate tool using the code snippet 30943 30944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javadoc in Boot JDK" >&5 30945 $as_echo_n "checking for javadoc in Boot JDK... " >&6; } 30946 JAVADOC=$BOOT_JDK/bin/javadoc 30947 if test ! -x $JAVADOC; then 30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30949 $as_echo "not found" >&6; } 30950 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 30951 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 30952 as_fn_error $? "Could not find javadoc in the Boot JDK" "$LINENO" 5 30953 fi 30954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 30955 $as_echo "ok" >&6; } 30956 30957 30958 else 30959 # If it succeeded, then it was overridden by the user. We will use it 30960 # for the tool. 30961 30962 # First remove it from the list of overridden variables, so we can test 30963 # for unknown variables in the end. 30964 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30965 30966 # Check if we try to supply an empty value 30967 if test "x$JAVADOC" = x; then 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAVADOC= (no value)" >&5 30969 $as_echo "$as_me: Setting user supplied tool JAVADOC= (no value)" >&6;} 30970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 30971 $as_echo_n "checking for JAVADOC... " >&6; } 30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 30973 $as_echo "disabled" >&6; } 30974 else 30975 # Check if the provided tool contains a complete path. 30976 tool_specified="$JAVADOC" 30977 tool_basename="${tool_specified##*/}" 30978 if test "x$tool_basename" = "x$tool_specified"; then 30979 # A command without a complete path is provided, search $PATH. 30980 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVADOC=$tool_basename" >&5 30981 $as_echo "$as_me: Will search for user supplied tool JAVADOC=$tool_basename" >&6;} 30982 # Extract the first word of "$tool_basename", so it can be a program name with args. 30983 set dummy $tool_basename; ac_word=$2 30984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30985 $as_echo_n "checking for $ac_word... " >&6; } 30986 if ${ac_cv_path_JAVADOC+:} false; then : 30987 $as_echo_n "(cached) " >&6 30988 else 30989 case $JAVADOC in 30990 [\\/]* | ?:[\\/]*) 30991 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path. 30992 ;; 30993 *) 30994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30995 for as_dir in $PATH 30996 do 30997 IFS=$as_save_IFS 30998 test -z "$as_dir" && as_dir=. 30999 for ac_exec_ext in '' $ac_executable_extensions; do 31000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31001 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext" 31002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31003 break 2 31004 fi 31005 done 31006 done 31007 IFS=$as_save_IFS 31008 31009 ;; 31010 esac 31011 fi 31012 JAVADOC=$ac_cv_path_JAVADOC 31013 if test -n "$JAVADOC"; then 31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5 31015 $as_echo "$JAVADOC" >&6; } 31016 else 31017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31018 $as_echo "no" >&6; } 31019 fi 31020 31021 31022 if test "x$JAVADOC" = x; then 31023 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31024 fi 31025 else 31026 # Otherwise we believe it is a complete path. Use it as it is. 31027 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVADOC=$tool_specified" >&5 31028 $as_echo "$as_me: Will use user supplied tool JAVADOC=$tool_specified" >&6;} 31029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVADOC" >&5 31030 $as_echo_n "checking for JAVADOC... " >&6; } 31031 if test ! -x "$tool_specified"; then 31032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31033 $as_echo "not found" >&6; } 31034 as_fn_error $? "User supplied tool JAVADOC=$tool_specified does not exist or is not executable" "$LINENO" 5 31035 fi 31036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31037 $as_echo "$tool_specified" >&6; } 31038 fi 31039 fi 31040 fi 31041 31042 fi 31043 31044 31045 31046 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31047 31048 # Publish this variable in the help. 31049 31050 31051 if [ -z "${JAR+x}" ]; then 31052 # The variable is not set by user, try to locate tool using the code snippet 31053 31054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31055 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31056 JAR=$BOOT_JDK/bin/jar 31057 if test ! -x $JAR; then 31058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31059 $as_echo "not found" >&6; } 31060 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31061 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31062 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31063 fi 31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31065 $as_echo "ok" >&6; } 31066 31067 31068 else 31069 # The variable is set, but is it from the command line or the environment? 31070 31071 # Try to remove the string !JAR! from our list. 31072 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 31073 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31074 # If it failed, the variable was not from the command line. Ignore it, 31075 # but warn the user (except for BASH, which is always set by the calling BASH). 31076 if test "xJAR" != xBASH; then 31077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 31078 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 31079 fi 31080 # Try to locate tool using the code snippet 31081 31082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 31083 $as_echo_n "checking for jar in Boot JDK... " >&6; } 31084 JAR=$BOOT_JDK/bin/jar 31085 if test ! -x $JAR; then 31086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31087 $as_echo "not found" >&6; } 31088 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31089 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31090 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 31091 fi 31092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31093 $as_echo "ok" >&6; } 31094 31095 31096 else 31097 # If it succeeded, then it was overridden by the user. We will use it 31098 # for the tool. 31099 31100 # First remove it from the list of overridden variables, so we can test 31101 # for unknown variables in the end. 31102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31103 31104 # Check if we try to supply an empty value 31105 if test "x$JAR" = x; then 31106 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JAR= (no value)" >&5 31107 $as_echo "$as_me: Setting user supplied tool JAR= (no value)" >&6;} 31108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31109 $as_echo_n "checking for JAR... " >&6; } 31110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31111 $as_echo "disabled" >&6; } 31112 else 31113 # Check if the provided tool contains a complete path. 31114 tool_specified="$JAR" 31115 tool_basename="${tool_specified##*/}" 31116 if test "x$tool_basename" = "x$tool_specified"; then 31117 # A command without a complete path is provided, search $PATH. 31118 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 31119 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 31120 # Extract the first word of "$tool_basename", so it can be a program name with args. 31121 set dummy $tool_basename; ac_word=$2 31122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31123 $as_echo_n "checking for $ac_word... " >&6; } 31124 if ${ac_cv_path_JAR+:} false; then : 31125 $as_echo_n "(cached) " >&6 31126 else 31127 case $JAR in 31128 [\\/]* | ?:[\\/]*) 31129 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 31130 ;; 31131 *) 31132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31133 for as_dir in $PATH 31134 do 31135 IFS=$as_save_IFS 31136 test -z "$as_dir" && as_dir=. 31137 for ac_exec_ext in '' $ac_executable_extensions; do 31138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31139 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 31140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31141 break 2 31142 fi 31143 done 31144 done 31145 IFS=$as_save_IFS 31146 31147 ;; 31148 esac 31149 fi 31150 JAR=$ac_cv_path_JAR 31151 if test -n "$JAR"; then 31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 31153 $as_echo "$JAR" >&6; } 31154 else 31155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31156 $as_echo "no" >&6; } 31157 fi 31158 31159 31160 if test "x$JAR" = x; then 31161 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31162 fi 31163 else 31164 # Otherwise we believe it is a complete path. Use it as it is. 31165 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 31166 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 31167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 31168 $as_echo_n "checking for JAR... " >&6; } 31169 if test ! -x "$tool_specified"; then 31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31171 $as_echo "not found" >&6; } 31172 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 31173 fi 31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31175 $as_echo "$tool_specified" >&6; } 31176 fi 31177 fi 31178 fi 31179 31180 fi 31181 31182 31183 31184 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 31185 31186 # Publish this variable in the help. 31187 31188 31189 if [ -z "${JARSIGNER+x}" ]; then 31190 # The variable is not set by user, try to locate tool using the code snippet 31191 31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31193 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31194 JARSIGNER=$BOOT_JDK/bin/jarsigner 31195 if test ! -x $JARSIGNER; then 31196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31197 $as_echo "not found" >&6; } 31198 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31199 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31200 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31201 fi 31202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31203 $as_echo "ok" >&6; } 31204 31205 31206 else 31207 # The variable is set, but is it from the command line or the environment? 31208 31209 # Try to remove the string !JARSIGNER! from our list. 31210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 31211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31212 # If it failed, the variable was not from the command line. Ignore it, 31213 # but warn the user (except for BASH, which is always set by the calling BASH). 31214 if test "xJARSIGNER" != xBASH; then 31215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 31216 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 31217 fi 31218 # Try to locate tool using the code snippet 31219 31220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 31221 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 31222 JARSIGNER=$BOOT_JDK/bin/jarsigner 31223 if test ! -x $JARSIGNER; then 31224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31225 $as_echo "not found" >&6; } 31226 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&5 31227 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitly setting --with-boot-jdk" >&6;} 31228 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 31229 fi 31230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 31231 $as_echo "ok" >&6; } 31232 31233 31234 else 31235 # If it succeeded, then it was overridden by the user. We will use it 31236 # for the tool. 31237 31238 # First remove it from the list of overridden variables, so we can test 31239 # for unknown variables in the end. 31240 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31241 31242 # Check if we try to supply an empty value 31243 if test "x$JARSIGNER" = x; then 31244 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JARSIGNER= (no value)" >&5 31245 $as_echo "$as_me: Setting user supplied tool JARSIGNER= (no value)" >&6;} 31246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31247 $as_echo_n "checking for JARSIGNER... " >&6; } 31248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 31249 $as_echo "disabled" >&6; } 31250 else 31251 # Check if the provided tool contains a complete path. 31252 tool_specified="$JARSIGNER" 31253 tool_basename="${tool_specified##*/}" 31254 if test "x$tool_basename" = "x$tool_specified"; then 31255 # A command without a complete path is provided, search $PATH. 31256 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 31257 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 31258 # Extract the first word of "$tool_basename", so it can be a program name with args. 31259 set dummy $tool_basename; ac_word=$2 31260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31261 $as_echo_n "checking for $ac_word... " >&6; } 31262 if ${ac_cv_path_JARSIGNER+:} false; then : 31263 $as_echo_n "(cached) " >&6 31264 else 31265 case $JARSIGNER in 31266 [\\/]* | ?:[\\/]*) 31267 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 31268 ;; 31269 *) 31270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31271 for as_dir in $PATH 31272 do 31273 IFS=$as_save_IFS 31274 test -z "$as_dir" && as_dir=. 31275 for ac_exec_ext in '' $ac_executable_extensions; do 31276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31277 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 31278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31279 break 2 31280 fi 31281 done 31282 done 31283 IFS=$as_save_IFS 31284 31285 ;; 31286 esac 31287 fi 31288 JARSIGNER=$ac_cv_path_JARSIGNER 31289 if test -n "$JARSIGNER"; then 31290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 31291 $as_echo "$JARSIGNER" >&6; } 31292 else 31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31294 $as_echo "no" >&6; } 31295 fi 31296 31297 31298 if test "x$JARSIGNER" = x; then 31299 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31300 fi 31301 else 31302 # Otherwise we believe it is a complete path. Use it as it is. 31303 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 31304 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 31305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 31306 $as_echo_n "checking for JARSIGNER... " >&6; } 31307 if test ! -x "$tool_specified"; then 31308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31309 $as_echo "not found" >&6; } 31310 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 31311 fi 31312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31313 $as_echo "$tool_specified" >&6; } 31314 fi 31315 fi 31316 fi 31317 31318 fi 31319 31320 31321 31322 # Finally, set some other options... 31323 31324 # When compiling code to be executed by the Boot JDK, force compatibility with the 31325 # oldest supported bootjdk. 31326 BOOT_JDK_SOURCETARGET="-source 9 -target 9" 31327 31328 31329 31330 31331 # Check if the boot jdk is 32 or 64 bit 31332 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 31333 BOOT_JDK_BITS="64" 31334 else 31335 BOOT_JDK_BITS="32" 31336 fi 31337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 31338 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 31339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 31340 $as_echo "$BOOT_JDK_BITS" >&6; } 31341 31342 # Try to enable CDS 31343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for local Boot JDK Class Data Sharing (CDS)" >&5 31344 $as_echo_n "checking for local Boot JDK Class Data Sharing (CDS)... " >&6; } 31345 BOOT_JDK_CDS_ARCHIVE=$CONFIGURESUPPORT_OUTPUTDIR/classes.jsa 31346 31347 $ECHO "Check if jvm arg is ok: -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" >&5 31348 $ECHO "Command: $JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version" >&5 31349 OUTPUT=`$JAVA -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE -version 2>&1` 31350 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 31351 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 31352 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 31353 boot_jdk_cds_args="$boot_jdk_cds_args -XX:+UnlockDiagnosticVMOptions -XX:-VerifySharedSpaces -XX:SharedArchiveFile=$BOOT_JDK_CDS_ARCHIVE" 31354 JVM_ARG_OK=true 31355 else 31356 $ECHO "Arg failed:" >&5 31357 $ECHO "$OUTPUT" >&5 31358 JVM_ARG_OK=false 31359 fi 31360 31361 31362 if test "x$boot_jdk_cds_args" != x; then 31363 # Try creating a CDS archive 31364 "$JAVA" $boot_jdk_cds_args -Xshare:dump > /dev/null 2>&1 31365 if test $? -eq 0; then 31366 BOOTJDK_USE_LOCAL_CDS=true 31367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, created" >&5 31368 $as_echo "yes, created" >&6; } 31369 else 31370 # Generation failed, don't use CDS. 31371 BOOTJDK_USE_LOCAL_CDS=false 31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, creation failed" >&5 31373 $as_echo "no, creation failed" >&6; } 31374 fi 31375 else 31376 BOOTJDK_USE_LOCAL_CDS=false 31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, -XX:SharedArchiveFile not supported" >&5 31378 $as_echo "no, -XX:SharedArchiveFile not supported" >&6; } 31379 fi 31380 31381 31382 31383 # Check whether --with-build-jdk was given. 31384 if test "${with_build_jdk+set}" = set; then : 31385 withval=$with_build_jdk; 31386 fi 31387 31388 31389 CREATE_BUILDJDK=false 31390 EXTERNAL_BUILDJDK=false 31391 BUILD_JDK_FOUND="no" 31392 if test "x$with_build_jdk" != "x"; then 31393 31394 if test "x$BUILD_JDK_FOUND" = xno; then 31395 # Execute the test 31396 31397 if test "x$with_build_jdk" != x; then 31398 BUILD_JDK=$with_build_jdk 31399 BUILD_JDK_FOUND=maybe 31400 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Build JDK using configure arguments" >&5 31401 $as_echo "$as_me: Found potential Build JDK using configure arguments" >&6;} 31402 fi 31403 31404 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 31405 if test "x$BUILD_JDK_FOUND" = xmaybe; then 31406 # Do we have a bin/java? 31407 if test ! -x "$BUILD_JDK/bin/java"; then 31408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&5 31409 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/java; ignoring" >&6;} 31410 BUILD_JDK_FOUND=no 31411 elif test ! -x "$BUILD_JDK/bin/jlink"; then 31412 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&5 31413 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jlink; ignoring" >&6;} 31414 BUILD_JDK_FOUND=no 31415 elif test ! -x "$BUILD_JDK/bin/jmod"; then 31416 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&5 31417 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/jmod; ignoring" >&6;} 31418 BUILD_JDK_FOUND=no 31419 elif test ! -x "$BUILD_JDK/bin/javac"; then 31420 # Do we have a bin/javac? 31421 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&5 31422 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK did not contain bin/javac; ignoring" >&6;} 31423 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be a JRE instead of an JDK)" >&5 31424 $as_echo "$as_me: (This might be a JRE instead of an JDK)" >&6;} 31425 BUILD_JDK_FOUND=no 31426 else 31427 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 31428 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $HEAD -n 1` 31429 31430 # Extra M4 quote needed to protect [] in grep expression. 31431 FOUND_CORRECT_VERSION=`echo $BUILD_JDK_VERSION | $EGREP '\"10([\.+-].*)?\"'` 31432 if test "x$FOUND_CORRECT_VERSION" = x; then 31433 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&5 31434 $as_echo "$as_me: Potential Build JDK found at $BUILD_JDK is incorrect JDK version ($BUILD_JDK_VERSION); ignoring" >&6;} 31435 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Build JDK must be version 10)" >&5 31436 $as_echo "$as_me: (Your Build JDK must be version 10)" >&6;} 31437 BUILD_JDK_FOUND=no 31438 else 31439 # We're done! 31440 BUILD_JDK_FOUND=yes 31441 31442 # Only process if variable expands to non-empty 31443 31444 if test "x$BUILD_JDK" != x; then 31445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31446 31447 # Input might be given as Windows format, start by converting to 31448 # unix format. 31449 path="$BUILD_JDK" 31450 new_path=`$CYGPATH -u "$path"` 31451 31452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31455 # "foo.exe" is OK but "foo" is an error. 31456 # 31457 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31458 # It is also a way to make sure we got the proper file name for the real test later on. 31459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31460 if test "x$test_shortpath" = x; then 31461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31462 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31463 as_fn_error $? "Cannot locate the the path of BUILD_JDK" "$LINENO" 5 31464 fi 31465 31466 # Call helper function which possibly converts this using DOS-style short mode. 31467 # If so, the updated path is stored in $new_path. 31468 31469 input_path="$new_path" 31470 # Check if we need to convert this using DOS-style short mode. If the path 31471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31472 # take no chances and rewrite it. 31473 # Note: m4 eats our [], so we need to use [ and ] instead. 31474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31475 if test "x$has_forbidden_chars" != x; then 31476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31480 # Going to short mode and back again did indeed matter. Since short mode is 31481 # case insensitive, let's make it lowercase to improve readability. 31482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31483 # Now convert it back to Unix-style (cygpath) 31484 input_path=`$CYGPATH -u "$shortmode_path"` 31485 new_path="$input_path" 31486 fi 31487 fi 31488 31489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31490 if test "x$test_cygdrive_prefix" = x; then 31491 # As a simple fix, exclude /usr/bin since it's not a real path. 31492 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31494 # a path prefixed by /cygdrive for fixpath to work. 31495 new_path="$CYGWIN_ROOT_PATH$input_path" 31496 fi 31497 fi 31498 31499 31500 if test "x$path" != "x$new_path"; then 31501 BUILD_JDK="$new_path" 31502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31503 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31504 fi 31505 31506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31507 31508 path="$BUILD_JDK" 31509 has_colon=`$ECHO $path | $GREP ^.:` 31510 new_path="$path" 31511 if test "x$has_colon" = x; then 31512 # Not in mixed or Windows style, start by that. 31513 new_path=`cmd //c echo $path` 31514 fi 31515 31516 31517 input_path="$new_path" 31518 # Check if we need to convert this using DOS-style short mode. If the path 31519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31520 # take no chances and rewrite it. 31521 # Note: m4 eats our [], so we need to use [ and ] instead. 31522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31523 if test "x$has_forbidden_chars" != x; then 31524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31526 fi 31527 31528 31529 windows_path="$new_path" 31530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31531 unix_path=`$CYGPATH -u "$windows_path"` 31532 new_path="$unix_path" 31533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31535 new_path="$unix_path" 31536 fi 31537 31538 if test "x$path" != "x$new_path"; then 31539 BUILD_JDK="$new_path" 31540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_JDK to \"$new_path\"" >&5 31541 $as_echo "$as_me: Rewriting BUILD_JDK to \"$new_path\"" >&6;} 31542 fi 31543 31544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31546 31547 else 31548 # We're on a unix platform. Hooray! :) 31549 path="$BUILD_JDK" 31550 has_space=`$ECHO "$path" | $GREP " "` 31551 if test "x$has_space" != x; then 31552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&5 31553 $as_echo "$as_me: The path of BUILD_JDK, which resolves as \"$path\", is invalid." >&6;} 31554 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31555 fi 31556 31557 # Use eval to expand a potential ~ 31558 eval path="$path" 31559 if test ! -f "$path" && test ! -d "$path"; then 31560 as_fn_error $? "The path of BUILD_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 31561 fi 31562 31563 if test -d "$path"; then 31564 BUILD_JDK="`cd "$path"; $THEPWDCMD -L`" 31565 else 31566 dir="`$DIRNAME "$path"`" 31567 base="`$BASENAME "$path"`" 31568 BUILD_JDK="`cd "$dir"; $THEPWDCMD -L`/$base" 31569 fi 31570 fi 31571 fi 31572 31573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31574 $as_echo_n "checking for Build JDK... " >&6; } 31575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK" >&5 31576 $as_echo "$BUILD_JDK" >&6; } 31577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Build JDK version" >&5 31578 $as_echo_n "checking Build JDK version... " >&6; } 31579 BUILD_JDK_VERSION=`"$BUILD_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_JDK_VERSION" >&5 31581 $as_echo "$BUILD_JDK_VERSION" >&6; } 31582 fi # end check jdk version 31583 fi # end check java 31584 fi # end check build jdk found 31585 fi 31586 31587 EXTERNAL_BUILDJDK=true 31588 else 31589 if test "x$COMPILE_TYPE" = "xcross"; then 31590 BUILD_JDK="\$(BUILDJDK_OUTPUTDIR)/jdk" 31591 BUILD_JDK_FOUND=yes 31592 CREATE_BUILDJDK=true 31593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31594 $as_echo_n "checking for Build JDK... " >&6; } 31595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will build it for the host platform" >&5 31596 $as_echo "yes, will build it for the host platform" >&6; } 31597 else 31598 BUILD_JDK="\$(JDK_OUTPUTDIR)" 31599 BUILD_JDK_FOUND=yes 31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31601 $as_echo_n "checking for Build JDK... " >&6; } 31602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will use output dir" >&5 31603 $as_echo "yes, will use output dir" >&6; } 31604 fi 31605 fi 31606 31607 JMOD="$BUILD_JDK/bin/jmod" 31608 JLINK="$BUILD_JDK/bin/jlink" 31609 31610 31611 31612 if test "x$BUILD_JDK_FOUND" != "xyes"; then 31613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Build JDK" >&5 31614 $as_echo_n "checking for Build JDK... " >&6; } 31615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31616 $as_echo "no" >&6; } 31617 as_fn_error $? "Could not find a suitable Build JDK" "$LINENO" 5 31618 fi 31619 31620 31621 31622 31623 31624 31625 ############################################################################### 31626 # 31627 # Configure the sources to use. We can add or override individual directories. 31628 # 31629 ############################################################################### 31630 31631 31632 OUTPUTDIR="$OUTPUTDIR" 31633 31634 JDK_OUTPUTDIR="$OUTPUTDIR/jdk" 31635 31636 # Where are the sources. 31637 31638 31639 31640 31641 # Check whether --with-import-modules was given. 31642 if test "${with_import_modules+set}" = set; then : 31643 withval=$with_import_modules; 31644 fi 31645 31646 31647 if test "x$with_import_modules" != x \ 31648 && test "x$with_import_modules" != "xno"; then 31649 if test -d "$with_import_modules"; then 31650 IMPORT_MODULES_TOPDIR="$with_import_modules" 31651 31652 # Only process if variable expands to non-empty 31653 31654 if test "x$IMPORT_MODULES_TOPDIR" != x; then 31655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31656 31657 # Input might be given as Windows format, start by converting to 31658 # unix format. 31659 path="$IMPORT_MODULES_TOPDIR" 31660 new_path=`$CYGPATH -u "$path"` 31661 31662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31665 # "foo.exe" is OK but "foo" is an error. 31666 # 31667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 31668 # It is also a way to make sure we got the proper file name for the real test later on. 31669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31670 if test "x$test_shortpath" = x; then 31671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31672 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31673 as_fn_error $? "Cannot locate the the path of IMPORT_MODULES_TOPDIR" "$LINENO" 5 31674 fi 31675 31676 # Call helper function which possibly converts this using DOS-style short mode. 31677 # If so, the updated path is stored in $new_path. 31678 31679 input_path="$new_path" 31680 # Check if we need to convert this using DOS-style short mode. If the path 31681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31682 # take no chances and rewrite it. 31683 # Note: m4 eats our [], so we need to use [ and ] instead. 31684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31685 if test "x$has_forbidden_chars" != x; then 31686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31687 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31688 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31689 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31690 # Going to short mode and back again did indeed matter. Since short mode is 31691 # case insensitive, let's make it lowercase to improve readability. 31692 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31693 # Now convert it back to Unix-style (cygpath) 31694 input_path=`$CYGPATH -u "$shortmode_path"` 31695 new_path="$input_path" 31696 fi 31697 fi 31698 31699 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31700 if test "x$test_cygdrive_prefix" = x; then 31701 # As a simple fix, exclude /usr/bin since it's not a real path. 31702 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 31703 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31704 # a path prefixed by /cygdrive for fixpath to work. 31705 new_path="$CYGWIN_ROOT_PATH$input_path" 31706 fi 31707 fi 31708 31709 31710 if test "x$path" != "x$new_path"; then 31711 IMPORT_MODULES_TOPDIR="$new_path" 31712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31713 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31714 fi 31715 31716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31717 31718 path="$IMPORT_MODULES_TOPDIR" 31719 has_colon=`$ECHO $path | $GREP ^.:` 31720 new_path="$path" 31721 if test "x$has_colon" = x; then 31722 # Not in mixed or Windows style, start by that. 31723 new_path=`cmd //c echo $path` 31724 fi 31725 31726 31727 input_path="$new_path" 31728 # Check if we need to convert this using DOS-style short mode. If the path 31729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31730 # take no chances and rewrite it. 31731 # Note: m4 eats our [], so we need to use [ and ] instead. 31732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31733 if test "x$has_forbidden_chars" != x; then 31734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31736 fi 31737 31738 31739 windows_path="$new_path" 31740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31741 unix_path=`$CYGPATH -u "$windows_path"` 31742 new_path="$unix_path" 31743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31745 new_path="$unix_path" 31746 fi 31747 31748 if test "x$path" != "x$new_path"; then 31749 IMPORT_MODULES_TOPDIR="$new_path" 31750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&5 31751 $as_echo "$as_me: Rewriting IMPORT_MODULES_TOPDIR to \"$new_path\"" >&6;} 31752 fi 31753 31754 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31755 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31756 31757 else 31758 # We're on a unix platform. Hooray! :) 31759 path="$IMPORT_MODULES_TOPDIR" 31760 has_space=`$ECHO "$path" | $GREP " "` 31761 if test "x$has_space" != x; then 31762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&5 31763 $as_echo "$as_me: The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is invalid." >&6;} 31764 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 31765 fi 31766 31767 # Use eval to expand a potential ~ 31768 eval path="$path" 31769 if test ! -f "$path" && test ! -d "$path"; then 31770 as_fn_error $? "The path of IMPORT_MODULES_TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 31771 fi 31772 31773 if test -d "$path"; then 31774 IMPORT_MODULES_TOPDIR="`cd "$path"; $THEPWDCMD -L`" 31775 else 31776 dir="`$DIRNAME "$path"`" 31777 base="`$BASENAME "$path"`" 31778 IMPORT_MODULES_TOPDIR="`cd "$dir"; $THEPWDCMD -L`/$base" 31779 fi 31780 fi 31781 fi 31782 31783 elif test -e "$with_import_modules"; then 31784 IMPORT_MODULES_TOPDIR="$CONFIGURESUPPORT_OUTPUTDIR/import-modules" 31785 $RM -rf "$IMPORT_MODULES_TOPDIR" 31786 $MKDIR -p "$IMPORT_MODULES_TOPDIR" 31787 if ! $UNZIP -q "$with_import_modules" -d "$IMPORT_MODULES_TOPDIR"; then 31788 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31789 fi 31790 else 31791 as_fn_error $? "--with-import-modules=\"$with_import_modules\" must point to a dir or a zip file" "$LINENO" 5 31792 fi 31793 fi 31794 31795 if test -d "$IMPORT_MODULES_TOPDIR/modules"; then 31796 IMPORT_MODULES_CLASSES="$IMPORT_MODULES_TOPDIR/modules" 31797 fi 31798 if test -d "$IMPORT_MODULES_TOPDIR/modules_cmds"; then 31799 IMPORT_MODULES_CMDS="$IMPORT_MODULES_TOPDIR/modules_cmds" 31800 fi 31801 if test -d "$IMPORT_MODULES_TOPDIR/modules_libs"; then 31802 IMPORT_MODULES_LIBS="$IMPORT_MODULES_TOPDIR/modules_libs" 31803 fi 31804 if test -d "$IMPORT_MODULES_TOPDIR/modules_conf"; then 31805 IMPORT_MODULES_CONF="$IMPORT_MODULES_TOPDIR/modules_conf" 31806 fi 31807 if test -d "$IMPORT_MODULES_TOPDIR/modules_legal"; then 31808 IMPORT_MODULES_LEGAL="$IMPORT_MODULES_TOPDIR/modules_legal" 31809 fi 31810 if test -d "$IMPORT_MODULES_TOPDIR/modules_man"; then 31811 IMPORT_MODULES_MAN="$IMPORT_MODULES_TOPDIR/modules_man" 31812 fi 31813 if test -d "$IMPORT_MODULES_TOPDIR/modules_src"; then 31814 IMPORT_MODULES_SRC="$IMPORT_MODULES_TOPDIR/modules_src" 31815 fi 31816 if test -d "$IMPORT_MODULES_TOPDIR/make"; then 31817 IMPORT_MODULES_MAKE="$IMPORT_MODULES_TOPDIR/make" 31818 fi 31819 31820 31821 31822 31823 31824 31825 31826 31827 31828 31829 31830 ############################################################################### 31831 # 31832 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 31833 # native code. 31834 # 31835 ############################################################################### 31836 31837 # See if we are doing a complete static build or not 31838 31839 # Check whether --enable-static-build was given. 31840 if test "${enable_static_build+set}" = set; then : 31841 enableval=$enable_static_build; 31842 fi 31843 31844 STATIC_BUILD=false 31845 if test "x$enable_static_build" = "xyes"; then 31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31847 $as_echo_n "checking if static build is enabled... " >&6; } 31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31849 $as_echo "yes" >&6; } 31850 if test "x$OPENJDK_TARGET_OS" != "xmacosx"; then 31851 as_fn_error $? "--enable-static-build is only supported for macosx builds" "$LINENO" 5 31852 fi 31853 STATIC_BUILD_CFLAGS="-DSTATIC_BUILD=1" 31854 CFLAGS_JDKLIB_EXTRA="$CFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31855 CXXFLAGS_JDKLIB_EXTRA="$CXXFLAGS_JDKLIB_EXTRA $STATIC_BUILD_CFLAGS" 31856 STATIC_BUILD=true 31857 elif test "x$enable_static_build" = "xno"; then 31858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static build is enabled" >&5 31859 $as_echo_n "checking if static build is enabled... " >&6; } 31860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31861 $as_echo "no" >&6; } 31862 elif test "x$enable_static_build" != "x"; then 31863 as_fn_error $? "--enable-static-build can only be assigned \"yes\" or \"no\"" "$LINENO" 5 31864 fi 31865 31866 31867 31868 31869 # First determine the toolchain type (compiler family) 31870 31871 31872 # Check whether --with-toolchain-type was given. 31873 if test "${with_toolchain_type+set}" = set; then : 31874 withval=$with_toolchain_type; 31875 fi 31876 31877 31878 # Use indirect variable referencing 31879 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 31880 VALID_TOOLCHAINS=${!toolchain_var_name} 31881 31882 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31883 if test -n "$XCODEBUILD"; then 31884 # On Mac OS X, default toolchain to clang after Xcode 5 31885 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 31886 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 31887 if test $? -ne 0; then 31888 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 31889 fi 31890 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 31891 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 31892 $CUT -f 1 -d .` 31893 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 31894 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 31895 if test $XCODE_MAJOR_VERSION -ge 5; then 31896 DEFAULT_TOOLCHAIN="clang" 31897 else 31898 DEFAULT_TOOLCHAIN="gcc" 31899 fi 31900 else 31901 # If Xcode is not installed, but the command line tools are 31902 # then we can't run xcodebuild. On these systems we should 31903 # default to clang 31904 DEFAULT_TOOLCHAIN="clang" 31905 fi 31906 else 31907 # First toolchain type in the list is the default 31908 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 31909 fi 31910 31911 if test "x$with_toolchain_type" = xlist; then 31912 # List all toolchains 31913 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 31914 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 31915 for toolchain in $VALID_TOOLCHAINS; do 31916 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 31917 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31918 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 31919 done 31920 31921 exit 0 31922 elif test "x$with_toolchain_type" != x; then 31923 # User override; check that it is valid 31924 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 31925 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 31926 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 31927 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 31928 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 31929 as_fn_error $? "Cannot continue." "$LINENO" 5 31930 fi 31931 TOOLCHAIN_TYPE=$with_toolchain_type 31932 else 31933 # No flag given, use default 31934 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 31935 fi 31936 31937 31938 TOOLCHAIN_CC_BINARY_clang="clang" 31939 TOOLCHAIN_CC_BINARY_gcc="gcc" 31940 TOOLCHAIN_CC_BINARY_microsoft="cl" 31941 TOOLCHAIN_CC_BINARY_solstudio="cc" 31942 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 31943 31944 TOOLCHAIN_CXX_BINARY_clang="clang++" 31945 TOOLCHAIN_CXX_BINARY_gcc="g++" 31946 TOOLCHAIN_CXX_BINARY_microsoft="cl" 31947 TOOLCHAIN_CXX_BINARY_solstudio="CC" 31948 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 31949 31950 # Use indirect variable referencing 31951 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 31952 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 31953 toolchain_var_name=TOOLCHAIN_MINIMUM_VERSION_$TOOLCHAIN_TYPE 31954 TOOLCHAIN_MINIMUM_VERSION=${!toolchain_var_name} 31955 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 31956 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 31957 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 31958 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 31959 31960 31961 # Define filename patterns 31962 if test "x$OPENJDK_TARGET_OS" = xwindows; then 31963 LIBRARY_PREFIX= 31964 SHARED_LIBRARY_SUFFIX='.dll' 31965 STATIC_LIBRARY_SUFFIX='.lib' 31966 SHARED_LIBRARY='$1.dll' 31967 STATIC_LIBRARY='$1.lib' 31968 OBJ_SUFFIX='.obj' 31969 EXE_SUFFIX='.exe' 31970 else 31971 LIBRARY_PREFIX=lib 31972 SHARED_LIBRARY_SUFFIX='.so' 31973 STATIC_LIBRARY_SUFFIX='.a' 31974 SHARED_LIBRARY='lib$1.so' 31975 STATIC_LIBRARY='lib$1.a' 31976 OBJ_SUFFIX='.o' 31977 EXE_SUFFIX='' 31978 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 31979 # For full static builds, we're overloading the SHARED_LIBRARY 31980 # variables in order to limit the amount of changes required. 31981 # It would be better to remove SHARED and just use LIBRARY and 31982 # LIBRARY_SUFFIX for libraries that can be built either 31983 # shared or static and use STATIC_* for libraries that are 31984 # always built statically. 31985 if test "x$STATIC_BUILD" = xtrue; then 31986 SHARED_LIBRARY='lib$1.a' 31987 SHARED_LIBRARY_SUFFIX='.a' 31988 else 31989 SHARED_LIBRARY='lib$1.dylib' 31990 SHARED_LIBRARY_SUFFIX='.dylib' 31991 fi 31992 fi 31993 fi 31994 31995 31996 31997 31998 31999 32000 32001 32002 32003 32004 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 32005 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 32006 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 32007 else 32008 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 32009 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 32010 fi 32011 32012 32013 # User supplied flags should be used when configure detects compilers 32014 32015 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 32016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 32017 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 32018 fi 32019 32020 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 32021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 32022 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 32023 fi 32024 32025 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 32026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 32027 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 32028 fi 32029 32030 32031 # Check whether --with-extra-cflags was given. 32032 if test "${with_extra_cflags+set}" = set; then : 32033 withval=$with_extra_cflags; 32034 fi 32035 32036 32037 32038 # Check whether --with-extra-cxxflags was given. 32039 if test "${with_extra_cxxflags+set}" = set; then : 32040 withval=$with_extra_cxxflags; 32041 fi 32042 32043 32044 32045 # Check whether --with-extra-ldflags was given. 32046 if test "${with_extra_ldflags+set}" = set; then : 32047 withval=$with_extra_ldflags; 32048 fi 32049 32050 32051 EXTRA_CFLAGS="$with_extra_cflags" 32052 EXTRA_CXXFLAGS="$with_extra_cxxflags" 32053 EXTRA_LDFLAGS="$with_extra_ldflags" 32054 32055 32056 32057 32058 32059 # The global CFLAGS and LDLAGS variables are used by configure tests and 32060 # should include the extra parameters 32061 CFLAGS="$EXTRA_CFLAGS" 32062 CXXFLAGS="$EXTRA_CXXFLAGS" 32063 LDFLAGS="$EXTRA_LDFLAGS" 32064 CPPFLAGS="" 32065 32066 # The sysroot cflags are needed for configure to be able to run the compilers 32067 32068 if test "x$SYSROOT" != "x"; then 32069 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 32070 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32071 # Solaris Studio does not have a concept of sysroot. Instead we must 32072 # make sure the default include and lib dirs are appended to each 32073 # compile and link command line. Must also add -I-xbuiltin to enable 32074 # inlining of system functions and intrinsics. 32075 SYSROOT_CFLAGS="-I-xbuiltin -I$SYSROOT/usr/include" 32076 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 32077 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 32078 fi 32079 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 32080 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 32081 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 32082 elif test "x$TOOLCHAIN_TYPE" = xclang; then 32083 SYSROOT_CFLAGS="-isysroot $SYSROOT" 32084 SYSROOT_LDFLAGS="-isysroot $SYSROOT" 32085 fi 32086 # The global CFLAGS and LDFLAGS variables need these for configure to function 32087 CFLAGS="$CFLAGS $SYSROOT_CFLAGS" 32088 CPPFLAGS="$CPPFLAGS $SYSROOT_CFLAGS" 32089 CXXFLAGS="$CXXFLAGS $SYSROOT_CFLAGS" 32090 LDFLAGS="$LDFLAGS $SYSROOT_LDFLAGS" 32091 fi 32092 32093 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32094 # We also need -iframework<path>/System/Library/Frameworks 32095 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32096 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -iframework $SYSROOT/System/Library/Frameworks" 32097 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 32098 # set this here so it doesn't have to be peppered throughout the forest 32099 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32100 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F $SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 32101 fi 32102 32103 32104 32105 32106 32107 # Then detect the actual binaries needed 32108 32109 # FIXME: Is this needed? 32110 ac_ext=cpp 32111 ac_cpp='$CXXCPP $CPPFLAGS' 32112 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32113 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32114 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32115 32116 32117 # Store the CFLAGS etc passed to the configure script. 32118 ORG_CFLAGS="$CFLAGS" 32119 ORG_CXXFLAGS="$CXXFLAGS" 32120 32121 # autoconf magic only relies on PATH, so update it if tools dir is specified 32122 OLD_PATH="$PATH" 32123 32124 # On Windows, we need to detect the visual studio installation first. 32125 # This will change the PATH, but we need to keep that new PATH even 32126 # after toolchain detection is done, since the compiler (on x86) uses 32127 # it for DLL resolution in runtime. 32128 if test "x$OPENJDK_BUILD_OS" = "xwindows" \ 32129 && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 32130 32131 # Store path to cygwin link.exe to help excluding it when searching for 32132 # VS linker. This must be done before changing the PATH when looking for VS. 32133 # Extract the first word of "link", so it can be a program name with args. 32134 set dummy link; ac_word=$2 32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32136 $as_echo_n "checking for $ac_word... " >&6; } 32137 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 32138 $as_echo_n "(cached) " >&6 32139 else 32140 case $CYGWIN_LINK in 32141 [\\/]* | ?:[\\/]*) 32142 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 32143 ;; 32144 *) 32145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32146 for as_dir in $PATH 32147 do 32148 IFS=$as_save_IFS 32149 test -z "$as_dir" && as_dir=. 32150 for ac_exec_ext in '' $ac_executable_extensions; do 32151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32152 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 32153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32154 break 2 32155 fi 32156 done 32157 done 32158 IFS=$as_save_IFS 32159 32160 ;; 32161 esac 32162 fi 32163 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 32164 if test -n "$CYGWIN_LINK"; then 32165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 32166 $as_echo "$CYGWIN_LINK" >&6; } 32167 else 32168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32169 $as_echo "no" >&6; } 32170 fi 32171 32172 32173 if test "x$CYGWIN_LINK" != x; then 32174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 32175 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 32176 "$CYGWIN_LINK" --version > /dev/null 32177 if test $? -eq 0 ; then 32178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32179 $as_echo "yes" >&6; } 32180 else 32181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32182 $as_echo "no" >&6; } 32183 # This might be the VS linker. Don't exclude it later on. 32184 CYGWIN_LINK="" 32185 fi 32186 fi 32187 32188 # First-hand choice is to locate and run the vsvars bat file. 32189 32190 32191 # Check whether --with-toolchain-version was given. 32192 if test "${with_toolchain_version+set}" = set; then : 32193 withval=$with_toolchain_version; 32194 fi 32195 32196 32197 if test "x$with_toolchain_version" = xlist; then 32198 # List all toolchains 32199 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 32200 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 32201 for version in $VALID_VS_VERSIONS; do 32202 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 32203 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 32204 done 32205 32206 exit 0 32207 elif test "x$DEVKIT_VS_VERSION" != x; then 32208 VS_VERSION=$DEVKIT_VS_VERSION 32209 TOOLCHAIN_VERSION=$VS_VERSION 32210 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32211 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32212 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32213 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32214 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32215 VS_PATH="$TOOLCHAIN_PATH:$PATH" 32216 32217 # Convert DEVKIT_VS_INCLUDE into windows style VS_INCLUDE so that it 32218 # can still be exported as INCLUDE for compiler invocations without 32219 # SYSROOT_CFLAGS 32220 OLDIFS="$IFS" 32221 IFS=";" 32222 for i in $DEVKIT_VS_INCLUDE; do 32223 ipath=$i 32224 32225 unix_path="$ipath" 32226 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32227 windows_path=`$CYGPATH -m "$unix_path"` 32228 ipath="$windows_path" 32229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32230 windows_path=`cmd //c echo $unix_path` 32231 ipath="$windows_path" 32232 fi 32233 32234 VS_INCLUDE="$VS_INCLUDE;$ipath" 32235 done 32236 # Convert DEVKIT_VS_LIB into VS_LIB so that it can still be exported 32237 # as LIB for compiler invocations without SYSROOT_LDFLAGS 32238 for i in $DEVKIT_VS_LIB; do 32239 libpath=$i 32240 32241 unix_path="$libpath" 32242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32243 windows_path=`$CYGPATH -m "$unix_path"` 32244 libpath="$windows_path" 32245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32246 windows_path=`cmd //c echo $unix_path` 32247 libpath="$windows_path" 32248 fi 32249 32250 VS_LIB="$VS_LIB;$libpath" 32251 done 32252 IFS="$OLDIFS" 32253 32254 { $as_echo "$as_me:${as_lineno-$LINENO}: Found devkit $VS_DESCRIPTION" >&5 32255 $as_echo "$as_me: Found devkit $VS_DESCRIPTION" >&6;} 32256 32257 elif test "x$with_toolchain_version" != x; then 32258 # User override; check that it is valid 32259 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 32260 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 32261 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 32262 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 32263 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 32264 as_fn_error $? "Cannot continue." "$LINENO" 5 32265 fi 32266 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 32267 else 32268 # No flag given, use default 32269 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 32270 fi 32271 32272 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 32273 32274 VS_VERSION="$VS_VERSION" 32275 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 32276 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 32277 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 32278 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 32279 32280 # When using --with-tools-dir, assume it points to the correct and default 32281 # version of Visual Studio or that --with-toolchain-version was also set. 32282 if test "x$with_tools_dir" != x; then 32283 32284 if test "x$VS_ENV_CMD" = x; then 32285 VS_VERSION="${VS_VERSION}" 32286 VS_BASE="$with_tools_dir/../.." 32287 METHOD="--with-tools-dir" 32288 32289 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32290 VCVARSFILE="vc/bin/vcvars32.bat" 32291 else 32292 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32293 fi 32294 32295 32296 windows_path="$VS_BASE" 32297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32298 unix_path=`$CYGPATH -u "$windows_path"` 32299 VS_BASE="$unix_path" 32300 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32301 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32302 VS_BASE="$unix_path" 32303 fi 32304 32305 if test -d "$VS_BASE"; then 32306 if test -f "$VS_BASE/$VCVARSFILE"; then 32307 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32308 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32309 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32310 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32311 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32312 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32313 else 32314 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32315 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32316 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32317 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32318 fi 32319 fi 32320 fi 32321 32322 32323 if test "x$VS_ENV_CMD" = x; then 32324 VS_VERSION="${VS_VERSION}" 32325 VS_BASE="$with_tools_dir/../../.." 32326 METHOD="--with-tools-dir" 32327 32328 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32329 VCVARSFILE="vc/bin/vcvars32.bat" 32330 else 32331 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32332 fi 32333 32334 32335 windows_path="$VS_BASE" 32336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32337 unix_path=`$CYGPATH -u "$windows_path"` 32338 VS_BASE="$unix_path" 32339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32340 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32341 VS_BASE="$unix_path" 32342 fi 32343 32344 if test -d "$VS_BASE"; then 32345 if test -f "$VS_BASE/$VCVARSFILE"; then 32346 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32347 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32348 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32349 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32350 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32351 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32352 else 32353 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32354 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32355 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32356 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32357 fi 32358 fi 32359 fi 32360 32361 if test "x$VS_ENV_CMD" = x; then 32362 # Having specified an argument which is incorrect will produce an instant failure; 32363 # we should not go on looking 32364 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 32365 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 32366 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 32367 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 32368 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 32369 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 32370 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 32371 fi 32372 fi 32373 32374 VS_ENV_CMD="" 32375 VS_ENV_ARGS="" 32376 32377 if test "x$VS_COMNTOOLS" != x; then 32378 32379 if test "x$VS_ENV_CMD" = x; then 32380 VS_VERSION="${VS_VERSION}" 32381 VS_BASE="$VS_COMNTOOLS/../.." 32382 METHOD="$VS_COMNTOOLS_VAR variable" 32383 32384 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32385 VCVARSFILE="vc/bin/vcvars32.bat" 32386 else 32387 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32388 fi 32389 32390 32391 windows_path="$VS_BASE" 32392 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32393 unix_path=`$CYGPATH -u "$windows_path"` 32394 VS_BASE="$unix_path" 32395 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32396 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32397 VS_BASE="$unix_path" 32398 fi 32399 32400 if test -d "$VS_BASE"; then 32401 if test -f "$VS_BASE/$VCVARSFILE"; then 32402 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32403 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32404 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32405 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32406 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32407 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32408 else 32409 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32410 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32411 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32412 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32413 fi 32414 fi 32415 fi 32416 32417 fi 32418 if test "x$PROGRAMFILES" != x; then 32419 32420 if test "x$VS_ENV_CMD" = x; then 32421 VS_VERSION="${VS_VERSION}" 32422 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 32423 METHOD="well-known name" 32424 32425 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32426 VCVARSFILE="vc/bin/vcvars32.bat" 32427 else 32428 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32429 fi 32430 32431 32432 windows_path="$VS_BASE" 32433 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32434 unix_path=`$CYGPATH -u "$windows_path"` 32435 VS_BASE="$unix_path" 32436 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32437 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32438 VS_BASE="$unix_path" 32439 fi 32440 32441 if test -d "$VS_BASE"; then 32442 if test -f "$VS_BASE/$VCVARSFILE"; then 32443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32444 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32445 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32446 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32447 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32448 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32449 else 32450 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32451 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32452 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32453 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32454 fi 32455 fi 32456 fi 32457 32458 fi 32459 # Work around the insanely named ProgramFiles(x86) env variable 32460 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 32461 if test "x$PROGRAMFILES_X86" != x; then 32462 32463 if test "x$VS_ENV_CMD" = x; then 32464 VS_VERSION="${VS_VERSION}" 32465 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 32466 METHOD="well-known name" 32467 32468 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32469 VCVARSFILE="vc/bin/vcvars32.bat" 32470 else 32471 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32472 fi 32473 32474 32475 windows_path="$VS_BASE" 32476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32477 unix_path=`$CYGPATH -u "$windows_path"` 32478 VS_BASE="$unix_path" 32479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32481 VS_BASE="$unix_path" 32482 fi 32483 32484 if test -d "$VS_BASE"; then 32485 if test -f "$VS_BASE/$VCVARSFILE"; then 32486 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32487 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32488 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32489 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32490 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32491 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32492 else 32493 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32494 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32495 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32496 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32497 fi 32498 fi 32499 fi 32500 32501 fi 32502 32503 if test "x$VS_ENV_CMD" = x; then 32504 VS_VERSION="${VS_VERSION}" 32505 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 32506 METHOD="well-known name" 32507 32508 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32509 VCVARSFILE="vc/bin/vcvars32.bat" 32510 else 32511 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32512 fi 32513 32514 32515 windows_path="$VS_BASE" 32516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32517 unix_path=`$CYGPATH -u "$windows_path"` 32518 VS_BASE="$unix_path" 32519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32521 VS_BASE="$unix_path" 32522 fi 32523 32524 if test -d "$VS_BASE"; then 32525 if test -f "$VS_BASE/$VCVARSFILE"; then 32526 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32527 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32528 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32529 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32530 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32531 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32532 else 32533 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32534 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32535 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32536 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32537 fi 32538 fi 32539 fi 32540 32541 32542 if test "x$VS_ENV_CMD" = x; then 32543 VS_VERSION="${VS_VERSION}" 32544 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 32545 METHOD="well-known name" 32546 32547 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32548 VCVARSFILE="vc/bin/vcvars32.bat" 32549 else 32550 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 32551 fi 32552 32553 32554 windows_path="$VS_BASE" 32555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32556 unix_path=`$CYGPATH -u "$windows_path"` 32557 VS_BASE="$unix_path" 32558 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32559 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32560 VS_BASE="$unix_path" 32561 fi 32562 32563 if test -d "$VS_BASE"; then 32564 if test -f "$VS_BASE/$VCVARSFILE"; then 32565 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32566 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32567 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 32568 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32569 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 32570 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 32571 else 32572 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 32573 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 32574 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 32575 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 32576 fi 32577 fi 32578 fi 32579 32580 32581 if test "x$SDK_INSTALL_DIR" != x; then 32582 if test "x$ProgramW6432" != x; then 32583 32584 if test "x$VS_ENV_CMD" = x; then 32585 VS_VERSION="${VS_VERSION}" 32586 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 32587 METHOD="well-known name" 32588 32589 windows_path="$WIN_SDK_BASE" 32590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32591 unix_path=`$CYGPATH -u "$windows_path"` 32592 WIN_SDK_BASE="$unix_path" 32593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32594 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32595 WIN_SDK_BASE="$unix_path" 32596 fi 32597 32598 if test -d "$WIN_SDK_BASE"; then 32599 # There have been cases of partial or broken SDK installations. A missing 32600 # lib dir is not going to work. 32601 if test ! -d "$WIN_SDK_BASE/lib"; then 32602 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32603 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32604 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32605 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32606 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32607 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32608 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32609 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32610 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32611 VS_ENV_ARGS="/x86" 32612 else 32613 VS_ENV_ARGS="/x64" 32614 fi 32615 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32616 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32617 # TODO: improve detection for other versions of SDK 32618 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32619 else 32620 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32621 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32622 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32623 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32624 fi 32625 fi 32626 fi 32627 32628 fi 32629 if test "x$PROGRAMW6432" != x; then 32630 32631 if test "x$VS_ENV_CMD" = x; then 32632 VS_VERSION="${VS_VERSION}" 32633 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 32634 METHOD="well-known name" 32635 32636 windows_path="$WIN_SDK_BASE" 32637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32638 unix_path=`$CYGPATH -u "$windows_path"` 32639 WIN_SDK_BASE="$unix_path" 32640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32642 WIN_SDK_BASE="$unix_path" 32643 fi 32644 32645 if test -d "$WIN_SDK_BASE"; then 32646 # There have been cases of partial or broken SDK installations. A missing 32647 # lib dir is not going to work. 32648 if test ! -d "$WIN_SDK_BASE/lib"; then 32649 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32650 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32651 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32652 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32653 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32654 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32655 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32656 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32657 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32658 VS_ENV_ARGS="/x86" 32659 else 32660 VS_ENV_ARGS="/x64" 32661 fi 32662 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32663 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32664 # TODO: improve detection for other versions of SDK 32665 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32666 else 32667 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32668 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32669 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32670 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32671 fi 32672 fi 32673 fi 32674 32675 fi 32676 if test "x$PROGRAMFILES" != x; then 32677 32678 if test "x$VS_ENV_CMD" = x; then 32679 VS_VERSION="${VS_VERSION}" 32680 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 32681 METHOD="well-known name" 32682 32683 windows_path="$WIN_SDK_BASE" 32684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32685 unix_path=`$CYGPATH -u "$windows_path"` 32686 WIN_SDK_BASE="$unix_path" 32687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32689 WIN_SDK_BASE="$unix_path" 32690 fi 32691 32692 if test -d "$WIN_SDK_BASE"; then 32693 # There have been cases of partial or broken SDK installations. A missing 32694 # lib dir is not going to work. 32695 if test ! -d "$WIN_SDK_BASE/lib"; then 32696 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32697 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32698 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32699 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32700 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32701 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32702 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32703 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32704 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32705 VS_ENV_ARGS="/x86" 32706 else 32707 VS_ENV_ARGS="/x64" 32708 fi 32709 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32710 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32711 # TODO: improve detection for other versions of SDK 32712 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32713 else 32714 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32715 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32716 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32717 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32718 fi 32719 fi 32720 fi 32721 32722 fi 32723 32724 if test "x$VS_ENV_CMD" = x; then 32725 VS_VERSION="${VS_VERSION}" 32726 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 32727 METHOD="well-known name" 32728 32729 windows_path="$WIN_SDK_BASE" 32730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32731 unix_path=`$CYGPATH -u "$windows_path"` 32732 WIN_SDK_BASE="$unix_path" 32733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32735 WIN_SDK_BASE="$unix_path" 32736 fi 32737 32738 if test -d "$WIN_SDK_BASE"; then 32739 # There have been cases of partial or broken SDK installations. A missing 32740 # lib dir is not going to work. 32741 if test ! -d "$WIN_SDK_BASE/lib"; then 32742 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32743 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32744 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32745 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32746 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32747 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32748 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32749 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32750 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32751 VS_ENV_ARGS="/x86" 32752 else 32753 VS_ENV_ARGS="/x64" 32754 fi 32755 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32756 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32757 # TODO: improve detection for other versions of SDK 32758 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32759 else 32760 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32761 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32762 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32763 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32764 fi 32765 fi 32766 fi 32767 32768 32769 if test "x$VS_ENV_CMD" = x; then 32770 VS_VERSION="${VS_VERSION}" 32771 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 32772 METHOD="well-known name" 32773 32774 windows_path="$WIN_SDK_BASE" 32775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32776 unix_path=`$CYGPATH -u "$windows_path"` 32777 WIN_SDK_BASE="$unix_path" 32778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32779 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32780 WIN_SDK_BASE="$unix_path" 32781 fi 32782 32783 if test -d "$WIN_SDK_BASE"; then 32784 # There have been cases of partial or broken SDK installations. A missing 32785 # lib dir is not going to work. 32786 if test ! -d "$WIN_SDK_BASE/lib"; then 32787 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32788 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32789 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 32790 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 32791 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 32792 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32793 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32794 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 32795 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 32796 VS_ENV_ARGS="/x86" 32797 else 32798 VS_ENV_ARGS="/x64" 32799 fi 32800 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 32801 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 32802 # TODO: improve detection for other versions of SDK 32803 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 32804 else 32805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 32806 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 32807 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 32808 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 32809 fi 32810 fi 32811 fi 32812 32813 fi 32814 32815 if test "x$VS_ENV_CMD" != x; then 32816 TOOLCHAIN_VERSION=$VS_VERSION 32817 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 32818 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 32819 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 32820 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 32821 # The rest of the variables are already evaled while probing 32822 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 32823 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 32824 break 32825 fi 32826 done 32827 32828 32829 # If we have a devkit, skip all of the below. 32830 if test "x$DEVKIT_VS_VERSION" = x; then 32831 if test "x$VS_ENV_CMD" != x; then 32832 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 32833 32834 # Only process if variable expands to non-empty 32835 32836 if test "x$VS_ENV_CMD" != x; then 32837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32838 32839 # First separate the path from the arguments. This will split at the first 32840 # space. 32841 complete="$VS_ENV_CMD" 32842 path="${complete%% *}" 32843 tmp="$complete EOL" 32844 arguments="${tmp#* }" 32845 32846 # Input might be given as Windows format, start by converting to 32847 # unix format. 32848 new_path=`$CYGPATH -u "$path"` 32849 32850 # Now try to locate executable using which 32851 new_path=`$WHICH "$new_path" 2> /dev/null` 32852 # bat and cmd files are not always considered executable in cygwin causing which 32853 # to not find them 32854 if test "x$new_path" = x \ 32855 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32856 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32857 new_path=`$CYGPATH -u "$path"` 32858 fi 32859 if test "x$new_path" = x; then 32860 # Oops. Which didn't find the executable. 32861 # The splitting of arguments from the executable at a space might have been incorrect, 32862 # since paths with space are more likely in Windows. Give it another try with the whole 32863 # argument. 32864 path="$complete" 32865 arguments="EOL" 32866 new_path=`$CYGPATH -u "$path"` 32867 new_path=`$WHICH "$new_path" 2> /dev/null` 32868 # bat and cmd files are not always considered executable in cygwin causing which 32869 # to not find them 32870 if test "x$new_path" = x \ 32871 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32872 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32873 new_path=`$CYGPATH -u "$path"` 32874 fi 32875 if test "x$new_path" = x; then 32876 # It's still not found. Now this is an unrecoverable error. 32877 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 32878 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 32879 has_space=`$ECHO "$complete" | $GREP " "` 32880 if test "x$has_space" != x; then 32881 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32882 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32883 fi 32884 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32885 fi 32886 fi 32887 32888 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32889 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32890 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32891 # "foo.exe" is OK but "foo" is an error. 32892 # 32893 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32894 # It is also a way to make sure we got the proper file name for the real test later on. 32895 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32896 if test "x$test_shortpath" = x; then 32897 # Short path failed, file does not exist as specified. 32898 # Try adding .exe or .cmd 32899 if test -f "${new_path}.exe"; then 32900 input_to_shortpath="${new_path}.exe" 32901 elif test -f "${new_path}.cmd"; then 32902 input_to_shortpath="${new_path}.cmd" 32903 else 32904 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 32905 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 32906 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32907 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32908 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 32909 fi 32910 else 32911 input_to_shortpath="$new_path" 32912 fi 32913 32914 # Call helper function which possibly converts this using DOS-style short mode. 32915 # If so, the updated path is stored in $new_path. 32916 new_path="$input_to_shortpath" 32917 32918 input_path="$input_to_shortpath" 32919 # Check if we need to convert this using DOS-style short mode. If the path 32920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32921 # take no chances and rewrite it. 32922 # Note: m4 eats our [], so we need to use [ and ] instead. 32923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32924 if test "x$has_forbidden_chars" != x; then 32925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32926 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32927 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32928 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32929 # Going to short mode and back again did indeed matter. Since short mode is 32930 # case insensitive, let's make it lowercase to improve readability. 32931 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32932 # Now convert it back to Unix-style (cygpath) 32933 input_path=`$CYGPATH -u "$shortmode_path"` 32934 new_path="$input_path" 32935 fi 32936 fi 32937 32938 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32939 if test "x$test_cygdrive_prefix" = x; then 32940 # As a simple fix, exclude /usr/bin since it's not a real path. 32941 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32942 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32943 # a path prefixed by /cygdrive for fixpath to work. 32944 new_path="$CYGWIN_ROOT_PATH$input_path" 32945 fi 32946 fi 32947 32948 # remove trailing .exe if any 32949 new_path="${new_path/%.exe/}" 32950 32951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32952 32953 # First separate the path from the arguments. This will split at the first 32954 # space. 32955 complete="$VS_ENV_CMD" 32956 path="${complete%% *}" 32957 tmp="$complete EOL" 32958 arguments="${tmp#* }" 32959 32960 # Input might be given as Windows format, start by converting to 32961 # unix format. 32962 new_path="$path" 32963 32964 windows_path="$new_path" 32965 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32966 unix_path=`$CYGPATH -u "$windows_path"` 32967 new_path="$unix_path" 32968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32969 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32970 new_path="$unix_path" 32971 fi 32972 32973 32974 # Now try to locate executable using which 32975 new_path=`$WHICH "$new_path" 2> /dev/null` 32976 32977 if test "x$new_path" = x; then 32978 # Oops. Which didn't find the executable. 32979 # The splitting of arguments from the executable at a space might have been incorrect, 32980 # since paths with space are more likely in Windows. Give it another try with the whole 32981 # argument. 32982 path="$complete" 32983 arguments="EOL" 32984 new_path="$path" 32985 32986 windows_path="$new_path" 32987 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32988 unix_path=`$CYGPATH -u "$windows_path"` 32989 new_path="$unix_path" 32990 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32991 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32992 new_path="$unix_path" 32993 fi 32994 32995 32996 new_path=`$WHICH "$new_path" 2> /dev/null` 32997 # bat and cmd files are not always considered executable in MSYS causing which 32998 # to not find them 32999 if test "x$new_path" = x \ 33000 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33001 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33002 new_path="$path" 33003 33004 windows_path="$new_path" 33005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33006 unix_path=`$CYGPATH -u "$windows_path"` 33007 new_path="$unix_path" 33008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33010 new_path="$unix_path" 33011 fi 33012 33013 fi 33014 33015 if test "x$new_path" = x; then 33016 # It's still not found. Now this is an unrecoverable error. 33017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33018 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33019 has_space=`$ECHO "$complete" | $GREP " "` 33020 if test "x$has_space" != x; then 33021 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33023 fi 33024 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33025 fi 33026 fi 33027 33028 # Now new_path has a complete unix path to the binary 33029 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33030 # Keep paths in /bin as-is, but remove trailing .exe if any 33031 new_path="${new_path/%.exe/}" 33032 # Do not save /bin paths to all_fixpath_prefixes! 33033 else 33034 # Not in mixed or Windows style, start by that. 33035 new_path=`cmd //c echo $new_path` 33036 33037 input_path="$new_path" 33038 # Check if we need to convert this using DOS-style short mode. If the path 33039 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33040 # take no chances and rewrite it. 33041 # Note: m4 eats our [], so we need to use [ and ] instead. 33042 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33043 if test "x$has_forbidden_chars" != x; then 33044 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33045 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33046 fi 33047 33048 # Output is in $new_path 33049 33050 windows_path="$new_path" 33051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33052 unix_path=`$CYGPATH -u "$windows_path"` 33053 new_path="$unix_path" 33054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33056 new_path="$unix_path" 33057 fi 33058 33059 # remove trailing .exe if any 33060 new_path="${new_path/%.exe/}" 33061 33062 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33063 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33064 fi 33065 33066 else 33067 # We're on a unix platform. Hooray! :) 33068 # First separate the path from the arguments. This will split at the first 33069 # space. 33070 complete="$VS_ENV_CMD" 33071 path="${complete%% *}" 33072 tmp="$complete EOL" 33073 arguments="${tmp#* }" 33074 33075 # Cannot rely on the command "which" here since it doesn't always work. 33076 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33077 if test -z "$is_absolute_path"; then 33078 # Path to executable is not absolute. Find it. 33079 IFS_save="$IFS" 33080 IFS=: 33081 for p in $PATH; do 33082 if test -f "$p/$path" && test -x "$p/$path"; then 33083 new_path="$p/$path" 33084 break 33085 fi 33086 done 33087 IFS="$IFS_save" 33088 else 33089 # This is an absolute path, we can use it without further modifications. 33090 new_path="$path" 33091 fi 33092 33093 if test "x$new_path" = x; then 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 33095 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 33096 has_space=`$ECHO "$complete" | $GREP " "` 33097 if test "x$has_space" != x; then 33098 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33099 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33100 fi 33101 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 33102 fi 33103 fi 33104 33105 # Now join together the path and the arguments once again 33106 if test "x$arguments" != xEOL; then 33107 new_complete="$new_path ${arguments% *}" 33108 else 33109 new_complete="$new_path" 33110 fi 33111 33112 if test "x$complete" != "x$new_complete"; then 33113 VS_ENV_CMD="$new_complete" 33114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 33115 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 33116 fi 33117 fi 33118 33119 33120 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 33121 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 33122 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 33123 33124 # We need to create a couple of temporary files. 33125 VS_ENV_TMP_DIR="$CONFIGURESUPPORT_OUTPUTDIR/vs-env" 33126 $MKDIR -p $VS_ENV_TMP_DIR 33127 33128 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 33129 # Instead create a shell script which will set the relevant variables when run. 33130 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 33131 33132 unix_path="$WINPATH_VS_ENV_CMD" 33133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33134 windows_path=`$CYGPATH -m "$unix_path"` 33135 WINPATH_VS_ENV_CMD="$windows_path" 33136 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33137 windows_path=`cmd //c echo $unix_path` 33138 WINPATH_VS_ENV_CMD="$windows_path" 33139 fi 33140 33141 WINPATH_BASH="$BASH" 33142 33143 unix_path="$WINPATH_BASH" 33144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33145 windows_path=`$CYGPATH -m "$unix_path"` 33146 WINPATH_BASH="$windows_path" 33147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33148 windows_path=`cmd //c echo $unix_path` 33149 WINPATH_BASH="$windows_path" 33150 fi 33151 33152 33153 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 33154 # script (executable by bash) that will setup the important variables. 33155 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 33156 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 33157 # This will end up something like: 33158 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 33159 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 33160 # These will end up something like: 33161 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 33162 # The trailing space for everyone except PATH is no typo, but is needed due 33163 # to trailing \ in the Windows paths. These will be stripped later. 33164 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' \ 33165 >> $EXTRACT_VC_ENV_BAT_FILE 33166 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' \ 33167 >> $EXTRACT_VC_ENV_BAT_FILE 33168 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' \ 33169 >> $EXTRACT_VC_ENV_BAT_FILE 33170 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' \ 33171 >> $EXTRACT_VC_ENV_BAT_FILE 33172 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' \ 33173 >> $EXTRACT_VC_ENV_BAT_FILE 33174 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' \ 33175 >> $EXTRACT_VC_ENV_BAT_FILE 33176 33177 # Now execute the newly created bat file. 33178 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 33179 # Change directory so we don't need to mess with Windows paths in redirects. 33180 cd $VS_ENV_TMP_DIR 33181 cmd /c extract-vs-env.bat | $CAT 33182 cd $CURDIR 33183 33184 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 33185 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 33186 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 33187 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33188 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33189 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33190 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33191 as_fn_error $? "Cannot continue" "$LINENO" 5 33192 fi 33193 33194 # Now set all paths and other env variables. This will allow the rest of 33195 # the configure script to find and run the compiler in the proper way. 33196 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 33197 $as_echo "$as_me: Setting extracted environment variables" >&6;} 33198 . $VS_ENV_TMP_DIR/set-vs-env.sh 33199 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 33200 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 33201 else 33202 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 33203 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 33204 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 33205 fi 33206 fi 33207 33208 # At this point, we should have correct variables in the environment, or we can't continue. 33209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 33210 $as_echo_n "checking for Visual Studio variables... " >&6; } 33211 33212 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x \ 33213 || test "x$WINDOWSSDKDIR" != x || test "x$DEVKIT_NAME" != x; then 33214 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 33215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 33216 $as_echo "present but broken" >&6; } 33217 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 33218 else 33219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 33220 $as_echo "ok" >&6; } 33221 # Remove any trailing "\" ";" and " " from the variables. 33222 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 33223 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 33224 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 33225 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 33226 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 33227 # Remove any paths containing # (typically F#) as that messes up make. This 33228 # is needed if visual studio was installed with F# support. 33229 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 33230 33231 33232 33233 33234 33235 # Convert VS_INCLUDE into SYSROOT_CFLAGS 33236 OLDIFS="$IFS" 33237 IFS=";" 33238 for i in $VS_INCLUDE; do 33239 ipath=$i 33240 # Only process non-empty elements 33241 if test "x$ipath" != x; then 33242 IFS="$OLDIFS" 33243 # Check that directory exists before calling fixup_path 33244 testpath=$ipath 33245 33246 windows_path="$testpath" 33247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33248 unix_path=`$CYGPATH -u "$windows_path"` 33249 testpath="$unix_path" 33250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33252 testpath="$unix_path" 33253 fi 33254 33255 if test -d "$testpath"; then 33256 33257 # Only process if variable expands to non-empty 33258 33259 if test "x$ipath" != x; then 33260 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33261 33262 # Input might be given as Windows format, start by converting to 33263 # unix format. 33264 path="$ipath" 33265 new_path=`$CYGPATH -u "$path"` 33266 33267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33270 # "foo.exe" is OK but "foo" is an error. 33271 # 33272 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33273 # It is also a way to make sure we got the proper file name for the real test later on. 33274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33275 if test "x$test_shortpath" = x; then 33276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33277 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33278 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 33279 fi 33280 33281 # Call helper function which possibly converts this using DOS-style short mode. 33282 # If so, the updated path is stored in $new_path. 33283 33284 input_path="$new_path" 33285 # Check if we need to convert this using DOS-style short mode. If the path 33286 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33287 # take no chances and rewrite it. 33288 # Note: m4 eats our [], so we need to use [ and ] instead. 33289 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33290 if test "x$has_forbidden_chars" != x; then 33291 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33292 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33293 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33294 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33295 # Going to short mode and back again did indeed matter. Since short mode is 33296 # case insensitive, let's make it lowercase to improve readability. 33297 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33298 # Now convert it back to Unix-style (cygpath) 33299 input_path=`$CYGPATH -u "$shortmode_path"` 33300 new_path="$input_path" 33301 fi 33302 fi 33303 33304 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33305 if test "x$test_cygdrive_prefix" = x; then 33306 # As a simple fix, exclude /usr/bin since it's not a real path. 33307 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33308 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33309 # a path prefixed by /cygdrive for fixpath to work. 33310 new_path="$CYGWIN_ROOT_PATH$input_path" 33311 fi 33312 fi 33313 33314 33315 if test "x$path" != "x$new_path"; then 33316 ipath="$new_path" 33317 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33318 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33319 fi 33320 33321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33322 33323 path="$ipath" 33324 has_colon=`$ECHO $path | $GREP ^.:` 33325 new_path="$path" 33326 if test "x$has_colon" = x; then 33327 # Not in mixed or Windows style, start by that. 33328 new_path=`cmd //c echo $path` 33329 fi 33330 33331 33332 input_path="$new_path" 33333 # Check if we need to convert this using DOS-style short mode. If the path 33334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33335 # take no chances and rewrite it. 33336 # Note: m4 eats our [], so we need to use [ and ] instead. 33337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33338 if test "x$has_forbidden_chars" != x; then 33339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33340 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33341 fi 33342 33343 33344 windows_path="$new_path" 33345 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33346 unix_path=`$CYGPATH -u "$windows_path"` 33347 new_path="$unix_path" 33348 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33349 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33350 new_path="$unix_path" 33351 fi 33352 33353 if test "x$path" != "x$new_path"; then 33354 ipath="$new_path" 33355 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 33356 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 33357 fi 33358 33359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33361 33362 else 33363 # We're on a unix platform. Hooray! :) 33364 path="$ipath" 33365 has_space=`$ECHO "$path" | $GREP " "` 33366 if test "x$has_space" != x; then 33367 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 33368 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 33369 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33370 fi 33371 33372 # Use eval to expand a potential ~ 33373 eval path="$path" 33374 if test ! -f "$path" && test ! -d "$path"; then 33375 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 33376 fi 33377 33378 if test -d "$path"; then 33379 ipath="`cd "$path"; $THEPWDCMD -L`" 33380 else 33381 dir="`$DIRNAME "$path"`" 33382 base="`$BASENAME "$path"`" 33383 ipath="`cd "$dir"; $THEPWDCMD -L`/$base" 33384 fi 33385 fi 33386 fi 33387 33388 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 33389 fi 33390 IFS=";" 33391 fi 33392 done 33393 # Convert VS_LIB into SYSROOT_LDFLAGS 33394 for i in $VS_LIB; do 33395 libpath=$i 33396 # Only process non-empty elements 33397 if test "x$libpath" != x; then 33398 IFS="$OLDIFS" 33399 # Check that directory exists before calling fixup_path 33400 testpath=$libpath 33401 33402 windows_path="$testpath" 33403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33404 unix_path=`$CYGPATH -u "$windows_path"` 33405 testpath="$unix_path" 33406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33408 testpath="$unix_path" 33409 fi 33410 33411 if test -d "$testpath"; then 33412 33413 # Only process if variable expands to non-empty 33414 33415 if test "x$libpath" != x; then 33416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33417 33418 # Input might be given as Windows format, start by converting to 33419 # unix format. 33420 path="$libpath" 33421 new_path=`$CYGPATH -u "$path"` 33422 33423 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33424 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33425 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33426 # "foo.exe" is OK but "foo" is an error. 33427 # 33428 # This test is therefore slightly more accurate than "test -f" to check for file precense. 33429 # It is also a way to make sure we got the proper file name for the real test later on. 33430 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33431 if test "x$test_shortpath" = x; then 33432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33433 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33434 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 33435 fi 33436 33437 # Call helper function which possibly converts this using DOS-style short mode. 33438 # If so, the updated path is stored in $new_path. 33439 33440 input_path="$new_path" 33441 # Check if we need to convert this using DOS-style short mode. If the path 33442 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33443 # take no chances and rewrite it. 33444 # Note: m4 eats our [], so we need to use [ and ] instead. 33445 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33446 if test "x$has_forbidden_chars" != x; then 33447 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33448 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33449 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33450 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33451 # Going to short mode and back again did indeed matter. Since short mode is 33452 # case insensitive, let's make it lowercase to improve readability. 33453 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33454 # Now convert it back to Unix-style (cygpath) 33455 input_path=`$CYGPATH -u "$shortmode_path"` 33456 new_path="$input_path" 33457 fi 33458 fi 33459 33460 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33461 if test "x$test_cygdrive_prefix" = x; then 33462 # As a simple fix, exclude /usr/bin since it's not a real path. 33463 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 33464 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33465 # a path prefixed by /cygdrive for fixpath to work. 33466 new_path="$CYGWIN_ROOT_PATH$input_path" 33467 fi 33468 fi 33469 33470 33471 if test "x$path" != "x$new_path"; then 33472 libpath="$new_path" 33473 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33474 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33475 fi 33476 33477 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33478 33479 path="$libpath" 33480 has_colon=`$ECHO $path | $GREP ^.:` 33481 new_path="$path" 33482 if test "x$has_colon" = x; then 33483 # Not in mixed or Windows style, start by that. 33484 new_path=`cmd //c echo $path` 33485 fi 33486 33487 33488 input_path="$new_path" 33489 # Check if we need to convert this using DOS-style short mode. If the path 33490 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33491 # take no chances and rewrite it. 33492 # Note: m4 eats our [], so we need to use [ and ] instead. 33493 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33494 if test "x$has_forbidden_chars" != x; then 33495 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33496 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33497 fi 33498 33499 33500 windows_path="$new_path" 33501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33502 unix_path=`$CYGPATH -u "$windows_path"` 33503 new_path="$unix_path" 33504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33506 new_path="$unix_path" 33507 fi 33508 33509 if test "x$path" != "x$new_path"; then 33510 libpath="$new_path" 33511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 33512 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 33513 fi 33514 33515 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33516 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33517 33518 else 33519 # We're on a unix platform. Hooray! :) 33520 path="$libpath" 33521 has_space=`$ECHO "$path" | $GREP " "` 33522 if test "x$has_space" != x; then 33523 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 33524 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 33525 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 33526 fi 33527 33528 # Use eval to expand a potential ~ 33529 eval path="$path" 33530 if test ! -f "$path" && test ! -d "$path"; then 33531 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 33532 fi 33533 33534 if test -d "$path"; then 33535 libpath="`cd "$path"; $THEPWDCMD -L`" 33536 else 33537 dir="`$DIRNAME "$path"`" 33538 base="`$BASENAME "$path"`" 33539 libpath="`cd "$dir"; $THEPWDCMD -L`/$base" 33540 fi 33541 fi 33542 fi 33543 33544 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 33545 fi 33546 IFS=";" 33547 fi 33548 done 33549 IFS="$OLDIFS" 33550 fi 33551 else 33552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33553 $as_echo "not found" >&6; } 33554 33555 if test "x$VS_ENV_CMD" = x; then 33556 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 33557 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 33558 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 33559 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 33560 else 33561 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 33562 $as_echo "$as_me: Running the extraction script failed." >&6;} 33563 fi 33564 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 33565 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 33566 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 33567 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 33568 as_fn_error $? "Cannot continue" "$LINENO" 5 33569 fi 33570 33571 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 33572 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 33573 PATH="$VS_PATH" 33574 # The microsoft toolchain also requires INCLUDE and LIB to be set. 33575 export INCLUDE="$VS_INCLUDE" 33576 export LIB="$VS_LIB" 33577 else 33578 if test "x$XCODE_VERSION_OUTPUT" != x; then 33579 # For Xcode, we set the Xcode version as TOOLCHAIN_VERSION 33580 TOOLCHAIN_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | $CUT -f 2 -d ' '` 33581 TOOLCHAIN_DESCRIPTION="$TOOLCHAIN_DESCRIPTION from Xcode" 33582 else 33583 # Currently we do not define this for other toolchains. This might change as the need arise. 33584 TOOLCHAIN_VERSION= 33585 fi 33586 fi 33587 33588 33589 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 33590 # override all other locations. 33591 if test "x$TOOLCHAIN_PATH" != x; then 33592 PATH=$TOOLCHAIN_PATH:$PATH 33593 fi 33594 33595 33596 # 33597 # Setup the compilers (CC and CXX) 33598 # 33599 33600 COMPILER_NAME=C 33601 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 33602 33603 if test "x$CC" != x; then 33604 # User has supplied compiler name already, always let that override. 33605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 33606 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 33607 if test "x`basename $CC`" = "x$CC"; then 33608 # A command without a complete path is provided, search $PATH. 33609 33610 for ac_prog in $CC 33611 do 33612 # Extract the first word of "$ac_prog", so it can be a program name with args. 33613 set dummy $ac_prog; ac_word=$2 33614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33615 $as_echo_n "checking for $ac_word... " >&6; } 33616 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33617 $as_echo_n "(cached) " >&6 33618 else 33619 case $POTENTIAL_CC in 33620 [\\/]* | ?:[\\/]*) 33621 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33622 ;; 33623 *) 33624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33625 for as_dir in $PATH 33626 do 33627 IFS=$as_save_IFS 33628 test -z "$as_dir" && as_dir=. 33629 for ac_exec_ext in '' $ac_executable_extensions; do 33630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33631 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33633 break 2 33634 fi 33635 done 33636 done 33637 IFS=$as_save_IFS 33638 33639 ;; 33640 esac 33641 fi 33642 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33643 if test -n "$POTENTIAL_CC"; then 33644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33645 $as_echo "$POTENTIAL_CC" >&6; } 33646 else 33647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33648 $as_echo "no" >&6; } 33649 fi 33650 33651 33652 test -n "$POTENTIAL_CC" && break 33653 done 33654 33655 if test "x$POTENTIAL_CC" != x; then 33656 CC=$POTENTIAL_CC 33657 else 33658 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 33659 fi 33660 else 33661 # Otherwise it might already be a complete path 33662 if test ! -x "$CC"; then 33663 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 33664 fi 33665 fi 33666 else 33667 # No user supplied value. Locate compiler ourselves. 33668 33669 # If we are cross compiling, assume cross compilation tools follows the 33670 # cross compilation standard where they are prefixed with the autoconf 33671 # standard name for the target. For example the binary 33672 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 33673 # If we are not cross compiling, then the default compiler name will be 33674 # used. 33675 33676 CC= 33677 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 33678 # before checking the rest of the PATH. 33679 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 33680 # step, this should not be necessary. 33681 if test -n "$TOOLCHAIN_PATH"; then 33682 PATH_save="$PATH" 33683 PATH="$TOOLCHAIN_PATH" 33684 if test -n "$ac_tool_prefix"; then 33685 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33686 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33688 $as_echo_n "checking for $ac_word... " >&6; } 33689 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 33690 $as_echo_n "(cached) " >&6 33691 else 33692 case $TOOLCHAIN_PATH_CC in 33693 [\\/]* | ?:[\\/]*) 33694 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33695 ;; 33696 *) 33697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33698 for as_dir in $PATH 33699 do 33700 IFS=$as_save_IFS 33701 test -z "$as_dir" && as_dir=. 33702 for ac_exec_ext in '' $ac_executable_extensions; do 33703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33704 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33706 break 2 33707 fi 33708 done 33709 done 33710 IFS=$as_save_IFS 33711 33712 ;; 33713 esac 33714 fi 33715 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 33716 if test -n "$TOOLCHAIN_PATH_CC"; then 33717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 33718 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 33719 else 33720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33721 $as_echo "no" >&6; } 33722 fi 33723 33724 33725 fi 33726 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CC"; then 33727 ac_pt_TOOLCHAIN_PATH_CC=$TOOLCHAIN_PATH_CC 33728 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33729 set dummy $SEARCH_LIST; ac_word=$2 33730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33731 $as_echo_n "checking for $ac_word... " >&6; } 33732 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC+:} false; then : 33733 $as_echo_n "(cached) " >&6 33734 else 33735 case $ac_pt_TOOLCHAIN_PATH_CC in 33736 [\\/]* | ?:[\\/]*) 33737 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$ac_pt_TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 33738 ;; 33739 *) 33740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33741 for as_dir in $PATH 33742 do 33743 IFS=$as_save_IFS 33744 test -z "$as_dir" && as_dir=. 33745 for ac_exec_ext in '' $ac_executable_extensions; do 33746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33747 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 33748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33749 break 2 33750 fi 33751 done 33752 done 33753 IFS=$as_save_IFS 33754 33755 ;; 33756 esac 33757 fi 33758 ac_pt_TOOLCHAIN_PATH_CC=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CC 33759 if test -n "$ac_pt_TOOLCHAIN_PATH_CC"; then 33760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CC" >&5 33761 $as_echo "$ac_pt_TOOLCHAIN_PATH_CC" >&6; } 33762 else 33763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33764 $as_echo "no" >&6; } 33765 fi 33766 33767 if test "x$ac_pt_TOOLCHAIN_PATH_CC" = x; then 33768 TOOLCHAIN_PATH_CC="" 33769 else 33770 case $cross_compiling:$ac_tool_warned in 33771 yes:) 33772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33774 ac_tool_warned=yes ;; 33775 esac 33776 TOOLCHAIN_PATH_CC=$ac_pt_TOOLCHAIN_PATH_CC 33777 fi 33778 else 33779 TOOLCHAIN_PATH_CC="$ac_cv_path_TOOLCHAIN_PATH_CC" 33780 fi 33781 33782 CC=$TOOLCHAIN_PATH_CC 33783 PATH="$PATH_save" 33784 fi 33785 33786 # AC_PATH_TOOL can't be run multiple times with the same variable, 33787 # so create a new name for this run. 33788 if test "x$CC" = x; then 33789 if test -n "$ac_tool_prefix"; then 33790 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 33791 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 33792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33793 $as_echo_n "checking for $ac_word... " >&6; } 33794 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 33795 $as_echo_n "(cached) " >&6 33796 else 33797 case $POTENTIAL_CC in 33798 [\\/]* | ?:[\\/]*) 33799 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 33800 ;; 33801 *) 33802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33803 for as_dir in $PATH 33804 do 33805 IFS=$as_save_IFS 33806 test -z "$as_dir" && as_dir=. 33807 for ac_exec_ext in '' $ac_executable_extensions; do 33808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33809 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33811 break 2 33812 fi 33813 done 33814 done 33815 IFS=$as_save_IFS 33816 33817 ;; 33818 esac 33819 fi 33820 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 33821 if test -n "$POTENTIAL_CC"; then 33822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 33823 $as_echo "$POTENTIAL_CC" >&6; } 33824 else 33825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33826 $as_echo "no" >&6; } 33827 fi 33828 33829 33830 fi 33831 if test -z "$ac_cv_path_POTENTIAL_CC"; then 33832 ac_pt_POTENTIAL_CC=$POTENTIAL_CC 33833 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 33834 set dummy $SEARCH_LIST; ac_word=$2 33835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33836 $as_echo_n "checking for $ac_word... " >&6; } 33837 if ${ac_cv_path_ac_pt_POTENTIAL_CC+:} false; then : 33838 $as_echo_n "(cached) " >&6 33839 else 33840 case $ac_pt_POTENTIAL_CC in 33841 [\\/]* | ?:[\\/]*) 33842 ac_cv_path_ac_pt_POTENTIAL_CC="$ac_pt_POTENTIAL_CC" # Let the user override the test with a path. 33843 ;; 33844 *) 33845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33846 for as_dir in $PATH 33847 do 33848 IFS=$as_save_IFS 33849 test -z "$as_dir" && as_dir=. 33850 for ac_exec_ext in '' $ac_executable_extensions; do 33851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33852 ac_cv_path_ac_pt_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 33853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33854 break 2 33855 fi 33856 done 33857 done 33858 IFS=$as_save_IFS 33859 33860 ;; 33861 esac 33862 fi 33863 ac_pt_POTENTIAL_CC=$ac_cv_path_ac_pt_POTENTIAL_CC 33864 if test -n "$ac_pt_POTENTIAL_CC"; then 33865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CC" >&5 33866 $as_echo "$ac_pt_POTENTIAL_CC" >&6; } 33867 else 33868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33869 $as_echo "no" >&6; } 33870 fi 33871 33872 if test "x$ac_pt_POTENTIAL_CC" = x; then 33873 POTENTIAL_CC="" 33874 else 33875 case $cross_compiling:$ac_tool_warned in 33876 yes:) 33877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33879 ac_tool_warned=yes ;; 33880 esac 33881 POTENTIAL_CC=$ac_pt_POTENTIAL_CC 33882 fi 33883 else 33884 POTENTIAL_CC="$ac_cv_path_POTENTIAL_CC" 33885 fi 33886 33887 CC=$POTENTIAL_CC 33888 fi 33889 33890 if test "x$CC" = x; then 33891 33892 # Print a helpful message on how to acquire the necessary build dependency. 33893 # devkit is the help tag: freetype, cups, alsa etc 33894 MISSING_DEPENDENCY=devkit 33895 33896 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33897 cygwin_help $MISSING_DEPENDENCY 33898 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33899 msys_help $MISSING_DEPENDENCY 33900 else 33901 PKGHANDLER_COMMAND= 33902 33903 case $PKGHANDLER in 33904 apt-get) 33905 apt_help $MISSING_DEPENDENCY ;; 33906 yum) 33907 yum_help $MISSING_DEPENDENCY ;; 33908 brew) 33909 brew_help $MISSING_DEPENDENCY ;; 33910 port) 33911 port_help $MISSING_DEPENDENCY ;; 33912 pkgutil) 33913 pkgutil_help $MISSING_DEPENDENCY ;; 33914 pkgadd) 33915 pkgadd_help $MISSING_DEPENDENCY ;; 33916 esac 33917 33918 if test "x$PKGHANDLER_COMMAND" != x; then 33919 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 33920 fi 33921 fi 33922 33923 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 33924 fi 33925 fi 33926 33927 # Now we have a compiler binary in CC. Make sure it's okay. 33928 33929 # Only process if variable expands to non-empty 33930 33931 if test "x$CC" != x; then 33932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33933 33934 # First separate the path from the arguments. This will split at the first 33935 # space. 33936 complete="$CC" 33937 path="${complete%% *}" 33938 tmp="$complete EOL" 33939 arguments="${tmp#* }" 33940 33941 # Input might be given as Windows format, start by converting to 33942 # unix format. 33943 new_path=`$CYGPATH -u "$path"` 33944 33945 # Now try to locate executable using which 33946 new_path=`$WHICH "$new_path" 2> /dev/null` 33947 # bat and cmd files are not always considered executable in cygwin causing which 33948 # to not find them 33949 if test "x$new_path" = x \ 33950 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33951 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33952 new_path=`$CYGPATH -u "$path"` 33953 fi 33954 if test "x$new_path" = x; then 33955 # Oops. Which didn't find the executable. 33956 # The splitting of arguments from the executable at a space might have been incorrect, 33957 # since paths with space are more likely in Windows. Give it another try with the whole 33958 # argument. 33959 path="$complete" 33960 arguments="EOL" 33961 new_path=`$CYGPATH -u "$path"` 33962 new_path=`$WHICH "$new_path" 2> /dev/null` 33963 # bat and cmd files are not always considered executable in cygwin causing which 33964 # to not find them 33965 if test "x$new_path" = x \ 33966 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33967 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33968 new_path=`$CYGPATH -u "$path"` 33969 fi 33970 if test "x$new_path" = x; then 33971 # It's still not found. Now this is an unrecoverable error. 33972 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 33973 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 33974 has_space=`$ECHO "$complete" | $GREP " "` 33975 if test "x$has_space" != x; then 33976 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33977 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33978 fi 33979 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 33980 fi 33981 fi 33982 33983 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33984 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33985 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33986 # "foo.exe" is OK but "foo" is an error. 33987 # 33988 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33989 # It is also a way to make sure we got the proper file name for the real test later on. 33990 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33991 if test "x$test_shortpath" = x; then 33992 # Short path failed, file does not exist as specified. 33993 # Try adding .exe or .cmd 33994 if test -f "${new_path}.exe"; then 33995 input_to_shortpath="${new_path}.exe" 33996 elif test -f "${new_path}.cmd"; then 33997 input_to_shortpath="${new_path}.cmd" 33998 else 33999 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 34000 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 34001 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34002 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34003 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34004 fi 34005 else 34006 input_to_shortpath="$new_path" 34007 fi 34008 34009 # Call helper function which possibly converts this using DOS-style short mode. 34010 # If so, the updated path is stored in $new_path. 34011 new_path="$input_to_shortpath" 34012 34013 input_path="$input_to_shortpath" 34014 # Check if we need to convert this using DOS-style short mode. If the path 34015 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34016 # take no chances and rewrite it. 34017 # Note: m4 eats our [], so we need to use [ and ] instead. 34018 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34019 if test "x$has_forbidden_chars" != x; then 34020 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34021 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34022 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34023 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34024 # Going to short mode and back again did indeed matter. Since short mode is 34025 # case insensitive, let's make it lowercase to improve readability. 34026 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34027 # Now convert it back to Unix-style (cygpath) 34028 input_path=`$CYGPATH -u "$shortmode_path"` 34029 new_path="$input_path" 34030 fi 34031 fi 34032 34033 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34034 if test "x$test_cygdrive_prefix" = x; then 34035 # As a simple fix, exclude /usr/bin since it's not a real path. 34036 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34037 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34038 # a path prefixed by /cygdrive for fixpath to work. 34039 new_path="$CYGWIN_ROOT_PATH$input_path" 34040 fi 34041 fi 34042 34043 # remove trailing .exe if any 34044 new_path="${new_path/%.exe/}" 34045 34046 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34047 34048 # First separate the path from the arguments. This will split at the first 34049 # space. 34050 complete="$CC" 34051 path="${complete%% *}" 34052 tmp="$complete EOL" 34053 arguments="${tmp#* }" 34054 34055 # Input might be given as Windows format, start by converting to 34056 # unix format. 34057 new_path="$path" 34058 34059 windows_path="$new_path" 34060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34061 unix_path=`$CYGPATH -u "$windows_path"` 34062 new_path="$unix_path" 34063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34064 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34065 new_path="$unix_path" 34066 fi 34067 34068 34069 # Now try to locate executable using which 34070 new_path=`$WHICH "$new_path" 2> /dev/null` 34071 34072 if test "x$new_path" = x; then 34073 # Oops. Which didn't find the executable. 34074 # The splitting of arguments from the executable at a space might have been incorrect, 34075 # since paths with space are more likely in Windows. Give it another try with the whole 34076 # argument. 34077 path="$complete" 34078 arguments="EOL" 34079 new_path="$path" 34080 34081 windows_path="$new_path" 34082 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34083 unix_path=`$CYGPATH -u "$windows_path"` 34084 new_path="$unix_path" 34085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34086 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34087 new_path="$unix_path" 34088 fi 34089 34090 34091 new_path=`$WHICH "$new_path" 2> /dev/null` 34092 # bat and cmd files are not always considered executable in MSYS causing which 34093 # to not find them 34094 if test "x$new_path" = x \ 34095 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34096 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34097 new_path="$path" 34098 34099 windows_path="$new_path" 34100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34101 unix_path=`$CYGPATH -u "$windows_path"` 34102 new_path="$unix_path" 34103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34105 new_path="$unix_path" 34106 fi 34107 34108 fi 34109 34110 if test "x$new_path" = x; then 34111 # It's still not found. Now this is an unrecoverable error. 34112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34113 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34114 has_space=`$ECHO "$complete" | $GREP " "` 34115 if test "x$has_space" != x; then 34116 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34117 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34118 fi 34119 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34120 fi 34121 fi 34122 34123 # Now new_path has a complete unix path to the binary 34124 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34125 # Keep paths in /bin as-is, but remove trailing .exe if any 34126 new_path="${new_path/%.exe/}" 34127 # Do not save /bin paths to all_fixpath_prefixes! 34128 else 34129 # Not in mixed or Windows style, start by that. 34130 new_path=`cmd //c echo $new_path` 34131 34132 input_path="$new_path" 34133 # Check if we need to convert this using DOS-style short mode. If the path 34134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34135 # take no chances and rewrite it. 34136 # Note: m4 eats our [], so we need to use [ and ] instead. 34137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34138 if test "x$has_forbidden_chars" != x; then 34139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34140 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34141 fi 34142 34143 # Output is in $new_path 34144 34145 windows_path="$new_path" 34146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34147 unix_path=`$CYGPATH -u "$windows_path"` 34148 new_path="$unix_path" 34149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34151 new_path="$unix_path" 34152 fi 34153 34154 # remove trailing .exe if any 34155 new_path="${new_path/%.exe/}" 34156 34157 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34158 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34159 fi 34160 34161 else 34162 # We're on a unix platform. Hooray! :) 34163 # First separate the path from the arguments. This will split at the first 34164 # space. 34165 complete="$CC" 34166 path="${complete%% *}" 34167 tmp="$complete EOL" 34168 arguments="${tmp#* }" 34169 34170 # Cannot rely on the command "which" here since it doesn't always work. 34171 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34172 if test -z "$is_absolute_path"; then 34173 # Path to executable is not absolute. Find it. 34174 IFS_save="$IFS" 34175 IFS=: 34176 for p in $PATH; do 34177 if test -f "$p/$path" && test -x "$p/$path"; then 34178 new_path="$p/$path" 34179 break 34180 fi 34181 done 34182 IFS="$IFS_save" 34183 else 34184 # This is an absolute path, we can use it without further modifications. 34185 new_path="$path" 34186 fi 34187 34188 if test "x$new_path" = x; then 34189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 34190 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 34191 has_space=`$ECHO "$complete" | $GREP " "` 34192 if test "x$has_space" != x; then 34193 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34194 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34195 fi 34196 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 34197 fi 34198 fi 34199 34200 # Now join together the path and the arguments once again 34201 if test "x$arguments" != xEOL; then 34202 new_complete="$new_path ${arguments% *}" 34203 else 34204 new_complete="$new_path" 34205 fi 34206 34207 if test "x$complete" != "x$new_complete"; then 34208 CC="$new_complete" 34209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 34210 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 34211 fi 34212 fi 34213 34214 TEST_COMPILER="$CC" 34215 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 34217 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 34218 SYMLINK_ORIGINAL="$TEST_COMPILER" 34219 34220 if test "x$OPENJDK_BUILD_OS" != xwindows; then 34221 # Follow a chain of symbolic links. Use readlink 34222 # where it exists, else fall back to horribly 34223 # complicated shell code. 34224 if test "x$READLINK_TESTED" != yes; then 34225 # On MacOSX there is a readlink tool with a different 34226 # purpose than the GNU readlink tool. Check the found readlink. 34227 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 34228 if test "x$ISGNU" = x; then 34229 # A readlink that we do not know how to use. 34230 # Are there other non-GNU readlinks out there? 34231 READLINK_TESTED=yes 34232 READLINK= 34233 fi 34234 fi 34235 34236 if test "x$READLINK" != x; then 34237 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 34238 else 34239 # Save the current directory for restoring afterwards 34240 STARTDIR=$PWD 34241 COUNTER=0 34242 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 34243 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 34244 cd $sym_link_dir 34245 # Use -P flag to resolve symlinks in directories. 34246 cd `$THEPWDCMD -P` 34247 sym_link_dir=`$THEPWDCMD -P` 34248 # Resolve file symlinks 34249 while test $COUNTER -lt 20; do 34250 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 34251 if test "x$ISLINK" == x; then 34252 # This is not a symbolic link! We are done! 34253 break 34254 fi 34255 # Again resolve directory symlinks since the target of the just found 34256 # link could be in a different directory 34257 cd `$DIRNAME $ISLINK` 34258 sym_link_dir=`$THEPWDCMD -P` 34259 sym_link_file=`$BASENAME $ISLINK` 34260 let COUNTER=COUNTER+1 34261 done 34262 cd $STARTDIR 34263 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 34264 fi 34265 fi 34266 34267 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 34269 $as_echo "no symlink" >&6; } 34270 else 34271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 34272 $as_echo "$SYMLINK_ORIGINAL" >&6; } 34273 34274 # We can't handle ccache by gcc wrappers, since we need to know if we're 34275 # using ccache. Instead ccache usage must be controlled by a configure option. 34276 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 34277 if test "x$COMPILER_BASENAME" = "xccache"; then 34278 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 34279 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 34280 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 34281 fi 34282 fi 34283 34284 34285 COMPILER=$CC 34286 COMPILER_NAME=$COMPILER_NAME 34287 34288 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 34289 # cc -V output typically looks like 34290 # cc: Sun C 5.12 Linux_i386 2011/11/16 34291 # or 34292 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 34293 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 34294 # Check that this is likely to be the Solaris Studio cc. 34295 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 34296 if test $? -ne 0; then 34297 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34298 { $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 34299 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34300 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34301 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34302 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34303 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34304 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34305 fi 34306 # Remove usage instructions (if present), and 34307 # collapse compiler output into a single line 34308 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34309 $SED -e 's/ *[Uu]sage:.*//'` 34310 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34311 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 34312 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 34313 # xlc -qversion output typically looks like 34314 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 34315 # Version: 11.01.0000.0015 34316 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 34317 # Check that this is likely to be the IBM XL C compiler. 34318 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 34319 if test $? -ne 0; then 34320 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34321 { $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 34322 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34323 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34324 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34325 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 34326 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 34327 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34328 fi 34329 # Collapse compiler output into a single line 34330 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34331 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34332 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 34333 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 34334 # There is no specific version flag, but all output starts with a version string. 34335 # First line typically looks something like: 34336 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 34337 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 34338 # Check that this is likely to be Microsoft CL.EXE. 34339 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 34340 if test $? -ne 0; then 34341 { $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 34342 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34343 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34344 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34345 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34346 fi 34347 # Collapse compiler output into a single line 34348 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34349 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34350 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 34351 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 34352 # gcc --version output typically looks like 34353 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 34354 # Copyright (C) 2013 Free Software Foundation, Inc. 34355 # This is free software; see the source for copying conditions. There is NO 34356 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 34357 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34358 # Check that this is likely to be GCC. 34359 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 34360 if test $? -ne 0; then 34361 { $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 34362 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34363 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 34364 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 34365 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34366 fi 34367 # Remove Copyright and legalese from version string, and 34368 # collapse into a single line 34369 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34370 $SED -e 's/ *Copyright .*//'` 34371 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34372 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 34373 elif test "x$TOOLCHAIN_TYPE" = xclang; then 34374 # clang --version output typically looks like 34375 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 34376 # clang version 3.3 (tags/RELEASE_33/final) 34377 # or 34378 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 34379 # Target: x86_64-pc-linux-gnu 34380 # Thread model: posix 34381 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 34382 # Check that this is likely to be clang 34383 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 34384 if test $? -ne 0; then 34385 { $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 34386 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 34387 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 34388 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 34389 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 34390 fi 34391 # Collapse compiler output into a single line 34392 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 34393 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 34394 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 34395 else 34396 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 34397 fi 34398 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 34399 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 34400 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 34401 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 34402 34403 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 34404 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 34405 34406 34407 # Now that we have resolved CC ourself, let autoconf have its go at it 34408 ac_ext=c 34409 ac_cpp='$CPP $CPPFLAGS' 34410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 34411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 34412 ac_compiler_gnu=$ac_cv_c_compiler_gnu 34413 if test -n "$ac_tool_prefix"; then 34414 for ac_prog in $CC 34415 do 34416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 34417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 34418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34419 $as_echo_n "checking for $ac_word... " >&6; } 34420 if ${ac_cv_prog_CC+:} false; then : 34421 $as_echo_n "(cached) " >&6 34422 else 34423 if test -n "$CC"; then 34424 ac_cv_prog_CC="$CC" # Let the user override the test. 34425 else 34426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34427 for as_dir in $PATH 34428 do 34429 IFS=$as_save_IFS 34430 test -z "$as_dir" && as_dir=. 34431 for ac_exec_ext in '' $ac_executable_extensions; do 34432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34433 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 34434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34435 break 2 34436 fi 34437 done 34438 done 34439 IFS=$as_save_IFS 34440 34441 fi 34442 fi 34443 CC=$ac_cv_prog_CC 34444 if test -n "$CC"; then 34445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 34446 $as_echo "$CC" >&6; } 34447 else 34448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34449 $as_echo "no" >&6; } 34450 fi 34451 34452 34453 test -n "$CC" && break 34454 done 34455 fi 34456 if test -z "$CC"; then 34457 ac_ct_CC=$CC 34458 for ac_prog in $CC 34459 do 34460 # Extract the first word of "$ac_prog", so it can be a program name with args. 34461 set dummy $ac_prog; ac_word=$2 34462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34463 $as_echo_n "checking for $ac_word... " >&6; } 34464 if ${ac_cv_prog_ac_ct_CC+:} false; then : 34465 $as_echo_n "(cached) " >&6 34466 else 34467 if test -n "$ac_ct_CC"; then 34468 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 34469 else 34470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34471 for as_dir in $PATH 34472 do 34473 IFS=$as_save_IFS 34474 test -z "$as_dir" && as_dir=. 34475 for ac_exec_ext in '' $ac_executable_extensions; do 34476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34477 ac_cv_prog_ac_ct_CC="$ac_prog" 34478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34479 break 2 34480 fi 34481 done 34482 done 34483 IFS=$as_save_IFS 34484 34485 fi 34486 fi 34487 ac_ct_CC=$ac_cv_prog_ac_ct_CC 34488 if test -n "$ac_ct_CC"; then 34489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 34490 $as_echo "$ac_ct_CC" >&6; } 34491 else 34492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34493 $as_echo "no" >&6; } 34494 fi 34495 34496 34497 test -n "$ac_ct_CC" && break 34498 done 34499 34500 if test "x$ac_ct_CC" = x; then 34501 CC="" 34502 else 34503 case $cross_compiling:$ac_tool_warned in 34504 yes:) 34505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 34506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 34507 ac_tool_warned=yes ;; 34508 esac 34509 CC=$ac_ct_CC 34510 fi 34511 fi 34512 34513 34514 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34516 as_fn_error $? "no acceptable C compiler found in \$PATH 34517 See \`config.log' for more details" "$LINENO" 5; } 34518 34519 # Provide some information about the compiler. 34520 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 34521 set X $ac_compile 34522 ac_compiler=$2 34523 for ac_option in --version -v -V -qversion; do 34524 { { ac_try="$ac_compiler $ac_option >&5" 34525 case "(($ac_try" in 34526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34527 *) ac_try_echo=$ac_try;; 34528 esac 34529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34530 $as_echo "$ac_try_echo"; } >&5 34531 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 34532 ac_status=$? 34533 if test -s conftest.err; then 34534 sed '10a\ 34535 ... rest of stderr output deleted ... 34536 10q' conftest.err >conftest.er1 34537 cat conftest.er1 >&5 34538 fi 34539 rm -f conftest.er1 conftest.err 34540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34541 test $ac_status = 0; } 34542 done 34543 34544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34545 /* end confdefs.h. */ 34546 34547 int 34548 main () 34549 { 34550 34551 ; 34552 return 0; 34553 } 34554 _ACEOF 34555 ac_clean_files_save=$ac_clean_files 34556 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 34557 # Try to create an executable without -o first, disregard a.out. 34558 # It will help us diagnose broken compilers, and finding out an intuition 34559 # of exeext. 34560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 34561 $as_echo_n "checking whether the C compiler works... " >&6; } 34562 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 34563 34564 # The possible output files: 34565 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 34566 34567 ac_rmfiles= 34568 for ac_file in $ac_files 34569 do 34570 case $ac_file in 34571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34572 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 34573 esac 34574 done 34575 rm -f $ac_rmfiles 34576 34577 if { { ac_try="$ac_link_default" 34578 case "(($ac_try" in 34579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34580 *) ac_try_echo=$ac_try;; 34581 esac 34582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34583 $as_echo "$ac_try_echo"; } >&5 34584 (eval "$ac_link_default") 2>&5 34585 ac_status=$? 34586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34587 test $ac_status = 0; }; then : 34588 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 34589 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 34590 # in a Makefile. We should not override ac_cv_exeext if it was cached, 34591 # so that the user can short-circuit this test for compilers unknown to 34592 # Autoconf. 34593 for ac_file in $ac_files '' 34594 do 34595 test -f "$ac_file" || continue 34596 case $ac_file in 34597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 34598 ;; 34599 [ab].out ) 34600 # We found the default executable, but exeext='' is most 34601 # certainly right. 34602 break;; 34603 *.* ) 34604 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 34605 then :; else 34606 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34607 fi 34608 # We set ac_cv_exeext here because the later test for it is not 34609 # safe: cross compilers may not add the suffix if given an `-o' 34610 # argument, so we may need to know it at that point already. 34611 # Even if this section looks crufty: it has the advantage of 34612 # actually working. 34613 break;; 34614 * ) 34615 break;; 34616 esac 34617 done 34618 test "$ac_cv_exeext" = no && ac_cv_exeext= 34619 34620 else 34621 ac_file='' 34622 fi 34623 if test -z "$ac_file"; then : 34624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34625 $as_echo "no" >&6; } 34626 $as_echo "$as_me: failed program was:" >&5 34627 sed 's/^/| /' conftest.$ac_ext >&5 34628 34629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34631 as_fn_error 77 "C compiler cannot create executables 34632 See \`config.log' for more details" "$LINENO" 5; } 34633 else 34634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 34635 $as_echo "yes" >&6; } 34636 fi 34637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 34638 $as_echo_n "checking for C compiler default output file name... " >&6; } 34639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 34640 $as_echo "$ac_file" >&6; } 34641 ac_exeext=$ac_cv_exeext 34642 34643 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 34644 ac_clean_files=$ac_clean_files_save 34645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 34646 $as_echo_n "checking for suffix of executables... " >&6; } 34647 if { { ac_try="$ac_link" 34648 case "(($ac_try" in 34649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34650 *) ac_try_echo=$ac_try;; 34651 esac 34652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34653 $as_echo "$ac_try_echo"; } >&5 34654 (eval "$ac_link") 2>&5 34655 ac_status=$? 34656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34657 test $ac_status = 0; }; then : 34658 # If both `conftest.exe' and `conftest' are `present' (well, observable) 34659 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 34660 # work properly (i.e., refer to `conftest.exe'), while it won't with 34661 # `rm'. 34662 for ac_file in conftest.exe conftest conftest.*; do 34663 test -f "$ac_file" || continue 34664 case $ac_file in 34665 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 34666 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 34667 break;; 34668 * ) break;; 34669 esac 34670 done 34671 else 34672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34674 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 34675 See \`config.log' for more details" "$LINENO" 5; } 34676 fi 34677 rm -f conftest conftest$ac_cv_exeext 34678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 34679 $as_echo "$ac_cv_exeext" >&6; } 34680 34681 rm -f conftest.$ac_ext 34682 EXEEXT=$ac_cv_exeext 34683 ac_exeext=$EXEEXT 34684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34685 /* end confdefs.h. */ 34686 #include <stdio.h> 34687 int 34688 main () 34689 { 34690 FILE *f = fopen ("conftest.out", "w"); 34691 return ferror (f) || fclose (f) != 0; 34692 34693 ; 34694 return 0; 34695 } 34696 _ACEOF 34697 ac_clean_files="$ac_clean_files conftest.out" 34698 # Check that the compiler produces executables we can run. If not, either 34699 # the compiler is broken, or we cross compile. 34700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 34701 $as_echo_n "checking whether we are cross compiling... " >&6; } 34702 if test "$cross_compiling" != yes; then 34703 { { ac_try="$ac_link" 34704 case "(($ac_try" in 34705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34706 *) ac_try_echo=$ac_try;; 34707 esac 34708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34709 $as_echo "$ac_try_echo"; } >&5 34710 (eval "$ac_link") 2>&5 34711 ac_status=$? 34712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34713 test $ac_status = 0; } 34714 if { ac_try='./conftest$ac_cv_exeext' 34715 { { case "(($ac_try" in 34716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34717 *) ac_try_echo=$ac_try;; 34718 esac 34719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34720 $as_echo "$ac_try_echo"; } >&5 34721 (eval "$ac_try") 2>&5 34722 ac_status=$? 34723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34724 test $ac_status = 0; }; }; then 34725 cross_compiling=no 34726 else 34727 if test "$cross_compiling" = maybe; then 34728 cross_compiling=yes 34729 else 34730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34732 as_fn_error $? "cannot run C compiled programs. 34733 If you meant to cross compile, use \`--host'. 34734 See \`config.log' for more details" "$LINENO" 5; } 34735 fi 34736 fi 34737 fi 34738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 34739 $as_echo "$cross_compiling" >&6; } 34740 34741 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 34742 ac_clean_files=$ac_clean_files_save 34743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 34744 $as_echo_n "checking for suffix of object files... " >&6; } 34745 if ${ac_cv_objext+:} false; then : 34746 $as_echo_n "(cached) " >&6 34747 else 34748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34749 /* end confdefs.h. */ 34750 34751 int 34752 main () 34753 { 34754 34755 ; 34756 return 0; 34757 } 34758 _ACEOF 34759 rm -f conftest.o conftest.obj 34760 if { { ac_try="$ac_compile" 34761 case "(($ac_try" in 34762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 34763 *) ac_try_echo=$ac_try;; 34764 esac 34765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 34766 $as_echo "$ac_try_echo"; } >&5 34767 (eval "$ac_compile") 2>&5 34768 ac_status=$? 34769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 34770 test $ac_status = 0; }; then : 34771 for ac_file in conftest.o conftest.obj conftest.*; do 34772 test -f "$ac_file" || continue; 34773 case $ac_file in 34774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 34775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 34776 break;; 34777 esac 34778 done 34779 else 34780 $as_echo "$as_me: failed program was:" >&5 34781 sed 's/^/| /' conftest.$ac_ext >&5 34782 34783 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 34784 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 34785 as_fn_error $? "cannot compute suffix of object files: cannot compile 34786 See \`config.log' for more details" "$LINENO" 5; } 34787 fi 34788 rm -f conftest.$ac_cv_objext conftest.$ac_ext 34789 fi 34790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 34791 $as_echo "$ac_cv_objext" >&6; } 34792 OBJEXT=$ac_cv_objext 34793 ac_objext=$OBJEXT 34794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 34795 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 34796 if ${ac_cv_c_compiler_gnu+:} false; then : 34797 $as_echo_n "(cached) " >&6 34798 else 34799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34800 /* end confdefs.h. */ 34801 34802 int 34803 main () 34804 { 34805 #ifndef __GNUC__ 34806 choke me 34807 #endif 34808 34809 ; 34810 return 0; 34811 } 34812 _ACEOF 34813 if ac_fn_c_try_compile "$LINENO"; then : 34814 ac_compiler_gnu=yes 34815 else 34816 ac_compiler_gnu=no 34817 fi 34818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34819 ac_cv_c_compiler_gnu=$ac_compiler_gnu 34820 34821 fi 34822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 34823 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 34824 if test $ac_compiler_gnu = yes; then 34825 GCC=yes 34826 else 34827 GCC= 34828 fi 34829 ac_test_CFLAGS=${CFLAGS+set} 34830 ac_save_CFLAGS=$CFLAGS 34831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 34832 $as_echo_n "checking whether $CC accepts -g... " >&6; } 34833 if ${ac_cv_prog_cc_g+:} false; then : 34834 $as_echo_n "(cached) " >&6 34835 else 34836 ac_save_c_werror_flag=$ac_c_werror_flag 34837 ac_c_werror_flag=yes 34838 ac_cv_prog_cc_g=no 34839 CFLAGS="-g" 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 if ac_fn_c_try_compile "$LINENO"; then : 34852 ac_cv_prog_cc_g=yes 34853 else 34854 CFLAGS="" 34855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34856 /* end confdefs.h. */ 34857 34858 int 34859 main () 34860 { 34861 34862 ; 34863 return 0; 34864 } 34865 _ACEOF 34866 if ac_fn_c_try_compile "$LINENO"; then : 34867 34868 else 34869 ac_c_werror_flag=$ac_save_c_werror_flag 34870 CFLAGS="-g" 34871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34872 /* end confdefs.h. */ 34873 34874 int 34875 main () 34876 { 34877 34878 ; 34879 return 0; 34880 } 34881 _ACEOF 34882 if ac_fn_c_try_compile "$LINENO"; then : 34883 ac_cv_prog_cc_g=yes 34884 fi 34885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34886 fi 34887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34888 fi 34889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 34890 ac_c_werror_flag=$ac_save_c_werror_flag 34891 fi 34892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 34893 $as_echo "$ac_cv_prog_cc_g" >&6; } 34894 if test "$ac_test_CFLAGS" = set; then 34895 CFLAGS=$ac_save_CFLAGS 34896 elif test $ac_cv_prog_cc_g = yes; then 34897 if test "$GCC" = yes; then 34898 CFLAGS="-g -O2" 34899 else 34900 CFLAGS="-g" 34901 fi 34902 else 34903 if test "$GCC" = yes; then 34904 CFLAGS="-O2" 34905 else 34906 CFLAGS= 34907 fi 34908 fi 34909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 34910 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 34911 if ${ac_cv_prog_cc_c89+:} false; then : 34912 $as_echo_n "(cached) " >&6 34913 else 34914 ac_cv_prog_cc_c89=no 34915 ac_save_CC=$CC 34916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 34917 /* end confdefs.h. */ 34918 #include <stdarg.h> 34919 #include <stdio.h> 34920 struct stat; 34921 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 34922 struct buf { int x; }; 34923 FILE * (*rcsopen) (struct buf *, struct stat *, int); 34924 static char *e (p, i) 34925 char **p; 34926 int i; 34927 { 34928 return p[i]; 34929 } 34930 static char *f (char * (*g) (char **, int), char **p, ...) 34931 { 34932 char *s; 34933 va_list v; 34934 va_start (v,p); 34935 s = g (p, va_arg (v,int)); 34936 va_end (v); 34937 return s; 34938 } 34939 34940 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 34941 function prototypes and stuff, but not '\xHH' hex character constants. 34942 These don't provoke an error unfortunately, instead are silently treated 34943 as 'x'. The following induces an error, until -std is added to get 34944 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 34945 array size at least. It's necessary to write '\x00'==0 to get something 34946 that's true only with -std. */ 34947 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 34948 34949 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 34950 inside strings and character constants. */ 34951 #define FOO(x) 'x' 34952 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 34953 34954 int test (int i, double x); 34955 struct s1 {int (*f) (int a);}; 34956 struct s2 {int (*f) (double a);}; 34957 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 34958 int argc; 34959 char **argv; 34960 int 34961 main () 34962 { 34963 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 34964 ; 34965 return 0; 34966 } 34967 _ACEOF 34968 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 34969 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 34970 do 34971 CC="$ac_save_CC $ac_arg" 34972 if ac_fn_c_try_compile "$LINENO"; then : 34973 ac_cv_prog_cc_c89=$ac_arg 34974 fi 34975 rm -f core conftest.err conftest.$ac_objext 34976 test "x$ac_cv_prog_cc_c89" != "xno" && break 34977 done 34978 rm -f conftest.$ac_ext 34979 CC=$ac_save_CC 34980 34981 fi 34982 # AC_CACHE_VAL 34983 case "x$ac_cv_prog_cc_c89" in 34984 x) 34985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 34986 $as_echo "none needed" >&6; } ;; 34987 xno) 34988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 34989 $as_echo "unsupported" >&6; } ;; 34990 *) 34991 CC="$CC $ac_cv_prog_cc_c89" 34992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 34993 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 34994 esac 34995 if test "x$ac_cv_prog_cc_c89" != xno; then : 34996 34997 fi 34998 34999 ac_ext=cpp 35000 ac_cpp='$CXXCPP $CPPFLAGS' 35001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35004 35005 35006 35007 COMPILER_NAME=C++ 35008 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 35009 35010 if test "x$CXX" != x; then 35011 # User has supplied compiler name already, always let that override. 35012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 35013 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 35014 if test "x`basename $CXX`" = "x$CXX"; then 35015 # A command without a complete path is provided, search $PATH. 35016 35017 for ac_prog in $CXX 35018 do 35019 # Extract the first word of "$ac_prog", so it can be a program name with args. 35020 set dummy $ac_prog; ac_word=$2 35021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35022 $as_echo_n "checking for $ac_word... " >&6; } 35023 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35024 $as_echo_n "(cached) " >&6 35025 else 35026 case $POTENTIAL_CXX in 35027 [\\/]* | ?:[\\/]*) 35028 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35029 ;; 35030 *) 35031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35032 for as_dir in $PATH 35033 do 35034 IFS=$as_save_IFS 35035 test -z "$as_dir" && as_dir=. 35036 for ac_exec_ext in '' $ac_executable_extensions; do 35037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35038 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35040 break 2 35041 fi 35042 done 35043 done 35044 IFS=$as_save_IFS 35045 35046 ;; 35047 esac 35048 fi 35049 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35050 if test -n "$POTENTIAL_CXX"; then 35051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35052 $as_echo "$POTENTIAL_CXX" >&6; } 35053 else 35054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35055 $as_echo "no" >&6; } 35056 fi 35057 35058 35059 test -n "$POTENTIAL_CXX" && break 35060 done 35061 35062 if test "x$POTENTIAL_CXX" != x; then 35063 CXX=$POTENTIAL_CXX 35064 else 35065 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 35066 fi 35067 else 35068 # Otherwise it might already be a complete path 35069 if test ! -x "$CXX"; then 35070 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 35071 fi 35072 fi 35073 else 35074 # No user supplied value. Locate compiler ourselves. 35075 35076 # If we are cross compiling, assume cross compilation tools follows the 35077 # cross compilation standard where they are prefixed with the autoconf 35078 # standard name for the target. For example the binary 35079 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 35080 # If we are not cross compiling, then the default compiler name will be 35081 # used. 35082 35083 CXX= 35084 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 35085 # before checking the rest of the PATH. 35086 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 35087 # step, this should not be necessary. 35088 if test -n "$TOOLCHAIN_PATH"; then 35089 PATH_save="$PATH" 35090 PATH="$TOOLCHAIN_PATH" 35091 if test -n "$ac_tool_prefix"; then 35092 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35093 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35095 $as_echo_n "checking for $ac_word... " >&6; } 35096 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 35097 $as_echo_n "(cached) " >&6 35098 else 35099 case $TOOLCHAIN_PATH_CXX in 35100 [\\/]* | ?:[\\/]*) 35101 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35102 ;; 35103 *) 35104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35105 for as_dir in $PATH 35106 do 35107 IFS=$as_save_IFS 35108 test -z "$as_dir" && as_dir=. 35109 for ac_exec_ext in '' $ac_executable_extensions; do 35110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35111 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35113 break 2 35114 fi 35115 done 35116 done 35117 IFS=$as_save_IFS 35118 35119 ;; 35120 esac 35121 fi 35122 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 35123 if test -n "$TOOLCHAIN_PATH_CXX"; then 35124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 35125 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 35126 else 35127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35128 $as_echo "no" >&6; } 35129 fi 35130 35131 35132 fi 35133 if test -z "$ac_cv_path_TOOLCHAIN_PATH_CXX"; then 35134 ac_pt_TOOLCHAIN_PATH_CXX=$TOOLCHAIN_PATH_CXX 35135 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35136 set dummy $SEARCH_LIST; ac_word=$2 35137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35138 $as_echo_n "checking for $ac_word... " >&6; } 35139 if ${ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX+:} false; then : 35140 $as_echo_n "(cached) " >&6 35141 else 35142 case $ac_pt_TOOLCHAIN_PATH_CXX in 35143 [\\/]* | ?:[\\/]*) 35144 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$ac_pt_TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 35145 ;; 35146 *) 35147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35148 for as_dir in $PATH 35149 do 35150 IFS=$as_save_IFS 35151 test -z "$as_dir" && as_dir=. 35152 for ac_exec_ext in '' $ac_executable_extensions; do 35153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35154 ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 35155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35156 break 2 35157 fi 35158 done 35159 done 35160 IFS=$as_save_IFS 35161 35162 ;; 35163 esac 35164 fi 35165 ac_pt_TOOLCHAIN_PATH_CXX=$ac_cv_path_ac_pt_TOOLCHAIN_PATH_CXX 35166 if test -n "$ac_pt_TOOLCHAIN_PATH_CXX"; then 35167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_TOOLCHAIN_PATH_CXX" >&5 35168 $as_echo "$ac_pt_TOOLCHAIN_PATH_CXX" >&6; } 35169 else 35170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35171 $as_echo "no" >&6; } 35172 fi 35173 35174 if test "x$ac_pt_TOOLCHAIN_PATH_CXX" = x; then 35175 TOOLCHAIN_PATH_CXX="" 35176 else 35177 case $cross_compiling:$ac_tool_warned in 35178 yes:) 35179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35181 ac_tool_warned=yes ;; 35182 esac 35183 TOOLCHAIN_PATH_CXX=$ac_pt_TOOLCHAIN_PATH_CXX 35184 fi 35185 else 35186 TOOLCHAIN_PATH_CXX="$ac_cv_path_TOOLCHAIN_PATH_CXX" 35187 fi 35188 35189 CXX=$TOOLCHAIN_PATH_CXX 35190 PATH="$PATH_save" 35191 fi 35192 35193 # AC_PATH_TOOL can't be run multiple times with the same variable, 35194 # so create a new name for this run. 35195 if test "x$CXX" = x; then 35196 if test -n "$ac_tool_prefix"; then 35197 # Extract the first word of "${ac_tool_prefix}$SEARCH_LIST", so it can be a program name with args. 35198 set dummy ${ac_tool_prefix}$SEARCH_LIST; ac_word=$2 35199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35200 $as_echo_n "checking for $ac_word... " >&6; } 35201 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 35202 $as_echo_n "(cached) " >&6 35203 else 35204 case $POTENTIAL_CXX in 35205 [\\/]* | ?:[\\/]*) 35206 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 35207 ;; 35208 *) 35209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35210 for as_dir in $PATH 35211 do 35212 IFS=$as_save_IFS 35213 test -z "$as_dir" && as_dir=. 35214 for ac_exec_ext in '' $ac_executable_extensions; do 35215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35216 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35218 break 2 35219 fi 35220 done 35221 done 35222 IFS=$as_save_IFS 35223 35224 ;; 35225 esac 35226 fi 35227 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 35228 if test -n "$POTENTIAL_CXX"; then 35229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 35230 $as_echo "$POTENTIAL_CXX" >&6; } 35231 else 35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35233 $as_echo "no" >&6; } 35234 fi 35235 35236 35237 fi 35238 if test -z "$ac_cv_path_POTENTIAL_CXX"; then 35239 ac_pt_POTENTIAL_CXX=$POTENTIAL_CXX 35240 # Extract the first word of "$SEARCH_LIST", so it can be a program name with args. 35241 set dummy $SEARCH_LIST; ac_word=$2 35242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35243 $as_echo_n "checking for $ac_word... " >&6; } 35244 if ${ac_cv_path_ac_pt_POTENTIAL_CXX+:} false; then : 35245 $as_echo_n "(cached) " >&6 35246 else 35247 case $ac_pt_POTENTIAL_CXX in 35248 [\\/]* | ?:[\\/]*) 35249 ac_cv_path_ac_pt_POTENTIAL_CXX="$ac_pt_POTENTIAL_CXX" # Let the user override the test with a path. 35250 ;; 35251 *) 35252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35253 for as_dir in $PATH 35254 do 35255 IFS=$as_save_IFS 35256 test -z "$as_dir" && as_dir=. 35257 for ac_exec_ext in '' $ac_executable_extensions; do 35258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35259 ac_cv_path_ac_pt_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 35260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35261 break 2 35262 fi 35263 done 35264 done 35265 IFS=$as_save_IFS 35266 35267 ;; 35268 esac 35269 fi 35270 ac_pt_POTENTIAL_CXX=$ac_cv_path_ac_pt_POTENTIAL_CXX 35271 if test -n "$ac_pt_POTENTIAL_CXX"; then 35272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_POTENTIAL_CXX" >&5 35273 $as_echo "$ac_pt_POTENTIAL_CXX" >&6; } 35274 else 35275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35276 $as_echo "no" >&6; } 35277 fi 35278 35279 if test "x$ac_pt_POTENTIAL_CXX" = x; then 35280 POTENTIAL_CXX="" 35281 else 35282 case $cross_compiling:$ac_tool_warned in 35283 yes:) 35284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35286 ac_tool_warned=yes ;; 35287 esac 35288 POTENTIAL_CXX=$ac_pt_POTENTIAL_CXX 35289 fi 35290 else 35291 POTENTIAL_CXX="$ac_cv_path_POTENTIAL_CXX" 35292 fi 35293 35294 CXX=$POTENTIAL_CXX 35295 fi 35296 35297 if test "x$CXX" = x; then 35298 35299 # Print a helpful message on how to acquire the necessary build dependency. 35300 # devkit is the help tag: freetype, cups, alsa etc 35301 MISSING_DEPENDENCY=devkit 35302 35303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35304 cygwin_help $MISSING_DEPENDENCY 35305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35306 msys_help $MISSING_DEPENDENCY 35307 else 35308 PKGHANDLER_COMMAND= 35309 35310 case $PKGHANDLER in 35311 apt-get) 35312 apt_help $MISSING_DEPENDENCY ;; 35313 yum) 35314 yum_help $MISSING_DEPENDENCY ;; 35315 brew) 35316 brew_help $MISSING_DEPENDENCY ;; 35317 port) 35318 port_help $MISSING_DEPENDENCY ;; 35319 pkgutil) 35320 pkgutil_help $MISSING_DEPENDENCY ;; 35321 pkgadd) 35322 pkgadd_help $MISSING_DEPENDENCY ;; 35323 esac 35324 35325 if test "x$PKGHANDLER_COMMAND" != x; then 35326 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 35327 fi 35328 fi 35329 35330 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 35331 fi 35332 fi 35333 35334 # Now we have a compiler binary in CXX. Make sure it's okay. 35335 35336 # Only process if variable expands to non-empty 35337 35338 if test "x$CXX" != x; then 35339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35340 35341 # First separate the path from the arguments. This will split at the first 35342 # space. 35343 complete="$CXX" 35344 path="${complete%% *}" 35345 tmp="$complete EOL" 35346 arguments="${tmp#* }" 35347 35348 # Input might be given as Windows format, start by converting to 35349 # unix format. 35350 new_path=`$CYGPATH -u "$path"` 35351 35352 # Now try to locate executable using which 35353 new_path=`$WHICH "$new_path" 2> /dev/null` 35354 # bat and cmd files are not always considered executable in cygwin causing which 35355 # to not find them 35356 if test "x$new_path" = x \ 35357 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35358 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35359 new_path=`$CYGPATH -u "$path"` 35360 fi 35361 if test "x$new_path" = x; then 35362 # Oops. Which didn't find the executable. 35363 # The splitting of arguments from the executable at a space might have been incorrect, 35364 # since paths with space are more likely in Windows. Give it another try with the whole 35365 # argument. 35366 path="$complete" 35367 arguments="EOL" 35368 new_path=`$CYGPATH -u "$path"` 35369 new_path=`$WHICH "$new_path" 2> /dev/null` 35370 # bat and cmd files are not always considered executable in cygwin causing which 35371 # to not find them 35372 if test "x$new_path" = x \ 35373 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35374 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35375 new_path=`$CYGPATH -u "$path"` 35376 fi 35377 if test "x$new_path" = x; then 35378 # It's still not found. Now this is an unrecoverable error. 35379 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35380 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35381 has_space=`$ECHO "$complete" | $GREP " "` 35382 if test "x$has_space" != x; then 35383 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35384 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35385 fi 35386 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35387 fi 35388 fi 35389 35390 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35391 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35392 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35393 # "foo.exe" is OK but "foo" is an error. 35394 # 35395 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35396 # It is also a way to make sure we got the proper file name for the real test later on. 35397 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35398 if test "x$test_shortpath" = x; then 35399 # Short path failed, file does not exist as specified. 35400 # Try adding .exe or .cmd 35401 if test -f "${new_path}.exe"; then 35402 input_to_shortpath="${new_path}.exe" 35403 elif test -f "${new_path}.cmd"; then 35404 input_to_shortpath="${new_path}.cmd" 35405 else 35406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 35407 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 35408 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35409 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35410 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35411 fi 35412 else 35413 input_to_shortpath="$new_path" 35414 fi 35415 35416 # Call helper function which possibly converts this using DOS-style short mode. 35417 # If so, the updated path is stored in $new_path. 35418 new_path="$input_to_shortpath" 35419 35420 input_path="$input_to_shortpath" 35421 # Check if we need to convert this using DOS-style short mode. If the path 35422 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35423 # take no chances and rewrite it. 35424 # Note: m4 eats our [], so we need to use [ and ] instead. 35425 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35426 if test "x$has_forbidden_chars" != x; then 35427 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35428 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35429 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35430 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35431 # Going to short mode and back again did indeed matter. Since short mode is 35432 # case insensitive, let's make it lowercase to improve readability. 35433 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35434 # Now convert it back to Unix-style (cygpath) 35435 input_path=`$CYGPATH -u "$shortmode_path"` 35436 new_path="$input_path" 35437 fi 35438 fi 35439 35440 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35441 if test "x$test_cygdrive_prefix" = x; then 35442 # As a simple fix, exclude /usr/bin since it's not a real path. 35443 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35444 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35445 # a path prefixed by /cygdrive for fixpath to work. 35446 new_path="$CYGWIN_ROOT_PATH$input_path" 35447 fi 35448 fi 35449 35450 # remove trailing .exe if any 35451 new_path="${new_path/%.exe/}" 35452 35453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35454 35455 # First separate the path from the arguments. This will split at the first 35456 # space. 35457 complete="$CXX" 35458 path="${complete%% *}" 35459 tmp="$complete EOL" 35460 arguments="${tmp#* }" 35461 35462 # Input might be given as Windows format, start by converting to 35463 # unix format. 35464 new_path="$path" 35465 35466 windows_path="$new_path" 35467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35468 unix_path=`$CYGPATH -u "$windows_path"` 35469 new_path="$unix_path" 35470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35472 new_path="$unix_path" 35473 fi 35474 35475 35476 # Now try to locate executable using which 35477 new_path=`$WHICH "$new_path" 2> /dev/null` 35478 35479 if test "x$new_path" = x; then 35480 # Oops. Which didn't find the executable. 35481 # The splitting of arguments from the executable at a space might have been incorrect, 35482 # since paths with space are more likely in Windows. Give it another try with the whole 35483 # argument. 35484 path="$complete" 35485 arguments="EOL" 35486 new_path="$path" 35487 35488 windows_path="$new_path" 35489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35490 unix_path=`$CYGPATH -u "$windows_path"` 35491 new_path="$unix_path" 35492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35493 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35494 new_path="$unix_path" 35495 fi 35496 35497 35498 new_path=`$WHICH "$new_path" 2> /dev/null` 35499 # bat and cmd files are not always considered executable in MSYS causing which 35500 # to not find them 35501 if test "x$new_path" = x \ 35502 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35503 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35504 new_path="$path" 35505 35506 windows_path="$new_path" 35507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35508 unix_path=`$CYGPATH -u "$windows_path"` 35509 new_path="$unix_path" 35510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35512 new_path="$unix_path" 35513 fi 35514 35515 fi 35516 35517 if test "x$new_path" = x; then 35518 # It's still not found. Now this is an unrecoverable error. 35519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35520 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35521 has_space=`$ECHO "$complete" | $GREP " "` 35522 if test "x$has_space" != x; then 35523 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35524 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35525 fi 35526 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35527 fi 35528 fi 35529 35530 # Now new_path has a complete unix path to the binary 35531 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35532 # Keep paths in /bin as-is, but remove trailing .exe if any 35533 new_path="${new_path/%.exe/}" 35534 # Do not save /bin paths to all_fixpath_prefixes! 35535 else 35536 # Not in mixed or Windows style, start by that. 35537 new_path=`cmd //c echo $new_path` 35538 35539 input_path="$new_path" 35540 # Check if we need to convert this using DOS-style short mode. If the path 35541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35542 # take no chances and rewrite it. 35543 # Note: m4 eats our [], so we need to use [ and ] instead. 35544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35545 if test "x$has_forbidden_chars" != x; then 35546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35548 fi 35549 35550 # Output is in $new_path 35551 35552 windows_path="$new_path" 35553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35554 unix_path=`$CYGPATH -u "$windows_path"` 35555 new_path="$unix_path" 35556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35557 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35558 new_path="$unix_path" 35559 fi 35560 35561 # remove trailing .exe if any 35562 new_path="${new_path/%.exe/}" 35563 35564 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35565 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35566 fi 35567 35568 else 35569 # We're on a unix platform. Hooray! :) 35570 # First separate the path from the arguments. This will split at the first 35571 # space. 35572 complete="$CXX" 35573 path="${complete%% *}" 35574 tmp="$complete EOL" 35575 arguments="${tmp#* }" 35576 35577 # Cannot rely on the command "which" here since it doesn't always work. 35578 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35579 if test -z "$is_absolute_path"; then 35580 # Path to executable is not absolute. Find it. 35581 IFS_save="$IFS" 35582 IFS=: 35583 for p in $PATH; do 35584 if test -f "$p/$path" && test -x "$p/$path"; then 35585 new_path="$p/$path" 35586 break 35587 fi 35588 done 35589 IFS="$IFS_save" 35590 else 35591 # This is an absolute path, we can use it without further modifications. 35592 new_path="$path" 35593 fi 35594 35595 if test "x$new_path" = x; then 35596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 35597 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 35598 has_space=`$ECHO "$complete" | $GREP " "` 35599 if test "x$has_space" != x; then 35600 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35601 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35602 fi 35603 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 35604 fi 35605 fi 35606 35607 # Now join together the path and the arguments once again 35608 if test "x$arguments" != xEOL; then 35609 new_complete="$new_path ${arguments% *}" 35610 else 35611 new_complete="$new_path" 35612 fi 35613 35614 if test "x$complete" != "x$new_complete"; then 35615 CXX="$new_complete" 35616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 35617 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 35618 fi 35619 fi 35620 35621 TEST_COMPILER="$CXX" 35622 35623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 35624 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 35625 SYMLINK_ORIGINAL="$TEST_COMPILER" 35626 35627 if test "x$OPENJDK_BUILD_OS" != xwindows; then 35628 # Follow a chain of symbolic links. Use readlink 35629 # where it exists, else fall back to horribly 35630 # complicated shell code. 35631 if test "x$READLINK_TESTED" != yes; then 35632 # On MacOSX there is a readlink tool with a different 35633 # purpose than the GNU readlink tool. Check the found readlink. 35634 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 35635 if test "x$ISGNU" = x; then 35636 # A readlink that we do not know how to use. 35637 # Are there other non-GNU readlinks out there? 35638 READLINK_TESTED=yes 35639 READLINK= 35640 fi 35641 fi 35642 35643 if test "x$READLINK" != x; then 35644 SYMLINK_ORIGINAL=`$READLINK -f $SYMLINK_ORIGINAL` 35645 else 35646 # Save the current directory for restoring afterwards 35647 STARTDIR=$PWD 35648 COUNTER=0 35649 sym_link_dir=`$DIRNAME $SYMLINK_ORIGINAL` 35650 sym_link_file=`$BASENAME $SYMLINK_ORIGINAL` 35651 cd $sym_link_dir 35652 # Use -P flag to resolve symlinks in directories. 35653 cd `$THEPWDCMD -P` 35654 sym_link_dir=`$THEPWDCMD -P` 35655 # Resolve file symlinks 35656 while test $COUNTER -lt 20; do 35657 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 35658 if test "x$ISLINK" == x; then 35659 # This is not a symbolic link! We are done! 35660 break 35661 fi 35662 # Again resolve directory symlinks since the target of the just found 35663 # link could be in a different directory 35664 cd `$DIRNAME $ISLINK` 35665 sym_link_dir=`$THEPWDCMD -P` 35666 sym_link_file=`$BASENAME $ISLINK` 35667 let COUNTER=COUNTER+1 35668 done 35669 cd $STARTDIR 35670 SYMLINK_ORIGINAL=$sym_link_dir/$sym_link_file 35671 fi 35672 fi 35673 35674 if test "x$TEST_COMPILER" = "x$SYMLINK_ORIGINAL"; then 35675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no symlink" >&5 35676 $as_echo "no symlink" >&6; } 35677 else 35678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMLINK_ORIGINAL" >&5 35679 $as_echo "$SYMLINK_ORIGINAL" >&6; } 35680 35681 # We can't handle ccache by gcc wrappers, since we need to know if we're 35682 # using ccache. Instead ccache usage must be controlled by a configure option. 35683 COMPILER_BASENAME=`$BASENAME "$SYMLINK_ORIGINAL"` 35684 if test "x$COMPILER_BASENAME" = "xccache"; then 35685 { $as_echo "$as_me:${as_lineno-$LINENO}: Please use --enable-ccache instead of providing a wrapped compiler." >&5 35686 $as_echo "$as_me: Please use --enable-ccache instead of providing a wrapped compiler." >&6;} 35687 as_fn_error $? "$TEST_COMPILER is a symbolic link to ccache. This is not supported." "$LINENO" 5 35688 fi 35689 fi 35690 35691 35692 COMPILER=$CXX 35693 COMPILER_NAME=$COMPILER_NAME 35694 35695 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 35696 # cc -V output typically looks like 35697 # cc: Sun C 5.12 Linux_i386 2011/11/16 35698 # or 35699 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 35700 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 35701 # Check that this is likely to be the Solaris Studio cc. 35702 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 35703 if test $? -ne 0; then 35704 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35705 { $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 35706 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35707 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35708 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35709 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35710 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35711 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35712 fi 35713 # Remove usage instructions (if present), and 35714 # collapse compiler output into a single line 35715 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35716 $SED -e 's/ *[Uu]sage:.*//'` 35717 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35718 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 35719 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 35720 # xlc -qversion output typically looks like 35721 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 35722 # Version: 11.01.0000.0015 35723 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 35724 # Check that this is likely to be the IBM XL C compiler. 35725 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 35726 if test $? -ne 0; then 35727 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35728 { $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 35729 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35730 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35731 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35732 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 35733 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 35734 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35735 fi 35736 # Collapse compiler output into a single line 35737 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35738 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35739 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 35740 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 35741 # There is no specific version flag, but all output starts with a version string. 35742 # First line typically looks something like: 35743 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 35744 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 35745 # Check that this is likely to be Microsoft CL.EXE. 35746 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 35747 if test $? -ne 0; then 35748 { $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 35749 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35750 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35751 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35752 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35753 fi 35754 # Collapse compiler output into a single line 35755 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35756 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35757 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 35758 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 35759 # gcc --version output typically looks like 35760 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 35761 # Copyright (C) 2013 Free Software Foundation, Inc. 35762 # This is free software; see the source for copying conditions. There is NO 35763 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 35764 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35765 # Check that this is likely to be GCC. 35766 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 35767 if test $? -ne 0; then 35768 { $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 35769 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35770 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 35771 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 35772 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35773 fi 35774 # Remove Copyright and legalese from version string, and 35775 # collapse into a single line 35776 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35777 $SED -e 's/ *Copyright .*//'` 35778 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35779 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 35780 elif test "x$TOOLCHAIN_TYPE" = xclang; then 35781 # clang --version output typically looks like 35782 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 35783 # clang version 3.3 (tags/RELEASE_33/final) 35784 # or 35785 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 35786 # Target: x86_64-pc-linux-gnu 35787 # Thread model: posix 35788 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 35789 # Check that this is likely to be clang 35790 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 35791 if test $? -ne 0; then 35792 { $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 35793 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 35794 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 35795 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 35796 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 35797 fi 35798 # Collapse compiler output into a single line 35799 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 35800 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 35801 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 35802 else 35803 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 35804 fi 35805 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 35806 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 35807 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 35808 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 35809 35810 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 35811 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 35812 35813 35814 # Now that we have resolved CXX ourself, let autoconf have its go at it 35815 ac_ext=cpp 35816 ac_cpp='$CXXCPP $CPPFLAGS' 35817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35820 if test -z "$CXX"; then 35821 if test -n "$CCC"; then 35822 CXX=$CCC 35823 else 35824 if test -n "$ac_tool_prefix"; then 35825 for ac_prog in $CXX 35826 do 35827 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35830 $as_echo_n "checking for $ac_word... " >&6; } 35831 if ${ac_cv_prog_CXX+:} false; then : 35832 $as_echo_n "(cached) " >&6 35833 else 35834 if test -n "$CXX"; then 35835 ac_cv_prog_CXX="$CXX" # Let the user override the test. 35836 else 35837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35838 for as_dir in $PATH 35839 do 35840 IFS=$as_save_IFS 35841 test -z "$as_dir" && as_dir=. 35842 for ac_exec_ext in '' $ac_executable_extensions; do 35843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35844 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 35845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35846 break 2 35847 fi 35848 done 35849 done 35850 IFS=$as_save_IFS 35851 35852 fi 35853 fi 35854 CXX=$ac_cv_prog_CXX 35855 if test -n "$CXX"; then 35856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 35857 $as_echo "$CXX" >&6; } 35858 else 35859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35860 $as_echo "no" >&6; } 35861 fi 35862 35863 35864 test -n "$CXX" && break 35865 done 35866 fi 35867 if test -z "$CXX"; then 35868 ac_ct_CXX=$CXX 35869 for ac_prog in $CXX 35870 do 35871 # Extract the first word of "$ac_prog", so it can be a program name with args. 35872 set dummy $ac_prog; ac_word=$2 35873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35874 $as_echo_n "checking for $ac_word... " >&6; } 35875 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 35876 $as_echo_n "(cached) " >&6 35877 else 35878 if test -n "$ac_ct_CXX"; then 35879 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 35880 else 35881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35882 for as_dir in $PATH 35883 do 35884 IFS=$as_save_IFS 35885 test -z "$as_dir" && as_dir=. 35886 for ac_exec_ext in '' $ac_executable_extensions; do 35887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35888 ac_cv_prog_ac_ct_CXX="$ac_prog" 35889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35890 break 2 35891 fi 35892 done 35893 done 35894 IFS=$as_save_IFS 35895 35896 fi 35897 fi 35898 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 35899 if test -n "$ac_ct_CXX"; then 35900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 35901 $as_echo "$ac_ct_CXX" >&6; } 35902 else 35903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35904 $as_echo "no" >&6; } 35905 fi 35906 35907 35908 test -n "$ac_ct_CXX" && break 35909 done 35910 35911 if test "x$ac_ct_CXX" = x; then 35912 CXX="g++" 35913 else 35914 case $cross_compiling:$ac_tool_warned in 35915 yes:) 35916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35918 ac_tool_warned=yes ;; 35919 esac 35920 CXX=$ac_ct_CXX 35921 fi 35922 fi 35923 35924 fi 35925 fi 35926 # Provide some information about the compiler. 35927 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 35928 set X $ac_compile 35929 ac_compiler=$2 35930 for ac_option in --version -v -V -qversion; do 35931 { { ac_try="$ac_compiler $ac_option >&5" 35932 case "(($ac_try" in 35933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 35934 *) ac_try_echo=$ac_try;; 35935 esac 35936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 35937 $as_echo "$ac_try_echo"; } >&5 35938 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 35939 ac_status=$? 35940 if test -s conftest.err; then 35941 sed '10a\ 35942 ... rest of stderr output deleted ... 35943 10q' conftest.err >conftest.er1 35944 cat conftest.er1 >&5 35945 fi 35946 rm -f conftest.er1 conftest.err 35947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 35948 test $ac_status = 0; } 35949 done 35950 35951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 35952 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 35953 if ${ac_cv_cxx_compiler_gnu+:} false; then : 35954 $as_echo_n "(cached) " >&6 35955 else 35956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35957 /* end confdefs.h. */ 35958 35959 int 35960 main () 35961 { 35962 #ifndef __GNUC__ 35963 choke me 35964 #endif 35965 35966 ; 35967 return 0; 35968 } 35969 _ACEOF 35970 if ac_fn_cxx_try_compile "$LINENO"; then : 35971 ac_compiler_gnu=yes 35972 else 35973 ac_compiler_gnu=no 35974 fi 35975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 35976 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 35977 35978 fi 35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 35980 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 35981 if test $ac_compiler_gnu = yes; then 35982 GXX=yes 35983 else 35984 GXX= 35985 fi 35986 ac_test_CXXFLAGS=${CXXFLAGS+set} 35987 ac_save_CXXFLAGS=$CXXFLAGS 35988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 35989 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 35990 if ${ac_cv_prog_cxx_g+:} false; then : 35991 $as_echo_n "(cached) " >&6 35992 else 35993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 35994 ac_cxx_werror_flag=yes 35995 ac_cv_prog_cxx_g=no 35996 CXXFLAGS="-g" 35997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35998 /* end confdefs.h. */ 35999 36000 int 36001 main () 36002 { 36003 36004 ; 36005 return 0; 36006 } 36007 _ACEOF 36008 if ac_fn_cxx_try_compile "$LINENO"; then : 36009 ac_cv_prog_cxx_g=yes 36010 else 36011 CXXFLAGS="" 36012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36013 /* end confdefs.h. */ 36014 36015 int 36016 main () 36017 { 36018 36019 ; 36020 return 0; 36021 } 36022 _ACEOF 36023 if ac_fn_cxx_try_compile "$LINENO"; then : 36024 36025 else 36026 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36027 CXXFLAGS="-g" 36028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36029 /* end confdefs.h. */ 36030 36031 int 36032 main () 36033 { 36034 36035 ; 36036 return 0; 36037 } 36038 _ACEOF 36039 if ac_fn_cxx_try_compile "$LINENO"; then : 36040 ac_cv_prog_cxx_g=yes 36041 fi 36042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36043 fi 36044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36045 fi 36046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 36047 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 36048 fi 36049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 36050 $as_echo "$ac_cv_prog_cxx_g" >&6; } 36051 if test "$ac_test_CXXFLAGS" = set; then 36052 CXXFLAGS=$ac_save_CXXFLAGS 36053 elif test $ac_cv_prog_cxx_g = yes; then 36054 if test "$GXX" = yes; then 36055 CXXFLAGS="-g -O2" 36056 else 36057 CXXFLAGS="-g" 36058 fi 36059 else 36060 if test "$GXX" = yes; then 36061 CXXFLAGS="-O2" 36062 else 36063 CXXFLAGS= 36064 fi 36065 fi 36066 ac_ext=cpp 36067 ac_cpp='$CXXCPP $CPPFLAGS' 36068 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36069 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36070 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36071 36072 36073 # This is the compiler version number on the form X.Y[.Z] 36074 36075 36076 36077 36078 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 36079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 36080 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 36081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 36082 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 36083 fi 36084 36085 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 36086 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 36087 { $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 36088 $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;} 36089 fi 36090 36091 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 36092 { $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 36093 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 36094 fi 36095 36096 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 36097 36098 36099 if test "x$TOOLCHAIN_MINIMUM_VERSION" != x; then 36100 36101 36102 36103 36104 36105 36106 36107 36108 36109 36110 36111 36112 36113 36114 36115 36116 36117 36118 36119 36120 36121 36122 36123 36124 36125 36126 36127 36128 36129 36130 36131 36132 36133 36134 36135 36136 36137 36138 36139 36140 36141 36142 36143 36144 36145 36146 36147 36148 36149 # Execute function body 36150 36151 # Need to assign to a variable since m4 is blocked from modifying parts in []. 36152 REFERENCE_VERSION=$TOOLCHAIN_MINIMUM_VERSION 36153 36154 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 36155 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 36156 fi 36157 36158 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 36159 as_fn_error $? "Internal error: Cannot compare to $TOOLCHAIN_MINIMUM_VERSION, only parts < 99999 is supported" "$LINENO" 5 36160 fi 36161 36162 # Version comparison method inspired by http://stackoverflow.com/a/24067243 36163 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 36164 36165 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 36166 : 36167 36168 else 36169 : 36170 36171 { $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 36172 $as_echo "$as_me: WARNING: You are using $TOOLCHAIN_TYPE older than $TOOLCHAIN_MINIMUM_VERSION. This is not a supported configuration." >&2;} 36173 36174 36175 fi 36176 36177 36178 36179 36180 36181 36182 36183 36184 36185 36186 36187 36188 36189 36190 fi 36191 36192 # 36193 # Setup the preprocessor (CPP and CXXCPP) 36194 # 36195 ac_ext=c 36196 ac_cpp='$CPP $CPPFLAGS' 36197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36199 ac_compiler_gnu=$ac_cv_c_compiler_gnu 36200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 36201 $as_echo_n "checking how to run the C preprocessor... " >&6; } 36202 # On Suns, sometimes $CPP names a directory. 36203 if test -n "$CPP" && test -d "$CPP"; then 36204 CPP= 36205 fi 36206 if test -z "$CPP"; then 36207 if ${ac_cv_prog_CPP+:} false; then : 36208 $as_echo_n "(cached) " >&6 36209 else 36210 # Double quotes because CPP needs to be expanded 36211 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 36212 do 36213 ac_preproc_ok=false 36214 for ac_c_preproc_warn_flag in '' yes 36215 do 36216 # Use a header file that comes with gcc, so configuring glibc 36217 # with a fresh cross-compiler works. 36218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36219 # <limits.h> exists even on freestanding compilers. 36220 # On the NeXT, cc -E runs the code through the compiler's parser, 36221 # not just through cpp. "Syntax error" is here to catch this case. 36222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36223 /* end confdefs.h. */ 36224 #ifdef __STDC__ 36225 # include <limits.h> 36226 #else 36227 # include <assert.h> 36228 #endif 36229 Syntax error 36230 _ACEOF 36231 if ac_fn_c_try_cpp "$LINENO"; then : 36232 36233 else 36234 # Broken: fails on valid input. 36235 continue 36236 fi 36237 rm -f conftest.err conftest.i conftest.$ac_ext 36238 36239 # OK, works on sane cases. Now check whether nonexistent headers 36240 # can be detected and how. 36241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36242 /* end confdefs.h. */ 36243 #include <ac_nonexistent.h> 36244 _ACEOF 36245 if ac_fn_c_try_cpp "$LINENO"; then : 36246 # Broken: success on invalid input. 36247 continue 36248 else 36249 # Passes both tests. 36250 ac_preproc_ok=: 36251 break 36252 fi 36253 rm -f conftest.err conftest.i conftest.$ac_ext 36254 36255 done 36256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36257 rm -f conftest.i conftest.err conftest.$ac_ext 36258 if $ac_preproc_ok; then : 36259 break 36260 fi 36261 36262 done 36263 ac_cv_prog_CPP=$CPP 36264 36265 fi 36266 CPP=$ac_cv_prog_CPP 36267 else 36268 ac_cv_prog_CPP=$CPP 36269 fi 36270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 36271 $as_echo "$CPP" >&6; } 36272 ac_preproc_ok=false 36273 for ac_c_preproc_warn_flag in '' yes 36274 do 36275 # Use a header file that comes with gcc, so configuring glibc 36276 # with a fresh cross-compiler works. 36277 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36278 # <limits.h> exists even on freestanding compilers. 36279 # On the NeXT, cc -E runs the code through the compiler's parser, 36280 # not just through cpp. "Syntax error" is here to catch this case. 36281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36282 /* end confdefs.h. */ 36283 #ifdef __STDC__ 36284 # include <limits.h> 36285 #else 36286 # include <assert.h> 36287 #endif 36288 Syntax error 36289 _ACEOF 36290 if ac_fn_c_try_cpp "$LINENO"; then : 36291 36292 else 36293 # Broken: fails on valid input. 36294 continue 36295 fi 36296 rm -f conftest.err conftest.i conftest.$ac_ext 36297 36298 # OK, works on sane cases. Now check whether nonexistent headers 36299 # can be detected and how. 36300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36301 /* end confdefs.h. */ 36302 #include <ac_nonexistent.h> 36303 _ACEOF 36304 if ac_fn_c_try_cpp "$LINENO"; then : 36305 # Broken: success on invalid input. 36306 continue 36307 else 36308 # Passes both tests. 36309 ac_preproc_ok=: 36310 break 36311 fi 36312 rm -f conftest.err conftest.i conftest.$ac_ext 36313 36314 done 36315 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36316 rm -f conftest.i conftest.err conftest.$ac_ext 36317 if $ac_preproc_ok; then : 36318 36319 else 36320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36322 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 36323 See \`config.log' for more details" "$LINENO" 5; } 36324 fi 36325 36326 ac_ext=cpp 36327 ac_cpp='$CXXCPP $CPPFLAGS' 36328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36331 36332 36333 # Only process if variable expands to non-empty 36334 36335 if test "x$CPP" != x; then 36336 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36337 36338 # First separate the path from the arguments. This will split at the first 36339 # space. 36340 complete="$CPP" 36341 path="${complete%% *}" 36342 tmp="$complete EOL" 36343 arguments="${tmp#* }" 36344 36345 # Input might be given as Windows format, start by converting to 36346 # unix format. 36347 new_path=`$CYGPATH -u "$path"` 36348 36349 # Now try to locate executable using which 36350 new_path=`$WHICH "$new_path" 2> /dev/null` 36351 # bat and cmd files are not always considered executable in cygwin causing which 36352 # to not find them 36353 if test "x$new_path" = x \ 36354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36356 new_path=`$CYGPATH -u "$path"` 36357 fi 36358 if test "x$new_path" = x; then 36359 # Oops. Which didn't find the executable. 36360 # The splitting of arguments from the executable at a space might have been incorrect, 36361 # since paths with space are more likely in Windows. Give it another try with the whole 36362 # argument. 36363 path="$complete" 36364 arguments="EOL" 36365 new_path=`$CYGPATH -u "$path"` 36366 new_path=`$WHICH "$new_path" 2> /dev/null` 36367 # bat and cmd files are not always considered executable in cygwin causing which 36368 # to not find them 36369 if test "x$new_path" = x \ 36370 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36371 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36372 new_path=`$CYGPATH -u "$path"` 36373 fi 36374 if test "x$new_path" = x; then 36375 # It's still not found. Now this is an unrecoverable error. 36376 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36377 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36378 has_space=`$ECHO "$complete" | $GREP " "` 36379 if test "x$has_space" != x; then 36380 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36381 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36382 fi 36383 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36384 fi 36385 fi 36386 36387 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36388 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36389 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36390 # "foo.exe" is OK but "foo" is an error. 36391 # 36392 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36393 # It is also a way to make sure we got the proper file name for the real test later on. 36394 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36395 if test "x$test_shortpath" = x; then 36396 # Short path failed, file does not exist as specified. 36397 # Try adding .exe or .cmd 36398 if test -f "${new_path}.exe"; then 36399 input_to_shortpath="${new_path}.exe" 36400 elif test -f "${new_path}.cmd"; then 36401 input_to_shortpath="${new_path}.cmd" 36402 else 36403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 36404 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 36405 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36406 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36407 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36408 fi 36409 else 36410 input_to_shortpath="$new_path" 36411 fi 36412 36413 # Call helper function which possibly converts this using DOS-style short mode. 36414 # If so, the updated path is stored in $new_path. 36415 new_path="$input_to_shortpath" 36416 36417 input_path="$input_to_shortpath" 36418 # Check if we need to convert this using DOS-style short mode. If the path 36419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36420 # take no chances and rewrite it. 36421 # Note: m4 eats our [], so we need to use [ and ] instead. 36422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36423 if test "x$has_forbidden_chars" != x; then 36424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36428 # Going to short mode and back again did indeed matter. Since short mode is 36429 # case insensitive, let's make it lowercase to improve readability. 36430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36431 # Now convert it back to Unix-style (cygpath) 36432 input_path=`$CYGPATH -u "$shortmode_path"` 36433 new_path="$input_path" 36434 fi 36435 fi 36436 36437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36438 if test "x$test_cygdrive_prefix" = x; then 36439 # As a simple fix, exclude /usr/bin since it's not a real path. 36440 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36442 # a path prefixed by /cygdrive for fixpath to work. 36443 new_path="$CYGWIN_ROOT_PATH$input_path" 36444 fi 36445 fi 36446 36447 # remove trailing .exe if any 36448 new_path="${new_path/%.exe/}" 36449 36450 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36451 36452 # First separate the path from the arguments. This will split at the first 36453 # space. 36454 complete="$CPP" 36455 path="${complete%% *}" 36456 tmp="$complete EOL" 36457 arguments="${tmp#* }" 36458 36459 # Input might be given as Windows format, start by converting to 36460 # unix format. 36461 new_path="$path" 36462 36463 windows_path="$new_path" 36464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36465 unix_path=`$CYGPATH -u "$windows_path"` 36466 new_path="$unix_path" 36467 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36468 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36469 new_path="$unix_path" 36470 fi 36471 36472 36473 # Now try to locate executable using which 36474 new_path=`$WHICH "$new_path" 2> /dev/null` 36475 36476 if test "x$new_path" = x; then 36477 # Oops. Which didn't find the executable. 36478 # The splitting of arguments from the executable at a space might have been incorrect, 36479 # since paths with space are more likely in Windows. Give it another try with the whole 36480 # argument. 36481 path="$complete" 36482 arguments="EOL" 36483 new_path="$path" 36484 36485 windows_path="$new_path" 36486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36487 unix_path=`$CYGPATH -u "$windows_path"` 36488 new_path="$unix_path" 36489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36490 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36491 new_path="$unix_path" 36492 fi 36493 36494 36495 new_path=`$WHICH "$new_path" 2> /dev/null` 36496 # bat and cmd files are not always considered executable in MSYS causing which 36497 # to not find them 36498 if test "x$new_path" = x \ 36499 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36500 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36501 new_path="$path" 36502 36503 windows_path="$new_path" 36504 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36505 unix_path=`$CYGPATH -u "$windows_path"` 36506 new_path="$unix_path" 36507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36508 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36509 new_path="$unix_path" 36510 fi 36511 36512 fi 36513 36514 if test "x$new_path" = x; then 36515 # It's still not found. Now this is an unrecoverable error. 36516 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36517 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36518 has_space=`$ECHO "$complete" | $GREP " "` 36519 if test "x$has_space" != x; then 36520 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36521 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36522 fi 36523 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36524 fi 36525 fi 36526 36527 # Now new_path has a complete unix path to the binary 36528 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36529 # Keep paths in /bin as-is, but remove trailing .exe if any 36530 new_path="${new_path/%.exe/}" 36531 # Do not save /bin paths to all_fixpath_prefixes! 36532 else 36533 # Not in mixed or Windows style, start by that. 36534 new_path=`cmd //c echo $new_path` 36535 36536 input_path="$new_path" 36537 # Check if we need to convert this using DOS-style short mode. If the path 36538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36539 # take no chances and rewrite it. 36540 # Note: m4 eats our [], so we need to use [ and ] instead. 36541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36542 if test "x$has_forbidden_chars" != x; then 36543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36544 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36545 fi 36546 36547 # Output is in $new_path 36548 36549 windows_path="$new_path" 36550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36551 unix_path=`$CYGPATH -u "$windows_path"` 36552 new_path="$unix_path" 36553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36555 new_path="$unix_path" 36556 fi 36557 36558 # remove trailing .exe if any 36559 new_path="${new_path/%.exe/}" 36560 36561 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36562 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36563 fi 36564 36565 else 36566 # We're on a unix platform. Hooray! :) 36567 # First separate the path from the arguments. This will split at the first 36568 # space. 36569 complete="$CPP" 36570 path="${complete%% *}" 36571 tmp="$complete EOL" 36572 arguments="${tmp#* }" 36573 36574 # Cannot rely on the command "which" here since it doesn't always work. 36575 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36576 if test -z "$is_absolute_path"; then 36577 # Path to executable is not absolute. Find it. 36578 IFS_save="$IFS" 36579 IFS=: 36580 for p in $PATH; do 36581 if test -f "$p/$path" && test -x "$p/$path"; then 36582 new_path="$p/$path" 36583 break 36584 fi 36585 done 36586 IFS="$IFS_save" 36587 else 36588 # This is an absolute path, we can use it without further modifications. 36589 new_path="$path" 36590 fi 36591 36592 if test "x$new_path" = x; then 36593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 36594 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 36595 has_space=`$ECHO "$complete" | $GREP " "` 36596 if test "x$has_space" != x; then 36597 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36598 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36599 fi 36600 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 36601 fi 36602 fi 36603 36604 # Now join together the path and the arguments once again 36605 if test "x$arguments" != xEOL; then 36606 new_complete="$new_path ${arguments% *}" 36607 else 36608 new_complete="$new_path" 36609 fi 36610 36611 if test "x$complete" != "x$new_complete"; then 36612 CPP="$new_complete" 36613 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 36614 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 36615 fi 36616 fi 36617 36618 ac_ext=cpp 36619 ac_cpp='$CXXCPP $CPPFLAGS' 36620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 36624 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 36625 if test -z "$CXXCPP"; then 36626 if ${ac_cv_prog_CXXCPP+:} false; then : 36627 $as_echo_n "(cached) " >&6 36628 else 36629 # Double quotes because CXXCPP needs to be expanded 36630 for CXXCPP in "$CXX -E" "/lib/cpp" 36631 do 36632 ac_preproc_ok=false 36633 for ac_cxx_preproc_warn_flag in '' yes 36634 do 36635 # Use a header file that comes with gcc, so configuring glibc 36636 # with a fresh cross-compiler works. 36637 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36638 # <limits.h> exists even on freestanding compilers. 36639 # On the NeXT, cc -E runs the code through the compiler's parser, 36640 # not just through cpp. "Syntax error" is here to catch this case. 36641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36642 /* end confdefs.h. */ 36643 #ifdef __STDC__ 36644 # include <limits.h> 36645 #else 36646 # include <assert.h> 36647 #endif 36648 Syntax error 36649 _ACEOF 36650 if ac_fn_cxx_try_cpp "$LINENO"; then : 36651 36652 else 36653 # Broken: fails on valid input. 36654 continue 36655 fi 36656 rm -f conftest.err conftest.i conftest.$ac_ext 36657 36658 # OK, works on sane cases. Now check whether nonexistent headers 36659 # can be detected and how. 36660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36661 /* end confdefs.h. */ 36662 #include <ac_nonexistent.h> 36663 _ACEOF 36664 if ac_fn_cxx_try_cpp "$LINENO"; then : 36665 # Broken: success on invalid input. 36666 continue 36667 else 36668 # Passes both tests. 36669 ac_preproc_ok=: 36670 break 36671 fi 36672 rm -f conftest.err conftest.i conftest.$ac_ext 36673 36674 done 36675 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36676 rm -f conftest.i conftest.err conftest.$ac_ext 36677 if $ac_preproc_ok; then : 36678 break 36679 fi 36680 36681 done 36682 ac_cv_prog_CXXCPP=$CXXCPP 36683 36684 fi 36685 CXXCPP=$ac_cv_prog_CXXCPP 36686 else 36687 ac_cv_prog_CXXCPP=$CXXCPP 36688 fi 36689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 36690 $as_echo "$CXXCPP" >&6; } 36691 ac_preproc_ok=false 36692 for ac_cxx_preproc_warn_flag in '' yes 36693 do 36694 # Use a header file that comes with gcc, so configuring glibc 36695 # with a fresh cross-compiler works. 36696 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 36697 # <limits.h> exists even on freestanding compilers. 36698 # On the NeXT, cc -E runs the code through the compiler's parser, 36699 # not just through cpp. "Syntax error" is here to catch this case. 36700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36701 /* end confdefs.h. */ 36702 #ifdef __STDC__ 36703 # include <limits.h> 36704 #else 36705 # include <assert.h> 36706 #endif 36707 Syntax error 36708 _ACEOF 36709 if ac_fn_cxx_try_cpp "$LINENO"; then : 36710 36711 else 36712 # Broken: fails on valid input. 36713 continue 36714 fi 36715 rm -f conftest.err conftest.i conftest.$ac_ext 36716 36717 # OK, works on sane cases. Now check whether nonexistent headers 36718 # can be detected and how. 36719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 36720 /* end confdefs.h. */ 36721 #include <ac_nonexistent.h> 36722 _ACEOF 36723 if ac_fn_cxx_try_cpp "$LINENO"; then : 36724 # Broken: success on invalid input. 36725 continue 36726 else 36727 # Passes both tests. 36728 ac_preproc_ok=: 36729 break 36730 fi 36731 rm -f conftest.err conftest.i conftest.$ac_ext 36732 36733 done 36734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 36735 rm -f conftest.i conftest.err conftest.$ac_ext 36736 if $ac_preproc_ok; then : 36737 36738 else 36739 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 36740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 36741 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 36742 See \`config.log' for more details" "$LINENO" 5; } 36743 fi 36744 36745 ac_ext=cpp 36746 ac_cpp='$CXXCPP $CPPFLAGS' 36747 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 36748 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 36749 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 36750 36751 36752 # Only process if variable expands to non-empty 36753 36754 if test "x$CXXCPP" != x; then 36755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36756 36757 # First separate the path from the arguments. This will split at the first 36758 # space. 36759 complete="$CXXCPP" 36760 path="${complete%% *}" 36761 tmp="$complete EOL" 36762 arguments="${tmp#* }" 36763 36764 # Input might be given as Windows format, start by converting to 36765 # unix format. 36766 new_path=`$CYGPATH -u "$path"` 36767 36768 # Now try to locate executable using which 36769 new_path=`$WHICH "$new_path" 2> /dev/null` 36770 # bat and cmd files are not always considered executable in cygwin causing which 36771 # to not find them 36772 if test "x$new_path" = x \ 36773 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36774 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36775 new_path=`$CYGPATH -u "$path"` 36776 fi 36777 if test "x$new_path" = x; then 36778 # Oops. Which didn't find the executable. 36779 # The splitting of arguments from the executable at a space might have been incorrect, 36780 # since paths with space are more likely in Windows. Give it another try with the whole 36781 # argument. 36782 path="$complete" 36783 arguments="EOL" 36784 new_path=`$CYGPATH -u "$path"` 36785 new_path=`$WHICH "$new_path" 2> /dev/null` 36786 # bat and cmd files are not always considered executable in cygwin causing which 36787 # to not find them 36788 if test "x$new_path" = x \ 36789 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36790 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36791 new_path=`$CYGPATH -u "$path"` 36792 fi 36793 if test "x$new_path" = x; then 36794 # It's still not found. Now this is an unrecoverable error. 36795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36796 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36797 has_space=`$ECHO "$complete" | $GREP " "` 36798 if test "x$has_space" != x; then 36799 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36800 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36801 fi 36802 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36803 fi 36804 fi 36805 36806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36809 # "foo.exe" is OK but "foo" is an error. 36810 # 36811 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36812 # It is also a way to make sure we got the proper file name for the real test later on. 36813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36814 if test "x$test_shortpath" = x; then 36815 # Short path failed, file does not exist as specified. 36816 # Try adding .exe or .cmd 36817 if test -f "${new_path}.exe"; then 36818 input_to_shortpath="${new_path}.exe" 36819 elif test -f "${new_path}.cmd"; then 36820 input_to_shortpath="${new_path}.cmd" 36821 else 36822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 36823 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 36824 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36825 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36826 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36827 fi 36828 else 36829 input_to_shortpath="$new_path" 36830 fi 36831 36832 # Call helper function which possibly converts this using DOS-style short mode. 36833 # If so, the updated path is stored in $new_path. 36834 new_path="$input_to_shortpath" 36835 36836 input_path="$input_to_shortpath" 36837 # Check if we need to convert this using DOS-style short mode. If the path 36838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36839 # take no chances and rewrite it. 36840 # Note: m4 eats our [], so we need to use [ and ] instead. 36841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36842 if test "x$has_forbidden_chars" != x; then 36843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36844 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36845 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36846 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36847 # Going to short mode and back again did indeed matter. Since short mode is 36848 # case insensitive, let's make it lowercase to improve readability. 36849 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36850 # Now convert it back to Unix-style (cygpath) 36851 input_path=`$CYGPATH -u "$shortmode_path"` 36852 new_path="$input_path" 36853 fi 36854 fi 36855 36856 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36857 if test "x$test_cygdrive_prefix" = x; then 36858 # As a simple fix, exclude /usr/bin since it's not a real path. 36859 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36860 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36861 # a path prefixed by /cygdrive for fixpath to work. 36862 new_path="$CYGWIN_ROOT_PATH$input_path" 36863 fi 36864 fi 36865 36866 # remove trailing .exe if any 36867 new_path="${new_path/%.exe/}" 36868 36869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36870 36871 # First separate the path from the arguments. This will split at the first 36872 # space. 36873 complete="$CXXCPP" 36874 path="${complete%% *}" 36875 tmp="$complete EOL" 36876 arguments="${tmp#* }" 36877 36878 # Input might be given as Windows format, start by converting to 36879 # unix format. 36880 new_path="$path" 36881 36882 windows_path="$new_path" 36883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36884 unix_path=`$CYGPATH -u "$windows_path"` 36885 new_path="$unix_path" 36886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36888 new_path="$unix_path" 36889 fi 36890 36891 36892 # Now try to locate executable using which 36893 new_path=`$WHICH "$new_path" 2> /dev/null` 36894 36895 if test "x$new_path" = x; then 36896 # Oops. Which didn't find the executable. 36897 # The splitting of arguments from the executable at a space might have been incorrect, 36898 # since paths with space are more likely in Windows. Give it another try with the whole 36899 # argument. 36900 path="$complete" 36901 arguments="EOL" 36902 new_path="$path" 36903 36904 windows_path="$new_path" 36905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36906 unix_path=`$CYGPATH -u "$windows_path"` 36907 new_path="$unix_path" 36908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36910 new_path="$unix_path" 36911 fi 36912 36913 36914 new_path=`$WHICH "$new_path" 2> /dev/null` 36915 # bat and cmd files are not always considered executable in MSYS causing which 36916 # to not find them 36917 if test "x$new_path" = x \ 36918 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36919 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36920 new_path="$path" 36921 36922 windows_path="$new_path" 36923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36924 unix_path=`$CYGPATH -u "$windows_path"` 36925 new_path="$unix_path" 36926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36928 new_path="$unix_path" 36929 fi 36930 36931 fi 36932 36933 if test "x$new_path" = x; then 36934 # It's still not found. Now this is an unrecoverable error. 36935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 36936 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 36937 has_space=`$ECHO "$complete" | $GREP " "` 36938 if test "x$has_space" != x; then 36939 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36940 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36941 fi 36942 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 36943 fi 36944 fi 36945 36946 # Now new_path has a complete unix path to the binary 36947 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36948 # Keep paths in /bin as-is, but remove trailing .exe if any 36949 new_path="${new_path/%.exe/}" 36950 # Do not save /bin paths to all_fixpath_prefixes! 36951 else 36952 # Not in mixed or Windows style, start by that. 36953 new_path=`cmd //c echo $new_path` 36954 36955 input_path="$new_path" 36956 # Check if we need to convert this using DOS-style short mode. If the path 36957 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36958 # take no chances and rewrite it. 36959 # Note: m4 eats our [], so we need to use [ and ] instead. 36960 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36961 if test "x$has_forbidden_chars" != x; then 36962 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36963 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36964 fi 36965 36966 # Output is in $new_path 36967 36968 windows_path="$new_path" 36969 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36970 unix_path=`$CYGPATH -u "$windows_path"` 36971 new_path="$unix_path" 36972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36973 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36974 new_path="$unix_path" 36975 fi 36976 36977 # remove trailing .exe if any 36978 new_path="${new_path/%.exe/}" 36979 36980 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36981 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36982 fi 36983 36984 else 36985 # We're on a unix platform. Hooray! :) 36986 # First separate the path from the arguments. This will split at the first 36987 # space. 36988 complete="$CXXCPP" 36989 path="${complete%% *}" 36990 tmp="$complete EOL" 36991 arguments="${tmp#* }" 36992 36993 # Cannot rely on the command "which" here since it doesn't always work. 36994 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36995 if test -z "$is_absolute_path"; then 36996 # Path to executable is not absolute. Find it. 36997 IFS_save="$IFS" 36998 IFS=: 36999 for p in $PATH; do 37000 if test -f "$p/$path" && test -x "$p/$path"; then 37001 new_path="$p/$path" 37002 break 37003 fi 37004 done 37005 IFS="$IFS_save" 37006 else 37007 # This is an absolute path, we can use it without further modifications. 37008 new_path="$path" 37009 fi 37010 37011 if test "x$new_path" = x; then 37012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 37013 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 37014 has_space=`$ECHO "$complete" | $GREP " "` 37015 if test "x$has_space" != x; then 37016 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37017 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37018 fi 37019 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 37020 fi 37021 fi 37022 37023 # Now join together the path and the arguments once again 37024 if test "x$arguments" != xEOL; then 37025 new_complete="$new_path ${arguments% *}" 37026 else 37027 new_complete="$new_path" 37028 fi 37029 37030 if test "x$complete" != "x$new_complete"; then 37031 CXXCPP="$new_complete" 37032 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 37033 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 37034 fi 37035 fi 37036 37037 37038 # 37039 # Setup the linker (LD) 37040 # 37041 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37042 # In the Microsoft toolchain we have a separate LD command "link". 37043 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 37044 # a cygwin program for something completely different. 37045 # Extract the first word of "link", so it can be a program name with args. 37046 set dummy link; ac_word=$2 37047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37048 $as_echo_n "checking for $ac_word... " >&6; } 37049 if ${ac_cv_prog_LD+:} false; then : 37050 $as_echo_n "(cached) " >&6 37051 else 37052 if test -n "$LD"; then 37053 ac_cv_prog_LD="$LD" # Let the user override the test. 37054 else 37055 ac_prog_rejected=no 37056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37057 for as_dir in $PATH 37058 do 37059 IFS=$as_save_IFS 37060 test -z "$as_dir" && as_dir=. 37061 for ac_exec_ext in '' $ac_executable_extensions; do 37062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37063 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 37064 ac_prog_rejected=yes 37065 continue 37066 fi 37067 ac_cv_prog_LD="link" 37068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37069 break 2 37070 fi 37071 done 37072 done 37073 IFS=$as_save_IFS 37074 37075 if test $ac_prog_rejected = yes; then 37076 # We found a bogon in the path, so make sure we never use it. 37077 set dummy $ac_cv_prog_LD 37078 shift 37079 if test $# != 0; then 37080 # We chose a different compiler from the bogus one. 37081 # However, it has the same basename, so the bogon will be chosen 37082 # first if we set LD to just the basename; use the full file name. 37083 shift 37084 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 37085 fi 37086 fi 37087 fi 37088 fi 37089 LD=$ac_cv_prog_LD 37090 if test -n "$LD"; then 37091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 37092 $as_echo "$LD" >&6; } 37093 else 37094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37095 $as_echo "no" >&6; } 37096 fi 37097 37098 37099 37100 # Only process if variable expands to non-empty 37101 37102 if test "x$LD" != x; then 37103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37104 37105 # First separate the path from the arguments. This will split at the first 37106 # space. 37107 complete="$LD" 37108 path="${complete%% *}" 37109 tmp="$complete EOL" 37110 arguments="${tmp#* }" 37111 37112 # Input might be given as Windows format, start by converting to 37113 # unix format. 37114 new_path=`$CYGPATH -u "$path"` 37115 37116 # Now try to locate executable using which 37117 new_path=`$WHICH "$new_path" 2> /dev/null` 37118 # bat and cmd files are not always considered executable in cygwin causing which 37119 # to not find them 37120 if test "x$new_path" = x \ 37121 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37122 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37123 new_path=`$CYGPATH -u "$path"` 37124 fi 37125 if test "x$new_path" = x; then 37126 # Oops. Which didn't find the executable. 37127 # The splitting of arguments from the executable at a space might have been incorrect, 37128 # since paths with space are more likely in Windows. Give it another try with the whole 37129 # argument. 37130 path="$complete" 37131 arguments="EOL" 37132 new_path=`$CYGPATH -u "$path"` 37133 new_path=`$WHICH "$new_path" 2> /dev/null` 37134 # bat and cmd files are not always considered executable in cygwin causing which 37135 # to not find them 37136 if test "x$new_path" = x \ 37137 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37138 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37139 new_path=`$CYGPATH -u "$path"` 37140 fi 37141 if test "x$new_path" = x; then 37142 # It's still not found. Now this is an unrecoverable error. 37143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37144 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37145 has_space=`$ECHO "$complete" | $GREP " "` 37146 if test "x$has_space" != x; then 37147 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37148 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37149 fi 37150 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37151 fi 37152 fi 37153 37154 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37155 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37156 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37157 # "foo.exe" is OK but "foo" is an error. 37158 # 37159 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37160 # It is also a way to make sure we got the proper file name for the real test later on. 37161 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37162 if test "x$test_shortpath" = x; then 37163 # Short path failed, file does not exist as specified. 37164 # Try adding .exe or .cmd 37165 if test -f "${new_path}.exe"; then 37166 input_to_shortpath="${new_path}.exe" 37167 elif test -f "${new_path}.cmd"; then 37168 input_to_shortpath="${new_path}.cmd" 37169 else 37170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 37171 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 37172 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37173 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37174 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37175 fi 37176 else 37177 input_to_shortpath="$new_path" 37178 fi 37179 37180 # Call helper function which possibly converts this using DOS-style short mode. 37181 # If so, the updated path is stored in $new_path. 37182 new_path="$input_to_shortpath" 37183 37184 input_path="$input_to_shortpath" 37185 # Check if we need to convert this using DOS-style short mode. If the path 37186 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37187 # take no chances and rewrite it. 37188 # Note: m4 eats our [], so we need to use [ and ] instead. 37189 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37190 if test "x$has_forbidden_chars" != x; then 37191 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37192 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37193 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37194 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37195 # Going to short mode and back again did indeed matter. Since short mode is 37196 # case insensitive, let's make it lowercase to improve readability. 37197 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37198 # Now convert it back to Unix-style (cygpath) 37199 input_path=`$CYGPATH -u "$shortmode_path"` 37200 new_path="$input_path" 37201 fi 37202 fi 37203 37204 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37205 if test "x$test_cygdrive_prefix" = x; then 37206 # As a simple fix, exclude /usr/bin since it's not a real path. 37207 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37208 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37209 # a path prefixed by /cygdrive for fixpath to work. 37210 new_path="$CYGWIN_ROOT_PATH$input_path" 37211 fi 37212 fi 37213 37214 # remove trailing .exe if any 37215 new_path="${new_path/%.exe/}" 37216 37217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37218 37219 # First separate the path from the arguments. This will split at the first 37220 # space. 37221 complete="$LD" 37222 path="${complete%% *}" 37223 tmp="$complete EOL" 37224 arguments="${tmp#* }" 37225 37226 # Input might be given as Windows format, start by converting to 37227 # unix format. 37228 new_path="$path" 37229 37230 windows_path="$new_path" 37231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37232 unix_path=`$CYGPATH -u "$windows_path"` 37233 new_path="$unix_path" 37234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37235 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37236 new_path="$unix_path" 37237 fi 37238 37239 37240 # Now try to locate executable using which 37241 new_path=`$WHICH "$new_path" 2> /dev/null` 37242 37243 if test "x$new_path" = x; then 37244 # Oops. Which didn't find the executable. 37245 # The splitting of arguments from the executable at a space might have been incorrect, 37246 # since paths with space are more likely in Windows. Give it another try with the whole 37247 # argument. 37248 path="$complete" 37249 arguments="EOL" 37250 new_path="$path" 37251 37252 windows_path="$new_path" 37253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37254 unix_path=`$CYGPATH -u "$windows_path"` 37255 new_path="$unix_path" 37256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37258 new_path="$unix_path" 37259 fi 37260 37261 37262 new_path=`$WHICH "$new_path" 2> /dev/null` 37263 # bat and cmd files are not always considered executable in MSYS causing which 37264 # to not find them 37265 if test "x$new_path" = x \ 37266 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37267 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37268 new_path="$path" 37269 37270 windows_path="$new_path" 37271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37272 unix_path=`$CYGPATH -u "$windows_path"` 37273 new_path="$unix_path" 37274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37275 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37276 new_path="$unix_path" 37277 fi 37278 37279 fi 37280 37281 if test "x$new_path" = x; then 37282 # It's still not found. Now this is an unrecoverable error. 37283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37284 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37285 has_space=`$ECHO "$complete" | $GREP " "` 37286 if test "x$has_space" != x; then 37287 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37288 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37289 fi 37290 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37291 fi 37292 fi 37293 37294 # Now new_path has a complete unix path to the binary 37295 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37296 # Keep paths in /bin as-is, but remove trailing .exe if any 37297 new_path="${new_path/%.exe/}" 37298 # Do not save /bin paths to all_fixpath_prefixes! 37299 else 37300 # Not in mixed or Windows style, start by that. 37301 new_path=`cmd //c echo $new_path` 37302 37303 input_path="$new_path" 37304 # Check if we need to convert this using DOS-style short mode. If the path 37305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37306 # take no chances and rewrite it. 37307 # Note: m4 eats our [], so we need to use [ and ] instead. 37308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37309 if test "x$has_forbidden_chars" != x; then 37310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37312 fi 37313 37314 # Output is in $new_path 37315 37316 windows_path="$new_path" 37317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37318 unix_path=`$CYGPATH -u "$windows_path"` 37319 new_path="$unix_path" 37320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37322 new_path="$unix_path" 37323 fi 37324 37325 # remove trailing .exe if any 37326 new_path="${new_path/%.exe/}" 37327 37328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37330 fi 37331 37332 else 37333 # We're on a unix platform. Hooray! :) 37334 # First separate the path from the arguments. This will split at the first 37335 # space. 37336 complete="$LD" 37337 path="${complete%% *}" 37338 tmp="$complete EOL" 37339 arguments="${tmp#* }" 37340 37341 # Cannot rely on the command "which" here since it doesn't always work. 37342 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37343 if test -z "$is_absolute_path"; then 37344 # Path to executable is not absolute. Find it. 37345 IFS_save="$IFS" 37346 IFS=: 37347 for p in $PATH; do 37348 if test -f "$p/$path" && test -x "$p/$path"; then 37349 new_path="$p/$path" 37350 break 37351 fi 37352 done 37353 IFS="$IFS_save" 37354 else 37355 # This is an absolute path, we can use it without further modifications. 37356 new_path="$path" 37357 fi 37358 37359 if test "x$new_path" = x; then 37360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 37361 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 37362 has_space=`$ECHO "$complete" | $GREP " "` 37363 if test "x$has_space" != x; then 37364 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37365 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37366 fi 37367 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 37368 fi 37369 fi 37370 37371 # Now join together the path and the arguments once again 37372 if test "x$arguments" != xEOL; then 37373 new_complete="$new_path ${arguments% *}" 37374 else 37375 new_complete="$new_path" 37376 fi 37377 37378 if test "x$complete" != "x$new_complete"; then 37379 LD="$new_complete" 37380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 37381 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 37382 fi 37383 fi 37384 37385 # Verify that we indeed succeeded with this trick. 37386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 37387 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 37388 "$LD" --version > /dev/null 37389 if test $? -eq 0 ; then 37390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37391 $as_echo "no" >&6; } 37392 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 37393 else 37394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 37395 $as_echo "yes" >&6; } 37396 fi 37397 LDCXX="$LD" 37398 else 37399 # All other toolchains use the compiler to link. 37400 LD="$CC" 37401 LDCXX="$CXX" 37402 fi 37403 37404 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 37405 37406 37407 # 37408 # Setup the assembler (AS) 37409 # 37410 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 37411 37412 37413 # Publish this variable in the help. 37414 37415 37416 if [ -z "${AS+x}" ]; then 37417 # The variable is not set by user, try to locate tool using the code snippet 37418 for ac_prog in as 37419 do 37420 # Extract the first word of "$ac_prog", so it can be a program name with args. 37421 set dummy $ac_prog; ac_word=$2 37422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37423 $as_echo_n "checking for $ac_word... " >&6; } 37424 if ${ac_cv_path_AS+:} false; then : 37425 $as_echo_n "(cached) " >&6 37426 else 37427 case $AS in 37428 [\\/]* | ?:[\\/]*) 37429 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37430 ;; 37431 *) 37432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37433 for as_dir in $PATH 37434 do 37435 IFS=$as_save_IFS 37436 test -z "$as_dir" && as_dir=. 37437 for ac_exec_ext in '' $ac_executable_extensions; do 37438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37439 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37441 break 2 37442 fi 37443 done 37444 done 37445 IFS=$as_save_IFS 37446 37447 ;; 37448 esac 37449 fi 37450 AS=$ac_cv_path_AS 37451 if test -n "$AS"; then 37452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37453 $as_echo "$AS" >&6; } 37454 else 37455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37456 $as_echo "no" >&6; } 37457 fi 37458 37459 37460 test -n "$AS" && break 37461 done 37462 37463 else 37464 # The variable is set, but is it from the command line or the environment? 37465 37466 # Try to remove the string !AS! from our list. 37467 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 37468 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37469 # If it failed, the variable was not from the command line. Ignore it, 37470 # but warn the user (except for BASH, which is always set by the calling BASH). 37471 if test "xAS" != xBASH; then 37472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 37473 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 37474 fi 37475 # Try to locate tool using the code snippet 37476 for ac_prog in as 37477 do 37478 # Extract the first word of "$ac_prog", so it can be a program name with args. 37479 set dummy $ac_prog; ac_word=$2 37480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37481 $as_echo_n "checking for $ac_word... " >&6; } 37482 if ${ac_cv_path_AS+:} false; then : 37483 $as_echo_n "(cached) " >&6 37484 else 37485 case $AS in 37486 [\\/]* | ?:[\\/]*) 37487 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37488 ;; 37489 *) 37490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37491 for as_dir in $PATH 37492 do 37493 IFS=$as_save_IFS 37494 test -z "$as_dir" && as_dir=. 37495 for ac_exec_ext in '' $ac_executable_extensions; do 37496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37497 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37499 break 2 37500 fi 37501 done 37502 done 37503 IFS=$as_save_IFS 37504 37505 ;; 37506 esac 37507 fi 37508 AS=$ac_cv_path_AS 37509 if test -n "$AS"; then 37510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37511 $as_echo "$AS" >&6; } 37512 else 37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37514 $as_echo "no" >&6; } 37515 fi 37516 37517 37518 test -n "$AS" && break 37519 done 37520 37521 else 37522 # If it succeeded, then it was overridden by the user. We will use it 37523 # for the tool. 37524 37525 # First remove it from the list of overridden variables, so we can test 37526 # for unknown variables in the end. 37527 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37528 37529 # Check if we try to supply an empty value 37530 if test "x$AS" = x; then 37531 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AS= (no value)" >&5 37532 $as_echo "$as_me: Setting user supplied tool AS= (no value)" >&6;} 37533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37534 $as_echo_n "checking for AS... " >&6; } 37535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 37536 $as_echo "disabled" >&6; } 37537 else 37538 # Check if the provided tool contains a complete path. 37539 tool_specified="$AS" 37540 tool_basename="${tool_specified##*/}" 37541 if test "x$tool_basename" = "x$tool_specified"; then 37542 # A command without a complete path is provided, search $PATH. 37543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 37544 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 37545 # Extract the first word of "$tool_basename", so it can be a program name with args. 37546 set dummy $tool_basename; ac_word=$2 37547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37548 $as_echo_n "checking for $ac_word... " >&6; } 37549 if ${ac_cv_path_AS+:} false; then : 37550 $as_echo_n "(cached) " >&6 37551 else 37552 case $AS in 37553 [\\/]* | ?:[\\/]*) 37554 ac_cv_path_AS="$AS" # Let the user override the test with a path. 37555 ;; 37556 *) 37557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37558 for as_dir in $PATH 37559 do 37560 IFS=$as_save_IFS 37561 test -z "$as_dir" && as_dir=. 37562 for ac_exec_ext in '' $ac_executable_extensions; do 37563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37564 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 37565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37566 break 2 37567 fi 37568 done 37569 done 37570 IFS=$as_save_IFS 37571 37572 ;; 37573 esac 37574 fi 37575 AS=$ac_cv_path_AS 37576 if test -n "$AS"; then 37577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 37578 $as_echo "$AS" >&6; } 37579 else 37580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37581 $as_echo "no" >&6; } 37582 fi 37583 37584 37585 if test "x$AS" = x; then 37586 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37587 fi 37588 else 37589 # Otherwise we believe it is a complete path. Use it as it is. 37590 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 37591 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 37592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 37593 $as_echo_n "checking for AS... " >&6; } 37594 if test ! -x "$tool_specified"; then 37595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37596 $as_echo "not found" >&6; } 37597 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 37598 fi 37599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37600 $as_echo "$tool_specified" >&6; } 37601 fi 37602 fi 37603 fi 37604 37605 fi 37606 37607 37608 37609 # Only process if variable expands to non-empty 37610 37611 if test "x$AS" != x; then 37612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37613 37614 # First separate the path from the arguments. This will split at the first 37615 # space. 37616 complete="$AS" 37617 path="${complete%% *}" 37618 tmp="$complete EOL" 37619 arguments="${tmp#* }" 37620 37621 # Input might be given as Windows format, start by converting to 37622 # unix format. 37623 new_path=`$CYGPATH -u "$path"` 37624 37625 # Now try to locate executable using which 37626 new_path=`$WHICH "$new_path" 2> /dev/null` 37627 # bat and cmd files are not always considered executable in cygwin causing which 37628 # to not find them 37629 if test "x$new_path" = x \ 37630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37632 new_path=`$CYGPATH -u "$path"` 37633 fi 37634 if test "x$new_path" = x; then 37635 # Oops. Which didn't find the executable. 37636 # The splitting of arguments from the executable at a space might have been incorrect, 37637 # since paths with space are more likely in Windows. Give it another try with the whole 37638 # argument. 37639 path="$complete" 37640 arguments="EOL" 37641 new_path=`$CYGPATH -u "$path"` 37642 new_path=`$WHICH "$new_path" 2> /dev/null` 37643 # bat and cmd files are not always considered executable in cygwin causing which 37644 # to not find them 37645 if test "x$new_path" = x \ 37646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37648 new_path=`$CYGPATH -u "$path"` 37649 fi 37650 if test "x$new_path" = x; then 37651 # It's still not found. Now this is an unrecoverable error. 37652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37653 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37654 has_space=`$ECHO "$complete" | $GREP " "` 37655 if test "x$has_space" != x; then 37656 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37658 fi 37659 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37660 fi 37661 fi 37662 37663 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37664 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37665 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37666 # "foo.exe" is OK but "foo" is an error. 37667 # 37668 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37669 # It is also a way to make sure we got the proper file name for the real test later on. 37670 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37671 if test "x$test_shortpath" = x; then 37672 # Short path failed, file does not exist as specified. 37673 # Try adding .exe or .cmd 37674 if test -f "${new_path}.exe"; then 37675 input_to_shortpath="${new_path}.exe" 37676 elif test -f "${new_path}.cmd"; then 37677 input_to_shortpath="${new_path}.cmd" 37678 else 37679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 37680 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 37681 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37682 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37683 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37684 fi 37685 else 37686 input_to_shortpath="$new_path" 37687 fi 37688 37689 # Call helper function which possibly converts this using DOS-style short mode. 37690 # If so, the updated path is stored in $new_path. 37691 new_path="$input_to_shortpath" 37692 37693 input_path="$input_to_shortpath" 37694 # Check if we need to convert this using DOS-style short mode. If the path 37695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37696 # take no chances and rewrite it. 37697 # Note: m4 eats our [], so we need to use [ and ] instead. 37698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37699 if test "x$has_forbidden_chars" != x; then 37700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37701 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37702 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37703 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37704 # Going to short mode and back again did indeed matter. Since short mode is 37705 # case insensitive, let's make it lowercase to improve readability. 37706 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37707 # Now convert it back to Unix-style (cygpath) 37708 input_path=`$CYGPATH -u "$shortmode_path"` 37709 new_path="$input_path" 37710 fi 37711 fi 37712 37713 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37714 if test "x$test_cygdrive_prefix" = x; then 37715 # As a simple fix, exclude /usr/bin since it's not a real path. 37716 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37717 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37718 # a path prefixed by /cygdrive for fixpath to work. 37719 new_path="$CYGWIN_ROOT_PATH$input_path" 37720 fi 37721 fi 37722 37723 # remove trailing .exe if any 37724 new_path="${new_path/%.exe/}" 37725 37726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37727 37728 # First separate the path from the arguments. This will split at the first 37729 # space. 37730 complete="$AS" 37731 path="${complete%% *}" 37732 tmp="$complete EOL" 37733 arguments="${tmp#* }" 37734 37735 # Input might be given as Windows format, start by converting to 37736 # unix format. 37737 new_path="$path" 37738 37739 windows_path="$new_path" 37740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37741 unix_path=`$CYGPATH -u "$windows_path"` 37742 new_path="$unix_path" 37743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37745 new_path="$unix_path" 37746 fi 37747 37748 37749 # Now try to locate executable using which 37750 new_path=`$WHICH "$new_path" 2> /dev/null` 37751 37752 if test "x$new_path" = x; then 37753 # Oops. Which didn't find the executable. 37754 # The splitting of arguments from the executable at a space might have been incorrect, 37755 # since paths with space are more likely in Windows. Give it another try with the whole 37756 # argument. 37757 path="$complete" 37758 arguments="EOL" 37759 new_path="$path" 37760 37761 windows_path="$new_path" 37762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37763 unix_path=`$CYGPATH -u "$windows_path"` 37764 new_path="$unix_path" 37765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37767 new_path="$unix_path" 37768 fi 37769 37770 37771 new_path=`$WHICH "$new_path" 2> /dev/null` 37772 # bat and cmd files are not always considered executable in MSYS causing which 37773 # to not find them 37774 if test "x$new_path" = x \ 37775 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37776 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37777 new_path="$path" 37778 37779 windows_path="$new_path" 37780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37781 unix_path=`$CYGPATH -u "$windows_path"` 37782 new_path="$unix_path" 37783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37785 new_path="$unix_path" 37786 fi 37787 37788 fi 37789 37790 if test "x$new_path" = x; then 37791 # It's still not found. Now this is an unrecoverable error. 37792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37793 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37794 has_space=`$ECHO "$complete" | $GREP " "` 37795 if test "x$has_space" != x; then 37796 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37797 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37798 fi 37799 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37800 fi 37801 fi 37802 37803 # Now new_path has a complete unix path to the binary 37804 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37805 # Keep paths in /bin as-is, but remove trailing .exe if any 37806 new_path="${new_path/%.exe/}" 37807 # Do not save /bin paths to all_fixpath_prefixes! 37808 else 37809 # Not in mixed or Windows style, start by that. 37810 new_path=`cmd //c echo $new_path` 37811 37812 input_path="$new_path" 37813 # Check if we need to convert this using DOS-style short mode. If the path 37814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37815 # take no chances and rewrite it. 37816 # Note: m4 eats our [], so we need to use [ and ] instead. 37817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37818 if test "x$has_forbidden_chars" != x; then 37819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37820 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37821 fi 37822 37823 # Output is in $new_path 37824 37825 windows_path="$new_path" 37826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37827 unix_path=`$CYGPATH -u "$windows_path"` 37828 new_path="$unix_path" 37829 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37830 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37831 new_path="$unix_path" 37832 fi 37833 37834 # remove trailing .exe if any 37835 new_path="${new_path/%.exe/}" 37836 37837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37839 fi 37840 37841 else 37842 # We're on a unix platform. Hooray! :) 37843 # First separate the path from the arguments. This will split at the first 37844 # space. 37845 complete="$AS" 37846 path="${complete%% *}" 37847 tmp="$complete EOL" 37848 arguments="${tmp#* }" 37849 37850 # Cannot rely on the command "which" here since it doesn't always work. 37851 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37852 if test -z "$is_absolute_path"; then 37853 # Path to executable is not absolute. Find it. 37854 IFS_save="$IFS" 37855 IFS=: 37856 for p in $PATH; do 37857 if test -f "$p/$path" && test -x "$p/$path"; then 37858 new_path="$p/$path" 37859 break 37860 fi 37861 done 37862 IFS="$IFS_save" 37863 else 37864 # This is an absolute path, we can use it without further modifications. 37865 new_path="$path" 37866 fi 37867 37868 if test "x$new_path" = x; then 37869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 37870 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 37871 has_space=`$ECHO "$complete" | $GREP " "` 37872 if test "x$has_space" != x; then 37873 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37874 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37875 fi 37876 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 37877 fi 37878 fi 37879 37880 # Now join together the path and the arguments once again 37881 if test "x$arguments" != xEOL; then 37882 new_complete="$new_path ${arguments% *}" 37883 else 37884 new_complete="$new_path" 37885 fi 37886 37887 if test "x$complete" != "x$new_complete"; then 37888 AS="$new_complete" 37889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 37890 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 37891 fi 37892 fi 37893 37894 if test "x$AS" = x; then 37895 as_fn_error $? "Solaris assembler (as) is required. Please install via \"pkg install pkg:/developer/assembler\"." "$LINENO" 5 37896 fi 37897 else 37898 # FIXME: is this correct for microsoft? 37899 AS="$CC -c" 37900 fi 37901 37902 37903 # 37904 # Setup the archiver (AR) 37905 # 37906 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 37907 # The corresponding ar tool is lib.exe (used to create static libraries) 37908 # Extract the first word of "lib", so it can be a program name with args. 37909 set dummy lib; ac_word=$2 37910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37911 $as_echo_n "checking for $ac_word... " >&6; } 37912 if ${ac_cv_prog_AR+:} false; then : 37913 $as_echo_n "(cached) " >&6 37914 else 37915 if test -n "$AR"; then 37916 ac_cv_prog_AR="$AR" # Let the user override the test. 37917 else 37918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37919 for as_dir in $PATH 37920 do 37921 IFS=$as_save_IFS 37922 test -z "$as_dir" && as_dir=. 37923 for ac_exec_ext in '' $ac_executable_extensions; do 37924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37925 ac_cv_prog_AR="lib" 37926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37927 break 2 37928 fi 37929 done 37930 done 37931 IFS=$as_save_IFS 37932 37933 fi 37934 fi 37935 AR=$ac_cv_prog_AR 37936 if test -n "$AR"; then 37937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37938 $as_echo "$AR" >&6; } 37939 else 37940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37941 $as_echo "no" >&6; } 37942 fi 37943 37944 37945 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 37946 37947 37948 # Publish this variable in the help. 37949 37950 37951 if [ -z "${AR+x}" ]; then 37952 # The variable is not set by user, try to locate tool using the code snippet 37953 if test -n "$ac_tool_prefix"; then 37954 for ac_prog in ar gcc-ar 37955 do 37956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37957 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37959 $as_echo_n "checking for $ac_word... " >&6; } 37960 if ${ac_cv_prog_AR+:} false; then : 37961 $as_echo_n "(cached) " >&6 37962 else 37963 if test -n "$AR"; then 37964 ac_cv_prog_AR="$AR" # Let the user override the test. 37965 else 37966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37967 for as_dir in $PATH 37968 do 37969 IFS=$as_save_IFS 37970 test -z "$as_dir" && as_dir=. 37971 for ac_exec_ext in '' $ac_executable_extensions; do 37972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37973 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 37974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37975 break 2 37976 fi 37977 done 37978 done 37979 IFS=$as_save_IFS 37980 37981 fi 37982 fi 37983 AR=$ac_cv_prog_AR 37984 if test -n "$AR"; then 37985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 37986 $as_echo "$AR" >&6; } 37987 else 37988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37989 $as_echo "no" >&6; } 37990 fi 37991 37992 37993 test -n "$AR" && break 37994 done 37995 fi 37996 if test -z "$AR"; then 37997 ac_ct_AR=$AR 37998 for ac_prog in ar gcc-ar 37999 do 38000 # Extract the first word of "$ac_prog", so it can be a program name with args. 38001 set dummy $ac_prog; 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_ac_ct_AR+:} false; then : 38005 $as_echo_n "(cached) " >&6 38006 else 38007 if test -n "$ac_ct_AR"; then 38008 ac_cv_prog_ac_ct_AR="$ac_ct_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_ac_ct_AR="$ac_prog" 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 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38028 if test -n "$ac_ct_AR"; then 38029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38030 $as_echo "$ac_ct_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 test -n "$ac_ct_AR" && break 38038 done 38039 38040 if test "x$ac_ct_AR" = x; then 38041 AR="" 38042 else 38043 case $cross_compiling:$ac_tool_warned in 38044 yes:) 38045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38047 ac_tool_warned=yes ;; 38048 esac 38049 AR=$ac_ct_AR 38050 fi 38051 fi 38052 38053 else 38054 # The variable is set, but is it from the command line or the environment? 38055 38056 # Try to remove the string !AR! from our list. 38057 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38058 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38059 # If it failed, the variable was not from the command line. Ignore it, 38060 # but warn the user (except for BASH, which is always set by the calling BASH). 38061 if test "xAR" != xBASH; then 38062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38063 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38064 fi 38065 # Try to locate tool using the code snippet 38066 if test -n "$ac_tool_prefix"; then 38067 for ac_prog in ar gcc-ar 38068 do 38069 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38072 $as_echo_n "checking for $ac_word... " >&6; } 38073 if ${ac_cv_prog_AR+:} false; then : 38074 $as_echo_n "(cached) " >&6 38075 else 38076 if test -n "$AR"; then 38077 ac_cv_prog_AR="$AR" # Let the user override the test. 38078 else 38079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38080 for as_dir in $PATH 38081 do 38082 IFS=$as_save_IFS 38083 test -z "$as_dir" && as_dir=. 38084 for ac_exec_ext in '' $ac_executable_extensions; do 38085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38086 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38088 break 2 38089 fi 38090 done 38091 done 38092 IFS=$as_save_IFS 38093 38094 fi 38095 fi 38096 AR=$ac_cv_prog_AR 38097 if test -n "$AR"; then 38098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38099 $as_echo "$AR" >&6; } 38100 else 38101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38102 $as_echo "no" >&6; } 38103 fi 38104 38105 38106 test -n "$AR" && break 38107 done 38108 fi 38109 if test -z "$AR"; then 38110 ac_ct_AR=$AR 38111 for ac_prog in ar gcc-ar 38112 do 38113 # Extract the first word of "$ac_prog", so it can be a program name with args. 38114 set dummy $ac_prog; ac_word=$2 38115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38116 $as_echo_n "checking for $ac_word... " >&6; } 38117 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38118 $as_echo_n "(cached) " >&6 38119 else 38120 if test -n "$ac_ct_AR"; then 38121 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38122 else 38123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38124 for as_dir in $PATH 38125 do 38126 IFS=$as_save_IFS 38127 test -z "$as_dir" && as_dir=. 38128 for ac_exec_ext in '' $ac_executable_extensions; do 38129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38130 ac_cv_prog_ac_ct_AR="$ac_prog" 38131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38132 break 2 38133 fi 38134 done 38135 done 38136 IFS=$as_save_IFS 38137 38138 fi 38139 fi 38140 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38141 if test -n "$ac_ct_AR"; then 38142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38143 $as_echo "$ac_ct_AR" >&6; } 38144 else 38145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38146 $as_echo "no" >&6; } 38147 fi 38148 38149 38150 test -n "$ac_ct_AR" && break 38151 done 38152 38153 if test "x$ac_ct_AR" = x; then 38154 AR="" 38155 else 38156 case $cross_compiling:$ac_tool_warned in 38157 yes:) 38158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38160 ac_tool_warned=yes ;; 38161 esac 38162 AR=$ac_ct_AR 38163 fi 38164 fi 38165 38166 else 38167 # If it succeeded, then it was overridden by the user. We will use it 38168 # for the tool. 38169 38170 # First remove it from the list of overridden variables, so we can test 38171 # for unknown variables in the end. 38172 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38173 38174 # Check if we try to supply an empty value 38175 if test "x$AR" = x; then 38176 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38177 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38179 $as_echo_n "checking for AR... " >&6; } 38180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38181 $as_echo "disabled" >&6; } 38182 else 38183 # Check if the provided tool contains a complete path. 38184 tool_specified="$AR" 38185 tool_basename="${tool_specified##*/}" 38186 if test "x$tool_basename" = "x$tool_specified"; then 38187 # A command without a complete path is provided, search $PATH. 38188 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38189 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38190 # Extract the first word of "$tool_basename", so it can be a program name with args. 38191 set dummy $tool_basename; ac_word=$2 38192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38193 $as_echo_n "checking for $ac_word... " >&6; } 38194 if ${ac_cv_path_AR+:} false; then : 38195 $as_echo_n "(cached) " >&6 38196 else 38197 case $AR in 38198 [\\/]* | ?:[\\/]*) 38199 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38200 ;; 38201 *) 38202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38203 for as_dir in $PATH 38204 do 38205 IFS=$as_save_IFS 38206 test -z "$as_dir" && as_dir=. 38207 for ac_exec_ext in '' $ac_executable_extensions; do 38208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38209 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38211 break 2 38212 fi 38213 done 38214 done 38215 IFS=$as_save_IFS 38216 38217 ;; 38218 esac 38219 fi 38220 AR=$ac_cv_path_AR 38221 if test -n "$AR"; then 38222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38223 $as_echo "$AR" >&6; } 38224 else 38225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38226 $as_echo "no" >&6; } 38227 fi 38228 38229 38230 if test "x$AR" = x; then 38231 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38232 fi 38233 else 38234 # Otherwise we believe it is a complete path. Use it as it is. 38235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38236 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38238 $as_echo_n "checking for AR... " >&6; } 38239 if test ! -x "$tool_specified"; then 38240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38241 $as_echo "not found" >&6; } 38242 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38243 fi 38244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38245 $as_echo "$tool_specified" >&6; } 38246 fi 38247 fi 38248 fi 38249 38250 fi 38251 38252 38253 else 38254 38255 38256 # Publish this variable in the help. 38257 38258 38259 if [ -z "${AR+x}" ]; then 38260 # The variable is not set by user, try to locate tool using the code snippet 38261 if test -n "$ac_tool_prefix"; then 38262 for ac_prog in ar 38263 do 38264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38267 $as_echo_n "checking for $ac_word... " >&6; } 38268 if ${ac_cv_prog_AR+:} false; then : 38269 $as_echo_n "(cached) " >&6 38270 else 38271 if test -n "$AR"; then 38272 ac_cv_prog_AR="$AR" # Let the user override the test. 38273 else 38274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38275 for as_dir in $PATH 38276 do 38277 IFS=$as_save_IFS 38278 test -z "$as_dir" && as_dir=. 38279 for ac_exec_ext in '' $ac_executable_extensions; do 38280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38281 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38283 break 2 38284 fi 38285 done 38286 done 38287 IFS=$as_save_IFS 38288 38289 fi 38290 fi 38291 AR=$ac_cv_prog_AR 38292 if test -n "$AR"; then 38293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38294 $as_echo "$AR" >&6; } 38295 else 38296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38297 $as_echo "no" >&6; } 38298 fi 38299 38300 38301 test -n "$AR" && break 38302 done 38303 fi 38304 if test -z "$AR"; then 38305 ac_ct_AR=$AR 38306 for ac_prog in ar 38307 do 38308 # Extract the first word of "$ac_prog", so it can be a program name with args. 38309 set dummy $ac_prog; ac_word=$2 38310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38311 $as_echo_n "checking for $ac_word... " >&6; } 38312 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38313 $as_echo_n "(cached) " >&6 38314 else 38315 if test -n "$ac_ct_AR"; then 38316 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38317 else 38318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38319 for as_dir in $PATH 38320 do 38321 IFS=$as_save_IFS 38322 test -z "$as_dir" && as_dir=. 38323 for ac_exec_ext in '' $ac_executable_extensions; do 38324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38325 ac_cv_prog_ac_ct_AR="$ac_prog" 38326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38327 break 2 38328 fi 38329 done 38330 done 38331 IFS=$as_save_IFS 38332 38333 fi 38334 fi 38335 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38336 if test -n "$ac_ct_AR"; then 38337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38338 $as_echo "$ac_ct_AR" >&6; } 38339 else 38340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38341 $as_echo "no" >&6; } 38342 fi 38343 38344 38345 test -n "$ac_ct_AR" && break 38346 done 38347 38348 if test "x$ac_ct_AR" = x; then 38349 AR="" 38350 else 38351 case $cross_compiling:$ac_tool_warned in 38352 yes:) 38353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38355 ac_tool_warned=yes ;; 38356 esac 38357 AR=$ac_ct_AR 38358 fi 38359 fi 38360 38361 else 38362 # The variable is set, but is it from the command line or the environment? 38363 38364 # Try to remove the string !AR! from our list. 38365 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 38366 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38367 # If it failed, the variable was not from the command line. Ignore it, 38368 # but warn the user (except for BASH, which is always set by the calling BASH). 38369 if test "xAR" != xBASH; then 38370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 38371 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 38372 fi 38373 # Try to locate tool using the code snippet 38374 if test -n "$ac_tool_prefix"; then 38375 for ac_prog in ar 38376 do 38377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38380 $as_echo_n "checking for $ac_word... " >&6; } 38381 if ${ac_cv_prog_AR+:} false; then : 38382 $as_echo_n "(cached) " >&6 38383 else 38384 if test -n "$AR"; then 38385 ac_cv_prog_AR="$AR" # Let the user override the test. 38386 else 38387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38388 for as_dir in $PATH 38389 do 38390 IFS=$as_save_IFS 38391 test -z "$as_dir" && as_dir=. 38392 for ac_exec_ext in '' $ac_executable_extensions; do 38393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38394 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 38395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38396 break 2 38397 fi 38398 done 38399 done 38400 IFS=$as_save_IFS 38401 38402 fi 38403 fi 38404 AR=$ac_cv_prog_AR 38405 if test -n "$AR"; then 38406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38407 $as_echo "$AR" >&6; } 38408 else 38409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38410 $as_echo "no" >&6; } 38411 fi 38412 38413 38414 test -n "$AR" && break 38415 done 38416 fi 38417 if test -z "$AR"; then 38418 ac_ct_AR=$AR 38419 for ac_prog in ar 38420 do 38421 # Extract the first word of "$ac_prog", so it can be a program name with args. 38422 set dummy $ac_prog; ac_word=$2 38423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38424 $as_echo_n "checking for $ac_word... " >&6; } 38425 if ${ac_cv_prog_ac_ct_AR+:} false; then : 38426 $as_echo_n "(cached) " >&6 38427 else 38428 if test -n "$ac_ct_AR"; then 38429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 38430 else 38431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38432 for as_dir in $PATH 38433 do 38434 IFS=$as_save_IFS 38435 test -z "$as_dir" && as_dir=. 38436 for ac_exec_ext in '' $ac_executable_extensions; do 38437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38438 ac_cv_prog_ac_ct_AR="$ac_prog" 38439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38440 break 2 38441 fi 38442 done 38443 done 38444 IFS=$as_save_IFS 38445 38446 fi 38447 fi 38448 ac_ct_AR=$ac_cv_prog_ac_ct_AR 38449 if test -n "$ac_ct_AR"; then 38450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 38451 $as_echo "$ac_ct_AR" >&6; } 38452 else 38453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38454 $as_echo "no" >&6; } 38455 fi 38456 38457 38458 test -n "$ac_ct_AR" && break 38459 done 38460 38461 if test "x$ac_ct_AR" = x; then 38462 AR="" 38463 else 38464 case $cross_compiling:$ac_tool_warned in 38465 yes:) 38466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38468 ac_tool_warned=yes ;; 38469 esac 38470 AR=$ac_ct_AR 38471 fi 38472 fi 38473 38474 else 38475 # If it succeeded, then it was overridden by the user. We will use it 38476 # for the tool. 38477 38478 # First remove it from the list of overridden variables, so we can test 38479 # for unknown variables in the end. 38480 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38481 38482 # Check if we try to supply an empty value 38483 if test "x$AR" = x; then 38484 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool AR= (no value)" >&5 38485 $as_echo "$as_me: Setting user supplied tool AR= (no value)" >&6;} 38486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38487 $as_echo_n "checking for AR... " >&6; } 38488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38489 $as_echo "disabled" >&6; } 38490 else 38491 # Check if the provided tool contains a complete path. 38492 tool_specified="$AR" 38493 tool_basename="${tool_specified##*/}" 38494 if test "x$tool_basename" = "x$tool_specified"; then 38495 # A command without a complete path is provided, search $PATH. 38496 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 38497 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 38498 # Extract the first word of "$tool_basename", so it can be a program name with args. 38499 set dummy $tool_basename; ac_word=$2 38500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38501 $as_echo_n "checking for $ac_word... " >&6; } 38502 if ${ac_cv_path_AR+:} false; then : 38503 $as_echo_n "(cached) " >&6 38504 else 38505 case $AR in 38506 [\\/]* | ?:[\\/]*) 38507 ac_cv_path_AR="$AR" # Let the user override the test with a path. 38508 ;; 38509 *) 38510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38511 for as_dir in $PATH 38512 do 38513 IFS=$as_save_IFS 38514 test -z "$as_dir" && as_dir=. 38515 for ac_exec_ext in '' $ac_executable_extensions; do 38516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38517 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 38518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38519 break 2 38520 fi 38521 done 38522 done 38523 IFS=$as_save_IFS 38524 38525 ;; 38526 esac 38527 fi 38528 AR=$ac_cv_path_AR 38529 if test -n "$AR"; then 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 38531 $as_echo "$AR" >&6; } 38532 else 38533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38534 $as_echo "no" >&6; } 38535 fi 38536 38537 38538 if test "x$AR" = x; then 38539 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38540 fi 38541 else 38542 # Otherwise we believe it is a complete path. Use it as it is. 38543 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 38544 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 38546 $as_echo_n "checking for AR... " >&6; } 38547 if test ! -x "$tool_specified"; then 38548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38549 $as_echo "not found" >&6; } 38550 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 38551 fi 38552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38553 $as_echo "$tool_specified" >&6; } 38554 fi 38555 fi 38556 fi 38557 38558 fi 38559 38560 38561 fi 38562 38563 # Only process if variable expands to non-empty 38564 38565 if test "x$AR" != x; then 38566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38567 38568 # First separate the path from the arguments. This will split at the first 38569 # space. 38570 complete="$AR" 38571 path="${complete%% *}" 38572 tmp="$complete EOL" 38573 arguments="${tmp#* }" 38574 38575 # Input might be given as Windows format, start by converting to 38576 # unix format. 38577 new_path=`$CYGPATH -u "$path"` 38578 38579 # Now try to locate executable using which 38580 new_path=`$WHICH "$new_path" 2> /dev/null` 38581 # bat and cmd files are not always considered executable in cygwin causing which 38582 # to not find them 38583 if test "x$new_path" = x \ 38584 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38585 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38586 new_path=`$CYGPATH -u "$path"` 38587 fi 38588 if test "x$new_path" = x; then 38589 # Oops. Which didn't find the executable. 38590 # The splitting of arguments from the executable at a space might have been incorrect, 38591 # since paths with space are more likely in Windows. Give it another try with the whole 38592 # argument. 38593 path="$complete" 38594 arguments="EOL" 38595 new_path=`$CYGPATH -u "$path"` 38596 new_path=`$WHICH "$new_path" 2> /dev/null` 38597 # bat and cmd files are not always considered executable in cygwin causing which 38598 # to not find them 38599 if test "x$new_path" = x \ 38600 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38601 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38602 new_path=`$CYGPATH -u "$path"` 38603 fi 38604 if test "x$new_path" = x; then 38605 # It's still not found. Now this is an unrecoverable error. 38606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38607 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38608 has_space=`$ECHO "$complete" | $GREP " "` 38609 if test "x$has_space" != x; then 38610 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38611 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38612 fi 38613 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38614 fi 38615 fi 38616 38617 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38618 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38619 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38620 # "foo.exe" is OK but "foo" is an error. 38621 # 38622 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38623 # It is also a way to make sure we got the proper file name for the real test later on. 38624 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38625 if test "x$test_shortpath" = x; then 38626 # Short path failed, file does not exist as specified. 38627 # Try adding .exe or .cmd 38628 if test -f "${new_path}.exe"; then 38629 input_to_shortpath="${new_path}.exe" 38630 elif test -f "${new_path}.cmd"; then 38631 input_to_shortpath="${new_path}.cmd" 38632 else 38633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 38634 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 38635 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38636 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38637 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38638 fi 38639 else 38640 input_to_shortpath="$new_path" 38641 fi 38642 38643 # Call helper function which possibly converts this using DOS-style short mode. 38644 # If so, the updated path is stored in $new_path. 38645 new_path="$input_to_shortpath" 38646 38647 input_path="$input_to_shortpath" 38648 # Check if we need to convert this using DOS-style short mode. If the path 38649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38650 # take no chances and rewrite it. 38651 # Note: m4 eats our [], so we need to use [ and ] instead. 38652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38653 if test "x$has_forbidden_chars" != x; then 38654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38655 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38656 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38657 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38658 # Going to short mode and back again did indeed matter. Since short mode is 38659 # case insensitive, let's make it lowercase to improve readability. 38660 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38661 # Now convert it back to Unix-style (cygpath) 38662 input_path=`$CYGPATH -u "$shortmode_path"` 38663 new_path="$input_path" 38664 fi 38665 fi 38666 38667 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38668 if test "x$test_cygdrive_prefix" = x; then 38669 # As a simple fix, exclude /usr/bin since it's not a real path. 38670 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38671 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38672 # a path prefixed by /cygdrive for fixpath to work. 38673 new_path="$CYGWIN_ROOT_PATH$input_path" 38674 fi 38675 fi 38676 38677 # remove trailing .exe if any 38678 new_path="${new_path/%.exe/}" 38679 38680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38681 38682 # First separate the path from the arguments. This will split at the first 38683 # space. 38684 complete="$AR" 38685 path="${complete%% *}" 38686 tmp="$complete EOL" 38687 arguments="${tmp#* }" 38688 38689 # Input might be given as Windows format, start by converting to 38690 # unix format. 38691 new_path="$path" 38692 38693 windows_path="$new_path" 38694 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38695 unix_path=`$CYGPATH -u "$windows_path"` 38696 new_path="$unix_path" 38697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38698 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38699 new_path="$unix_path" 38700 fi 38701 38702 38703 # Now try to locate executable using which 38704 new_path=`$WHICH "$new_path" 2> /dev/null` 38705 38706 if test "x$new_path" = x; then 38707 # Oops. Which didn't find the executable. 38708 # The splitting of arguments from the executable at a space might have been incorrect, 38709 # since paths with space are more likely in Windows. Give it another try with the whole 38710 # argument. 38711 path="$complete" 38712 arguments="EOL" 38713 new_path="$path" 38714 38715 windows_path="$new_path" 38716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38717 unix_path=`$CYGPATH -u "$windows_path"` 38718 new_path="$unix_path" 38719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38721 new_path="$unix_path" 38722 fi 38723 38724 38725 new_path=`$WHICH "$new_path" 2> /dev/null` 38726 # bat and cmd files are not always considered executable in MSYS causing which 38727 # to not find them 38728 if test "x$new_path" = x \ 38729 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38730 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38731 new_path="$path" 38732 38733 windows_path="$new_path" 38734 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38735 unix_path=`$CYGPATH -u "$windows_path"` 38736 new_path="$unix_path" 38737 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38738 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38739 new_path="$unix_path" 38740 fi 38741 38742 fi 38743 38744 if test "x$new_path" = x; then 38745 # It's still not found. Now this is an unrecoverable error. 38746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38747 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38748 has_space=`$ECHO "$complete" | $GREP " "` 38749 if test "x$has_space" != x; then 38750 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38751 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38752 fi 38753 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38754 fi 38755 fi 38756 38757 # Now new_path has a complete unix path to the binary 38758 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38759 # Keep paths in /bin as-is, but remove trailing .exe if any 38760 new_path="${new_path/%.exe/}" 38761 # Do not save /bin paths to all_fixpath_prefixes! 38762 else 38763 # Not in mixed or Windows style, start by that. 38764 new_path=`cmd //c echo $new_path` 38765 38766 input_path="$new_path" 38767 # Check if we need to convert this using DOS-style short mode. If the path 38768 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38769 # take no chances and rewrite it. 38770 # Note: m4 eats our [], so we need to use [ and ] instead. 38771 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38772 if test "x$has_forbidden_chars" != x; then 38773 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38774 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38775 fi 38776 38777 # Output is in $new_path 38778 38779 windows_path="$new_path" 38780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38781 unix_path=`$CYGPATH -u "$windows_path"` 38782 new_path="$unix_path" 38783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38785 new_path="$unix_path" 38786 fi 38787 38788 # remove trailing .exe if any 38789 new_path="${new_path/%.exe/}" 38790 38791 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38792 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38793 fi 38794 38795 else 38796 # We're on a unix platform. Hooray! :) 38797 # First separate the path from the arguments. This will split at the first 38798 # space. 38799 complete="$AR" 38800 path="${complete%% *}" 38801 tmp="$complete EOL" 38802 arguments="${tmp#* }" 38803 38804 # Cannot rely on the command "which" here since it doesn't always work. 38805 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38806 if test -z "$is_absolute_path"; then 38807 # Path to executable is not absolute. Find it. 38808 IFS_save="$IFS" 38809 IFS=: 38810 for p in $PATH; do 38811 if test -f "$p/$path" && test -x "$p/$path"; then 38812 new_path="$p/$path" 38813 break 38814 fi 38815 done 38816 IFS="$IFS_save" 38817 else 38818 # This is an absolute path, we can use it without further modifications. 38819 new_path="$path" 38820 fi 38821 38822 if test "x$new_path" = x; then 38823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 38824 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 38825 has_space=`$ECHO "$complete" | $GREP " "` 38826 if test "x$has_space" != x; then 38827 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38828 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38829 fi 38830 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 38831 fi 38832 fi 38833 38834 # Now join together the path and the arguments once again 38835 if test "x$arguments" != xEOL; then 38836 new_complete="$new_path ${arguments% *}" 38837 else 38838 new_complete="$new_path" 38839 fi 38840 38841 if test "x$complete" != "x$new_complete"; then 38842 AR="$new_complete" 38843 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 38844 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 38845 fi 38846 fi 38847 38848 38849 38850 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 38851 38852 38853 # Publish this variable in the help. 38854 38855 38856 if [ -z "${LIPO+x}" ]; then 38857 # The variable is not set by user, try to locate tool using the code snippet 38858 for ac_prog in lipo 38859 do 38860 # Extract the first word of "$ac_prog", so it can be a program name with args. 38861 set dummy $ac_prog; ac_word=$2 38862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38863 $as_echo_n "checking for $ac_word... " >&6; } 38864 if ${ac_cv_path_LIPO+:} false; then : 38865 $as_echo_n "(cached) " >&6 38866 else 38867 case $LIPO in 38868 [\\/]* | ?:[\\/]*) 38869 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38870 ;; 38871 *) 38872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38873 for as_dir in $PATH 38874 do 38875 IFS=$as_save_IFS 38876 test -z "$as_dir" && as_dir=. 38877 for ac_exec_ext in '' $ac_executable_extensions; do 38878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38879 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38881 break 2 38882 fi 38883 done 38884 done 38885 IFS=$as_save_IFS 38886 38887 ;; 38888 esac 38889 fi 38890 LIPO=$ac_cv_path_LIPO 38891 if test -n "$LIPO"; then 38892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38893 $as_echo "$LIPO" >&6; } 38894 else 38895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38896 $as_echo "no" >&6; } 38897 fi 38898 38899 38900 test -n "$LIPO" && break 38901 done 38902 38903 else 38904 # The variable is set, but is it from the command line or the environment? 38905 38906 # Try to remove the string !LIPO! from our list. 38907 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 38908 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38909 # If it failed, the variable was not from the command line. Ignore it, 38910 # but warn the user (except for BASH, which is always set by the calling BASH). 38911 if test "xLIPO" != xBASH; then 38912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 38913 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 38914 fi 38915 # Try to locate tool using the code snippet 38916 for ac_prog in lipo 38917 do 38918 # Extract the first word of "$ac_prog", so it can be a program name with args. 38919 set dummy $ac_prog; ac_word=$2 38920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38921 $as_echo_n "checking for $ac_word... " >&6; } 38922 if ${ac_cv_path_LIPO+:} false; then : 38923 $as_echo_n "(cached) " >&6 38924 else 38925 case $LIPO in 38926 [\\/]* | ?:[\\/]*) 38927 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38928 ;; 38929 *) 38930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38931 for as_dir in $PATH 38932 do 38933 IFS=$as_save_IFS 38934 test -z "$as_dir" && as_dir=. 38935 for ac_exec_ext in '' $ac_executable_extensions; do 38936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38937 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 38938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38939 break 2 38940 fi 38941 done 38942 done 38943 IFS=$as_save_IFS 38944 38945 ;; 38946 esac 38947 fi 38948 LIPO=$ac_cv_path_LIPO 38949 if test -n "$LIPO"; then 38950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 38951 $as_echo "$LIPO" >&6; } 38952 else 38953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38954 $as_echo "no" >&6; } 38955 fi 38956 38957 38958 test -n "$LIPO" && break 38959 done 38960 38961 else 38962 # If it succeeded, then it was overridden by the user. We will use it 38963 # for the tool. 38964 38965 # First remove it from the list of overridden variables, so we can test 38966 # for unknown variables in the end. 38967 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38968 38969 # Check if we try to supply an empty value 38970 if test "x$LIPO" = x; then 38971 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool LIPO= (no value)" >&5 38972 $as_echo "$as_me: Setting user supplied tool LIPO= (no value)" >&6;} 38973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 38974 $as_echo_n "checking for LIPO... " >&6; } 38975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 38976 $as_echo "disabled" >&6; } 38977 else 38978 # Check if the provided tool contains a complete path. 38979 tool_specified="$LIPO" 38980 tool_basename="${tool_specified##*/}" 38981 if test "x$tool_basename" = "x$tool_specified"; then 38982 # A command without a complete path is provided, search $PATH. 38983 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 38984 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 38985 # Extract the first word of "$tool_basename", so it can be a program name with args. 38986 set dummy $tool_basename; ac_word=$2 38987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38988 $as_echo_n "checking for $ac_word... " >&6; } 38989 if ${ac_cv_path_LIPO+:} false; then : 38990 $as_echo_n "(cached) " >&6 38991 else 38992 case $LIPO in 38993 [\\/]* | ?:[\\/]*) 38994 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 38995 ;; 38996 *) 38997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38998 for as_dir in $PATH 38999 do 39000 IFS=$as_save_IFS 39001 test -z "$as_dir" && as_dir=. 39002 for ac_exec_ext in '' $ac_executable_extensions; do 39003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39004 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 39005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39006 break 2 39007 fi 39008 done 39009 done 39010 IFS=$as_save_IFS 39011 39012 ;; 39013 esac 39014 fi 39015 LIPO=$ac_cv_path_LIPO 39016 if test -n "$LIPO"; then 39017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 39018 $as_echo "$LIPO" >&6; } 39019 else 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39021 $as_echo "no" >&6; } 39022 fi 39023 39024 39025 if test "x$LIPO" = x; then 39026 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39027 fi 39028 else 39029 # Otherwise we believe it is a complete path. Use it as it is. 39030 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 39031 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 39032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 39033 $as_echo_n "checking for LIPO... " >&6; } 39034 if test ! -x "$tool_specified"; then 39035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39036 $as_echo "not found" >&6; } 39037 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 39038 fi 39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39040 $as_echo "$tool_specified" >&6; } 39041 fi 39042 fi 39043 fi 39044 39045 fi 39046 39047 39048 39049 # Only process if variable expands to non-empty 39050 39051 if test "x$LIPO" != x; then 39052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39053 39054 # First separate the path from the arguments. This will split at the first 39055 # space. 39056 complete="$LIPO" 39057 path="${complete%% *}" 39058 tmp="$complete EOL" 39059 arguments="${tmp#* }" 39060 39061 # Input might be given as Windows format, start by converting to 39062 # unix format. 39063 new_path=`$CYGPATH -u "$path"` 39064 39065 # Now try to locate executable using which 39066 new_path=`$WHICH "$new_path" 2> /dev/null` 39067 # bat and cmd files are not always considered executable in cygwin causing which 39068 # to not find them 39069 if test "x$new_path" = x \ 39070 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39071 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39072 new_path=`$CYGPATH -u "$path"` 39073 fi 39074 if test "x$new_path" = x; then 39075 # Oops. Which didn't find the executable. 39076 # The splitting of arguments from the executable at a space might have been incorrect, 39077 # since paths with space are more likely in Windows. Give it another try with the whole 39078 # argument. 39079 path="$complete" 39080 arguments="EOL" 39081 new_path=`$CYGPATH -u "$path"` 39082 new_path=`$WHICH "$new_path" 2> /dev/null` 39083 # bat and cmd files are not always considered executable in cygwin causing which 39084 # to not find them 39085 if test "x$new_path" = x \ 39086 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39087 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39088 new_path=`$CYGPATH -u "$path"` 39089 fi 39090 if test "x$new_path" = x; then 39091 # It's still not found. Now this is an unrecoverable error. 39092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39093 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39094 has_space=`$ECHO "$complete" | $GREP " "` 39095 if test "x$has_space" != x; then 39096 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39097 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39098 fi 39099 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39100 fi 39101 fi 39102 39103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39106 # "foo.exe" is OK but "foo" is an error. 39107 # 39108 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39109 # It is also a way to make sure we got the proper file name for the real test later on. 39110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39111 if test "x$test_shortpath" = x; then 39112 # Short path failed, file does not exist as specified. 39113 # Try adding .exe or .cmd 39114 if test -f "${new_path}.exe"; then 39115 input_to_shortpath="${new_path}.exe" 39116 elif test -f "${new_path}.cmd"; then 39117 input_to_shortpath="${new_path}.cmd" 39118 else 39119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 39120 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 39121 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39122 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39123 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39124 fi 39125 else 39126 input_to_shortpath="$new_path" 39127 fi 39128 39129 # Call helper function which possibly converts this using DOS-style short mode. 39130 # If so, the updated path is stored in $new_path. 39131 new_path="$input_to_shortpath" 39132 39133 input_path="$input_to_shortpath" 39134 # Check if we need to convert this using DOS-style short mode. If the path 39135 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39136 # take no chances and rewrite it. 39137 # Note: m4 eats our [], so we need to use [ and ] instead. 39138 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39139 if test "x$has_forbidden_chars" != x; then 39140 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39141 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39142 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39143 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39144 # Going to short mode and back again did indeed matter. Since short mode is 39145 # case insensitive, let's make it lowercase to improve readability. 39146 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39147 # Now convert it back to Unix-style (cygpath) 39148 input_path=`$CYGPATH -u "$shortmode_path"` 39149 new_path="$input_path" 39150 fi 39151 fi 39152 39153 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39154 if test "x$test_cygdrive_prefix" = x; then 39155 # As a simple fix, exclude /usr/bin since it's not a real path. 39156 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39157 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39158 # a path prefixed by /cygdrive for fixpath to work. 39159 new_path="$CYGWIN_ROOT_PATH$input_path" 39160 fi 39161 fi 39162 39163 # remove trailing .exe if any 39164 new_path="${new_path/%.exe/}" 39165 39166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39167 39168 # First separate the path from the arguments. This will split at the first 39169 # space. 39170 complete="$LIPO" 39171 path="${complete%% *}" 39172 tmp="$complete EOL" 39173 arguments="${tmp#* }" 39174 39175 # Input might be given as Windows format, start by converting to 39176 # unix format. 39177 new_path="$path" 39178 39179 windows_path="$new_path" 39180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39181 unix_path=`$CYGPATH -u "$windows_path"` 39182 new_path="$unix_path" 39183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39185 new_path="$unix_path" 39186 fi 39187 39188 39189 # Now try to locate executable using which 39190 new_path=`$WHICH "$new_path" 2> /dev/null` 39191 39192 if test "x$new_path" = x; then 39193 # Oops. Which didn't find the executable. 39194 # The splitting of arguments from the executable at a space might have been incorrect, 39195 # since paths with space are more likely in Windows. Give it another try with the whole 39196 # argument. 39197 path="$complete" 39198 arguments="EOL" 39199 new_path="$path" 39200 39201 windows_path="$new_path" 39202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39203 unix_path=`$CYGPATH -u "$windows_path"` 39204 new_path="$unix_path" 39205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39206 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39207 new_path="$unix_path" 39208 fi 39209 39210 39211 new_path=`$WHICH "$new_path" 2> /dev/null` 39212 # bat and cmd files are not always considered executable in MSYS causing which 39213 # to not find them 39214 if test "x$new_path" = x \ 39215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39217 new_path="$path" 39218 39219 windows_path="$new_path" 39220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39221 unix_path=`$CYGPATH -u "$windows_path"` 39222 new_path="$unix_path" 39223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39224 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39225 new_path="$unix_path" 39226 fi 39227 39228 fi 39229 39230 if test "x$new_path" = x; then 39231 # It's still not found. Now this is an unrecoverable error. 39232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39233 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39234 has_space=`$ECHO "$complete" | $GREP " "` 39235 if test "x$has_space" != x; then 39236 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39238 fi 39239 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39240 fi 39241 fi 39242 39243 # Now new_path has a complete unix path to the binary 39244 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39245 # Keep paths in /bin as-is, but remove trailing .exe if any 39246 new_path="${new_path/%.exe/}" 39247 # Do not save /bin paths to all_fixpath_prefixes! 39248 else 39249 # Not in mixed or Windows style, start by that. 39250 new_path=`cmd //c echo $new_path` 39251 39252 input_path="$new_path" 39253 # Check if we need to convert this using DOS-style short mode. If the path 39254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39255 # take no chances and rewrite it. 39256 # Note: m4 eats our [], so we need to use [ and ] instead. 39257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39258 if test "x$has_forbidden_chars" != x; then 39259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39261 fi 39262 39263 # Output is in $new_path 39264 39265 windows_path="$new_path" 39266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39267 unix_path=`$CYGPATH -u "$windows_path"` 39268 new_path="$unix_path" 39269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39271 new_path="$unix_path" 39272 fi 39273 39274 # remove trailing .exe if any 39275 new_path="${new_path/%.exe/}" 39276 39277 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39278 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39279 fi 39280 39281 else 39282 # We're on a unix platform. Hooray! :) 39283 # First separate the path from the arguments. This will split at the first 39284 # space. 39285 complete="$LIPO" 39286 path="${complete%% *}" 39287 tmp="$complete EOL" 39288 arguments="${tmp#* }" 39289 39290 # Cannot rely on the command "which" here since it doesn't always work. 39291 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39292 if test -z "$is_absolute_path"; then 39293 # Path to executable is not absolute. Find it. 39294 IFS_save="$IFS" 39295 IFS=: 39296 for p in $PATH; do 39297 if test -f "$p/$path" && test -x "$p/$path"; then 39298 new_path="$p/$path" 39299 break 39300 fi 39301 done 39302 IFS="$IFS_save" 39303 else 39304 # This is an absolute path, we can use it without further modifications. 39305 new_path="$path" 39306 fi 39307 39308 if test "x$new_path" = x; then 39309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 39310 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 39311 has_space=`$ECHO "$complete" | $GREP " "` 39312 if test "x$has_space" != x; then 39313 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39314 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39315 fi 39316 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 39317 fi 39318 fi 39319 39320 # Now join together the path and the arguments once again 39321 if test "x$arguments" != xEOL; then 39322 new_complete="$new_path ${arguments% *}" 39323 else 39324 new_complete="$new_path" 39325 fi 39326 39327 if test "x$complete" != "x$new_complete"; then 39328 LIPO="$new_complete" 39329 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 39330 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 39331 fi 39332 fi 39333 39334 39335 39336 39337 # Publish this variable in the help. 39338 39339 39340 if [ -z "${OTOOL+x}" ]; then 39341 # The variable is not set by user, try to locate tool using the code snippet 39342 for ac_prog in otool 39343 do 39344 # Extract the first word of "$ac_prog", so it can be a program name with args. 39345 set dummy $ac_prog; ac_word=$2 39346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39347 $as_echo_n "checking for $ac_word... " >&6; } 39348 if ${ac_cv_path_OTOOL+:} false; then : 39349 $as_echo_n "(cached) " >&6 39350 else 39351 case $OTOOL in 39352 [\\/]* | ?:[\\/]*) 39353 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39354 ;; 39355 *) 39356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39357 for as_dir in $PATH 39358 do 39359 IFS=$as_save_IFS 39360 test -z "$as_dir" && as_dir=. 39361 for ac_exec_ext in '' $ac_executable_extensions; do 39362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39363 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39365 break 2 39366 fi 39367 done 39368 done 39369 IFS=$as_save_IFS 39370 39371 ;; 39372 esac 39373 fi 39374 OTOOL=$ac_cv_path_OTOOL 39375 if test -n "$OTOOL"; then 39376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39377 $as_echo "$OTOOL" >&6; } 39378 else 39379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39380 $as_echo "no" >&6; } 39381 fi 39382 39383 39384 test -n "$OTOOL" && break 39385 done 39386 39387 else 39388 # The variable is set, but is it from the command line or the environment? 39389 39390 # Try to remove the string !OTOOL! from our list. 39391 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 39392 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39393 # If it failed, the variable was not from the command line. Ignore it, 39394 # but warn the user (except for BASH, which is always set by the calling BASH). 39395 if test "xOTOOL" != xBASH; then 39396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 39397 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 39398 fi 39399 # Try to locate tool using the code snippet 39400 for ac_prog in otool 39401 do 39402 # Extract the first word of "$ac_prog", so it can be a program name with args. 39403 set dummy $ac_prog; ac_word=$2 39404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39405 $as_echo_n "checking for $ac_word... " >&6; } 39406 if ${ac_cv_path_OTOOL+:} false; then : 39407 $as_echo_n "(cached) " >&6 39408 else 39409 case $OTOOL in 39410 [\\/]* | ?:[\\/]*) 39411 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39412 ;; 39413 *) 39414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39415 for as_dir in $PATH 39416 do 39417 IFS=$as_save_IFS 39418 test -z "$as_dir" && as_dir=. 39419 for ac_exec_ext in '' $ac_executable_extensions; do 39420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39421 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39423 break 2 39424 fi 39425 done 39426 done 39427 IFS=$as_save_IFS 39428 39429 ;; 39430 esac 39431 fi 39432 OTOOL=$ac_cv_path_OTOOL 39433 if test -n "$OTOOL"; then 39434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39435 $as_echo "$OTOOL" >&6; } 39436 else 39437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39438 $as_echo "no" >&6; } 39439 fi 39440 39441 39442 test -n "$OTOOL" && break 39443 done 39444 39445 else 39446 # If it succeeded, then it was overridden by the user. We will use it 39447 # for the tool. 39448 39449 # First remove it from the list of overridden variables, so we can test 39450 # for unknown variables in the end. 39451 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39452 39453 # Check if we try to supply an empty value 39454 if test "x$OTOOL" = x; then 39455 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OTOOL= (no value)" >&5 39456 $as_echo "$as_me: Setting user supplied tool OTOOL= (no value)" >&6;} 39457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39458 $as_echo_n "checking for OTOOL... " >&6; } 39459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39460 $as_echo "disabled" >&6; } 39461 else 39462 # Check if the provided tool contains a complete path. 39463 tool_specified="$OTOOL" 39464 tool_basename="${tool_specified##*/}" 39465 if test "x$tool_basename" = "x$tool_specified"; then 39466 # A command without a complete path is provided, search $PATH. 39467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 39468 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 39469 # Extract the first word of "$tool_basename", so it can be a program name with args. 39470 set dummy $tool_basename; ac_word=$2 39471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39472 $as_echo_n "checking for $ac_word... " >&6; } 39473 if ${ac_cv_path_OTOOL+:} false; then : 39474 $as_echo_n "(cached) " >&6 39475 else 39476 case $OTOOL in 39477 [\\/]* | ?:[\\/]*) 39478 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 39479 ;; 39480 *) 39481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39482 for as_dir in $PATH 39483 do 39484 IFS=$as_save_IFS 39485 test -z "$as_dir" && as_dir=. 39486 for ac_exec_ext in '' $ac_executable_extensions; do 39487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39488 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 39489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39490 break 2 39491 fi 39492 done 39493 done 39494 IFS=$as_save_IFS 39495 39496 ;; 39497 esac 39498 fi 39499 OTOOL=$ac_cv_path_OTOOL 39500 if test -n "$OTOOL"; then 39501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 39502 $as_echo "$OTOOL" >&6; } 39503 else 39504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39505 $as_echo "no" >&6; } 39506 fi 39507 39508 39509 if test "x$OTOOL" = x; then 39510 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39511 fi 39512 else 39513 # Otherwise we believe it is a complete path. Use it as it is. 39514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 39515 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 39516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 39517 $as_echo_n "checking for OTOOL... " >&6; } 39518 if test ! -x "$tool_specified"; then 39519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39520 $as_echo "not found" >&6; } 39521 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 39522 fi 39523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39524 $as_echo "$tool_specified" >&6; } 39525 fi 39526 fi 39527 fi 39528 39529 fi 39530 39531 39532 39533 if test "x$OTOOL" = x; then 39534 as_fn_error $? "Could not find required tool for OTOOL" "$LINENO" 5 39535 fi 39536 39537 39538 39539 # Only process if variable expands to non-empty 39540 39541 if test "x$OTOOL" != x; then 39542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39543 39544 # First separate the path from the arguments. This will split at the first 39545 # space. 39546 complete="$OTOOL" 39547 path="${complete%% *}" 39548 tmp="$complete EOL" 39549 arguments="${tmp#* }" 39550 39551 # Input might be given as Windows format, start by converting to 39552 # unix format. 39553 new_path=`$CYGPATH -u "$path"` 39554 39555 # Now try to locate executable using which 39556 new_path=`$WHICH "$new_path" 2> /dev/null` 39557 # bat and cmd files are not always considered executable in cygwin causing which 39558 # to not find them 39559 if test "x$new_path" = x \ 39560 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39561 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39562 new_path=`$CYGPATH -u "$path"` 39563 fi 39564 if test "x$new_path" = x; then 39565 # Oops. Which didn't find the executable. 39566 # The splitting of arguments from the executable at a space might have been incorrect, 39567 # since paths with space are more likely in Windows. Give it another try with the whole 39568 # argument. 39569 path="$complete" 39570 arguments="EOL" 39571 new_path=`$CYGPATH -u "$path"` 39572 new_path=`$WHICH "$new_path" 2> /dev/null` 39573 # bat and cmd files are not always considered executable in cygwin causing which 39574 # to not find them 39575 if test "x$new_path" = x \ 39576 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39577 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39578 new_path=`$CYGPATH -u "$path"` 39579 fi 39580 if test "x$new_path" = x; then 39581 # It's still not found. Now this is an unrecoverable error. 39582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39583 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39584 has_space=`$ECHO "$complete" | $GREP " "` 39585 if test "x$has_space" != x; then 39586 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39587 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39588 fi 39589 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39590 fi 39591 fi 39592 39593 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39594 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39595 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39596 # "foo.exe" is OK but "foo" is an error. 39597 # 39598 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39599 # It is also a way to make sure we got the proper file name for the real test later on. 39600 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39601 if test "x$test_shortpath" = x; then 39602 # Short path failed, file does not exist as specified. 39603 # Try adding .exe or .cmd 39604 if test -f "${new_path}.exe"; then 39605 input_to_shortpath="${new_path}.exe" 39606 elif test -f "${new_path}.cmd"; then 39607 input_to_shortpath="${new_path}.cmd" 39608 else 39609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&5 39610 $as_echo "$as_me: The path of OTOOL, which resolves as \"$new_path\", is invalid." >&6;} 39611 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39612 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39613 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39614 fi 39615 else 39616 input_to_shortpath="$new_path" 39617 fi 39618 39619 # Call helper function which possibly converts this using DOS-style short mode. 39620 # If so, the updated path is stored in $new_path. 39621 new_path="$input_to_shortpath" 39622 39623 input_path="$input_to_shortpath" 39624 # Check if we need to convert this using DOS-style short mode. If the path 39625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39626 # take no chances and rewrite it. 39627 # Note: m4 eats our [], so we need to use [ and ] instead. 39628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39629 if test "x$has_forbidden_chars" != x; then 39630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39631 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39632 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39633 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39634 # Going to short mode and back again did indeed matter. Since short mode is 39635 # case insensitive, let's make it lowercase to improve readability. 39636 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39637 # Now convert it back to Unix-style (cygpath) 39638 input_path=`$CYGPATH -u "$shortmode_path"` 39639 new_path="$input_path" 39640 fi 39641 fi 39642 39643 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39644 if test "x$test_cygdrive_prefix" = x; then 39645 # As a simple fix, exclude /usr/bin since it's not a real path. 39646 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39647 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39648 # a path prefixed by /cygdrive for fixpath to work. 39649 new_path="$CYGWIN_ROOT_PATH$input_path" 39650 fi 39651 fi 39652 39653 # remove trailing .exe if any 39654 new_path="${new_path/%.exe/}" 39655 39656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39657 39658 # First separate the path from the arguments. This will split at the first 39659 # space. 39660 complete="$OTOOL" 39661 path="${complete%% *}" 39662 tmp="$complete EOL" 39663 arguments="${tmp#* }" 39664 39665 # Input might be given as Windows format, start by converting to 39666 # unix format. 39667 new_path="$path" 39668 39669 windows_path="$new_path" 39670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39671 unix_path=`$CYGPATH -u "$windows_path"` 39672 new_path="$unix_path" 39673 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39674 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39675 new_path="$unix_path" 39676 fi 39677 39678 39679 # Now try to locate executable using which 39680 new_path=`$WHICH "$new_path" 2> /dev/null` 39681 39682 if test "x$new_path" = x; then 39683 # Oops. Which didn't find the executable. 39684 # The splitting of arguments from the executable at a space might have been incorrect, 39685 # since paths with space are more likely in Windows. Give it another try with the whole 39686 # argument. 39687 path="$complete" 39688 arguments="EOL" 39689 new_path="$path" 39690 39691 windows_path="$new_path" 39692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39693 unix_path=`$CYGPATH -u "$windows_path"` 39694 new_path="$unix_path" 39695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39697 new_path="$unix_path" 39698 fi 39699 39700 39701 new_path=`$WHICH "$new_path" 2> /dev/null` 39702 # bat and cmd files are not always considered executable in MSYS causing which 39703 # to not find them 39704 if test "x$new_path" = x \ 39705 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39706 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39707 new_path="$path" 39708 39709 windows_path="$new_path" 39710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39711 unix_path=`$CYGPATH -u "$windows_path"` 39712 new_path="$unix_path" 39713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39715 new_path="$unix_path" 39716 fi 39717 39718 fi 39719 39720 if test "x$new_path" = x; then 39721 # It's still not found. Now this is an unrecoverable error. 39722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39723 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39724 has_space=`$ECHO "$complete" | $GREP " "` 39725 if test "x$has_space" != x; then 39726 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39727 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39728 fi 39729 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39730 fi 39731 fi 39732 39733 # Now new_path has a complete unix path to the binary 39734 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39735 # Keep paths in /bin as-is, but remove trailing .exe if any 39736 new_path="${new_path/%.exe/}" 39737 # Do not save /bin paths to all_fixpath_prefixes! 39738 else 39739 # Not in mixed or Windows style, start by that. 39740 new_path=`cmd //c echo $new_path` 39741 39742 input_path="$new_path" 39743 # Check if we need to convert this using DOS-style short mode. If the path 39744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39745 # take no chances and rewrite it. 39746 # Note: m4 eats our [], so we need to use [ and ] instead. 39747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39748 if test "x$has_forbidden_chars" != x; then 39749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39750 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39751 fi 39752 39753 # Output is in $new_path 39754 39755 windows_path="$new_path" 39756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39757 unix_path=`$CYGPATH -u "$windows_path"` 39758 new_path="$unix_path" 39759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39761 new_path="$unix_path" 39762 fi 39763 39764 # remove trailing .exe if any 39765 new_path="${new_path/%.exe/}" 39766 39767 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39768 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39769 fi 39770 39771 else 39772 # We're on a unix platform. Hooray! :) 39773 # First separate the path from the arguments. This will split at the first 39774 # space. 39775 complete="$OTOOL" 39776 path="${complete%% *}" 39777 tmp="$complete EOL" 39778 arguments="${tmp#* }" 39779 39780 # Cannot rely on the command "which" here since it doesn't always work. 39781 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39782 if test -z "$is_absolute_path"; then 39783 # Path to executable is not absolute. Find it. 39784 IFS_save="$IFS" 39785 IFS=: 39786 for p in $PATH; do 39787 if test -f "$p/$path" && test -x "$p/$path"; then 39788 new_path="$p/$path" 39789 break 39790 fi 39791 done 39792 IFS="$IFS_save" 39793 else 39794 # This is an absolute path, we can use it without further modifications. 39795 new_path="$path" 39796 fi 39797 39798 if test "x$new_path" = x; then 39799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OTOOL, which resolves as \"$complete\", is not found." >&5 39800 $as_echo "$as_me: The path of OTOOL, which resolves as \"$complete\", is not found." >&6;} 39801 has_space=`$ECHO "$complete" | $GREP " "` 39802 if test "x$has_space" != x; then 39803 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39804 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39805 fi 39806 as_fn_error $? "Cannot locate the the path of OTOOL" "$LINENO" 5 39807 fi 39808 fi 39809 39810 # Now join together the path and the arguments once again 39811 if test "x$arguments" != xEOL; then 39812 new_complete="$new_path ${arguments% *}" 39813 else 39814 new_complete="$new_path" 39815 fi 39816 39817 if test "x$complete" != "x$new_complete"; then 39818 OTOOL="$new_complete" 39819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OTOOL to \"$new_complete\"" >&5 39820 $as_echo "$as_me: Rewriting OTOOL to \"$new_complete\"" >&6;} 39821 fi 39822 fi 39823 39824 39825 39826 39827 # Publish this variable in the help. 39828 39829 39830 if [ -z "${INSTALL_NAME_TOOL+x}" ]; then 39831 # The variable is not set by user, try to locate tool using the code snippet 39832 for ac_prog in install_name_tool 39833 do 39834 # Extract the first word of "$ac_prog", so it can be a program name with args. 39835 set dummy $ac_prog; ac_word=$2 39836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39837 $as_echo_n "checking for $ac_word... " >&6; } 39838 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39839 $as_echo_n "(cached) " >&6 39840 else 39841 case $INSTALL_NAME_TOOL in 39842 [\\/]* | ?:[\\/]*) 39843 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39844 ;; 39845 *) 39846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39847 for as_dir in $PATH 39848 do 39849 IFS=$as_save_IFS 39850 test -z "$as_dir" && as_dir=. 39851 for ac_exec_ext in '' $ac_executable_extensions; do 39852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39853 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39855 break 2 39856 fi 39857 done 39858 done 39859 IFS=$as_save_IFS 39860 39861 ;; 39862 esac 39863 fi 39864 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 39865 if test -n "$INSTALL_NAME_TOOL"; then 39866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 39867 $as_echo "$INSTALL_NAME_TOOL" >&6; } 39868 else 39869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39870 $as_echo "no" >&6; } 39871 fi 39872 39873 39874 test -n "$INSTALL_NAME_TOOL" && break 39875 done 39876 39877 else 39878 # The variable is set, but is it from the command line or the environment? 39879 39880 # Try to remove the string !INSTALL_NAME_TOOL! from our list. 39881 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!INSTALL_NAME_TOOL!/} 39882 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39883 # If it failed, the variable was not from the command line. Ignore it, 39884 # but warn the user (except for BASH, which is always set by the calling BASH). 39885 if test "xINSTALL_NAME_TOOL" != xBASH; then 39886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&5 39887 $as_echo "$as_me: WARNING: Ignoring value of INSTALL_NAME_TOOL from the environment. Use command line variables instead." >&2;} 39888 fi 39889 # Try to locate tool using the code snippet 39890 for ac_prog in install_name_tool 39891 do 39892 # Extract the first word of "$ac_prog", so it can be a program name with args. 39893 set dummy $ac_prog; ac_word=$2 39894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39895 $as_echo_n "checking for $ac_word... " >&6; } 39896 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39897 $as_echo_n "(cached) " >&6 39898 else 39899 case $INSTALL_NAME_TOOL in 39900 [\\/]* | ?:[\\/]*) 39901 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39902 ;; 39903 *) 39904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39905 for as_dir in $PATH 39906 do 39907 IFS=$as_save_IFS 39908 test -z "$as_dir" && as_dir=. 39909 for ac_exec_ext in '' $ac_executable_extensions; do 39910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39911 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39913 break 2 39914 fi 39915 done 39916 done 39917 IFS=$as_save_IFS 39918 39919 ;; 39920 esac 39921 fi 39922 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 39923 if test -n "$INSTALL_NAME_TOOL"; then 39924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 39925 $as_echo "$INSTALL_NAME_TOOL" >&6; } 39926 else 39927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39928 $as_echo "no" >&6; } 39929 fi 39930 39931 39932 test -n "$INSTALL_NAME_TOOL" && break 39933 done 39934 39935 else 39936 # If it succeeded, then it was overridden by the user. We will use it 39937 # for the tool. 39938 39939 # First remove it from the list of overridden variables, so we can test 39940 # for unknown variables in the end. 39941 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39942 39943 # Check if we try to supply an empty value 39944 if test "x$INSTALL_NAME_TOOL" = x; then 39945 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&5 39946 $as_echo "$as_me: Setting user supplied tool INSTALL_NAME_TOOL= (no value)" >&6;} 39947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 39948 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 39949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 39950 $as_echo "disabled" >&6; } 39951 else 39952 # Check if the provided tool contains a complete path. 39953 tool_specified="$INSTALL_NAME_TOOL" 39954 tool_basename="${tool_specified##*/}" 39955 if test "x$tool_basename" = "x$tool_specified"; then 39956 # A command without a complete path is provided, search $PATH. 39957 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&5 39958 $as_echo "$as_me: Will search for user supplied tool INSTALL_NAME_TOOL=$tool_basename" >&6;} 39959 # Extract the first word of "$tool_basename", so it can be a program name with args. 39960 set dummy $tool_basename; ac_word=$2 39961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39962 $as_echo_n "checking for $ac_word... " >&6; } 39963 if ${ac_cv_path_INSTALL_NAME_TOOL+:} false; then : 39964 $as_echo_n "(cached) " >&6 39965 else 39966 case $INSTALL_NAME_TOOL in 39967 [\\/]* | ?:[\\/]*) 39968 ac_cv_path_INSTALL_NAME_TOOL="$INSTALL_NAME_TOOL" # Let the user override the test with a path. 39969 ;; 39970 *) 39971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39972 for as_dir in $PATH 39973 do 39974 IFS=$as_save_IFS 39975 test -z "$as_dir" && as_dir=. 39976 for ac_exec_ext in '' $ac_executable_extensions; do 39977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39978 ac_cv_path_INSTALL_NAME_TOOL="$as_dir/$ac_word$ac_exec_ext" 39979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39980 break 2 39981 fi 39982 done 39983 done 39984 IFS=$as_save_IFS 39985 39986 ;; 39987 esac 39988 fi 39989 INSTALL_NAME_TOOL=$ac_cv_path_INSTALL_NAME_TOOL 39990 if test -n "$INSTALL_NAME_TOOL"; then 39991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_NAME_TOOL" >&5 39992 $as_echo "$INSTALL_NAME_TOOL" >&6; } 39993 else 39994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39995 $as_echo "no" >&6; } 39996 fi 39997 39998 39999 if test "x$INSTALL_NAME_TOOL" = x; then 40000 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40001 fi 40002 else 40003 # Otherwise we believe it is a complete path. Use it as it is. 40004 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&5 40005 $as_echo "$as_me: Will use user supplied tool INSTALL_NAME_TOOL=$tool_specified" >&6;} 40006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INSTALL_NAME_TOOL" >&5 40007 $as_echo_n "checking for INSTALL_NAME_TOOL... " >&6; } 40008 if test ! -x "$tool_specified"; then 40009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40010 $as_echo "not found" >&6; } 40011 as_fn_error $? "User supplied tool INSTALL_NAME_TOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 40012 fi 40013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40014 $as_echo "$tool_specified" >&6; } 40015 fi 40016 fi 40017 fi 40018 40019 fi 40020 40021 40022 40023 if test "x$INSTALL_NAME_TOOL" = x; then 40024 as_fn_error $? "Could not find required tool for INSTALL_NAME_TOOL" "$LINENO" 5 40025 fi 40026 40027 40028 40029 # Only process if variable expands to non-empty 40030 40031 if test "x$INSTALL_NAME_TOOL" != x; then 40032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40033 40034 # First separate the path from the arguments. This will split at the first 40035 # space. 40036 complete="$INSTALL_NAME_TOOL" 40037 path="${complete%% *}" 40038 tmp="$complete EOL" 40039 arguments="${tmp#* }" 40040 40041 # Input might be given as Windows format, start by converting to 40042 # unix format. 40043 new_path=`$CYGPATH -u "$path"` 40044 40045 # Now try to locate executable using which 40046 new_path=`$WHICH "$new_path" 2> /dev/null` 40047 # bat and cmd files are not always considered executable in cygwin causing which 40048 # to not find them 40049 if test "x$new_path" = x \ 40050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40052 new_path=`$CYGPATH -u "$path"` 40053 fi 40054 if test "x$new_path" = x; then 40055 # Oops. Which didn't find the executable. 40056 # The splitting of arguments from the executable at a space might have been incorrect, 40057 # since paths with space are more likely in Windows. Give it another try with the whole 40058 # argument. 40059 path="$complete" 40060 arguments="EOL" 40061 new_path=`$CYGPATH -u "$path"` 40062 new_path=`$WHICH "$new_path" 2> /dev/null` 40063 # bat and cmd files are not always considered executable in cygwin causing which 40064 # to not find them 40065 if test "x$new_path" = x \ 40066 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40067 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40068 new_path=`$CYGPATH -u "$path"` 40069 fi 40070 if test "x$new_path" = x; then 40071 # It's still not found. Now this is an unrecoverable error. 40072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40073 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40074 has_space=`$ECHO "$complete" | $GREP " "` 40075 if test "x$has_space" != x; then 40076 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40077 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40078 fi 40079 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40080 fi 40081 fi 40082 40083 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40084 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40085 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40086 # "foo.exe" is OK but "foo" is an error. 40087 # 40088 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40089 # It is also a way to make sure we got the proper file name for the real test later on. 40090 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40091 if test "x$test_shortpath" = x; then 40092 # Short path failed, file does not exist as specified. 40093 # Try adding .exe or .cmd 40094 if test -f "${new_path}.exe"; then 40095 input_to_shortpath="${new_path}.exe" 40096 elif test -f "${new_path}.cmd"; then 40097 input_to_shortpath="${new_path}.cmd" 40098 else 40099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&5 40100 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$new_path\", is invalid." >&6;} 40101 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40102 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40103 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40104 fi 40105 else 40106 input_to_shortpath="$new_path" 40107 fi 40108 40109 # Call helper function which possibly converts this using DOS-style short mode. 40110 # If so, the updated path is stored in $new_path. 40111 new_path="$input_to_shortpath" 40112 40113 input_path="$input_to_shortpath" 40114 # Check if we need to convert this using DOS-style short mode. If the path 40115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40116 # take no chances and rewrite it. 40117 # Note: m4 eats our [], so we need to use [ and ] instead. 40118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40119 if test "x$has_forbidden_chars" != x; then 40120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40121 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40122 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40123 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40124 # Going to short mode and back again did indeed matter. Since short mode is 40125 # case insensitive, let's make it lowercase to improve readability. 40126 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40127 # Now convert it back to Unix-style (cygpath) 40128 input_path=`$CYGPATH -u "$shortmode_path"` 40129 new_path="$input_path" 40130 fi 40131 fi 40132 40133 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40134 if test "x$test_cygdrive_prefix" = x; then 40135 # As a simple fix, exclude /usr/bin since it's not a real path. 40136 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40137 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40138 # a path prefixed by /cygdrive for fixpath to work. 40139 new_path="$CYGWIN_ROOT_PATH$input_path" 40140 fi 40141 fi 40142 40143 # remove trailing .exe if any 40144 new_path="${new_path/%.exe/}" 40145 40146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40147 40148 # First separate the path from the arguments. This will split at the first 40149 # space. 40150 complete="$INSTALL_NAME_TOOL" 40151 path="${complete%% *}" 40152 tmp="$complete EOL" 40153 arguments="${tmp#* }" 40154 40155 # Input might be given as Windows format, start by converting to 40156 # unix format. 40157 new_path="$path" 40158 40159 windows_path="$new_path" 40160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40161 unix_path=`$CYGPATH -u "$windows_path"` 40162 new_path="$unix_path" 40163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40165 new_path="$unix_path" 40166 fi 40167 40168 40169 # Now try to locate executable using which 40170 new_path=`$WHICH "$new_path" 2> /dev/null` 40171 40172 if test "x$new_path" = x; then 40173 # Oops. Which didn't find the executable. 40174 # The splitting of arguments from the executable at a space might have been incorrect, 40175 # since paths with space are more likely in Windows. Give it another try with the whole 40176 # argument. 40177 path="$complete" 40178 arguments="EOL" 40179 new_path="$path" 40180 40181 windows_path="$new_path" 40182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40183 unix_path=`$CYGPATH -u "$windows_path"` 40184 new_path="$unix_path" 40185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40187 new_path="$unix_path" 40188 fi 40189 40190 40191 new_path=`$WHICH "$new_path" 2> /dev/null` 40192 # bat and cmd files are not always considered executable in MSYS causing which 40193 # to not find them 40194 if test "x$new_path" = x \ 40195 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40196 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40197 new_path="$path" 40198 40199 windows_path="$new_path" 40200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40201 unix_path=`$CYGPATH -u "$windows_path"` 40202 new_path="$unix_path" 40203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40205 new_path="$unix_path" 40206 fi 40207 40208 fi 40209 40210 if test "x$new_path" = x; then 40211 # It's still not found. Now this is an unrecoverable error. 40212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40213 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40214 has_space=`$ECHO "$complete" | $GREP " "` 40215 if test "x$has_space" != x; then 40216 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40217 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40218 fi 40219 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40220 fi 40221 fi 40222 40223 # Now new_path has a complete unix path to the binary 40224 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40225 # Keep paths in /bin as-is, but remove trailing .exe if any 40226 new_path="${new_path/%.exe/}" 40227 # Do not save /bin paths to all_fixpath_prefixes! 40228 else 40229 # Not in mixed or Windows style, start by that. 40230 new_path=`cmd //c echo $new_path` 40231 40232 input_path="$new_path" 40233 # Check if we need to convert this using DOS-style short mode. If the path 40234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40235 # take no chances and rewrite it. 40236 # Note: m4 eats our [], so we need to use [ and ] instead. 40237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40238 if test "x$has_forbidden_chars" != x; then 40239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40241 fi 40242 40243 # Output is in $new_path 40244 40245 windows_path="$new_path" 40246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40247 unix_path=`$CYGPATH -u "$windows_path"` 40248 new_path="$unix_path" 40249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40251 new_path="$unix_path" 40252 fi 40253 40254 # remove trailing .exe if any 40255 new_path="${new_path/%.exe/}" 40256 40257 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40258 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40259 fi 40260 40261 else 40262 # We're on a unix platform. Hooray! :) 40263 # First separate the path from the arguments. This will split at the first 40264 # space. 40265 complete="$INSTALL_NAME_TOOL" 40266 path="${complete%% *}" 40267 tmp="$complete EOL" 40268 arguments="${tmp#* }" 40269 40270 # Cannot rely on the command "which" here since it doesn't always work. 40271 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40272 if test -z "$is_absolute_path"; then 40273 # Path to executable is not absolute. Find it. 40274 IFS_save="$IFS" 40275 IFS=: 40276 for p in $PATH; do 40277 if test -f "$p/$path" && test -x "$p/$path"; then 40278 new_path="$p/$path" 40279 break 40280 fi 40281 done 40282 IFS="$IFS_save" 40283 else 40284 # This is an absolute path, we can use it without further modifications. 40285 new_path="$path" 40286 fi 40287 40288 if test "x$new_path" = x; then 40289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&5 40290 $as_echo "$as_me: The path of INSTALL_NAME_TOOL, which resolves as \"$complete\", is not found." >&6;} 40291 has_space=`$ECHO "$complete" | $GREP " "` 40292 if test "x$has_space" != x; then 40293 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40294 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40295 fi 40296 as_fn_error $? "Cannot locate the the path of INSTALL_NAME_TOOL" "$LINENO" 5 40297 fi 40298 fi 40299 40300 # Now join together the path and the arguments once again 40301 if test "x$arguments" != xEOL; then 40302 new_complete="$new_path ${arguments% *}" 40303 else 40304 new_complete="$new_path" 40305 fi 40306 40307 if test "x$complete" != "x$new_complete"; then 40308 INSTALL_NAME_TOOL="$new_complete" 40309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&5 40310 $as_echo "$as_me: Rewriting INSTALL_NAME_TOOL to \"$new_complete\"" >&6;} 40311 fi 40312 fi 40313 40314 fi 40315 40316 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40317 # Extract the first word of "mt", so it can be a program name with args. 40318 set dummy mt; ac_word=$2 40319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40320 $as_echo_n "checking for $ac_word... " >&6; } 40321 if ${ac_cv_prog_MT+:} false; then : 40322 $as_echo_n "(cached) " >&6 40323 else 40324 if test -n "$MT"; then 40325 ac_cv_prog_MT="$MT" # Let the user override the test. 40326 else 40327 ac_prog_rejected=no 40328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40329 for as_dir in $PATH 40330 do 40331 IFS=$as_save_IFS 40332 test -z "$as_dir" && as_dir=. 40333 for ac_exec_ext in '' $ac_executable_extensions; do 40334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40335 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 40336 ac_prog_rejected=yes 40337 continue 40338 fi 40339 ac_cv_prog_MT="mt" 40340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40341 break 2 40342 fi 40343 done 40344 done 40345 IFS=$as_save_IFS 40346 40347 if test $ac_prog_rejected = yes; then 40348 # We found a bogon in the path, so make sure we never use it. 40349 set dummy $ac_cv_prog_MT 40350 shift 40351 if test $# != 0; then 40352 # We chose a different compiler from the bogus one. 40353 # However, it has the same basename, so the bogon will be chosen 40354 # first if we set MT to just the basename; use the full file name. 40355 shift 40356 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 40357 fi 40358 fi 40359 fi 40360 fi 40361 MT=$ac_cv_prog_MT 40362 if test -n "$MT"; then 40363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 40364 $as_echo "$MT" >&6; } 40365 else 40366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40367 $as_echo "no" >&6; } 40368 fi 40369 40370 40371 40372 # Only process if variable expands to non-empty 40373 40374 if test "x$MT" != x; then 40375 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40376 40377 # First separate the path from the arguments. This will split at the first 40378 # space. 40379 complete="$MT" 40380 path="${complete%% *}" 40381 tmp="$complete EOL" 40382 arguments="${tmp#* }" 40383 40384 # Input might be given as Windows format, start by converting to 40385 # unix format. 40386 new_path=`$CYGPATH -u "$path"` 40387 40388 # Now try to locate executable using which 40389 new_path=`$WHICH "$new_path" 2> /dev/null` 40390 # bat and cmd files are not always considered executable in cygwin causing which 40391 # to not find them 40392 if test "x$new_path" = x \ 40393 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40394 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40395 new_path=`$CYGPATH -u "$path"` 40396 fi 40397 if test "x$new_path" = x; then 40398 # Oops. Which didn't find the executable. 40399 # The splitting of arguments from the executable at a space might have been incorrect, 40400 # since paths with space are more likely in Windows. Give it another try with the whole 40401 # argument. 40402 path="$complete" 40403 arguments="EOL" 40404 new_path=`$CYGPATH -u "$path"` 40405 new_path=`$WHICH "$new_path" 2> /dev/null` 40406 # bat and cmd files are not always considered executable in cygwin causing which 40407 # to not find them 40408 if test "x$new_path" = x \ 40409 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40410 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40411 new_path=`$CYGPATH -u "$path"` 40412 fi 40413 if test "x$new_path" = x; then 40414 # It's still not found. Now this is an unrecoverable error. 40415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40416 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40417 has_space=`$ECHO "$complete" | $GREP " "` 40418 if test "x$has_space" != x; then 40419 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40420 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40421 fi 40422 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40423 fi 40424 fi 40425 40426 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40427 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40428 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40429 # "foo.exe" is OK but "foo" is an error. 40430 # 40431 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40432 # It is also a way to make sure we got the proper file name for the real test later on. 40433 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40434 if test "x$test_shortpath" = x; then 40435 # Short path failed, file does not exist as specified. 40436 # Try adding .exe or .cmd 40437 if test -f "${new_path}.exe"; then 40438 input_to_shortpath="${new_path}.exe" 40439 elif test -f "${new_path}.cmd"; then 40440 input_to_shortpath="${new_path}.cmd" 40441 else 40442 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 40443 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 40444 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40445 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40446 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40447 fi 40448 else 40449 input_to_shortpath="$new_path" 40450 fi 40451 40452 # Call helper function which possibly converts this using DOS-style short mode. 40453 # If so, the updated path is stored in $new_path. 40454 new_path="$input_to_shortpath" 40455 40456 input_path="$input_to_shortpath" 40457 # Check if we need to convert this using DOS-style short mode. If the path 40458 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40459 # take no chances and rewrite it. 40460 # Note: m4 eats our [], so we need to use [ and ] instead. 40461 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40462 if test "x$has_forbidden_chars" != x; then 40463 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40464 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40465 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40466 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40467 # Going to short mode and back again did indeed matter. Since short mode is 40468 # case insensitive, let's make it lowercase to improve readability. 40469 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40470 # Now convert it back to Unix-style (cygpath) 40471 input_path=`$CYGPATH -u "$shortmode_path"` 40472 new_path="$input_path" 40473 fi 40474 fi 40475 40476 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40477 if test "x$test_cygdrive_prefix" = x; then 40478 # As a simple fix, exclude /usr/bin since it's not a real path. 40479 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40480 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40481 # a path prefixed by /cygdrive for fixpath to work. 40482 new_path="$CYGWIN_ROOT_PATH$input_path" 40483 fi 40484 fi 40485 40486 # remove trailing .exe if any 40487 new_path="${new_path/%.exe/}" 40488 40489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40490 40491 # First separate the path from the arguments. This will split at the first 40492 # space. 40493 complete="$MT" 40494 path="${complete%% *}" 40495 tmp="$complete EOL" 40496 arguments="${tmp#* }" 40497 40498 # Input might be given as Windows format, start by converting to 40499 # unix format. 40500 new_path="$path" 40501 40502 windows_path="$new_path" 40503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40504 unix_path=`$CYGPATH -u "$windows_path"` 40505 new_path="$unix_path" 40506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40507 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40508 new_path="$unix_path" 40509 fi 40510 40511 40512 # Now try to locate executable using which 40513 new_path=`$WHICH "$new_path" 2> /dev/null` 40514 40515 if test "x$new_path" = x; then 40516 # Oops. Which didn't find the executable. 40517 # The splitting of arguments from the executable at a space might have been incorrect, 40518 # since paths with space are more likely in Windows. Give it another try with the whole 40519 # argument. 40520 path="$complete" 40521 arguments="EOL" 40522 new_path="$path" 40523 40524 windows_path="$new_path" 40525 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40526 unix_path=`$CYGPATH -u "$windows_path"` 40527 new_path="$unix_path" 40528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40529 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40530 new_path="$unix_path" 40531 fi 40532 40533 40534 new_path=`$WHICH "$new_path" 2> /dev/null` 40535 # bat and cmd files are not always considered executable in MSYS causing which 40536 # to not find them 40537 if test "x$new_path" = x \ 40538 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40539 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40540 new_path="$path" 40541 40542 windows_path="$new_path" 40543 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40544 unix_path=`$CYGPATH -u "$windows_path"` 40545 new_path="$unix_path" 40546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40547 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40548 new_path="$unix_path" 40549 fi 40550 40551 fi 40552 40553 if test "x$new_path" = x; then 40554 # It's still not found. Now this is an unrecoverable error. 40555 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40556 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40557 has_space=`$ECHO "$complete" | $GREP " "` 40558 if test "x$has_space" != x; then 40559 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40560 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40561 fi 40562 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40563 fi 40564 fi 40565 40566 # Now new_path has a complete unix path to the binary 40567 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40568 # Keep paths in /bin as-is, but remove trailing .exe if any 40569 new_path="${new_path/%.exe/}" 40570 # Do not save /bin paths to all_fixpath_prefixes! 40571 else 40572 # Not in mixed or Windows style, start by that. 40573 new_path=`cmd //c echo $new_path` 40574 40575 input_path="$new_path" 40576 # Check if we need to convert this using DOS-style short mode. If the path 40577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40578 # take no chances and rewrite it. 40579 # Note: m4 eats our [], so we need to use [ and ] instead. 40580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40581 if test "x$has_forbidden_chars" != x; then 40582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40583 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40584 fi 40585 40586 # Output is in $new_path 40587 40588 windows_path="$new_path" 40589 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40590 unix_path=`$CYGPATH -u "$windows_path"` 40591 new_path="$unix_path" 40592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40593 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40594 new_path="$unix_path" 40595 fi 40596 40597 # remove trailing .exe if any 40598 new_path="${new_path/%.exe/}" 40599 40600 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40601 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40602 fi 40603 40604 else 40605 # We're on a unix platform. Hooray! :) 40606 # First separate the path from the arguments. This will split at the first 40607 # space. 40608 complete="$MT" 40609 path="${complete%% *}" 40610 tmp="$complete EOL" 40611 arguments="${tmp#* }" 40612 40613 # Cannot rely on the command "which" here since it doesn't always work. 40614 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40615 if test -z "$is_absolute_path"; then 40616 # Path to executable is not absolute. Find it. 40617 IFS_save="$IFS" 40618 IFS=: 40619 for p in $PATH; do 40620 if test -f "$p/$path" && test -x "$p/$path"; then 40621 new_path="$p/$path" 40622 break 40623 fi 40624 done 40625 IFS="$IFS_save" 40626 else 40627 # This is an absolute path, we can use it without further modifications. 40628 new_path="$path" 40629 fi 40630 40631 if test "x$new_path" = x; then 40632 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 40633 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 40634 has_space=`$ECHO "$complete" | $GREP " "` 40635 if test "x$has_space" != x; then 40636 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40637 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40638 fi 40639 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 40640 fi 40641 fi 40642 40643 # Now join together the path and the arguments once again 40644 if test "x$arguments" != xEOL; then 40645 new_complete="$new_path ${arguments% *}" 40646 else 40647 new_complete="$new_path" 40648 fi 40649 40650 if test "x$complete" != "x$new_complete"; then 40651 MT="$new_complete" 40652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 40653 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 40654 fi 40655 fi 40656 40657 # Setup the resource compiler (RC) 40658 # Extract the first word of "rc", so it can be a program name with args. 40659 set dummy rc; ac_word=$2 40660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40661 $as_echo_n "checking for $ac_word... " >&6; } 40662 if ${ac_cv_prog_RC+:} false; then : 40663 $as_echo_n "(cached) " >&6 40664 else 40665 if test -n "$RC"; then 40666 ac_cv_prog_RC="$RC" # Let the user override the test. 40667 else 40668 ac_prog_rejected=no 40669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40670 for as_dir in $PATH 40671 do 40672 IFS=$as_save_IFS 40673 test -z "$as_dir" && as_dir=. 40674 for ac_exec_ext in '' $ac_executable_extensions; do 40675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40676 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 40677 ac_prog_rejected=yes 40678 continue 40679 fi 40680 ac_cv_prog_RC="rc" 40681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40682 break 2 40683 fi 40684 done 40685 done 40686 IFS=$as_save_IFS 40687 40688 if test $ac_prog_rejected = yes; then 40689 # We found a bogon in the path, so make sure we never use it. 40690 set dummy $ac_cv_prog_RC 40691 shift 40692 if test $# != 0; then 40693 # We chose a different compiler from the bogus one. 40694 # However, it has the same basename, so the bogon will be chosen 40695 # first if we set RC to just the basename; use the full file name. 40696 shift 40697 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 40698 fi 40699 fi 40700 fi 40701 fi 40702 RC=$ac_cv_prog_RC 40703 if test -n "$RC"; then 40704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 40705 $as_echo "$RC" >&6; } 40706 else 40707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40708 $as_echo "no" >&6; } 40709 fi 40710 40711 40712 40713 # Only process if variable expands to non-empty 40714 40715 if test "x$RC" != x; then 40716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40717 40718 # First separate the path from the arguments. This will split at the first 40719 # space. 40720 complete="$RC" 40721 path="${complete%% *}" 40722 tmp="$complete EOL" 40723 arguments="${tmp#* }" 40724 40725 # Input might be given as Windows format, start by converting to 40726 # unix format. 40727 new_path=`$CYGPATH -u "$path"` 40728 40729 # Now try to locate executable using which 40730 new_path=`$WHICH "$new_path" 2> /dev/null` 40731 # bat and cmd files are not always considered executable in cygwin causing which 40732 # to not find them 40733 if test "x$new_path" = x \ 40734 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40735 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40736 new_path=`$CYGPATH -u "$path"` 40737 fi 40738 if test "x$new_path" = x; then 40739 # Oops. Which didn't find the executable. 40740 # The splitting of arguments from the executable at a space might have been incorrect, 40741 # since paths with space are more likely in Windows. Give it another try with the whole 40742 # argument. 40743 path="$complete" 40744 arguments="EOL" 40745 new_path=`$CYGPATH -u "$path"` 40746 new_path=`$WHICH "$new_path" 2> /dev/null` 40747 # bat and cmd files are not always considered executable in cygwin causing which 40748 # to not find them 40749 if test "x$new_path" = x \ 40750 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40751 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40752 new_path=`$CYGPATH -u "$path"` 40753 fi 40754 if test "x$new_path" = x; then 40755 # It's still not found. Now this is an unrecoverable error. 40756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40757 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40758 has_space=`$ECHO "$complete" | $GREP " "` 40759 if test "x$has_space" != x; then 40760 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40761 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40762 fi 40763 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40764 fi 40765 fi 40766 40767 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40768 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40769 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40770 # "foo.exe" is OK but "foo" is an error. 40771 # 40772 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40773 # It is also a way to make sure we got the proper file name for the real test later on. 40774 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40775 if test "x$test_shortpath" = x; then 40776 # Short path failed, file does not exist as specified. 40777 # Try adding .exe or .cmd 40778 if test -f "${new_path}.exe"; then 40779 input_to_shortpath="${new_path}.exe" 40780 elif test -f "${new_path}.cmd"; then 40781 input_to_shortpath="${new_path}.cmd" 40782 else 40783 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 40784 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 40785 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40786 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40787 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40788 fi 40789 else 40790 input_to_shortpath="$new_path" 40791 fi 40792 40793 # Call helper function which possibly converts this using DOS-style short mode. 40794 # If so, the updated path is stored in $new_path. 40795 new_path="$input_to_shortpath" 40796 40797 input_path="$input_to_shortpath" 40798 # Check if we need to convert this using DOS-style short mode. If the path 40799 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40800 # take no chances and rewrite it. 40801 # Note: m4 eats our [], so we need to use [ and ] instead. 40802 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40803 if test "x$has_forbidden_chars" != x; then 40804 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40805 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40806 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40807 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40808 # Going to short mode and back again did indeed matter. Since short mode is 40809 # case insensitive, let's make it lowercase to improve readability. 40810 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40811 # Now convert it back to Unix-style (cygpath) 40812 input_path=`$CYGPATH -u "$shortmode_path"` 40813 new_path="$input_path" 40814 fi 40815 fi 40816 40817 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40818 if test "x$test_cygdrive_prefix" = x; then 40819 # As a simple fix, exclude /usr/bin since it's not a real path. 40820 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40821 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40822 # a path prefixed by /cygdrive for fixpath to work. 40823 new_path="$CYGWIN_ROOT_PATH$input_path" 40824 fi 40825 fi 40826 40827 # remove trailing .exe if any 40828 new_path="${new_path/%.exe/}" 40829 40830 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40831 40832 # First separate the path from the arguments. This will split at the first 40833 # space. 40834 complete="$RC" 40835 path="${complete%% *}" 40836 tmp="$complete EOL" 40837 arguments="${tmp#* }" 40838 40839 # Input might be given as Windows format, start by converting to 40840 # unix format. 40841 new_path="$path" 40842 40843 windows_path="$new_path" 40844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40845 unix_path=`$CYGPATH -u "$windows_path"` 40846 new_path="$unix_path" 40847 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40848 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40849 new_path="$unix_path" 40850 fi 40851 40852 40853 # Now try to locate executable using which 40854 new_path=`$WHICH "$new_path" 2> /dev/null` 40855 40856 if test "x$new_path" = x; then 40857 # Oops. Which didn't find the executable. 40858 # The splitting of arguments from the executable at a space might have been incorrect, 40859 # since paths with space are more likely in Windows. Give it another try with the whole 40860 # argument. 40861 path="$complete" 40862 arguments="EOL" 40863 new_path="$path" 40864 40865 windows_path="$new_path" 40866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40867 unix_path=`$CYGPATH -u "$windows_path"` 40868 new_path="$unix_path" 40869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40871 new_path="$unix_path" 40872 fi 40873 40874 40875 new_path=`$WHICH "$new_path" 2> /dev/null` 40876 # bat and cmd files are not always considered executable in MSYS causing which 40877 # to not find them 40878 if test "x$new_path" = x \ 40879 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40880 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40881 new_path="$path" 40882 40883 windows_path="$new_path" 40884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40885 unix_path=`$CYGPATH -u "$windows_path"` 40886 new_path="$unix_path" 40887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40889 new_path="$unix_path" 40890 fi 40891 40892 fi 40893 40894 if test "x$new_path" = x; then 40895 # It's still not found. Now this is an unrecoverable error. 40896 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40897 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40898 has_space=`$ECHO "$complete" | $GREP " "` 40899 if test "x$has_space" != x; then 40900 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40901 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40902 fi 40903 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40904 fi 40905 fi 40906 40907 # Now new_path has a complete unix path to the binary 40908 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40909 # Keep paths in /bin as-is, but remove trailing .exe if any 40910 new_path="${new_path/%.exe/}" 40911 # Do not save /bin paths to all_fixpath_prefixes! 40912 else 40913 # Not in mixed or Windows style, start by that. 40914 new_path=`cmd //c echo $new_path` 40915 40916 input_path="$new_path" 40917 # Check if we need to convert this using DOS-style short mode. If the path 40918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40919 # take no chances and rewrite it. 40920 # Note: m4 eats our [], so we need to use [ and ] instead. 40921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40922 if test "x$has_forbidden_chars" != x; then 40923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40925 fi 40926 40927 # Output is in $new_path 40928 40929 windows_path="$new_path" 40930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40931 unix_path=`$CYGPATH -u "$windows_path"` 40932 new_path="$unix_path" 40933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40935 new_path="$unix_path" 40936 fi 40937 40938 # remove trailing .exe if any 40939 new_path="${new_path/%.exe/}" 40940 40941 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40942 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40943 fi 40944 40945 else 40946 # We're on a unix platform. Hooray! :) 40947 # First separate the path from the arguments. This will split at the first 40948 # space. 40949 complete="$RC" 40950 path="${complete%% *}" 40951 tmp="$complete EOL" 40952 arguments="${tmp#* }" 40953 40954 # Cannot rely on the command "which" here since it doesn't always work. 40955 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40956 if test -z "$is_absolute_path"; then 40957 # Path to executable is not absolute. Find it. 40958 IFS_save="$IFS" 40959 IFS=: 40960 for p in $PATH; do 40961 if test -f "$p/$path" && test -x "$p/$path"; then 40962 new_path="$p/$path" 40963 break 40964 fi 40965 done 40966 IFS="$IFS_save" 40967 else 40968 # This is an absolute path, we can use it without further modifications. 40969 new_path="$path" 40970 fi 40971 40972 if test "x$new_path" = x; then 40973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 40974 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 40975 has_space=`$ECHO "$complete" | $GREP " "` 40976 if test "x$has_space" != x; then 40977 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40978 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40979 fi 40980 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 40981 fi 40982 fi 40983 40984 # Now join together the path and the arguments once again 40985 if test "x$arguments" != xEOL; then 40986 new_complete="$new_path ${arguments% *}" 40987 else 40988 new_complete="$new_path" 40989 fi 40990 40991 if test "x$complete" != "x$new_complete"; then 40992 RC="$new_complete" 40993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 40994 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 40995 fi 40996 fi 40997 40998 # Extract the first word of "dumpbin", so it can be a program name with args. 40999 set dummy dumpbin; ac_word=$2 41000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41001 $as_echo_n "checking for $ac_word... " >&6; } 41002 if ${ac_cv_prog_DUMPBIN+:} false; then : 41003 $as_echo_n "(cached) " >&6 41004 else 41005 if test -n "$DUMPBIN"; then 41006 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 41007 else 41008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41009 for as_dir in $PATH 41010 do 41011 IFS=$as_save_IFS 41012 test -z "$as_dir" && as_dir=. 41013 for ac_exec_ext in '' $ac_executable_extensions; do 41014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41015 ac_cv_prog_DUMPBIN="dumpbin" 41016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41017 break 2 41018 fi 41019 done 41020 done 41021 IFS=$as_save_IFS 41022 41023 fi 41024 fi 41025 DUMPBIN=$ac_cv_prog_DUMPBIN 41026 if test -n "$DUMPBIN"; then 41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 41028 $as_echo "$DUMPBIN" >&6; } 41029 else 41030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41031 $as_echo "no" >&6; } 41032 fi 41033 41034 41035 41036 # Only process if variable expands to non-empty 41037 41038 if test "x$DUMPBIN" != x; then 41039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41040 41041 # First separate the path from the arguments. This will split at the first 41042 # space. 41043 complete="$DUMPBIN" 41044 path="${complete%% *}" 41045 tmp="$complete EOL" 41046 arguments="${tmp#* }" 41047 41048 # Input might be given as Windows format, start by converting to 41049 # unix format. 41050 new_path=`$CYGPATH -u "$path"` 41051 41052 # Now try to locate executable using which 41053 new_path=`$WHICH "$new_path" 2> /dev/null` 41054 # bat and cmd files are not always considered executable in cygwin causing which 41055 # to not find them 41056 if test "x$new_path" = x \ 41057 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41058 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41059 new_path=`$CYGPATH -u "$path"` 41060 fi 41061 if test "x$new_path" = x; then 41062 # Oops. Which didn't find the executable. 41063 # The splitting of arguments from the executable at a space might have been incorrect, 41064 # since paths with space are more likely in Windows. Give it another try with the whole 41065 # argument. 41066 path="$complete" 41067 arguments="EOL" 41068 new_path=`$CYGPATH -u "$path"` 41069 new_path=`$WHICH "$new_path" 2> /dev/null` 41070 # bat and cmd files are not always considered executable in cygwin causing which 41071 # to not find them 41072 if test "x$new_path" = x \ 41073 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41074 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41075 new_path=`$CYGPATH -u "$path"` 41076 fi 41077 if test "x$new_path" = x; then 41078 # It's still not found. Now this is an unrecoverable error. 41079 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41080 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41081 has_space=`$ECHO "$complete" | $GREP " "` 41082 if test "x$has_space" != x; then 41083 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41084 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41085 fi 41086 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41087 fi 41088 fi 41089 41090 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41091 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41092 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41093 # "foo.exe" is OK but "foo" is an error. 41094 # 41095 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41096 # It is also a way to make sure we got the proper file name for the real test later on. 41097 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41098 if test "x$test_shortpath" = x; then 41099 # Short path failed, file does not exist as specified. 41100 # Try adding .exe or .cmd 41101 if test -f "${new_path}.exe"; then 41102 input_to_shortpath="${new_path}.exe" 41103 elif test -f "${new_path}.cmd"; then 41104 input_to_shortpath="${new_path}.cmd" 41105 else 41106 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 41107 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 41108 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41109 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41110 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41111 fi 41112 else 41113 input_to_shortpath="$new_path" 41114 fi 41115 41116 # Call helper function which possibly converts this using DOS-style short mode. 41117 # If so, the updated path is stored in $new_path. 41118 new_path="$input_to_shortpath" 41119 41120 input_path="$input_to_shortpath" 41121 # Check if we need to convert this using DOS-style short mode. If the path 41122 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41123 # take no chances and rewrite it. 41124 # Note: m4 eats our [], so we need to use [ and ] instead. 41125 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41126 if test "x$has_forbidden_chars" != x; then 41127 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41128 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41129 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41130 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41131 # Going to short mode and back again did indeed matter. Since short mode is 41132 # case insensitive, let's make it lowercase to improve readability. 41133 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41134 # Now convert it back to Unix-style (cygpath) 41135 input_path=`$CYGPATH -u "$shortmode_path"` 41136 new_path="$input_path" 41137 fi 41138 fi 41139 41140 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41141 if test "x$test_cygdrive_prefix" = x; then 41142 # As a simple fix, exclude /usr/bin since it's not a real path. 41143 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41144 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41145 # a path prefixed by /cygdrive for fixpath to work. 41146 new_path="$CYGWIN_ROOT_PATH$input_path" 41147 fi 41148 fi 41149 41150 # remove trailing .exe if any 41151 new_path="${new_path/%.exe/}" 41152 41153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41154 41155 # First separate the path from the arguments. This will split at the first 41156 # space. 41157 complete="$DUMPBIN" 41158 path="${complete%% *}" 41159 tmp="$complete EOL" 41160 arguments="${tmp#* }" 41161 41162 # Input might be given as Windows format, start by converting to 41163 # unix format. 41164 new_path="$path" 41165 41166 windows_path="$new_path" 41167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41168 unix_path=`$CYGPATH -u "$windows_path"` 41169 new_path="$unix_path" 41170 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41171 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41172 new_path="$unix_path" 41173 fi 41174 41175 41176 # Now try to locate executable using which 41177 new_path=`$WHICH "$new_path" 2> /dev/null` 41178 41179 if test "x$new_path" = x; then 41180 # Oops. Which didn't find the executable. 41181 # The splitting of arguments from the executable at a space might have been incorrect, 41182 # since paths with space are more likely in Windows. Give it another try with the whole 41183 # argument. 41184 path="$complete" 41185 arguments="EOL" 41186 new_path="$path" 41187 41188 windows_path="$new_path" 41189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41190 unix_path=`$CYGPATH -u "$windows_path"` 41191 new_path="$unix_path" 41192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41194 new_path="$unix_path" 41195 fi 41196 41197 41198 new_path=`$WHICH "$new_path" 2> /dev/null` 41199 # bat and cmd files are not always considered executable in MSYS causing which 41200 # to not find them 41201 if test "x$new_path" = x \ 41202 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41203 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41204 new_path="$path" 41205 41206 windows_path="$new_path" 41207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41208 unix_path=`$CYGPATH -u "$windows_path"` 41209 new_path="$unix_path" 41210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41211 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41212 new_path="$unix_path" 41213 fi 41214 41215 fi 41216 41217 if test "x$new_path" = x; then 41218 # It's still not found. Now this is an unrecoverable error. 41219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41220 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41221 has_space=`$ECHO "$complete" | $GREP " "` 41222 if test "x$has_space" != x; then 41223 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41224 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41225 fi 41226 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41227 fi 41228 fi 41229 41230 # Now new_path has a complete unix path to the binary 41231 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41232 # Keep paths in /bin as-is, but remove trailing .exe if any 41233 new_path="${new_path/%.exe/}" 41234 # Do not save /bin paths to all_fixpath_prefixes! 41235 else 41236 # Not in mixed or Windows style, start by that. 41237 new_path=`cmd //c echo $new_path` 41238 41239 input_path="$new_path" 41240 # Check if we need to convert this using DOS-style short mode. If the path 41241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41242 # take no chances and rewrite it. 41243 # Note: m4 eats our [], so we need to use [ and ] instead. 41244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41245 if test "x$has_forbidden_chars" != x; then 41246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41247 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41248 fi 41249 41250 # Output is in $new_path 41251 41252 windows_path="$new_path" 41253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41254 unix_path=`$CYGPATH -u "$windows_path"` 41255 new_path="$unix_path" 41256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41257 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41258 new_path="$unix_path" 41259 fi 41260 41261 # remove trailing .exe if any 41262 new_path="${new_path/%.exe/}" 41263 41264 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41265 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41266 fi 41267 41268 else 41269 # We're on a unix platform. Hooray! :) 41270 # First separate the path from the arguments. This will split at the first 41271 # space. 41272 complete="$DUMPBIN" 41273 path="${complete%% *}" 41274 tmp="$complete EOL" 41275 arguments="${tmp#* }" 41276 41277 # Cannot rely on the command "which" here since it doesn't always work. 41278 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41279 if test -z "$is_absolute_path"; then 41280 # Path to executable is not absolute. Find it. 41281 IFS_save="$IFS" 41282 IFS=: 41283 for p in $PATH; do 41284 if test -f "$p/$path" && test -x "$p/$path"; then 41285 new_path="$p/$path" 41286 break 41287 fi 41288 done 41289 IFS="$IFS_save" 41290 else 41291 # This is an absolute path, we can use it without further modifications. 41292 new_path="$path" 41293 fi 41294 41295 if test "x$new_path" = x; then 41296 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 41297 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 41298 has_space=`$ECHO "$complete" | $GREP " "` 41299 if test "x$has_space" != x; then 41300 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41301 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41302 fi 41303 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 41304 fi 41305 fi 41306 41307 # Now join together the path and the arguments once again 41308 if test "x$arguments" != xEOL; then 41309 new_complete="$new_path ${arguments% *}" 41310 else 41311 new_complete="$new_path" 41312 fi 41313 41314 if test "x$complete" != "x$new_complete"; then 41315 DUMPBIN="$new_complete" 41316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 41317 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 41318 fi 41319 fi 41320 41321 # We need to check for 'msbuild.exe' because at the place where we expect to 41322 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 41323 # won't find the 'msbuild.exe' executable in that case (and the 41324 # 'ac_executable_extensions' is unusable due to performance reasons). 41325 # Notice that we intentionally don't fix up the path to MSBUILD because we 41326 # will call it in a DOS shell during freetype detection on Windows (see 41327 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 41328 # Extract the first word of "msbuild.exe", so it can be a program name with args. 41329 set dummy msbuild.exe; ac_word=$2 41330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41331 $as_echo_n "checking for $ac_word... " >&6; } 41332 if ${ac_cv_prog_MSBUILD+:} false; then : 41333 $as_echo_n "(cached) " >&6 41334 else 41335 if test -n "$MSBUILD"; then 41336 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 41337 else 41338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41339 for as_dir in $PATH 41340 do 41341 IFS=$as_save_IFS 41342 test -z "$as_dir" && as_dir=. 41343 for ac_exec_ext in '' $ac_executable_extensions; do 41344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41345 ac_cv_prog_MSBUILD="msbuild.exe" 41346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41347 break 2 41348 fi 41349 done 41350 done 41351 IFS=$as_save_IFS 41352 41353 fi 41354 fi 41355 MSBUILD=$ac_cv_prog_MSBUILD 41356 if test -n "$MSBUILD"; then 41357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 41358 $as_echo "$MSBUILD" >&6; } 41359 else 41360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41361 $as_echo "no" >&6; } 41362 fi 41363 41364 41365 fi 41366 41367 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41368 41369 41370 # Publish this variable in the help. 41371 41372 41373 if [ -z "${STRIP+x}" ]; then 41374 # The variable is not set by user, try to locate tool using the code snippet 41375 for ac_prog in strip 41376 do 41377 # Extract the first word of "$ac_prog", so it can be a program name with args. 41378 set dummy $ac_prog; ac_word=$2 41379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41380 $as_echo_n "checking for $ac_word... " >&6; } 41381 if ${ac_cv_path_STRIP+:} false; then : 41382 $as_echo_n "(cached) " >&6 41383 else 41384 case $STRIP in 41385 [\\/]* | ?:[\\/]*) 41386 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41387 ;; 41388 *) 41389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41390 for as_dir in $PATH 41391 do 41392 IFS=$as_save_IFS 41393 test -z "$as_dir" && as_dir=. 41394 for ac_exec_ext in '' $ac_executable_extensions; do 41395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41396 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41398 break 2 41399 fi 41400 done 41401 done 41402 IFS=$as_save_IFS 41403 41404 ;; 41405 esac 41406 fi 41407 STRIP=$ac_cv_path_STRIP 41408 if test -n "$STRIP"; then 41409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41410 $as_echo "$STRIP" >&6; } 41411 else 41412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41413 $as_echo "no" >&6; } 41414 fi 41415 41416 41417 test -n "$STRIP" && break 41418 done 41419 41420 else 41421 # The variable is set, but is it from the command line or the environment? 41422 41423 # Try to remove the string !STRIP! from our list. 41424 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 41425 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41426 # If it failed, the variable was not from the command line. Ignore it, 41427 # but warn the user (except for BASH, which is always set by the calling BASH). 41428 if test "xSTRIP" != xBASH; then 41429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 41430 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 41431 fi 41432 # Try to locate tool using the code snippet 41433 for ac_prog in strip 41434 do 41435 # Extract the first word of "$ac_prog", so it can be a program name with args. 41436 set dummy $ac_prog; ac_word=$2 41437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41438 $as_echo_n "checking for $ac_word... " >&6; } 41439 if ${ac_cv_path_STRIP+:} false; then : 41440 $as_echo_n "(cached) " >&6 41441 else 41442 case $STRIP in 41443 [\\/]* | ?:[\\/]*) 41444 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41445 ;; 41446 *) 41447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41448 for as_dir in $PATH 41449 do 41450 IFS=$as_save_IFS 41451 test -z "$as_dir" && as_dir=. 41452 for ac_exec_ext in '' $ac_executable_extensions; do 41453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41454 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41456 break 2 41457 fi 41458 done 41459 done 41460 IFS=$as_save_IFS 41461 41462 ;; 41463 esac 41464 fi 41465 STRIP=$ac_cv_path_STRIP 41466 if test -n "$STRIP"; then 41467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41468 $as_echo "$STRIP" >&6; } 41469 else 41470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41471 $as_echo "no" >&6; } 41472 fi 41473 41474 41475 test -n "$STRIP" && break 41476 done 41477 41478 else 41479 # If it succeeded, then it was overridden by the user. We will use it 41480 # for the tool. 41481 41482 # First remove it from the list of overridden variables, so we can test 41483 # for unknown variables in the end. 41484 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41485 41486 # Check if we try to supply an empty value 41487 if test "x$STRIP" = x; then 41488 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 41489 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 41490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41491 $as_echo_n "checking for STRIP... " >&6; } 41492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41493 $as_echo "disabled" >&6; } 41494 else 41495 # Check if the provided tool contains a complete path. 41496 tool_specified="$STRIP" 41497 tool_basename="${tool_specified##*/}" 41498 if test "x$tool_basename" = "x$tool_specified"; then 41499 # A command without a complete path is provided, search $PATH. 41500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 41501 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 41502 # Extract the first word of "$tool_basename", so it can be a program name with args. 41503 set dummy $tool_basename; ac_word=$2 41504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41505 $as_echo_n "checking for $ac_word... " >&6; } 41506 if ${ac_cv_path_STRIP+:} false; then : 41507 $as_echo_n "(cached) " >&6 41508 else 41509 case $STRIP in 41510 [\\/]* | ?:[\\/]*) 41511 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 41512 ;; 41513 *) 41514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41515 for as_dir in $PATH 41516 do 41517 IFS=$as_save_IFS 41518 test -z "$as_dir" && as_dir=. 41519 for ac_exec_ext in '' $ac_executable_extensions; do 41520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41521 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 41522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41523 break 2 41524 fi 41525 done 41526 done 41527 IFS=$as_save_IFS 41528 41529 ;; 41530 esac 41531 fi 41532 STRIP=$ac_cv_path_STRIP 41533 if test -n "$STRIP"; then 41534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 41535 $as_echo "$STRIP" >&6; } 41536 else 41537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41538 $as_echo "no" >&6; } 41539 fi 41540 41541 41542 if test "x$STRIP" = x; then 41543 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41544 fi 41545 else 41546 # Otherwise we believe it is a complete path. Use it as it is. 41547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 41548 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 41549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 41550 $as_echo_n "checking for STRIP... " >&6; } 41551 if test ! -x "$tool_specified"; then 41552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41553 $as_echo "not found" >&6; } 41554 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 41555 fi 41556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41557 $as_echo "$tool_specified" >&6; } 41558 fi 41559 fi 41560 fi 41561 41562 fi 41563 41564 41565 41566 # Only process if variable expands to non-empty 41567 41568 if test "x$STRIP" != x; then 41569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41570 41571 # First separate the path from the arguments. This will split at the first 41572 # space. 41573 complete="$STRIP" 41574 path="${complete%% *}" 41575 tmp="$complete EOL" 41576 arguments="${tmp#* }" 41577 41578 # Input might be given as Windows format, start by converting to 41579 # unix format. 41580 new_path=`$CYGPATH -u "$path"` 41581 41582 # Now try to locate executable using which 41583 new_path=`$WHICH "$new_path" 2> /dev/null` 41584 # bat and cmd files are not always considered executable in cygwin causing which 41585 # to not find them 41586 if test "x$new_path" = x \ 41587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41589 new_path=`$CYGPATH -u "$path"` 41590 fi 41591 if test "x$new_path" = x; then 41592 # Oops. Which didn't find the executable. 41593 # The splitting of arguments from the executable at a space might have been incorrect, 41594 # since paths with space are more likely in Windows. Give it another try with the whole 41595 # argument. 41596 path="$complete" 41597 arguments="EOL" 41598 new_path=`$CYGPATH -u "$path"` 41599 new_path=`$WHICH "$new_path" 2> /dev/null` 41600 # bat and cmd files are not always considered executable in cygwin causing which 41601 # to not find them 41602 if test "x$new_path" = x \ 41603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41605 new_path=`$CYGPATH -u "$path"` 41606 fi 41607 if test "x$new_path" = x; then 41608 # It's still not found. Now this is an unrecoverable error. 41609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41610 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41611 has_space=`$ECHO "$complete" | $GREP " "` 41612 if test "x$has_space" != x; then 41613 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41615 fi 41616 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41617 fi 41618 fi 41619 41620 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41621 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41622 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41623 # "foo.exe" is OK but "foo" is an error. 41624 # 41625 # This test is therefore slightly more accurate than "test -f" to check for file presence. 41626 # It is also a way to make sure we got the proper file name for the real test later on. 41627 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41628 if test "x$test_shortpath" = x; then 41629 # Short path failed, file does not exist as specified. 41630 # Try adding .exe or .cmd 41631 if test -f "${new_path}.exe"; then 41632 input_to_shortpath="${new_path}.exe" 41633 elif test -f "${new_path}.cmd"; then 41634 input_to_shortpath="${new_path}.cmd" 41635 else 41636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 41637 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 41638 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 41639 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 41640 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41641 fi 41642 else 41643 input_to_shortpath="$new_path" 41644 fi 41645 41646 # Call helper function which possibly converts this using DOS-style short mode. 41647 # If so, the updated path is stored in $new_path. 41648 new_path="$input_to_shortpath" 41649 41650 input_path="$input_to_shortpath" 41651 # Check if we need to convert this using DOS-style short mode. If the path 41652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41653 # take no chances and rewrite it. 41654 # Note: m4 eats our [], so we need to use [ and ] instead. 41655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41656 if test "x$has_forbidden_chars" != x; then 41657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41661 # Going to short mode and back again did indeed matter. Since short mode is 41662 # case insensitive, let's make it lowercase to improve readability. 41663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41664 # Now convert it back to Unix-style (cygpath) 41665 input_path=`$CYGPATH -u "$shortmode_path"` 41666 new_path="$input_path" 41667 fi 41668 fi 41669 41670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41671 if test "x$test_cygdrive_prefix" = x; then 41672 # As a simple fix, exclude /usr/bin since it's not a real path. 41673 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 41674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41675 # a path prefixed by /cygdrive for fixpath to work. 41676 new_path="$CYGWIN_ROOT_PATH$input_path" 41677 fi 41678 fi 41679 41680 # remove trailing .exe if any 41681 new_path="${new_path/%.exe/}" 41682 41683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41684 41685 # First separate the path from the arguments. This will split at the first 41686 # space. 41687 complete="$STRIP" 41688 path="${complete%% *}" 41689 tmp="$complete EOL" 41690 arguments="${tmp#* }" 41691 41692 # Input might be given as Windows format, start by converting to 41693 # unix format. 41694 new_path="$path" 41695 41696 windows_path="$new_path" 41697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41698 unix_path=`$CYGPATH -u "$windows_path"` 41699 new_path="$unix_path" 41700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41702 new_path="$unix_path" 41703 fi 41704 41705 41706 # Now try to locate executable using which 41707 new_path=`$WHICH "$new_path" 2> /dev/null` 41708 41709 if test "x$new_path" = x; then 41710 # Oops. Which didn't find the executable. 41711 # The splitting of arguments from the executable at a space might have been incorrect, 41712 # since paths with space are more likely in Windows. Give it another try with the whole 41713 # argument. 41714 path="$complete" 41715 arguments="EOL" 41716 new_path="$path" 41717 41718 windows_path="$new_path" 41719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41720 unix_path=`$CYGPATH -u "$windows_path"` 41721 new_path="$unix_path" 41722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41724 new_path="$unix_path" 41725 fi 41726 41727 41728 new_path=`$WHICH "$new_path" 2> /dev/null` 41729 # bat and cmd files are not always considered executable in MSYS causing which 41730 # to not find them 41731 if test "x$new_path" = x \ 41732 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 41733 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 41734 new_path="$path" 41735 41736 windows_path="$new_path" 41737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41738 unix_path=`$CYGPATH -u "$windows_path"` 41739 new_path="$unix_path" 41740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41742 new_path="$unix_path" 41743 fi 41744 41745 fi 41746 41747 if test "x$new_path" = x; then 41748 # It's still not found. Now this is an unrecoverable error. 41749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41750 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41751 has_space=`$ECHO "$complete" | $GREP " "` 41752 if test "x$has_space" != x; then 41753 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 41754 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 41755 fi 41756 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41757 fi 41758 fi 41759 41760 # Now new_path has a complete unix path to the binary 41761 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 41762 # Keep paths in /bin as-is, but remove trailing .exe if any 41763 new_path="${new_path/%.exe/}" 41764 # Do not save /bin paths to all_fixpath_prefixes! 41765 else 41766 # Not in mixed or Windows style, start by that. 41767 new_path=`cmd //c echo $new_path` 41768 41769 input_path="$new_path" 41770 # Check if we need to convert this using DOS-style short mode. If the path 41771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41772 # take no chances and rewrite it. 41773 # Note: m4 eats our [], so we need to use [ and ] instead. 41774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41775 if test "x$has_forbidden_chars" != x; then 41776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41777 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41778 fi 41779 41780 # Output is in $new_path 41781 41782 windows_path="$new_path" 41783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41784 unix_path=`$CYGPATH -u "$windows_path"` 41785 new_path="$unix_path" 41786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41788 new_path="$unix_path" 41789 fi 41790 41791 # remove trailing .exe if any 41792 new_path="${new_path/%.exe/}" 41793 41794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41796 fi 41797 41798 else 41799 # We're on a unix platform. Hooray! :) 41800 # First separate the path from the arguments. This will split at the first 41801 # space. 41802 complete="$STRIP" 41803 path="${complete%% *}" 41804 tmp="$complete EOL" 41805 arguments="${tmp#* }" 41806 41807 # Cannot rely on the command "which" here since it doesn't always work. 41808 is_absolute_path=`$ECHO "$path" | $GREP ^/` 41809 if test -z "$is_absolute_path"; then 41810 # Path to executable is not absolute. Find it. 41811 IFS_save="$IFS" 41812 IFS=: 41813 for p in $PATH; do 41814 if test -f "$p/$path" && test -x "$p/$path"; then 41815 new_path="$p/$path" 41816 break 41817 fi 41818 done 41819 IFS="$IFS_save" 41820 else 41821 # This is an absolute path, we can use it without further modifications. 41822 new_path="$path" 41823 fi 41824 41825 if test "x$new_path" = x; then 41826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 41827 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 41828 has_space=`$ECHO "$complete" | $GREP " "` 41829 if test "x$has_space" != x; then 41830 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 41831 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 41832 fi 41833 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 41834 fi 41835 fi 41836 41837 # Now join together the path and the arguments once again 41838 if test "x$arguments" != xEOL; then 41839 new_complete="$new_path ${arguments% *}" 41840 else 41841 new_complete="$new_path" 41842 fi 41843 41844 if test "x$complete" != "x$new_complete"; then 41845 STRIP="$new_complete" 41846 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 41847 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 41848 fi 41849 fi 41850 41851 41852 41853 # Publish this variable in the help. 41854 41855 41856 if [ -z "${NM+x}" ]; then 41857 # The variable is not set by user, try to locate tool using the code snippet 41858 for ac_prog in nm 41859 do 41860 # Extract the first word of "$ac_prog", so it can be a program name with args. 41861 set dummy $ac_prog; ac_word=$2 41862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41863 $as_echo_n "checking for $ac_word... " >&6; } 41864 if ${ac_cv_path_NM+:} false; then : 41865 $as_echo_n "(cached) " >&6 41866 else 41867 case $NM in 41868 [\\/]* | ?:[\\/]*) 41869 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41870 ;; 41871 *) 41872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41873 for as_dir in $PATH 41874 do 41875 IFS=$as_save_IFS 41876 test -z "$as_dir" && as_dir=. 41877 for ac_exec_ext in '' $ac_executable_extensions; do 41878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41879 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41881 break 2 41882 fi 41883 done 41884 done 41885 IFS=$as_save_IFS 41886 41887 ;; 41888 esac 41889 fi 41890 NM=$ac_cv_path_NM 41891 if test -n "$NM"; then 41892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41893 $as_echo "$NM" >&6; } 41894 else 41895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41896 $as_echo "no" >&6; } 41897 fi 41898 41899 41900 test -n "$NM" && break 41901 done 41902 41903 else 41904 # The variable is set, but is it from the command line or the environment? 41905 41906 # Try to remove the string !NM! from our list. 41907 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 41908 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41909 # If it failed, the variable was not from the command line. Ignore it, 41910 # but warn the user (except for BASH, which is always set by the calling BASH). 41911 if test "xNM" != xBASH; then 41912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 41913 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 41914 fi 41915 # Try to locate tool using the code snippet 41916 for ac_prog in nm 41917 do 41918 # Extract the first word of "$ac_prog", so it can be a program name with args. 41919 set dummy $ac_prog; ac_word=$2 41920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41921 $as_echo_n "checking for $ac_word... " >&6; } 41922 if ${ac_cv_path_NM+:} false; then : 41923 $as_echo_n "(cached) " >&6 41924 else 41925 case $NM in 41926 [\\/]* | ?:[\\/]*) 41927 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41928 ;; 41929 *) 41930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41931 for as_dir in $PATH 41932 do 41933 IFS=$as_save_IFS 41934 test -z "$as_dir" && as_dir=. 41935 for ac_exec_ext in '' $ac_executable_extensions; do 41936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41937 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 41938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41939 break 2 41940 fi 41941 done 41942 done 41943 IFS=$as_save_IFS 41944 41945 ;; 41946 esac 41947 fi 41948 NM=$ac_cv_path_NM 41949 if test -n "$NM"; then 41950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 41951 $as_echo "$NM" >&6; } 41952 else 41953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41954 $as_echo "no" >&6; } 41955 fi 41956 41957 41958 test -n "$NM" && break 41959 done 41960 41961 else 41962 # If it succeeded, then it was overridden by the user. We will use it 41963 # for the tool. 41964 41965 # First remove it from the list of overridden variables, so we can test 41966 # for unknown variables in the end. 41967 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41968 41969 # Check if we try to supply an empty value 41970 if test "x$NM" = x; then 41971 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 41972 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 41973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 41974 $as_echo_n "checking for NM... " >&6; } 41975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 41976 $as_echo "disabled" >&6; } 41977 else 41978 # Check if the provided tool contains a complete path. 41979 tool_specified="$NM" 41980 tool_basename="${tool_specified##*/}" 41981 if test "x$tool_basename" = "x$tool_specified"; then 41982 # A command without a complete path is provided, search $PATH. 41983 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 41984 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 41985 # Extract the first word of "$tool_basename", so it can be a program name with args. 41986 set dummy $tool_basename; ac_word=$2 41987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41988 $as_echo_n "checking for $ac_word... " >&6; } 41989 if ${ac_cv_path_NM+:} false; then : 41990 $as_echo_n "(cached) " >&6 41991 else 41992 case $NM in 41993 [\\/]* | ?:[\\/]*) 41994 ac_cv_path_NM="$NM" # Let the user override the test with a path. 41995 ;; 41996 *) 41997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41998 for as_dir in $PATH 41999 do 42000 IFS=$as_save_IFS 42001 test -z "$as_dir" && as_dir=. 42002 for ac_exec_ext in '' $ac_executable_extensions; do 42003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42004 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 42005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42006 break 2 42007 fi 42008 done 42009 done 42010 IFS=$as_save_IFS 42011 42012 ;; 42013 esac 42014 fi 42015 NM=$ac_cv_path_NM 42016 if test -n "$NM"; then 42017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 42018 $as_echo "$NM" >&6; } 42019 else 42020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42021 $as_echo "no" >&6; } 42022 fi 42023 42024 42025 if test "x$NM" = x; then 42026 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42027 fi 42028 else 42029 # Otherwise we believe it is a complete path. Use it as it is. 42030 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 42031 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 42032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 42033 $as_echo_n "checking for NM... " >&6; } 42034 if test ! -x "$tool_specified"; then 42035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42036 $as_echo "not found" >&6; } 42037 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 42038 fi 42039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42040 $as_echo "$tool_specified" >&6; } 42041 fi 42042 fi 42043 fi 42044 42045 fi 42046 42047 42048 42049 # Only process if variable expands to non-empty 42050 42051 if test "x$NM" != x; then 42052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42053 42054 # First separate the path from the arguments. This will split at the first 42055 # space. 42056 complete="$NM" 42057 path="${complete%% *}" 42058 tmp="$complete EOL" 42059 arguments="${tmp#* }" 42060 42061 # Input might be given as Windows format, start by converting to 42062 # unix format. 42063 new_path=`$CYGPATH -u "$path"` 42064 42065 # Now try to locate executable using which 42066 new_path=`$WHICH "$new_path" 2> /dev/null` 42067 # bat and cmd files are not always considered executable in cygwin causing which 42068 # to not find them 42069 if test "x$new_path" = x \ 42070 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42071 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42072 new_path=`$CYGPATH -u "$path"` 42073 fi 42074 if test "x$new_path" = x; then 42075 # Oops. Which didn't find the executable. 42076 # The splitting of arguments from the executable at a space might have been incorrect, 42077 # since paths with space are more likely in Windows. Give it another try with the whole 42078 # argument. 42079 path="$complete" 42080 arguments="EOL" 42081 new_path=`$CYGPATH -u "$path"` 42082 new_path=`$WHICH "$new_path" 2> /dev/null` 42083 # bat and cmd files are not always considered executable in cygwin causing which 42084 # to not find them 42085 if test "x$new_path" = x \ 42086 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42087 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42088 new_path=`$CYGPATH -u "$path"` 42089 fi 42090 if test "x$new_path" = x; then 42091 # It's still not found. Now this is an unrecoverable error. 42092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42093 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42094 has_space=`$ECHO "$complete" | $GREP " "` 42095 if test "x$has_space" != x; then 42096 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42097 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42098 fi 42099 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42100 fi 42101 fi 42102 42103 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42104 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42105 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42106 # "foo.exe" is OK but "foo" is an error. 42107 # 42108 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42109 # It is also a way to make sure we got the proper file name for the real test later on. 42110 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42111 if test "x$test_shortpath" = x; then 42112 # Short path failed, file does not exist as specified. 42113 # Try adding .exe or .cmd 42114 if test -f "${new_path}.exe"; then 42115 input_to_shortpath="${new_path}.exe" 42116 elif test -f "${new_path}.cmd"; then 42117 input_to_shortpath="${new_path}.cmd" 42118 else 42119 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 42120 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 42121 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42122 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42123 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42124 fi 42125 else 42126 input_to_shortpath="$new_path" 42127 fi 42128 42129 # Call helper function which possibly converts this using DOS-style short mode. 42130 # If so, the updated path is stored in $new_path. 42131 new_path="$input_to_shortpath" 42132 42133 input_path="$input_to_shortpath" 42134 # Check if we need to convert this using DOS-style short mode. If the path 42135 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42136 # take no chances and rewrite it. 42137 # Note: m4 eats our [], so we need to use [ and ] instead. 42138 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42139 if test "x$has_forbidden_chars" != x; then 42140 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42141 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42142 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42143 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42144 # Going to short mode and back again did indeed matter. Since short mode is 42145 # case insensitive, let's make it lowercase to improve readability. 42146 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42147 # Now convert it back to Unix-style (cygpath) 42148 input_path=`$CYGPATH -u "$shortmode_path"` 42149 new_path="$input_path" 42150 fi 42151 fi 42152 42153 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42154 if test "x$test_cygdrive_prefix" = x; then 42155 # As a simple fix, exclude /usr/bin since it's not a real path. 42156 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42157 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42158 # a path prefixed by /cygdrive for fixpath to work. 42159 new_path="$CYGWIN_ROOT_PATH$input_path" 42160 fi 42161 fi 42162 42163 # remove trailing .exe if any 42164 new_path="${new_path/%.exe/}" 42165 42166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42167 42168 # First separate the path from the arguments. This will split at the first 42169 # space. 42170 complete="$NM" 42171 path="${complete%% *}" 42172 tmp="$complete EOL" 42173 arguments="${tmp#* }" 42174 42175 # Input might be given as Windows format, start by converting to 42176 # unix format. 42177 new_path="$path" 42178 42179 windows_path="$new_path" 42180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42181 unix_path=`$CYGPATH -u "$windows_path"` 42182 new_path="$unix_path" 42183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42184 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42185 new_path="$unix_path" 42186 fi 42187 42188 42189 # Now try to locate executable using which 42190 new_path=`$WHICH "$new_path" 2> /dev/null` 42191 42192 if test "x$new_path" = x; then 42193 # Oops. Which didn't find the executable. 42194 # The splitting of arguments from the executable at a space might have been incorrect, 42195 # since paths with space are more likely in Windows. Give it another try with the whole 42196 # argument. 42197 path="$complete" 42198 arguments="EOL" 42199 new_path="$path" 42200 42201 windows_path="$new_path" 42202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42203 unix_path=`$CYGPATH -u "$windows_path"` 42204 new_path="$unix_path" 42205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42206 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42207 new_path="$unix_path" 42208 fi 42209 42210 42211 new_path=`$WHICH "$new_path" 2> /dev/null` 42212 # bat and cmd files are not always considered executable in MSYS causing which 42213 # to not find them 42214 if test "x$new_path" = x \ 42215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42217 new_path="$path" 42218 42219 windows_path="$new_path" 42220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42221 unix_path=`$CYGPATH -u "$windows_path"` 42222 new_path="$unix_path" 42223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42224 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42225 new_path="$unix_path" 42226 fi 42227 42228 fi 42229 42230 if test "x$new_path" = x; then 42231 # It's still not found. Now this is an unrecoverable error. 42232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42233 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42234 has_space=`$ECHO "$complete" | $GREP " "` 42235 if test "x$has_space" != x; then 42236 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42238 fi 42239 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42240 fi 42241 fi 42242 42243 # Now new_path has a complete unix path to the binary 42244 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42245 # Keep paths in /bin as-is, but remove trailing .exe if any 42246 new_path="${new_path/%.exe/}" 42247 # Do not save /bin paths to all_fixpath_prefixes! 42248 else 42249 # Not in mixed or Windows style, start by that. 42250 new_path=`cmd //c echo $new_path` 42251 42252 input_path="$new_path" 42253 # Check if we need to convert this using DOS-style short mode. If the path 42254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42255 # take no chances and rewrite it. 42256 # Note: m4 eats our [], so we need to use [ and ] instead. 42257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42258 if test "x$has_forbidden_chars" != x; then 42259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42261 fi 42262 42263 # Output is in $new_path 42264 42265 windows_path="$new_path" 42266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42267 unix_path=`$CYGPATH -u "$windows_path"` 42268 new_path="$unix_path" 42269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42271 new_path="$unix_path" 42272 fi 42273 42274 # remove trailing .exe if any 42275 new_path="${new_path/%.exe/}" 42276 42277 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42278 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42279 fi 42280 42281 else 42282 # We're on a unix platform. Hooray! :) 42283 # First separate the path from the arguments. This will split at the first 42284 # space. 42285 complete="$NM" 42286 path="${complete%% *}" 42287 tmp="$complete EOL" 42288 arguments="${tmp#* }" 42289 42290 # Cannot rely on the command "which" here since it doesn't always work. 42291 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42292 if test -z "$is_absolute_path"; then 42293 # Path to executable is not absolute. Find it. 42294 IFS_save="$IFS" 42295 IFS=: 42296 for p in $PATH; do 42297 if test -f "$p/$path" && test -x "$p/$path"; then 42298 new_path="$p/$path" 42299 break 42300 fi 42301 done 42302 IFS="$IFS_save" 42303 else 42304 # This is an absolute path, we can use it without further modifications. 42305 new_path="$path" 42306 fi 42307 42308 if test "x$new_path" = x; then 42309 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 42310 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 42311 has_space=`$ECHO "$complete" | $GREP " "` 42312 if test "x$has_space" != x; then 42313 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42314 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42315 fi 42316 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 42317 fi 42318 fi 42319 42320 # Now join together the path and the arguments once again 42321 if test "x$arguments" != xEOL; then 42322 new_complete="$new_path ${arguments% *}" 42323 else 42324 new_complete="$new_path" 42325 fi 42326 42327 if test "x$complete" != "x$new_complete"; then 42328 NM="$new_complete" 42329 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 42330 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 42331 fi 42332 fi 42333 42334 42335 42336 # Publish this variable in the help. 42337 42338 42339 if [ -z "${GNM+x}" ]; then 42340 # The variable is not set by user, try to locate tool using the code snippet 42341 for ac_prog in gnm 42342 do 42343 # Extract the first word of "$ac_prog", so it can be a program name with args. 42344 set dummy $ac_prog; ac_word=$2 42345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42346 $as_echo_n "checking for $ac_word... " >&6; } 42347 if ${ac_cv_path_GNM+:} false; then : 42348 $as_echo_n "(cached) " >&6 42349 else 42350 case $GNM in 42351 [\\/]* | ?:[\\/]*) 42352 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42353 ;; 42354 *) 42355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42356 for as_dir in $PATH 42357 do 42358 IFS=$as_save_IFS 42359 test -z "$as_dir" && as_dir=. 42360 for ac_exec_ext in '' $ac_executable_extensions; do 42361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42362 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42364 break 2 42365 fi 42366 done 42367 done 42368 IFS=$as_save_IFS 42369 42370 ;; 42371 esac 42372 fi 42373 GNM=$ac_cv_path_GNM 42374 if test -n "$GNM"; then 42375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42376 $as_echo "$GNM" >&6; } 42377 else 42378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42379 $as_echo "no" >&6; } 42380 fi 42381 42382 42383 test -n "$GNM" && break 42384 done 42385 42386 else 42387 # The variable is set, but is it from the command line or the environment? 42388 42389 # Try to remove the string !GNM! from our list. 42390 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 42391 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42392 # If it failed, the variable was not from the command line. Ignore it, 42393 # but warn the user (except for BASH, which is always set by the calling BASH). 42394 if test "xGNM" != xBASH; then 42395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 42396 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 42397 fi 42398 # Try to locate tool using the code snippet 42399 for ac_prog in gnm 42400 do 42401 # Extract the first word of "$ac_prog", so it can be a program name with args. 42402 set dummy $ac_prog; ac_word=$2 42403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42404 $as_echo_n "checking for $ac_word... " >&6; } 42405 if ${ac_cv_path_GNM+:} false; then : 42406 $as_echo_n "(cached) " >&6 42407 else 42408 case $GNM in 42409 [\\/]* | ?:[\\/]*) 42410 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42411 ;; 42412 *) 42413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42414 for as_dir in $PATH 42415 do 42416 IFS=$as_save_IFS 42417 test -z "$as_dir" && as_dir=. 42418 for ac_exec_ext in '' $ac_executable_extensions; do 42419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42420 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42422 break 2 42423 fi 42424 done 42425 done 42426 IFS=$as_save_IFS 42427 42428 ;; 42429 esac 42430 fi 42431 GNM=$ac_cv_path_GNM 42432 if test -n "$GNM"; then 42433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42434 $as_echo "$GNM" >&6; } 42435 else 42436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42437 $as_echo "no" >&6; } 42438 fi 42439 42440 42441 test -n "$GNM" && break 42442 done 42443 42444 else 42445 # If it succeeded, then it was overridden by the user. We will use it 42446 # for the tool. 42447 42448 # First remove it from the list of overridden variables, so we can test 42449 # for unknown variables in the end. 42450 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 42451 42452 # Check if we try to supply an empty value 42453 if test "x$GNM" = x; then 42454 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool GNM= (no value)" >&5 42455 $as_echo "$as_me: Setting user supplied tool GNM= (no value)" >&6;} 42456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42457 $as_echo_n "checking for GNM... " >&6; } 42458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 42459 $as_echo "disabled" >&6; } 42460 else 42461 # Check if the provided tool contains a complete path. 42462 tool_specified="$GNM" 42463 tool_basename="${tool_specified##*/}" 42464 if test "x$tool_basename" = "x$tool_specified"; then 42465 # A command without a complete path is provided, search $PATH. 42466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 42467 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 42468 # Extract the first word of "$tool_basename", so it can be a program name with args. 42469 set dummy $tool_basename; ac_word=$2 42470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42471 $as_echo_n "checking for $ac_word... " >&6; } 42472 if ${ac_cv_path_GNM+:} false; then : 42473 $as_echo_n "(cached) " >&6 42474 else 42475 case $GNM in 42476 [\\/]* | ?:[\\/]*) 42477 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 42478 ;; 42479 *) 42480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42481 for as_dir in $PATH 42482 do 42483 IFS=$as_save_IFS 42484 test -z "$as_dir" && as_dir=. 42485 for ac_exec_ext in '' $ac_executable_extensions; do 42486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42487 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 42488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42489 break 2 42490 fi 42491 done 42492 done 42493 IFS=$as_save_IFS 42494 42495 ;; 42496 esac 42497 fi 42498 GNM=$ac_cv_path_GNM 42499 if test -n "$GNM"; then 42500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 42501 $as_echo "$GNM" >&6; } 42502 else 42503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42504 $as_echo "no" >&6; } 42505 fi 42506 42507 42508 if test "x$GNM" = x; then 42509 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 42510 fi 42511 else 42512 # Otherwise we believe it is a complete path. Use it as it is. 42513 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 42514 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 42515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 42516 $as_echo_n "checking for GNM... " >&6; } 42517 if test ! -x "$tool_specified"; then 42518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 42519 $as_echo "not found" >&6; } 42520 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 42521 fi 42522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 42523 $as_echo "$tool_specified" >&6; } 42524 fi 42525 fi 42526 fi 42527 42528 fi 42529 42530 42531 42532 # Only process if variable expands to non-empty 42533 42534 if test "x$GNM" != x; then 42535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42536 42537 # First separate the path from the arguments. This will split at the first 42538 # space. 42539 complete="$GNM" 42540 path="${complete%% *}" 42541 tmp="$complete EOL" 42542 arguments="${tmp#* }" 42543 42544 # Input might be given as Windows format, start by converting to 42545 # unix format. 42546 new_path=`$CYGPATH -u "$path"` 42547 42548 # Now try to locate executable using which 42549 new_path=`$WHICH "$new_path" 2> /dev/null` 42550 # bat and cmd files are not always considered executable in cygwin causing which 42551 # to not find them 42552 if test "x$new_path" = x \ 42553 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42554 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42555 new_path=`$CYGPATH -u "$path"` 42556 fi 42557 if test "x$new_path" = x; then 42558 # Oops. Which didn't find the executable. 42559 # The splitting of arguments from the executable at a space might have been incorrect, 42560 # since paths with space are more likely in Windows. Give it another try with the whole 42561 # argument. 42562 path="$complete" 42563 arguments="EOL" 42564 new_path=`$CYGPATH -u "$path"` 42565 new_path=`$WHICH "$new_path" 2> /dev/null` 42566 # bat and cmd files are not always considered executable in cygwin causing which 42567 # to not find them 42568 if test "x$new_path" = x \ 42569 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42570 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42571 new_path=`$CYGPATH -u "$path"` 42572 fi 42573 if test "x$new_path" = x; then 42574 # It's still not found. Now this is an unrecoverable error. 42575 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42576 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42577 has_space=`$ECHO "$complete" | $GREP " "` 42578 if test "x$has_space" != x; then 42579 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42580 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42581 fi 42582 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42583 fi 42584 fi 42585 42586 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42587 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42588 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42589 # "foo.exe" is OK but "foo" is an error. 42590 # 42591 # This test is therefore slightly more accurate than "test -f" to check for file presence. 42592 # It is also a way to make sure we got the proper file name for the real test later on. 42593 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42594 if test "x$test_shortpath" = x; then 42595 # Short path failed, file does not exist as specified. 42596 # Try adding .exe or .cmd 42597 if test -f "${new_path}.exe"; then 42598 input_to_shortpath="${new_path}.exe" 42599 elif test -f "${new_path}.cmd"; then 42600 input_to_shortpath="${new_path}.cmd" 42601 else 42602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 42603 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 42604 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 42605 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 42606 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42607 fi 42608 else 42609 input_to_shortpath="$new_path" 42610 fi 42611 42612 # Call helper function which possibly converts this using DOS-style short mode. 42613 # If so, the updated path is stored in $new_path. 42614 new_path="$input_to_shortpath" 42615 42616 input_path="$input_to_shortpath" 42617 # Check if we need to convert this using DOS-style short mode. If the path 42618 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42619 # take no chances and rewrite it. 42620 # Note: m4 eats our [], so we need to use [ and ] instead. 42621 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42622 if test "x$has_forbidden_chars" != x; then 42623 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42624 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42625 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42626 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42627 # Going to short mode and back again did indeed matter. Since short mode is 42628 # case insensitive, let's make it lowercase to improve readability. 42629 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42630 # Now convert it back to Unix-style (cygpath) 42631 input_path=`$CYGPATH -u "$shortmode_path"` 42632 new_path="$input_path" 42633 fi 42634 fi 42635 42636 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42637 if test "x$test_cygdrive_prefix" = x; then 42638 # As a simple fix, exclude /usr/bin since it's not a real path. 42639 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 42640 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42641 # a path prefixed by /cygdrive for fixpath to work. 42642 new_path="$CYGWIN_ROOT_PATH$input_path" 42643 fi 42644 fi 42645 42646 # remove trailing .exe if any 42647 new_path="${new_path/%.exe/}" 42648 42649 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42650 42651 # First separate the path from the arguments. This will split at the first 42652 # space. 42653 complete="$GNM" 42654 path="${complete%% *}" 42655 tmp="$complete EOL" 42656 arguments="${tmp#* }" 42657 42658 # Input might be given as Windows format, start by converting to 42659 # unix format. 42660 new_path="$path" 42661 42662 windows_path="$new_path" 42663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42664 unix_path=`$CYGPATH -u "$windows_path"` 42665 new_path="$unix_path" 42666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42668 new_path="$unix_path" 42669 fi 42670 42671 42672 # Now try to locate executable using which 42673 new_path=`$WHICH "$new_path" 2> /dev/null` 42674 42675 if test "x$new_path" = x; then 42676 # Oops. Which didn't find the executable. 42677 # The splitting of arguments from the executable at a space might have been incorrect, 42678 # since paths with space are more likely in Windows. Give it another try with the whole 42679 # argument. 42680 path="$complete" 42681 arguments="EOL" 42682 new_path="$path" 42683 42684 windows_path="$new_path" 42685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42686 unix_path=`$CYGPATH -u "$windows_path"` 42687 new_path="$unix_path" 42688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42690 new_path="$unix_path" 42691 fi 42692 42693 42694 new_path=`$WHICH "$new_path" 2> /dev/null` 42695 # bat and cmd files are not always considered executable in MSYS causing which 42696 # to not find them 42697 if test "x$new_path" = x \ 42698 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 42699 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 42700 new_path="$path" 42701 42702 windows_path="$new_path" 42703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42704 unix_path=`$CYGPATH -u "$windows_path"` 42705 new_path="$unix_path" 42706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42708 new_path="$unix_path" 42709 fi 42710 42711 fi 42712 42713 if test "x$new_path" = x; then 42714 # It's still not found. Now this is an unrecoverable error. 42715 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42716 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42717 has_space=`$ECHO "$complete" | $GREP " "` 42718 if test "x$has_space" != x; then 42719 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 42720 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 42721 fi 42722 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42723 fi 42724 fi 42725 42726 # Now new_path has a complete unix path to the binary 42727 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 42728 # Keep paths in /bin as-is, but remove trailing .exe if any 42729 new_path="${new_path/%.exe/}" 42730 # Do not save /bin paths to all_fixpath_prefixes! 42731 else 42732 # Not in mixed or Windows style, start by that. 42733 new_path=`cmd //c echo $new_path` 42734 42735 input_path="$new_path" 42736 # Check if we need to convert this using DOS-style short mode. If the path 42737 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42738 # take no chances and rewrite it. 42739 # Note: m4 eats our [], so we need to use [ and ] instead. 42740 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42741 if test "x$has_forbidden_chars" != x; then 42742 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42743 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42744 fi 42745 42746 # Output is in $new_path 42747 42748 windows_path="$new_path" 42749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42750 unix_path=`$CYGPATH -u "$windows_path"` 42751 new_path="$unix_path" 42752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42754 new_path="$unix_path" 42755 fi 42756 42757 # remove trailing .exe if any 42758 new_path="${new_path/%.exe/}" 42759 42760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42762 fi 42763 42764 else 42765 # We're on a unix platform. Hooray! :) 42766 # First separate the path from the arguments. This will split at the first 42767 # space. 42768 complete="$GNM" 42769 path="${complete%% *}" 42770 tmp="$complete EOL" 42771 arguments="${tmp#* }" 42772 42773 # Cannot rely on the command "which" here since it doesn't always work. 42774 is_absolute_path=`$ECHO "$path" | $GREP ^/` 42775 if test -z "$is_absolute_path"; then 42776 # Path to executable is not absolute. Find it. 42777 IFS_save="$IFS" 42778 IFS=: 42779 for p in $PATH; do 42780 if test -f "$p/$path" && test -x "$p/$path"; then 42781 new_path="$p/$path" 42782 break 42783 fi 42784 done 42785 IFS="$IFS_save" 42786 else 42787 # This is an absolute path, we can use it without further modifications. 42788 new_path="$path" 42789 fi 42790 42791 if test "x$new_path" = x; then 42792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 42793 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 42794 has_space=`$ECHO "$complete" | $GREP " "` 42795 if test "x$has_space" != x; then 42796 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 42797 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 42798 fi 42799 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 42800 fi 42801 fi 42802 42803 # Now join together the path and the arguments once again 42804 if test "x$arguments" != xEOL; then 42805 new_complete="$new_path ${arguments% *}" 42806 else 42807 new_complete="$new_path" 42808 fi 42809 42810 if test "x$complete" != "x$new_complete"; then 42811 GNM="$new_complete" 42812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 42813 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 42814 fi 42815 fi 42816 42817 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 42818 # FIXME: we should unify this with the solaris case above. 42819 42820 42821 # Publish this variable in the help. 42822 42823 42824 if [ -z "${STRIP+x}" ]; then 42825 # The variable is not set by user, try to locate tool using the code snippet 42826 if test -n "$ac_tool_prefix"; then 42827 for ac_prog in strip 42828 do 42829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42832 $as_echo_n "checking for $ac_word... " >&6; } 42833 if ${ac_cv_prog_STRIP+:} false; then : 42834 $as_echo_n "(cached) " >&6 42835 else 42836 if test -n "$STRIP"; then 42837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42838 else 42839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42840 for as_dir in $PATH 42841 do 42842 IFS=$as_save_IFS 42843 test -z "$as_dir" && as_dir=. 42844 for ac_exec_ext in '' $ac_executable_extensions; do 42845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42846 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42848 break 2 42849 fi 42850 done 42851 done 42852 IFS=$as_save_IFS 42853 42854 fi 42855 fi 42856 STRIP=$ac_cv_prog_STRIP 42857 if test -n "$STRIP"; then 42858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42859 $as_echo "$STRIP" >&6; } 42860 else 42861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42862 $as_echo "no" >&6; } 42863 fi 42864 42865 42866 test -n "$STRIP" && break 42867 done 42868 fi 42869 if test -z "$STRIP"; then 42870 ac_ct_STRIP=$STRIP 42871 for ac_prog in strip 42872 do 42873 # Extract the first word of "$ac_prog", so it can be a program name with args. 42874 set dummy $ac_prog; ac_word=$2 42875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42876 $as_echo_n "checking for $ac_word... " >&6; } 42877 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42878 $as_echo_n "(cached) " >&6 42879 else 42880 if test -n "$ac_ct_STRIP"; then 42881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42882 else 42883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42884 for as_dir in $PATH 42885 do 42886 IFS=$as_save_IFS 42887 test -z "$as_dir" && as_dir=. 42888 for ac_exec_ext in '' $ac_executable_extensions; do 42889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42890 ac_cv_prog_ac_ct_STRIP="$ac_prog" 42891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42892 break 2 42893 fi 42894 done 42895 done 42896 IFS=$as_save_IFS 42897 42898 fi 42899 fi 42900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 42901 if test -n "$ac_ct_STRIP"; then 42902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 42903 $as_echo "$ac_ct_STRIP" >&6; } 42904 else 42905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42906 $as_echo "no" >&6; } 42907 fi 42908 42909 42910 test -n "$ac_ct_STRIP" && break 42911 done 42912 42913 if test "x$ac_ct_STRIP" = x; then 42914 STRIP="" 42915 else 42916 case $cross_compiling:$ac_tool_warned in 42917 yes:) 42918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 42919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 42920 ac_tool_warned=yes ;; 42921 esac 42922 STRIP=$ac_ct_STRIP 42923 fi 42924 fi 42925 42926 else 42927 # The variable is set, but is it from the command line or the environment? 42928 42929 # Try to remove the string !STRIP! from our list. 42930 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 42931 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 42932 # If it failed, the variable was not from the command line. Ignore it, 42933 # but warn the user (except for BASH, which is always set by the calling BASH). 42934 if test "xSTRIP" != xBASH; then 42935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 42936 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 42937 fi 42938 # Try to locate tool using the code snippet 42939 if test -n "$ac_tool_prefix"; then 42940 for ac_prog in strip 42941 do 42942 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 42943 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 42944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42945 $as_echo_n "checking for $ac_word... " >&6; } 42946 if ${ac_cv_prog_STRIP+:} false; then : 42947 $as_echo_n "(cached) " >&6 42948 else 42949 if test -n "$STRIP"; then 42950 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 42951 else 42952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42953 for as_dir in $PATH 42954 do 42955 IFS=$as_save_IFS 42956 test -z "$as_dir" && as_dir=. 42957 for ac_exec_ext in '' $ac_executable_extensions; do 42958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 42959 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 42960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 42961 break 2 42962 fi 42963 done 42964 done 42965 IFS=$as_save_IFS 42966 42967 fi 42968 fi 42969 STRIP=$ac_cv_prog_STRIP 42970 if test -n "$STRIP"; then 42971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 42972 $as_echo "$STRIP" >&6; } 42973 else 42974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42975 $as_echo "no" >&6; } 42976 fi 42977 42978 42979 test -n "$STRIP" && break 42980 done 42981 fi 42982 if test -z "$STRIP"; then 42983 ac_ct_STRIP=$STRIP 42984 for ac_prog in strip 42985 do 42986 # Extract the first word of "$ac_prog", so it can be a program name with args. 42987 set dummy $ac_prog; ac_word=$2 42988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 42989 $as_echo_n "checking for $ac_word... " >&6; } 42990 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 42991 $as_echo_n "(cached) " >&6 42992 else 42993 if test -n "$ac_ct_STRIP"; then 42994 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 42995 else 42996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 42997 for as_dir in $PATH 42998 do 42999 IFS=$as_save_IFS 43000 test -z "$as_dir" && as_dir=. 43001 for ac_exec_ext in '' $ac_executable_extensions; do 43002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43003 ac_cv_prog_ac_ct_STRIP="$ac_prog" 43004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43005 break 2 43006 fi 43007 done 43008 done 43009 IFS=$as_save_IFS 43010 43011 fi 43012 fi 43013 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 43014 if test -n "$ac_ct_STRIP"; then 43015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 43016 $as_echo "$ac_ct_STRIP" >&6; } 43017 else 43018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43019 $as_echo "no" >&6; } 43020 fi 43021 43022 43023 test -n "$ac_ct_STRIP" && break 43024 done 43025 43026 if test "x$ac_ct_STRIP" = x; then 43027 STRIP="" 43028 else 43029 case $cross_compiling:$ac_tool_warned in 43030 yes:) 43031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43033 ac_tool_warned=yes ;; 43034 esac 43035 STRIP=$ac_ct_STRIP 43036 fi 43037 fi 43038 43039 else 43040 # If it succeeded, then it was overridden by the user. We will use it 43041 # for the tool. 43042 43043 # First remove it from the list of overridden variables, so we can test 43044 # for unknown variables in the end. 43045 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43046 43047 # Check if we try to supply an empty value 43048 if test "x$STRIP" = x; then 43049 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool STRIP= (no value)" >&5 43050 $as_echo "$as_me: Setting user supplied tool STRIP= (no value)" >&6;} 43051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43052 $as_echo_n "checking for STRIP... " >&6; } 43053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43054 $as_echo "disabled" >&6; } 43055 else 43056 # Check if the provided tool contains a complete path. 43057 tool_specified="$STRIP" 43058 tool_basename="${tool_specified##*/}" 43059 if test "x$tool_basename" = "x$tool_specified"; then 43060 # A command without a complete path is provided, search $PATH. 43061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 43062 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 43063 # Extract the first word of "$tool_basename", so it can be a program name with args. 43064 set dummy $tool_basename; ac_word=$2 43065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43066 $as_echo_n "checking for $ac_word... " >&6; } 43067 if ${ac_cv_path_STRIP+:} false; then : 43068 $as_echo_n "(cached) " >&6 43069 else 43070 case $STRIP in 43071 [\\/]* | ?:[\\/]*) 43072 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 43073 ;; 43074 *) 43075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43076 for as_dir in $PATH 43077 do 43078 IFS=$as_save_IFS 43079 test -z "$as_dir" && as_dir=. 43080 for ac_exec_ext in '' $ac_executable_extensions; do 43081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43082 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 43083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43084 break 2 43085 fi 43086 done 43087 done 43088 IFS=$as_save_IFS 43089 43090 ;; 43091 esac 43092 fi 43093 STRIP=$ac_cv_path_STRIP 43094 if test -n "$STRIP"; then 43095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 43096 $as_echo "$STRIP" >&6; } 43097 else 43098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43099 $as_echo "no" >&6; } 43100 fi 43101 43102 43103 if test "x$STRIP" = x; then 43104 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43105 fi 43106 else 43107 # Otherwise we believe it is a complete path. Use it as it is. 43108 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 43109 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 43110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 43111 $as_echo_n "checking for STRIP... " >&6; } 43112 if test ! -x "$tool_specified"; then 43113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43114 $as_echo "not found" >&6; } 43115 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 43116 fi 43117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43118 $as_echo "$tool_specified" >&6; } 43119 fi 43120 fi 43121 fi 43122 43123 fi 43124 43125 43126 43127 # Only process if variable expands to non-empty 43128 43129 if test "x$STRIP" != x; then 43130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43131 43132 # First separate the path from the arguments. This will split at the first 43133 # space. 43134 complete="$STRIP" 43135 path="${complete%% *}" 43136 tmp="$complete EOL" 43137 arguments="${tmp#* }" 43138 43139 # Input might be given as Windows format, start by converting to 43140 # unix format. 43141 new_path=`$CYGPATH -u "$path"` 43142 43143 # Now try to locate executable using which 43144 new_path=`$WHICH "$new_path" 2> /dev/null` 43145 # bat and cmd files are not always considered executable in cygwin causing which 43146 # to not find them 43147 if test "x$new_path" = x \ 43148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43150 new_path=`$CYGPATH -u "$path"` 43151 fi 43152 if test "x$new_path" = x; then 43153 # Oops. Which didn't find the executable. 43154 # The splitting of arguments from the executable at a space might have been incorrect, 43155 # since paths with space are more likely in Windows. Give it another try with the whole 43156 # argument. 43157 path="$complete" 43158 arguments="EOL" 43159 new_path=`$CYGPATH -u "$path"` 43160 new_path=`$WHICH "$new_path" 2> /dev/null` 43161 # bat and cmd files are not always considered executable in cygwin causing which 43162 # to not find them 43163 if test "x$new_path" = x \ 43164 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43165 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43166 new_path=`$CYGPATH -u "$path"` 43167 fi 43168 if test "x$new_path" = x; then 43169 # It's still not found. Now this is an unrecoverable error. 43170 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43171 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43172 has_space=`$ECHO "$complete" | $GREP " "` 43173 if test "x$has_space" != x; then 43174 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43175 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43176 fi 43177 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43178 fi 43179 fi 43180 43181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43184 # "foo.exe" is OK but "foo" is an error. 43185 # 43186 # This test is therefore slightly more accurate than "test -f" to check for file presence. 43187 # It is also a way to make sure we got the proper file name for the real test later on. 43188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43189 if test "x$test_shortpath" = x; then 43190 # Short path failed, file does not exist as specified. 43191 # Try adding .exe or .cmd 43192 if test -f "${new_path}.exe"; then 43193 input_to_shortpath="${new_path}.exe" 43194 elif test -f "${new_path}.cmd"; then 43195 input_to_shortpath="${new_path}.cmd" 43196 else 43197 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 43198 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 43199 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 43200 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 43201 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43202 fi 43203 else 43204 input_to_shortpath="$new_path" 43205 fi 43206 43207 # Call helper function which possibly converts this using DOS-style short mode. 43208 # If so, the updated path is stored in $new_path. 43209 new_path="$input_to_shortpath" 43210 43211 input_path="$input_to_shortpath" 43212 # Check if we need to convert this using DOS-style short mode. If the path 43213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43214 # take no chances and rewrite it. 43215 # Note: m4 eats our [], so we need to use [ and ] instead. 43216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43217 if test "x$has_forbidden_chars" != x; then 43218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43219 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43220 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43221 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43222 # Going to short mode and back again did indeed matter. Since short mode is 43223 # case insensitive, let's make it lowercase to improve readability. 43224 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43225 # Now convert it back to Unix-style (cygpath) 43226 input_path=`$CYGPATH -u "$shortmode_path"` 43227 new_path="$input_path" 43228 fi 43229 fi 43230 43231 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43232 if test "x$test_cygdrive_prefix" = x; then 43233 # As a simple fix, exclude /usr/bin since it's not a real path. 43234 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 43235 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43236 # a path prefixed by /cygdrive for fixpath to work. 43237 new_path="$CYGWIN_ROOT_PATH$input_path" 43238 fi 43239 fi 43240 43241 # remove trailing .exe if any 43242 new_path="${new_path/%.exe/}" 43243 43244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43245 43246 # First separate the path from the arguments. This will split at the first 43247 # space. 43248 complete="$STRIP" 43249 path="${complete%% *}" 43250 tmp="$complete EOL" 43251 arguments="${tmp#* }" 43252 43253 # Input might be given as Windows format, start by converting to 43254 # unix format. 43255 new_path="$path" 43256 43257 windows_path="$new_path" 43258 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43259 unix_path=`$CYGPATH -u "$windows_path"` 43260 new_path="$unix_path" 43261 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43262 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43263 new_path="$unix_path" 43264 fi 43265 43266 43267 # Now try to locate executable using which 43268 new_path=`$WHICH "$new_path" 2> /dev/null` 43269 43270 if test "x$new_path" = x; then 43271 # Oops. Which didn't find the executable. 43272 # The splitting of arguments from the executable at a space might have been incorrect, 43273 # since paths with space are more likely in Windows. Give it another try with the whole 43274 # argument. 43275 path="$complete" 43276 arguments="EOL" 43277 new_path="$path" 43278 43279 windows_path="$new_path" 43280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43281 unix_path=`$CYGPATH -u "$windows_path"` 43282 new_path="$unix_path" 43283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43285 new_path="$unix_path" 43286 fi 43287 43288 43289 new_path=`$WHICH "$new_path" 2> /dev/null` 43290 # bat and cmd files are not always considered executable in MSYS causing which 43291 # to not find them 43292 if test "x$new_path" = x \ 43293 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 43294 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 43295 new_path="$path" 43296 43297 windows_path="$new_path" 43298 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43299 unix_path=`$CYGPATH -u "$windows_path"` 43300 new_path="$unix_path" 43301 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43302 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43303 new_path="$unix_path" 43304 fi 43305 43306 fi 43307 43308 if test "x$new_path" = x; then 43309 # It's still not found. Now this is an unrecoverable error. 43310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43311 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43312 has_space=`$ECHO "$complete" | $GREP " "` 43313 if test "x$has_space" != x; then 43314 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 43315 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 43316 fi 43317 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43318 fi 43319 fi 43320 43321 # Now new_path has a complete unix path to the binary 43322 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 43323 # Keep paths in /bin as-is, but remove trailing .exe if any 43324 new_path="${new_path/%.exe/}" 43325 # Do not save /bin paths to all_fixpath_prefixes! 43326 else 43327 # Not in mixed or Windows style, start by that. 43328 new_path=`cmd //c echo $new_path` 43329 43330 input_path="$new_path" 43331 # Check if we need to convert this using DOS-style short mode. If the path 43332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43333 # take no chances and rewrite it. 43334 # Note: m4 eats our [], so we need to use [ and ] instead. 43335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43336 if test "x$has_forbidden_chars" != x; then 43337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43338 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43339 fi 43340 43341 # Output is in $new_path 43342 43343 windows_path="$new_path" 43344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43345 unix_path=`$CYGPATH -u "$windows_path"` 43346 new_path="$unix_path" 43347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43349 new_path="$unix_path" 43350 fi 43351 43352 # remove trailing .exe if any 43353 new_path="${new_path/%.exe/}" 43354 43355 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43356 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43357 fi 43358 43359 else 43360 # We're on a unix platform. Hooray! :) 43361 # First separate the path from the arguments. This will split at the first 43362 # space. 43363 complete="$STRIP" 43364 path="${complete%% *}" 43365 tmp="$complete EOL" 43366 arguments="${tmp#* }" 43367 43368 # Cannot rely on the command "which" here since it doesn't always work. 43369 is_absolute_path=`$ECHO "$path" | $GREP ^/` 43370 if test -z "$is_absolute_path"; then 43371 # Path to executable is not absolute. Find it. 43372 IFS_save="$IFS" 43373 IFS=: 43374 for p in $PATH; do 43375 if test -f "$p/$path" && test -x "$p/$path"; then 43376 new_path="$p/$path" 43377 break 43378 fi 43379 done 43380 IFS="$IFS_save" 43381 else 43382 # This is an absolute path, we can use it without further modifications. 43383 new_path="$path" 43384 fi 43385 43386 if test "x$new_path" = x; then 43387 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 43388 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 43389 has_space=`$ECHO "$complete" | $GREP " "` 43390 if test "x$has_space" != x; then 43391 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 43392 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 43393 fi 43394 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 43395 fi 43396 fi 43397 43398 # Now join together the path and the arguments once again 43399 if test "x$arguments" != xEOL; then 43400 new_complete="$new_path ${arguments% *}" 43401 else 43402 new_complete="$new_path" 43403 fi 43404 43405 if test "x$complete" != "x$new_complete"; then 43406 STRIP="$new_complete" 43407 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 43408 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 43409 fi 43410 fi 43411 43412 if test "x$TOOLCHAIN_TYPE" = xgcc; then 43413 43414 43415 # Publish this variable in the help. 43416 43417 43418 if [ -z "${NM+x}" ]; then 43419 # The variable is not set by user, try to locate tool using the code snippet 43420 if test -n "$ac_tool_prefix"; then 43421 for ac_prog in nm gcc-nm 43422 do 43423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43426 $as_echo_n "checking for $ac_word... " >&6; } 43427 if ${ac_cv_prog_NM+:} false; then : 43428 $as_echo_n "(cached) " >&6 43429 else 43430 if test -n "$NM"; then 43431 ac_cv_prog_NM="$NM" # Let the user override the test. 43432 else 43433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43434 for as_dir in $PATH 43435 do 43436 IFS=$as_save_IFS 43437 test -z "$as_dir" && as_dir=. 43438 for ac_exec_ext in '' $ac_executable_extensions; do 43439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43440 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43442 break 2 43443 fi 43444 done 43445 done 43446 IFS=$as_save_IFS 43447 43448 fi 43449 fi 43450 NM=$ac_cv_prog_NM 43451 if test -n "$NM"; then 43452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43453 $as_echo "$NM" >&6; } 43454 else 43455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43456 $as_echo "no" >&6; } 43457 fi 43458 43459 43460 test -n "$NM" && break 43461 done 43462 fi 43463 if test -z "$NM"; then 43464 ac_ct_NM=$NM 43465 for ac_prog in nm gcc-nm 43466 do 43467 # Extract the first word of "$ac_prog", so it can be a program name with args. 43468 set dummy $ac_prog; ac_word=$2 43469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43470 $as_echo_n "checking for $ac_word... " >&6; } 43471 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43472 $as_echo_n "(cached) " >&6 43473 else 43474 if test -n "$ac_ct_NM"; then 43475 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43476 else 43477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43478 for as_dir in $PATH 43479 do 43480 IFS=$as_save_IFS 43481 test -z "$as_dir" && as_dir=. 43482 for ac_exec_ext in '' $ac_executable_extensions; do 43483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43484 ac_cv_prog_ac_ct_NM="$ac_prog" 43485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43486 break 2 43487 fi 43488 done 43489 done 43490 IFS=$as_save_IFS 43491 43492 fi 43493 fi 43494 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43495 if test -n "$ac_ct_NM"; then 43496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43497 $as_echo "$ac_ct_NM" >&6; } 43498 else 43499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43500 $as_echo "no" >&6; } 43501 fi 43502 43503 43504 test -n "$ac_ct_NM" && break 43505 done 43506 43507 if test "x$ac_ct_NM" = x; then 43508 NM="" 43509 else 43510 case $cross_compiling:$ac_tool_warned in 43511 yes:) 43512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43514 ac_tool_warned=yes ;; 43515 esac 43516 NM=$ac_ct_NM 43517 fi 43518 fi 43519 43520 else 43521 # The variable is set, but is it from the command line or the environment? 43522 43523 # Try to remove the string !NM! from our list. 43524 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43525 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43526 # If it failed, the variable was not from the command line. Ignore it, 43527 # but warn the user (except for BASH, which is always set by the calling BASH). 43528 if test "xNM" != xBASH; then 43529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43530 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43531 fi 43532 # Try to locate tool using the code snippet 43533 if test -n "$ac_tool_prefix"; then 43534 for ac_prog in nm gcc-nm 43535 do 43536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43539 $as_echo_n "checking for $ac_word... " >&6; } 43540 if ${ac_cv_prog_NM+:} false; then : 43541 $as_echo_n "(cached) " >&6 43542 else 43543 if test -n "$NM"; then 43544 ac_cv_prog_NM="$NM" # Let the user override the test. 43545 else 43546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43547 for as_dir in $PATH 43548 do 43549 IFS=$as_save_IFS 43550 test -z "$as_dir" && as_dir=. 43551 for ac_exec_ext in '' $ac_executable_extensions; do 43552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43553 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43555 break 2 43556 fi 43557 done 43558 done 43559 IFS=$as_save_IFS 43560 43561 fi 43562 fi 43563 NM=$ac_cv_prog_NM 43564 if test -n "$NM"; then 43565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43566 $as_echo "$NM" >&6; } 43567 else 43568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43569 $as_echo "no" >&6; } 43570 fi 43571 43572 43573 test -n "$NM" && break 43574 done 43575 fi 43576 if test -z "$NM"; then 43577 ac_ct_NM=$NM 43578 for ac_prog in nm gcc-nm 43579 do 43580 # Extract the first word of "$ac_prog", so it can be a program name with args. 43581 set dummy $ac_prog; ac_word=$2 43582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43583 $as_echo_n "checking for $ac_word... " >&6; } 43584 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43585 $as_echo_n "(cached) " >&6 43586 else 43587 if test -n "$ac_ct_NM"; then 43588 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43589 else 43590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43591 for as_dir in $PATH 43592 do 43593 IFS=$as_save_IFS 43594 test -z "$as_dir" && as_dir=. 43595 for ac_exec_ext in '' $ac_executable_extensions; do 43596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43597 ac_cv_prog_ac_ct_NM="$ac_prog" 43598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43599 break 2 43600 fi 43601 done 43602 done 43603 IFS=$as_save_IFS 43604 43605 fi 43606 fi 43607 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43608 if test -n "$ac_ct_NM"; then 43609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43610 $as_echo "$ac_ct_NM" >&6; } 43611 else 43612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43613 $as_echo "no" >&6; } 43614 fi 43615 43616 43617 test -n "$ac_ct_NM" && break 43618 done 43619 43620 if test "x$ac_ct_NM" = x; then 43621 NM="" 43622 else 43623 case $cross_compiling:$ac_tool_warned in 43624 yes:) 43625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43627 ac_tool_warned=yes ;; 43628 esac 43629 NM=$ac_ct_NM 43630 fi 43631 fi 43632 43633 else 43634 # If it succeeded, then it was overridden by the user. We will use it 43635 # for the tool. 43636 43637 # First remove it from the list of overridden variables, so we can test 43638 # for unknown variables in the end. 43639 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43640 43641 # Check if we try to supply an empty value 43642 if test "x$NM" = x; then 43643 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43644 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43646 $as_echo_n "checking for NM... " >&6; } 43647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43648 $as_echo "disabled" >&6; } 43649 else 43650 # Check if the provided tool contains a complete path. 43651 tool_specified="$NM" 43652 tool_basename="${tool_specified##*/}" 43653 if test "x$tool_basename" = "x$tool_specified"; then 43654 # A command without a complete path is provided, search $PATH. 43655 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43656 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43657 # Extract the first word of "$tool_basename", so it can be a program name with args. 43658 set dummy $tool_basename; ac_word=$2 43659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43660 $as_echo_n "checking for $ac_word... " >&6; } 43661 if ${ac_cv_path_NM+:} false; then : 43662 $as_echo_n "(cached) " >&6 43663 else 43664 case $NM in 43665 [\\/]* | ?:[\\/]*) 43666 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43667 ;; 43668 *) 43669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43670 for as_dir in $PATH 43671 do 43672 IFS=$as_save_IFS 43673 test -z "$as_dir" && as_dir=. 43674 for ac_exec_ext in '' $ac_executable_extensions; do 43675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43676 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43678 break 2 43679 fi 43680 done 43681 done 43682 IFS=$as_save_IFS 43683 43684 ;; 43685 esac 43686 fi 43687 NM=$ac_cv_path_NM 43688 if test -n "$NM"; then 43689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43690 $as_echo "$NM" >&6; } 43691 else 43692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43693 $as_echo "no" >&6; } 43694 fi 43695 43696 43697 if test "x$NM" = x; then 43698 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 43699 fi 43700 else 43701 # Otherwise we believe it is a complete path. Use it as it is. 43702 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 43703 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 43704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43705 $as_echo_n "checking for NM... " >&6; } 43706 if test ! -x "$tool_specified"; then 43707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 43708 $as_echo "not found" >&6; } 43709 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 43710 fi 43711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 43712 $as_echo "$tool_specified" >&6; } 43713 fi 43714 fi 43715 fi 43716 43717 fi 43718 43719 43720 else 43721 43722 43723 # Publish this variable in the help. 43724 43725 43726 if [ -z "${NM+x}" ]; then 43727 # The variable is not set by user, try to locate tool using the code snippet 43728 if test -n "$ac_tool_prefix"; then 43729 for ac_prog in nm 43730 do 43731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43734 $as_echo_n "checking for $ac_word... " >&6; } 43735 if ${ac_cv_prog_NM+:} false; then : 43736 $as_echo_n "(cached) " >&6 43737 else 43738 if test -n "$NM"; then 43739 ac_cv_prog_NM="$NM" # Let the user override the test. 43740 else 43741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43742 for as_dir in $PATH 43743 do 43744 IFS=$as_save_IFS 43745 test -z "$as_dir" && as_dir=. 43746 for ac_exec_ext in '' $ac_executable_extensions; do 43747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43748 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43750 break 2 43751 fi 43752 done 43753 done 43754 IFS=$as_save_IFS 43755 43756 fi 43757 fi 43758 NM=$ac_cv_prog_NM 43759 if test -n "$NM"; then 43760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43761 $as_echo "$NM" >&6; } 43762 else 43763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43764 $as_echo "no" >&6; } 43765 fi 43766 43767 43768 test -n "$NM" && break 43769 done 43770 fi 43771 if test -z "$NM"; then 43772 ac_ct_NM=$NM 43773 for ac_prog in nm 43774 do 43775 # Extract the first word of "$ac_prog", so it can be a program name with args. 43776 set dummy $ac_prog; ac_word=$2 43777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43778 $as_echo_n "checking for $ac_word... " >&6; } 43779 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43780 $as_echo_n "(cached) " >&6 43781 else 43782 if test -n "$ac_ct_NM"; then 43783 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43784 else 43785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43786 for as_dir in $PATH 43787 do 43788 IFS=$as_save_IFS 43789 test -z "$as_dir" && as_dir=. 43790 for ac_exec_ext in '' $ac_executable_extensions; do 43791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43792 ac_cv_prog_ac_ct_NM="$ac_prog" 43793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43794 break 2 43795 fi 43796 done 43797 done 43798 IFS=$as_save_IFS 43799 43800 fi 43801 fi 43802 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43803 if test -n "$ac_ct_NM"; then 43804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43805 $as_echo "$ac_ct_NM" >&6; } 43806 else 43807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43808 $as_echo "no" >&6; } 43809 fi 43810 43811 43812 test -n "$ac_ct_NM" && break 43813 done 43814 43815 if test "x$ac_ct_NM" = x; then 43816 NM="" 43817 else 43818 case $cross_compiling:$ac_tool_warned in 43819 yes:) 43820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43822 ac_tool_warned=yes ;; 43823 esac 43824 NM=$ac_ct_NM 43825 fi 43826 fi 43827 43828 else 43829 # The variable is set, but is it from the command line or the environment? 43830 43831 # Try to remove the string !NM! from our list. 43832 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 43833 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 43834 # If it failed, the variable was not from the command line. Ignore it, 43835 # but warn the user (except for BASH, which is always set by the calling BASH). 43836 if test "xNM" != xBASH; then 43837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 43838 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 43839 fi 43840 # Try to locate tool using the code snippet 43841 if test -n "$ac_tool_prefix"; then 43842 for ac_prog in nm 43843 do 43844 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 43845 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 43846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43847 $as_echo_n "checking for $ac_word... " >&6; } 43848 if ${ac_cv_prog_NM+:} false; then : 43849 $as_echo_n "(cached) " >&6 43850 else 43851 if test -n "$NM"; then 43852 ac_cv_prog_NM="$NM" # Let the user override the test. 43853 else 43854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43855 for as_dir in $PATH 43856 do 43857 IFS=$as_save_IFS 43858 test -z "$as_dir" && as_dir=. 43859 for ac_exec_ext in '' $ac_executable_extensions; do 43860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43861 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 43862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43863 break 2 43864 fi 43865 done 43866 done 43867 IFS=$as_save_IFS 43868 43869 fi 43870 fi 43871 NM=$ac_cv_prog_NM 43872 if test -n "$NM"; then 43873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43874 $as_echo "$NM" >&6; } 43875 else 43876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43877 $as_echo "no" >&6; } 43878 fi 43879 43880 43881 test -n "$NM" && break 43882 done 43883 fi 43884 if test -z "$NM"; then 43885 ac_ct_NM=$NM 43886 for ac_prog in nm 43887 do 43888 # Extract the first word of "$ac_prog", so it can be a program name with args. 43889 set dummy $ac_prog; ac_word=$2 43890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43891 $as_echo_n "checking for $ac_word... " >&6; } 43892 if ${ac_cv_prog_ac_ct_NM+:} false; then : 43893 $as_echo_n "(cached) " >&6 43894 else 43895 if test -n "$ac_ct_NM"; then 43896 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 43897 else 43898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43899 for as_dir in $PATH 43900 do 43901 IFS=$as_save_IFS 43902 test -z "$as_dir" && as_dir=. 43903 for ac_exec_ext in '' $ac_executable_extensions; do 43904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43905 ac_cv_prog_ac_ct_NM="$ac_prog" 43906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43907 break 2 43908 fi 43909 done 43910 done 43911 IFS=$as_save_IFS 43912 43913 fi 43914 fi 43915 ac_ct_NM=$ac_cv_prog_ac_ct_NM 43916 if test -n "$ac_ct_NM"; then 43917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 43918 $as_echo "$ac_ct_NM" >&6; } 43919 else 43920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43921 $as_echo "no" >&6; } 43922 fi 43923 43924 43925 test -n "$ac_ct_NM" && break 43926 done 43927 43928 if test "x$ac_ct_NM" = x; then 43929 NM="" 43930 else 43931 case $cross_compiling:$ac_tool_warned in 43932 yes:) 43933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 43934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 43935 ac_tool_warned=yes ;; 43936 esac 43937 NM=$ac_ct_NM 43938 fi 43939 fi 43940 43941 else 43942 # If it succeeded, then it was overridden by the user. We will use it 43943 # for the tool. 43944 43945 # First remove it from the list of overridden variables, so we can test 43946 # for unknown variables in the end. 43947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 43948 43949 # Check if we try to supply an empty value 43950 if test "x$NM" = x; then 43951 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool NM= (no value)" >&5 43952 $as_echo "$as_me: Setting user supplied tool NM= (no value)" >&6;} 43953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 43954 $as_echo_n "checking for NM... " >&6; } 43955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 43956 $as_echo "disabled" >&6; } 43957 else 43958 # Check if the provided tool contains a complete path. 43959 tool_specified="$NM" 43960 tool_basename="${tool_specified##*/}" 43961 if test "x$tool_basename" = "x$tool_specified"; then 43962 # A command without a complete path is provided, search $PATH. 43963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 43964 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 43965 # Extract the first word of "$tool_basename", so it can be a program name with args. 43966 set dummy $tool_basename; ac_word=$2 43967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 43968 $as_echo_n "checking for $ac_word... " >&6; } 43969 if ${ac_cv_path_NM+:} false; then : 43970 $as_echo_n "(cached) " >&6 43971 else 43972 case $NM in 43973 [\\/]* | ?:[\\/]*) 43974 ac_cv_path_NM="$NM" # Let the user override the test with a path. 43975 ;; 43976 *) 43977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 43978 for as_dir in $PATH 43979 do 43980 IFS=$as_save_IFS 43981 test -z "$as_dir" && as_dir=. 43982 for ac_exec_ext in '' $ac_executable_extensions; do 43983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 43984 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 43985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 43986 break 2 43987 fi 43988 done 43989 done 43990 IFS=$as_save_IFS 43991 43992 ;; 43993 esac 43994 fi 43995 NM=$ac_cv_path_NM 43996 if test -n "$NM"; then 43997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 43998 $as_echo "$NM" >&6; } 43999 else 44000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44001 $as_echo "no" >&6; } 44002 fi 44003 44004 44005 if test "x$NM" = x; then 44006 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44007 fi 44008 else 44009 # Otherwise we believe it is a complete path. Use it as it is. 44010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 44011 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 44012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 44013 $as_echo_n "checking for NM... " >&6; } 44014 if test ! -x "$tool_specified"; then 44015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44016 $as_echo "not found" >&6; } 44017 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 44018 fi 44019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44020 $as_echo "$tool_specified" >&6; } 44021 fi 44022 fi 44023 fi 44024 44025 fi 44026 44027 44028 fi 44029 44030 # Only process if variable expands to non-empty 44031 44032 if test "x$NM" != x; then 44033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44034 44035 # First separate the path from the arguments. This will split at the first 44036 # space. 44037 complete="$NM" 44038 path="${complete%% *}" 44039 tmp="$complete EOL" 44040 arguments="${tmp#* }" 44041 44042 # Input might be given as Windows format, start by converting to 44043 # unix format. 44044 new_path=`$CYGPATH -u "$path"` 44045 44046 # Now try to locate executable using which 44047 new_path=`$WHICH "$new_path" 2> /dev/null` 44048 # bat and cmd files are not always considered executable in cygwin causing which 44049 # to not find them 44050 if test "x$new_path" = x \ 44051 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44052 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44053 new_path=`$CYGPATH -u "$path"` 44054 fi 44055 if test "x$new_path" = x; then 44056 # Oops. Which didn't find the executable. 44057 # The splitting of arguments from the executable at a space might have been incorrect, 44058 # since paths with space are more likely in Windows. Give it another try with the whole 44059 # argument. 44060 path="$complete" 44061 arguments="EOL" 44062 new_path=`$CYGPATH -u "$path"` 44063 new_path=`$WHICH "$new_path" 2> /dev/null` 44064 # bat and cmd files are not always considered executable in cygwin causing which 44065 # to not find them 44066 if test "x$new_path" = x \ 44067 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44068 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44069 new_path=`$CYGPATH -u "$path"` 44070 fi 44071 if test "x$new_path" = x; then 44072 # It's still not found. Now this is an unrecoverable error. 44073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44074 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44075 has_space=`$ECHO "$complete" | $GREP " "` 44076 if test "x$has_space" != x; then 44077 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44078 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44079 fi 44080 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44081 fi 44082 fi 44083 44084 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44085 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44086 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44087 # "foo.exe" is OK but "foo" is an error. 44088 # 44089 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44090 # It is also a way to make sure we got the proper file name for the real test later on. 44091 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44092 if test "x$test_shortpath" = x; then 44093 # Short path failed, file does not exist as specified. 44094 # Try adding .exe or .cmd 44095 if test -f "${new_path}.exe"; then 44096 input_to_shortpath="${new_path}.exe" 44097 elif test -f "${new_path}.cmd"; then 44098 input_to_shortpath="${new_path}.cmd" 44099 else 44100 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 44101 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 44102 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44103 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44104 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44105 fi 44106 else 44107 input_to_shortpath="$new_path" 44108 fi 44109 44110 # Call helper function which possibly converts this using DOS-style short mode. 44111 # If so, the updated path is stored in $new_path. 44112 new_path="$input_to_shortpath" 44113 44114 input_path="$input_to_shortpath" 44115 # Check if we need to convert this using DOS-style short mode. If the path 44116 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44117 # take no chances and rewrite it. 44118 # Note: m4 eats our [], so we need to use [ and ] instead. 44119 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44120 if test "x$has_forbidden_chars" != x; then 44121 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44122 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44123 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44124 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44125 # Going to short mode and back again did indeed matter. Since short mode is 44126 # case insensitive, let's make it lowercase to improve readability. 44127 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44128 # Now convert it back to Unix-style (cygpath) 44129 input_path=`$CYGPATH -u "$shortmode_path"` 44130 new_path="$input_path" 44131 fi 44132 fi 44133 44134 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44135 if test "x$test_cygdrive_prefix" = x; then 44136 # As a simple fix, exclude /usr/bin since it's not a real path. 44137 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44138 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44139 # a path prefixed by /cygdrive for fixpath to work. 44140 new_path="$CYGWIN_ROOT_PATH$input_path" 44141 fi 44142 fi 44143 44144 # remove trailing .exe if any 44145 new_path="${new_path/%.exe/}" 44146 44147 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44148 44149 # First separate the path from the arguments. This will split at the first 44150 # space. 44151 complete="$NM" 44152 path="${complete%% *}" 44153 tmp="$complete EOL" 44154 arguments="${tmp#* }" 44155 44156 # Input might be given as Windows format, start by converting to 44157 # unix format. 44158 new_path="$path" 44159 44160 windows_path="$new_path" 44161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44162 unix_path=`$CYGPATH -u "$windows_path"` 44163 new_path="$unix_path" 44164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44166 new_path="$unix_path" 44167 fi 44168 44169 44170 # Now try to locate executable using which 44171 new_path=`$WHICH "$new_path" 2> /dev/null` 44172 44173 if test "x$new_path" = x; then 44174 # Oops. Which didn't find the executable. 44175 # The splitting of arguments from the executable at a space might have been incorrect, 44176 # since paths with space are more likely in Windows. Give it another try with the whole 44177 # argument. 44178 path="$complete" 44179 arguments="EOL" 44180 new_path="$path" 44181 44182 windows_path="$new_path" 44183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44184 unix_path=`$CYGPATH -u "$windows_path"` 44185 new_path="$unix_path" 44186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44188 new_path="$unix_path" 44189 fi 44190 44191 44192 new_path=`$WHICH "$new_path" 2> /dev/null` 44193 # bat and cmd files are not always considered executable in MSYS causing which 44194 # to not find them 44195 if test "x$new_path" = x \ 44196 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44197 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44198 new_path="$path" 44199 44200 windows_path="$new_path" 44201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44202 unix_path=`$CYGPATH -u "$windows_path"` 44203 new_path="$unix_path" 44204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44206 new_path="$unix_path" 44207 fi 44208 44209 fi 44210 44211 if test "x$new_path" = x; then 44212 # It's still not found. Now this is an unrecoverable error. 44213 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44214 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44215 has_space=`$ECHO "$complete" | $GREP " "` 44216 if test "x$has_space" != x; then 44217 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44218 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44219 fi 44220 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44221 fi 44222 fi 44223 44224 # Now new_path has a complete unix path to the binary 44225 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44226 # Keep paths in /bin as-is, but remove trailing .exe if any 44227 new_path="${new_path/%.exe/}" 44228 # Do not save /bin paths to all_fixpath_prefixes! 44229 else 44230 # Not in mixed or Windows style, start by that. 44231 new_path=`cmd //c echo $new_path` 44232 44233 input_path="$new_path" 44234 # Check if we need to convert this using DOS-style short mode. If the path 44235 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44236 # take no chances and rewrite it. 44237 # Note: m4 eats our [], so we need to use [ and ] instead. 44238 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44239 if test "x$has_forbidden_chars" != x; then 44240 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44241 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44242 fi 44243 44244 # Output is in $new_path 44245 44246 windows_path="$new_path" 44247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44248 unix_path=`$CYGPATH -u "$windows_path"` 44249 new_path="$unix_path" 44250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44252 new_path="$unix_path" 44253 fi 44254 44255 # remove trailing .exe if any 44256 new_path="${new_path/%.exe/}" 44257 44258 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44259 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44260 fi 44261 44262 else 44263 # We're on a unix platform. Hooray! :) 44264 # First separate the path from the arguments. This will split at the first 44265 # space. 44266 complete="$NM" 44267 path="${complete%% *}" 44268 tmp="$complete EOL" 44269 arguments="${tmp#* }" 44270 44271 # Cannot rely on the command "which" here since it doesn't always work. 44272 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44273 if test -z "$is_absolute_path"; then 44274 # Path to executable is not absolute. Find it. 44275 IFS_save="$IFS" 44276 IFS=: 44277 for p in $PATH; do 44278 if test -f "$p/$path" && test -x "$p/$path"; then 44279 new_path="$p/$path" 44280 break 44281 fi 44282 done 44283 IFS="$IFS_save" 44284 else 44285 # This is an absolute path, we can use it without further modifications. 44286 new_path="$path" 44287 fi 44288 44289 if test "x$new_path" = x; then 44290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 44291 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 44292 has_space=`$ECHO "$complete" | $GREP " "` 44293 if test "x$has_space" != x; then 44294 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44295 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44296 fi 44297 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 44298 fi 44299 fi 44300 44301 # Now join together the path and the arguments once again 44302 if test "x$arguments" != xEOL; then 44303 new_complete="$new_path ${arguments% *}" 44304 else 44305 new_complete="$new_path" 44306 fi 44307 44308 if test "x$complete" != "x$new_complete"; then 44309 NM="$new_complete" 44310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 44311 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 44312 fi 44313 fi 44314 44315 GNM="$NM" 44316 44317 fi 44318 44319 # objcopy is used for moving debug symbols to separate files when 44320 # full debug symbols are enabled. 44321 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 44322 44323 44324 # Publish this variable in the help. 44325 44326 44327 if [ -z "${OBJCOPY+x}" ]; then 44328 # The variable is not set by user, try to locate tool using the code snippet 44329 if test -n "$ac_tool_prefix"; then 44330 for ac_prog in gobjcopy objcopy 44331 do 44332 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44333 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44335 $as_echo_n "checking for $ac_word... " >&6; } 44336 if ${ac_cv_prog_OBJCOPY+:} false; then : 44337 $as_echo_n "(cached) " >&6 44338 else 44339 if test -n "$OBJCOPY"; then 44340 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44341 else 44342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44343 for as_dir in $PATH 44344 do 44345 IFS=$as_save_IFS 44346 test -z "$as_dir" && as_dir=. 44347 for ac_exec_ext in '' $ac_executable_extensions; do 44348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44349 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44351 break 2 44352 fi 44353 done 44354 done 44355 IFS=$as_save_IFS 44356 44357 fi 44358 fi 44359 OBJCOPY=$ac_cv_prog_OBJCOPY 44360 if test -n "$OBJCOPY"; then 44361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44362 $as_echo "$OBJCOPY" >&6; } 44363 else 44364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44365 $as_echo "no" >&6; } 44366 fi 44367 44368 44369 test -n "$OBJCOPY" && break 44370 done 44371 fi 44372 if test -z "$OBJCOPY"; then 44373 ac_ct_OBJCOPY=$OBJCOPY 44374 for ac_prog in gobjcopy objcopy 44375 do 44376 # Extract the first word of "$ac_prog", so it can be a program name with args. 44377 set dummy $ac_prog; ac_word=$2 44378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44379 $as_echo_n "checking for $ac_word... " >&6; } 44380 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44381 $as_echo_n "(cached) " >&6 44382 else 44383 if test -n "$ac_ct_OBJCOPY"; then 44384 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44385 else 44386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44387 for as_dir in $PATH 44388 do 44389 IFS=$as_save_IFS 44390 test -z "$as_dir" && as_dir=. 44391 for ac_exec_ext in '' $ac_executable_extensions; do 44392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44393 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44395 break 2 44396 fi 44397 done 44398 done 44399 IFS=$as_save_IFS 44400 44401 fi 44402 fi 44403 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44404 if test -n "$ac_ct_OBJCOPY"; then 44405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44406 $as_echo "$ac_ct_OBJCOPY" >&6; } 44407 else 44408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44409 $as_echo "no" >&6; } 44410 fi 44411 44412 44413 test -n "$ac_ct_OBJCOPY" && break 44414 done 44415 44416 if test "x$ac_ct_OBJCOPY" = x; then 44417 OBJCOPY="" 44418 else 44419 case $cross_compiling:$ac_tool_warned in 44420 yes:) 44421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44423 ac_tool_warned=yes ;; 44424 esac 44425 OBJCOPY=$ac_ct_OBJCOPY 44426 fi 44427 fi 44428 44429 else 44430 # The variable is set, but is it from the command line or the environment? 44431 44432 # Try to remove the string !OBJCOPY! from our list. 44433 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 44434 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 44435 # If it failed, the variable was not from the command line. Ignore it, 44436 # but warn the user (except for BASH, which is always set by the calling BASH). 44437 if test "xOBJCOPY" != xBASH; then 44438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 44439 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 44440 fi 44441 # Try to locate tool using the code snippet 44442 if test -n "$ac_tool_prefix"; then 44443 for ac_prog in gobjcopy objcopy 44444 do 44445 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44446 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44448 $as_echo_n "checking for $ac_word... " >&6; } 44449 if ${ac_cv_prog_OBJCOPY+:} false; then : 44450 $as_echo_n "(cached) " >&6 44451 else 44452 if test -n "$OBJCOPY"; then 44453 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 44454 else 44455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44456 for as_dir in $PATH 44457 do 44458 IFS=$as_save_IFS 44459 test -z "$as_dir" && as_dir=. 44460 for ac_exec_ext in '' $ac_executable_extensions; do 44461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44462 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 44463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44464 break 2 44465 fi 44466 done 44467 done 44468 IFS=$as_save_IFS 44469 44470 fi 44471 fi 44472 OBJCOPY=$ac_cv_prog_OBJCOPY 44473 if test -n "$OBJCOPY"; then 44474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44475 $as_echo "$OBJCOPY" >&6; } 44476 else 44477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44478 $as_echo "no" >&6; } 44479 fi 44480 44481 44482 test -n "$OBJCOPY" && break 44483 done 44484 fi 44485 if test -z "$OBJCOPY"; then 44486 ac_ct_OBJCOPY=$OBJCOPY 44487 for ac_prog in gobjcopy objcopy 44488 do 44489 # Extract the first word of "$ac_prog", so it can be a program name with args. 44490 set dummy $ac_prog; ac_word=$2 44491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44492 $as_echo_n "checking for $ac_word... " >&6; } 44493 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 44494 $as_echo_n "(cached) " >&6 44495 else 44496 if test -n "$ac_ct_OBJCOPY"; then 44497 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 44498 else 44499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44500 for as_dir in $PATH 44501 do 44502 IFS=$as_save_IFS 44503 test -z "$as_dir" && as_dir=. 44504 for ac_exec_ext in '' $ac_executable_extensions; do 44505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44506 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 44507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44508 break 2 44509 fi 44510 done 44511 done 44512 IFS=$as_save_IFS 44513 44514 fi 44515 fi 44516 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 44517 if test -n "$ac_ct_OBJCOPY"; then 44518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 44519 $as_echo "$ac_ct_OBJCOPY" >&6; } 44520 else 44521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44522 $as_echo "no" >&6; } 44523 fi 44524 44525 44526 test -n "$ac_ct_OBJCOPY" && break 44527 done 44528 44529 if test "x$ac_ct_OBJCOPY" = x; then 44530 OBJCOPY="" 44531 else 44532 case $cross_compiling:$ac_tool_warned in 44533 yes:) 44534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 44535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 44536 ac_tool_warned=yes ;; 44537 esac 44538 OBJCOPY=$ac_ct_OBJCOPY 44539 fi 44540 fi 44541 44542 else 44543 # If it succeeded, then it was overridden by the user. We will use it 44544 # for the tool. 44545 44546 # First remove it from the list of overridden variables, so we can test 44547 # for unknown variables in the end. 44548 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 44549 44550 # Check if we try to supply an empty value 44551 if test "x$OBJCOPY" = x; then 44552 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJCOPY= (no value)" >&5 44553 $as_echo "$as_me: Setting user supplied tool OBJCOPY= (no value)" >&6;} 44554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44555 $as_echo_n "checking for OBJCOPY... " >&6; } 44556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 44557 $as_echo "disabled" >&6; } 44558 else 44559 # Check if the provided tool contains a complete path. 44560 tool_specified="$OBJCOPY" 44561 tool_basename="${tool_specified##*/}" 44562 if test "x$tool_basename" = "x$tool_specified"; then 44563 # A command without a complete path is provided, search $PATH. 44564 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 44565 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 44566 # Extract the first word of "$tool_basename", so it can be a program name with args. 44567 set dummy $tool_basename; ac_word=$2 44568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44569 $as_echo_n "checking for $ac_word... " >&6; } 44570 if ${ac_cv_path_OBJCOPY+:} false; then : 44571 $as_echo_n "(cached) " >&6 44572 else 44573 case $OBJCOPY in 44574 [\\/]* | ?:[\\/]*) 44575 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 44576 ;; 44577 *) 44578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44579 for as_dir in $PATH 44580 do 44581 IFS=$as_save_IFS 44582 test -z "$as_dir" && as_dir=. 44583 for ac_exec_ext in '' $ac_executable_extensions; do 44584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44585 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 44586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44587 break 2 44588 fi 44589 done 44590 done 44591 IFS=$as_save_IFS 44592 44593 ;; 44594 esac 44595 fi 44596 OBJCOPY=$ac_cv_path_OBJCOPY 44597 if test -n "$OBJCOPY"; then 44598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 44599 $as_echo "$OBJCOPY" >&6; } 44600 else 44601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44602 $as_echo "no" >&6; } 44603 fi 44604 44605 44606 if test "x$OBJCOPY" = x; then 44607 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 44608 fi 44609 else 44610 # Otherwise we believe it is a complete path. Use it as it is. 44611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 44612 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 44613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 44614 $as_echo_n "checking for OBJCOPY... " >&6; } 44615 if test ! -x "$tool_specified"; then 44616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 44617 $as_echo "not found" >&6; } 44618 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 44619 fi 44620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 44621 $as_echo "$tool_specified" >&6; } 44622 fi 44623 fi 44624 fi 44625 44626 fi 44627 44628 44629 # Only call fixup if objcopy was found. 44630 if test -n "$OBJCOPY"; then 44631 44632 # Only process if variable expands to non-empty 44633 44634 if test "x$OBJCOPY" != x; then 44635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44636 44637 # First separate the path from the arguments. This will split at the first 44638 # space. 44639 complete="$OBJCOPY" 44640 path="${complete%% *}" 44641 tmp="$complete EOL" 44642 arguments="${tmp#* }" 44643 44644 # Input might be given as Windows format, start by converting to 44645 # unix format. 44646 new_path=`$CYGPATH -u "$path"` 44647 44648 # Now try to locate executable using which 44649 new_path=`$WHICH "$new_path" 2> /dev/null` 44650 # bat and cmd files are not always considered executable in cygwin causing which 44651 # to not find them 44652 if test "x$new_path" = x \ 44653 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44654 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44655 new_path=`$CYGPATH -u "$path"` 44656 fi 44657 if test "x$new_path" = x; then 44658 # Oops. Which didn't find the executable. 44659 # The splitting of arguments from the executable at a space might have been incorrect, 44660 # since paths with space are more likely in Windows. Give it another try with the whole 44661 # argument. 44662 path="$complete" 44663 arguments="EOL" 44664 new_path=`$CYGPATH -u "$path"` 44665 new_path=`$WHICH "$new_path" 2> /dev/null` 44666 # bat and cmd files are not always considered executable in cygwin causing which 44667 # to not find them 44668 if test "x$new_path" = x \ 44669 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44670 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44671 new_path=`$CYGPATH -u "$path"` 44672 fi 44673 if test "x$new_path" = x; then 44674 # It's still not found. Now this is an unrecoverable error. 44675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44676 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44677 has_space=`$ECHO "$complete" | $GREP " "` 44678 if test "x$has_space" != x; then 44679 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44680 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44681 fi 44682 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44683 fi 44684 fi 44685 44686 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44687 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44688 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44689 # "foo.exe" is OK but "foo" is an error. 44690 # 44691 # This test is therefore slightly more accurate than "test -f" to check for file presence. 44692 # It is also a way to make sure we got the proper file name for the real test later on. 44693 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44694 if test "x$test_shortpath" = x; then 44695 # Short path failed, file does not exist as specified. 44696 # Try adding .exe or .cmd 44697 if test -f "${new_path}.exe"; then 44698 input_to_shortpath="${new_path}.exe" 44699 elif test -f "${new_path}.cmd"; then 44700 input_to_shortpath="${new_path}.cmd" 44701 else 44702 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 44703 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 44704 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 44705 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 44706 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44707 fi 44708 else 44709 input_to_shortpath="$new_path" 44710 fi 44711 44712 # Call helper function which possibly converts this using DOS-style short mode. 44713 # If so, the updated path is stored in $new_path. 44714 new_path="$input_to_shortpath" 44715 44716 input_path="$input_to_shortpath" 44717 # Check if we need to convert this using DOS-style short mode. If the path 44718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44719 # take no chances and rewrite it. 44720 # Note: m4 eats our [], so we need to use [ and ] instead. 44721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44722 if test "x$has_forbidden_chars" != x; then 44723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44724 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44725 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44726 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44727 # Going to short mode and back again did indeed matter. Since short mode is 44728 # case insensitive, let's make it lowercase to improve readability. 44729 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44730 # Now convert it back to Unix-style (cygpath) 44731 input_path=`$CYGPATH -u "$shortmode_path"` 44732 new_path="$input_path" 44733 fi 44734 fi 44735 44736 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44737 if test "x$test_cygdrive_prefix" = x; then 44738 # As a simple fix, exclude /usr/bin since it's not a real path. 44739 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 44740 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44741 # a path prefixed by /cygdrive for fixpath to work. 44742 new_path="$CYGWIN_ROOT_PATH$input_path" 44743 fi 44744 fi 44745 44746 # remove trailing .exe if any 44747 new_path="${new_path/%.exe/}" 44748 44749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44750 44751 # First separate the path from the arguments. This will split at the first 44752 # space. 44753 complete="$OBJCOPY" 44754 path="${complete%% *}" 44755 tmp="$complete EOL" 44756 arguments="${tmp#* }" 44757 44758 # Input might be given as Windows format, start by converting to 44759 # unix format. 44760 new_path="$path" 44761 44762 windows_path="$new_path" 44763 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44764 unix_path=`$CYGPATH -u "$windows_path"` 44765 new_path="$unix_path" 44766 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44767 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44768 new_path="$unix_path" 44769 fi 44770 44771 44772 # Now try to locate executable using which 44773 new_path=`$WHICH "$new_path" 2> /dev/null` 44774 44775 if test "x$new_path" = x; then 44776 # Oops. Which didn't find the executable. 44777 # The splitting of arguments from the executable at a space might have been incorrect, 44778 # since paths with space are more likely in Windows. Give it another try with the whole 44779 # argument. 44780 path="$complete" 44781 arguments="EOL" 44782 new_path="$path" 44783 44784 windows_path="$new_path" 44785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44786 unix_path=`$CYGPATH -u "$windows_path"` 44787 new_path="$unix_path" 44788 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44789 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44790 new_path="$unix_path" 44791 fi 44792 44793 44794 new_path=`$WHICH "$new_path" 2> /dev/null` 44795 # bat and cmd files are not always considered executable in MSYS causing which 44796 # to not find them 44797 if test "x$new_path" = x \ 44798 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 44799 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 44800 new_path="$path" 44801 44802 windows_path="$new_path" 44803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44804 unix_path=`$CYGPATH -u "$windows_path"` 44805 new_path="$unix_path" 44806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44808 new_path="$unix_path" 44809 fi 44810 44811 fi 44812 44813 if test "x$new_path" = x; then 44814 # It's still not found. Now this is an unrecoverable error. 44815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44816 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44817 has_space=`$ECHO "$complete" | $GREP " "` 44818 if test "x$has_space" != x; then 44819 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 44820 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 44821 fi 44822 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44823 fi 44824 fi 44825 44826 # Now new_path has a complete unix path to the binary 44827 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 44828 # Keep paths in /bin as-is, but remove trailing .exe if any 44829 new_path="${new_path/%.exe/}" 44830 # Do not save /bin paths to all_fixpath_prefixes! 44831 else 44832 # Not in mixed or Windows style, start by that. 44833 new_path=`cmd //c echo $new_path` 44834 44835 input_path="$new_path" 44836 # Check if we need to convert this using DOS-style short mode. If the path 44837 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44838 # take no chances and rewrite it. 44839 # Note: m4 eats our [], so we need to use [ and ] instead. 44840 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44841 if test "x$has_forbidden_chars" != x; then 44842 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44843 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44844 fi 44845 44846 # Output is in $new_path 44847 44848 windows_path="$new_path" 44849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44850 unix_path=`$CYGPATH -u "$windows_path"` 44851 new_path="$unix_path" 44852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44853 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44854 new_path="$unix_path" 44855 fi 44856 44857 # remove trailing .exe if any 44858 new_path="${new_path/%.exe/}" 44859 44860 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44861 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44862 fi 44863 44864 else 44865 # We're on a unix platform. Hooray! :) 44866 # First separate the path from the arguments. This will split at the first 44867 # space. 44868 complete="$OBJCOPY" 44869 path="${complete%% *}" 44870 tmp="$complete EOL" 44871 arguments="${tmp#* }" 44872 44873 # Cannot rely on the command "which" here since it doesn't always work. 44874 is_absolute_path=`$ECHO "$path" | $GREP ^/` 44875 if test -z "$is_absolute_path"; then 44876 # Path to executable is not absolute. Find it. 44877 IFS_save="$IFS" 44878 IFS=: 44879 for p in $PATH; do 44880 if test -f "$p/$path" && test -x "$p/$path"; then 44881 new_path="$p/$path" 44882 break 44883 fi 44884 done 44885 IFS="$IFS_save" 44886 else 44887 # This is an absolute path, we can use it without further modifications. 44888 new_path="$path" 44889 fi 44890 44891 if test "x$new_path" = x; then 44892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 44893 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 44894 has_space=`$ECHO "$complete" | $GREP " "` 44895 if test "x$has_space" != x; then 44896 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 44897 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 44898 fi 44899 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 44900 fi 44901 fi 44902 44903 # Now join together the path and the arguments once again 44904 if test "x$arguments" != xEOL; then 44905 new_complete="$new_path ${arguments% *}" 44906 else 44907 new_complete="$new_path" 44908 fi 44909 44910 if test "x$complete" != "x$new_complete"; then 44911 OBJCOPY="$new_complete" 44912 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 44913 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 44914 fi 44915 fi 44916 44917 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 44918 # objcopy prior to 2.21.1 on solaris is broken and is not usable. 44919 # Rewrite objcopy version output to VALID_VERSION or BAD_VERSION. 44920 # - version number is last blank separate word on first line 44921 # - version number formats that have been seen: 44922 # - <major>.<minor> 44923 # - <major>.<minor>.<micro> 44924 OBJCOPY_VERSION=`$OBJCOPY --version | $HEAD -n 1` 44925 # The outer [ ] is to prevent m4 from eating the [] in the sed expression. 44926 OBJCOPY_VERSION_CHECK=`$ECHO $OBJCOPY_VERSION | $SED -n \ 44927 -e 's/.* //' \ 44928 -e '/^[01]\./b bad' \ 44929 -e '/^2\./{' \ 44930 -e ' s/^2\.//' \ 44931 -e ' /^[0-9]$/b bad' \ 44932 -e ' /^[0-9]\./b bad' \ 44933 -e ' /^1[0-9]$/b bad' \ 44934 -e ' /^1[0-9]\./b bad' \ 44935 -e ' /^20\./b bad' \ 44936 -e ' /^21\.0$/b bad' \ 44937 -e ' /^21\.0\./b bad' \ 44938 -e '}' \ 44939 -e ':good' \ 44940 -e 's/.*/VALID_VERSION/p' \ 44941 -e 'q' \ 44942 -e ':bad' \ 44943 -e 's/.*/BAD_VERSION/p' \ 44944 -e 'q'` 44945 if test "x$OBJCOPY_VERSION_CHECK" = xBAD_VERSION; then 44946 OBJCOPY= 44947 { $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 44948 $as_echo "$as_me: WARNING: Ignoring found objcopy since it is broken (prior to 2.21.1). No debug symbols will be generated." >&2;} 44949 { $as_echo "$as_me:${as_lineno-$LINENO}: objcopy reports version $OBJCOPY_VERSION" >&5 44950 $as_echo "$as_me: objcopy reports version $OBJCOPY_VERSION" >&6;} 44951 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&5 44952 $as_echo "$as_me: Note: patch 149063-01 or newer contains the correct Solaris 10 SPARC version" >&6;} 44953 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&5 44954 $as_echo "$as_me: Note: patch 149064-01 or newer contains the correct Solaris 10 X86 version" >&6;} 44955 { $as_echo "$as_me:${as_lineno-$LINENO}: Note: Solaris 11 Update 1 contains the correct version" >&5 44956 $as_echo "$as_me: Note: Solaris 11 Update 1 contains the correct version" >&6;} 44957 fi 44958 fi 44959 fi 44960 fi 44961 44962 44963 44964 # Publish this variable in the help. 44965 44966 44967 if [ -z "${OBJDUMP+x}" ]; then 44968 # The variable is not set by user, try to locate tool using the code snippet 44969 if test -n "$ac_tool_prefix"; then 44970 for ac_prog in gobjdump objdump 44971 do 44972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 44973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 44974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 44975 $as_echo_n "checking for $ac_word... " >&6; } 44976 if ${ac_cv_prog_OBJDUMP+:} false; then : 44977 $as_echo_n "(cached) " >&6 44978 else 44979 if test -n "$OBJDUMP"; then 44980 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 44981 else 44982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 44983 for as_dir in $PATH 44984 do 44985 IFS=$as_save_IFS 44986 test -z "$as_dir" && as_dir=. 44987 for ac_exec_ext in '' $ac_executable_extensions; do 44988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 44989 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 44990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 44991 break 2 44992 fi 44993 done 44994 done 44995 IFS=$as_save_IFS 44996 44997 fi 44998 fi 44999 OBJDUMP=$ac_cv_prog_OBJDUMP 45000 if test -n "$OBJDUMP"; then 45001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45002 $as_echo "$OBJDUMP" >&6; } 45003 else 45004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45005 $as_echo "no" >&6; } 45006 fi 45007 45008 45009 test -n "$OBJDUMP" && break 45010 done 45011 fi 45012 if test -z "$OBJDUMP"; then 45013 ac_ct_OBJDUMP=$OBJDUMP 45014 for ac_prog in gobjdump objdump 45015 do 45016 # Extract the first word of "$ac_prog", so it can be a program name with args. 45017 set dummy $ac_prog; ac_word=$2 45018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45019 $as_echo_n "checking for $ac_word... " >&6; } 45020 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45021 $as_echo_n "(cached) " >&6 45022 else 45023 if test -n "$ac_ct_OBJDUMP"; then 45024 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45025 else 45026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45027 for as_dir in $PATH 45028 do 45029 IFS=$as_save_IFS 45030 test -z "$as_dir" && as_dir=. 45031 for ac_exec_ext in '' $ac_executable_extensions; do 45032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45033 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45035 break 2 45036 fi 45037 done 45038 done 45039 IFS=$as_save_IFS 45040 45041 fi 45042 fi 45043 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45044 if test -n "$ac_ct_OBJDUMP"; then 45045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45046 $as_echo "$ac_ct_OBJDUMP" >&6; } 45047 else 45048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45049 $as_echo "no" >&6; } 45050 fi 45051 45052 45053 test -n "$ac_ct_OBJDUMP" && break 45054 done 45055 45056 if test "x$ac_ct_OBJDUMP" = x; then 45057 OBJDUMP="" 45058 else 45059 case $cross_compiling:$ac_tool_warned in 45060 yes:) 45061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45063 ac_tool_warned=yes ;; 45064 esac 45065 OBJDUMP=$ac_ct_OBJDUMP 45066 fi 45067 fi 45068 45069 else 45070 # The variable is set, but is it from the command line or the environment? 45071 45072 # Try to remove the string !OBJDUMP! from our list. 45073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 45074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45075 # If it failed, the variable was not from the command line. Ignore it, 45076 # but warn the user (except for BASH, which is always set by the calling BASH). 45077 if test "xOBJDUMP" != xBASH; then 45078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 45079 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 45080 fi 45081 # Try to locate tool using the code snippet 45082 if test -n "$ac_tool_prefix"; then 45083 for ac_prog in gobjdump objdump 45084 do 45085 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 45086 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 45087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45088 $as_echo_n "checking for $ac_word... " >&6; } 45089 if ${ac_cv_prog_OBJDUMP+:} false; then : 45090 $as_echo_n "(cached) " >&6 45091 else 45092 if test -n "$OBJDUMP"; then 45093 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 45094 else 45095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45096 for as_dir in $PATH 45097 do 45098 IFS=$as_save_IFS 45099 test -z "$as_dir" && as_dir=. 45100 for ac_exec_ext in '' $ac_executable_extensions; do 45101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45102 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 45103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45104 break 2 45105 fi 45106 done 45107 done 45108 IFS=$as_save_IFS 45109 45110 fi 45111 fi 45112 OBJDUMP=$ac_cv_prog_OBJDUMP 45113 if test -n "$OBJDUMP"; then 45114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45115 $as_echo "$OBJDUMP" >&6; } 45116 else 45117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45118 $as_echo "no" >&6; } 45119 fi 45120 45121 45122 test -n "$OBJDUMP" && break 45123 done 45124 fi 45125 if test -z "$OBJDUMP"; then 45126 ac_ct_OBJDUMP=$OBJDUMP 45127 for ac_prog in gobjdump objdump 45128 do 45129 # Extract the first word of "$ac_prog", so it can be a program name with args. 45130 set dummy $ac_prog; ac_word=$2 45131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45132 $as_echo_n "checking for $ac_word... " >&6; } 45133 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 45134 $as_echo_n "(cached) " >&6 45135 else 45136 if test -n "$ac_ct_OBJDUMP"; then 45137 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 45138 else 45139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45140 for as_dir in $PATH 45141 do 45142 IFS=$as_save_IFS 45143 test -z "$as_dir" && as_dir=. 45144 for ac_exec_ext in '' $ac_executable_extensions; do 45145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45146 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 45147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45148 break 2 45149 fi 45150 done 45151 done 45152 IFS=$as_save_IFS 45153 45154 fi 45155 fi 45156 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 45157 if test -n "$ac_ct_OBJDUMP"; then 45158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 45159 $as_echo "$ac_ct_OBJDUMP" >&6; } 45160 else 45161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45162 $as_echo "no" >&6; } 45163 fi 45164 45165 45166 test -n "$ac_ct_OBJDUMP" && break 45167 done 45168 45169 if test "x$ac_ct_OBJDUMP" = x; then 45170 OBJDUMP="" 45171 else 45172 case $cross_compiling:$ac_tool_warned in 45173 yes:) 45174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 45175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 45176 ac_tool_warned=yes ;; 45177 esac 45178 OBJDUMP=$ac_ct_OBJDUMP 45179 fi 45180 fi 45181 45182 else 45183 # If it succeeded, then it was overridden by the user. We will use it 45184 # for the tool. 45185 45186 # First remove it from the list of overridden variables, so we can test 45187 # for unknown variables in the end. 45188 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45189 45190 # Check if we try to supply an empty value 45191 if test "x$OBJDUMP" = x; then 45192 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool OBJDUMP= (no value)" >&5 45193 $as_echo "$as_me: Setting user supplied tool OBJDUMP= (no value)" >&6;} 45194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45195 $as_echo_n "checking for OBJDUMP... " >&6; } 45196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45197 $as_echo "disabled" >&6; } 45198 else 45199 # Check if the provided tool contains a complete path. 45200 tool_specified="$OBJDUMP" 45201 tool_basename="${tool_specified##*/}" 45202 if test "x$tool_basename" = "x$tool_specified"; then 45203 # A command without a complete path is provided, search $PATH. 45204 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 45205 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 45206 # Extract the first word of "$tool_basename", so it can be a program name with args. 45207 set dummy $tool_basename; ac_word=$2 45208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45209 $as_echo_n "checking for $ac_word... " >&6; } 45210 if ${ac_cv_path_OBJDUMP+:} false; then : 45211 $as_echo_n "(cached) " >&6 45212 else 45213 case $OBJDUMP in 45214 [\\/]* | ?:[\\/]*) 45215 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 45216 ;; 45217 *) 45218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45219 for as_dir in $PATH 45220 do 45221 IFS=$as_save_IFS 45222 test -z "$as_dir" && as_dir=. 45223 for ac_exec_ext in '' $ac_executable_extensions; do 45224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45225 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 45226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45227 break 2 45228 fi 45229 done 45230 done 45231 IFS=$as_save_IFS 45232 45233 ;; 45234 esac 45235 fi 45236 OBJDUMP=$ac_cv_path_OBJDUMP 45237 if test -n "$OBJDUMP"; then 45238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 45239 $as_echo "$OBJDUMP" >&6; } 45240 else 45241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45242 $as_echo "no" >&6; } 45243 fi 45244 45245 45246 if test "x$OBJDUMP" = x; then 45247 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 45248 fi 45249 else 45250 # Otherwise we believe it is a complete path. Use it as it is. 45251 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 45252 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 45253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 45254 $as_echo_n "checking for OBJDUMP... " >&6; } 45255 if test ! -x "$tool_specified"; then 45256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 45257 $as_echo "not found" >&6; } 45258 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 45259 fi 45260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 45261 $as_echo "$tool_specified" >&6; } 45262 fi 45263 fi 45264 fi 45265 45266 fi 45267 45268 45269 if test "x$OBJDUMP" != x; then 45270 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 45271 # bails if argument is missing. 45272 45273 # Only process if variable expands to non-empty 45274 45275 if test "x$OBJDUMP" != x; then 45276 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45277 45278 # First separate the path from the arguments. This will split at the first 45279 # space. 45280 complete="$OBJDUMP" 45281 path="${complete%% *}" 45282 tmp="$complete EOL" 45283 arguments="${tmp#* }" 45284 45285 # Input might be given as Windows format, start by converting to 45286 # unix format. 45287 new_path=`$CYGPATH -u "$path"` 45288 45289 # Now try to locate executable using which 45290 new_path=`$WHICH "$new_path" 2> /dev/null` 45291 # bat and cmd files are not always considered executable in cygwin causing which 45292 # to not find them 45293 if test "x$new_path" = x \ 45294 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45295 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45296 new_path=`$CYGPATH -u "$path"` 45297 fi 45298 if test "x$new_path" = x; then 45299 # Oops. Which didn't find the executable. 45300 # The splitting of arguments from the executable at a space might have been incorrect, 45301 # since paths with space are more likely in Windows. Give it another try with the whole 45302 # argument. 45303 path="$complete" 45304 arguments="EOL" 45305 new_path=`$CYGPATH -u "$path"` 45306 new_path=`$WHICH "$new_path" 2> /dev/null` 45307 # bat and cmd files are not always considered executable in cygwin causing which 45308 # to not find them 45309 if test "x$new_path" = x \ 45310 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45311 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45312 new_path=`$CYGPATH -u "$path"` 45313 fi 45314 if test "x$new_path" = x; then 45315 # It's still not found. Now this is an unrecoverable error. 45316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45317 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45318 has_space=`$ECHO "$complete" | $GREP " "` 45319 if test "x$has_space" != x; then 45320 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45321 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45322 fi 45323 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45324 fi 45325 fi 45326 45327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45330 # "foo.exe" is OK but "foo" is an error. 45331 # 45332 # This test is therefore slightly more accurate than "test -f" to check for file presence. 45333 # It is also a way to make sure we got the proper file name for the real test later on. 45334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45335 if test "x$test_shortpath" = x; then 45336 # Short path failed, file does not exist as specified. 45337 # Try adding .exe or .cmd 45338 if test -f "${new_path}.exe"; then 45339 input_to_shortpath="${new_path}.exe" 45340 elif test -f "${new_path}.cmd"; then 45341 input_to_shortpath="${new_path}.cmd" 45342 else 45343 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 45344 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 45345 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 45346 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 45347 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45348 fi 45349 else 45350 input_to_shortpath="$new_path" 45351 fi 45352 45353 # Call helper function which possibly converts this using DOS-style short mode. 45354 # If so, the updated path is stored in $new_path. 45355 new_path="$input_to_shortpath" 45356 45357 input_path="$input_to_shortpath" 45358 # Check if we need to convert this using DOS-style short mode. If the path 45359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45360 # take no chances and rewrite it. 45361 # Note: m4 eats our [], so we need to use [ and ] instead. 45362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45363 if test "x$has_forbidden_chars" != x; then 45364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45368 # Going to short mode and back again did indeed matter. Since short mode is 45369 # case insensitive, let's make it lowercase to improve readability. 45370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45371 # Now convert it back to Unix-style (cygpath) 45372 input_path=`$CYGPATH -u "$shortmode_path"` 45373 new_path="$input_path" 45374 fi 45375 fi 45376 45377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45378 if test "x$test_cygdrive_prefix" = x; then 45379 # As a simple fix, exclude /usr/bin since it's not a real path. 45380 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 45381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45382 # a path prefixed by /cygdrive for fixpath to work. 45383 new_path="$CYGWIN_ROOT_PATH$input_path" 45384 fi 45385 fi 45386 45387 # remove trailing .exe if any 45388 new_path="${new_path/%.exe/}" 45389 45390 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45391 45392 # First separate the path from the arguments. This will split at the first 45393 # space. 45394 complete="$OBJDUMP" 45395 path="${complete%% *}" 45396 tmp="$complete EOL" 45397 arguments="${tmp#* }" 45398 45399 # Input might be given as Windows format, start by converting to 45400 # unix format. 45401 new_path="$path" 45402 45403 windows_path="$new_path" 45404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45405 unix_path=`$CYGPATH -u "$windows_path"` 45406 new_path="$unix_path" 45407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45408 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45409 new_path="$unix_path" 45410 fi 45411 45412 45413 # Now try to locate executable using which 45414 new_path=`$WHICH "$new_path" 2> /dev/null` 45415 45416 if test "x$new_path" = x; then 45417 # Oops. Which didn't find the executable. 45418 # The splitting of arguments from the executable at a space might have been incorrect, 45419 # since paths with space are more likely in Windows. Give it another try with the whole 45420 # argument. 45421 path="$complete" 45422 arguments="EOL" 45423 new_path="$path" 45424 45425 windows_path="$new_path" 45426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45427 unix_path=`$CYGPATH -u "$windows_path"` 45428 new_path="$unix_path" 45429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45431 new_path="$unix_path" 45432 fi 45433 45434 45435 new_path=`$WHICH "$new_path" 2> /dev/null` 45436 # bat and cmd files are not always considered executable in MSYS causing which 45437 # to not find them 45438 if test "x$new_path" = x \ 45439 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 45440 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 45441 new_path="$path" 45442 45443 windows_path="$new_path" 45444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45445 unix_path=`$CYGPATH -u "$windows_path"` 45446 new_path="$unix_path" 45447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45449 new_path="$unix_path" 45450 fi 45451 45452 fi 45453 45454 if test "x$new_path" = x; then 45455 # It's still not found. Now this is an unrecoverable error. 45456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45457 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45458 has_space=`$ECHO "$complete" | $GREP " "` 45459 if test "x$has_space" != x; then 45460 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 45461 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 45462 fi 45463 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45464 fi 45465 fi 45466 45467 # Now new_path has a complete unix path to the binary 45468 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 45469 # Keep paths in /bin as-is, but remove trailing .exe if any 45470 new_path="${new_path/%.exe/}" 45471 # Do not save /bin paths to all_fixpath_prefixes! 45472 else 45473 # Not in mixed or Windows style, start by that. 45474 new_path=`cmd //c echo $new_path` 45475 45476 input_path="$new_path" 45477 # Check if we need to convert this using DOS-style short mode. If the path 45478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45479 # take no chances and rewrite it. 45480 # Note: m4 eats our [], so we need to use [ and ] instead. 45481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45482 if test "x$has_forbidden_chars" != x; then 45483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45484 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45485 fi 45486 45487 # Output is in $new_path 45488 45489 windows_path="$new_path" 45490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45491 unix_path=`$CYGPATH -u "$windows_path"` 45492 new_path="$unix_path" 45493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45495 new_path="$unix_path" 45496 fi 45497 45498 # remove trailing .exe if any 45499 new_path="${new_path/%.exe/}" 45500 45501 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45502 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45503 fi 45504 45505 else 45506 # We're on a unix platform. Hooray! :) 45507 # First separate the path from the arguments. This will split at the first 45508 # space. 45509 complete="$OBJDUMP" 45510 path="${complete%% *}" 45511 tmp="$complete EOL" 45512 arguments="${tmp#* }" 45513 45514 # Cannot rely on the command "which" here since it doesn't always work. 45515 is_absolute_path=`$ECHO "$path" | $GREP ^/` 45516 if test -z "$is_absolute_path"; then 45517 # Path to executable is not absolute. Find it. 45518 IFS_save="$IFS" 45519 IFS=: 45520 for p in $PATH; do 45521 if test -f "$p/$path" && test -x "$p/$path"; then 45522 new_path="$p/$path" 45523 break 45524 fi 45525 done 45526 IFS="$IFS_save" 45527 else 45528 # This is an absolute path, we can use it without further modifications. 45529 new_path="$path" 45530 fi 45531 45532 if test "x$new_path" = x; then 45533 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 45534 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 45535 has_space=`$ECHO "$complete" | $GREP " "` 45536 if test "x$has_space" != x; then 45537 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 45538 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 45539 fi 45540 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 45541 fi 45542 fi 45543 45544 # Now join together the path and the arguments once again 45545 if test "x$arguments" != xEOL; then 45546 new_complete="$new_path ${arguments% *}" 45547 else 45548 new_complete="$new_path" 45549 fi 45550 45551 if test "x$complete" != "x$new_complete"; then 45552 OBJDUMP="$new_complete" 45553 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 45554 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 45555 fi 45556 fi 45557 45558 fi 45559 45560 45561 # Restore old path, except for the microsoft toolchain, which requires VS_PATH 45562 # to remain in place. Otherwise the compiler will not work in some siutations 45563 # in later configure checks. 45564 if test "x$TOOLCHAIN_TYPE" != "xmicrosoft"; then 45565 PATH="$OLD_PATH" 45566 fi 45567 45568 # Restore the flags to the user specified values. 45569 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 45570 CFLAGS="$ORG_CFLAGS" 45571 CXXFLAGS="$ORG_CXXFLAGS" 45572 45573 45574 # Finally do some processing after the detection phase 45575 45576 if test "x$COMPILE_TYPE" = "xcross"; then 45577 # Now we need to find a C/C++ compiler that can build executables for the 45578 # build platform. We can't use the AC_PROG_CC macro, since it can only be 45579 # used once. Also, we need to do this without adding a tools dir to the 45580 # path, otherwise we might pick up cross-compilers which don't use standard 45581 # naming. 45582 45583 OLDPATH="$PATH" 45584 45585 45586 # Check whether --with-build-devkit was given. 45587 if test "${with_build_devkit+set}" = set; then : 45588 withval=$with_build_devkit; 45589 fi 45590 45591 if test "x$with_build_devkit" = "xyes"; then 45592 as_fn_error $? "--with-build-devkit must have a value" "$LINENO" 5 45593 elif test -n "$with_build_devkit"; then 45594 if test ! -d "$with_build_devkit"; then 45595 as_fn_error $? "--with-build-devkit points to non existing dir: $with_build_devkit" "$LINENO" 5 45596 else 45597 45598 # Only process if variable expands to non-empty 45599 45600 if test "x$with_build_devkit" != x; then 45601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45602 45603 # Input might be given as Windows format, start by converting to 45604 # unix format. 45605 path="$with_build_devkit" 45606 new_path=`$CYGPATH -u "$path"` 45607 45608 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45609 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45610 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45611 # "foo.exe" is OK but "foo" is an error. 45612 # 45613 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45614 # It is also a way to make sure we got the proper file name for the real test later on. 45615 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45616 if test "x$test_shortpath" = x; then 45617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45618 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45619 as_fn_error $? "Cannot locate the the path of with_build_devkit" "$LINENO" 5 45620 fi 45621 45622 # Call helper function which possibly converts this using DOS-style short mode. 45623 # If so, the updated path is stored in $new_path. 45624 45625 input_path="$new_path" 45626 # Check if we need to convert this using DOS-style short mode. If the path 45627 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45628 # take no chances and rewrite it. 45629 # Note: m4 eats our [], so we need to use [ and ] instead. 45630 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45631 if test "x$has_forbidden_chars" != x; then 45632 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45633 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45634 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45635 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45636 # Going to short mode and back again did indeed matter. Since short mode is 45637 # case insensitive, let's make it lowercase to improve readability. 45638 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45639 # Now convert it back to Unix-style (cygpath) 45640 input_path=`$CYGPATH -u "$shortmode_path"` 45641 new_path="$input_path" 45642 fi 45643 fi 45644 45645 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45646 if test "x$test_cygdrive_prefix" = x; then 45647 # As a simple fix, exclude /usr/bin since it's not a real path. 45648 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45649 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45650 # a path prefixed by /cygdrive for fixpath to work. 45651 new_path="$CYGWIN_ROOT_PATH$input_path" 45652 fi 45653 fi 45654 45655 45656 if test "x$path" != "x$new_path"; then 45657 with_build_devkit="$new_path" 45658 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45659 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45660 fi 45661 45662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45663 45664 path="$with_build_devkit" 45665 has_colon=`$ECHO $path | $GREP ^.:` 45666 new_path="$path" 45667 if test "x$has_colon" = x; then 45668 # Not in mixed or Windows style, start by that. 45669 new_path=`cmd //c echo $path` 45670 fi 45671 45672 45673 input_path="$new_path" 45674 # Check if we need to convert this using DOS-style short mode. If the path 45675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45676 # take no chances and rewrite it. 45677 # Note: m4 eats our [], so we need to use [ and ] instead. 45678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45679 if test "x$has_forbidden_chars" != x; then 45680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45681 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45682 fi 45683 45684 45685 windows_path="$new_path" 45686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45687 unix_path=`$CYGPATH -u "$windows_path"` 45688 new_path="$unix_path" 45689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45691 new_path="$unix_path" 45692 fi 45693 45694 if test "x$path" != "x$new_path"; then 45695 with_build_devkit="$new_path" 45696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_build_devkit to \"$new_path\"" >&5 45697 $as_echo "$as_me: Rewriting with_build_devkit to \"$new_path\"" >&6;} 45698 fi 45699 45700 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45701 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45702 45703 else 45704 # We're on a unix platform. Hooray! :) 45705 path="$with_build_devkit" 45706 has_space=`$ECHO "$path" | $GREP " "` 45707 if test "x$has_space" != x; then 45708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&5 45709 $as_echo "$as_me: The path of with_build_devkit, which resolves as \"$path\", is invalid." >&6;} 45710 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45711 fi 45712 45713 # Use eval to expand a potential ~ 45714 eval path="$path" 45715 if test ! -f "$path" && test ! -d "$path"; then 45716 as_fn_error $? "The path of with_build_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 45717 fi 45718 45719 if test -d "$path"; then 45720 with_build_devkit="`cd "$path"; $THEPWDCMD -L`" 45721 else 45722 dir="`$DIRNAME "$path"`" 45723 base="`$BASENAME "$path"`" 45724 with_build_devkit="`cd "$dir"; $THEPWDCMD -L`/$base" 45725 fi 45726 fi 45727 fi 45728 45729 BUILD_DEVKIT_ROOT="$with_build_devkit" 45730 # Check for a meta data info file in the root of the devkit 45731 if test -f "$BUILD_DEVKIT_ROOT/devkit.info"; then 45732 # Process devkit.info so that existing devkit variables are not 45733 # modified by this 45734 $SED -e "s/^DEVKIT_/BUILD_DEVKIT_/g" \ 45735 -e "s/\$DEVKIT_ROOT/\$BUILD_DEVKIT_ROOT/g" \ 45736 -e "s/\$host/\$build/g" \ 45737 $BUILD_DEVKIT_ROOT/devkit.info \ 45738 > $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45739 . $CONFIGURESUPPORT_OUTPUTDIR/build-devkit.info 45740 # This potentially sets the following: 45741 # A descriptive name of the devkit 45742 45743 if test "x$BUILD_DEVKIT_NAME" = x; then 45744 eval BUILD_DEVKIT_NAME="\${BUILD_DEVKIT_NAME_${OPENJDK_TARGET_CPU}}" 45745 fi 45746 45747 # Corresponds to --with-extra-path 45748 45749 if test "x$BUILD_DEVKIT_EXTRA_PATH" = x; then 45750 eval BUILD_DEVKIT_EXTRA_PATH="\${BUILD_DEVKIT_EXTRA_PATH_${OPENJDK_TARGET_CPU}}" 45751 fi 45752 45753 # Corresponds to --with-toolchain-path 45754 45755 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45756 eval BUILD_DEVKIT_TOOLCHAIN_PATH="\${BUILD_DEVKIT_TOOLCHAIN_PATH_${OPENJDK_TARGET_CPU}}" 45757 fi 45758 45759 # Corresponds to --with-sysroot 45760 45761 if test "x$BUILD_DEVKIT_SYSROOT" = x; then 45762 eval BUILD_DEVKIT_SYSROOT="\${BUILD_DEVKIT_SYSROOT_${OPENJDK_TARGET_CPU}}" 45763 fi 45764 45765 # Skip the Window specific parts 45766 fi 45767 45768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build platform devkit" >&5 45769 $as_echo_n "checking for build platform devkit... " >&6; } 45770 if test "x$BUILD_DEVKIT_NAME" != x; then 45771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&5 45772 $as_echo "$BUILD_DEVKIT_NAME in $BUILD_DEVKIT_ROOT" >&6; } 45773 else 45774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_DEVKIT_ROOT" >&5 45775 $as_echo "$BUILD_DEVKIT_ROOT" >&6; } 45776 fi 45777 45778 BUILD_SYSROOT="$BUILD_DEVKIT_SYSROOT" 45779 45780 if test "x$BUILD_SYSROOT" != "x"; then 45781 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 45782 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 45783 # Solaris Studio does not have a concept of sysroot. Instead we must 45784 # make sure the default include and lib dirs are appended to each 45785 # compile and link command line. Must also add -I-xbuiltin to enable 45786 # inlining of system functions and intrinsics. 45787 BUILD_SYSROOT_CFLAGS="-I-xbuiltin -I$BUILD_SYSROOT/usr/include" 45788 BUILD_SYSROOT_LDFLAGS="-L$BUILD_SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 45789 -L$BUILD_SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR" 45790 fi 45791 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 45792 BUILD_SYSROOT_CFLAGS="--sysroot=$BUILD_SYSROOT" 45793 BUILD_SYSROOT_LDFLAGS="--sysroot=$BUILD_SYSROOT" 45794 elif test "x$TOOLCHAIN_TYPE" = xclang; then 45795 BUILD_SYSROOT_CFLAGS="-isysroot $BUILD_SYSROOT" 45796 BUILD_SYSROOT_LDFLAGS="-isysroot $BUILD_SYSROOT" 45797 fi 45798 # The global CFLAGS and LDFLAGS variables need these for configure to function 45799 BUILD_CFLAGS="$BUILD_CFLAGS $BUILD_SYSROOT_CFLAGS" 45800 BUILD_CPPFLAGS="$BUILD_CPPFLAGS $BUILD_SYSROOT_CFLAGS" 45801 BUILD_CXXFLAGS="$BUILD_CXXFLAGS $BUILD_SYSROOT_CFLAGS" 45802 BUILD_LDFLAGS="$BUILD_LDFLAGS $BUILD_SYSROOT_LDFLAGS" 45803 fi 45804 45805 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45806 # We also need -iframework<path>/System/Library/Frameworks 45807 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45808 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -iframework $BUILD_SYSROOT/System/Library/Frameworks" 45809 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 45810 # set this here so it doesn't have to be peppered throughout the forest 45811 BUILD_SYSROOT_CFLAGS="$BUILD_SYSROOT_CFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45812 BUILD_SYSROOT_LDFLAGS="$BUILD_SYSROOT_LDFLAGS -F $BUILD_SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks" 45813 fi 45814 45815 45816 45817 45818 45819 # Fallback default of just /bin if DEVKIT_PATH is not defined 45820 if test "x$BUILD_DEVKIT_TOOLCHAIN_PATH" = x; then 45821 BUILD_DEVKIT_TOOLCHAIN_PATH="$BUILD_DEVKIT_ROOT/bin" 45822 fi 45823 PATH="$BUILD_DEVKIT_TOOLCHAIN_PATH:$BUILD_DEVKIT_EXTRA_PATH" 45824 fi 45825 fi 45826 45827 # FIXME: we should list the discovered compilers as an exclude pattern! 45828 # If we do that, we can do this detection before POST_DETECTION, and still 45829 # find the build compilers in the tools dir, if needed. 45830 45831 45832 45833 # Publish this variable in the help. 45834 45835 45836 if [ -z "${BUILD_CC+x}" ]; then 45837 # The variable is not set by user, try to locate tool using the code snippet 45838 for ac_prog in cl cc gcc 45839 do 45840 # Extract the first word of "$ac_prog", so it can be a program name with args. 45841 set dummy $ac_prog; ac_word=$2 45842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45843 $as_echo_n "checking for $ac_word... " >&6; } 45844 if ${ac_cv_path_BUILD_CC+:} false; then : 45845 $as_echo_n "(cached) " >&6 45846 else 45847 case $BUILD_CC in 45848 [\\/]* | ?:[\\/]*) 45849 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45850 ;; 45851 *) 45852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45853 for as_dir in $PATH 45854 do 45855 IFS=$as_save_IFS 45856 test -z "$as_dir" && as_dir=. 45857 for ac_exec_ext in '' $ac_executable_extensions; do 45858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45859 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45861 break 2 45862 fi 45863 done 45864 done 45865 IFS=$as_save_IFS 45866 45867 ;; 45868 esac 45869 fi 45870 BUILD_CC=$ac_cv_path_BUILD_CC 45871 if test -n "$BUILD_CC"; then 45872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45873 $as_echo "$BUILD_CC" >&6; } 45874 else 45875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45876 $as_echo "no" >&6; } 45877 fi 45878 45879 45880 test -n "$BUILD_CC" && break 45881 done 45882 45883 else 45884 # The variable is set, but is it from the command line or the environment? 45885 45886 # Try to remove the string !BUILD_CC! from our list. 45887 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 45888 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 45889 # If it failed, the variable was not from the command line. Ignore it, 45890 # but warn the user (except for BASH, which is always set by the calling BASH). 45891 if test "xBUILD_CC" != xBASH; then 45892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 45893 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 45894 fi 45895 # Try to locate tool using the code snippet 45896 for ac_prog in cl cc gcc 45897 do 45898 # Extract the first word of "$ac_prog", so it can be a program name with args. 45899 set dummy $ac_prog; ac_word=$2 45900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45901 $as_echo_n "checking for $ac_word... " >&6; } 45902 if ${ac_cv_path_BUILD_CC+:} false; then : 45903 $as_echo_n "(cached) " >&6 45904 else 45905 case $BUILD_CC in 45906 [\\/]* | ?:[\\/]*) 45907 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45908 ;; 45909 *) 45910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45911 for as_dir in $PATH 45912 do 45913 IFS=$as_save_IFS 45914 test -z "$as_dir" && as_dir=. 45915 for ac_exec_ext in '' $ac_executable_extensions; do 45916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45917 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45919 break 2 45920 fi 45921 done 45922 done 45923 IFS=$as_save_IFS 45924 45925 ;; 45926 esac 45927 fi 45928 BUILD_CC=$ac_cv_path_BUILD_CC 45929 if test -n "$BUILD_CC"; then 45930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45931 $as_echo "$BUILD_CC" >&6; } 45932 else 45933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45934 $as_echo "no" >&6; } 45935 fi 45936 45937 45938 test -n "$BUILD_CC" && break 45939 done 45940 45941 else 45942 # If it succeeded, then it was overridden by the user. We will use it 45943 # for the tool. 45944 45945 # First remove it from the list of overridden variables, so we can test 45946 # for unknown variables in the end. 45947 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 45948 45949 # Check if we try to supply an empty value 45950 if test "x$BUILD_CC" = x; then 45951 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CC= (no value)" >&5 45952 $as_echo "$as_me: Setting user supplied tool BUILD_CC= (no value)" >&6;} 45953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 45954 $as_echo_n "checking for BUILD_CC... " >&6; } 45955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 45956 $as_echo "disabled" >&6; } 45957 else 45958 # Check if the provided tool contains a complete path. 45959 tool_specified="$BUILD_CC" 45960 tool_basename="${tool_specified##*/}" 45961 if test "x$tool_basename" = "x$tool_specified"; then 45962 # A command without a complete path is provided, search $PATH. 45963 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 45964 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 45965 # Extract the first word of "$tool_basename", so it can be a program name with args. 45966 set dummy $tool_basename; ac_word=$2 45967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 45968 $as_echo_n "checking for $ac_word... " >&6; } 45969 if ${ac_cv_path_BUILD_CC+:} false; then : 45970 $as_echo_n "(cached) " >&6 45971 else 45972 case $BUILD_CC in 45973 [\\/]* | ?:[\\/]*) 45974 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 45975 ;; 45976 *) 45977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 45978 for as_dir in $PATH 45979 do 45980 IFS=$as_save_IFS 45981 test -z "$as_dir" && as_dir=. 45982 for ac_exec_ext in '' $ac_executable_extensions; do 45983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 45984 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 45985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 45986 break 2 45987 fi 45988 done 45989 done 45990 IFS=$as_save_IFS 45991 45992 ;; 45993 esac 45994 fi 45995 BUILD_CC=$ac_cv_path_BUILD_CC 45996 if test -n "$BUILD_CC"; then 45997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 45998 $as_echo "$BUILD_CC" >&6; } 45999 else 46000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46001 $as_echo "no" >&6; } 46002 fi 46003 46004 46005 if test "x$BUILD_CC" = x; then 46006 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46007 fi 46008 else 46009 # Otherwise we believe it is a complete path. Use it as it is. 46010 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 46011 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 46012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 46013 $as_echo_n "checking for BUILD_CC... " >&6; } 46014 if test ! -x "$tool_specified"; then 46015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46016 $as_echo "not found" >&6; } 46017 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 46018 fi 46019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46020 $as_echo "$tool_specified" >&6; } 46021 fi 46022 fi 46023 fi 46024 46025 fi 46026 46027 46028 46029 if test "x$BUILD_CC" = x; then 46030 as_fn_error $? "Could not find required tool for BUILD_CC" "$LINENO" 5 46031 fi 46032 46033 46034 46035 # Only process if variable expands to non-empty 46036 46037 if test "x$BUILD_CC" != x; then 46038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46039 46040 # First separate the path from the arguments. This will split at the first 46041 # space. 46042 complete="$BUILD_CC" 46043 path="${complete%% *}" 46044 tmp="$complete EOL" 46045 arguments="${tmp#* }" 46046 46047 # Input might be given as Windows format, start by converting to 46048 # unix format. 46049 new_path=`$CYGPATH -u "$path"` 46050 46051 # Now try to locate executable using which 46052 new_path=`$WHICH "$new_path" 2> /dev/null` 46053 # bat and cmd files are not always considered executable in cygwin causing which 46054 # to not find them 46055 if test "x$new_path" = x \ 46056 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46057 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46058 new_path=`$CYGPATH -u "$path"` 46059 fi 46060 if test "x$new_path" = x; then 46061 # Oops. Which didn't find the executable. 46062 # The splitting of arguments from the executable at a space might have been incorrect, 46063 # since paths with space are more likely in Windows. Give it another try with the whole 46064 # argument. 46065 path="$complete" 46066 arguments="EOL" 46067 new_path=`$CYGPATH -u "$path"` 46068 new_path=`$WHICH "$new_path" 2> /dev/null` 46069 # bat and cmd files are not always considered executable in cygwin causing which 46070 # to not find them 46071 if test "x$new_path" = x \ 46072 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46073 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46074 new_path=`$CYGPATH -u "$path"` 46075 fi 46076 if test "x$new_path" = x; then 46077 # It's still not found. Now this is an unrecoverable error. 46078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46079 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46080 has_space=`$ECHO "$complete" | $GREP " "` 46081 if test "x$has_space" != x; then 46082 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46083 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46084 fi 46085 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46086 fi 46087 fi 46088 46089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46092 # "foo.exe" is OK but "foo" is an error. 46093 # 46094 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46095 # It is also a way to make sure we got the proper file name for the real test later on. 46096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46097 if test "x$test_shortpath" = x; then 46098 # Short path failed, file does not exist as specified. 46099 # Try adding .exe or .cmd 46100 if test -f "${new_path}.exe"; then 46101 input_to_shortpath="${new_path}.exe" 46102 elif test -f "${new_path}.cmd"; then 46103 input_to_shortpath="${new_path}.cmd" 46104 else 46105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 46106 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 46107 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46108 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46109 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46110 fi 46111 else 46112 input_to_shortpath="$new_path" 46113 fi 46114 46115 # Call helper function which possibly converts this using DOS-style short mode. 46116 # If so, the updated path is stored in $new_path. 46117 new_path="$input_to_shortpath" 46118 46119 input_path="$input_to_shortpath" 46120 # Check if we need to convert this using DOS-style short mode. If the path 46121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46122 # take no chances and rewrite it. 46123 # Note: m4 eats our [], so we need to use [ and ] instead. 46124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46125 if test "x$has_forbidden_chars" != x; then 46126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46127 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46128 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46129 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46130 # Going to short mode and back again did indeed matter. Since short mode is 46131 # case insensitive, let's make it lowercase to improve readability. 46132 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46133 # Now convert it back to Unix-style (cygpath) 46134 input_path=`$CYGPATH -u "$shortmode_path"` 46135 new_path="$input_path" 46136 fi 46137 fi 46138 46139 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46140 if test "x$test_cygdrive_prefix" = x; then 46141 # As a simple fix, exclude /usr/bin since it's not a real path. 46142 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46143 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46144 # a path prefixed by /cygdrive for fixpath to work. 46145 new_path="$CYGWIN_ROOT_PATH$input_path" 46146 fi 46147 fi 46148 46149 # remove trailing .exe if any 46150 new_path="${new_path/%.exe/}" 46151 46152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46153 46154 # First separate the path from the arguments. This will split at the first 46155 # space. 46156 complete="$BUILD_CC" 46157 path="${complete%% *}" 46158 tmp="$complete EOL" 46159 arguments="${tmp#* }" 46160 46161 # Input might be given as Windows format, start by converting to 46162 # unix format. 46163 new_path="$path" 46164 46165 windows_path="$new_path" 46166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46167 unix_path=`$CYGPATH -u "$windows_path"` 46168 new_path="$unix_path" 46169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46171 new_path="$unix_path" 46172 fi 46173 46174 46175 # Now try to locate executable using which 46176 new_path=`$WHICH "$new_path" 2> /dev/null` 46177 46178 if test "x$new_path" = x; then 46179 # Oops. Which didn't find the executable. 46180 # The splitting of arguments from the executable at a space might have been incorrect, 46181 # since paths with space are more likely in Windows. Give it another try with the whole 46182 # argument. 46183 path="$complete" 46184 arguments="EOL" 46185 new_path="$path" 46186 46187 windows_path="$new_path" 46188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46189 unix_path=`$CYGPATH -u "$windows_path"` 46190 new_path="$unix_path" 46191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46193 new_path="$unix_path" 46194 fi 46195 46196 46197 new_path=`$WHICH "$new_path" 2> /dev/null` 46198 # bat and cmd files are not always considered executable in MSYS causing which 46199 # to not find them 46200 if test "x$new_path" = x \ 46201 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46202 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46203 new_path="$path" 46204 46205 windows_path="$new_path" 46206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46207 unix_path=`$CYGPATH -u "$windows_path"` 46208 new_path="$unix_path" 46209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46210 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46211 new_path="$unix_path" 46212 fi 46213 46214 fi 46215 46216 if test "x$new_path" = x; then 46217 # It's still not found. Now this is an unrecoverable error. 46218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46219 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46220 has_space=`$ECHO "$complete" | $GREP " "` 46221 if test "x$has_space" != x; then 46222 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46223 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46224 fi 46225 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46226 fi 46227 fi 46228 46229 # Now new_path has a complete unix path to the binary 46230 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46231 # Keep paths in /bin as-is, but remove trailing .exe if any 46232 new_path="${new_path/%.exe/}" 46233 # Do not save /bin paths to all_fixpath_prefixes! 46234 else 46235 # Not in mixed or Windows style, start by that. 46236 new_path=`cmd //c echo $new_path` 46237 46238 input_path="$new_path" 46239 # Check if we need to convert this using DOS-style short mode. If the path 46240 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46241 # take no chances and rewrite it. 46242 # Note: m4 eats our [], so we need to use [ and ] instead. 46243 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46244 if test "x$has_forbidden_chars" != x; then 46245 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46246 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46247 fi 46248 46249 # Output is in $new_path 46250 46251 windows_path="$new_path" 46252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46253 unix_path=`$CYGPATH -u "$windows_path"` 46254 new_path="$unix_path" 46255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46257 new_path="$unix_path" 46258 fi 46259 46260 # remove trailing .exe if any 46261 new_path="${new_path/%.exe/}" 46262 46263 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46264 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46265 fi 46266 46267 else 46268 # We're on a unix platform. Hooray! :) 46269 # First separate the path from the arguments. This will split at the first 46270 # space. 46271 complete="$BUILD_CC" 46272 path="${complete%% *}" 46273 tmp="$complete EOL" 46274 arguments="${tmp#* }" 46275 46276 # Cannot rely on the command "which" here since it doesn't always work. 46277 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46278 if test -z "$is_absolute_path"; then 46279 # Path to executable is not absolute. Find it. 46280 IFS_save="$IFS" 46281 IFS=: 46282 for p in $PATH; do 46283 if test -f "$p/$path" && test -x "$p/$path"; then 46284 new_path="$p/$path" 46285 break 46286 fi 46287 done 46288 IFS="$IFS_save" 46289 else 46290 # This is an absolute path, we can use it without further modifications. 46291 new_path="$path" 46292 fi 46293 46294 if test "x$new_path" = x; then 46295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 46296 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 46297 has_space=`$ECHO "$complete" | $GREP " "` 46298 if test "x$has_space" != x; then 46299 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46300 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46301 fi 46302 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 46303 fi 46304 fi 46305 46306 # Now join together the path and the arguments once again 46307 if test "x$arguments" != xEOL; then 46308 new_complete="$new_path ${arguments% *}" 46309 else 46310 new_complete="$new_path" 46311 fi 46312 46313 if test "x$complete" != "x$new_complete"; then 46314 BUILD_CC="$new_complete" 46315 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 46316 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 46317 fi 46318 fi 46319 46320 46321 46322 46323 # Publish this variable in the help. 46324 46325 46326 if [ -z "${BUILD_CXX+x}" ]; then 46327 # The variable is not set by user, try to locate tool using the code snippet 46328 for ac_prog in cl CC g++ 46329 do 46330 # Extract the first word of "$ac_prog", so it can be a program name with args. 46331 set dummy $ac_prog; ac_word=$2 46332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46333 $as_echo_n "checking for $ac_word... " >&6; } 46334 if ${ac_cv_path_BUILD_CXX+:} false; then : 46335 $as_echo_n "(cached) " >&6 46336 else 46337 case $BUILD_CXX in 46338 [\\/]* | ?:[\\/]*) 46339 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46340 ;; 46341 *) 46342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46343 for as_dir in $PATH 46344 do 46345 IFS=$as_save_IFS 46346 test -z "$as_dir" && as_dir=. 46347 for ac_exec_ext in '' $ac_executable_extensions; do 46348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46349 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46351 break 2 46352 fi 46353 done 46354 done 46355 IFS=$as_save_IFS 46356 46357 ;; 46358 esac 46359 fi 46360 BUILD_CXX=$ac_cv_path_BUILD_CXX 46361 if test -n "$BUILD_CXX"; then 46362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46363 $as_echo "$BUILD_CXX" >&6; } 46364 else 46365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46366 $as_echo "no" >&6; } 46367 fi 46368 46369 46370 test -n "$BUILD_CXX" && break 46371 done 46372 46373 else 46374 # The variable is set, but is it from the command line or the environment? 46375 46376 # Try to remove the string !BUILD_CXX! from our list. 46377 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 46378 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46379 # If it failed, the variable was not from the command line. Ignore it, 46380 # but warn the user (except for BASH, which is always set by the calling BASH). 46381 if test "xBUILD_CXX" != xBASH; then 46382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 46383 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 46384 fi 46385 # Try to locate tool using the code snippet 46386 for ac_prog in cl CC g++ 46387 do 46388 # Extract the first word of "$ac_prog", so it can be a program name with args. 46389 set dummy $ac_prog; ac_word=$2 46390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46391 $as_echo_n "checking for $ac_word... " >&6; } 46392 if ${ac_cv_path_BUILD_CXX+:} false; then : 46393 $as_echo_n "(cached) " >&6 46394 else 46395 case $BUILD_CXX in 46396 [\\/]* | ?:[\\/]*) 46397 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46398 ;; 46399 *) 46400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46401 for as_dir in $PATH 46402 do 46403 IFS=$as_save_IFS 46404 test -z "$as_dir" && as_dir=. 46405 for ac_exec_ext in '' $ac_executable_extensions; do 46406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46407 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46409 break 2 46410 fi 46411 done 46412 done 46413 IFS=$as_save_IFS 46414 46415 ;; 46416 esac 46417 fi 46418 BUILD_CXX=$ac_cv_path_BUILD_CXX 46419 if test -n "$BUILD_CXX"; then 46420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46421 $as_echo "$BUILD_CXX" >&6; } 46422 else 46423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46424 $as_echo "no" >&6; } 46425 fi 46426 46427 46428 test -n "$BUILD_CXX" && break 46429 done 46430 46431 else 46432 # If it succeeded, then it was overridden by the user. We will use it 46433 # for the tool. 46434 46435 # First remove it from the list of overridden variables, so we can test 46436 # for unknown variables in the end. 46437 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46438 46439 # Check if we try to supply an empty value 46440 if test "x$BUILD_CXX" = x; then 46441 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_CXX= (no value)" >&5 46442 $as_echo "$as_me: Setting user supplied tool BUILD_CXX= (no value)" >&6;} 46443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46444 $as_echo_n "checking for BUILD_CXX... " >&6; } 46445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46446 $as_echo "disabled" >&6; } 46447 else 46448 # Check if the provided tool contains a complete path. 46449 tool_specified="$BUILD_CXX" 46450 tool_basename="${tool_specified##*/}" 46451 if test "x$tool_basename" = "x$tool_specified"; then 46452 # A command without a complete path is provided, search $PATH. 46453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 46454 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 46455 # Extract the first word of "$tool_basename", so it can be a program name with args. 46456 set dummy $tool_basename; ac_word=$2 46457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46458 $as_echo_n "checking for $ac_word... " >&6; } 46459 if ${ac_cv_path_BUILD_CXX+:} false; then : 46460 $as_echo_n "(cached) " >&6 46461 else 46462 case $BUILD_CXX in 46463 [\\/]* | ?:[\\/]*) 46464 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 46465 ;; 46466 *) 46467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46468 for as_dir in $PATH 46469 do 46470 IFS=$as_save_IFS 46471 test -z "$as_dir" && as_dir=. 46472 for ac_exec_ext in '' $ac_executable_extensions; do 46473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46474 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 46475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46476 break 2 46477 fi 46478 done 46479 done 46480 IFS=$as_save_IFS 46481 46482 ;; 46483 esac 46484 fi 46485 BUILD_CXX=$ac_cv_path_BUILD_CXX 46486 if test -n "$BUILD_CXX"; then 46487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 46488 $as_echo "$BUILD_CXX" >&6; } 46489 else 46490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46491 $as_echo "no" >&6; } 46492 fi 46493 46494 46495 if test "x$BUILD_CXX" = x; then 46496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46497 fi 46498 else 46499 # Otherwise we believe it is a complete path. Use it as it is. 46500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 46501 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 46502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 46503 $as_echo_n "checking for BUILD_CXX... " >&6; } 46504 if test ! -x "$tool_specified"; then 46505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46506 $as_echo "not found" >&6; } 46507 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 46508 fi 46509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46510 $as_echo "$tool_specified" >&6; } 46511 fi 46512 fi 46513 fi 46514 46515 fi 46516 46517 46518 46519 if test "x$BUILD_CXX" = x; then 46520 as_fn_error $? "Could not find required tool for BUILD_CXX" "$LINENO" 5 46521 fi 46522 46523 46524 46525 # Only process if variable expands to non-empty 46526 46527 if test "x$BUILD_CXX" != x; then 46528 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46529 46530 # First separate the path from the arguments. This will split at the first 46531 # space. 46532 complete="$BUILD_CXX" 46533 path="${complete%% *}" 46534 tmp="$complete EOL" 46535 arguments="${tmp#* }" 46536 46537 # Input might be given as Windows format, start by converting to 46538 # unix format. 46539 new_path=`$CYGPATH -u "$path"` 46540 46541 # Now try to locate executable using which 46542 new_path=`$WHICH "$new_path" 2> /dev/null` 46543 # bat and cmd files are not always considered executable in cygwin causing which 46544 # to not find them 46545 if test "x$new_path" = x \ 46546 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46547 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46548 new_path=`$CYGPATH -u "$path"` 46549 fi 46550 if test "x$new_path" = x; then 46551 # Oops. Which didn't find the executable. 46552 # The splitting of arguments from the executable at a space might have been incorrect, 46553 # since paths with space are more likely in Windows. Give it another try with the whole 46554 # argument. 46555 path="$complete" 46556 arguments="EOL" 46557 new_path=`$CYGPATH -u "$path"` 46558 new_path=`$WHICH "$new_path" 2> /dev/null` 46559 # bat and cmd files are not always considered executable in cygwin causing which 46560 # to not find them 46561 if test "x$new_path" = x \ 46562 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46563 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46564 new_path=`$CYGPATH -u "$path"` 46565 fi 46566 if test "x$new_path" = x; then 46567 # It's still not found. Now this is an unrecoverable error. 46568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46569 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46570 has_space=`$ECHO "$complete" | $GREP " "` 46571 if test "x$has_space" != x; then 46572 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46573 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46574 fi 46575 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46576 fi 46577 fi 46578 46579 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46580 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46581 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46582 # "foo.exe" is OK but "foo" is an error. 46583 # 46584 # This test is therefore slightly more accurate than "test -f" to check for file presence. 46585 # It is also a way to make sure we got the proper file name for the real test later on. 46586 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46587 if test "x$test_shortpath" = x; then 46588 # Short path failed, file does not exist as specified. 46589 # Try adding .exe or .cmd 46590 if test -f "${new_path}.exe"; then 46591 input_to_shortpath="${new_path}.exe" 46592 elif test -f "${new_path}.cmd"; then 46593 input_to_shortpath="${new_path}.cmd" 46594 else 46595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 46596 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 46597 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 46598 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 46599 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46600 fi 46601 else 46602 input_to_shortpath="$new_path" 46603 fi 46604 46605 # Call helper function which possibly converts this using DOS-style short mode. 46606 # If so, the updated path is stored in $new_path. 46607 new_path="$input_to_shortpath" 46608 46609 input_path="$input_to_shortpath" 46610 # Check if we need to convert this using DOS-style short mode. If the path 46611 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46612 # take no chances and rewrite it. 46613 # Note: m4 eats our [], so we need to use [ and ] instead. 46614 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46615 if test "x$has_forbidden_chars" != x; then 46616 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46617 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46618 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46619 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46620 # Going to short mode and back again did indeed matter. Since short mode is 46621 # case insensitive, let's make it lowercase to improve readability. 46622 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46623 # Now convert it back to Unix-style (cygpath) 46624 input_path=`$CYGPATH -u "$shortmode_path"` 46625 new_path="$input_path" 46626 fi 46627 fi 46628 46629 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46630 if test "x$test_cygdrive_prefix" = x; then 46631 # As a simple fix, exclude /usr/bin since it's not a real path. 46632 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 46633 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46634 # a path prefixed by /cygdrive for fixpath to work. 46635 new_path="$CYGWIN_ROOT_PATH$input_path" 46636 fi 46637 fi 46638 46639 # remove trailing .exe if any 46640 new_path="${new_path/%.exe/}" 46641 46642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46643 46644 # First separate the path from the arguments. This will split at the first 46645 # space. 46646 complete="$BUILD_CXX" 46647 path="${complete%% *}" 46648 tmp="$complete EOL" 46649 arguments="${tmp#* }" 46650 46651 # Input might be given as Windows format, start by converting to 46652 # unix format. 46653 new_path="$path" 46654 46655 windows_path="$new_path" 46656 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46657 unix_path=`$CYGPATH -u "$windows_path"` 46658 new_path="$unix_path" 46659 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46660 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46661 new_path="$unix_path" 46662 fi 46663 46664 46665 # Now try to locate executable using which 46666 new_path=`$WHICH "$new_path" 2> /dev/null` 46667 46668 if test "x$new_path" = x; then 46669 # Oops. Which didn't find the executable. 46670 # The splitting of arguments from the executable at a space might have been incorrect, 46671 # since paths with space are more likely in Windows. Give it another try with the whole 46672 # argument. 46673 path="$complete" 46674 arguments="EOL" 46675 new_path="$path" 46676 46677 windows_path="$new_path" 46678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46679 unix_path=`$CYGPATH -u "$windows_path"` 46680 new_path="$unix_path" 46681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46683 new_path="$unix_path" 46684 fi 46685 46686 46687 new_path=`$WHICH "$new_path" 2> /dev/null` 46688 # bat and cmd files are not always considered executable in MSYS causing which 46689 # to not find them 46690 if test "x$new_path" = x \ 46691 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 46692 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 46693 new_path="$path" 46694 46695 windows_path="$new_path" 46696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46697 unix_path=`$CYGPATH -u "$windows_path"` 46698 new_path="$unix_path" 46699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46700 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46701 new_path="$unix_path" 46702 fi 46703 46704 fi 46705 46706 if test "x$new_path" = x; then 46707 # It's still not found. Now this is an unrecoverable error. 46708 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46709 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46710 has_space=`$ECHO "$complete" | $GREP " "` 46711 if test "x$has_space" != x; then 46712 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 46713 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 46714 fi 46715 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46716 fi 46717 fi 46718 46719 # Now new_path has a complete unix path to the binary 46720 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 46721 # Keep paths in /bin as-is, but remove trailing .exe if any 46722 new_path="${new_path/%.exe/}" 46723 # Do not save /bin paths to all_fixpath_prefixes! 46724 else 46725 # Not in mixed or Windows style, start by that. 46726 new_path=`cmd //c echo $new_path` 46727 46728 input_path="$new_path" 46729 # Check if we need to convert this using DOS-style short mode. If the path 46730 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46731 # take no chances and rewrite it. 46732 # Note: m4 eats our [], so we need to use [ and ] instead. 46733 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46734 if test "x$has_forbidden_chars" != x; then 46735 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46736 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46737 fi 46738 46739 # Output is in $new_path 46740 46741 windows_path="$new_path" 46742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46743 unix_path=`$CYGPATH -u "$windows_path"` 46744 new_path="$unix_path" 46745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46747 new_path="$unix_path" 46748 fi 46749 46750 # remove trailing .exe if any 46751 new_path="${new_path/%.exe/}" 46752 46753 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46754 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46755 fi 46756 46757 else 46758 # We're on a unix platform. Hooray! :) 46759 # First separate the path from the arguments. This will split at the first 46760 # space. 46761 complete="$BUILD_CXX" 46762 path="${complete%% *}" 46763 tmp="$complete EOL" 46764 arguments="${tmp#* }" 46765 46766 # Cannot rely on the command "which" here since it doesn't always work. 46767 is_absolute_path=`$ECHO "$path" | $GREP ^/` 46768 if test -z "$is_absolute_path"; then 46769 # Path to executable is not absolute. Find it. 46770 IFS_save="$IFS" 46771 IFS=: 46772 for p in $PATH; do 46773 if test -f "$p/$path" && test -x "$p/$path"; then 46774 new_path="$p/$path" 46775 break 46776 fi 46777 done 46778 IFS="$IFS_save" 46779 else 46780 # This is an absolute path, we can use it without further modifications. 46781 new_path="$path" 46782 fi 46783 46784 if test "x$new_path" = x; then 46785 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 46786 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 46787 has_space=`$ECHO "$complete" | $GREP " "` 46788 if test "x$has_space" != x; then 46789 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 46790 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 46791 fi 46792 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 46793 fi 46794 fi 46795 46796 # Now join together the path and the arguments once again 46797 if test "x$arguments" != xEOL; then 46798 new_complete="$new_path ${arguments% *}" 46799 else 46800 new_complete="$new_path" 46801 fi 46802 46803 if test "x$complete" != "x$new_complete"; then 46804 BUILD_CXX="$new_complete" 46805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 46806 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 46807 fi 46808 fi 46809 46810 46811 46812 # Publish this variable in the help. 46813 46814 46815 if [ -z "${BUILD_NM+x}" ]; then 46816 # The variable is not set by user, try to locate tool using the code snippet 46817 for ac_prog in nm gcc-nm 46818 do 46819 # Extract the first word of "$ac_prog", so it can be a program name with args. 46820 set dummy $ac_prog; ac_word=$2 46821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46822 $as_echo_n "checking for $ac_word... " >&6; } 46823 if ${ac_cv_path_BUILD_NM+:} false; then : 46824 $as_echo_n "(cached) " >&6 46825 else 46826 case $BUILD_NM in 46827 [\\/]* | ?:[\\/]*) 46828 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46829 ;; 46830 *) 46831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46832 for as_dir in $PATH 46833 do 46834 IFS=$as_save_IFS 46835 test -z "$as_dir" && as_dir=. 46836 for ac_exec_ext in '' $ac_executable_extensions; do 46837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46838 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46840 break 2 46841 fi 46842 done 46843 done 46844 IFS=$as_save_IFS 46845 46846 ;; 46847 esac 46848 fi 46849 BUILD_NM=$ac_cv_path_BUILD_NM 46850 if test -n "$BUILD_NM"; then 46851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46852 $as_echo "$BUILD_NM" >&6; } 46853 else 46854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46855 $as_echo "no" >&6; } 46856 fi 46857 46858 46859 test -n "$BUILD_NM" && break 46860 done 46861 46862 else 46863 # The variable is set, but is it from the command line or the environment? 46864 46865 # Try to remove the string !BUILD_NM! from our list. 46866 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_NM!/} 46867 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 46868 # If it failed, the variable was not from the command line. Ignore it, 46869 # but warn the user (except for BASH, which is always set by the calling BASH). 46870 if test "xBUILD_NM" != xBASH; then 46871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&5 46872 $as_echo "$as_me: WARNING: Ignoring value of BUILD_NM from the environment. Use command line variables instead." >&2;} 46873 fi 46874 # Try to locate tool using the code snippet 46875 for ac_prog in nm gcc-nm 46876 do 46877 # Extract the first word of "$ac_prog", so it can be a program name with args. 46878 set dummy $ac_prog; ac_word=$2 46879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46880 $as_echo_n "checking for $ac_word... " >&6; } 46881 if ${ac_cv_path_BUILD_NM+:} false; then : 46882 $as_echo_n "(cached) " >&6 46883 else 46884 case $BUILD_NM in 46885 [\\/]* | ?:[\\/]*) 46886 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46887 ;; 46888 *) 46889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46890 for as_dir in $PATH 46891 do 46892 IFS=$as_save_IFS 46893 test -z "$as_dir" && as_dir=. 46894 for ac_exec_ext in '' $ac_executable_extensions; do 46895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46896 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46898 break 2 46899 fi 46900 done 46901 done 46902 IFS=$as_save_IFS 46903 46904 ;; 46905 esac 46906 fi 46907 BUILD_NM=$ac_cv_path_BUILD_NM 46908 if test -n "$BUILD_NM"; then 46909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46910 $as_echo "$BUILD_NM" >&6; } 46911 else 46912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46913 $as_echo "no" >&6; } 46914 fi 46915 46916 46917 test -n "$BUILD_NM" && break 46918 done 46919 46920 else 46921 # If it succeeded, then it was overridden by the user. We will use it 46922 # for the tool. 46923 46924 # First remove it from the list of overridden variables, so we can test 46925 # for unknown variables in the end. 46926 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 46927 46928 # Check if we try to supply an empty value 46929 if test "x$BUILD_NM" = x; then 46930 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_NM= (no value)" >&5 46931 $as_echo "$as_me: Setting user supplied tool BUILD_NM= (no value)" >&6;} 46932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46933 $as_echo_n "checking for BUILD_NM... " >&6; } 46934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 46935 $as_echo "disabled" >&6; } 46936 else 46937 # Check if the provided tool contains a complete path. 46938 tool_specified="$BUILD_NM" 46939 tool_basename="${tool_specified##*/}" 46940 if test "x$tool_basename" = "x$tool_specified"; then 46941 # A command without a complete path is provided, search $PATH. 46942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_NM=$tool_basename" >&5 46943 $as_echo "$as_me: Will search for user supplied tool BUILD_NM=$tool_basename" >&6;} 46944 # Extract the first word of "$tool_basename", so it can be a program name with args. 46945 set dummy $tool_basename; ac_word=$2 46946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46947 $as_echo_n "checking for $ac_word... " >&6; } 46948 if ${ac_cv_path_BUILD_NM+:} false; then : 46949 $as_echo_n "(cached) " >&6 46950 else 46951 case $BUILD_NM in 46952 [\\/]* | ?:[\\/]*) 46953 ac_cv_path_BUILD_NM="$BUILD_NM" # Let the user override the test with a path. 46954 ;; 46955 *) 46956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46957 for as_dir in $PATH 46958 do 46959 IFS=$as_save_IFS 46960 test -z "$as_dir" && as_dir=. 46961 for ac_exec_ext in '' $ac_executable_extensions; do 46962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46963 ac_cv_path_BUILD_NM="$as_dir/$ac_word$ac_exec_ext" 46964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46965 break 2 46966 fi 46967 done 46968 done 46969 IFS=$as_save_IFS 46970 46971 ;; 46972 esac 46973 fi 46974 BUILD_NM=$ac_cv_path_BUILD_NM 46975 if test -n "$BUILD_NM"; then 46976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_NM" >&5 46977 $as_echo "$BUILD_NM" >&6; } 46978 else 46979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46980 $as_echo "no" >&6; } 46981 fi 46982 46983 46984 if test "x$BUILD_NM" = x; then 46985 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 46986 fi 46987 else 46988 # Otherwise we believe it is a complete path. Use it as it is. 46989 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_NM=$tool_specified" >&5 46990 $as_echo "$as_me: Will use user supplied tool BUILD_NM=$tool_specified" >&6;} 46991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_NM" >&5 46992 $as_echo_n "checking for BUILD_NM... " >&6; } 46993 if test ! -x "$tool_specified"; then 46994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 46995 $as_echo "not found" >&6; } 46996 as_fn_error $? "User supplied tool BUILD_NM=$tool_specified does not exist or is not executable" "$LINENO" 5 46997 fi 46998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 46999 $as_echo "$tool_specified" >&6; } 47000 fi 47001 fi 47002 fi 47003 47004 fi 47005 47006 47007 47008 # Only process if variable expands to non-empty 47009 47010 if test "x$BUILD_NM" != x; then 47011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47012 47013 # First separate the path from the arguments. This will split at the first 47014 # space. 47015 complete="$BUILD_NM" 47016 path="${complete%% *}" 47017 tmp="$complete EOL" 47018 arguments="${tmp#* }" 47019 47020 # Input might be given as Windows format, start by converting to 47021 # unix format. 47022 new_path=`$CYGPATH -u "$path"` 47023 47024 # Now try to locate executable using which 47025 new_path=`$WHICH "$new_path" 2> /dev/null` 47026 # bat and cmd files are not always considered executable in cygwin causing which 47027 # to not find them 47028 if test "x$new_path" = x \ 47029 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47030 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47031 new_path=`$CYGPATH -u "$path"` 47032 fi 47033 if test "x$new_path" = x; then 47034 # Oops. Which didn't find the executable. 47035 # The splitting of arguments from the executable at a space might have been incorrect, 47036 # since paths with space are more likely in Windows. Give it another try with the whole 47037 # argument. 47038 path="$complete" 47039 arguments="EOL" 47040 new_path=`$CYGPATH -u "$path"` 47041 new_path=`$WHICH "$new_path" 2> /dev/null` 47042 # bat and cmd files are not always considered executable in cygwin causing which 47043 # to not find them 47044 if test "x$new_path" = x \ 47045 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47046 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47047 new_path=`$CYGPATH -u "$path"` 47048 fi 47049 if test "x$new_path" = x; then 47050 # It's still not found. Now this is an unrecoverable error. 47051 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47052 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47053 has_space=`$ECHO "$complete" | $GREP " "` 47054 if test "x$has_space" != x; then 47055 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47056 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47057 fi 47058 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47059 fi 47060 fi 47061 47062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47065 # "foo.exe" is OK but "foo" is an error. 47066 # 47067 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47068 # It is also a way to make sure we got the proper file name for the real test later on. 47069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47070 if test "x$test_shortpath" = x; then 47071 # Short path failed, file does not exist as specified. 47072 # Try adding .exe or .cmd 47073 if test -f "${new_path}.exe"; then 47074 input_to_shortpath="${new_path}.exe" 47075 elif test -f "${new_path}.cmd"; then 47076 input_to_shortpath="${new_path}.cmd" 47077 else 47078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&5 47079 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$new_path\", is invalid." >&6;} 47080 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47081 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47082 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47083 fi 47084 else 47085 input_to_shortpath="$new_path" 47086 fi 47087 47088 # Call helper function which possibly converts this using DOS-style short mode. 47089 # If so, the updated path is stored in $new_path. 47090 new_path="$input_to_shortpath" 47091 47092 input_path="$input_to_shortpath" 47093 # Check if we need to convert this using DOS-style short mode. If the path 47094 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47095 # take no chances and rewrite it. 47096 # Note: m4 eats our [], so we need to use [ and ] instead. 47097 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47098 if test "x$has_forbidden_chars" != x; then 47099 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47100 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47101 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47102 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47103 # Going to short mode and back again did indeed matter. Since short mode is 47104 # case insensitive, let's make it lowercase to improve readability. 47105 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47106 # Now convert it back to Unix-style (cygpath) 47107 input_path=`$CYGPATH -u "$shortmode_path"` 47108 new_path="$input_path" 47109 fi 47110 fi 47111 47112 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47113 if test "x$test_cygdrive_prefix" = x; then 47114 # As a simple fix, exclude /usr/bin since it's not a real path. 47115 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47116 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47117 # a path prefixed by /cygdrive for fixpath to work. 47118 new_path="$CYGWIN_ROOT_PATH$input_path" 47119 fi 47120 fi 47121 47122 # remove trailing .exe if any 47123 new_path="${new_path/%.exe/}" 47124 47125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47126 47127 # First separate the path from the arguments. This will split at the first 47128 # space. 47129 complete="$BUILD_NM" 47130 path="${complete%% *}" 47131 tmp="$complete EOL" 47132 arguments="${tmp#* }" 47133 47134 # Input might be given as Windows format, start by converting to 47135 # unix format. 47136 new_path="$path" 47137 47138 windows_path="$new_path" 47139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47140 unix_path=`$CYGPATH -u "$windows_path"` 47141 new_path="$unix_path" 47142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47144 new_path="$unix_path" 47145 fi 47146 47147 47148 # Now try to locate executable using which 47149 new_path=`$WHICH "$new_path" 2> /dev/null` 47150 47151 if test "x$new_path" = x; then 47152 # Oops. Which didn't find the executable. 47153 # The splitting of arguments from the executable at a space might have been incorrect, 47154 # since paths with space are more likely in Windows. Give it another try with the whole 47155 # argument. 47156 path="$complete" 47157 arguments="EOL" 47158 new_path="$path" 47159 47160 windows_path="$new_path" 47161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47162 unix_path=`$CYGPATH -u "$windows_path"` 47163 new_path="$unix_path" 47164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47165 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47166 new_path="$unix_path" 47167 fi 47168 47169 47170 new_path=`$WHICH "$new_path" 2> /dev/null` 47171 # bat and cmd files are not always considered executable in MSYS causing which 47172 # to not find them 47173 if test "x$new_path" = x \ 47174 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47175 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47176 new_path="$path" 47177 47178 windows_path="$new_path" 47179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47180 unix_path=`$CYGPATH -u "$windows_path"` 47181 new_path="$unix_path" 47182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47184 new_path="$unix_path" 47185 fi 47186 47187 fi 47188 47189 if test "x$new_path" = x; then 47190 # It's still not found. Now this is an unrecoverable error. 47191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47192 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47193 has_space=`$ECHO "$complete" | $GREP " "` 47194 if test "x$has_space" != x; then 47195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47197 fi 47198 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47199 fi 47200 fi 47201 47202 # Now new_path has a complete unix path to the binary 47203 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47204 # Keep paths in /bin as-is, but remove trailing .exe if any 47205 new_path="${new_path/%.exe/}" 47206 # Do not save /bin paths to all_fixpath_prefixes! 47207 else 47208 # Not in mixed or Windows style, start by that. 47209 new_path=`cmd //c echo $new_path` 47210 47211 input_path="$new_path" 47212 # Check if we need to convert this using DOS-style short mode. If the path 47213 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47214 # take no chances and rewrite it. 47215 # Note: m4 eats our [], so we need to use [ and ] instead. 47216 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47217 if test "x$has_forbidden_chars" != x; then 47218 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47219 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47220 fi 47221 47222 # Output is in $new_path 47223 47224 windows_path="$new_path" 47225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47226 unix_path=`$CYGPATH -u "$windows_path"` 47227 new_path="$unix_path" 47228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47230 new_path="$unix_path" 47231 fi 47232 47233 # remove trailing .exe if any 47234 new_path="${new_path/%.exe/}" 47235 47236 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47237 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47238 fi 47239 47240 else 47241 # We're on a unix platform. Hooray! :) 47242 # First separate the path from the arguments. This will split at the first 47243 # space. 47244 complete="$BUILD_NM" 47245 path="${complete%% *}" 47246 tmp="$complete EOL" 47247 arguments="${tmp#* }" 47248 47249 # Cannot rely on the command "which" here since it doesn't always work. 47250 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47251 if test -z "$is_absolute_path"; then 47252 # Path to executable is not absolute. Find it. 47253 IFS_save="$IFS" 47254 IFS=: 47255 for p in $PATH; do 47256 if test -f "$p/$path" && test -x "$p/$path"; then 47257 new_path="$p/$path" 47258 break 47259 fi 47260 done 47261 IFS="$IFS_save" 47262 else 47263 # This is an absolute path, we can use it without further modifications. 47264 new_path="$path" 47265 fi 47266 47267 if test "x$new_path" = x; then 47268 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&5 47269 $as_echo "$as_me: The path of BUILD_NM, which resolves as \"$complete\", is not found." >&6;} 47270 has_space=`$ECHO "$complete" | $GREP " "` 47271 if test "x$has_space" != x; then 47272 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47273 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47274 fi 47275 as_fn_error $? "Cannot locate the the path of BUILD_NM" "$LINENO" 5 47276 fi 47277 fi 47278 47279 # Now join together the path and the arguments once again 47280 if test "x$arguments" != xEOL; then 47281 new_complete="$new_path ${arguments% *}" 47282 else 47283 new_complete="$new_path" 47284 fi 47285 47286 if test "x$complete" != "x$new_complete"; then 47287 BUILD_NM="$new_complete" 47288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_NM to \"$new_complete\"" >&5 47289 $as_echo "$as_me: Rewriting BUILD_NM to \"$new_complete\"" >&6;} 47290 fi 47291 fi 47292 47293 47294 47295 # Publish this variable in the help. 47296 47297 47298 if [ -z "${BUILD_AR+x}" ]; then 47299 # The variable is not set by user, try to locate tool using the code snippet 47300 for ac_prog in ar gcc-ar 47301 do 47302 # Extract the first word of "$ac_prog", so it can be a program name with args. 47303 set dummy $ac_prog; ac_word=$2 47304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47305 $as_echo_n "checking for $ac_word... " >&6; } 47306 if ${ac_cv_path_BUILD_AR+:} false; then : 47307 $as_echo_n "(cached) " >&6 47308 else 47309 case $BUILD_AR in 47310 [\\/]* | ?:[\\/]*) 47311 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47312 ;; 47313 *) 47314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47315 for as_dir in $PATH 47316 do 47317 IFS=$as_save_IFS 47318 test -z "$as_dir" && as_dir=. 47319 for ac_exec_ext in '' $ac_executable_extensions; do 47320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47321 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47323 break 2 47324 fi 47325 done 47326 done 47327 IFS=$as_save_IFS 47328 47329 ;; 47330 esac 47331 fi 47332 BUILD_AR=$ac_cv_path_BUILD_AR 47333 if test -n "$BUILD_AR"; then 47334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47335 $as_echo "$BUILD_AR" >&6; } 47336 else 47337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47338 $as_echo "no" >&6; } 47339 fi 47340 47341 47342 test -n "$BUILD_AR" && break 47343 done 47344 47345 else 47346 # The variable is set, but is it from the command line or the environment? 47347 47348 # Try to remove the string !BUILD_AR! from our list. 47349 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_AR!/} 47350 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47351 # If it failed, the variable was not from the command line. Ignore it, 47352 # but warn the user (except for BASH, which is always set by the calling BASH). 47353 if test "xBUILD_AR" != xBASH; then 47354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&5 47355 $as_echo "$as_me: WARNING: Ignoring value of BUILD_AR from the environment. Use command line variables instead." >&2;} 47356 fi 47357 # Try to locate tool using the code snippet 47358 for ac_prog in ar gcc-ar 47359 do 47360 # Extract the first word of "$ac_prog", so it can be a program name with args. 47361 set dummy $ac_prog; ac_word=$2 47362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47363 $as_echo_n "checking for $ac_word... " >&6; } 47364 if ${ac_cv_path_BUILD_AR+:} false; then : 47365 $as_echo_n "(cached) " >&6 47366 else 47367 case $BUILD_AR in 47368 [\\/]* | ?:[\\/]*) 47369 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47370 ;; 47371 *) 47372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47373 for as_dir in $PATH 47374 do 47375 IFS=$as_save_IFS 47376 test -z "$as_dir" && as_dir=. 47377 for ac_exec_ext in '' $ac_executable_extensions; do 47378 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47379 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47381 break 2 47382 fi 47383 done 47384 done 47385 IFS=$as_save_IFS 47386 47387 ;; 47388 esac 47389 fi 47390 BUILD_AR=$ac_cv_path_BUILD_AR 47391 if test -n "$BUILD_AR"; then 47392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47393 $as_echo "$BUILD_AR" >&6; } 47394 else 47395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47396 $as_echo "no" >&6; } 47397 fi 47398 47399 47400 test -n "$BUILD_AR" && break 47401 done 47402 47403 else 47404 # If it succeeded, then it was overridden by the user. We will use it 47405 # for the tool. 47406 47407 # First remove it from the list of overridden variables, so we can test 47408 # for unknown variables in the end. 47409 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47410 47411 # Check if we try to supply an empty value 47412 if test "x$BUILD_AR" = x; then 47413 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_AR= (no value)" >&5 47414 $as_echo "$as_me: Setting user supplied tool BUILD_AR= (no value)" >&6;} 47415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47416 $as_echo_n "checking for BUILD_AR... " >&6; } 47417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47418 $as_echo "disabled" >&6; } 47419 else 47420 # Check if the provided tool contains a complete path. 47421 tool_specified="$BUILD_AR" 47422 tool_basename="${tool_specified##*/}" 47423 if test "x$tool_basename" = "x$tool_specified"; then 47424 # A command without a complete path is provided, search $PATH. 47425 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_AR=$tool_basename" >&5 47426 $as_echo "$as_me: Will search for user supplied tool BUILD_AR=$tool_basename" >&6;} 47427 # Extract the first word of "$tool_basename", so it can be a program name with args. 47428 set dummy $tool_basename; ac_word=$2 47429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47430 $as_echo_n "checking for $ac_word... " >&6; } 47431 if ${ac_cv_path_BUILD_AR+:} false; then : 47432 $as_echo_n "(cached) " >&6 47433 else 47434 case $BUILD_AR in 47435 [\\/]* | ?:[\\/]*) 47436 ac_cv_path_BUILD_AR="$BUILD_AR" # Let the user override the test with a path. 47437 ;; 47438 *) 47439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47440 for as_dir in $PATH 47441 do 47442 IFS=$as_save_IFS 47443 test -z "$as_dir" && as_dir=. 47444 for ac_exec_ext in '' $ac_executable_extensions; do 47445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47446 ac_cv_path_BUILD_AR="$as_dir/$ac_word$ac_exec_ext" 47447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47448 break 2 47449 fi 47450 done 47451 done 47452 IFS=$as_save_IFS 47453 47454 ;; 47455 esac 47456 fi 47457 BUILD_AR=$ac_cv_path_BUILD_AR 47458 if test -n "$BUILD_AR"; then 47459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_AR" >&5 47460 $as_echo "$BUILD_AR" >&6; } 47461 else 47462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47463 $as_echo "no" >&6; } 47464 fi 47465 47466 47467 if test "x$BUILD_AR" = x; then 47468 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47469 fi 47470 else 47471 # Otherwise we believe it is a complete path. Use it as it is. 47472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_AR=$tool_specified" >&5 47473 $as_echo "$as_me: Will use user supplied tool BUILD_AR=$tool_specified" >&6;} 47474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_AR" >&5 47475 $as_echo_n "checking for BUILD_AR... " >&6; } 47476 if test ! -x "$tool_specified"; then 47477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47478 $as_echo "not found" >&6; } 47479 as_fn_error $? "User supplied tool BUILD_AR=$tool_specified does not exist or is not executable" "$LINENO" 5 47480 fi 47481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47482 $as_echo "$tool_specified" >&6; } 47483 fi 47484 fi 47485 fi 47486 47487 fi 47488 47489 47490 47491 # Only process if variable expands to non-empty 47492 47493 if test "x$BUILD_AR" != x; then 47494 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47495 47496 # First separate the path from the arguments. This will split at the first 47497 # space. 47498 complete="$BUILD_AR" 47499 path="${complete%% *}" 47500 tmp="$complete EOL" 47501 arguments="${tmp#* }" 47502 47503 # Input might be given as Windows format, start by converting to 47504 # unix format. 47505 new_path=`$CYGPATH -u "$path"` 47506 47507 # Now try to locate executable using which 47508 new_path=`$WHICH "$new_path" 2> /dev/null` 47509 # bat and cmd files are not always considered executable in cygwin causing which 47510 # to not find them 47511 if test "x$new_path" = x \ 47512 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47513 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47514 new_path=`$CYGPATH -u "$path"` 47515 fi 47516 if test "x$new_path" = x; then 47517 # Oops. Which didn't find the executable. 47518 # The splitting of arguments from the executable at a space might have been incorrect, 47519 # since paths with space are more likely in Windows. Give it another try with the whole 47520 # argument. 47521 path="$complete" 47522 arguments="EOL" 47523 new_path=`$CYGPATH -u "$path"` 47524 new_path=`$WHICH "$new_path" 2> /dev/null` 47525 # bat and cmd files are not always considered executable in cygwin causing which 47526 # to not find them 47527 if test "x$new_path" = x \ 47528 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47529 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47530 new_path=`$CYGPATH -u "$path"` 47531 fi 47532 if test "x$new_path" = x; then 47533 # It's still not found. Now this is an unrecoverable error. 47534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47535 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47536 has_space=`$ECHO "$complete" | $GREP " "` 47537 if test "x$has_space" != x; then 47538 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47539 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47540 fi 47541 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47542 fi 47543 fi 47544 47545 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47546 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47547 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47548 # "foo.exe" is OK but "foo" is an error. 47549 # 47550 # This test is therefore slightly more accurate than "test -f" to check for file presence. 47551 # It is also a way to make sure we got the proper file name for the real test later on. 47552 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47553 if test "x$test_shortpath" = x; then 47554 # Short path failed, file does not exist as specified. 47555 # Try adding .exe or .cmd 47556 if test -f "${new_path}.exe"; then 47557 input_to_shortpath="${new_path}.exe" 47558 elif test -f "${new_path}.cmd"; then 47559 input_to_shortpath="${new_path}.cmd" 47560 else 47561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&5 47562 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$new_path\", is invalid." >&6;} 47563 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 47564 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 47565 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47566 fi 47567 else 47568 input_to_shortpath="$new_path" 47569 fi 47570 47571 # Call helper function which possibly converts this using DOS-style short mode. 47572 # If so, the updated path is stored in $new_path. 47573 new_path="$input_to_shortpath" 47574 47575 input_path="$input_to_shortpath" 47576 # Check if we need to convert this using DOS-style short mode. If the path 47577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47578 # take no chances and rewrite it. 47579 # Note: m4 eats our [], so we need to use [ and ] instead. 47580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47581 if test "x$has_forbidden_chars" != x; then 47582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47583 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47584 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47585 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47586 # Going to short mode and back again did indeed matter. Since short mode is 47587 # case insensitive, let's make it lowercase to improve readability. 47588 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47589 # Now convert it back to Unix-style (cygpath) 47590 input_path=`$CYGPATH -u "$shortmode_path"` 47591 new_path="$input_path" 47592 fi 47593 fi 47594 47595 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47596 if test "x$test_cygdrive_prefix" = x; then 47597 # As a simple fix, exclude /usr/bin since it's not a real path. 47598 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 47599 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47600 # a path prefixed by /cygdrive for fixpath to work. 47601 new_path="$CYGWIN_ROOT_PATH$input_path" 47602 fi 47603 fi 47604 47605 # remove trailing .exe if any 47606 new_path="${new_path/%.exe/}" 47607 47608 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47609 47610 # First separate the path from the arguments. This will split at the first 47611 # space. 47612 complete="$BUILD_AR" 47613 path="${complete%% *}" 47614 tmp="$complete EOL" 47615 arguments="${tmp#* }" 47616 47617 # Input might be given as Windows format, start by converting to 47618 # unix format. 47619 new_path="$path" 47620 47621 windows_path="$new_path" 47622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47623 unix_path=`$CYGPATH -u "$windows_path"` 47624 new_path="$unix_path" 47625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47627 new_path="$unix_path" 47628 fi 47629 47630 47631 # Now try to locate executable using which 47632 new_path=`$WHICH "$new_path" 2> /dev/null` 47633 47634 if test "x$new_path" = x; then 47635 # Oops. Which didn't find the executable. 47636 # The splitting of arguments from the executable at a space might have been incorrect, 47637 # since paths with space are more likely in Windows. Give it another try with the whole 47638 # argument. 47639 path="$complete" 47640 arguments="EOL" 47641 new_path="$path" 47642 47643 windows_path="$new_path" 47644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47645 unix_path=`$CYGPATH -u "$windows_path"` 47646 new_path="$unix_path" 47647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47649 new_path="$unix_path" 47650 fi 47651 47652 47653 new_path=`$WHICH "$new_path" 2> /dev/null` 47654 # bat and cmd files are not always considered executable in MSYS causing which 47655 # to not find them 47656 if test "x$new_path" = x \ 47657 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47658 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47659 new_path="$path" 47660 47661 windows_path="$new_path" 47662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47663 unix_path=`$CYGPATH -u "$windows_path"` 47664 new_path="$unix_path" 47665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47667 new_path="$unix_path" 47668 fi 47669 47670 fi 47671 47672 if test "x$new_path" = x; then 47673 # It's still not found. Now this is an unrecoverable error. 47674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47675 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47676 has_space=`$ECHO "$complete" | $GREP " "` 47677 if test "x$has_space" != x; then 47678 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 47679 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 47680 fi 47681 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47682 fi 47683 fi 47684 47685 # Now new_path has a complete unix path to the binary 47686 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 47687 # Keep paths in /bin as-is, but remove trailing .exe if any 47688 new_path="${new_path/%.exe/}" 47689 # Do not save /bin paths to all_fixpath_prefixes! 47690 else 47691 # Not in mixed or Windows style, start by that. 47692 new_path=`cmd //c echo $new_path` 47693 47694 input_path="$new_path" 47695 # Check if we need to convert this using DOS-style short mode. If the path 47696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47697 # take no chances and rewrite it. 47698 # Note: m4 eats our [], so we need to use [ and ] instead. 47699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47700 if test "x$has_forbidden_chars" != x; then 47701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47702 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47703 fi 47704 47705 # Output is in $new_path 47706 47707 windows_path="$new_path" 47708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47709 unix_path=`$CYGPATH -u "$windows_path"` 47710 new_path="$unix_path" 47711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47713 new_path="$unix_path" 47714 fi 47715 47716 # remove trailing .exe if any 47717 new_path="${new_path/%.exe/}" 47718 47719 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47720 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47721 fi 47722 47723 else 47724 # We're on a unix platform. Hooray! :) 47725 # First separate the path from the arguments. This will split at the first 47726 # space. 47727 complete="$BUILD_AR" 47728 path="${complete%% *}" 47729 tmp="$complete EOL" 47730 arguments="${tmp#* }" 47731 47732 # Cannot rely on the command "which" here since it doesn't always work. 47733 is_absolute_path=`$ECHO "$path" | $GREP ^/` 47734 if test -z "$is_absolute_path"; then 47735 # Path to executable is not absolute. Find it. 47736 IFS_save="$IFS" 47737 IFS=: 47738 for p in $PATH; do 47739 if test -f "$p/$path" && test -x "$p/$path"; then 47740 new_path="$p/$path" 47741 break 47742 fi 47743 done 47744 IFS="$IFS_save" 47745 else 47746 # This is an absolute path, we can use it without further modifications. 47747 new_path="$path" 47748 fi 47749 47750 if test "x$new_path" = x; then 47751 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&5 47752 $as_echo "$as_me: The path of BUILD_AR, which resolves as \"$complete\", is not found." >&6;} 47753 has_space=`$ECHO "$complete" | $GREP " "` 47754 if test "x$has_space" != x; then 47755 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 47756 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 47757 fi 47758 as_fn_error $? "Cannot locate the the path of BUILD_AR" "$LINENO" 5 47759 fi 47760 fi 47761 47762 # Now join together the path and the arguments once again 47763 if test "x$arguments" != xEOL; then 47764 new_complete="$new_path ${arguments% *}" 47765 else 47766 new_complete="$new_path" 47767 fi 47768 47769 if test "x$complete" != "x$new_complete"; then 47770 BUILD_AR="$new_complete" 47771 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_AR to \"$new_complete\"" >&5 47772 $as_echo "$as_me: Rewriting BUILD_AR to \"$new_complete\"" >&6;} 47773 fi 47774 fi 47775 47776 47777 47778 # Publish this variable in the help. 47779 47780 47781 if [ -z "${BUILD_OBJCOPY+x}" ]; then 47782 # The variable is not set by user, try to locate tool using the code snippet 47783 for ac_prog in objcopy 47784 do 47785 # Extract the first word of "$ac_prog", so it can be a program name with args. 47786 set dummy $ac_prog; ac_word=$2 47787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47788 $as_echo_n "checking for $ac_word... " >&6; } 47789 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47790 $as_echo_n "(cached) " >&6 47791 else 47792 case $BUILD_OBJCOPY in 47793 [\\/]* | ?:[\\/]*) 47794 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47795 ;; 47796 *) 47797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47798 for as_dir in $PATH 47799 do 47800 IFS=$as_save_IFS 47801 test -z "$as_dir" && as_dir=. 47802 for ac_exec_ext in '' $ac_executable_extensions; do 47803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47804 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47806 break 2 47807 fi 47808 done 47809 done 47810 IFS=$as_save_IFS 47811 47812 ;; 47813 esac 47814 fi 47815 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47816 if test -n "$BUILD_OBJCOPY"; then 47817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47818 $as_echo "$BUILD_OBJCOPY" >&6; } 47819 else 47820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47821 $as_echo "no" >&6; } 47822 fi 47823 47824 47825 test -n "$BUILD_OBJCOPY" && break 47826 done 47827 47828 else 47829 # The variable is set, but is it from the command line or the environment? 47830 47831 # Try to remove the string !BUILD_OBJCOPY! from our list. 47832 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_OBJCOPY!/} 47833 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47834 # If it failed, the variable was not from the command line. Ignore it, 47835 # but warn the user (except for BASH, which is always set by the calling BASH). 47836 if test "xBUILD_OBJCOPY" != xBASH; then 47837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&5 47838 $as_echo "$as_me: WARNING: Ignoring value of BUILD_OBJCOPY from the environment. Use command line variables instead." >&2;} 47839 fi 47840 # Try to locate tool using the code snippet 47841 for ac_prog in objcopy 47842 do 47843 # Extract the first word of "$ac_prog", so it can be a program name with args. 47844 set dummy $ac_prog; ac_word=$2 47845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47846 $as_echo_n "checking for $ac_word... " >&6; } 47847 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47848 $as_echo_n "(cached) " >&6 47849 else 47850 case $BUILD_OBJCOPY in 47851 [\\/]* | ?:[\\/]*) 47852 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47853 ;; 47854 *) 47855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47856 for as_dir in $PATH 47857 do 47858 IFS=$as_save_IFS 47859 test -z "$as_dir" && as_dir=. 47860 for ac_exec_ext in '' $ac_executable_extensions; do 47861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47862 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47864 break 2 47865 fi 47866 done 47867 done 47868 IFS=$as_save_IFS 47869 47870 ;; 47871 esac 47872 fi 47873 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47874 if test -n "$BUILD_OBJCOPY"; then 47875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47876 $as_echo "$BUILD_OBJCOPY" >&6; } 47877 else 47878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47879 $as_echo "no" >&6; } 47880 fi 47881 47882 47883 test -n "$BUILD_OBJCOPY" && break 47884 done 47885 47886 else 47887 # If it succeeded, then it was overridden by the user. We will use it 47888 # for the tool. 47889 47890 # First remove it from the list of overridden variables, so we can test 47891 # for unknown variables in the end. 47892 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47893 47894 # Check if we try to supply an empty value 47895 if test "x$BUILD_OBJCOPY" = x; then 47896 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&5 47897 $as_echo "$as_me: Setting user supplied tool BUILD_OBJCOPY= (no value)" >&6;} 47898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47899 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 47901 $as_echo "disabled" >&6; } 47902 else 47903 # Check if the provided tool contains a complete path. 47904 tool_specified="$BUILD_OBJCOPY" 47905 tool_basename="${tool_specified##*/}" 47906 if test "x$tool_basename" = "x$tool_specified"; then 47907 # A command without a complete path is provided, search $PATH. 47908 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&5 47909 $as_echo "$as_me: Will search for user supplied tool BUILD_OBJCOPY=$tool_basename" >&6;} 47910 # Extract the first word of "$tool_basename", so it can be a program name with args. 47911 set dummy $tool_basename; ac_word=$2 47912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47913 $as_echo_n "checking for $ac_word... " >&6; } 47914 if ${ac_cv_path_BUILD_OBJCOPY+:} false; then : 47915 $as_echo_n "(cached) " >&6 47916 else 47917 case $BUILD_OBJCOPY in 47918 [\\/]* | ?:[\\/]*) 47919 ac_cv_path_BUILD_OBJCOPY="$BUILD_OBJCOPY" # Let the user override the test with a path. 47920 ;; 47921 *) 47922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47923 for as_dir in $PATH 47924 do 47925 IFS=$as_save_IFS 47926 test -z "$as_dir" && as_dir=. 47927 for ac_exec_ext in '' $ac_executable_extensions; do 47928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47929 ac_cv_path_BUILD_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 47930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47931 break 2 47932 fi 47933 done 47934 done 47935 IFS=$as_save_IFS 47936 47937 ;; 47938 esac 47939 fi 47940 BUILD_OBJCOPY=$ac_cv_path_BUILD_OBJCOPY 47941 if test -n "$BUILD_OBJCOPY"; then 47942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_OBJCOPY" >&5 47943 $as_echo "$BUILD_OBJCOPY" >&6; } 47944 else 47945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47946 $as_echo "no" >&6; } 47947 fi 47948 47949 47950 if test "x$BUILD_OBJCOPY" = x; then 47951 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47952 fi 47953 else 47954 # Otherwise we believe it is a complete path. Use it as it is. 47955 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&5 47956 $as_echo "$as_me: Will use user supplied tool BUILD_OBJCOPY=$tool_specified" >&6;} 47957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_OBJCOPY" >&5 47958 $as_echo_n "checking for BUILD_OBJCOPY... " >&6; } 47959 if test ! -x "$tool_specified"; then 47960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47961 $as_echo "not found" >&6; } 47962 as_fn_error $? "User supplied tool BUILD_OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 47963 fi 47964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47965 $as_echo "$tool_specified" >&6; } 47966 fi 47967 fi 47968 fi 47969 47970 fi 47971 47972 47973 47974 # Only process if variable expands to non-empty 47975 47976 if test "x$BUILD_OBJCOPY" != x; then 47977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47978 47979 # First separate the path from the arguments. This will split at the first 47980 # space. 47981 complete="$BUILD_OBJCOPY" 47982 path="${complete%% *}" 47983 tmp="$complete EOL" 47984 arguments="${tmp#* }" 47985 47986 # Input might be given as Windows format, start by converting to 47987 # unix format. 47988 new_path=`$CYGPATH -u "$path"` 47989 47990 # Now try to locate executable using which 47991 new_path=`$WHICH "$new_path" 2> /dev/null` 47992 # bat and cmd files are not always considered executable in cygwin causing which 47993 # to not find them 47994 if test "x$new_path" = x \ 47995 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 47996 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 47997 new_path=`$CYGPATH -u "$path"` 47998 fi 47999 if test "x$new_path" = x; then 48000 # Oops. Which didn't find the executable. 48001 # The splitting of arguments from the executable at a space might have been incorrect, 48002 # since paths with space are more likely in Windows. Give it another try with the whole 48003 # argument. 48004 path="$complete" 48005 arguments="EOL" 48006 new_path=`$CYGPATH -u "$path"` 48007 new_path=`$WHICH "$new_path" 2> /dev/null` 48008 # bat and cmd files are not always considered executable in cygwin causing which 48009 # to not find them 48010 if test "x$new_path" = x \ 48011 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48012 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48013 new_path=`$CYGPATH -u "$path"` 48014 fi 48015 if test "x$new_path" = x; then 48016 # It's still not found. Now this is an unrecoverable error. 48017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48018 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48019 has_space=`$ECHO "$complete" | $GREP " "` 48020 if test "x$has_space" != x; then 48021 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48023 fi 48024 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48025 fi 48026 fi 48027 48028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48031 # "foo.exe" is OK but "foo" is an error. 48032 # 48033 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48034 # It is also a way to make sure we got the proper file name for the real test later on. 48035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48036 if test "x$test_shortpath" = x; then 48037 # Short path failed, file does not exist as specified. 48038 # Try adding .exe or .cmd 48039 if test -f "${new_path}.exe"; then 48040 input_to_shortpath="${new_path}.exe" 48041 elif test -f "${new_path}.cmd"; then 48042 input_to_shortpath="${new_path}.cmd" 48043 else 48044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 48045 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 48046 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48047 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48048 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48049 fi 48050 else 48051 input_to_shortpath="$new_path" 48052 fi 48053 48054 # Call helper function which possibly converts this using DOS-style short mode. 48055 # If so, the updated path is stored in $new_path. 48056 new_path="$input_to_shortpath" 48057 48058 input_path="$input_to_shortpath" 48059 # Check if we need to convert this using DOS-style short mode. If the path 48060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48061 # take no chances and rewrite it. 48062 # Note: m4 eats our [], so we need to use [ and ] instead. 48063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48064 if test "x$has_forbidden_chars" != x; then 48065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48066 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48067 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48068 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48069 # Going to short mode and back again did indeed matter. Since short mode is 48070 # case insensitive, let's make it lowercase to improve readability. 48071 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48072 # Now convert it back to Unix-style (cygpath) 48073 input_path=`$CYGPATH -u "$shortmode_path"` 48074 new_path="$input_path" 48075 fi 48076 fi 48077 48078 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48079 if test "x$test_cygdrive_prefix" = x; then 48080 # As a simple fix, exclude /usr/bin since it's not a real path. 48081 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48082 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48083 # a path prefixed by /cygdrive for fixpath to work. 48084 new_path="$CYGWIN_ROOT_PATH$input_path" 48085 fi 48086 fi 48087 48088 # remove trailing .exe if any 48089 new_path="${new_path/%.exe/}" 48090 48091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48092 48093 # First separate the path from the arguments. This will split at the first 48094 # space. 48095 complete="$BUILD_OBJCOPY" 48096 path="${complete%% *}" 48097 tmp="$complete EOL" 48098 arguments="${tmp#* }" 48099 48100 # Input might be given as Windows format, start by converting to 48101 # unix format. 48102 new_path="$path" 48103 48104 windows_path="$new_path" 48105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48106 unix_path=`$CYGPATH -u "$windows_path"` 48107 new_path="$unix_path" 48108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48110 new_path="$unix_path" 48111 fi 48112 48113 48114 # Now try to locate executable using which 48115 new_path=`$WHICH "$new_path" 2> /dev/null` 48116 48117 if test "x$new_path" = x; then 48118 # Oops. Which didn't find the executable. 48119 # The splitting of arguments from the executable at a space might have been incorrect, 48120 # since paths with space are more likely in Windows. Give it another try with the whole 48121 # argument. 48122 path="$complete" 48123 arguments="EOL" 48124 new_path="$path" 48125 48126 windows_path="$new_path" 48127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48128 unix_path=`$CYGPATH -u "$windows_path"` 48129 new_path="$unix_path" 48130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48132 new_path="$unix_path" 48133 fi 48134 48135 48136 new_path=`$WHICH "$new_path" 2> /dev/null` 48137 # bat and cmd files are not always considered executable in MSYS causing which 48138 # to not find them 48139 if test "x$new_path" = x \ 48140 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48141 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48142 new_path="$path" 48143 48144 windows_path="$new_path" 48145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48146 unix_path=`$CYGPATH -u "$windows_path"` 48147 new_path="$unix_path" 48148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48150 new_path="$unix_path" 48151 fi 48152 48153 fi 48154 48155 if test "x$new_path" = x; then 48156 # It's still not found. Now this is an unrecoverable error. 48157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48158 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48159 has_space=`$ECHO "$complete" | $GREP " "` 48160 if test "x$has_space" != x; then 48161 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48162 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48163 fi 48164 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48165 fi 48166 fi 48167 48168 # Now new_path has a complete unix path to the binary 48169 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48170 # Keep paths in /bin as-is, but remove trailing .exe if any 48171 new_path="${new_path/%.exe/}" 48172 # Do not save /bin paths to all_fixpath_prefixes! 48173 else 48174 # Not in mixed or Windows style, start by that. 48175 new_path=`cmd //c echo $new_path` 48176 48177 input_path="$new_path" 48178 # Check if we need to convert this using DOS-style short mode. If the path 48179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48180 # take no chances and rewrite it. 48181 # Note: m4 eats our [], so we need to use [ and ] instead. 48182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48183 if test "x$has_forbidden_chars" != x; then 48184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48185 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48186 fi 48187 48188 # Output is in $new_path 48189 48190 windows_path="$new_path" 48191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48192 unix_path=`$CYGPATH -u "$windows_path"` 48193 new_path="$unix_path" 48194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48195 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48196 new_path="$unix_path" 48197 fi 48198 48199 # remove trailing .exe if any 48200 new_path="${new_path/%.exe/}" 48201 48202 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48203 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48204 fi 48205 48206 else 48207 # We're on a unix platform. Hooray! :) 48208 # First separate the path from the arguments. This will split at the first 48209 # space. 48210 complete="$BUILD_OBJCOPY" 48211 path="${complete%% *}" 48212 tmp="$complete EOL" 48213 arguments="${tmp#* }" 48214 48215 # Cannot rely on the command "which" here since it doesn't always work. 48216 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48217 if test -z "$is_absolute_path"; then 48218 # Path to executable is not absolute. Find it. 48219 IFS_save="$IFS" 48220 IFS=: 48221 for p in $PATH; do 48222 if test -f "$p/$path" && test -x "$p/$path"; then 48223 new_path="$p/$path" 48224 break 48225 fi 48226 done 48227 IFS="$IFS_save" 48228 else 48229 # This is an absolute path, we can use it without further modifications. 48230 new_path="$path" 48231 fi 48232 48233 if test "x$new_path" = x; then 48234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&5 48235 $as_echo "$as_me: The path of BUILD_OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 48236 has_space=`$ECHO "$complete" | $GREP " "` 48237 if test "x$has_space" != x; then 48238 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48239 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48240 fi 48241 as_fn_error $? "Cannot locate the the path of BUILD_OBJCOPY" "$LINENO" 5 48242 fi 48243 fi 48244 48245 # Now join together the path and the arguments once again 48246 if test "x$arguments" != xEOL; then 48247 new_complete="$new_path ${arguments% *}" 48248 else 48249 new_complete="$new_path" 48250 fi 48251 48252 if test "x$complete" != "x$new_complete"; then 48253 BUILD_OBJCOPY="$new_complete" 48254 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&5 48255 $as_echo "$as_me: Rewriting BUILD_OBJCOPY to \"$new_complete\"" >&6;} 48256 fi 48257 fi 48258 48259 48260 48261 # Publish this variable in the help. 48262 48263 48264 if [ -z "${BUILD_STRIP+x}" ]; then 48265 # The variable is not set by user, try to locate tool using the code snippet 48266 for ac_prog in strip 48267 do 48268 # Extract the first word of "$ac_prog", so it can be a program name with args. 48269 set dummy $ac_prog; ac_word=$2 48270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48271 $as_echo_n "checking for $ac_word... " >&6; } 48272 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48273 $as_echo_n "(cached) " >&6 48274 else 48275 case $BUILD_STRIP in 48276 [\\/]* | ?:[\\/]*) 48277 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48278 ;; 48279 *) 48280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48281 for as_dir in $PATH 48282 do 48283 IFS=$as_save_IFS 48284 test -z "$as_dir" && as_dir=. 48285 for ac_exec_ext in '' $ac_executable_extensions; do 48286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48287 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48289 break 2 48290 fi 48291 done 48292 done 48293 IFS=$as_save_IFS 48294 48295 ;; 48296 esac 48297 fi 48298 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48299 if test -n "$BUILD_STRIP"; then 48300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48301 $as_echo "$BUILD_STRIP" >&6; } 48302 else 48303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48304 $as_echo "no" >&6; } 48305 fi 48306 48307 48308 test -n "$BUILD_STRIP" && break 48309 done 48310 48311 else 48312 # The variable is set, but is it from the command line or the environment? 48313 48314 # Try to remove the string !BUILD_STRIP! from our list. 48315 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_STRIP!/} 48316 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48317 # If it failed, the variable was not from the command line. Ignore it, 48318 # but warn the user (except for BASH, which is always set by the calling BASH). 48319 if test "xBUILD_STRIP" != xBASH; then 48320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&5 48321 $as_echo "$as_me: WARNING: Ignoring value of BUILD_STRIP from the environment. Use command line variables instead." >&2;} 48322 fi 48323 # Try to locate tool using the code snippet 48324 for ac_prog in strip 48325 do 48326 # Extract the first word of "$ac_prog", so it can be a program name with args. 48327 set dummy $ac_prog; ac_word=$2 48328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48329 $as_echo_n "checking for $ac_word... " >&6; } 48330 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48331 $as_echo_n "(cached) " >&6 48332 else 48333 case $BUILD_STRIP in 48334 [\\/]* | ?:[\\/]*) 48335 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48336 ;; 48337 *) 48338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48339 for as_dir in $PATH 48340 do 48341 IFS=$as_save_IFS 48342 test -z "$as_dir" && as_dir=. 48343 for ac_exec_ext in '' $ac_executable_extensions; do 48344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48345 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48347 break 2 48348 fi 48349 done 48350 done 48351 IFS=$as_save_IFS 48352 48353 ;; 48354 esac 48355 fi 48356 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48357 if test -n "$BUILD_STRIP"; then 48358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48359 $as_echo "$BUILD_STRIP" >&6; } 48360 else 48361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48362 $as_echo "no" >&6; } 48363 fi 48364 48365 48366 test -n "$BUILD_STRIP" && break 48367 done 48368 48369 else 48370 # If it succeeded, then it was overridden by the user. We will use it 48371 # for the tool. 48372 48373 # First remove it from the list of overridden variables, so we can test 48374 # for unknown variables in the end. 48375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48376 48377 # Check if we try to supply an empty value 48378 if test "x$BUILD_STRIP" = x; then 48379 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool BUILD_STRIP= (no value)" >&5 48380 $as_echo "$as_me: Setting user supplied tool BUILD_STRIP= (no value)" >&6;} 48381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48382 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 48384 $as_echo "disabled" >&6; } 48385 else 48386 # Check if the provided tool contains a complete path. 48387 tool_specified="$BUILD_STRIP" 48388 tool_basename="${tool_specified##*/}" 48389 if test "x$tool_basename" = "x$tool_specified"; then 48390 # A command without a complete path is provided, search $PATH. 48391 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&5 48392 $as_echo "$as_me: Will search for user supplied tool BUILD_STRIP=$tool_basename" >&6;} 48393 # Extract the first word of "$tool_basename", so it can be a program name with args. 48394 set dummy $tool_basename; ac_word=$2 48395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48396 $as_echo_n "checking for $ac_word... " >&6; } 48397 if ${ac_cv_path_BUILD_STRIP+:} false; then : 48398 $as_echo_n "(cached) " >&6 48399 else 48400 case $BUILD_STRIP in 48401 [\\/]* | ?:[\\/]*) 48402 ac_cv_path_BUILD_STRIP="$BUILD_STRIP" # Let the user override the test with a path. 48403 ;; 48404 *) 48405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48406 for as_dir in $PATH 48407 do 48408 IFS=$as_save_IFS 48409 test -z "$as_dir" && as_dir=. 48410 for ac_exec_ext in '' $ac_executable_extensions; do 48411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48412 ac_cv_path_BUILD_STRIP="$as_dir/$ac_word$ac_exec_ext" 48413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48414 break 2 48415 fi 48416 done 48417 done 48418 IFS=$as_save_IFS 48419 48420 ;; 48421 esac 48422 fi 48423 BUILD_STRIP=$ac_cv_path_BUILD_STRIP 48424 if test -n "$BUILD_STRIP"; then 48425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_STRIP" >&5 48426 $as_echo "$BUILD_STRIP" >&6; } 48427 else 48428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48429 $as_echo "no" >&6; } 48430 fi 48431 48432 48433 if test "x$BUILD_STRIP" = x; then 48434 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48435 fi 48436 else 48437 # Otherwise we believe it is a complete path. Use it as it is. 48438 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_STRIP=$tool_specified" >&5 48439 $as_echo "$as_me: Will use user supplied tool BUILD_STRIP=$tool_specified" >&6;} 48440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_STRIP" >&5 48441 $as_echo_n "checking for BUILD_STRIP... " >&6; } 48442 if test ! -x "$tool_specified"; then 48443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48444 $as_echo "not found" >&6; } 48445 as_fn_error $? "User supplied tool BUILD_STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 48446 fi 48447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48448 $as_echo "$tool_specified" >&6; } 48449 fi 48450 fi 48451 fi 48452 48453 fi 48454 48455 48456 48457 # Only process if variable expands to non-empty 48458 48459 if test "x$BUILD_STRIP" != x; then 48460 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48461 48462 # First separate the path from the arguments. This will split at the first 48463 # space. 48464 complete="$BUILD_STRIP" 48465 path="${complete%% *}" 48466 tmp="$complete EOL" 48467 arguments="${tmp#* }" 48468 48469 # Input might be given as Windows format, start by converting to 48470 # unix format. 48471 new_path=`$CYGPATH -u "$path"` 48472 48473 # Now try to locate executable using which 48474 new_path=`$WHICH "$new_path" 2> /dev/null` 48475 # bat and cmd files are not always considered executable in cygwin causing which 48476 # to not find them 48477 if test "x$new_path" = x \ 48478 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48479 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48480 new_path=`$CYGPATH -u "$path"` 48481 fi 48482 if test "x$new_path" = x; then 48483 # Oops. Which didn't find the executable. 48484 # The splitting of arguments from the executable at a space might have been incorrect, 48485 # since paths with space are more likely in Windows. Give it another try with the whole 48486 # argument. 48487 path="$complete" 48488 arguments="EOL" 48489 new_path=`$CYGPATH -u "$path"` 48490 new_path=`$WHICH "$new_path" 2> /dev/null` 48491 # bat and cmd files are not always considered executable in cygwin causing which 48492 # to not find them 48493 if test "x$new_path" = x \ 48494 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48495 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48496 new_path=`$CYGPATH -u "$path"` 48497 fi 48498 if test "x$new_path" = x; then 48499 # It's still not found. Now this is an unrecoverable error. 48500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48501 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48502 has_space=`$ECHO "$complete" | $GREP " "` 48503 if test "x$has_space" != x; then 48504 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48506 fi 48507 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48508 fi 48509 fi 48510 48511 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48512 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48513 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48514 # "foo.exe" is OK but "foo" is an error. 48515 # 48516 # This test is therefore slightly more accurate than "test -f" to check for file presence. 48517 # It is also a way to make sure we got the proper file name for the real test later on. 48518 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48519 if test "x$test_shortpath" = x; then 48520 # Short path failed, file does not exist as specified. 48521 # Try adding .exe or .cmd 48522 if test -f "${new_path}.exe"; then 48523 input_to_shortpath="${new_path}.exe" 48524 elif test -f "${new_path}.cmd"; then 48525 input_to_shortpath="${new_path}.cmd" 48526 else 48527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&5 48528 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$new_path\", is invalid." >&6;} 48529 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 48530 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 48531 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48532 fi 48533 else 48534 input_to_shortpath="$new_path" 48535 fi 48536 48537 # Call helper function which possibly converts this using DOS-style short mode. 48538 # If so, the updated path is stored in $new_path. 48539 new_path="$input_to_shortpath" 48540 48541 input_path="$input_to_shortpath" 48542 # Check if we need to convert this using DOS-style short mode. If the path 48543 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48544 # take no chances and rewrite it. 48545 # Note: m4 eats our [], so we need to use [ and ] instead. 48546 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48547 if test "x$has_forbidden_chars" != x; then 48548 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48549 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48550 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48551 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48552 # Going to short mode and back again did indeed matter. Since short mode is 48553 # case insensitive, let's make it lowercase to improve readability. 48554 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48555 # Now convert it back to Unix-style (cygpath) 48556 input_path=`$CYGPATH -u "$shortmode_path"` 48557 new_path="$input_path" 48558 fi 48559 fi 48560 48561 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48562 if test "x$test_cygdrive_prefix" = x; then 48563 # As a simple fix, exclude /usr/bin since it's not a real path. 48564 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 48565 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48566 # a path prefixed by /cygdrive for fixpath to work. 48567 new_path="$CYGWIN_ROOT_PATH$input_path" 48568 fi 48569 fi 48570 48571 # remove trailing .exe if any 48572 new_path="${new_path/%.exe/}" 48573 48574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48575 48576 # First separate the path from the arguments. This will split at the first 48577 # space. 48578 complete="$BUILD_STRIP" 48579 path="${complete%% *}" 48580 tmp="$complete EOL" 48581 arguments="${tmp#* }" 48582 48583 # Input might be given as Windows format, start by converting to 48584 # unix format. 48585 new_path="$path" 48586 48587 windows_path="$new_path" 48588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48589 unix_path=`$CYGPATH -u "$windows_path"` 48590 new_path="$unix_path" 48591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48593 new_path="$unix_path" 48594 fi 48595 48596 48597 # Now try to locate executable using which 48598 new_path=`$WHICH "$new_path" 2> /dev/null` 48599 48600 if test "x$new_path" = x; then 48601 # Oops. Which didn't find the executable. 48602 # The splitting of arguments from the executable at a space might have been incorrect, 48603 # since paths with space are more likely in Windows. Give it another try with the whole 48604 # argument. 48605 path="$complete" 48606 arguments="EOL" 48607 new_path="$path" 48608 48609 windows_path="$new_path" 48610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48611 unix_path=`$CYGPATH -u "$windows_path"` 48612 new_path="$unix_path" 48613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48614 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48615 new_path="$unix_path" 48616 fi 48617 48618 48619 new_path=`$WHICH "$new_path" 2> /dev/null` 48620 # bat and cmd files are not always considered executable in MSYS causing which 48621 # to not find them 48622 if test "x$new_path" = x \ 48623 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 48624 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 48625 new_path="$path" 48626 48627 windows_path="$new_path" 48628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48629 unix_path=`$CYGPATH -u "$windows_path"` 48630 new_path="$unix_path" 48631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48633 new_path="$unix_path" 48634 fi 48635 48636 fi 48637 48638 if test "x$new_path" = x; then 48639 # It's still not found. Now this is an unrecoverable error. 48640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48641 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48642 has_space=`$ECHO "$complete" | $GREP " "` 48643 if test "x$has_space" != x; then 48644 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 48645 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 48646 fi 48647 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48648 fi 48649 fi 48650 48651 # Now new_path has a complete unix path to the binary 48652 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 48653 # Keep paths in /bin as-is, but remove trailing .exe if any 48654 new_path="${new_path/%.exe/}" 48655 # Do not save /bin paths to all_fixpath_prefixes! 48656 else 48657 # Not in mixed or Windows style, start by that. 48658 new_path=`cmd //c echo $new_path` 48659 48660 input_path="$new_path" 48661 # Check if we need to convert this using DOS-style short mode. If the path 48662 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48663 # take no chances and rewrite it. 48664 # Note: m4 eats our [], so we need to use [ and ] instead. 48665 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48666 if test "x$has_forbidden_chars" != x; then 48667 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48668 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48669 fi 48670 48671 # Output is in $new_path 48672 48673 windows_path="$new_path" 48674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48675 unix_path=`$CYGPATH -u "$windows_path"` 48676 new_path="$unix_path" 48677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48678 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48679 new_path="$unix_path" 48680 fi 48681 48682 # remove trailing .exe if any 48683 new_path="${new_path/%.exe/}" 48684 48685 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48686 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48687 fi 48688 48689 else 48690 # We're on a unix platform. Hooray! :) 48691 # First separate the path from the arguments. This will split at the first 48692 # space. 48693 complete="$BUILD_STRIP" 48694 path="${complete%% *}" 48695 tmp="$complete EOL" 48696 arguments="${tmp#* }" 48697 48698 # Cannot rely on the command "which" here since it doesn't always work. 48699 is_absolute_path=`$ECHO "$path" | $GREP ^/` 48700 if test -z "$is_absolute_path"; then 48701 # Path to executable is not absolute. Find it. 48702 IFS_save="$IFS" 48703 IFS=: 48704 for p in $PATH; do 48705 if test -f "$p/$path" && test -x "$p/$path"; then 48706 new_path="$p/$path" 48707 break 48708 fi 48709 done 48710 IFS="$IFS_save" 48711 else 48712 # This is an absolute path, we can use it without further modifications. 48713 new_path="$path" 48714 fi 48715 48716 if test "x$new_path" = x; then 48717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&5 48718 $as_echo "$as_me: The path of BUILD_STRIP, which resolves as \"$complete\", is not found." >&6;} 48719 has_space=`$ECHO "$complete" | $GREP " "` 48720 if test "x$has_space" != x; then 48721 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 48722 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 48723 fi 48724 as_fn_error $? "Cannot locate the the path of BUILD_STRIP" "$LINENO" 5 48725 fi 48726 fi 48727 48728 # Now join together the path and the arguments once again 48729 if test "x$arguments" != xEOL; then 48730 new_complete="$new_path ${arguments% *}" 48731 else 48732 new_complete="$new_path" 48733 fi 48734 48735 if test "x$complete" != "x$new_complete"; then 48736 BUILD_STRIP="$new_complete" 48737 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_STRIP to \"$new_complete\"" >&5 48738 $as_echo "$as_me: Rewriting BUILD_STRIP to \"$new_complete\"" >&6;} 48739 fi 48740 fi 48741 48742 # Assume the C compiler is the assembler 48743 BUILD_AS="$BUILD_CC -c" 48744 # Just like for the target compiler, use the compiler as linker 48745 BUILD_LD="$BUILD_CC" 48746 BUILD_LDCXX="$BUILD_CXX" 48747 48748 PATH="$OLDPATH" 48749 48750 48751 COMPILER=$BUILD_CC 48752 COMPILER_NAME=BuildC 48753 48754 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48755 # cc -V output typically looks like 48756 # cc: Sun C 5.12 Linux_i386 2011/11/16 48757 # or 48758 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48759 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48760 # Check that this is likely to be the Solaris Studio cc. 48761 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48762 if test $? -ne 0; then 48763 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48764 { $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 48765 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48766 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48767 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48768 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48769 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48770 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48771 fi 48772 # Remove usage instructions (if present), and 48773 # collapse compiler output into a single line 48774 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48775 $SED -e 's/ *[Uu]sage:.*//'` 48776 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48777 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48778 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48779 # xlc -qversion output typically looks like 48780 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48781 # Version: 11.01.0000.0015 48782 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48783 # Check that this is likely to be the IBM XL C compiler. 48784 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48785 if test $? -ne 0; then 48786 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48787 { $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 48788 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48789 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48790 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48791 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48792 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48793 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48794 fi 48795 # Collapse compiler output into a single line 48796 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48797 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48798 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48799 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48800 # There is no specific version flag, but all output starts with a version string. 48801 # First line typically looks something like: 48802 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48803 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48804 # Check that this is likely to be Microsoft CL.EXE. 48805 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48806 if test $? -ne 0; then 48807 { $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 48808 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48809 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48810 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48811 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48812 fi 48813 # Collapse compiler output into a single line 48814 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48815 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48816 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48817 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48818 # gcc --version output typically looks like 48819 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48820 # Copyright (C) 2013 Free Software Foundation, Inc. 48821 # This is free software; see the source for copying conditions. There is NO 48822 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48823 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48824 # Check that this is likely to be GCC. 48825 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48826 if test $? -ne 0; then 48827 { $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 48828 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48829 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48830 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48831 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48832 fi 48833 # Remove Copyright and legalese from version string, and 48834 # collapse into a single line 48835 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48836 $SED -e 's/ *Copyright .*//'` 48837 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48838 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48839 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48840 # clang --version output typically looks like 48841 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48842 # clang version 3.3 (tags/RELEASE_33/final) 48843 # or 48844 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48845 # Target: x86_64-pc-linux-gnu 48846 # Thread model: posix 48847 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48848 # Check that this is likely to be clang 48849 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48850 if test $? -ne 0; then 48851 { $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 48852 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48853 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48854 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48855 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48856 fi 48857 # Collapse compiler output into a single line 48858 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48859 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48860 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48861 else 48862 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48863 fi 48864 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48865 BUILD_CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48866 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48867 BUILD_CC_VERSION_STRING="$COMPILER_VERSION_STRING" 48868 48869 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48870 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48871 48872 48873 COMPILER=$BUILD_CXX 48874 COMPILER_NAME=BuildC++ 48875 48876 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 48877 # cc -V output typically looks like 48878 # cc: Sun C 5.12 Linux_i386 2011/11/16 48879 # or 48880 # cc: Studio 12.5 Sun C 5.14 SunOS_sparc 2016/05/31 48881 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 48882 # Check that this is likely to be the Solaris Studio cc. 48883 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.* Sun $COMPILER_NAME" > /dev/null 48884 if test $? -ne 0; then 48885 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48886 { $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 48887 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48888 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48889 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48890 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48891 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48892 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48893 fi 48894 # Remove usage instructions (if present), and 48895 # collapse compiler output into a single line 48896 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48897 $SED -e 's/ *[Uu]sage:.*//'` 48898 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48899 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 48900 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 48901 # xlc -qversion output typically looks like 48902 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 48903 # Version: 11.01.0000.0015 48904 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 48905 # Check that this is likely to be the IBM XL C compiler. 48906 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 48907 if test $? -ne 0; then 48908 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48909 { $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 48910 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48911 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48912 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48913 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 48914 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 48915 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48916 fi 48917 # Collapse compiler output into a single line 48918 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48919 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48920 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 48921 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 48922 # There is no specific version flag, but all output starts with a version string. 48923 # First line typically looks something like: 48924 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 48925 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 48926 # Check that this is likely to be Microsoft CL.EXE. 48927 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 48928 if test $? -ne 0; then 48929 { $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 48930 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48931 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48932 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48933 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48934 fi 48935 # Collapse compiler output into a single line 48936 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48937 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48938 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 48939 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 48940 # gcc --version output typically looks like 48941 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 48942 # Copyright (C) 2013 Free Software Foundation, Inc. 48943 # This is free software; see the source for copying conditions. There is NO 48944 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 48945 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48946 # Check that this is likely to be GCC. 48947 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 48948 if test $? -ne 0; then 48949 { $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 48950 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48951 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 48952 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 48953 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48954 fi 48955 # Remove Copyright and legalese from version string, and 48956 # collapse into a single line 48957 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48958 $SED -e 's/ *Copyright .*//'` 48959 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48960 $SED -e 's/^.* \([1-9]\.[0-9.]*\)[^0-9.].*$/\1/'` 48961 elif test "x$TOOLCHAIN_TYPE" = xclang; then 48962 # clang --version output typically looks like 48963 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 48964 # clang version 3.3 (tags/RELEASE_33/final) 48965 # or 48966 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 48967 # Target: x86_64-pc-linux-gnu 48968 # Thread model: posix 48969 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 48970 # Check that this is likely to be clang 48971 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 48972 if test $? -ne 0; then 48973 { $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 48974 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 48975 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 48976 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 48977 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 48978 fi 48979 # Collapse compiler output into a single line 48980 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 48981 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 48982 $SED -e 's/^.* version \([1-9][0-9.]*\).*$/\1/'` 48983 else 48984 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 48985 fi 48986 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 48987 BUILD_CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 48988 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 48989 BUILD_CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 48990 48991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 48992 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 48993 48994 48995 if test "x$BUILD_CC_VERSION_NUMBER" != "x$BUILD_CXX_VERSION_NUMBER"; then 48996 { $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 48997 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $BUILD_CC_VERSION_NUMBER vs $BUILD_CXX_VERSION_NUMBER." >&2;} 48998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 48999 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49000 fi 49001 49002 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49003 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49004 { $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 49005 $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;} 49006 fi 49007 49008 if [[ "[$]BUILD_CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49009 { $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 49010 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $BUILD_CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49011 fi 49012 49013 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$BUILD_CC_VERSION_NUMBER"` 49014 49015 else 49016 # If we are not cross compiling, use the normal target compilers for 49017 # building the build platform executables. 49018 BUILD_CC="$CC" 49019 BUILD_CXX="$CXX" 49020 BUILD_LD="$LD" 49021 BUILD_LDCXX="$LDCXX" 49022 BUILD_NM="$NM" 49023 BUILD_AS="$AS" 49024 BUILD_OBJCOPY="$OBJCOPY" 49025 BUILD_STRIP="$STRIP" 49026 BUILD_SYSROOT_CFLAGS="$SYSROOT_CFLAGS" 49027 BUILD_SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS" 49028 BUILD_AR="$AR" 49029 49030 49031 if test "x$CC_VERSION_NUMBER" != "x$CXX_VERSION_NUMBER"; then 49032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&5 49033 $as_echo "$as_me: WARNING: C and C++ compiler have different version numbers, $CC_VERSION_NUMBER vs $CXX_VERSION_NUMBER." >&2;} 49034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 49035 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 49036 fi 49037 49038 # We only check CC_VERSION_NUMBER since we assume CXX_VERSION_NUMBER is equal. 49039 if [[ "[$]CC_VERSION_NUMBER" =~ (.*\.){4} ]] ; then 49040 { $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 49041 $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;} 49042 fi 49043 49044 if [[ "[$]CC_VERSION_NUMBER" =~ [0-9]{6} ]] ; then 49045 { $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 49046 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION_NUMBER. Comparisons might be wrong." >&2;} 49047 fi 49048 49049 OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$CC_VERSION_NUMBER"` 49050 49051 fi 49052 49053 49054 49055 49056 49057 49058 49059 49060 49061 49062 49063 49064 49065 49066 # The package path is used only on macosx? 49067 # FIXME: clean this up, and/or move it elsewhere. 49068 PACKAGE_PATH=/opt/local 49069 49070 49071 # Check for extra potential brokenness. 49072 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49073 # On Windows, double-check that we got the right compiler. 49074 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 49075 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 49076 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 49077 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 49078 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 49079 fi 49080 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 49081 if test "x$COMPILER_CPU_TEST" != "xx64"; then 49082 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 49083 fi 49084 fi 49085 fi 49086 49087 if test "x$TOOLCHAIN_TYPE" = xgcc; then 49088 # If this is a --hash-style=gnu system, use --hash-style=both, why? 49089 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 49090 # This is later checked when setting flags. 49091 49092 # "-Og" suppported for GCC 4.8 and later 49093 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 49094 49095 49096 49097 49098 49099 49100 49101 49102 49103 49104 49105 49106 49107 49108 49109 49110 49111 49112 49113 49114 49115 49116 49117 49118 49119 49120 49121 49122 49123 49124 49125 49126 49127 49128 49129 49130 49131 49132 49133 49134 49135 49136 49137 49138 49139 49140 49141 # Execute function body 49142 49143 49144 49145 49146 49147 49148 49149 49150 49151 49152 49153 49154 49155 49156 49157 49158 49159 49160 49161 49162 49163 49164 49165 49166 49167 49168 49169 49170 49171 49172 49173 49174 49175 49176 49177 49178 49179 49180 49181 49182 49183 49184 49185 49186 49187 49188 49189 49190 # Execute function body 49191 49192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49193 $as_echo_n "checking if the C compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49194 supports=yes 49195 49196 saved_cflags="$CFLAGS" 49197 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 49198 ac_ext=c 49199 ac_cpp='$CPP $CPPFLAGS' 49200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49202 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49203 49204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49205 /* end confdefs.h. */ 49206 int i; 49207 _ACEOF 49208 if ac_fn_c_try_compile "$LINENO"; then : 49209 49210 else 49211 supports=no 49212 fi 49213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49214 ac_ext=cpp 49215 ac_cpp='$CXXCPP $CPPFLAGS' 49216 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49217 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49218 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49219 49220 CFLAGS="$saved_cflags" 49221 49222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49223 $as_echo "$supports" >&6; } 49224 if test "x$supports" = "xyes" ; then 49225 : 49226 C_COMP_SUPPORTS="yes" 49227 else 49228 : 49229 C_COMP_SUPPORTS="no" 49230 fi 49231 49232 49233 49234 49235 49236 49237 49238 49239 49240 49241 49242 49243 49244 49245 49246 49247 49248 49249 49250 49251 49252 49253 49254 49255 49256 49257 49258 49259 49260 49261 49262 49263 49264 49265 49266 49267 49268 49269 49270 49271 49272 49273 49274 49275 49276 49277 49278 49279 49280 49281 49282 49283 49284 49285 49286 49287 49288 49289 49290 # Execute function body 49291 49292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49293 $as_echo_n "checking if the C++ compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49294 supports=yes 49295 49296 saved_cxxflags="$CXXFLAGS" 49297 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 49298 ac_ext=cpp 49299 ac_cpp='$CXXCPP $CPPFLAGS' 49300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49303 49304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49305 /* end confdefs.h. */ 49306 int i; 49307 _ACEOF 49308 if ac_fn_cxx_try_compile "$LINENO"; then : 49309 49310 else 49311 supports=no 49312 fi 49313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 49314 ac_ext=cpp 49315 ac_cpp='$CXXCPP $CPPFLAGS' 49316 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49317 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49318 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49319 49320 CXXFLAGS="$saved_cxxflags" 49321 49322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49323 $as_echo "$supports" >&6; } 49324 if test "x$supports" = "xyes" ; then 49325 : 49326 CXX_COMP_SUPPORTS="yes" 49327 else 49328 : 49329 CXX_COMP_SUPPORTS="no" 49330 fi 49331 49332 49333 49334 49335 49336 49337 49338 49339 49340 49341 49342 49343 49344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 49345 $as_echo_n "checking if both compilers support \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 49346 supports=no 49347 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 49348 49349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49350 $as_echo "$supports" >&6; } 49351 if test "x$supports" = "xyes" ; then 49352 : 49353 HAS_CFLAG_OPTIMIZE_DEBUG=true 49354 else 49355 : 49356 HAS_CFLAG_OPTIMIZE_DEBUG=false 49357 fi 49358 49359 49360 49361 49362 49363 49364 49365 # "-z relro" supported in GNU binutils 2.17 and later 49366 LINKER_RELRO_FLAG="-Wl,-z,relro" 49367 49368 49369 49370 49371 49372 49373 49374 49375 49376 49377 49378 49379 49380 49381 49382 49383 49384 49385 49386 49387 49388 49389 49390 49391 49392 49393 49394 49395 49396 49397 49398 49399 49400 49401 49402 49403 49404 49405 49406 49407 49408 49409 49410 49411 49412 49413 49414 # Execute function body 49415 49416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 49417 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 49418 supports=yes 49419 49420 saved_ldflags="$LDFLAGS" 49421 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 49422 ac_ext=c 49423 ac_cpp='$CPP $CPPFLAGS' 49424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49426 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49427 49428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49429 /* end confdefs.h. */ 49430 49431 int 49432 main () 49433 { 49434 49435 ; 49436 return 0; 49437 } 49438 _ACEOF 49439 if ac_fn_c_try_link "$LINENO"; then : 49440 49441 else 49442 supports=no 49443 fi 49444 rm -f core conftest.err conftest.$ac_objext \ 49445 conftest$ac_exeext conftest.$ac_ext 49446 ac_ext=cpp 49447 ac_cpp='$CXXCPP $CPPFLAGS' 49448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49451 49452 LDFLAGS="$saved_ldflags" 49453 49454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49455 $as_echo "$supports" >&6; } 49456 if test "x$supports" = "xyes" ; then 49457 : 49458 HAS_LINKER_RELRO=true 49459 else 49460 : 49461 HAS_LINKER_RELRO=false 49462 fi 49463 49464 49465 49466 49467 49468 49469 49470 49471 49472 49473 49474 49475 49476 # "-z now" supported in GNU binutils 2.11 and later 49477 LINKER_NOW_FLAG="-Wl,-z,now" 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 49507 49508 49509 49510 49511 49512 49513 49514 49515 49516 49517 49518 49519 49520 49521 49522 49523 49524 49525 # Execute function body 49526 49527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 49528 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 49529 supports=yes 49530 49531 saved_ldflags="$LDFLAGS" 49532 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 49533 ac_ext=c 49534 ac_cpp='$CPP $CPPFLAGS' 49535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49537 ac_compiler_gnu=$ac_cv_c_compiler_gnu 49538 49539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49540 /* end confdefs.h. */ 49541 49542 int 49543 main () 49544 { 49545 49546 ; 49547 return 0; 49548 } 49549 _ACEOF 49550 if ac_fn_c_try_link "$LINENO"; then : 49551 49552 else 49553 supports=no 49554 fi 49555 rm -f core conftest.err conftest.$ac_objext \ 49556 conftest$ac_exeext conftest.$ac_ext 49557 ac_ext=cpp 49558 ac_cpp='$CXXCPP $CPPFLAGS' 49559 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49560 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49561 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49562 49563 LDFLAGS="$saved_ldflags" 49564 49565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 49566 $as_echo "$supports" >&6; } 49567 if test "x$supports" = "xyes" ; then 49568 : 49569 HAS_LINKER_NOW=true 49570 else 49571 : 49572 HAS_LINKER_NOW=false 49573 fi 49574 49575 49576 49577 49578 49579 49580 49581 49582 49583 49584 49585 49586 fi 49587 49588 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 49589 # in executable.' 49590 USING_BROKEN_SUSE_LD=no 49591 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 49592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 49593 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 49594 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 49595 $ECHO "int main() { }" > main.c 49596 if $CXX -Wl,-version-script=version-script.map main.c 2>&5 >&5; then 49597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49598 $as_echo "no" >&6; } 49599 USING_BROKEN_SUSE_LD=no 49600 else 49601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49602 $as_echo "yes" >&6; } 49603 USING_BROKEN_SUSE_LD=yes 49604 fi 49605 $RM version-script.map main.c a.out 49606 fi 49607 49608 49609 # Setup hotspot lecagy names for toolchains 49610 HOTSPOT_TOOLCHAIN_TYPE=$TOOLCHAIN_TYPE 49611 if test "x$TOOLCHAIN_TYPE" = xclang; then 49612 HOTSPOT_TOOLCHAIN_TYPE=gcc 49613 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 49614 HOTSPOT_TOOLCHAIN_TYPE=sparcWorks 49615 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 49616 HOTSPOT_TOOLCHAIN_TYPE=visCPP 49617 fi 49618 49619 49620 49621 # Setup the JTReg Regression Test Harness. 49622 49623 49624 # Check whether --with-jtreg was given. 49625 if test "${with_jtreg+set}" = set; then : 49626 withval=$with_jtreg; 49627 fi 49628 49629 49630 if test "x$with_jtreg" = xno; then 49631 # jtreg disabled 49632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49633 $as_echo_n "checking for jtreg test harness... " >&6; } 49634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabled" >&5 49635 $as_echo "no, disabled" >&6; } 49636 elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then 49637 # An explicit path is specified, use it. 49638 JT_HOME="$with_jtreg" 49639 49640 # Only process if variable expands to non-empty 49641 49642 if test "x$JT_HOME" != x; then 49643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49644 49645 # Input might be given as Windows format, start by converting to 49646 # unix format. 49647 path="$JT_HOME" 49648 new_path=`$CYGPATH -u "$path"` 49649 49650 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49651 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49652 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49653 # "foo.exe" is OK but "foo" is an error. 49654 # 49655 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49656 # It is also a way to make sure we got the proper file name for the real test later on. 49657 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49658 if test "x$test_shortpath" = x; then 49659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49660 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49661 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 49662 fi 49663 49664 # Call helper function which possibly converts this using DOS-style short mode. 49665 # If so, the updated path is stored in $new_path. 49666 49667 input_path="$new_path" 49668 # Check if we need to convert this using DOS-style short mode. If the path 49669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49670 # take no chances and rewrite it. 49671 # Note: m4 eats our [], so we need to use [ and ] instead. 49672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49673 if test "x$has_forbidden_chars" != x; then 49674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49678 # Going to short mode and back again did indeed matter. Since short mode is 49679 # case insensitive, let's make it lowercase to improve readability. 49680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49681 # Now convert it back to Unix-style (cygpath) 49682 input_path=`$CYGPATH -u "$shortmode_path"` 49683 new_path="$input_path" 49684 fi 49685 fi 49686 49687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49688 if test "x$test_cygdrive_prefix" = x; then 49689 # As a simple fix, exclude /usr/bin since it's not a real path. 49690 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49692 # a path prefixed by /cygdrive for fixpath to work. 49693 new_path="$CYGWIN_ROOT_PATH$input_path" 49694 fi 49695 fi 49696 49697 49698 if test "x$path" != "x$new_path"; then 49699 JT_HOME="$new_path" 49700 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49701 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49702 fi 49703 49704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49705 49706 path="$JT_HOME" 49707 has_colon=`$ECHO $path | $GREP ^.:` 49708 new_path="$path" 49709 if test "x$has_colon" = x; then 49710 # Not in mixed or Windows style, start by that. 49711 new_path=`cmd //c echo $path` 49712 fi 49713 49714 49715 input_path="$new_path" 49716 # Check if we need to convert this using DOS-style short mode. If the path 49717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49718 # take no chances and rewrite it. 49719 # Note: m4 eats our [], so we need to use [ and ] instead. 49720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49721 if test "x$has_forbidden_chars" != x; then 49722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49723 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49724 fi 49725 49726 49727 windows_path="$new_path" 49728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49729 unix_path=`$CYGPATH -u "$windows_path"` 49730 new_path="$unix_path" 49731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49733 new_path="$unix_path" 49734 fi 49735 49736 if test "x$path" != "x$new_path"; then 49737 JT_HOME="$new_path" 49738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 49739 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 49740 fi 49741 49742 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49743 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49744 49745 else 49746 # We're on a unix platform. Hooray! :) 49747 path="$JT_HOME" 49748 has_space=`$ECHO "$path" | $GREP " "` 49749 if test "x$has_space" != x; then 49750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 49751 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 49752 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49753 fi 49754 49755 # Use eval to expand a potential ~ 49756 eval path="$path" 49757 if test ! -f "$path" && test ! -d "$path"; then 49758 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 49759 fi 49760 49761 if test -d "$path"; then 49762 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 49763 else 49764 dir="`$DIRNAME "$path"`" 49765 base="`$BASENAME "$path"`" 49766 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 49767 fi 49768 fi 49769 fi 49770 49771 if test ! -d "$JT_HOME"; then 49772 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not exist" "$LINENO" 5 49773 fi 49774 49775 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49776 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg is not a valid jtreg home" "$LINENO" 5 49777 fi 49778 49779 JTREGEXE="$JT_HOME/bin/jtreg" 49780 if test ! -x "$JTREGEXE"; then 49781 as_fn_error $? "jtreg home directory from --with-jtreg=$with_jtreg does not contain valid jtreg executable" "$LINENO" 5 49782 fi 49783 49784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 49785 $as_echo_n "checking for jtreg test harness... " >&6; } 49786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 49787 $as_echo "$JT_HOME" >&6; } 49788 else 49789 # Try to locate jtreg 49790 if test "x$JT_HOME" != x; then 49791 # JT_HOME set in environment, use it 49792 if test ! -d "$JT_HOME"; then 49793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&5 49794 $as_echo "$as_me: WARNING: Ignoring JT_HOME pointing to invalid directory: $JT_HOME" >&2;} 49795 JT_HOME= 49796 else 49797 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 49798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&5 49799 $as_echo "$as_me: WARNING: Ignoring JT_HOME which is not a valid jtreg home: $JT_HOME" >&2;} 49800 JT_HOME= 49801 elif test ! -x "$JT_HOME/bin/jtreg"; then 49802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&5 49803 $as_echo "$as_me: WARNING: Ignoring JT_HOME which does not contain valid jtreg executable: $JT_HOME" >&2;} 49804 JT_HOME= 49805 else 49806 JTREGEXE="$JT_HOME/bin/jtreg" 49807 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using JT_HOME from environment" >&5 49808 $as_echo "$as_me: Located jtreg using JT_HOME from environment" >&6;} 49809 fi 49810 fi 49811 fi 49812 49813 if test "x$JT_HOME" = x; then 49814 # JT_HOME is not set in environment, or was deemed invalid. 49815 # Try to find jtreg on path 49816 49817 49818 # Publish this variable in the help. 49819 49820 49821 if [ -z "${JTREGEXE+x}" ]; then 49822 # The variable is not set by user, try to locate tool using the code snippet 49823 for ac_prog in jtreg 49824 do 49825 # Extract the first word of "$ac_prog", so it can be a program name with args. 49826 set dummy $ac_prog; ac_word=$2 49827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49828 $as_echo_n "checking for $ac_word... " >&6; } 49829 if ${ac_cv_path_JTREGEXE+:} false; then : 49830 $as_echo_n "(cached) " >&6 49831 else 49832 case $JTREGEXE in 49833 [\\/]* | ?:[\\/]*) 49834 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49835 ;; 49836 *) 49837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49838 for as_dir in $PATH 49839 do 49840 IFS=$as_save_IFS 49841 test -z "$as_dir" && as_dir=. 49842 for ac_exec_ext in '' $ac_executable_extensions; do 49843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49844 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49846 break 2 49847 fi 49848 done 49849 done 49850 IFS=$as_save_IFS 49851 49852 ;; 49853 esac 49854 fi 49855 JTREGEXE=$ac_cv_path_JTREGEXE 49856 if test -n "$JTREGEXE"; then 49857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49858 $as_echo "$JTREGEXE" >&6; } 49859 else 49860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49861 $as_echo "no" >&6; } 49862 fi 49863 49864 49865 test -n "$JTREGEXE" && break 49866 done 49867 49868 else 49869 # The variable is set, but is it from the command line or the environment? 49870 49871 # Try to remove the string !JTREGEXE! from our list. 49872 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 49873 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 49874 # If it failed, the variable was not from the command line. Ignore it, 49875 # but warn the user (except for BASH, which is always set by the calling BASH). 49876 if test "xJTREGEXE" != xBASH; then 49877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 49878 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 49879 fi 49880 # Try to locate tool using the code snippet 49881 for ac_prog in jtreg 49882 do 49883 # Extract the first word of "$ac_prog", so it can be a program name with args. 49884 set dummy $ac_prog; ac_word=$2 49885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49886 $as_echo_n "checking for $ac_word... " >&6; } 49887 if ${ac_cv_path_JTREGEXE+:} false; then : 49888 $as_echo_n "(cached) " >&6 49889 else 49890 case $JTREGEXE in 49891 [\\/]* | ?:[\\/]*) 49892 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49893 ;; 49894 *) 49895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49896 for as_dir in $PATH 49897 do 49898 IFS=$as_save_IFS 49899 test -z "$as_dir" && as_dir=. 49900 for ac_exec_ext in '' $ac_executable_extensions; do 49901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49902 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49904 break 2 49905 fi 49906 done 49907 done 49908 IFS=$as_save_IFS 49909 49910 ;; 49911 esac 49912 fi 49913 JTREGEXE=$ac_cv_path_JTREGEXE 49914 if test -n "$JTREGEXE"; then 49915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49916 $as_echo "$JTREGEXE" >&6; } 49917 else 49918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49919 $as_echo "no" >&6; } 49920 fi 49921 49922 49923 test -n "$JTREGEXE" && break 49924 done 49925 49926 else 49927 # If it succeeded, then it was overridden by the user. We will use it 49928 # for the tool. 49929 49930 # First remove it from the list of overridden variables, so we can test 49931 # for unknown variables in the end. 49932 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 49933 49934 # Check if we try to supply an empty value 49935 if test "x$JTREGEXE" = x; then 49936 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool JTREGEXE= (no value)" >&5 49937 $as_echo "$as_me: Setting user supplied tool JTREGEXE= (no value)" >&6;} 49938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49939 $as_echo_n "checking for JTREGEXE... " >&6; } 49940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 49941 $as_echo "disabled" >&6; } 49942 else 49943 # Check if the provided tool contains a complete path. 49944 tool_specified="$JTREGEXE" 49945 tool_basename="${tool_specified##*/}" 49946 if test "x$tool_basename" = "x$tool_specified"; then 49947 # A command without a complete path is provided, search $PATH. 49948 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 49949 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 49950 # Extract the first word of "$tool_basename", so it can be a program name with args. 49951 set dummy $tool_basename; ac_word=$2 49952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49953 $as_echo_n "checking for $ac_word... " >&6; } 49954 if ${ac_cv_path_JTREGEXE+:} false; then : 49955 $as_echo_n "(cached) " >&6 49956 else 49957 case $JTREGEXE in 49958 [\\/]* | ?:[\\/]*) 49959 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 49960 ;; 49961 *) 49962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49963 for as_dir in $PATH 49964 do 49965 IFS=$as_save_IFS 49966 test -z "$as_dir" && as_dir=. 49967 for ac_exec_ext in '' $ac_executable_extensions; do 49968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49969 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 49970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49971 break 2 49972 fi 49973 done 49974 done 49975 IFS=$as_save_IFS 49976 49977 ;; 49978 esac 49979 fi 49980 JTREGEXE=$ac_cv_path_JTREGEXE 49981 if test -n "$JTREGEXE"; then 49982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 49983 $as_echo "$JTREGEXE" >&6; } 49984 else 49985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49986 $as_echo "no" >&6; } 49987 fi 49988 49989 49990 if test "x$JTREGEXE" = x; then 49991 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 49992 fi 49993 else 49994 # Otherwise we believe it is a complete path. Use it as it is. 49995 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 49996 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 49997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 49998 $as_echo_n "checking for JTREGEXE... " >&6; } 49999 if test ! -x "$tool_specified"; then 50000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50001 $as_echo "not found" >&6; } 50002 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 50003 fi 50004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50005 $as_echo "$tool_specified" >&6; } 50006 fi 50007 fi 50008 fi 50009 50010 fi 50011 50012 50013 if test "x$JTREGEXE" != x; then 50014 # That's good, now try to derive JT_HOME 50015 JT_HOME=`(cd $($DIRNAME $JTREGEXE)/.. && pwd)` 50016 if test ! -e "$JT_HOME/lib/jtreg.jar"; then 50017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&5 50018 $as_echo "$as_me: WARNING: Ignoring jtreg from path since a valid jtreg home cannot be found" >&2;} 50019 JT_HOME= 50020 JTREGEXE= 50021 else 50022 { $as_echo "$as_me:${as_lineno-$LINENO}: Located jtreg using jtreg executable in path" >&5 50023 $as_echo "$as_me: Located jtreg using jtreg executable in path" >&6;} 50024 fi 50025 fi 50026 fi 50027 50028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg test harness" >&5 50029 $as_echo_n "checking for jtreg test harness... " >&6; } 50030 if test "x$JT_HOME" != x; then 50031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JT_HOME" >&5 50032 $as_echo "$JT_HOME" >&6; } 50033 else 50034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found" >&5 50035 $as_echo "no, not found" >&6; } 50036 50037 if test "x$with_jtreg" = xyes; then 50038 as_fn_error $? "--with-jtreg was specified, but no jtreg found." "$LINENO" 5 50039 fi 50040 fi 50041 fi 50042 50043 50044 # Only process if variable expands to non-empty 50045 50046 if test "x$JTREGEXE" != x; then 50047 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50048 50049 # First separate the path from the arguments. This will split at the first 50050 # space. 50051 complete="$JTREGEXE" 50052 path="${complete%% *}" 50053 tmp="$complete EOL" 50054 arguments="${tmp#* }" 50055 50056 # Input might be given as Windows format, start by converting to 50057 # unix format. 50058 new_path=`$CYGPATH -u "$path"` 50059 50060 # Now try to locate executable using which 50061 new_path=`$WHICH "$new_path" 2> /dev/null` 50062 # bat and cmd files are not always considered executable in cygwin causing which 50063 # to not find them 50064 if test "x$new_path" = x \ 50065 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50066 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50067 new_path=`$CYGPATH -u "$path"` 50068 fi 50069 if test "x$new_path" = x; then 50070 # Oops. Which didn't find the executable. 50071 # The splitting of arguments from the executable at a space might have been incorrect, 50072 # since paths with space are more likely in Windows. Give it another try with the whole 50073 # argument. 50074 path="$complete" 50075 arguments="EOL" 50076 new_path=`$CYGPATH -u "$path"` 50077 new_path=`$WHICH "$new_path" 2> /dev/null` 50078 # bat and cmd files are not always considered executable in cygwin causing which 50079 # to not find them 50080 if test "x$new_path" = x \ 50081 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50082 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50083 new_path=`$CYGPATH -u "$path"` 50084 fi 50085 if test "x$new_path" = x; then 50086 # It's still not found. Now this is an unrecoverable error. 50087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50088 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50089 has_space=`$ECHO "$complete" | $GREP " "` 50090 if test "x$has_space" != x; then 50091 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50092 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50093 fi 50094 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50095 fi 50096 fi 50097 50098 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50099 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50100 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50101 # "foo.exe" is OK but "foo" is an error. 50102 # 50103 # This test is therefore slightly more accurate than "test -f" to check for file presence. 50104 # It is also a way to make sure we got the proper file name for the real test later on. 50105 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50106 if test "x$test_shortpath" = x; then 50107 # Short path failed, file does not exist as specified. 50108 # Try adding .exe or .cmd 50109 if test -f "${new_path}.exe"; then 50110 input_to_shortpath="${new_path}.exe" 50111 elif test -f "${new_path}.cmd"; then 50112 input_to_shortpath="${new_path}.cmd" 50113 else 50114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&5 50115 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$new_path\", is invalid." >&6;} 50116 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 50117 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 50118 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50119 fi 50120 else 50121 input_to_shortpath="$new_path" 50122 fi 50123 50124 # Call helper function which possibly converts this using DOS-style short mode. 50125 # If so, the updated path is stored in $new_path. 50126 new_path="$input_to_shortpath" 50127 50128 input_path="$input_to_shortpath" 50129 # Check if we need to convert this using DOS-style short mode. If the path 50130 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50131 # take no chances and rewrite it. 50132 # Note: m4 eats our [], so we need to use [ and ] instead. 50133 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50134 if test "x$has_forbidden_chars" != x; then 50135 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50136 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50137 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50138 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50139 # Going to short mode and back again did indeed matter. Since short mode is 50140 # case insensitive, let's make it lowercase to improve readability. 50141 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50142 # Now convert it back to Unix-style (cygpath) 50143 input_path=`$CYGPATH -u "$shortmode_path"` 50144 new_path="$input_path" 50145 fi 50146 fi 50147 50148 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50149 if test "x$test_cygdrive_prefix" = x; then 50150 # As a simple fix, exclude /usr/bin since it's not a real path. 50151 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 50152 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50153 # a path prefixed by /cygdrive for fixpath to work. 50154 new_path="$CYGWIN_ROOT_PATH$input_path" 50155 fi 50156 fi 50157 50158 # remove trailing .exe if any 50159 new_path="${new_path/%.exe/}" 50160 50161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50162 50163 # First separate the path from the arguments. This will split at the first 50164 # space. 50165 complete="$JTREGEXE" 50166 path="${complete%% *}" 50167 tmp="$complete EOL" 50168 arguments="${tmp#* }" 50169 50170 # Input might be given as Windows format, start by converting to 50171 # unix format. 50172 new_path="$path" 50173 50174 windows_path="$new_path" 50175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50176 unix_path=`$CYGPATH -u "$windows_path"` 50177 new_path="$unix_path" 50178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50180 new_path="$unix_path" 50181 fi 50182 50183 50184 # Now try to locate executable using which 50185 new_path=`$WHICH "$new_path" 2> /dev/null` 50186 50187 if test "x$new_path" = x; then 50188 # Oops. Which didn't find the executable. 50189 # The splitting of arguments from the executable at a space might have been incorrect, 50190 # since paths with space are more likely in Windows. Give it another try with the whole 50191 # argument. 50192 path="$complete" 50193 arguments="EOL" 50194 new_path="$path" 50195 50196 windows_path="$new_path" 50197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50198 unix_path=`$CYGPATH -u "$windows_path"` 50199 new_path="$unix_path" 50200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50202 new_path="$unix_path" 50203 fi 50204 50205 50206 new_path=`$WHICH "$new_path" 2> /dev/null` 50207 # bat and cmd files are not always considered executable in MSYS causing which 50208 # to not find them 50209 if test "x$new_path" = x \ 50210 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 50211 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 50212 new_path="$path" 50213 50214 windows_path="$new_path" 50215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50216 unix_path=`$CYGPATH -u "$windows_path"` 50217 new_path="$unix_path" 50218 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50219 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50220 new_path="$unix_path" 50221 fi 50222 50223 fi 50224 50225 if test "x$new_path" = x; then 50226 # It's still not found. Now this is an unrecoverable error. 50227 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50228 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50229 has_space=`$ECHO "$complete" | $GREP " "` 50230 if test "x$has_space" != x; then 50231 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 50232 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 50233 fi 50234 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50235 fi 50236 fi 50237 50238 # Now new_path has a complete unix path to the binary 50239 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 50240 # Keep paths in /bin as-is, but remove trailing .exe if any 50241 new_path="${new_path/%.exe/}" 50242 # Do not save /bin paths to all_fixpath_prefixes! 50243 else 50244 # Not in mixed or Windows style, start by that. 50245 new_path=`cmd //c echo $new_path` 50246 50247 input_path="$new_path" 50248 # Check if we need to convert this using DOS-style short mode. If the path 50249 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50250 # take no chances and rewrite it. 50251 # Note: m4 eats our [], so we need to use [ and ] instead. 50252 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50253 if test "x$has_forbidden_chars" != x; then 50254 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50255 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50256 fi 50257 50258 # Output is in $new_path 50259 50260 windows_path="$new_path" 50261 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50262 unix_path=`$CYGPATH -u "$windows_path"` 50263 new_path="$unix_path" 50264 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50265 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50266 new_path="$unix_path" 50267 fi 50268 50269 # remove trailing .exe if any 50270 new_path="${new_path/%.exe/}" 50271 50272 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50273 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50274 fi 50275 50276 else 50277 # We're on a unix platform. Hooray! :) 50278 # First separate the path from the arguments. This will split at the first 50279 # space. 50280 complete="$JTREGEXE" 50281 path="${complete%% *}" 50282 tmp="$complete EOL" 50283 arguments="${tmp#* }" 50284 50285 # Cannot rely on the command "which" here since it doesn't always work. 50286 is_absolute_path=`$ECHO "$path" | $GREP ^/` 50287 if test -z "$is_absolute_path"; then 50288 # Path to executable is not absolute. Find it. 50289 IFS_save="$IFS" 50290 IFS=: 50291 for p in $PATH; do 50292 if test -f "$p/$path" && test -x "$p/$path"; then 50293 new_path="$p/$path" 50294 break 50295 fi 50296 done 50297 IFS="$IFS_save" 50298 else 50299 # This is an absolute path, we can use it without further modifications. 50300 new_path="$path" 50301 fi 50302 50303 if test "x$new_path" = x; then 50304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&5 50305 $as_echo "$as_me: The path of JTREGEXE, which resolves as \"$complete\", is not found." >&6;} 50306 has_space=`$ECHO "$complete" | $GREP " "` 50307 if test "x$has_space" != x; then 50308 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 50309 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 50310 fi 50311 as_fn_error $? "Cannot locate the the path of JTREGEXE" "$LINENO" 5 50312 fi 50313 fi 50314 50315 # Now join together the path and the arguments once again 50316 if test "x$arguments" != xEOL; then 50317 new_complete="$new_path ${arguments% *}" 50318 else 50319 new_complete="$new_path" 50320 fi 50321 50322 if test "x$complete" != "x$new_complete"; then 50323 JTREGEXE="$new_complete" 50324 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JTREGEXE to \"$new_complete\"" >&5 50325 $as_echo "$as_me: Rewriting JTREGEXE to \"$new_complete\"" >&6;} 50326 fi 50327 fi 50328 50329 50330 # Only process if variable expands to non-empty 50331 50332 if test "x$JT_HOME" != x; then 50333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50334 50335 # Input might be given as Windows format, start by converting to 50336 # unix format. 50337 path="$JT_HOME" 50338 new_path=`$CYGPATH -u "$path"` 50339 50340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50343 # "foo.exe" is OK but "foo" is an error. 50344 # 50345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50346 # It is also a way to make sure we got the proper file name for the real test later on. 50347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50348 if test "x$test_shortpath" = x; then 50349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50350 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50351 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 50352 fi 50353 50354 # Call helper function which possibly converts this using DOS-style short mode. 50355 # If so, the updated path is stored in $new_path. 50356 50357 input_path="$new_path" 50358 # Check if we need to convert this using DOS-style short mode. If the path 50359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50360 # take no chances and rewrite it. 50361 # Note: m4 eats our [], so we need to use [ and ] instead. 50362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50363 if test "x$has_forbidden_chars" != x; then 50364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50368 # Going to short mode and back again did indeed matter. Since short mode is 50369 # case insensitive, let's make it lowercase to improve readability. 50370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50371 # Now convert it back to Unix-style (cygpath) 50372 input_path=`$CYGPATH -u "$shortmode_path"` 50373 new_path="$input_path" 50374 fi 50375 fi 50376 50377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50378 if test "x$test_cygdrive_prefix" = x; then 50379 # As a simple fix, exclude /usr/bin since it's not a real path. 50380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50382 # a path prefixed by /cygdrive for fixpath to work. 50383 new_path="$CYGWIN_ROOT_PATH$input_path" 50384 fi 50385 fi 50386 50387 50388 if test "x$path" != "x$new_path"; then 50389 JT_HOME="$new_path" 50390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50391 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50392 fi 50393 50394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50395 50396 path="$JT_HOME" 50397 has_colon=`$ECHO $path | $GREP ^.:` 50398 new_path="$path" 50399 if test "x$has_colon" = x; then 50400 # Not in mixed or Windows style, start by that. 50401 new_path=`cmd //c echo $path` 50402 fi 50403 50404 50405 input_path="$new_path" 50406 # Check if we need to convert this using DOS-style short mode. If the path 50407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50408 # take no chances and rewrite it. 50409 # Note: m4 eats our [], so we need to use [ and ] instead. 50410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50411 if test "x$has_forbidden_chars" != x; then 50412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50414 fi 50415 50416 50417 windows_path="$new_path" 50418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50419 unix_path=`$CYGPATH -u "$windows_path"` 50420 new_path="$unix_path" 50421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50423 new_path="$unix_path" 50424 fi 50425 50426 if test "x$path" != "x$new_path"; then 50427 JT_HOME="$new_path" 50428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 50429 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 50430 fi 50431 50432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50434 50435 else 50436 # We're on a unix platform. Hooray! :) 50437 path="$JT_HOME" 50438 has_space=`$ECHO "$path" | $GREP " "` 50439 if test "x$has_space" != x; then 50440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 50441 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 50442 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50443 fi 50444 50445 # Use eval to expand a potential ~ 50446 eval path="$path" 50447 if test ! -f "$path" && test ! -d "$path"; then 50448 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 50449 fi 50450 50451 if test -d "$path"; then 50452 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 50453 else 50454 dir="`$DIRNAME "$path"`" 50455 base="`$BASENAME "$path"`" 50456 JT_HOME="`cd "$dir"; $THEPWDCMD -L`/$base" 50457 fi 50458 fi 50459 fi 50460 50461 50462 50463 50464 50465 # Setup Jib dependency tool 50466 50467 50468 # Check whether --with-jib was given. 50469 if test "${with_jib+set}" = set; then : 50470 withval=$with_jib; 50471 fi 50472 50473 50474 if test "x$with_jib" = xno || test "x$with_jib" = x; then 50475 # jib disabled 50476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50477 $as_echo_n "checking for jib... " >&6; } 50478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50479 $as_echo "no" >&6; } 50480 elif test "x$with_jib" = xyes; then 50481 as_fn_error $? "Must supply a value to --with-jib" "$LINENO" 5 50482 else 50483 JIB_HOME="${with_jib}" 50484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jib" >&5 50485 $as_echo_n "checking for jib... " >&6; } 50486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JIB_HOME}" >&5 50487 $as_echo "${JIB_HOME}" >&6; } 50488 if test ! -d "${JIB_HOME}"; then 50489 as_fn_error $? "--with-jib must be a directory" "$LINENO" 5 50490 fi 50491 JIB_JAR=$(ls ${JIB_HOME}/lib/jib-*.jar) 50492 if test ! -f "${JIB_JAR}"; then 50493 as_fn_error $? "Could not find jib jar file in ${JIB_HOME}" "$LINENO" 5 50494 fi 50495 fi 50496 50497 50498 50499 50500 50501 # COMPILER_TARGET_BITS_FLAG : option for selecting 32- or 64-bit output 50502 # COMPILER_COMMAND_FILE_FLAG : option for passing a command file to the compiler 50503 # COMPILER_BINDCMD_FILE_FLAG : option for specifying a file which saves the binder 50504 # commands produced by the link step (currently AIX only) 50505 if test "x$TOOLCHAIN_TYPE" = xxlc; then 50506 COMPILER_TARGET_BITS_FLAG="-q" 50507 COMPILER_COMMAND_FILE_FLAG="-f" 50508 COMPILER_BINDCMD_FILE_FLAG="-bloadmap:" 50509 else 50510 COMPILER_TARGET_BITS_FLAG="-m" 50511 COMPILER_COMMAND_FILE_FLAG="@" 50512 COMPILER_BINDCMD_FILE_FLAG="" 50513 50514 # The solstudio linker does not support @-files. 50515 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 50516 COMPILER_COMMAND_FILE_FLAG= 50517 fi 50518 50519 # Check if @file is supported by gcc 50520 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if @file is supported by gcc" >&5 50522 $as_echo_n "checking if @file is supported by gcc... " >&6; } 50523 # Extra emtpy "" to prevent ECHO from interpreting '--version' as argument 50524 $ECHO "" "--version" > command.file 50525 if $CXX @command.file 2>&5 >&5; then 50526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50527 $as_echo "yes" >&6; } 50528 COMPILER_COMMAND_FILE_FLAG="@" 50529 else 50530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50531 $as_echo "no" >&6; } 50532 COMPILER_COMMAND_FILE_FLAG= 50533 fi 50534 $RM command.file 50535 fi 50536 fi 50537 50538 50539 50540 50541 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 50542 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50543 ARFLAGS="-r" 50544 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50545 ARFLAGS="-X64" 50546 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 50547 # lib.exe is used as AR to create static libraries. 50548 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 50549 else 50550 ARFLAGS="" 50551 fi 50552 50553 50554 ## Setup strip. 50555 # FIXME: should this really be per platform, or should it be per toolchain type? 50556 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 50557 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 50558 if test "x$OPENJDK_TARGET_OS" = xlinux; then 50559 STRIPFLAGS="-g" 50560 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 50561 STRIPFLAGS="-x" 50562 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 50563 STRIPFLAGS="-S" 50564 elif test "x$OPENJDK_TARGET_OS" = xaix; then 50565 STRIPFLAGS="-X32_64" 50566 fi 50567 50568 50569 50570 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50571 CC_OUT_OPTION=-Fo 50572 EXE_OUT_OPTION=-out: 50573 LD_OUT_OPTION=-out: 50574 AR_OUT_OPTION=-out: 50575 else 50576 # The option used to specify the target .o,.a or .so file. 50577 # When compiling, how to specify the to be created object file. 50578 CC_OUT_OPTION='-o$(SPACE)' 50579 # When linking, how to specify the to be created executable. 50580 EXE_OUT_OPTION='-o$(SPACE)' 50581 # When linking, how to specify the to be created dynamically linkable library. 50582 LD_OUT_OPTION='-o$(SPACE)' 50583 # When archiving, how to specify the to be create static archive for object files. 50584 AR_OUT_OPTION='rcs$(SPACE)' 50585 fi 50586 50587 50588 50589 50590 50591 # On Windows, we need to set RC flags. 50592 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50593 RC_FLAGS="-nologo -l0x409" 50594 JVM_RCFLAGS="-nologo" 50595 if test "x$DEBUG_LEVEL" = xrelease; then 50596 RC_FLAGS="$RC_FLAGS -DNDEBUG" 50597 JVM_RCFLAGS="$JVM_RCFLAGS -DNDEBUG" 50598 fi 50599 50600 # The version variables used to create RC_FLAGS may be overridden 50601 # in a custom configure script, or possibly the command line. 50602 # Let those variables be expanded at make time in spec.gmk. 50603 # The \$ are escaped to the shell, and the $(...) variables 50604 # are evaluated by make. 50605 RC_FLAGS="$RC_FLAGS \ 50606 -D\"JDK_VERSION_STRING=\$(VERSION_STRING)\" \ 50607 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 50608 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 50609 -D\"JDK_VER=\$(VERSION_NUMBER)\" \ 50610 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 50611 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(VERSION_FEATURE)\" \ 50612 -D\"JDK_FVER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\"" 50613 50614 JVM_RCFLAGS="$JVM_RCFLAGS \ 50615 -D\"HS_BUILD_ID=\$(VERSION_STRING)\" \ 50616 -D\"HS_COMPANY=\$(COMPANY_NAME)\" \ 50617 -D\"JDK_DOTVER=\$(VERSION_NUMBER_FOUR_POSITIONS)\" \ 50618 -D\"HS_COPYRIGHT=Copyright $COPYRIGHT_YEAR\" \ 50619 -D\"HS_NAME=\$(PRODUCT_NAME) \$(VERSION_SHORT)\" \ 50620 -D\"JDK_VER=\$(subst .,\$(COMMA),\$(VERSION_NUMBER_FOUR_POSITIONS))\" \ 50621 -D\"HS_FNAME=jvm.dll\" \ 50622 -D\"HS_INTERNAL_NAME=jvm\"" 50623 fi 50624 50625 50626 50627 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 50628 # silence copyright notice and other headers. 50629 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 50630 fi 50631 50632 50633 # Now we can test some aspects on the target using configure macros. 50634 50635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 50636 $as_echo_n "checking for ANSI C header files... " >&6; } 50637 if ${ac_cv_header_stdc+:} false; then : 50638 $as_echo_n "(cached) " >&6 50639 else 50640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50641 /* end confdefs.h. */ 50642 #include <stdlib.h> 50643 #include <stdarg.h> 50644 #include <string.h> 50645 #include <float.h> 50646 50647 int 50648 main () 50649 { 50650 50651 ; 50652 return 0; 50653 } 50654 _ACEOF 50655 if ac_fn_cxx_try_compile "$LINENO"; then : 50656 ac_cv_header_stdc=yes 50657 else 50658 ac_cv_header_stdc=no 50659 fi 50660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50661 50662 if test $ac_cv_header_stdc = yes; then 50663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 50664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50665 /* end confdefs.h. */ 50666 #include <string.h> 50667 50668 _ACEOF 50669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50670 $EGREP "memchr" >/dev/null 2>&1; then : 50671 50672 else 50673 ac_cv_header_stdc=no 50674 fi 50675 rm -f conftest* 50676 50677 fi 50678 50679 if test $ac_cv_header_stdc = yes; then 50680 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 50681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50682 /* end confdefs.h. */ 50683 #include <stdlib.h> 50684 50685 _ACEOF 50686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 50687 $EGREP "free" >/dev/null 2>&1; then : 50688 50689 else 50690 ac_cv_header_stdc=no 50691 fi 50692 rm -f conftest* 50693 50694 fi 50695 50696 if test $ac_cv_header_stdc = yes; then 50697 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 50698 if test "$cross_compiling" = yes; then : 50699 : 50700 else 50701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50702 /* end confdefs.h. */ 50703 #include <ctype.h> 50704 #include <stdlib.h> 50705 #if ((' ' & 0x0FF) == 0x020) 50706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 50707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 50708 #else 50709 # define ISLOWER(c) \ 50710 (('a' <= (c) && (c) <= 'i') \ 50711 || ('j' <= (c) && (c) <= 'r') \ 50712 || ('s' <= (c) && (c) <= 'z')) 50713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 50714 #endif 50715 50716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 50717 int 50718 main () 50719 { 50720 int i; 50721 for (i = 0; i < 256; i++) 50722 if (XOR (islower (i), ISLOWER (i)) 50723 || toupper (i) != TOUPPER (i)) 50724 return 2; 50725 return 0; 50726 } 50727 _ACEOF 50728 if ac_fn_cxx_try_run "$LINENO"; then : 50729 50730 else 50731 ac_cv_header_stdc=no 50732 fi 50733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 50734 conftest.$ac_objext conftest.beam conftest.$ac_ext 50735 fi 50736 50737 fi 50738 fi 50739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 50740 $as_echo "$ac_cv_header_stdc" >&6; } 50741 if test $ac_cv_header_stdc = yes; then 50742 50743 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 50744 50745 fi 50746 50747 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 50748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 50749 inttypes.h stdint.h unistd.h 50750 do : 50751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 50752 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 50753 " 50754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 50755 cat >>confdefs.h <<_ACEOF 50756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 50757 _ACEOF 50758 50759 fi 50760 50761 done 50762 50763 50764 50765 ############################################################################### 50766 # 50767 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 50768 # (The JVM can use 32 or 64 bit Java pointers but that decision 50769 # is made at runtime.) 50770 # 50771 50772 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 50773 # Always specify -m flag on Solaris 50774 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 50775 50776 # When we add flags to the "official" CFLAGS etc, we need to 50777 # keep track of these additions in ADDED_CFLAGS etc. These 50778 # will later be checked to make sure only controlled additions 50779 # have been made to CFLAGS etc. 50780 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50781 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50782 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50783 50784 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50785 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50786 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50787 50788 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50789 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50790 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50791 50792 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50793 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50794 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50795 50796 elif test "x$COMPILE_TYPE" = xreduced; then 50797 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 50798 # Specify -m if running reduced on unix platforms 50799 50800 # When we add flags to the "official" CFLAGS etc, we need to 50801 # keep track of these additions in ADDED_CFLAGS etc. These 50802 # will later be checked to make sure only controlled additions 50803 # have been made to CFLAGS etc. 50804 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50805 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50806 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50807 50808 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50809 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50810 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50811 50812 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50813 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50814 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50815 50816 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50817 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50818 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50819 50820 fi 50821 fi 50822 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 50823 JVM_CFLAGS="$JVM_CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50824 JVM_LDFLAGS="$JVM_LDFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50825 JVM_ASFLAGS="$JVM_ASFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50826 fi 50827 50828 # Make compilation sanity check 50829 for ac_header in stdio.h 50830 do : 50831 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 50832 if test "x$ac_cv_header_stdio_h" = xyes; then : 50833 cat >>confdefs.h <<_ACEOF 50834 #define HAVE_STDIO_H 1 50835 _ACEOF 50836 50837 else 50838 50839 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 50840 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 50841 if test "x$COMPILE_TYPE" = xreduced; then 50842 50843 # Print a helpful message on how to acquire the necessary build dependency. 50844 # reduced is the help tag: freetype, cups, alsa etc 50845 MISSING_DEPENDENCY=reduced 50846 50847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50848 cygwin_help $MISSING_DEPENDENCY 50849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50850 msys_help $MISSING_DEPENDENCY 50851 else 50852 PKGHANDLER_COMMAND= 50853 50854 case $PKGHANDLER in 50855 apt-get) 50856 apt_help $MISSING_DEPENDENCY ;; 50857 yum) 50858 yum_help $MISSING_DEPENDENCY ;; 50859 brew) 50860 brew_help $MISSING_DEPENDENCY ;; 50861 port) 50862 port_help $MISSING_DEPENDENCY ;; 50863 pkgutil) 50864 pkgutil_help $MISSING_DEPENDENCY ;; 50865 pkgadd) 50866 pkgadd_help $MISSING_DEPENDENCY ;; 50867 esac 50868 50869 if test "x$PKGHANDLER_COMMAND" != x; then 50870 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 50871 fi 50872 fi 50873 50874 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 50875 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 50876 elif test "x$COMPILE_TYPE" = xcross; then 50877 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 50878 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 50879 fi 50880 as_fn_error $? "Cannot continue." "$LINENO" 5 50881 50882 fi 50883 50884 done 50885 50886 50887 # The cast to long int works around a bug in the HP C Compiler 50888 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50889 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50890 # This bug is HP SR number 8606223364. 50891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50892 $as_echo_n "checking size of int *... " >&6; } 50893 if ${ac_cv_sizeof_int_p+:} false; then : 50894 $as_echo_n "(cached) " >&6 50895 else 50896 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50897 50898 else 50899 if test "$ac_cv_type_int_p" = yes; then 50900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50902 as_fn_error 77 "cannot compute sizeof (int *) 50903 See \`config.log' for more details" "$LINENO" 5; } 50904 else 50905 ac_cv_sizeof_int_p=0 50906 fi 50907 fi 50908 50909 fi 50910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50911 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50912 50913 50914 50915 cat >>confdefs.h <<_ACEOF 50916 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50917 _ACEOF 50918 50919 50920 50921 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 50922 if test "x$ac_cv_sizeof_int_p" = x; then 50923 # The test failed, lets stick to the assumed value. 50924 { $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 50925 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 50926 else 50927 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 50928 50929 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 50930 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 50931 # Let's try to implicitely set the compilers target architecture and retry the test 50932 { $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 50933 $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;} 50934 { $as_echo "$as_me:${as_lineno-$LINENO}: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 50935 $as_echo "$as_me: Retrying with platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 50936 50937 # When we add flags to the "official" CFLAGS etc, we need to 50938 # keep track of these additions in ADDED_CFLAGS etc. These 50939 # will later be checked to make sure only controlled additions 50940 # have been made to CFLAGS etc. 50941 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50942 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50943 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 50944 50945 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 50946 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 50947 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 50948 50949 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 50950 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 50951 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 50952 50953 JVM_CFLAGS="$JVM_CFLAGS $ADDED_CFLAGS" 50954 JVM_LDFLAGS="$JVM_LDFLAGS $ADDED_LDFLAGS" 50955 JVM_ASFLAGS="$JVM_ASFLAGS $ADDED_CFLAGS" 50956 50957 50958 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 50959 unset ac_cv_sizeof_int_p 50960 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 50961 cat >>confdefs.h <<_ACEOF 50962 #undef SIZEOF_INT_P 50963 _ACEOF 50964 50965 # The cast to long int works around a bug in the HP C Compiler 50966 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 50967 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 50968 # This bug is HP SR number 8606223364. 50969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 50970 $as_echo_n "checking size of int *... " >&6; } 50971 if ${ac_cv_sizeof_int_p+:} false; then : 50972 $as_echo_n "(cached) " >&6 50973 else 50974 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 50975 50976 else 50977 if test "$ac_cv_type_int_p" = yes; then 50978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 50979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 50980 as_fn_error 77 "cannot compute sizeof (int *) 50981 See \`config.log' for more details" "$LINENO" 5; } 50982 else 50983 ac_cv_sizeof_int_p=0 50984 fi 50985 fi 50986 50987 fi 50988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 50989 $as_echo "$ac_cv_sizeof_int_p" >&6; } 50990 50991 50992 50993 cat >>confdefs.h <<_ACEOF 50994 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 50995 _ACEOF 50996 50997 50998 50999 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 51000 51001 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 51002 { $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 51003 $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;} 51004 if test "x$COMPILE_TYPE" = xreduced; then 51005 51006 # Print a helpful message on how to acquire the necessary build dependency. 51007 # reduced is the help tag: freetype, cups, alsa etc 51008 MISSING_DEPENDENCY=reduced 51009 51010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51011 cygwin_help $MISSING_DEPENDENCY 51012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51013 msys_help $MISSING_DEPENDENCY 51014 else 51015 PKGHANDLER_COMMAND= 51016 51017 case $PKGHANDLER in 51018 apt-get) 51019 apt_help $MISSING_DEPENDENCY ;; 51020 yum) 51021 yum_help $MISSING_DEPENDENCY ;; 51022 brew) 51023 brew_help $MISSING_DEPENDENCY ;; 51024 port) 51025 port_help $MISSING_DEPENDENCY ;; 51026 pkgutil) 51027 pkgutil_help $MISSING_DEPENDENCY ;; 51028 pkgadd) 51029 pkgadd_help $MISSING_DEPENDENCY ;; 51030 esac 51031 51032 if test "x$PKGHANDLER_COMMAND" != x; then 51033 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 51034 fi 51035 fi 51036 51037 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&5 51038 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed. $HELP_MSG" >&6;} 51039 elif test "x$COMPILE_TYPE" = xcross; then 51040 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 51041 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 51042 fi 51043 as_fn_error $? "Cannot continue." "$LINENO" 5 51044 fi 51045 fi 51046 fi 51047 51048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 51049 $as_echo_n "checking for target address size... " >&6; } 51050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 51051 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 51052 51053 51054 ############################################################################### 51055 # 51056 # Is the target little of big endian? 51057 # 51058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 51059 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 51060 if ${ac_cv_c_bigendian+:} false; then : 51061 $as_echo_n "(cached) " >&6 51062 else 51063 ac_cv_c_bigendian=unknown 51064 # See if we're dealing with a universal compiler. 51065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51066 /* end confdefs.h. */ 51067 #ifndef __APPLE_CC__ 51068 not a universal capable compiler 51069 #endif 51070 typedef int dummy; 51071 51072 _ACEOF 51073 if ac_fn_cxx_try_compile "$LINENO"; then : 51074 51075 # Check for potential -arch flags. It is not universal unless 51076 # there are at least two -arch flags with different values. 51077 ac_arch= 51078 ac_prev= 51079 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 51080 if test -n "$ac_prev"; then 51081 case $ac_word in 51082 i?86 | x86_64 | ppc | ppc64) 51083 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 51084 ac_arch=$ac_word 51085 else 51086 ac_cv_c_bigendian=universal 51087 break 51088 fi 51089 ;; 51090 esac 51091 ac_prev= 51092 elif test "x$ac_word" = "x-arch"; then 51093 ac_prev=arch 51094 fi 51095 done 51096 fi 51097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51098 if test $ac_cv_c_bigendian = unknown; then 51099 # See if sys/param.h defines the BYTE_ORDER macro. 51100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51101 /* end confdefs.h. */ 51102 #include <sys/types.h> 51103 #include <sys/param.h> 51104 51105 int 51106 main () 51107 { 51108 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 51109 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 51110 && LITTLE_ENDIAN) 51111 bogus endian macros 51112 #endif 51113 51114 ; 51115 return 0; 51116 } 51117 _ACEOF 51118 if ac_fn_cxx_try_compile "$LINENO"; then : 51119 # It does; now see whether it defined to BIG_ENDIAN or not. 51120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51121 /* end confdefs.h. */ 51122 #include <sys/types.h> 51123 #include <sys/param.h> 51124 51125 int 51126 main () 51127 { 51128 #if BYTE_ORDER != BIG_ENDIAN 51129 not big endian 51130 #endif 51131 51132 ; 51133 return 0; 51134 } 51135 _ACEOF 51136 if ac_fn_cxx_try_compile "$LINENO"; then : 51137 ac_cv_c_bigendian=yes 51138 else 51139 ac_cv_c_bigendian=no 51140 fi 51141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51142 fi 51143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51144 fi 51145 if test $ac_cv_c_bigendian = unknown; then 51146 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 51147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51148 /* end confdefs.h. */ 51149 #include <limits.h> 51150 51151 int 51152 main () 51153 { 51154 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 51155 bogus endian macros 51156 #endif 51157 51158 ; 51159 return 0; 51160 } 51161 _ACEOF 51162 if ac_fn_cxx_try_compile "$LINENO"; then : 51163 # It does; now see whether it defined to _BIG_ENDIAN or not. 51164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51165 /* end confdefs.h. */ 51166 #include <limits.h> 51167 51168 int 51169 main () 51170 { 51171 #ifndef _BIG_ENDIAN 51172 not big endian 51173 #endif 51174 51175 ; 51176 return 0; 51177 } 51178 _ACEOF 51179 if ac_fn_cxx_try_compile "$LINENO"; then : 51180 ac_cv_c_bigendian=yes 51181 else 51182 ac_cv_c_bigendian=no 51183 fi 51184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51185 fi 51186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51187 fi 51188 if test $ac_cv_c_bigendian = unknown; then 51189 # Compile a test program. 51190 if test "$cross_compiling" = yes; then : 51191 # Try to guess by grepping values from an object file. 51192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51193 /* end confdefs.h. */ 51194 short int ascii_mm[] = 51195 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 51196 short int ascii_ii[] = 51197 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 51198 int use_ascii (int i) { 51199 return ascii_mm[i] + ascii_ii[i]; 51200 } 51201 short int ebcdic_ii[] = 51202 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 51203 short int ebcdic_mm[] = 51204 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 51205 int use_ebcdic (int i) { 51206 return ebcdic_mm[i] + ebcdic_ii[i]; 51207 } 51208 extern int foo; 51209 51210 int 51211 main () 51212 { 51213 return use_ascii (foo) == use_ebcdic (foo); 51214 ; 51215 return 0; 51216 } 51217 _ACEOF 51218 if ac_fn_cxx_try_compile "$LINENO"; then : 51219 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 51220 ac_cv_c_bigendian=yes 51221 fi 51222 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 51223 if test "$ac_cv_c_bigendian" = unknown; then 51224 ac_cv_c_bigendian=no 51225 else 51226 # finding both strings is unlikely to happen, but who knows? 51227 ac_cv_c_bigendian=unknown 51228 fi 51229 fi 51230 fi 51231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51232 else 51233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51234 /* end confdefs.h. */ 51235 $ac_includes_default 51236 int 51237 main () 51238 { 51239 51240 /* Are we little or big endian? From Harbison&Steele. */ 51241 union 51242 { 51243 long int l; 51244 char c[sizeof (long int)]; 51245 } u; 51246 u.l = 1; 51247 return u.c[sizeof (long int) - 1] == 1; 51248 51249 ; 51250 return 0; 51251 } 51252 _ACEOF 51253 if ac_fn_cxx_try_run "$LINENO"; then : 51254 ac_cv_c_bigendian=no 51255 else 51256 ac_cv_c_bigendian=yes 51257 fi 51258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 51259 conftest.$ac_objext conftest.beam conftest.$ac_ext 51260 fi 51261 51262 fi 51263 fi 51264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 51265 $as_echo "$ac_cv_c_bigendian" >&6; } 51266 case $ac_cv_c_bigendian in #( 51267 yes) 51268 ENDIAN="big";; #( 51269 no) 51270 ENDIAN="little" ;; #( 51271 universal) 51272 ENDIAN="universal_endianness" 51273 ;; #( 51274 *) 51275 ENDIAN="unknown" ;; 51276 esac 51277 51278 51279 if test "x$ENDIAN" = xuniversal_endianness; then 51280 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 51281 fi 51282 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 51283 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 51284 fi 51285 51286 51287 # Configure flags for the tools 51288 51289 ############################################################################### 51290 # 51291 # How to compile shared libraries. 51292 # 51293 51294 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51295 PICFLAG="-fPIC" 51296 C_FLAG_REORDER='' 51297 CXX_FLAG_REORDER='' 51298 51299 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51300 # Linking is different on MacOSX 51301 if test "x$STATIC_BUILD" = xtrue; then 51302 SHARED_LIBRARY_FLAGS ='-undefined dynamic_lookup' 51303 else 51304 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51305 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51306 fi 51307 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51308 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51309 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51310 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51311 else 51312 # Default works for linux, might work on other platforms as well. 51313 SHARED_LIBRARY_FLAGS='-shared' 51314 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51315 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51316 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51317 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51318 fi 51319 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51320 C_FLAG_REORDER='' 51321 CXX_FLAG_REORDER='' 51322 51323 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51324 # Linking is different on MacOSX 51325 PICFLAG='' 51326 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 51327 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,@loader_path$(or $1,/.)' 51328 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51329 SET_SHARED_LIBRARY_NAME='-Wl,-install_name,@rpath/$1' 51330 SET_SHARED_LIBRARY_MAPFILE='-Wl,-exported_symbols_list,$1' 51331 51332 if test "x$STATIC_BUILD" = xfalse; then 51333 JVM_CFLAGS="$JVM_CFLAGS -fPIC" 51334 fi 51335 else 51336 # Default works for linux, might work on other platforms as well. 51337 PICFLAG='-fPIC' 51338 SHARED_LIBRARY_FLAGS='-shared' 51339 SET_EXECUTABLE_ORIGIN='-Wl,-rpath,\$$ORIGIN$1' 51340 SET_SHARED_LIBRARY_NAME='-Wl,-soname=$1' 51341 SET_SHARED_LIBRARY_MAPFILE='-Wl,-version-script=$1' 51342 51343 # arm specific settings 51344 if test "x$OPENJDK_TARGET_CPU" = "xarm"; then 51345 # '-Wl,-z,origin' isn't used on arm. 51346 SET_SHARED_LIBRARY_ORIGIN='-Wl,-rpath,\$$$$ORIGIN$1' 51347 else 51348 SET_SHARED_LIBRARY_ORIGIN="-Wl,-z,origin $SET_EXECUTABLE_ORIGIN" 51349 fi 51350 51351 fi 51352 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51353 if test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 51354 PICFLAG="-xcode=pic32" 51355 else 51356 PICFLAG="-KPIC" 51357 fi 51358 C_FLAG_REORDER='-xF' 51359 CXX_FLAG_REORDER='-xF' 51360 SHARED_LIBRARY_FLAGS="-G" 51361 SET_EXECUTABLE_ORIGIN='-R\$$ORIGIN$1' 51362 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 51363 SET_SHARED_LIBRARY_NAME='-h $1' 51364 SET_SHARED_LIBRARY_MAPFILE='-M$1' 51365 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51366 # '-qpic' defaults to 'qpic=small'. This means that the compiler generates only 51367 # one instruction for accessing the TOC. If the TOC grows larger than 64K, the linker 51368 # will have to patch this single instruction with a call to some out-of-order code which 51369 # does the load from the TOC. This is of course slow. But in that case we also would have 51370 # to use '-bbigtoc' for linking anyway so we could also change the PICFLAG to 'qpic=large'. 51371 # With 'qpic=large' the compiler will by default generate a two-instruction sequence which 51372 # can be patched directly by the linker and does not require a jump to out-of-order code. 51373 # Another alternative instead of using 'qpic=large -bbigtoc' may be to use '-qminimaltoc' 51374 # instead. This creates a distinct TOC for every compilation unit (and thus requires two 51375 # loads for accessing a global variable). But there are rumors that this may be seen as a 51376 # 'performance feature' because of improved code locality of the symbols used in a 51377 # compilation unit. 51378 PICFLAG="-qpic" 51379 JVM_CFLAGS="$JVM_CFLAGS $PICFLAG" 51380 C_FLAG_REORDER='' 51381 CXX_FLAG_REORDER='' 51382 SHARED_LIBRARY_FLAGS="-qmkshrobj -bM:SRE -bnoentry" 51383 SET_EXECUTABLE_ORIGIN="" 51384 SET_SHARED_LIBRARY_ORIGIN='' 51385 SET_SHARED_LIBRARY_NAME='' 51386 SET_SHARED_LIBRARY_MAPFILE='' 51387 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51388 PICFLAG="" 51389 C_FLAG_REORDER='' 51390 CXX_FLAG_REORDER='' 51391 SHARED_LIBRARY_FLAGS="-dll" 51392 SET_EXECUTABLE_ORIGIN='' 51393 SET_SHARED_LIBRARY_ORIGIN='' 51394 SET_SHARED_LIBRARY_NAME='' 51395 SET_SHARED_LIBRARY_MAPFILE='-def:$1' 51396 fi 51397 51398 51399 51400 51401 51402 51403 51404 51405 51406 # The (cross) compiler is now configured, we can now test capabilities 51407 # of the target platform. 51408 51409 51410 51411 ############################################################################### 51412 # 51413 # Setup the opt flags for different compilers 51414 # and different operating systems. 51415 # 51416 51417 # FIXME: this was indirectly the old default, but just inherited. 51418 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51419 # C_FLAG_DEPS="-MMD -MF" 51420 # fi 51421 51422 # Generate make dependency files 51423 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51424 C_FLAG_DEPS="-MMD -MF" 51425 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51426 C_FLAG_DEPS="-MMD -MF" 51427 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51428 C_FLAG_DEPS="-xMMD -xMF" 51429 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51430 C_FLAG_DEPS="-qmakedep=gcc -MF" 51431 fi 51432 CXX_FLAG_DEPS="$C_FLAG_DEPS" 51433 51434 51435 51436 # Debug symbols 51437 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51438 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 51439 # reduce from default "-g2" option to save space 51440 CFLAGS_DEBUG_SYMBOLS="-g1" 51441 CXXFLAGS_DEBUG_SYMBOLS="-g1" 51442 else 51443 CFLAGS_DEBUG_SYMBOLS="-g" 51444 CXXFLAGS_DEBUG_SYMBOLS="-g" 51445 fi 51446 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51447 CFLAGS_DEBUG_SYMBOLS="-g" 51448 CXXFLAGS_DEBUG_SYMBOLS="-g" 51449 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51450 CFLAGS_DEBUG_SYMBOLS="-g -xs" 51451 # -g0 enables debug symbols without disabling inlining. 51452 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 51453 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51454 CFLAGS_DEBUG_SYMBOLS="-g" 51455 CXXFLAGS_DEBUG_SYMBOLS="-g" 51456 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51457 CFLAGS_DEBUG_SYMBOLS="-Zi" 51458 CXXFLAGS_DEBUG_SYMBOLS="-Zi" 51459 fi 51460 51461 51462 51463 # Debug symbols for JVM_CFLAGS 51464 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51465 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -xs" 51466 if test "x$DEBUG_LEVEL" = xslowdebug; then 51467 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51468 else 51469 # -g0 does not disable inlining, which -g does. 51470 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g0" 51471 fi 51472 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51473 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -Z7 -d2Zi+" 51474 else 51475 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS -g" 51476 fi 51477 51478 51479 # bounds, memory and behavior checking options 51480 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51481 case $DEBUG_LEVEL in 51482 release ) 51483 # no adjustment 51484 ;; 51485 fastdebug ) 51486 # no adjustment 51487 ;; 51488 slowdebug ) 51489 # FIXME: By adding this to C(XX)FLAGS_DEBUG_OPTIONS/JVM_CFLAGS_SYMBOLS it 51490 # get's added conditionally on whether we produce debug symbols or not. 51491 # This is most likely not really correct. 51492 51493 # Add runtime stack smashing and undefined behavior checks. 51494 # Not all versions of gcc support -fstack-protector 51495 STACK_PROTECTOR_CFLAG="-fstack-protector-all" 51496 51497 51498 51499 51500 51501 51502 51503 51504 51505 51506 51507 51508 51509 51510 51511 51512 51513 51514 51515 51516 51517 51518 51519 51520 51521 51522 51523 51524 51525 51526 51527 51528 51529 51530 51531 51532 51533 51534 51535 51536 51537 51538 # Execute function body 51539 51540 51541 51542 51543 51544 51545 51546 51547 51548 51549 51550 51551 51552 51553 51554 51555 51556 51557 51558 51559 51560 51561 51562 51563 51564 51565 51566 51567 51568 51569 51570 51571 51572 51573 51574 51575 51576 51577 51578 51579 51580 51581 51582 51583 51584 51585 51586 51587 # Execute function body 51588 51589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51590 $as_echo_n "checking if the C compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51591 supports=yes 51592 51593 saved_cflags="$CFLAGS" 51594 CFLAGS="$CFLAGS $STACK_PROTECTOR_CFLAG -Werror" 51595 ac_ext=c 51596 ac_cpp='$CPP $CPPFLAGS' 51597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51599 ac_compiler_gnu=$ac_cv_c_compiler_gnu 51600 51601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51602 /* end confdefs.h. */ 51603 int i; 51604 _ACEOF 51605 if ac_fn_c_try_compile "$LINENO"; then : 51606 51607 else 51608 supports=no 51609 fi 51610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51611 ac_ext=cpp 51612 ac_cpp='$CXXCPP $CPPFLAGS' 51613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51616 51617 CFLAGS="$saved_cflags" 51618 51619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51620 $as_echo "$supports" >&6; } 51621 if test "x$supports" = "xyes" ; then 51622 : 51623 C_COMP_SUPPORTS="yes" 51624 else 51625 : 51626 C_COMP_SUPPORTS="no" 51627 fi 51628 51629 51630 51631 51632 51633 51634 51635 51636 51637 51638 51639 51640 51641 51642 51643 51644 51645 51646 51647 51648 51649 51650 51651 51652 51653 51654 51655 51656 51657 51658 51659 51660 51661 51662 51663 51664 51665 51666 51667 51668 51669 51670 51671 51672 51673 51674 51675 51676 51677 51678 51679 51680 51681 51682 51683 51684 51685 51686 51687 # Execute function body 51688 51689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51690 $as_echo_n "checking if the C++ compiler supports \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51691 supports=yes 51692 51693 saved_cxxflags="$CXXFLAGS" 51694 CXXFLAGS="$CXXFLAG $STACK_PROTECTOR_CFLAG -Werror" 51695 ac_ext=cpp 51696 ac_cpp='$CXXCPP $CPPFLAGS' 51697 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51698 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51699 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51700 51701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51702 /* end confdefs.h. */ 51703 int i; 51704 _ACEOF 51705 if ac_fn_cxx_try_compile "$LINENO"; then : 51706 51707 else 51708 supports=no 51709 fi 51710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51711 ac_ext=cpp 51712 ac_cpp='$CXXCPP $CPPFLAGS' 51713 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 51714 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 51715 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 51716 51717 CXXFLAGS="$saved_cxxflags" 51718 51719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51720 $as_echo "$supports" >&6; } 51721 if test "x$supports" = "xyes" ; then 51722 : 51723 CXX_COMP_SUPPORTS="yes" 51724 else 51725 : 51726 CXX_COMP_SUPPORTS="no" 51727 fi 51728 51729 51730 51731 51732 51733 51734 51735 51736 51737 51738 51739 51740 51741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"" >&5 51742 $as_echo_n "checking if both compilers support \"$STACK_PROTECTOR_CFLAG -Werror\"... " >&6; } 51743 supports=no 51744 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 51745 51746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 51747 $as_echo "$supports" >&6; } 51748 if test "x$supports" = "xyes" ; then 51749 : 51750 51751 else 51752 : 51753 STACK_PROTECTOR_CFLAG="" 51754 fi 51755 51756 51757 51758 51759 51760 51761 51762 CFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51763 CXXFLAGS_DEBUG_OPTIONS="$STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51764 if test "x$STACK_PROTECTOR_CFLAG" != x; then 51765 JVM_CFLAGS_SYMBOLS="$JVM_CFLAGS_SYMBOLS $STACK_PROTECTOR_CFLAG --param ssp-buffer-size=1" 51766 fi 51767 ;; 51768 esac 51769 fi 51770 51771 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51772 if test "x$DEBUG_LEVEL" != xrelease; then 51773 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 51774 JVM_CFLAGS="$JVM_CFLAGS -homeparams" 51775 fi 51776 fi 51777 fi 51778 51779 # Optimization levels 51780 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 51781 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 51782 51783 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 51784 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 51785 C_O_FLAG_HIGHEST_JVM="-xO4" 51786 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 51787 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 51788 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 51789 C_O_FLAG_DEBUG="-xregs=no%frameptr" 51790 C_O_FLAG_DEBUG_JVM="" 51791 C_O_FLAG_NONE="-xregs=no%frameptr" 51792 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51793 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 51794 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 51795 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 51796 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 51797 CXX_O_FLAG_DEBUG_JVM="" 51798 CXX_O_FLAG_NONE="-xregs=no%frameptr" 51799 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 51800 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 51801 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 51802 fi 51803 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 51804 C_O_FLAG_HIGHEST_JVM="-xO4" 51805 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 51806 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51807 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 51808 C_O_FLAG_DEBUG="" 51809 C_O_FLAG_DEBUG_JVM="" 51810 C_O_FLAG_NONE="" 51811 CXX_O_FLAG_HIGHEST_JVM="-xO4" 51812 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 51813 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51814 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 51815 CXX_O_FLAG_DEBUG="" 51816 CXX_O_FLAG_DEBUG_JVM="" 51817 CXX_O_FLAG_NONE="" 51818 fi 51819 else 51820 # The remaining toolchains share opt flags between CC and CXX; 51821 # setup for C and duplicate afterwards. 51822 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51823 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51824 # On MacOSX we optimize for size, something 51825 # we should do for all platforms? 51826 C_O_FLAG_HIGHEST_JVM="-Os" 51827 C_O_FLAG_HIGHEST="-Os" 51828 C_O_FLAG_HI="-Os" 51829 C_O_FLAG_NORM="-Os" 51830 C_O_FLAG_SIZE="-Os" 51831 else 51832 C_O_FLAG_HIGHEST_JVM="-O3" 51833 C_O_FLAG_HIGHEST="-O3" 51834 C_O_FLAG_HI="-O3" 51835 C_O_FLAG_NORM="-O2" 51836 C_O_FLAG_SIZE="-Os" 51837 fi 51838 C_O_FLAG_DEBUG="-O0" 51839 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51840 C_O_FLAG_DEBUG_JVM="" 51841 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51842 C_O_FLAG_DEBUG_JVM="-O0" 51843 fi 51844 C_O_FLAG_NONE="-O0" 51845 elif test "x$TOOLCHAIN_TYPE" = xclang; then 51846 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51847 # On MacOSX we optimize for size, something 51848 # we should do for all platforms? 51849 C_O_FLAG_HIGHEST_JVM="-Os" 51850 C_O_FLAG_HIGHEST="-Os" 51851 C_O_FLAG_HI="-Os" 51852 C_O_FLAG_NORM="-Os" 51853 C_O_FLAG_SIZE="-Os" 51854 else 51855 C_O_FLAG_HIGHEST_JVM="-O3" 51856 C_O_FLAG_HIGHEST="-O3" 51857 C_O_FLAG_HI="-O3" 51858 C_O_FLAG_NORM="-O2" 51859 C_O_FLAG_SIZE="-Os" 51860 fi 51861 C_O_FLAG_DEBUG="-O0" 51862 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 51863 C_O_FLAG_DEBUG_JVM="" 51864 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 51865 C_O_FLAG_DEBUG_JVM="-O0" 51866 fi 51867 C_O_FLAG_NONE="-O0" 51868 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 51869 C_O_FLAG_HIGHEST_JVM="-O3 -qhot=level=1 -qinline -qinlglue" 51870 C_O_FLAG_HIGHEST="-O3 -qhot=level=1 -qinline -qinlglue" 51871 C_O_FLAG_HI="-O3 -qinline -qinlglue" 51872 C_O_FLAG_NORM="-O2" 51873 C_O_FLAG_DEBUG="-qnoopt" 51874 # FIXME: Value below not verified. 51875 C_O_FLAG_DEBUG_JVM="" 51876 C_O_FLAG_NONE="-qnoopt" 51877 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 51878 C_O_FLAG_HIGHEST_JVM="-O2 -Oy-" 51879 C_O_FLAG_HIGHEST="-O2" 51880 C_O_FLAG_HI="-O1" 51881 C_O_FLAG_NORM="-O1" 51882 C_O_FLAG_DEBUG="-Od" 51883 C_O_FLAG_DEBUG_JVM="" 51884 C_O_FLAG_NONE="-Od" 51885 C_O_FLAG_SIZE="-Os" 51886 fi 51887 CXX_O_FLAG_HIGHEST_JVM="$C_O_FLAG_HIGHEST_JVM" 51888 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 51889 CXX_O_FLAG_HI="$C_O_FLAG_HI" 51890 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 51891 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 51892 CXX_O_FLAG_DEBUG_JVM="$C_O_FLAG_DEBUG_JVM" 51893 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 51894 CXX_O_FLAG_SIZE="$C_O_FLAG_SIZE" 51895 fi 51896 51897 # Adjust optimization flags according to debug level. 51898 case $DEBUG_LEVEL in 51899 release ) 51900 # no adjustment 51901 ;; 51902 fastdebug ) 51903 # Not quite so much optimization 51904 C_O_FLAG_HI="$C_O_FLAG_NORM" 51905 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 51906 ;; 51907 slowdebug ) 51908 # Disable optimization 51909 C_O_FLAG_HIGHEST_JVM="$C_O_FLAG_DEBUG_JVM" 51910 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 51911 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 51912 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 51913 C_O_FLAG_SIZE="$C_O_FLAG_DEBUG" 51914 CXX_O_FLAG_HIGHEST_JVM="$CXX_O_FLAG_DEBUG_JVM" 51915 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 51916 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 51917 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 51918 CXX_O_FLAG_SIZE="$CXX_O_FLAG_DEBUG" 51919 ;; 51920 esac 51921 51922 51923 51924 51925 51926 51927 51928 51929 51930 51931 51932 51933 51934 51935 51936 51937 51938 51939 51940 51941 # Check whether --with-abi-profile was given. 51942 if test "${with_abi_profile+set}" = set; then : 51943 withval=$with_abi_profile; 51944 fi 51945 51946 51947 if test "x$with_abi_profile" != x; then 51948 if test "x$OPENJDK_TARGET_CPU" != xarm && \ 51949 test "x$OPENJDK_TARGET_CPU" != xaarch64; then 51950 as_fn_error $? "--with-abi-profile only available on arm/aarch64" "$LINENO" 5 51951 fi 51952 51953 OPENJDK_TARGET_ABI_PROFILE=$with_abi_profile 51954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI profle" >&5 51955 $as_echo_n "checking for ABI profle... " >&6; } 51956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_ABI_PROFILE" >&5 51957 $as_echo "$OPENJDK_TARGET_ABI_PROFILE" >&6; } 51958 51959 if test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-sflt; then 51960 ARM_FLOAT_TYPE=vfp-sflt 51961 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51962 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-vfp-hflt; then 51963 ARM_FLOAT_TYPE=vfp-hflt 51964 ARM_ARCH_TYPE_FLAGS='-march=armv7-a -mthumb' 51965 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm-sflt; then 51966 ARM_FLOAT_TYPE=sflt 51967 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51968 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv5-vfp-sflt; then 51969 ARM_FLOAT_TYPE=vfp-sflt 51970 ARM_ARCH_TYPE_FLAGS='-march=armv5t -marm' 51971 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarmv6-vfp-hflt; then 51972 ARM_FLOAT_TYPE=vfp-hflt 51973 ARM_ARCH_TYPE_FLAGS='-march=armv6 -marm' 51974 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xarm64; then 51975 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51976 ARM_FLOAT_TYPE= 51977 ARM_ARCH_TYPE_FLAGS= 51978 elif test "x$OPENJDK_TARGET_ABI_PROFILE" = xaarch64; then 51979 # No special flags, just need to trigger setting JDK_ARCH_ABI_PROP_NAME 51980 ARM_FLOAT_TYPE= 51981 ARM_ARCH_TYPE_FLAGS= 51982 else 51983 as_fn_error $? "Invalid ABI profile: \"$OPENJDK_TARGET_ABI_PROFILE\"" "$LINENO" 5 51984 fi 51985 51986 if test "x$ARM_FLOAT_TYPE" = xvfp-sflt; then 51987 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=softfp -mfpu=vfp -DFLOAT_ARCH=-vfp-sflt' 51988 elif test "x$ARM_FLOAT_TYPE" = xvfp-hflt; then 51989 ARM_FLOAT_TYPE_FLAGS='-mfloat-abi=hard -mfpu=vfp -DFLOAT_ARCH=-vfp-hflt' 51990 elif test "x$ARM_FLOAT_TYPE" = xsflt; then 51991 ARM_FLOAT_TYPE_FLAGS='-msoft-float -mfpu=vfp' 51992 fi 51993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ARM_FLOAT_TYPE floating point flags" >&5 51994 $as_echo_n "checking for $ARM_FLOAT_TYPE floating point flags... " >&6; } 51995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_FLOAT_TYPE_FLAGS" >&5 51996 $as_echo "$ARM_FLOAT_TYPE_FLAGS" >&6; } 51997 51998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for arch type flags" >&5 51999 $as_echo_n "checking for arch type flags... " >&6; } 52000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARM_ARCH_TYPE_FLAGS" >&5 52001 $as_echo "$ARM_ARCH_TYPE_FLAGS" >&6; } 52002 52003 # Now set JDK_ARCH_ABI_PROP_NAME. This is equivalent to the last part of the 52004 # autoconf target triplet. 52005 JDK_ARCH_ABI_PROP_NAME=`$ECHO $OPENJDK_TARGET_AUTOCONF_NAME | $SED -e 's/.*-\([^-]*\)$/\1/'` 52006 # Sanity check that it is a known ABI. 52007 if test "x$JDK_ARCH_ABI_PROP_NAME" != xgnu && \ 52008 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabi && \ 52009 test "x$JDK_ARCH_ABI_PROP_NAME" != xgnueabihf; then 52010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&5 52011 $as_echo "$as_me: WARNING: Unknown autoconf target triplet ABI: \"$JDK_ARCH_ABI_PROP_NAME\"" >&2;} 52012 fi 52013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ABI property name" >&5 52014 $as_echo_n "checking for ABI property name... " >&6; } 52015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_ARCH_ABI_PROP_NAME" >&5 52016 $as_echo "$JDK_ARCH_ABI_PROP_NAME" >&6; } 52017 52018 52019 # Pass these on to the open part of configure as if they were set using 52020 # --with-extra-c[xx]flags. 52021 EXTRA_CFLAGS="$EXTRA_CFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52022 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52023 # Get rid of annoying "note: the mangling of 'va_list' has changed in GCC 4.4" 52024 # FIXME: This should not really be set using extra_cflags. 52025 if test "x$OPENJDK_TARGET_CPU" = xarm; then 52026 EXTRA_CFLAGS="$EXTRA_CFLAGS -Wno-psabi" 52027 EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -Wno-psabi" 52028 fi 52029 # Also add JDK_ARCH_ABI_PROP_NAME define, but only to CFLAGS. 52030 EXTRA_CFLAGS="$EXTRA_CFLAGS -DJDK_ARCH_ABI_PROP_NAME='\"\$(JDK_ARCH_ABI_PROP_NAME)\"'" 52031 # And pass the architecture flags to the linker as well 52032 EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ARM_ARCH_TYPE_FLAGS $ARM_FLOAT_TYPE_FLAGS" 52033 fi 52034 52035 # When building with an abi profile, the name of that profile is appended on the 52036 # bundle platform, which is used in bundle names. 52037 if test "x$OPENJDK_TARGET_ABI_PROFILE" != x; then 52038 OPENJDK_TARGET_BUNDLE_PLATFORM="$OPENJDK_TARGET_OS_BUNDLE-$OPENJDK_TARGET_ABI_PROFILE" 52039 fi 52040 52041 52042 # Optional POSIX functionality needed by the JVM 52043 # 52044 # Check if clock_gettime is available and in which library. This indicates 52045 # availability of CLOCK_MONOTONIC for hotspot. But we don't need to link, so 52046 # don't let it update LIBS. 52047 save_LIBS="$LIBS" 52048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5 52049 $as_echo_n "checking for library containing clock_gettime... " >&6; } 52050 if ${ac_cv_search_clock_gettime+:} false; then : 52051 $as_echo_n "(cached) " >&6 52052 else 52053 ac_func_search_save_LIBS=$LIBS 52054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52055 /* end confdefs.h. */ 52056 52057 /* Override any GCC internal prototype to avoid an error. 52058 Use char because int might match the return type of a GCC 52059 builtin and then its argument prototype would still apply. */ 52060 #ifdef __cplusplus 52061 extern "C" 52062 #endif 52063 char clock_gettime (); 52064 int 52065 main () 52066 { 52067 return clock_gettime (); 52068 ; 52069 return 0; 52070 } 52071 _ACEOF 52072 for ac_lib in '' rt; do 52073 if test -z "$ac_lib"; then 52074 ac_res="none required" 52075 else 52076 ac_res=-l$ac_lib 52077 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 52078 fi 52079 if ac_fn_cxx_try_link "$LINENO"; then : 52080 ac_cv_search_clock_gettime=$ac_res 52081 fi 52082 rm -f core conftest.err conftest.$ac_objext \ 52083 conftest$ac_exeext 52084 if ${ac_cv_search_clock_gettime+:} false; then : 52085 break 52086 fi 52087 done 52088 if ${ac_cv_search_clock_gettime+:} false; then : 52089 52090 else 52091 ac_cv_search_clock_gettime=no 52092 fi 52093 rm conftest.$ac_ext 52094 LIBS=$ac_func_search_save_LIBS 52095 fi 52096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5 52097 $as_echo "$ac_cv_search_clock_gettime" >&6; } 52098 ac_res=$ac_cv_search_clock_gettime 52099 if test "$ac_res" != no; then : 52100 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 52101 HAS_CLOCK_GETTIME=true 52102 fi 52103 52104 if test "x$LIBS" = "x-lrt "; then 52105 CLOCK_GETTIME_IN_LIBRT=true 52106 fi 52107 LIBS="$save_LIBS" 52108 52109 52110 # Special extras... 52111 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52112 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52113 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52114 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52115 fi 52116 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52117 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 52118 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52119 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52120 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 52121 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52122 CXXSTD_CXXFLAG="-std=gnu++98" 52123 52124 52125 52126 52127 52128 52129 52130 52131 52132 52133 52134 52135 52136 52137 52138 52139 52140 52141 52142 52143 52144 52145 52146 52147 52148 52149 52150 52151 52152 52153 52154 52155 52156 52157 52158 52159 52160 52161 52162 52163 52164 52165 # Execute function body 52166 52167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 52168 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 52169 supports=yes 52170 52171 saved_cxxflags="$CXXFLAGS" 52172 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 52173 ac_ext=cpp 52174 ac_cpp='$CXXCPP $CPPFLAGS' 52175 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52176 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52177 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52178 52179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 52180 /* end confdefs.h. */ 52181 int i; 52182 _ACEOF 52183 if ac_fn_cxx_try_compile "$LINENO"; then : 52184 52185 else 52186 supports=no 52187 fi 52188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 52189 ac_ext=cpp 52190 ac_cpp='$CXXCPP $CPPFLAGS' 52191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 52192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 52193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 52194 52195 CXXFLAGS="$saved_cxxflags" 52196 52197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 52198 $as_echo "$supports" >&6; } 52199 if test "x$supports" = "xyes" ; then 52200 : 52201 52202 else 52203 : 52204 CXXSTD_CXXFLAG="" 52205 fi 52206 52207 52208 52209 52210 52211 52212 52213 52214 52215 52216 52217 52218 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 52219 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 52220 52221 fi 52222 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52223 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 52224 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 52225 fi 52226 52227 CFLAGS_JDK="${CFLAGS_JDK} ${EXTRA_CFLAGS}" 52228 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${EXTRA_CXXFLAGS}" 52229 LDFLAGS_JDK="${LDFLAGS_JDK} ${EXTRA_LDFLAGS}" 52230 52231 ############################################################################### 52232 # 52233 # Now setup the CFLAGS and LDFLAGS for the JDK build. 52234 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 52235 # 52236 52237 # Setup compiler/platform specific flags into 52238 # CFLAGS_JDK - C Compiler flags 52239 # CXXFLAGS_JDK - C++ Compiler flags 52240 # COMMON_CCXXFLAGS_JDK - common to C and C++ 52241 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52242 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52243 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52244 JVM_CFLAGS="$JVM_CFLAGS -fcheck-new" 52245 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52246 # Force compatibility with i586 on 32 bit intel platforms. 52247 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52248 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52249 fi 52250 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52251 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52252 case $OPENJDK_TARGET_CPU_ARCH in 52253 arm ) 52254 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52255 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52256 COMMON_CCXXFLAGS_JDK="${COMMON_CCXXFLAGS_JDK} -fsigned-char" 52257 ;; 52258 ppc ) 52259 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52260 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52261 ;; 52262 s390 ) 52263 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 52264 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52265 ;; 52266 * ) 52267 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52268 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52269 ;; 52270 esac 52271 52272 52273 52274 52275 52276 52277 52278 52279 52280 52281 52282 52283 52284 52285 52286 52287 52288 52289 52290 52291 52292 52293 52294 52295 52296 52297 52298 52299 52300 52301 52302 52303 52304 52305 52306 52307 52308 52309 52310 52311 52312 52313 52314 52315 52316 52317 52318 52319 52320 52321 52322 52323 52324 52325 # Execute function body 52326 52327 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52328 REFERENCE_VERSION=6 52329 52330 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52331 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52332 fi 52333 52334 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52335 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 52336 fi 52337 52338 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52339 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52340 52341 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52342 : 52343 52344 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 52345 # runs afoul of the more aggressive versions of these optimisations. 52346 # Notably, value range propagation now assumes that the this pointer of C++ 52347 # member functions is non-null. 52348 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 52349 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 52350 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 52351 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 52352 CFLAGS_JDK="$CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52353 JVM_CFLAGS="$JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 52354 52355 else 52356 : 52357 52358 fi 52359 52360 52361 52362 52363 52364 52365 52366 52367 52368 52369 52370 52371 52372 52373 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52374 JVM_CFLAGS="$JVM_CFLAGS -D_GNU_SOURCE" 52375 52376 # Restrict the debug information created by Clang to avoid 52377 # too big object files and speed the build up a little bit 52378 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 52379 JVM_CFLAGS="$JVM_CFLAGS -flimit-debug-info" 52380 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52381 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52382 # Force compatibility with i586 on 32 bit intel platforms. 52383 COMMON_CCXXFLAGS="${COMMON_CCXXFLAGS} -march=i586" 52384 JVM_CFLAGS="$JVM_CFLAGS -march=i586" 52385 fi 52386 JVM_CFLAGS="$JVM_CFLAGS -Wno-sometimes-uninitialized" 52387 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 52388 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 52389 case $OPENJDK_TARGET_CPU_ARCH in 52390 ppc ) 52391 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 52392 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52393 ;; 52394 * ) 52395 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 52396 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 52397 ;; 52398 esac 52399 fi 52400 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52401 JVM_CFLAGS="$JVM_CFLAGS -DSPARC_WORKS" 52402 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 52403 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 52404 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 52405 fi 52406 52407 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 52408 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 52409 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52410 JVM_CFLAGS="$JVM_CFLAGS -D_REENTRANT" 52411 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52412 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 52413 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52414 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 52415 -MD -Zc:wchar_t- -W3 -wd4800 \ 52416 -DWIN32_LEAN_AND_MEAN \ 52417 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 52418 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 52419 -DWIN32 -DIAL" 52420 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52421 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 52422 else 52423 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 52424 fi 52425 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 52426 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 52427 # studio. 52428 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 52429 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 52430 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 52431 JVM_CFLAGS="$JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 52432 fi 52433 fi 52434 52435 ############################################################################### 52436 52437 # Adjust flags according to debug level. 52438 case $DEBUG_LEVEL in 52439 fastdebug | slowdebug ) 52440 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 52441 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 52442 ;; 52443 release ) 52444 ;; 52445 * ) 52446 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52447 ;; 52448 esac 52449 52450 # Set some common defines. These works for all compilers, but assume 52451 # -D is universally accepted. 52452 52453 # Setup endianness 52454 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52455 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 52456 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 52457 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 52458 # Note: -Dmacro is the same as #define macro 1 52459 # -Dmacro= is the same as #define macro 52460 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52461 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 52462 else 52463 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 52464 fi 52465 else 52466 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 52467 # are defined in the system? 52468 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52469 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 52470 else 52471 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 52472 fi 52473 fi 52474 52475 # Always enable optional macros for VM. 52476 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_FORMAT_MACROS" 52477 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_LIMIT_MACROS" 52478 JVM_CFLAGS="$JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 52479 52480 # Setup target OS define. Use OS target name but in upper case. 52481 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 52482 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 52483 52484 # Setup target CPU 52485 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52486 $OPENJDK_TARGET_ADD_LP64 \ 52487 -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 52488 52489 # Setup debug/release defines 52490 if test "x$DEBUG_LEVEL" = xrelease; then 52491 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 52492 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 52493 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 52494 fi 52495 else 52496 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 52497 fi 52498 52499 # Optional POSIX functionality needed by the VM 52500 52501 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 52502 JVM_CFLAGS="$JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 52503 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 52504 JVM_CFLAGS="$JVM_CFLAGS -DNEEDS_LIBRT" 52505 fi 52506 fi 52507 52508 52509 # Set some additional per-OS defines. 52510 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52511 JVM_CFLAGS="$JVM_CFLAGS -DLINUX" 52512 JVM_CFLAGS="$JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 52513 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 52514 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52515 JVM_CFLAGS="$JVM_CFLAGS -DSOLARIS" 52516 JVM_CFLAGS="$JVM_CFLAGS -template=no%extdef -features=no%split_init \ 52517 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 52518 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52519 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 52520 JVM_CFLAGS="$JVM_CFLAGS -D_ALLBSD_SOURCE" 52521 JVM_CFLAGS="$JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 52522 JVM_CFLAGS="$JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 52523 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 52524 -fno-omit-frame-pointer" 52525 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52526 JVM_CFLAGS="$JVM_CFLAGS -DAIX" 52527 JVM_CFLAGS="$JVM_CFLAGS -qtune=balanced \ 52528 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 52529 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 52530 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52531 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52532 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52533 if test "x$DEBUG_LEVEL" = xslowdebug; then 52534 JVM_CFLAGS="$JVM_CFLAGS -qpic=large" 52535 fi 52536 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52537 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 52538 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52539 JVM_CFLAGS="$JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 52540 JVM_CFLAGS="$JVM_CFLAGS -nologo -W3 -MD -MP" 52541 fi 52542 52543 # Set some additional per-CPU defines. 52544 if test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xwindows-x86; then 52545 JVM_CFLAGS="$JVM_CFLAGS -arch:IA32" 52546 elif test "x$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" = xsolaris-sparcv9; then 52547 JVM_CFLAGS="$JVM_CFLAGS -xarch=sparc" 52548 elif test "x$OPENJDK_TARGET_CPU" = xppc64; then 52549 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52550 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52551 # fixes `relocation truncated to fit' error for gcc 4.1. 52552 JVM_CFLAGS="$JVM_CFLAGS -mminimal-toc" 52553 # Use ppc64 instructions, but schedule for power5 52554 JVM_CFLAGS="$JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 52555 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52556 JVM_CFLAGS="$JVM_CFLAGS -qarch=ppc64" 52557 fi 52558 elif test "x$OPENJDK_TARGET_CPU" = xppc64le; then 52559 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52560 JVM_CFLAGS="$JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 52561 # Little endian machine uses ELFv2 ABI. 52562 JVM_CFLAGS="$JVM_CFLAGS -DABI_ELFv2" 52563 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 52564 JVM_CFLAGS="$JVM_CFLAGS -mcpu=power8 -mtune=power8" 52565 fi 52566 elif test "x$OPENJDK_TARGET_CPU" = xs390x; then 52567 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52568 JVM_CFLAGS="$JVM_CFLAGS -mbackchain -march=z10" 52569 fi 52570 fi 52571 52572 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 52573 JVM_CFLAGS="$JVM_CFLAGS -DVM_LITTLE_ENDIAN" 52574 fi 52575 52576 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 52577 if test "x$OPENJDK_TARGET_OS" != xsolaris && test "x$OPENJDK_TARGET_OS" != xaix; then 52578 # Solaris does not have _LP64=1 in the old build. 52579 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 52580 JVM_CFLAGS="$JVM_CFLAGS -D_LP64=1" 52581 fi 52582 fi 52583 52584 # Set JVM_CFLAGS warning handling 52585 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52586 JVM_CFLAGS="$JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 52587 -Wunused-value -Woverloaded-virtual" 52588 52589 if test "x$TOOLCHAIN_TYPE" = xgcc; then 52590 52591 52592 52593 52594 52595 52596 52597 52598 52599 52600 52601 52602 52603 52604 52605 52606 52607 52608 52609 52610 52611 52612 52613 52614 52615 52616 52617 52618 52619 52620 52621 52622 52623 52624 52625 52626 52627 52628 52629 52630 52631 52632 52633 52634 52635 52636 52637 52638 52639 52640 52641 52642 52643 52644 # Execute function body 52645 52646 # Need to assign to a variable since m4 is blocked from modifying parts in []. 52647 REFERENCE_VERSION=4.8 52648 52649 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 52650 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 52651 fi 52652 52653 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 52654 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 52655 fi 52656 52657 # Version comparison method inspired by http://stackoverflow.com/a/24067243 52658 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 52659 52660 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 52661 : 52662 52663 # These flags either do not work or give spurious warnings prior to gcc 4.8. 52664 JVM_CFLAGS="$JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 52665 52666 52667 else 52668 : 52669 52670 fi 52671 52672 52673 52674 52675 52676 52677 52678 52679 52680 52681 52682 52683 52684 52685 fi 52686 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 52687 # Non-zero builds have stricter warnings 52688 JVM_CFLAGS="$JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 52689 else 52690 if test "x$TOOLCHAIN_TYPE" = xclang; then 52691 # Some versions of llvm do not like -Wundef 52692 JVM_CFLAGS="$JVM_CFLAGS -Wno-undef" 52693 fi 52694 fi 52695 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52696 JVM_CFLAGS="$JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 52697 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 52698 fi 52699 52700 # Additional macosx handling 52701 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52702 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 52703 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 52704 # JDK can be built and makes the linked binaries compatible even if built on 52705 # a newer version of the OS. 52706 MACOSX_VERSION_MIN=10.7.0 52707 52708 52709 # Setting --with-macosx-version-max=<version> makes it an error to build or 52710 # link to macosx APIs that are newer than the given OS version. The expected 52711 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 52712 52713 # Check whether --with-macosx-version-max was given. 52714 if test "${with_macosx_version_max+set}" = set; then : 52715 withval=$with_macosx_version_max; 52716 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 52717 MACOSX_VERSION_MAX=$with_macosx_version_max 52718 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 52719 MACOSX_VERSION_MAX=$with_macosx_version_max 52720 elif test "x$with_macosx_version_max" = "xno"; then 52721 # Use build system default 52722 MACOSX_VERSION_MAX= 52723 else 52724 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 52725 fi 52726 52727 else 52728 MACOSX_VERSION_MAX= 52729 52730 fi 52731 52732 52733 52734 # Let the flags variables get resolved in make for easier override on make 52735 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 52736 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52737 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52738 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52739 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52740 JVM_CFLAGS="$JVM_CFLAGS \ 52741 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 52742 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 52743 52744 if test -n "$MACOSX_VERSION_MAX"; then 52745 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52746 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52747 JVM_CFLAGS="$JVM_CFLAGS \ 52748 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 52749 fi 52750 fi 52751 52752 # Setup some hard coded includes 52753 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 52754 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 52755 -I${TOPDIR}/src/java.base/share/native/include \ 52756 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 52757 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include \ 52758 -I${TOPDIR}/src/java.base/share/native/libjava \ 52759 -I${TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/libjava \ 52760 -I${TOPDIR}/src/hotspot/share/include \ 52761 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_TARGET_OS_TYPE}/include" 52762 52763 # The shared libraries are compiled using the picflag. 52764 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52765 $CFLAGS_JDK $EXTRA_CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 52766 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK \ 52767 $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 52768 52769 # Executable flags 52770 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $EXTRA_CFLAGS_JDK" 52771 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $EXTRA_CXXFLAGS_JDK" 52772 52773 52774 52775 52776 52777 52778 # Setup LDFLAGS et al. 52779 # 52780 52781 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52782 LDFLAGS_MICROSOFT="-nologo -opt:ref" 52783 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 52784 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 52785 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 52786 LDFLAGS_SAFESH="-safeseh" 52787 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SAFESH" 52788 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SAFESH" 52789 # NOTE: Old build added -machine. Probably not needed. 52790 JVM_LDFLAGS="$JVM_LDFLAGS -machine:I386" 52791 else 52792 JVM_LDFLAGS="$JVM_LDFLAGS -machine:AMD64" 52793 fi 52794 elif test "x$TOOLCHAIN_TYPE" = xclang; then 52795 JVM_LDFLAGS="$JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 52796 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52797 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 52798 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52799 fi 52800 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 52801 # If this is a --hash-style=gnu system, use --hash-style=both, why? 52802 # We have previously set HAS_GNU_HASH if this is the case 52803 if test -n "$HAS_GNU_HASH"; then 52804 LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 52805 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_HASH_STYLE" 52806 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_HASH_STYLE" 52807 fi 52808 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 52809 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 52810 fi 52811 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52812 # And since we now know that the linker is gnu, then add -z defs, to forbid 52813 # undefined symbols in object files. 52814 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 52815 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 52816 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 52817 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 52818 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 52819 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52820 JVM_LDFLAGS="$JVM_LDFLAGS -march=i586" 52821 fi 52822 case $DEBUG_LEVEL in 52823 release ) 52824 # tell linker to optimize libraries. 52825 # Should this be supplied to the OSS linker as well? 52826 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 52827 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 52828 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 52829 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52830 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52831 fi 52832 ;; 52833 slowdebug ) 52834 # Hotspot always let the linker optimize 52835 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52836 if test "x$HAS_LINKER_NOW" = "xtrue"; then 52837 # do relocations at load 52838 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 52839 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 52840 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_NOW_FLAG" 52841 fi 52842 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52843 # mark relocations read only 52844 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52845 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52846 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52847 fi 52848 ;; 52849 fastdebug ) 52850 # Hotspot always let the linker optimize 52851 JVM_LDFLAGS="$JVM_LDFLAGS -Wl,-O1" 52852 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 52853 # mark relocations read only 52854 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 52855 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 52856 JVM_LDFLAGS="$JVM_LDFLAGS $LINKER_RELRO_FLAG" 52857 fi 52858 ;; 52859 * ) 52860 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 52861 ;; 52862 esac 52863 fi 52864 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52865 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 52866 LDFLAGS_JDK="$LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 52867 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 52868 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 52869 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 52870 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 52871 JVM_LDFLAGS="$JVM_LDFLAGS -xarch=sparc" 52872 fi 52873 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 52874 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 52875 LDFLAGS_JDK="${LDFLAGS_JDK} $LDFLAGS_XLC" 52876 JVM_LDFLAGS="$JVM_LDFLAGS $LDFLAGS_XLC" 52877 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 52878 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 52879 # so for slowdebug we build with '-qpic=large -bbigtoc'. 52880 if test "x$DEBUG_LEVEL" = xslowdebug; then 52881 JVM_LDFLAGS="$JVM_LDFLAGS -bbigtoc" 52882 fi 52883 fi 52884 52885 # Customize LDFLAGS for executables 52886 52887 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 52888 52889 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52890 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 52891 LDFLAGS_STACK_SIZE=1048576 52892 else 52893 LDFLAGS_STACK_SIZE=327680 52894 fi 52895 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 52896 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 52897 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 52898 fi 52899 52900 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} ${EXTRA_LDFLAGS_JDK}" 52901 52902 # Customize LDFLAGS for libs 52903 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 52904 52905 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 52906 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 52907 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 52908 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52909 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 52910 JDKLIB_LIBS="" 52911 else 52912 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52913 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 52914 52915 if test "xTARGET" = "xTARGET"; then 52916 # On some platforms (mac) the linker warns about non existing -L dirs. 52917 # For any of the variants server, client or minimal, the dir matches the 52918 # variant name. The "main" variant should be used for linking. For the 52919 # rest, the dir is just server. 52920 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 52921 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 52922 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52923 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 52924 else 52925 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52926 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52927 fi 52928 elif test "xTARGET" = "xBUILD"; then 52929 # When building a buildjdk, it's always only the server variant 52930 JAVA_BASE_LDFLAGS="${JAVA_BASE_LDFLAGS} \ 52931 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 52932 fi 52933 52934 JDKLIB_LIBS="-ljava -ljvm" 52935 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52936 JDKLIB_LIBS="$JDKLIB_LIBS -lc" 52937 fi 52938 52939 fi 52940 52941 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${JAVA_BASE_LDFLAGS}" 52942 52943 # Set JVM_LIBS (per os) 52944 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52945 JVM_LIBS="$JVM_LIBS -lm -ldl -lpthread" 52946 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 52947 # FIXME: This hard-coded path is not really proper. 52948 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 52949 SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 52950 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 52951 SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 52952 fi 52953 JVM_LIBS="$JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 52954 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 52955 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52956 JVM_LIBS="$JVM_LIBS -lm" 52957 elif test "x$OPENJDK_TARGET_OS" = xaix; then 52958 JVM_LIBS="$JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 52959 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 52960 JVM_LIBS="$JVM_LIBS -lm" 52961 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 52962 JVM_LIBS="$JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 52963 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 52964 wsock32.lib winmm.lib version.lib psapi.lib" 52965 fi 52966 52967 # Set JVM_ASFLAGS 52968 if test "x$OPENJDK_TARGET_OS" = xlinux; then 52969 if test "x$OPENJDK_TARGET_CPU" = xx86; then 52970 JVM_ASFLAGS="$JVM_ASFLAGS -march=i586" 52971 fi 52972 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 52973 JVM_ASFLAGS="$JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 52974 fi 52975 52976 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${EXTRA_LDFLAGS_JDK}" 52977 52978 52979 52980 52981 52982 52983 52984 52985 52986 52987 52988 52989 52990 52991 52992 52993 # Special extras... 52994 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 52995 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 52996 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52997 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 52998 fi 52999 OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53000 OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA="${OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA} -errtags=yes -errfmt" 53001 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53002 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53003 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -qchars=signed -qfullpath -qsaveopt" 53004 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53005 OPENJDK_BUILD_CXXSTD_CXXFLAG="-std=gnu++98" 53006 53007 53008 53009 53010 53011 53012 53013 53014 53015 53016 53017 53018 53019 53020 53021 53022 53023 53024 53025 53026 53027 53028 53029 53030 53031 53032 53033 53034 53035 53036 53037 53038 53039 53040 53041 53042 53043 53044 53045 53046 53047 53048 # Execute function body 53049 53050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"" >&5 53051 $as_echo_n "checking if the C++ compiler supports \"$OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror\"... " >&6; } 53052 supports=yes 53053 53054 saved_cxxflags="$CXXFLAGS" 53055 CXXFLAGS="$CXXFLAG $OPENJDK_BUILD_CXXSTD_CXXFLAG -Werror" 53056 ac_ext=cpp 53057 ac_cpp='$CXXCPP $CPPFLAGS' 53058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53061 53062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 53063 /* end confdefs.h. */ 53064 int i; 53065 _ACEOF 53066 if ac_fn_cxx_try_compile "$LINENO"; then : 53067 53068 else 53069 supports=no 53070 fi 53071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 53072 ac_ext=cpp 53073 ac_cpp='$CXXCPP $CPPFLAGS' 53074 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 53075 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 53076 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 53077 53078 CXXFLAGS="$saved_cxxflags" 53079 53080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 53081 $as_echo "$supports" >&6; } 53082 if test "x$supports" = "xyes" ; then 53083 : 53084 53085 else 53086 : 53087 OPENJDK_BUILD_CXXSTD_CXXFLAG="" 53088 fi 53089 53090 53091 53092 53093 53094 53095 53096 53097 53098 53099 53100 53101 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53102 OPENJDK_BUILD_JVM_CFLAGS="${OPENJDK_BUILD_JVM_CFLAGS} ${OPENJDK_BUILD_CXXSTD_CXXFLAG}" 53103 53104 fi 53105 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 53106 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -D__solaris__" 53107 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} -D__solaris__" 53108 fi 53109 53110 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CFLAGS}" 53111 OPENJDK_BUILD_CXXFLAGS_JDK="${OPENJDK_BUILD_CXXFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_CXXFLAGS}" 53112 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} ${OPENJDK_BUILD_EXTRA_LDFLAGS}" 53113 53114 ############################################################################### 53115 # 53116 # Now setup the CFLAGS and LDFLAGS for the JDK build. 53117 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 53118 # 53119 53120 # Setup compiler/platform specific flags into 53121 # OPENJDK_BUILD_CFLAGS_JDK - C Compiler flags 53122 # OPENJDK_BUILD_CXXFLAGS_JDK - C++ Compiler flags 53123 # OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK - common to C and C++ 53124 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53125 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53126 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53127 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fcheck-new" 53128 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53129 # Force compatibility with i586 on 32 bit intel platforms. 53130 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53131 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53132 fi 53133 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53134 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53135 case $OPENJDK_BUILD_CPU_ARCH in 53136 arm ) 53137 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53138 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53139 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="${OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK} -fsigned-char" 53140 ;; 53141 ppc ) 53142 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53143 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53144 ;; 53145 s390 ) 53146 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer -mbackchain -march=z10" 53147 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53148 ;; 53149 * ) 53150 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53151 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53152 ;; 53153 esac 53154 53155 53156 53157 53158 53159 53160 53161 53162 53163 53164 53165 53166 53167 53168 53169 53170 53171 53172 53173 53174 53175 53176 53177 53178 53179 53180 53181 53182 53183 53184 53185 53186 53187 53188 53189 53190 53191 53192 53193 53194 53195 53196 53197 53198 53199 53200 53201 53202 53203 53204 53205 53206 53207 53208 # Execute function body 53209 53210 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53211 REFERENCE_VERSION=6 53212 53213 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53214 as_fn_error $? "Internal error: Cannot compare to 6, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53215 fi 53216 53217 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53218 as_fn_error $? "Internal error: Cannot compare to 6, only parts < 99999 is supported" "$LINENO" 5 53219 fi 53220 53221 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53222 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53223 53224 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53225 : 53226 53227 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 53228 # runs afoul of the more aggressive versions of these optimisations. 53229 # Notably, value range propagation now assumes that the this pointer of C++ 53230 # member functions is non-null. 53231 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 53232 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 53233 { $as_echo "$as_me:${as_lineno-$LINENO}: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&5 53234 $as_echo "$as_me: GCC >= 6 detected; adding ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} and ${NO_LIFETIME_DSE_CFLAG}" >&6;} 53235 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53236 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 53237 53238 else 53239 : 53240 53241 fi 53242 53243 53244 53245 53246 53247 53248 53249 53250 53251 53252 53253 53254 53255 53256 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53257 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_GNU_SOURCE" 53258 53259 # Restrict the debug information created by Clang to avoid 53260 # too big object files and speed the build up a little bit 53261 # (see http://llvm.org/bugs/show_bug.cgi?id=7554) 53262 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -flimit-debug-info" 53263 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53264 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53265 # Force compatibility with i586 on 32 bit intel platforms. 53266 OPENJDK_BUILD_COMMON_CCXXFLAGS="${OPENJDK_BUILD_COMMON_CCXXFLAGS} -march=i586" 53267 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -march=i586" 53268 fi 53269 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-sometimes-uninitialized" 53270 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -Wall -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 53271 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 53272 case $OPENJDK_BUILD_CPU_ARCH in 53273 ppc ) 53274 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 53275 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53276 ;; 53277 * ) 53278 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 53279 OPENJDK_BUILD_CFLAGS_JDK="${OPENJDK_BUILD_CFLAGS_JDK} -fno-strict-aliasing" 53280 ;; 53281 esac 53282 fi 53283 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53284 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSPARC_WORKS" 53285 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 53286 if test "x$OPENJDK_BUILD_CPU_ARCH" = xx86; then 53287 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_BUILD_CPU_LEGACY_LIB" 53288 fi 53289 53290 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 53291 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 53292 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53293 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_REENTRANT" 53294 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53295 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 53296 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53297 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS $OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53298 -MD -Zc:wchar_t- -W3 -wd4800 \ 53299 -DWIN32_LEAN_AND_MEAN \ 53300 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 53301 -D_WINSOCK_DEPRECATED_NO_WARNINGS \ 53302 -DWIN32 -DIAL" 53303 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53304 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 53305 else 53306 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 53307 fi 53308 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 53309 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 53310 # studio. 53311 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 53312 STATIC_CPPLIB_FLAGS="-D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 53313 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $STATIC_CPPLIB_FLAGS" 53314 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS $STATIC_CPPLIB_FLAGS" 53315 fi 53316 fi 53317 53318 ############################################################################### 53319 53320 # Adjust flags according to debug level. 53321 case $DEBUG_LEVEL in 53322 fastdebug | slowdebug ) 53323 OPENJDK_BUILD_CFLAGS_JDK="$OPENJDK_BUILD_CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 53324 OPENJDK_BUILD_CXXFLAGS_JDK="$OPENJDK_BUILD_CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 53325 ;; 53326 release ) 53327 ;; 53328 * ) 53329 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53330 ;; 53331 esac 53332 53333 # Set some common defines. These works for all compilers, but assume 53334 # -D is universally accepted. 53335 53336 # Setup endianness 53337 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53338 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 53339 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 53340 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 53341 # Note: -Dmacro is the same as #define macro 1 53342 # -Dmacro= is the same as #define macro 53343 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53344 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 53345 else 53346 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 53347 fi 53348 else 53349 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 53350 # are defined in the system? 53351 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53352 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 53353 else 53354 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 53355 fi 53356 fi 53357 53358 # Always enable optional macros for VM. 53359 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_FORMAT_MACROS" 53360 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_LIMIT_MACROS" 53361 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D__STDC_CONSTANT_MACROS" 53362 53363 # Setup target OS define. Use OS target name but in upper case. 53364 OPENJDK_BUILD_OS_UPPERCASE=`$ECHO $OPENJDK_BUILD_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 53365 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D$OPENJDK_BUILD_OS_UPPERCASE" 53366 53367 # Setup target CPU 53368 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53369 $OPENJDK_BUILD_ADD_LP64 \ 53370 -DARCH='\"$OPENJDK_BUILD_CPU_LEGACY\"' -D$OPENJDK_BUILD_CPU_LEGACY" 53371 53372 # Setup debug/release defines 53373 if test "x$DEBUG_LEVEL" = xrelease; then 53374 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DNDEBUG" 53375 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 53376 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DTRIMMED" 53377 fi 53378 else 53379 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -DDEBUG" 53380 fi 53381 53382 # Optional POSIX functionality needed by the VM 53383 53384 if test "x$HAS_CLOCK_GETTIME" = "xtrue"; then 53385 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSUPPORTS_CLOCK_MONOTONIC" 53386 if test "x$CLOCK_GETTIME_IN_LIBRT" = "xtrue"; then 53387 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DNEEDS_LIBRT" 53388 fi 53389 fi 53390 53391 53392 # Set some additional per-OS defines. 53393 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53394 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DLINUX" 53395 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -pipe $PICFLAG -fno-rtti -fno-exceptions \ 53396 -fvisibility=hidden -fno-strict-aliasing -fno-omit-frame-pointer" 53397 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53398 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DSOLARIS" 53399 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -template=no%extdef -features=no%split_init \ 53400 -D_Crun_inline_placement -library=stlport4 $PICFLAG -mt -features=no%except" 53401 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53402 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 53403 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_ALLBSD_SOURCE" 53404 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_DARWIN_C_SOURCE -D_XOPEN_SOURCE" 53405 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -fno-rtti -fno-exceptions -fvisibility=hidden \ 53406 -mno-omit-leaf-frame-pointer -mstack-alignment=16 -pipe -fno-strict-aliasing \ 53407 -fno-omit-frame-pointer" 53408 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53409 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DAIX" 53410 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qtune=balanced \ 53411 -qalias=noansi -qstrict -qtls=default -qlanglvl=c99vla \ 53412 -qlanglvl=noredefmac -qnortti -qnoeh -qignerrno" 53413 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53414 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53415 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53416 if test "x$DEBUG_LEVEL" = xslowdebug; then 53417 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qpic=large" 53418 fi 53419 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53420 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 53421 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53422 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_WINDOWS -DWIN32 -D_JNI_IMPLEMENTATION_" 53423 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -nologo -W3 -MD -MP" 53424 fi 53425 53426 # Set some additional per-CPU defines. 53427 if test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xwindows-x86; then 53428 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -arch:IA32" 53429 elif test "x$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" = xsolaris-sparcv9; then 53430 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -xarch=sparc" 53431 elif test "x$OPENJDK_BUILD_CPU" = xppc64; then 53432 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53433 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53434 # fixes `relocation truncated to fit' error for gcc 4.1. 53435 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mminimal-toc" 53436 # Use ppc64 instructions, but schedule for power5 53437 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=powerpc64 -mtune=power5" 53438 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53439 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -qarch=ppc64" 53440 fi 53441 elif test "x$OPENJDK_BUILD_CPU" = xppc64le; then 53442 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53443 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -minsert-sched-nops=regroup_exact -mno-multiple -mno-string" 53444 # Little endian machine uses ELFv2 ABI. 53445 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DABI_ELFv2" 53446 # Use Power8, this is the first CPU to support PPC64 LE with ELFv2 ABI. 53447 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mcpu=power8 -mtune=power8" 53448 fi 53449 elif test "x$OPENJDK_BUILD_CPU" = xs390x; then 53450 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53451 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -mbackchain -march=z10" 53452 fi 53453 fi 53454 53455 if test "x$OPENJDK_BUILD_CPU_ENDIAN" = xlittle; then 53456 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -DVM_LITTLE_ENDIAN" 53457 fi 53458 53459 if test "x$OPENJDK_BUILD_CPU_BITS" = x64; then 53460 if test "x$OPENJDK_BUILD_OS" != xsolaris && test "x$OPENJDK_BUILD_OS" != xaix; then 53461 # Solaris does not have _LP64=1 in the old build. 53462 # xlc on AIX defines _LP64=1 by default and issues a warning if we redefine it. 53463 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -D_LP64=1" 53464 fi 53465 fi 53466 53467 # Set OPENJDK_BUILD_JVM_CFLAGS warning handling 53468 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53469 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wpointer-arith -Wsign-compare -Wunused-function \ 53470 -Wunused-value -Woverloaded-virtual" 53471 53472 if test "x$TOOLCHAIN_TYPE" = xgcc; then 53473 53474 53475 53476 53477 53478 53479 53480 53481 53482 53483 53484 53485 53486 53487 53488 53489 53490 53491 53492 53493 53494 53495 53496 53497 53498 53499 53500 53501 53502 53503 53504 53505 53506 53507 53508 53509 53510 53511 53512 53513 53514 53515 53516 53517 53518 53519 53520 53521 53522 53523 53524 53525 53526 53527 # Execute function body 53528 53529 # Need to assign to a variable since m4 is blocked from modifying parts in []. 53530 REFERENCE_VERSION=4.8 53531 53532 if [[ "$REFERENCE_VERSION" =~ (.*\.){4} ]] ; then 53533 as_fn_error $? "Internal error: Cannot compare to 4.8, only four parts (W.X.Y.Z) is supported" "$LINENO" 5 53534 fi 53535 53536 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 53537 as_fn_error $? "Internal error: Cannot compare to 4.8, only parts < 99999 is supported" "$LINENO" 5 53538 fi 53539 53540 # Version comparison method inspired by http://stackoverflow.com/a/24067243 53541 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d%05d\n", $1, $2, $3, $4) }' <<< "$REFERENCE_VERSION"` 53542 53543 if test $OPENJDK_BUILD_COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 53544 : 53545 53546 # These flags either do not work or give spurious warnings prior to gcc 4.8. 53547 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-format-zero-length -Wtype-limits -Wuninitialized" 53548 53549 53550 else 53551 : 53552 53553 fi 53554 53555 53556 53557 53558 53559 53560 53561 53562 53563 53564 53565 53566 53567 53568 fi 53569 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 53570 # Non-zero builds have stricter warnings 53571 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wreturn-type -Wundef -Wformat=2" 53572 else 53573 if test "x$TOOLCHAIN_TYPE" = xclang; then 53574 # Some versions of llvm do not like -Wundef 53575 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-undef" 53576 fi 53577 fi 53578 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53579 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS -Wno-deprecated -Wpointer-arith \ 53580 -Wsign-compare -Wundef -Wunused-function -Wformat=2" 53581 fi 53582 53583 # Additional macosx handling 53584 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53585 # MACOSX_VERSION_MIN is the c++ and ld is -mmacosx-version-min argument. The expected 53586 # format is X.Y.Z. It's hard-coded to the minimum OSX version on which the 53587 # JDK can be built and makes the linked binaries compatible even if built on 53588 # a newer version of the OS. 53589 MACOSX_VERSION_MIN=10.7.0 53590 53591 53592 # Setting --with-macosx-version-max=<version> makes it an error to build or 53593 # link to macosx APIs that are newer than the given OS version. The expected 53594 # format for <version> is either nn.n.n or nn.nn.nn. See /usr/include/AvailabilityMacros.h. 53595 53596 # Check whether --with-macosx-version-max was given. 53597 if test "${with_macosx_version_max+set}" = set; then : 53598 withval=$with_macosx_version_max; 53599 if echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9]\.[0-9]\$"; then 53600 MACOSX_VERSION_MAX=$with_macosx_version_max 53601 elif echo "$with_macosx_version_max" | $GREP -q "^[0-9][0-9]\.[0-9][0-9]\.[0-9][0-9]\$"; then 53602 MACOSX_VERSION_MAX=$with_macosx_version_max 53603 elif test "x$with_macosx_version_max" = "xno"; then 53604 # Use build system default 53605 MACOSX_VERSION_MAX= 53606 else 53607 as_fn_error $? "osx version format must be nn.n.n or nn.nn.nn" "$LINENO" 5 53608 fi 53609 53610 else 53611 MACOSX_VERSION_MAX= 53612 53613 fi 53614 53615 53616 53617 # Let the flags variables get resolved in make for easier override on make 53618 # command line. AvailabilityMacros.h versions have no dots, ex: 1070. 53619 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53620 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53621 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53622 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53623 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53624 -DMAC_OS_X_VERSION_MIN_REQUIRED=\$(subst .,,\$(MACOSX_VERSION_MIN)) \ 53625 -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 53626 53627 if test -n "$MACOSX_VERSION_MAX"; then 53628 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53629 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53630 OPENJDK_BUILD_JVM_CFLAGS="$OPENJDK_BUILD_JVM_CFLAGS \ 53631 -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MAX))" 53632 fi 53633 fi 53634 53635 # Setup some hard coded includes 53636 OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53637 -I\$(SUPPORT_OUTPUTDIR)/modules_include/java.base \ 53638 -I${TOPDIR}/src/java.base/share/native/include \ 53639 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS/native/include \ 53640 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/include \ 53641 -I${TOPDIR}/src/java.base/share/native/libjava \ 53642 -I${TOPDIR}/src/java.base/$OPENJDK_BUILD_OS_TYPE/native/libjava \ 53643 -I${TOPDIR}/src/hotspot/share/include \ 53644 -I${TOPDIR}/src/hotspot/os/${HOTSPOT_BUILD_OS_TYPE}/include" 53645 53646 # The shared libraries are compiled using the picflag. 53647 OPENJDK_BUILD_CFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53648 $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CFLAGS_JDKLIB_EXTRA" 53649 OPENJDK_BUILD_CXXFLAGS_JDKLIB="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK \ 53650 $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK $PICFLAG $OPENJDK_BUILD_CXXFLAGS_JDKLIB_EXTRA" 53651 53652 # Executable flags 53653 OPENJDK_BUILD_CFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CFLAGS_JDK $OPENJDK_BUILD_EXTRA_CFLAGS_JDK" 53654 OPENJDK_BUILD_CXXFLAGS_JDKEXE="$OPENJDK_BUILD_COMMON_CCXXFLAGS_JDK $OPENJDK_BUILD_CXXFLAGS_JDK $OPENJDK_BUILD_EXTRA_CXXFLAGS_JDK" 53655 53656 53657 53658 53659 53660 53661 # Setup LDFLAGS et al. 53662 # 53663 53664 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53665 LDFLAGS_MICROSOFT="-nologo -opt:ref" 53666 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_MICROSOFT -incremental:no" 53667 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_MICROSOFT -opt:icf,8 -subsystem:windows -base:0x8000000" 53668 if test "x$OPENJDK_BUILD_CPU_BITS" = "x32"; then 53669 LDFLAGS_SAFESH="-safeseh" 53670 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SAFESH" 53671 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SAFESH" 53672 # NOTE: Old build added -machine. Probably not needed. 53673 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:I386" 53674 else 53675 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -machine:AMD64" 53676 fi 53677 elif test "x$TOOLCHAIN_TYPE" = xclang; then 53678 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -mno-omit-leaf-frame-pointer -mstack-alignment=16 -stdlib=libstdc++ -fPIC" 53679 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53680 # FIXME: We should really generalize SET_SHARED_LIBRARY_ORIGIN instead. 53681 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53682 fi 53683 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 53684 # If this is a --hash-style=gnu system, use --hash-style=both, why? 53685 # We have previously set HAS_GNU_HASH if this is the case 53686 if test -n "$HAS_GNU_HASH"; then 53687 OPENJDK_BUILD_LDFLAGS_HASH_STYLE="-Wl,--hash-style=both" 53688 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53689 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $OPENJDK_BUILD_LDFLAGS_HASH_STYLE" 53690 fi 53691 if test "x$OPENJDK_BUILD_OS" = xmacosx; then 53692 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-rpath,@loader_path/. -Wl,-rpath,@loader_path/.." 53693 fi 53694 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53695 # And since we now know that the linker is gnu, then add -z defs, to forbid 53696 # undefined symbols in object files. 53697 LDFLAGS_NO_UNDEF_SYM="-Wl,-z,defs" 53698 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_NO_UNDEF_SYM" 53699 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_UNDEF_SYM" 53700 LDFLAGS_NO_EXEC_STACK="-Wl,-z,noexecstack" 53701 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_NO_EXEC_STACK" 53702 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53703 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -march=i586" 53704 fi 53705 case $DEBUG_LEVEL in 53706 release ) 53707 # tell linker to optimize libraries. 53708 # Should this be supplied to the OSS linker as well? 53709 LDFLAGS_DEBUGLEVEL_release="-Wl,-O1" 53710 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_DEBUGLEVEL_release" 53711 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_DEBUGLEVEL_release" 53712 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53713 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53714 fi 53715 ;; 53716 slowdebug ) 53717 # Hotspot always let the linker optimize 53718 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53719 if test "x$HAS_LINKER_NOW" = "xtrue"; then 53720 # do relocations at load 53721 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_NOW_FLAG" 53722 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 53723 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_NOW_FLAG" 53724 fi 53725 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53726 # mark relocations read only 53727 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53728 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53729 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53730 fi 53731 ;; 53732 fastdebug ) 53733 # Hotspot always let the linker optimize 53734 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -Wl,-O1" 53735 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 53736 # mark relocations read only 53737 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LINKER_RELRO_FLAG" 53738 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 53739 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LINKER_RELRO_FLAG" 53740 fi 53741 ;; 53742 * ) 53743 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 53744 ;; 53745 esac 53746 fi 53747 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53748 LDFLAGS_SOLSTUDIO="-Wl,-z,defs" 53749 OPENJDK_BUILD_LDFLAGS_JDK="$OPENJDK_BUILD_LDFLAGS_JDK $LDFLAGS_SOLSTUDIO -ztext" 53750 LDFLAGS_CXX_SOLSTUDIO="-norunpath" 53751 OPENJDK_BUILD_LDFLAGS_CXX_JDK="$OPENJDK_BUILD_LDFLAGS_CXX_JDK $LDFLAGS_CXX_SOLSTUDIO -xnolib" 53752 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_SOLSTUDIO -library=%none -mt $LDFLAGS_CXX_SOLSTUDIO -z noversion" 53753 if test "x$OPENJDK_BUILD_CPU_ARCH" = "xsparc"; then 53754 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -xarch=sparc" 53755 fi 53756 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 53757 LDFLAGS_XLC="-b64 -brtl -bnolibpath -bexpall -bernotok -btextpsize:64K -bdatapsize:64K -bstackpsize:64K" 53758 OPENJDK_BUILD_LDFLAGS_JDK="${OPENJDK_BUILD_LDFLAGS_JDK} $LDFLAGS_XLC" 53759 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $LDFLAGS_XLC" 53760 # We need '-qminimaltoc' or '-qpic=large -bbigtoc' if the TOC overflows. 53761 # Hotspot now overflows its 64K TOC (currently only for slowdebug), 53762 # so for slowdebug we build with '-qpic=large -bbigtoc'. 53763 if test "x$DEBUG_LEVEL" = xslowdebug; then 53764 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS -bbigtoc" 53765 fi 53766 fi 53767 53768 # Customize LDFLAGS for executables 53769 53770 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDK}" 53771 53772 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53773 if test "x$OPENJDK_BUILD_CPU_BITS" = "x64"; then 53774 LDFLAGS_STACK_SIZE=1048576 53775 else 53776 LDFLAGS_STACK_SIZE=327680 53777 fi 53778 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 53779 elif test "x$OPENJDK_BUILD_OS" = xlinux; then 53780 OPENJDK_BUILD_LDFLAGS_JDKEXE="$OPENJDK_BUILD_LDFLAGS_JDKEXE -Wl,--allow-shlib-undefined" 53781 fi 53782 53783 OPENJDK_BUILD_LDFLAGS_JDKEXE="${OPENJDK_BUILD_LDFLAGS_JDKEXE} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53784 53785 # Customize LDFLAGS for libs 53786 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDK}" 53787 53788 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS}" 53789 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${LDFLAGS_NO_EXEC_STACK}" 53790 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 53791 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53792 -libpath:${OUTPUTDIR}/support/modules_libs/java.base" 53793 OPENJDK_BUILD_JDKLIB_LIBS="" 53794 else 53795 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53796 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base" 53797 53798 if test "xBUILD" = "xTARGET"; then 53799 # On some platforms (mac) the linker warns about non existing -L dirs. 53800 # For any of the variants server, client or minimal, the dir matches the 53801 # variant name. The "main" variant should be used for linking. For the 53802 # rest, the dir is just server. 53803 if [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] \ 53804 || [[ " $JVM_VARIANTS " =~ " minimal " ]] ; then 53805 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53806 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/$JVM_VARIANT_MAIN" 53807 else 53808 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53809 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53810 fi 53811 elif test "xBUILD" = "xBUILD"; then 53812 # When building a buildjdk, it's always only the server variant 53813 OPENJDK_BUILD_JAVA_BASE_LDFLAGS="${OPENJDK_BUILD_JAVA_BASE_LDFLAGS} \ 53814 -L\$(SUPPORT_OUTPUTDIR)/modules_libs/java.base/server" 53815 fi 53816 53817 OPENJDK_BUILD_JDKLIB_LIBS="-ljava -ljvm" 53818 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 53819 OPENJDK_BUILD_JDKLIB_LIBS="$OPENJDK_BUILD_JDKLIB_LIBS -lc" 53820 fi 53821 53822 fi 53823 53824 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_JAVA_BASE_LDFLAGS}" 53825 53826 # Set OPENJDK_BUILD_JVM_LIBS (per os) 53827 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53828 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm -ldl -lpthread" 53829 elif test "x$OPENJDK_BUILD_OS" = xsolaris; then 53830 # FIXME: This hard-coded path is not really proper. 53831 if test "x$OPENJDK_BUILD_CPU" = xx86_64; then 53832 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/amd64/libm.so.1" 53833 elif test "x$OPENJDK_BUILD_CPU" = xsparcv9; then 53834 OPENJDK_BUILD_SOLARIS_LIBM_LIBS="/usr/lib/sparcv9/libm.so.1" 53835 fi 53836 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lsocket -lsched -ldl $SOLARIS_LIBM_LIBS -lCrun \ 53837 -lthread -ldoor -lc -ldemangle -lnsl -lrt" 53838 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53839 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53840 elif test "x$OPENJDK_BUILD_OS" = xaix; then 53841 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -Wl,-lC_r -lm -ldl -lpthread" 53842 elif test "x$OPENJDK_BUILD_OS" = xbsd; then 53843 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS -lm" 53844 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 53845 OPENJDK_BUILD_JVM_LIBS="$OPENJDK_BUILD_JVM_LIBS kernel32.lib user32.lib gdi32.lib winspool.lib \ 53846 comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib \ 53847 wsock32.lib winmm.lib version.lib psapi.lib" 53848 fi 53849 53850 # Set OPENJDK_BUILD_JVM_ASFLAGS 53851 if test "x$OPENJDK_BUILD_OS" = xlinux; then 53852 if test "x$OPENJDK_BUILD_CPU" = xx86; then 53853 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -march=i586" 53854 fi 53855 elif test "x$OPENJDK_BUILD_OS" = xmacosx; then 53856 OPENJDK_BUILD_JVM_ASFLAGS="$OPENJDK_BUILD_JVM_ASFLAGS -x assembler-with-cpp -mno-omit-leaf-frame-pointer -mstack-alignment=16" 53857 fi 53858 53859 OPENJDK_BUILD_LDFLAGS_JDKLIB="${OPENJDK_BUILD_LDFLAGS_JDKLIB} ${OPENJDK_BUILD_EXTRA_LDFLAGS_JDK}" 53860 53861 53862 53863 53864 53865 53866 53867 53868 53869 53870 53871 53872 53873 53874 53875 53876 # Tests are only ever compiled for TARGET 53877 # Flags for compiling test libraries 53878 CFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 53879 CXXFLAGS_TESTLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA" 53880 53881 # Flags for compiling test executables 53882 CFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 53883 CXXFLAGS_TESTEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 53884 53885 53886 53887 53888 53889 53890 LDFLAGS_TESTLIB="$LDFLAGS_JDKLIB" 53891 LDFLAGS_TESTEXE="$LDFLAGS_JDKEXE $JAVA_BASE_LDFLAGS" 53892 53893 53894 53895 53896 53897 53898 # Check that the compiler supports -mX (or -qX on AIX) flags 53899 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 53900 53901 53902 53903 53904 53905 53906 53907 53908 53909 53910 53911 53912 53913 53914 53915 53916 53917 53918 53919 53920 53921 53922 53923 53924 53925 53926 53927 53928 53929 53930 53931 53932 53933 53934 53935 53936 53937 53938 53939 53940 53941 53942 53943 53944 53945 53946 53947 # Execute function body 53948 53949 53950 53951 53952 53953 53954 53955 53956 53957 53958 53959 53960 53961 53962 53963 53964 53965 53966 53967 53968 53969 53970 53971 53972 53973 53974 53975 53976 53977 53978 53979 53980 53981 53982 53983 53984 53985 53986 53987 53988 53989 53990 53991 53992 53993 53994 53995 53996 # Execute function body 53997 53998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 53999 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54000 supports=yes 54001 54002 saved_cflags="$CFLAGS" 54003 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54004 ac_ext=c 54005 ac_cpp='$CPP $CPPFLAGS' 54006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54008 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54009 54010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54011 /* end confdefs.h. */ 54012 int i; 54013 _ACEOF 54014 if ac_fn_c_try_compile "$LINENO"; then : 54015 54016 else 54017 supports=no 54018 fi 54019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54020 ac_ext=cpp 54021 ac_cpp='$CXXCPP $CPPFLAGS' 54022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54025 54026 CFLAGS="$saved_cflags" 54027 54028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54029 $as_echo "$supports" >&6; } 54030 if test "x$supports" = "xyes" ; then 54031 : 54032 C_COMP_SUPPORTS="yes" 54033 else 54034 : 54035 C_COMP_SUPPORTS="no" 54036 fi 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 54083 54084 54085 54086 54087 54088 54089 54090 54091 54092 54093 54094 54095 54096 # Execute function body 54097 54098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54099 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54100 supports=yes 54101 54102 saved_cxxflags="$CXXFLAGS" 54103 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 54104 ac_ext=cpp 54105 ac_cpp='$CXXCPP $CPPFLAGS' 54106 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54107 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54108 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54109 54110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54111 /* end confdefs.h. */ 54112 int i; 54113 _ACEOF 54114 if ac_fn_cxx_try_compile "$LINENO"; then : 54115 54116 else 54117 supports=no 54118 fi 54119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54120 ac_ext=cpp 54121 ac_cpp='$CXXCPP $CPPFLAGS' 54122 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54123 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54124 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54125 54126 CXXFLAGS="$saved_cxxflags" 54127 54128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54129 $as_echo "$supports" >&6; } 54130 if test "x$supports" = "xyes" ; then 54131 : 54132 CXX_COMP_SUPPORTS="yes" 54133 else 54134 : 54135 CXX_COMP_SUPPORTS="no" 54136 fi 54137 54138 54139 54140 54141 54142 54143 54144 54145 54146 54147 54148 54149 54150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 54151 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 54152 supports=no 54153 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54154 54155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54156 $as_echo "$supports" >&6; } 54157 if test "x$supports" = "xyes" ; then 54158 : 54159 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 54160 else 54161 : 54162 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 54163 fi 54164 54165 54166 54167 54168 54169 54170 54171 54172 # Check whether --enable-warnings-as-errors was given. 54173 if test "${enable_warnings_as_errors+set}" = set; then : 54174 enableval=$enable_warnings_as_errors; 54175 fi 54176 54177 54178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native warnings are errors" >&5 54179 $as_echo_n "checking if native warnings are errors... " >&6; } 54180 if test "x$enable_warnings_as_errors" = "xyes"; then 54181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (explicitly set)" >&5 54182 $as_echo "yes (explicitly set)" >&6; } 54183 WARNINGS_AS_ERRORS=true 54184 elif test "x$enable_warnings_as_errors" = "xno"; then 54185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54186 $as_echo "no" >&6; } 54187 WARNINGS_AS_ERRORS=false 54188 elif test "x$enable_warnings_as_errors" = "x"; then 54189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (default)" >&5 54190 $as_echo "yes (default)" >&6; } 54191 WARNINGS_AS_ERRORS=true 54192 else 54193 as_fn_error $? "--enable-warnings-as-errors accepts no argument" "$LINENO" 5 54194 fi 54195 54196 54197 54198 case "${TOOLCHAIN_TYPE}" in 54199 microsoft) 54200 DISABLE_WARNING_PREFIX="-wd" 54201 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 54202 ;; 54203 solstudio) 54204 DISABLE_WARNING_PREFIX="-erroff=" 54205 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 54206 ;; 54207 gcc) 54208 # Prior to gcc 4.4, a -Wno-X where X is unknown for that version of gcc will cause an error 54209 54210 54211 54212 54213 54214 54215 54216 54217 54218 54219 54220 54221 54222 54223 54224 54225 54226 54227 54228 54229 54230 54231 54232 54233 54234 54235 54236 54237 54238 54239 54240 54241 54242 54243 54244 54245 54246 54247 54248 54249 54250 54251 54252 54253 54254 54255 54256 # Execute function body 54257 54258 54259 54260 54261 54262 54263 54264 54265 54266 54267 54268 54269 54270 54271 54272 54273 54274 54275 54276 54277 54278 54279 54280 54281 54282 54283 54284 54285 54286 54287 54288 54289 54290 54291 54292 54293 54294 54295 54296 54297 54298 54299 54300 54301 54302 54303 54304 54305 # Execute function body 54306 54307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54308 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54309 supports=yes 54310 54311 saved_cflags="$CFLAGS" 54312 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54313 ac_ext=c 54314 ac_cpp='$CPP $CPPFLAGS' 54315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54317 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54318 54319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54320 /* end confdefs.h. */ 54321 int i; 54322 _ACEOF 54323 if ac_fn_c_try_compile "$LINENO"; then : 54324 54325 else 54326 supports=no 54327 fi 54328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54329 ac_ext=cpp 54330 ac_cpp='$CXXCPP $CPPFLAGS' 54331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54334 54335 CFLAGS="$saved_cflags" 54336 54337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54338 $as_echo "$supports" >&6; } 54339 if test "x$supports" = "xyes" ; then 54340 : 54341 C_COMP_SUPPORTS="yes" 54342 else 54343 : 54344 C_COMP_SUPPORTS="no" 54345 fi 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 54392 54393 54394 54395 54396 54397 54398 54399 54400 54401 54402 54403 54404 54405 # Execute function body 54406 54407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54408 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54409 supports=yes 54410 54411 saved_cxxflags="$CXXFLAGS" 54412 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54413 ac_ext=cpp 54414 ac_cpp='$CXXCPP $CPPFLAGS' 54415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54418 54419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54420 /* end confdefs.h. */ 54421 int i; 54422 _ACEOF 54423 if ac_fn_cxx_try_compile "$LINENO"; then : 54424 54425 else 54426 supports=no 54427 fi 54428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54429 ac_ext=cpp 54430 ac_cpp='$CXXCPP $CPPFLAGS' 54431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54434 54435 CXXFLAGS="$saved_cxxflags" 54436 54437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54438 $as_echo "$supports" >&6; } 54439 if test "x$supports" = "xyes" ; then 54440 : 54441 CXX_COMP_SUPPORTS="yes" 54442 else 54443 : 54444 CXX_COMP_SUPPORTS="no" 54445 fi 54446 54447 54448 54449 54450 54451 54452 54453 54454 54455 54456 54457 54458 54459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54460 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54461 supports=no 54462 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54463 54464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54465 $as_echo "$supports" >&6; } 54466 if test "x$supports" = "xyes" ; then 54467 : 54468 GCC_CAN_DISABLE_WARNINGS=true 54469 else 54470 : 54471 GCC_CAN_DISABLE_WARNINGS=false 54472 54473 fi 54474 54475 54476 54477 54478 54479 54480 if test "x$GCC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54481 DISABLE_WARNING_PREFIX="-Wno-" 54482 else 54483 DISABLE_WARNING_PREFIX= 54484 fi 54485 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54486 # Repeate the check for the BUILD_CC and BUILD_CXX. Need to also reset 54487 # CFLAGS since any target specific flags will likely not work with the 54488 # build compiler 54489 CC_OLD="$CC" 54490 CXX_OLD="$CXX" 54491 CC="$BUILD_CC" 54492 CXX="$BUILD_CXX" 54493 CFLAGS_OLD="$CFLAGS" 54494 CFLAGS="" 54495 54496 54497 54498 54499 54500 54501 54502 54503 54504 54505 54506 54507 54508 54509 54510 54511 54512 54513 54514 54515 54516 54517 54518 54519 54520 54521 54522 54523 54524 54525 54526 54527 54528 54529 54530 54531 54532 54533 54534 54535 54536 54537 54538 54539 54540 54541 54542 # Execute function body 54543 54544 54545 54546 54547 54548 54549 54550 54551 54552 54553 54554 54555 54556 54557 54558 54559 54560 54561 54562 54563 54564 54565 54566 54567 54568 54569 54570 54571 54572 54573 54574 54575 54576 54577 54578 54579 54580 54581 54582 54583 54584 54585 54586 54587 54588 54589 54590 54591 # Execute function body 54592 54593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54594 $as_echo_n "checking if the C compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54595 supports=yes 54596 54597 saved_cflags="$CFLAGS" 54598 CFLAGS="$CFLAGS -Wno-this-is-a-warning-that-do-not-exist" 54599 ac_ext=c 54600 ac_cpp='$CPP $CPPFLAGS' 54601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54603 ac_compiler_gnu=$ac_cv_c_compiler_gnu 54604 54605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54606 /* end confdefs.h. */ 54607 int i; 54608 _ACEOF 54609 if ac_fn_c_try_compile "$LINENO"; then : 54610 54611 else 54612 supports=no 54613 fi 54614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54615 ac_ext=cpp 54616 ac_cpp='$CXXCPP $CPPFLAGS' 54617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54620 54621 CFLAGS="$saved_cflags" 54622 54623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54624 $as_echo "$supports" >&6; } 54625 if test "x$supports" = "xyes" ; then 54626 : 54627 C_COMP_SUPPORTS="yes" 54628 else 54629 : 54630 C_COMP_SUPPORTS="no" 54631 fi 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 54678 54679 54680 54681 54682 54683 54684 54685 54686 54687 54688 54689 54690 54691 # Execute function body 54692 54693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54694 $as_echo_n "checking if the C++ compiler supports \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54695 supports=yes 54696 54697 saved_cxxflags="$CXXFLAGS" 54698 CXXFLAGS="$CXXFLAG -Wno-this-is-a-warning-that-do-not-exist" 54699 ac_ext=cpp 54700 ac_cpp='$CXXCPP $CPPFLAGS' 54701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54704 54705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 54706 /* end confdefs.h. */ 54707 int i; 54708 _ACEOF 54709 if ac_fn_cxx_try_compile "$LINENO"; then : 54710 54711 else 54712 supports=no 54713 fi 54714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 54715 ac_ext=cpp 54716 ac_cpp='$CXXCPP $CPPFLAGS' 54717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 54718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 54719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 54720 54721 CXXFLAGS="$saved_cxxflags" 54722 54723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54724 $as_echo "$supports" >&6; } 54725 if test "x$supports" = "xyes" ; then 54726 : 54727 CXX_COMP_SUPPORTS="yes" 54728 else 54729 : 54730 CXX_COMP_SUPPORTS="no" 54731 fi 54732 54733 54734 54735 54736 54737 54738 54739 54740 54741 54742 54743 54744 54745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"" >&5 54746 $as_echo_n "checking if both compilers support \"-Wno-this-is-a-warning-that-do-not-exist\"... " >&6; } 54747 supports=no 54748 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 54749 54750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 54751 $as_echo "$supports" >&6; } 54752 if test "x$supports" = "xyes" ; then 54753 : 54754 BUILD_CC_CAN_DISABLE_WARNINGS=true 54755 else 54756 : 54757 BUILD_CC_CAN_DISABLE_WARNINGS=false 54758 54759 fi 54760 54761 54762 54763 54764 54765 54766 if test "x$BUILD_CC_CAN_DISABLE_WARNINGS" = "xtrue"; then 54767 BUILD_CC_DISABLE_WARNING_PREFIX="-Wno-" 54768 else 54769 BUILD_CC_DISABLE_WARNING_PREFIX= 54770 fi 54771 CC="$CC_OLD" 54772 CXX="$CXX_OLD" 54773 CFLAGS="$CFLAGS_OLD" 54774 ;; 54775 clang) 54776 DISABLE_WARNING_PREFIX="-Wno-" 54777 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 54778 ;; 54779 xlc) 54780 DISABLE_WARNING_PREFIX="-qsuppress=" 54781 CFLAGS_WARNINGS_ARE_ERRORS="-qhalt=w" 54782 ;; 54783 esac 54784 54785 54786 54787 54788 54789 # Setup debug symbols (need objcopy from the toolchain for that) 54790 54791 # 54792 # NATIVE_DEBUG_SYMBOLS 54793 # This must be done after the toolchain is setup, since we're looking at objcopy. 54794 # 54795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what type of native debug symbols to use" >&5 54796 $as_echo_n "checking what type of native debug symbols to use... " >&6; } 54797 54798 # Check whether --with-native-debug-symbols was given. 54799 if test "${with_native_debug_symbols+set}" = set; then : 54800 withval=$with_native_debug_symbols; 54801 if test "x$OPENJDK_TARGET_OS" = xaix; then 54802 if test "x$withval" = xexternal || test "x$withval" = xzipped; then 54803 as_fn_error $? "AIX only supports the parameters 'none' and 'internal' for --with-native-debug-symbols" "$LINENO" 5 54804 fi 54805 fi 54806 54807 else 54808 54809 if test "x$OPENJDK_TARGET_OS" = xaix; then 54810 # AIX doesn't support 'external' so use 'internal' as default 54811 with_native_debug_symbols="internal" 54812 else 54813 if test "x$STATIC_BUILD" = xtrue; then 54814 with_native_debug_symbols="none" 54815 else 54816 with_native_debug_symbols="external" 54817 fi 54818 fi 54819 54820 fi 54821 54822 NATIVE_DEBUG_SYMBOLS=$with_native_debug_symbols 54823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE_DEBUG_SYMBOLS" >&5 54824 $as_echo "$NATIVE_DEBUG_SYMBOLS" >&6; } 54825 54826 if test "x$NATIVE_DEBUG_SYMBOLS" = xzipped; then 54827 54828 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54829 if test "x$OBJCOPY" = x; then 54830 # enabling of enable-debug-symbols and can't find objcopy 54831 # this is an error 54832 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54833 fi 54834 fi 54835 54836 COMPILE_WITH_DEBUG_SYMBOLS=true 54837 COPY_DEBUG_SYMBOLS=true 54838 ZIP_EXTERNAL_DEBUG_SYMBOLS=true 54839 elif test "x$NATIVE_DEBUG_SYMBOLS" = xnone; then 54840 COMPILE_WITH_DEBUG_SYMBOLS=false 54841 COPY_DEBUG_SYMBOLS=false 54842 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54843 elif test "x$NATIVE_DEBUG_SYMBOLS" = xinternal; then 54844 COMPILE_WITH_DEBUG_SYMBOLS=true 54845 COPY_DEBUG_SYMBOLS=false 54846 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54847 elif test "x$NATIVE_DEBUG_SYMBOLS" = xexternal; then 54848 54849 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 54850 if test "x$OBJCOPY" = x; then 54851 # enabling of enable-debug-symbols and can't find objcopy 54852 # this is an error 54853 as_fn_error $? "Unable to find objcopy, cannot enable native debug symbols" "$LINENO" 5 54854 fi 54855 fi 54856 54857 COMPILE_WITH_DEBUG_SYMBOLS=true 54858 COPY_DEBUG_SYMBOLS=true 54859 ZIP_EXTERNAL_DEBUG_SYMBOLS=false 54860 else 54861 as_fn_error $? "Allowed native debug symbols are: none, internal, external, zipped" "$LINENO" 5 54862 fi 54863 54864 # --enable-debug-symbols is deprecated. 54865 # Please use --with-native-debug-symbols=[internal,external,zipped] . 54866 54867 # Check whether --enable-debug-symbols was given. 54868 if test "${enable_debug_symbols+set}" = set; then : 54869 enableval=$enable_debug_symbols; 54870 fi 54871 54872 if test "x$enable_debug_symbols" != x; then 54873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&5 54874 $as_echo "$as_me: WARNING: Option --enable-debug-symbols is deprecated and will be ignored." >&2;} 54875 54876 if test "xPlease use --with-native-debug-symbols=[internal,external,zipped] ." != x; then 54877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&5 54878 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=[internal,external,zipped] ." >&2;} 54879 fi 54880 54881 fi 54882 54883 54884 # --enable-zip-debug-info is deprecated. 54885 # Please use --with-native-debug-symbols=zipped . 54886 54887 # Check whether --enable-zip-debug-info was given. 54888 if test "${enable_zip_debug_info+set}" = set; then : 54889 enableval=$enable_zip_debug_info; 54890 fi 54891 54892 if test "x$enable_zip_debug_info" != x; then 54893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&5 54894 $as_echo "$as_me: WARNING: Option --enable-zip-debug-info is deprecated and will be ignored." >&2;} 54895 54896 if test "xPlease use --with-native-debug-symbols=zipped ." != x; then 54897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Please use --with-native-debug-symbols=zipped ." >&5 54898 $as_echo "$as_me: WARNING: Please use --with-native-debug-symbols=zipped ." >&2;} 54899 fi 54900 54901 fi 54902 54903 54904 54905 54906 54907 54908 54909 # Check whether --enable-native-coverage was given. 54910 if test "${enable_native_coverage+set}" = set; then : 54911 enableval=$enable_native_coverage; 54912 fi 54913 54914 GCOV_ENABLED="false" 54915 if test "x$enable_native_coverage" = "xyes"; then 54916 if test "x$TOOLCHAIN_TYPE" = "xgcc"; then 54917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54918 $as_echo_n "checking if native coverage is enabled... " >&6; } 54919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54920 $as_echo "yes" >&6; } 54921 GCOV_CFLAGS="-fprofile-arcs -ftest-coverage -fno-inline" 54922 GCOV_LDFLAGS="-fprofile-arcs" 54923 JVM_CFLAGS="$JVM_CFLAGS $GCOV_CFLAGS" 54924 JVM_LDFLAGS="$JVM_LDFLAGS $GCOV_LDFLAGS" 54925 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $GCOV_CFLAGS" 54926 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $GCOV_CFLAGS" 54927 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $GCOV_CFLAGS" 54928 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $GCOV_CFLAGS" 54929 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $GCOV_LDFLAGS" 54930 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $GCOV_LDFLAGS" 54931 GCOV_ENABLED="true" 54932 else 54933 as_fn_error $? "--enable-native-coverage only works with toolchain type gcc" "$LINENO" 5 54934 fi 54935 elif test "x$enable_native_coverage" = "xno"; then 54936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if native coverage is enabled" >&5 54937 $as_echo_n "checking if native coverage is enabled... " >&6; } 54938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54939 $as_echo "no" >&6; } 54940 elif test "x$enable_native_coverage" != "x"; then 54941 as_fn_error $? "--enable-native-coverage can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54942 fi 54943 54944 54945 54946 54947 # AddressSanitizer 54948 54949 # Check whether --enable-asan was given. 54950 if test "${enable_asan+set}" = set; then : 54951 enableval=$enable_asan; 54952 fi 54953 54954 ASAN_ENABLED="no" 54955 if test "x$enable_asan" = "xyes"; then 54956 case $TOOLCHAIN_TYPE in 54957 gcc | clang) 54958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 54959 $as_echo_n "checking if asan is enabled... " >&6; } 54960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 54961 $as_echo "yes" >&6; } 54962 ASAN_CFLAGS="-fsanitize=address -fno-omit-frame-pointer" 54963 ASAN_LDFLAGS="-fsanitize=address" 54964 JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS" 54965 JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS" 54966 CFLAGS_JDKLIB="$CFLAGS_JDKLIB $ASAN_CFLAGS" 54967 CFLAGS_JDKEXE="$CFLAGS_JDKEXE $ASAN_CFLAGS" 54968 CXXFLAGS_JDKLIB="$CXXFLAGS_JDKLIB $ASAN_CFLAGS" 54969 CXXFLAGS_JDKEXE="$CXXFLAGS_JDKEXE $ASAN_CFLAGS" 54970 LDFLAGS_JDKLIB="$LDFLAGS_JDKLIB $ASAN_LDFLAGS" 54971 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE $ASAN_LDFLAGS" 54972 ASAN_ENABLED="yes" 54973 ;; 54974 *) 54975 as_fn_error $? "--enable-asan only works with toolchain type gcc or clang" "$LINENO" 5 54976 ;; 54977 esac 54978 elif test "x$enable_asan" = "xno"; then 54979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if asan is enabled" >&5 54980 $as_echo_n "checking if asan is enabled... " >&6; } 54981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 54982 $as_echo "no" >&6; } 54983 elif test "x$enable_asan" != "x"; then 54984 as_fn_error $? "--enable-asan can only be assigned \"yes\" or \"no\"" "$LINENO" 5 54985 fi 54986 54987 54988 54989 54990 # Need toolchain to setup dtrace 54991 54992 # Test for dtrace dependencies 54993 # Check whether --enable-dtrace was given. 54994 if test "${enable_dtrace+set}" = set; then : 54995 enableval=$enable_dtrace; 54996 fi 54997 54998 54999 DTRACE_DEP_MISSING=false 55000 55001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dtrace tool" >&5 55002 $as_echo_n "checking for dtrace tool... " >&6; } 55003 if test "x$DTRACE" != "x" && test -x "$DTRACE"; then 55004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 55005 $as_echo "$DTRACE" >&6; } 55006 else 55007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, cannot build dtrace" >&5 55008 $as_echo "not found, cannot build dtrace" >&6; } 55009 DTRACE_DEP_MISSING=true 55010 fi 55011 55012 for ac_header in sys/sdt.h 55013 do : 55014 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default" 55015 if test "x$ac_cv_header_sys_sdt_h" = xyes; then : 55016 cat >>confdefs.h <<_ACEOF 55017 #define HAVE_SYS_SDT_H 1 55018 _ACEOF 55019 DTRACE_HEADERS_OK=yes 55020 else 55021 DTRACE_HEADERS_OK=no 55022 fi 55023 55024 done 55025 55026 if test "x$DTRACE_HEADERS_OK" != "xyes"; then 55027 DTRACE_DEP_MISSING=true 55028 fi 55029 55030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dtrace should be built" >&5 55031 $as_echo_n "checking if dtrace should be built... " >&6; } 55032 if test "x$enable_dtrace" = "xyes"; then 55033 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55035 $as_echo "no, missing dependencies" >&6; } 55036 55037 # Print a helpful message on how to acquire the necessary build dependency. 55038 # dtrace is the help tag: freetype, cups, alsa etc 55039 MISSING_DEPENDENCY=dtrace 55040 55041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55042 cygwin_help $MISSING_DEPENDENCY 55043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55044 msys_help $MISSING_DEPENDENCY 55045 else 55046 PKGHANDLER_COMMAND= 55047 55048 case $PKGHANDLER in 55049 apt-get) 55050 apt_help $MISSING_DEPENDENCY ;; 55051 yum) 55052 yum_help $MISSING_DEPENDENCY ;; 55053 brew) 55054 brew_help $MISSING_DEPENDENCY ;; 55055 port) 55056 port_help $MISSING_DEPENDENCY ;; 55057 pkgutil) 55058 pkgutil_help $MISSING_DEPENDENCY ;; 55059 pkgadd) 55060 pkgadd_help $MISSING_DEPENDENCY ;; 55061 esac 55062 55063 if test "x$PKGHANDLER_COMMAND" != x; then 55064 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 55065 fi 55066 fi 55067 55068 as_fn_error $? "Cannot enable dtrace with missing dependencies. See above. $HELP_MSG" "$LINENO" 5 55069 else 55070 INCLUDE_DTRACE=true 55071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55072 $as_echo "yes, forced" >&6; } 55073 fi 55074 elif test "x$enable_dtrace" = "xno"; then 55075 INCLUDE_DTRACE=false 55076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55077 $as_echo "no, forced" >&6; } 55078 elif test "x$enable_dtrace" = "xauto" || test "x$enable_dtrace" = "x"; then 55079 if test "x$DTRACE_DEP_MISSING" = "xtrue"; then 55080 INCLUDE_DTRACE=false 55081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing dependencies" >&5 55082 $as_echo "no, missing dependencies" >&6; } 55083 else 55084 INCLUDE_DTRACE=true 55085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, dependencies present" >&5 55086 $as_echo "yes, dependencies present" >&6; } 55087 fi 55088 else 55089 as_fn_error $? "Invalid value for --enable-dtrace: $enable_dtrace" "$LINENO" 5 55090 fi 55091 55092 55093 # Check whether --enable-aot was given. 55094 if test "${enable_aot+set}" = set; then : 55095 enableval=$enable_aot; 55096 fi 55097 55098 55099 if test "x$enable_aot" = "x" || test "x$enable_aot" = "xauto"; then 55100 ENABLE_AOT="true" 55101 elif test "x$enable_aot" = "xyes"; then 55102 ENABLE_AOT="true" 55103 elif test "x$enable_aot" = "xno"; then 55104 ENABLE_AOT="false" 55105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 55106 $as_echo_n "checking if aot should be enabled... " >&6; } 55107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55108 $as_echo "no, forced" >&6; } 55109 else 55110 as_fn_error $? "Invalid value for --enable-aot: $enable_aot" "$LINENO" 5 55111 fi 55112 55113 if test "x$ENABLE_AOT" = "xtrue"; then 55114 # Only enable AOT on X64 platforms. 55115 if test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 55116 if test -e "${TOPDIR}/src/jdk.aot"; then 55117 if test -e "${TOPDIR}/src/jdk.internal.vm.compiler"; then 55118 ENABLE_AOT="true" 55119 else 55120 ENABLE_AOT="false" 55121 if test "x$enable_aot" = "xyes"; then 55122 as_fn_error $? "Cannot build AOT without src/jdk.internal.vm.compiler sources. Remove --enable-aot." "$LINENO" 5 55123 fi 55124 fi 55125 else 55126 ENABLE_AOT="false" 55127 if test "x$enable_aot" = "xyes"; then 55128 as_fn_error $? "Cannot build AOT without src/jdk.aot sources. Remove --enable-aot." "$LINENO" 5 55129 fi 55130 fi 55131 else 55132 ENABLE_AOT="false" 55133 if test "x$enable_aot" = "xyes"; then 55134 as_fn_error $? "AOT is currently only supported on x86_64. Remove --enable-aot." "$LINENO" 5 55135 fi 55136 fi 55137 fi 55138 55139 55140 55141 55142 # Check whether --enable-cds was given. 55143 if test "${enable_cds+set}" = set; then : 55144 enableval=$enable_cds; 55145 fi 55146 55147 55148 if test "x$enable_cds" = "x" || test "x$enable_cds" = "xyes"; then 55149 ENABLE_CDS="true" 55150 elif test "x$enable_cds" = "xno"; then 55151 ENABLE_CDS="false" 55152 else 55153 as_fn_error $? "Invalid value for --enable-cds: $enable_cds" "$LINENO" 5 55154 fi 55155 55156 55157 55158 55159 # Check whether --enable-hotspot-gtest was given. 55160 if test "${enable_hotspot_gtest+set}" = set; then : 55161 enableval=$enable_hotspot_gtest; 55162 fi 55163 55164 55165 if test -e "${TOPDIR}/test/hotspot/gtest"; then 55166 GTEST_DIR_EXISTS="true" 55167 else 55168 GTEST_DIR_EXISTS="false" 55169 fi 55170 55171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Hotspot gtest unit tests should be built" >&5 55172 $as_echo_n "checking if Hotspot gtest unit tests should be built... " >&6; } 55173 if test "x$enable_hotspot_gtest" = "xyes"; then 55174 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 55176 $as_echo "yes, forced" >&6; } 55177 BUILD_GTEST="true" 55178 else 55179 as_fn_error $? "Cannot build gtest without the test source" "$LINENO" 5 55180 fi 55181 elif test "x$enable_hotspot_gtest" = "xno"; then 55182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 55183 $as_echo "no, forced" >&6; } 55184 BUILD_GTEST="false" 55185 elif test "x$enable_hotspot_gtest" = "x"; then 55186 if test "x$GTEST_DIR_EXISTS" = "xtrue"; then 55187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55188 $as_echo "yes" >&6; } 55189 BUILD_GTEST="true" 55190 else 55191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55192 $as_echo "no" >&6; } 55193 BUILD_GTEST="false" 55194 fi 55195 else 55196 as_fn_error $? "--enable-gtest must be either yes or no" "$LINENO" 5 55197 fi 55198 55199 55200 55201 55202 ############################################################################### 55203 # 55204 # Check dependencies for external and internal libraries. 55205 # 55206 ############################################################################### 55207 55208 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 55209 55210 # When using cygwin or msys, we need a wrapper binary that renames 55211 # /cygdrive/c/ arguments into c:/ arguments and peeks into 55212 # @files and rewrites these too! This wrapper binary is 55213 # called fixpath. 55214 FIXPATH= 55215 if test "x$OPENJDK_BUILD_OS" = xwindows; then 55216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 55217 $as_echo_n "checking if fixpath can be created... " >&6; } 55218 FIXPATH_SRC="$TOPDIR/make/src/native/fixpath.c" 55219 FIXPATH_BIN="$CONFIGURESUPPORT_OUTPUTDIR/bin/fixpath.exe" 55220 FIXPATH_DIR="$CONFIGURESUPPORT_OUTPUTDIR/fixpath" 55221 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 55222 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 55223 FIXPATH="$FIXPATH_BIN -c" 55224 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 55225 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 55226 # @ was chosen as separator to minimize risk of other tools messing around with it 55227 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" \ 55228 | tr ' ' '\n' | $GREP '^/./' | $SORT | $UNIQ` 55229 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 55230 FIXPATH="$FIXPATH_BIN -m$fixpath_argument_list" 55231 fi 55232 FIXPATH_SRC_W="$FIXPATH_SRC" 55233 FIXPATH_BIN_W="$FIXPATH_BIN" 55234 55235 unix_path="$FIXPATH_SRC_W" 55236 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55237 windows_path=`$CYGPATH -m "$unix_path"` 55238 FIXPATH_SRC_W="$windows_path" 55239 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55240 windows_path=`cmd //c echo $unix_path` 55241 FIXPATH_SRC_W="$windows_path" 55242 fi 55243 55244 55245 unix_path="$FIXPATH_BIN_W" 55246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55247 windows_path=`$CYGPATH -m "$unix_path"` 55248 FIXPATH_BIN_W="$windows_path" 55249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55250 windows_path=`cmd //c echo $unix_path` 55251 FIXPATH_BIN_W="$windows_path" 55252 fi 55253 55254 $RM -rf $FIXPATH_BIN $FIXPATH_DIR 55255 $MKDIR -p $FIXPATH_DIR $CONFIGURESUPPORT_OUTPUTDIR/bin 55256 cd $FIXPATH_DIR 55257 $CC $FIXPATH_SRC_W -Fe$FIXPATH_BIN_W > $FIXPATH_DIR/fixpath1.log 2>&1 55258 cd $CURDIR 55259 55260 if test ! -x $FIXPATH_BIN; then 55261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55262 $as_echo "no" >&6; } 55263 cat $FIXPATH_DIR/fixpath1.log 55264 as_fn_error $? "Could not create $FIXPATH_BIN" "$LINENO" 5 55265 fi 55266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55267 $as_echo "yes" >&6; } 55268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 55269 $as_echo_n "checking if fixpath.exe works... " >&6; } 55270 cd $FIXPATH_DIR 55271 $FIXPATH $CC $FIXPATH_SRC -Fe$FIXPATH_DIR/fixpath2.exe \ 55272 > $FIXPATH_DIR/fixpath2.log 2>&1 55273 cd $CURDIR 55274 if test ! -x $FIXPATH_DIR/fixpath2.exe; then 55275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 55276 $as_echo "no" >&6; } 55277 cat $FIXPATH_DIR/fixpath2.log 55278 as_fn_error $? "fixpath did not work!" "$LINENO" 5 55279 fi 55280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 55281 $as_echo "yes" >&6; } 55282 55283 FIXPATH_DETACH_FLAG="--detach" 55284 fi 55285 55286 55287 55288 55289 55290 55291 # Check if X11 is needed 55292 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55293 # No X11 support on windows or macosx 55294 NEEDS_LIB_X11=false 55295 else 55296 # All other instances need X11, even if building headless only, libawt still 55297 # needs X11 headers. 55298 NEEDS_LIB_X11=true 55299 fi 55300 55301 # Check if fontconfig is needed 55302 if test "x$OPENJDK_TARGET_OS" = xwindows || test "x$OPENJDK_TARGET_OS" = xmacosx; then 55303 # No fontconfig support on windows or macosx 55304 NEEDS_LIB_FONTCONFIG=false 55305 else 55306 # All other instances need fontconfig, even if building headless only, 55307 # libawt still needs fontconfig headers. 55308 NEEDS_LIB_FONTCONFIG=true 55309 fi 55310 55311 # Check if cups is needed 55312 if test "x$OPENJDK_TARGET_OS" = xwindows; then 55313 # Windows have a separate print system 55314 NEEDS_LIB_CUPS=false 55315 else 55316 NEEDS_LIB_CUPS=true 55317 fi 55318 55319 # A custom hook may have set this already 55320 if test "x$NEEDS_LIB_FREETYPE" = "x"; then 55321 NEEDS_LIB_FREETYPE=true 55322 fi 55323 55324 # Check if alsa is needed 55325 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55326 NEEDS_LIB_ALSA=true 55327 else 55328 NEEDS_LIB_ALSA=false 55329 fi 55330 55331 # Check if ffi is needed 55332 if [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 55333 NEEDS_LIB_FFI=true 55334 else 55335 NEEDS_LIB_FFI=false 55336 fi 55337 55338 55339 # statically link libstdc++ before C++ ABI is stablized on Linux unless 55340 # dynamic build is configured on command line. 55341 55342 # Check whether --with-stdc++lib was given. 55343 if test "${with_stdc__lib+set}" = set; then : 55344 withval=$with_stdc__lib; 55345 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 55346 && test "x$with_stdc__lib" != xdefault; then 55347 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 55348 fi 55349 55350 else 55351 with_stdc__lib=default 55352 55353 fi 55354 55355 55356 if test "x$OPENJDK_TARGET_OS" = xlinux; then 55357 # Test if stdc++ can be linked statically. 55358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 55359 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 55360 STATIC_STDCXX_FLAGS="-static-libstdc++ -static-libgcc" 55361 ac_ext=cpp 55362 ac_cpp='$CXXCPP $CPPFLAGS' 55363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55366 55367 OLD_LIBS="$LIBS" 55368 LIBS="$STATIC_STDCXX_FLAGS" 55369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 55370 /* end confdefs.h. */ 55371 55372 int 55373 main () 55374 { 55375 return 0; 55376 ; 55377 return 0; 55378 } 55379 _ACEOF 55380 if ac_fn_cxx_try_link "$LINENO"; then : 55381 has_static_libstdcxx=yes 55382 else 55383 has_static_libstdcxx=no 55384 fi 55385 rm -f core conftest.err conftest.$ac_objext \ 55386 conftest$ac_exeext conftest.$ac_ext 55387 LIBS="$OLD_LIBS" 55388 ac_ext=cpp 55389 ac_cpp='$CXXCPP $CPPFLAGS' 55390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 55391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 55392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 55393 55394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 55395 $as_echo "$has_static_libstdcxx" >&6; } 55396 55397 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 55398 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 55399 fi 55400 55401 # If dynamic was requested, it's available since it would fail above otherwise. 55402 # If dynamic wasn't requested, go with static unless it isn't available. 55403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 55404 $as_echo_n "checking how to link with libstdc++... " >&6; } 55405 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno ; then 55406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 55407 $as_echo "dynamic" >&6; } 55408 else 55409 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 55410 JVM_LDFLAGS="$JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55411 # Ideally, we should test stdc++ for the BUILD toolchain separately. For now 55412 # just use the same setting as for the TARGET toolchain. 55413 OPENJDK_BUILD_JVM_LDFLAGS="$OPENJDK_BUILD_JVM_LDFLAGS $STATIC_STDCXX_FLAGS" 55414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 55415 $as_echo "static" >&6; } 55416 fi 55417 fi 55418 55419 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 55420 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 55421 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 55422 fi 55423 55424 55425 55426 # Setup Windows runtime dlls 55427 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 55428 55429 55430 # Check whether --with-msvcr-dll was given. 55431 if test "${with_msvcr_dll+set}" = set; then : 55432 withval=$with_msvcr_dll; 55433 fi 55434 55435 55436 if test "x$with_msvcr_dll" != x; then 55437 # If given explicitly by user, do not probe. If not present, fail directly. 55438 55439 DLL_NAME="$MSVCR_NAME" 55440 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 55441 METHOD="--with-msvcr-dll" 55442 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55444 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55445 55446 # Need to check if the found msvcr is correct architecture 55447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55448 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55449 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55451 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55452 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55453 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55454 CORRECT_MSVCR_ARCH="PE32 executable" 55455 else 55456 CORRECT_MSVCR_ARCH="PE32+ executable" 55457 fi 55458 else 55459 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55460 CORRECT_MSVCR_ARCH=386 55461 else 55462 CORRECT_MSVCR_ARCH=x86-64 55463 fi 55464 fi 55465 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55467 $as_echo "ok" >&6; } 55468 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55469 55470 # Only process if variable expands to non-empty 55471 55472 if test "x$MSVC_DLL" != x; then 55473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55474 55475 # Input might be given as Windows format, start by converting to 55476 # unix format. 55477 path="$MSVC_DLL" 55478 new_path=`$CYGPATH -u "$path"` 55479 55480 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55481 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55482 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55483 # "foo.exe" is OK but "foo" is an error. 55484 # 55485 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55486 # It is also a way to make sure we got the proper file name for the real test later on. 55487 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55488 if test "x$test_shortpath" = x; then 55489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55490 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55491 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55492 fi 55493 55494 # Call helper function which possibly converts this using DOS-style short mode. 55495 # If so, the updated path is stored in $new_path. 55496 55497 input_path="$new_path" 55498 # Check if we need to convert this using DOS-style short mode. If the path 55499 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55500 # take no chances and rewrite it. 55501 # Note: m4 eats our [], so we need to use [ and ] instead. 55502 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55503 if test "x$has_forbidden_chars" != x; then 55504 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55505 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55506 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55507 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55508 # Going to short mode and back again did indeed matter. Since short mode is 55509 # case insensitive, let's make it lowercase to improve readability. 55510 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55511 # Now convert it back to Unix-style (cygpath) 55512 input_path=`$CYGPATH -u "$shortmode_path"` 55513 new_path="$input_path" 55514 fi 55515 fi 55516 55517 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55518 if test "x$test_cygdrive_prefix" = x; then 55519 # As a simple fix, exclude /usr/bin since it's not a real path. 55520 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55521 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55522 # a path prefixed by /cygdrive for fixpath to work. 55523 new_path="$CYGWIN_ROOT_PATH$input_path" 55524 fi 55525 fi 55526 55527 55528 if test "x$path" != "x$new_path"; then 55529 MSVC_DLL="$new_path" 55530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55531 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55532 fi 55533 55534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55535 55536 path="$MSVC_DLL" 55537 has_colon=`$ECHO $path | $GREP ^.:` 55538 new_path="$path" 55539 if test "x$has_colon" = x; then 55540 # Not in mixed or Windows style, start by that. 55541 new_path=`cmd //c echo $path` 55542 fi 55543 55544 55545 input_path="$new_path" 55546 # Check if we need to convert this using DOS-style short mode. If the path 55547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55548 # take no chances and rewrite it. 55549 # Note: m4 eats our [], so we need to use [ and ] instead. 55550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55551 if test "x$has_forbidden_chars" != x; then 55552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55553 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55554 fi 55555 55556 55557 windows_path="$new_path" 55558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55559 unix_path=`$CYGPATH -u "$windows_path"` 55560 new_path="$unix_path" 55561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55563 new_path="$unix_path" 55564 fi 55565 55566 if test "x$path" != "x$new_path"; then 55567 MSVC_DLL="$new_path" 55568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55569 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55570 fi 55571 55572 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55573 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55574 55575 else 55576 # We're on a unix platform. Hooray! :) 55577 path="$MSVC_DLL" 55578 has_space=`$ECHO "$path" | $GREP " "` 55579 if test "x$has_space" != x; then 55580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55581 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55582 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55583 fi 55584 55585 # Use eval to expand a potential ~ 55586 eval path="$path" 55587 if test ! -f "$path" && test ! -d "$path"; then 55588 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55589 fi 55590 55591 if test -d "$path"; then 55592 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55593 else 55594 dir="`$DIRNAME "$path"`" 55595 base="`$BASENAME "$path"`" 55596 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55597 fi 55598 fi 55599 fi 55600 55601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55602 $as_echo_n "checking for $DLL_NAME... " >&6; } 55603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55604 $as_echo "$MSVC_DLL" >&6; } 55605 else 55606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55607 $as_echo "incorrect, ignoring" >&6; } 55608 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55609 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55610 fi 55611 fi 55612 55613 if test "x$MSVC_DLL" = x; then 55614 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 55615 fi 55616 MSVCR_DLL="$MSVC_DLL" 55617 elif test "x$DEVKIT_MSVCR_DLL" != x; then 55618 55619 DLL_NAME="$MSVCR_NAME" 55620 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCR_DLL" 55621 METHOD="devkit" 55622 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55623 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55624 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55625 55626 # Need to check if the found msvcr is correct architecture 55627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55628 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55629 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55631 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55632 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55633 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55634 CORRECT_MSVCR_ARCH="PE32 executable" 55635 else 55636 CORRECT_MSVCR_ARCH="PE32+ executable" 55637 fi 55638 else 55639 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55640 CORRECT_MSVCR_ARCH=386 55641 else 55642 CORRECT_MSVCR_ARCH=x86-64 55643 fi 55644 fi 55645 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55647 $as_echo "ok" >&6; } 55648 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55649 55650 # Only process if variable expands to non-empty 55651 55652 if test "x$MSVC_DLL" != x; then 55653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55654 55655 # Input might be given as Windows format, start by converting to 55656 # unix format. 55657 path="$MSVC_DLL" 55658 new_path=`$CYGPATH -u "$path"` 55659 55660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55663 # "foo.exe" is OK but "foo" is an error. 55664 # 55665 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55666 # It is also a way to make sure we got the proper file name for the real test later on. 55667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55668 if test "x$test_shortpath" = x; then 55669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55670 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55671 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55672 fi 55673 55674 # Call helper function which possibly converts this using DOS-style short mode. 55675 # If so, the updated path is stored in $new_path. 55676 55677 input_path="$new_path" 55678 # Check if we need to convert this using DOS-style short mode. If the path 55679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55680 # take no chances and rewrite it. 55681 # Note: m4 eats our [], so we need to use [ and ] instead. 55682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55683 if test "x$has_forbidden_chars" != x; then 55684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55688 # Going to short mode and back again did indeed matter. Since short mode is 55689 # case insensitive, let's make it lowercase to improve readability. 55690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55691 # Now convert it back to Unix-style (cygpath) 55692 input_path=`$CYGPATH -u "$shortmode_path"` 55693 new_path="$input_path" 55694 fi 55695 fi 55696 55697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55698 if test "x$test_cygdrive_prefix" = x; then 55699 # As a simple fix, exclude /usr/bin since it's not a real path. 55700 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55702 # a path prefixed by /cygdrive for fixpath to work. 55703 new_path="$CYGWIN_ROOT_PATH$input_path" 55704 fi 55705 fi 55706 55707 55708 if test "x$path" != "x$new_path"; then 55709 MSVC_DLL="$new_path" 55710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55711 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55712 fi 55713 55714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55715 55716 path="$MSVC_DLL" 55717 has_colon=`$ECHO $path | $GREP ^.:` 55718 new_path="$path" 55719 if test "x$has_colon" = x; then 55720 # Not in mixed or Windows style, start by that. 55721 new_path=`cmd //c echo $path` 55722 fi 55723 55724 55725 input_path="$new_path" 55726 # Check if we need to convert this using DOS-style short mode. If the path 55727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55728 # take no chances and rewrite it. 55729 # Note: m4 eats our [], so we need to use [ and ] instead. 55730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55731 if test "x$has_forbidden_chars" != x; then 55732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55734 fi 55735 55736 55737 windows_path="$new_path" 55738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55739 unix_path=`$CYGPATH -u "$windows_path"` 55740 new_path="$unix_path" 55741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55743 new_path="$unix_path" 55744 fi 55745 55746 if test "x$path" != "x$new_path"; then 55747 MSVC_DLL="$new_path" 55748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55749 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55750 fi 55751 55752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55754 55755 else 55756 # We're on a unix platform. Hooray! :) 55757 path="$MSVC_DLL" 55758 has_space=`$ECHO "$path" | $GREP " "` 55759 if test "x$has_space" != x; then 55760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55761 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55762 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55763 fi 55764 55765 # Use eval to expand a potential ~ 55766 eval path="$path" 55767 if test ! -f "$path" && test ! -d "$path"; then 55768 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55769 fi 55770 55771 if test -d "$path"; then 55772 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55773 else 55774 dir="`$DIRNAME "$path"`" 55775 base="`$BASENAME "$path"`" 55776 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55777 fi 55778 fi 55779 fi 55780 55781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55782 $as_echo_n "checking for $DLL_NAME... " >&6; } 55783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55784 $as_echo "$MSVC_DLL" >&6; } 55785 else 55786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55787 $as_echo "incorrect, ignoring" >&6; } 55788 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55789 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55790 fi 55791 fi 55792 55793 if test "x$MSVC_DLL" = x; then 55794 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by devkit" "$LINENO" 5 55795 fi 55796 MSVCR_DLL="$MSVC_DLL" 55797 else 55798 55799 DLL_NAME="${MSVCR_NAME}" 55800 MSVC_DLL= 55801 55802 if test "x$MSVC_DLL" = x; then 55803 # Probe: Using well-known location from Visual Studio 10.0 55804 if test "x$VCINSTALLDIR" != x; then 55805 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 55806 55807 windows_path="$CYGWIN_VC_INSTALL_DIR" 55808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55809 unix_path=`$CYGPATH -u "$windows_path"` 55810 CYGWIN_VC_INSTALL_DIR="$unix_path" 55811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55813 CYGWIN_VC_INSTALL_DIR="$unix_path" 55814 fi 55815 55816 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 55817 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55818 else 55819 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 55820 fi 55821 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 55822 55823 DLL_NAME="$DLL_NAME" 55824 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 55825 METHOD="well-known location in VCINSTALLDIR" 55826 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 55827 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 55828 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 55829 55830 # Need to check if the found msvcr is correct architecture 55831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 55832 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 55833 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 55834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55835 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 55836 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 55837 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55838 CORRECT_MSVCR_ARCH="PE32 executable" 55839 else 55840 CORRECT_MSVCR_ARCH="PE32+ executable" 55841 fi 55842 else 55843 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 55844 CORRECT_MSVCR_ARCH=386 55845 else 55846 CORRECT_MSVCR_ARCH=x86-64 55847 fi 55848 fi 55849 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 55850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 55851 $as_echo "ok" >&6; } 55852 MSVC_DLL="$POSSIBLE_MSVC_DLL" 55853 55854 # Only process if variable expands to non-empty 55855 55856 if test "x$MSVC_DLL" != x; then 55857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55858 55859 # Input might be given as Windows format, start by converting to 55860 # unix format. 55861 path="$MSVC_DLL" 55862 new_path=`$CYGPATH -u "$path"` 55863 55864 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 55865 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 55866 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 55867 # "foo.exe" is OK but "foo" is an error. 55868 # 55869 # This test is therefore slightly more accurate than "test -f" to check for file precense. 55870 # It is also a way to make sure we got the proper file name for the real test later on. 55871 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 55872 if test "x$test_shortpath" = x; then 55873 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55874 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55875 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 55876 fi 55877 55878 # Call helper function which possibly converts this using DOS-style short mode. 55879 # If so, the updated path is stored in $new_path. 55880 55881 input_path="$new_path" 55882 # Check if we need to convert this using DOS-style short mode. If the path 55883 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55884 # take no chances and rewrite it. 55885 # Note: m4 eats our [], so we need to use [ and ] instead. 55886 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 55887 if test "x$has_forbidden_chars" != x; then 55888 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55889 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 55890 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 55891 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 55892 # Going to short mode and back again did indeed matter. Since short mode is 55893 # case insensitive, let's make it lowercase to improve readability. 55894 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55895 # Now convert it back to Unix-style (cygpath) 55896 input_path=`$CYGPATH -u "$shortmode_path"` 55897 new_path="$input_path" 55898 fi 55899 fi 55900 55901 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 55902 if test "x$test_cygdrive_prefix" = x; then 55903 # As a simple fix, exclude /usr/bin since it's not a real path. 55904 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 55905 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 55906 # a path prefixed by /cygdrive for fixpath to work. 55907 new_path="$CYGWIN_ROOT_PATH$input_path" 55908 fi 55909 fi 55910 55911 55912 if test "x$path" != "x$new_path"; then 55913 MSVC_DLL="$new_path" 55914 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55915 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55916 fi 55917 55918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55919 55920 path="$MSVC_DLL" 55921 has_colon=`$ECHO $path | $GREP ^.:` 55922 new_path="$path" 55923 if test "x$has_colon" = x; then 55924 # Not in mixed or Windows style, start by that. 55925 new_path=`cmd //c echo $path` 55926 fi 55927 55928 55929 input_path="$new_path" 55930 # Check if we need to convert this using DOS-style short mode. If the path 55931 # contains just simple characters, use it. Otherwise (spaces, weird characters), 55932 # take no chances and rewrite it. 55933 # Note: m4 eats our [], so we need to use [ and ] instead. 55934 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 55935 if test "x$has_forbidden_chars" != x; then 55936 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 55937 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 55938 fi 55939 55940 55941 windows_path="$new_path" 55942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 55943 unix_path=`$CYGPATH -u "$windows_path"` 55944 new_path="$unix_path" 55945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 55946 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 55947 new_path="$unix_path" 55948 fi 55949 55950 if test "x$path" != "x$new_path"; then 55951 MSVC_DLL="$new_path" 55952 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 55953 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 55954 fi 55955 55956 # Save the first 10 bytes of this path to the storage, so fixpath can work. 55957 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 55958 55959 else 55960 # We're on a unix platform. Hooray! :) 55961 path="$MSVC_DLL" 55962 has_space=`$ECHO "$path" | $GREP " "` 55963 if test "x$has_space" != x; then 55964 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 55965 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 55966 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 55967 fi 55968 55969 # Use eval to expand a potential ~ 55970 eval path="$path" 55971 if test ! -f "$path" && test ! -d "$path"; then 55972 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 55973 fi 55974 55975 if test -d "$path"; then 55976 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 55977 else 55978 dir="`$DIRNAME "$path"`" 55979 base="`$BASENAME "$path"`" 55980 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 55981 fi 55982 fi 55983 fi 55984 55985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 55986 $as_echo_n "checking for $DLL_NAME... " >&6; } 55987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 55988 $as_echo "$MSVC_DLL" >&6; } 55989 else 55990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 55991 $as_echo "incorrect, ignoring" >&6; } 55992 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 55993 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 55994 fi 55995 fi 55996 55997 fi 55998 fi 55999 56000 if test "x$MSVC_DLL" = x; then 56001 # Probe: Check in the Boot JDK directory. 56002 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 56003 56004 DLL_NAME="$DLL_NAME" 56005 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56006 METHOD="well-known location in Boot JDK" 56007 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56008 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56009 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56010 56011 # Need to check if the found msvcr is correct architecture 56012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56013 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56014 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56016 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56017 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56018 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56019 CORRECT_MSVCR_ARCH="PE32 executable" 56020 else 56021 CORRECT_MSVCR_ARCH="PE32+ executable" 56022 fi 56023 else 56024 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56025 CORRECT_MSVCR_ARCH=386 56026 else 56027 CORRECT_MSVCR_ARCH=x86-64 56028 fi 56029 fi 56030 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56032 $as_echo "ok" >&6; } 56033 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56034 56035 # Only process if variable expands to non-empty 56036 56037 if test "x$MSVC_DLL" != x; then 56038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56039 56040 # Input might be given as Windows format, start by converting to 56041 # unix format. 56042 path="$MSVC_DLL" 56043 new_path=`$CYGPATH -u "$path"` 56044 56045 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56046 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56047 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56048 # "foo.exe" is OK but "foo" is an error. 56049 # 56050 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56051 # It is also a way to make sure we got the proper file name for the real test later on. 56052 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56053 if test "x$test_shortpath" = x; then 56054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56055 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56056 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56057 fi 56058 56059 # Call helper function which possibly converts this using DOS-style short mode. 56060 # If so, the updated path is stored in $new_path. 56061 56062 input_path="$new_path" 56063 # Check if we need to convert this using DOS-style short mode. If the path 56064 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56065 # take no chances and rewrite it. 56066 # Note: m4 eats our [], so we need to use [ and ] instead. 56067 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56068 if test "x$has_forbidden_chars" != x; then 56069 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56070 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56071 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56072 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56073 # Going to short mode and back again did indeed matter. Since short mode is 56074 # case insensitive, let's make it lowercase to improve readability. 56075 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56076 # Now convert it back to Unix-style (cygpath) 56077 input_path=`$CYGPATH -u "$shortmode_path"` 56078 new_path="$input_path" 56079 fi 56080 fi 56081 56082 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56083 if test "x$test_cygdrive_prefix" = x; then 56084 # As a simple fix, exclude /usr/bin since it's not a real path. 56085 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56086 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56087 # a path prefixed by /cygdrive for fixpath to work. 56088 new_path="$CYGWIN_ROOT_PATH$input_path" 56089 fi 56090 fi 56091 56092 56093 if test "x$path" != "x$new_path"; then 56094 MSVC_DLL="$new_path" 56095 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56096 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56097 fi 56098 56099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56100 56101 path="$MSVC_DLL" 56102 has_colon=`$ECHO $path | $GREP ^.:` 56103 new_path="$path" 56104 if test "x$has_colon" = x; then 56105 # Not in mixed or Windows style, start by that. 56106 new_path=`cmd //c echo $path` 56107 fi 56108 56109 56110 input_path="$new_path" 56111 # Check if we need to convert this using DOS-style short mode. If the path 56112 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56113 # take no chances and rewrite it. 56114 # Note: m4 eats our [], so we need to use [ and ] instead. 56115 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56116 if test "x$has_forbidden_chars" != x; then 56117 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56118 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56119 fi 56120 56121 56122 windows_path="$new_path" 56123 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56124 unix_path=`$CYGPATH -u "$windows_path"` 56125 new_path="$unix_path" 56126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56127 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56128 new_path="$unix_path" 56129 fi 56130 56131 if test "x$path" != "x$new_path"; then 56132 MSVC_DLL="$new_path" 56133 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56134 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56135 fi 56136 56137 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56138 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56139 56140 else 56141 # We're on a unix platform. Hooray! :) 56142 path="$MSVC_DLL" 56143 has_space=`$ECHO "$path" | $GREP " "` 56144 if test "x$has_space" != x; then 56145 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56146 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56147 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56148 fi 56149 56150 # Use eval to expand a potential ~ 56151 eval path="$path" 56152 if test ! -f "$path" && test ! -d "$path"; then 56153 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56154 fi 56155 56156 if test -d "$path"; then 56157 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56158 else 56159 dir="`$DIRNAME "$path"`" 56160 base="`$BASENAME "$path"`" 56161 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56162 fi 56163 fi 56164 fi 56165 56166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56167 $as_echo_n "checking for $DLL_NAME... " >&6; } 56168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56169 $as_echo "$MSVC_DLL" >&6; } 56170 else 56171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56172 $as_echo "incorrect, ignoring" >&6; } 56173 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56174 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56175 fi 56176 fi 56177 56178 fi 56179 56180 if test "x$MSVC_DLL" = x; then 56181 # Probe: Look in the Windows system32 directory 56182 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 56183 56184 windows_path="$CYGWIN_SYSTEMROOT" 56185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56186 unix_path=`$CYGPATH -u "$windows_path"` 56187 CYGWIN_SYSTEMROOT="$unix_path" 56188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56190 CYGWIN_SYSTEMROOT="$unix_path" 56191 fi 56192 56193 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 56194 56195 DLL_NAME="$DLL_NAME" 56196 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56197 METHOD="well-known location in SYSTEMROOT" 56198 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56199 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56200 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56201 56202 # Need to check if the found msvcr is correct architecture 56203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56204 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56205 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56207 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56208 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56209 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56210 CORRECT_MSVCR_ARCH="PE32 executable" 56211 else 56212 CORRECT_MSVCR_ARCH="PE32+ executable" 56213 fi 56214 else 56215 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56216 CORRECT_MSVCR_ARCH=386 56217 else 56218 CORRECT_MSVCR_ARCH=x86-64 56219 fi 56220 fi 56221 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56223 $as_echo "ok" >&6; } 56224 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56225 56226 # Only process if variable expands to non-empty 56227 56228 if test "x$MSVC_DLL" != x; then 56229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56230 56231 # Input might be given as Windows format, start by converting to 56232 # unix format. 56233 path="$MSVC_DLL" 56234 new_path=`$CYGPATH -u "$path"` 56235 56236 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56237 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56238 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56239 # "foo.exe" is OK but "foo" is an error. 56240 # 56241 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56242 # It is also a way to make sure we got the proper file name for the real test later on. 56243 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56244 if test "x$test_shortpath" = x; then 56245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56246 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56247 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56248 fi 56249 56250 # Call helper function which possibly converts this using DOS-style short mode. 56251 # If so, the updated path is stored in $new_path. 56252 56253 input_path="$new_path" 56254 # Check if we need to convert this using DOS-style short mode. If the path 56255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56256 # take no chances and rewrite it. 56257 # Note: m4 eats our [], so we need to use [ and ] instead. 56258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56259 if test "x$has_forbidden_chars" != x; then 56260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56261 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56262 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56263 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56264 # Going to short mode and back again did indeed matter. Since short mode is 56265 # case insensitive, let's make it lowercase to improve readability. 56266 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56267 # Now convert it back to Unix-style (cygpath) 56268 input_path=`$CYGPATH -u "$shortmode_path"` 56269 new_path="$input_path" 56270 fi 56271 fi 56272 56273 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56274 if test "x$test_cygdrive_prefix" = x; then 56275 # As a simple fix, exclude /usr/bin since it's not a real path. 56276 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56277 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56278 # a path prefixed by /cygdrive for fixpath to work. 56279 new_path="$CYGWIN_ROOT_PATH$input_path" 56280 fi 56281 fi 56282 56283 56284 if test "x$path" != "x$new_path"; then 56285 MSVC_DLL="$new_path" 56286 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56287 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56288 fi 56289 56290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56291 56292 path="$MSVC_DLL" 56293 has_colon=`$ECHO $path | $GREP ^.:` 56294 new_path="$path" 56295 if test "x$has_colon" = x; then 56296 # Not in mixed or Windows style, start by that. 56297 new_path=`cmd //c echo $path` 56298 fi 56299 56300 56301 input_path="$new_path" 56302 # Check if we need to convert this using DOS-style short mode. If the path 56303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56304 # take no chances and rewrite it. 56305 # Note: m4 eats our [], so we need to use [ and ] instead. 56306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56307 if test "x$has_forbidden_chars" != x; then 56308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56309 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56310 fi 56311 56312 56313 windows_path="$new_path" 56314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56315 unix_path=`$CYGPATH -u "$windows_path"` 56316 new_path="$unix_path" 56317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56318 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56319 new_path="$unix_path" 56320 fi 56321 56322 if test "x$path" != "x$new_path"; then 56323 MSVC_DLL="$new_path" 56324 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56325 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56326 fi 56327 56328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56330 56331 else 56332 # We're on a unix platform. Hooray! :) 56333 path="$MSVC_DLL" 56334 has_space=`$ECHO "$path" | $GREP " "` 56335 if test "x$has_space" != x; then 56336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56337 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56338 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56339 fi 56340 56341 # Use eval to expand a potential ~ 56342 eval path="$path" 56343 if test ! -f "$path" && test ! -d "$path"; then 56344 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56345 fi 56346 56347 if test -d "$path"; then 56348 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56349 else 56350 dir="`$DIRNAME "$path"`" 56351 base="`$BASENAME "$path"`" 56352 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56353 fi 56354 fi 56355 fi 56356 56357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56358 $as_echo_n "checking for $DLL_NAME... " >&6; } 56359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56360 $as_echo "$MSVC_DLL" >&6; } 56361 else 56362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56363 $as_echo "incorrect, ignoring" >&6; } 56364 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56365 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56366 fi 56367 fi 56368 56369 fi 56370 56371 if test "x$MSVC_DLL" = x; then 56372 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 56373 if test "x$VS100COMNTOOLS" != x; then 56374 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 56375 56376 windows_path="$CYGWIN_VS_TOOLS_DIR" 56377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56378 unix_path=`$CYGPATH -u "$windows_path"` 56379 CYGWIN_VS_TOOLS_DIR="$unix_path" 56380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56382 CYGWIN_VS_TOOLS_DIR="$unix_path" 56383 fi 56384 56385 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56386 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56387 | $GREP -i /x64/ | $HEAD --lines 1` 56388 else 56389 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 56390 | $GREP -i /x86/ | $HEAD --lines 1` 56391 fi 56392 56393 DLL_NAME="$DLL_NAME" 56394 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56395 METHOD="search of VS100COMNTOOLS" 56396 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56397 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56398 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56399 56400 # Need to check if the found msvcr is correct architecture 56401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56402 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56403 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56405 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56406 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56407 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56408 CORRECT_MSVCR_ARCH="PE32 executable" 56409 else 56410 CORRECT_MSVCR_ARCH="PE32+ executable" 56411 fi 56412 else 56413 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56414 CORRECT_MSVCR_ARCH=386 56415 else 56416 CORRECT_MSVCR_ARCH=x86-64 56417 fi 56418 fi 56419 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56421 $as_echo "ok" >&6; } 56422 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56423 56424 # Only process if variable expands to non-empty 56425 56426 if test "x$MSVC_DLL" != x; then 56427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56428 56429 # Input might be given as Windows format, start by converting to 56430 # unix format. 56431 path="$MSVC_DLL" 56432 new_path=`$CYGPATH -u "$path"` 56433 56434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56437 # "foo.exe" is OK but "foo" is an error. 56438 # 56439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56440 # It is also a way to make sure we got the proper file name for the real test later on. 56441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56442 if test "x$test_shortpath" = x; then 56443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56444 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56445 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56446 fi 56447 56448 # Call helper function which possibly converts this using DOS-style short mode. 56449 # If so, the updated path is stored in $new_path. 56450 56451 input_path="$new_path" 56452 # Check if we need to convert this using DOS-style short mode. If the path 56453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56454 # take no chances and rewrite it. 56455 # Note: m4 eats our [], so we need to use [ and ] instead. 56456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56457 if test "x$has_forbidden_chars" != x; then 56458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56462 # Going to short mode and back again did indeed matter. Since short mode is 56463 # case insensitive, let's make it lowercase to improve readability. 56464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56465 # Now convert it back to Unix-style (cygpath) 56466 input_path=`$CYGPATH -u "$shortmode_path"` 56467 new_path="$input_path" 56468 fi 56469 fi 56470 56471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56472 if test "x$test_cygdrive_prefix" = x; then 56473 # As a simple fix, exclude /usr/bin since it's not a real path. 56474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56476 # a path prefixed by /cygdrive for fixpath to work. 56477 new_path="$CYGWIN_ROOT_PATH$input_path" 56478 fi 56479 fi 56480 56481 56482 if test "x$path" != "x$new_path"; then 56483 MSVC_DLL="$new_path" 56484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56485 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56486 fi 56487 56488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56489 56490 path="$MSVC_DLL" 56491 has_colon=`$ECHO $path | $GREP ^.:` 56492 new_path="$path" 56493 if test "x$has_colon" = x; then 56494 # Not in mixed or Windows style, start by that. 56495 new_path=`cmd //c echo $path` 56496 fi 56497 56498 56499 input_path="$new_path" 56500 # Check if we need to convert this using DOS-style short mode. If the path 56501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56502 # take no chances and rewrite it. 56503 # Note: m4 eats our [], so we need to use [ and ] instead. 56504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56505 if test "x$has_forbidden_chars" != x; then 56506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56508 fi 56509 56510 56511 windows_path="$new_path" 56512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56513 unix_path=`$CYGPATH -u "$windows_path"` 56514 new_path="$unix_path" 56515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56517 new_path="$unix_path" 56518 fi 56519 56520 if test "x$path" != "x$new_path"; then 56521 MSVC_DLL="$new_path" 56522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56523 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56524 fi 56525 56526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56528 56529 else 56530 # We're on a unix platform. Hooray! :) 56531 path="$MSVC_DLL" 56532 has_space=`$ECHO "$path" | $GREP " "` 56533 if test "x$has_space" != x; then 56534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56535 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56537 fi 56538 56539 # Use eval to expand a potential ~ 56540 eval path="$path" 56541 if test ! -f "$path" && test ! -d "$path"; then 56542 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56543 fi 56544 56545 if test -d "$path"; then 56546 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56547 else 56548 dir="`$DIRNAME "$path"`" 56549 base="`$BASENAME "$path"`" 56550 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56551 fi 56552 fi 56553 fi 56554 56555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56556 $as_echo_n "checking for $DLL_NAME... " >&6; } 56557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56558 $as_echo "$MSVC_DLL" >&6; } 56559 else 56560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56561 $as_echo "incorrect, ignoring" >&6; } 56562 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56563 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56564 fi 56565 fi 56566 56567 fi 56568 fi 56569 56570 if test "x$MSVC_DLL" = x; then 56571 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 56572 # (This was the original behaviour; kept since it might turn something up) 56573 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 56574 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 56575 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56576 | $GREP x64 | $HEAD --lines 1` 56577 else 56578 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56579 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 56580 if test "x$POSSIBLE_MSVC_DLL" = x; then 56581 # We're grasping at straws now... 56582 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 56583 | $HEAD --lines 1` 56584 fi 56585 fi 56586 56587 56588 DLL_NAME="$DLL_NAME" 56589 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 56590 METHOD="search of VCINSTALLDIR" 56591 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56592 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56593 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56594 56595 # Need to check if the found msvcr is correct architecture 56596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56597 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56598 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56600 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56601 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56602 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56603 CORRECT_MSVCR_ARCH="PE32 executable" 56604 else 56605 CORRECT_MSVCR_ARCH="PE32+ executable" 56606 fi 56607 else 56608 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56609 CORRECT_MSVCR_ARCH=386 56610 else 56611 CORRECT_MSVCR_ARCH=x86-64 56612 fi 56613 fi 56614 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56616 $as_echo "ok" >&6; } 56617 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56618 56619 # Only process if variable expands to non-empty 56620 56621 if test "x$MSVC_DLL" != x; then 56622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56623 56624 # Input might be given as Windows format, start by converting to 56625 # unix format. 56626 path="$MSVC_DLL" 56627 new_path=`$CYGPATH -u "$path"` 56628 56629 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56630 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56631 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56632 # "foo.exe" is OK but "foo" is an error. 56633 # 56634 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56635 # It is also a way to make sure we got the proper file name for the real test later on. 56636 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56637 if test "x$test_shortpath" = x; then 56638 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56639 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56640 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56641 fi 56642 56643 # Call helper function which possibly converts this using DOS-style short mode. 56644 # If so, the updated path is stored in $new_path. 56645 56646 input_path="$new_path" 56647 # Check if we need to convert this using DOS-style short mode. If the path 56648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56649 # take no chances and rewrite it. 56650 # Note: m4 eats our [], so we need to use [ and ] instead. 56651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56652 if test "x$has_forbidden_chars" != x; then 56653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56654 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56655 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56656 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56657 # Going to short mode and back again did indeed matter. Since short mode is 56658 # case insensitive, let's make it lowercase to improve readability. 56659 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56660 # Now convert it back to Unix-style (cygpath) 56661 input_path=`$CYGPATH -u "$shortmode_path"` 56662 new_path="$input_path" 56663 fi 56664 fi 56665 56666 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56667 if test "x$test_cygdrive_prefix" = x; then 56668 # As a simple fix, exclude /usr/bin since it's not a real path. 56669 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56670 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56671 # a path prefixed by /cygdrive for fixpath to work. 56672 new_path="$CYGWIN_ROOT_PATH$input_path" 56673 fi 56674 fi 56675 56676 56677 if test "x$path" != "x$new_path"; then 56678 MSVC_DLL="$new_path" 56679 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56680 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56681 fi 56682 56683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56684 56685 path="$MSVC_DLL" 56686 has_colon=`$ECHO $path | $GREP ^.:` 56687 new_path="$path" 56688 if test "x$has_colon" = x; then 56689 # Not in mixed or Windows style, start by that. 56690 new_path=`cmd //c echo $path` 56691 fi 56692 56693 56694 input_path="$new_path" 56695 # Check if we need to convert this using DOS-style short mode. If the path 56696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56697 # take no chances and rewrite it. 56698 # Note: m4 eats our [], so we need to use [ and ] instead. 56699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56700 if test "x$has_forbidden_chars" != x; then 56701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56702 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56703 fi 56704 56705 56706 windows_path="$new_path" 56707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56708 unix_path=`$CYGPATH -u "$windows_path"` 56709 new_path="$unix_path" 56710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56712 new_path="$unix_path" 56713 fi 56714 56715 if test "x$path" != "x$new_path"; then 56716 MSVC_DLL="$new_path" 56717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56718 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56719 fi 56720 56721 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56722 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56723 56724 else 56725 # We're on a unix platform. Hooray! :) 56726 path="$MSVC_DLL" 56727 has_space=`$ECHO "$path" | $GREP " "` 56728 if test "x$has_space" != x; then 56729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56730 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56731 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56732 fi 56733 56734 # Use eval to expand a potential ~ 56735 eval path="$path" 56736 if test ! -f "$path" && test ! -d "$path"; then 56737 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56738 fi 56739 56740 if test -d "$path"; then 56741 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56742 else 56743 dir="`$DIRNAME "$path"`" 56744 base="`$BASENAME "$path"`" 56745 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56746 fi 56747 fi 56748 fi 56749 56750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56751 $as_echo_n "checking for $DLL_NAME... " >&6; } 56752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56753 $as_echo "$MSVC_DLL" >&6; } 56754 else 56755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56756 $as_echo "incorrect, ignoring" >&6; } 56757 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56758 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56759 fi 56760 fi 56761 56762 fi 56763 fi 56764 56765 if test "x$MSVC_DLL" = x; then 56766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56767 $as_echo_n "checking for $DLL_NAME... " >&6; } 56768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 56769 $as_echo "no" >&6; } 56770 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 56771 fi 56772 56773 MSVCR_DLL="$MSVC_DLL" 56774 fi 56775 56776 56777 56778 # Check whether --with-msvcp-dll was given. 56779 if test "${with_msvcp_dll+set}" = set; then : 56780 withval=$with_msvcp_dll; 56781 fi 56782 56783 56784 if test "x$MSVCP_NAME" != "x"; then 56785 if test "x$with_msvcp_dll" != x; then 56786 # If given explicitly by user, do not probe. If not present, fail directly. 56787 56788 DLL_NAME="$MSVCP_NAME" 56789 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 56790 METHOD="--with-msvcp-dll" 56791 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56792 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56793 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56794 56795 # Need to check if the found msvcr is correct architecture 56796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56797 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56798 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56800 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56801 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56802 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56803 CORRECT_MSVCR_ARCH="PE32 executable" 56804 else 56805 CORRECT_MSVCR_ARCH="PE32+ executable" 56806 fi 56807 else 56808 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56809 CORRECT_MSVCR_ARCH=386 56810 else 56811 CORRECT_MSVCR_ARCH=x86-64 56812 fi 56813 fi 56814 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56816 $as_echo "ok" >&6; } 56817 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56818 56819 # Only process if variable expands to non-empty 56820 56821 if test "x$MSVC_DLL" != x; then 56822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56823 56824 # Input might be given as Windows format, start by converting to 56825 # unix format. 56826 path="$MSVC_DLL" 56827 new_path=`$CYGPATH -u "$path"` 56828 56829 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 56830 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 56831 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 56832 # "foo.exe" is OK but "foo" is an error. 56833 # 56834 # This test is therefore slightly more accurate than "test -f" to check for file precense. 56835 # It is also a way to make sure we got the proper file name for the real test later on. 56836 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 56837 if test "x$test_shortpath" = x; then 56838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56839 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56840 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 56841 fi 56842 56843 # Call helper function which possibly converts this using DOS-style short mode. 56844 # If so, the updated path is stored in $new_path. 56845 56846 input_path="$new_path" 56847 # Check if we need to convert this using DOS-style short mode. If the path 56848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56849 # take no chances and rewrite it. 56850 # Note: m4 eats our [], so we need to use [ and ] instead. 56851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 56852 if test "x$has_forbidden_chars" != x; then 56853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 56855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 56856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 56857 # Going to short mode and back again did indeed matter. Since short mode is 56858 # case insensitive, let's make it lowercase to improve readability. 56859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56860 # Now convert it back to Unix-style (cygpath) 56861 input_path=`$CYGPATH -u "$shortmode_path"` 56862 new_path="$input_path" 56863 fi 56864 fi 56865 56866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 56867 if test "x$test_cygdrive_prefix" = x; then 56868 # As a simple fix, exclude /usr/bin since it's not a real path. 56869 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 56870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 56871 # a path prefixed by /cygdrive for fixpath to work. 56872 new_path="$CYGWIN_ROOT_PATH$input_path" 56873 fi 56874 fi 56875 56876 56877 if test "x$path" != "x$new_path"; then 56878 MSVC_DLL="$new_path" 56879 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56880 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56881 fi 56882 56883 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56884 56885 path="$MSVC_DLL" 56886 has_colon=`$ECHO $path | $GREP ^.:` 56887 new_path="$path" 56888 if test "x$has_colon" = x; then 56889 # Not in mixed or Windows style, start by that. 56890 new_path=`cmd //c echo $path` 56891 fi 56892 56893 56894 input_path="$new_path" 56895 # Check if we need to convert this using DOS-style short mode. If the path 56896 # contains just simple characters, use it. Otherwise (spaces, weird characters), 56897 # take no chances and rewrite it. 56898 # Note: m4 eats our [], so we need to use [ and ] instead. 56899 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 56900 if test "x$has_forbidden_chars" != x; then 56901 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 56902 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 56903 fi 56904 56905 56906 windows_path="$new_path" 56907 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 56908 unix_path=`$CYGPATH -u "$windows_path"` 56909 new_path="$unix_path" 56910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56911 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 56912 new_path="$unix_path" 56913 fi 56914 56915 if test "x$path" != "x$new_path"; then 56916 MSVC_DLL="$new_path" 56917 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 56918 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 56919 fi 56920 56921 # Save the first 10 bytes of this path to the storage, so fixpath can work. 56922 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 56923 56924 else 56925 # We're on a unix platform. Hooray! :) 56926 path="$MSVC_DLL" 56927 has_space=`$ECHO "$path" | $GREP " "` 56928 if test "x$has_space" != x; then 56929 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 56930 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 56931 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 56932 fi 56933 56934 # Use eval to expand a potential ~ 56935 eval path="$path" 56936 if test ! -f "$path" && test ! -d "$path"; then 56937 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 56938 fi 56939 56940 if test -d "$path"; then 56941 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 56942 else 56943 dir="`$DIRNAME "$path"`" 56944 base="`$BASENAME "$path"`" 56945 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 56946 fi 56947 fi 56948 fi 56949 56950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 56951 $as_echo_n "checking for $DLL_NAME... " >&6; } 56952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 56953 $as_echo "$MSVC_DLL" >&6; } 56954 else 56955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 56956 $as_echo "incorrect, ignoring" >&6; } 56957 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 56958 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 56959 fi 56960 fi 56961 56962 if test "x$MSVC_DLL" = x; then 56963 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 56964 fi 56965 MSVCP_DLL="$MSVC_DLL" 56966 elif test "x$DEVKIT_MSVCP_DLL" != x; then 56967 56968 DLL_NAME="$MSVCP_NAME" 56969 POSSIBLE_MSVC_DLL="$DEVKIT_MSVCP_DLL" 56970 METHOD="devkit" 56971 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 56972 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 56973 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 56974 56975 # Need to check if the found msvcr is correct architecture 56976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 56977 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 56978 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 56979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 56980 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 56981 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 56982 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56983 CORRECT_MSVCR_ARCH="PE32 executable" 56984 else 56985 CORRECT_MSVCR_ARCH="PE32+ executable" 56986 fi 56987 else 56988 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 56989 CORRECT_MSVCR_ARCH=386 56990 else 56991 CORRECT_MSVCR_ARCH=x86-64 56992 fi 56993 fi 56994 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 56995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 56996 $as_echo "ok" >&6; } 56997 MSVC_DLL="$POSSIBLE_MSVC_DLL" 56998 56999 # Only process if variable expands to non-empty 57000 57001 if test "x$MSVC_DLL" != x; then 57002 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57003 57004 # Input might be given as Windows format, start by converting to 57005 # unix format. 57006 path="$MSVC_DLL" 57007 new_path=`$CYGPATH -u "$path"` 57008 57009 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57010 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57011 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57012 # "foo.exe" is OK but "foo" is an error. 57013 # 57014 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57015 # It is also a way to make sure we got the proper file name for the real test later on. 57016 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57017 if test "x$test_shortpath" = x; then 57018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57019 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57020 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57021 fi 57022 57023 # Call helper function which possibly converts this using DOS-style short mode. 57024 # If so, the updated path is stored in $new_path. 57025 57026 input_path="$new_path" 57027 # Check if we need to convert this using DOS-style short mode. If the path 57028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57029 # take no chances and rewrite it. 57030 # Note: m4 eats our [], so we need to use [ and ] instead. 57031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57032 if test "x$has_forbidden_chars" != x; then 57033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57034 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57035 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57036 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57037 # Going to short mode and back again did indeed matter. Since short mode is 57038 # case insensitive, let's make it lowercase to improve readability. 57039 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57040 # Now convert it back to Unix-style (cygpath) 57041 input_path=`$CYGPATH -u "$shortmode_path"` 57042 new_path="$input_path" 57043 fi 57044 fi 57045 57046 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57047 if test "x$test_cygdrive_prefix" = x; then 57048 # As a simple fix, exclude /usr/bin since it's not a real path. 57049 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57050 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57051 # a path prefixed by /cygdrive for fixpath to work. 57052 new_path="$CYGWIN_ROOT_PATH$input_path" 57053 fi 57054 fi 57055 57056 57057 if test "x$path" != "x$new_path"; then 57058 MSVC_DLL="$new_path" 57059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57060 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57061 fi 57062 57063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57064 57065 path="$MSVC_DLL" 57066 has_colon=`$ECHO $path | $GREP ^.:` 57067 new_path="$path" 57068 if test "x$has_colon" = x; then 57069 # Not in mixed or Windows style, start by that. 57070 new_path=`cmd //c echo $path` 57071 fi 57072 57073 57074 input_path="$new_path" 57075 # Check if we need to convert this using DOS-style short mode. If the path 57076 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57077 # take no chances and rewrite it. 57078 # Note: m4 eats our [], so we need to use [ and ] instead. 57079 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57080 if test "x$has_forbidden_chars" != x; then 57081 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57082 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57083 fi 57084 57085 57086 windows_path="$new_path" 57087 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57088 unix_path=`$CYGPATH -u "$windows_path"` 57089 new_path="$unix_path" 57090 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57091 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57092 new_path="$unix_path" 57093 fi 57094 57095 if test "x$path" != "x$new_path"; then 57096 MSVC_DLL="$new_path" 57097 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57098 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57099 fi 57100 57101 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57102 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57103 57104 else 57105 # We're on a unix platform. Hooray! :) 57106 path="$MSVC_DLL" 57107 has_space=`$ECHO "$path" | $GREP " "` 57108 if test "x$has_space" != x; then 57109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57110 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57111 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57112 fi 57113 57114 # Use eval to expand a potential ~ 57115 eval path="$path" 57116 if test ! -f "$path" && test ! -d "$path"; then 57117 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57118 fi 57119 57120 if test -d "$path"; then 57121 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57122 else 57123 dir="`$DIRNAME "$path"`" 57124 base="`$BASENAME "$path"`" 57125 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57126 fi 57127 fi 57128 fi 57129 57130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57131 $as_echo_n "checking for $DLL_NAME... " >&6; } 57132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57133 $as_echo "$MSVC_DLL" >&6; } 57134 else 57135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57136 $as_echo "incorrect, ignoring" >&6; } 57137 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57138 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57139 fi 57140 fi 57141 57142 if test "x$MSVC_DLL" = x; then 57143 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by devkit" "$LINENO" 5 57144 fi 57145 MSVCP_DLL="$MSVC_DLL" 57146 else 57147 57148 DLL_NAME="${MSVCP_NAME}" 57149 MSVC_DLL= 57150 57151 if test "x$MSVC_DLL" = x; then 57152 # Probe: Using well-known location from Visual Studio 10.0 57153 if test "x$VCINSTALLDIR" != x; then 57154 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 57155 57156 windows_path="$CYGWIN_VC_INSTALL_DIR" 57157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57158 unix_path=`$CYGPATH -u "$windows_path"` 57159 CYGWIN_VC_INSTALL_DIR="$unix_path" 57160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57162 CYGWIN_VC_INSTALL_DIR="$unix_path" 57163 fi 57164 57165 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57166 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57167 else 57168 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 57169 fi 57170 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 57171 57172 DLL_NAME="$DLL_NAME" 57173 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57174 METHOD="well-known location in VCINSTALLDIR" 57175 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57176 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57177 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57178 57179 # Need to check if the found msvcr is correct architecture 57180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57181 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57182 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57184 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57185 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57186 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57187 CORRECT_MSVCR_ARCH="PE32 executable" 57188 else 57189 CORRECT_MSVCR_ARCH="PE32+ executable" 57190 fi 57191 else 57192 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57193 CORRECT_MSVCR_ARCH=386 57194 else 57195 CORRECT_MSVCR_ARCH=x86-64 57196 fi 57197 fi 57198 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57200 $as_echo "ok" >&6; } 57201 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57202 57203 # Only process if variable expands to non-empty 57204 57205 if test "x$MSVC_DLL" != x; then 57206 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57207 57208 # Input might be given as Windows format, start by converting to 57209 # unix format. 57210 path="$MSVC_DLL" 57211 new_path=`$CYGPATH -u "$path"` 57212 57213 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57214 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57215 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57216 # "foo.exe" is OK but "foo" is an error. 57217 # 57218 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57219 # It is also a way to make sure we got the proper file name for the real test later on. 57220 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57221 if test "x$test_shortpath" = x; then 57222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57223 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57224 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57225 fi 57226 57227 # Call helper function which possibly converts this using DOS-style short mode. 57228 # If so, the updated path is stored in $new_path. 57229 57230 input_path="$new_path" 57231 # Check if we need to convert this using DOS-style short mode. If the path 57232 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57233 # take no chances and rewrite it. 57234 # Note: m4 eats our [], so we need to use [ and ] instead. 57235 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57236 if test "x$has_forbidden_chars" != x; then 57237 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57238 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57239 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57240 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57241 # Going to short mode and back again did indeed matter. Since short mode is 57242 # case insensitive, let's make it lowercase to improve readability. 57243 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57244 # Now convert it back to Unix-style (cygpath) 57245 input_path=`$CYGPATH -u "$shortmode_path"` 57246 new_path="$input_path" 57247 fi 57248 fi 57249 57250 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57251 if test "x$test_cygdrive_prefix" = x; then 57252 # As a simple fix, exclude /usr/bin since it's not a real path. 57253 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57254 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57255 # a path prefixed by /cygdrive for fixpath to work. 57256 new_path="$CYGWIN_ROOT_PATH$input_path" 57257 fi 57258 fi 57259 57260 57261 if test "x$path" != "x$new_path"; then 57262 MSVC_DLL="$new_path" 57263 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57264 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57265 fi 57266 57267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57268 57269 path="$MSVC_DLL" 57270 has_colon=`$ECHO $path | $GREP ^.:` 57271 new_path="$path" 57272 if test "x$has_colon" = x; then 57273 # Not in mixed or Windows style, start by that. 57274 new_path=`cmd //c echo $path` 57275 fi 57276 57277 57278 input_path="$new_path" 57279 # Check if we need to convert this using DOS-style short mode. If the path 57280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57281 # take no chances and rewrite it. 57282 # Note: m4 eats our [], so we need to use [ and ] instead. 57283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57284 if test "x$has_forbidden_chars" != x; then 57285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57286 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57287 fi 57288 57289 57290 windows_path="$new_path" 57291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57292 unix_path=`$CYGPATH -u "$windows_path"` 57293 new_path="$unix_path" 57294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57296 new_path="$unix_path" 57297 fi 57298 57299 if test "x$path" != "x$new_path"; then 57300 MSVC_DLL="$new_path" 57301 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57302 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57303 fi 57304 57305 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57306 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57307 57308 else 57309 # We're on a unix platform. Hooray! :) 57310 path="$MSVC_DLL" 57311 has_space=`$ECHO "$path" | $GREP " "` 57312 if test "x$has_space" != x; then 57313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57314 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57315 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57316 fi 57317 57318 # Use eval to expand a potential ~ 57319 eval path="$path" 57320 if test ! -f "$path" && test ! -d "$path"; then 57321 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57322 fi 57323 57324 if test -d "$path"; then 57325 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57326 else 57327 dir="`$DIRNAME "$path"`" 57328 base="`$BASENAME "$path"`" 57329 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57330 fi 57331 fi 57332 fi 57333 57334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57335 $as_echo_n "checking for $DLL_NAME... " >&6; } 57336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57337 $as_echo "$MSVC_DLL" >&6; } 57338 else 57339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57340 $as_echo "incorrect, ignoring" >&6; } 57341 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57342 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57343 fi 57344 fi 57345 57346 fi 57347 fi 57348 57349 if test "x$MSVC_DLL" = x; then 57350 # Probe: Check in the Boot JDK directory. 57351 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 57352 57353 DLL_NAME="$DLL_NAME" 57354 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57355 METHOD="well-known location in Boot JDK" 57356 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57357 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57358 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57359 57360 # Need to check if the found msvcr is correct architecture 57361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57362 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57363 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57365 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57366 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57367 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57368 CORRECT_MSVCR_ARCH="PE32 executable" 57369 else 57370 CORRECT_MSVCR_ARCH="PE32+ executable" 57371 fi 57372 else 57373 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57374 CORRECT_MSVCR_ARCH=386 57375 else 57376 CORRECT_MSVCR_ARCH=x86-64 57377 fi 57378 fi 57379 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57381 $as_echo "ok" >&6; } 57382 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57383 57384 # Only process if variable expands to non-empty 57385 57386 if test "x$MSVC_DLL" != x; then 57387 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57388 57389 # Input might be given as Windows format, start by converting to 57390 # unix format. 57391 path="$MSVC_DLL" 57392 new_path=`$CYGPATH -u "$path"` 57393 57394 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57395 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57396 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57397 # "foo.exe" is OK but "foo" is an error. 57398 # 57399 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57400 # It is also a way to make sure we got the proper file name for the real test later on. 57401 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57402 if test "x$test_shortpath" = x; then 57403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57404 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57405 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57406 fi 57407 57408 # Call helper function which possibly converts this using DOS-style short mode. 57409 # If so, the updated path is stored in $new_path. 57410 57411 input_path="$new_path" 57412 # Check if we need to convert this using DOS-style short mode. If the path 57413 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57414 # take no chances and rewrite it. 57415 # Note: m4 eats our [], so we need to use [ and ] instead. 57416 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57417 if test "x$has_forbidden_chars" != x; then 57418 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57419 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57420 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57421 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57422 # Going to short mode and back again did indeed matter. Since short mode is 57423 # case insensitive, let's make it lowercase to improve readability. 57424 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57425 # Now convert it back to Unix-style (cygpath) 57426 input_path=`$CYGPATH -u "$shortmode_path"` 57427 new_path="$input_path" 57428 fi 57429 fi 57430 57431 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57432 if test "x$test_cygdrive_prefix" = x; then 57433 # As a simple fix, exclude /usr/bin since it's not a real path. 57434 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57435 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57436 # a path prefixed by /cygdrive for fixpath to work. 57437 new_path="$CYGWIN_ROOT_PATH$input_path" 57438 fi 57439 fi 57440 57441 57442 if test "x$path" != "x$new_path"; then 57443 MSVC_DLL="$new_path" 57444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57445 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57446 fi 57447 57448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57449 57450 path="$MSVC_DLL" 57451 has_colon=`$ECHO $path | $GREP ^.:` 57452 new_path="$path" 57453 if test "x$has_colon" = x; then 57454 # Not in mixed or Windows style, start by that. 57455 new_path=`cmd //c echo $path` 57456 fi 57457 57458 57459 input_path="$new_path" 57460 # Check if we need to convert this using DOS-style short mode. If the path 57461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57462 # take no chances and rewrite it. 57463 # Note: m4 eats our [], so we need to use [ and ] instead. 57464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57465 if test "x$has_forbidden_chars" != x; then 57466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57467 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57468 fi 57469 57470 57471 windows_path="$new_path" 57472 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57473 unix_path=`$CYGPATH -u "$windows_path"` 57474 new_path="$unix_path" 57475 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57476 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57477 new_path="$unix_path" 57478 fi 57479 57480 if test "x$path" != "x$new_path"; then 57481 MSVC_DLL="$new_path" 57482 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57483 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57484 fi 57485 57486 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57487 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57488 57489 else 57490 # We're on a unix platform. Hooray! :) 57491 path="$MSVC_DLL" 57492 has_space=`$ECHO "$path" | $GREP " "` 57493 if test "x$has_space" != x; then 57494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57495 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57496 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57497 fi 57498 57499 # Use eval to expand a potential ~ 57500 eval path="$path" 57501 if test ! -f "$path" && test ! -d "$path"; then 57502 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57503 fi 57504 57505 if test -d "$path"; then 57506 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57507 else 57508 dir="`$DIRNAME "$path"`" 57509 base="`$BASENAME "$path"`" 57510 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57511 fi 57512 fi 57513 fi 57514 57515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57516 $as_echo_n "checking for $DLL_NAME... " >&6; } 57517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57518 $as_echo "$MSVC_DLL" >&6; } 57519 else 57520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57521 $as_echo "incorrect, ignoring" >&6; } 57522 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57523 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57524 fi 57525 fi 57526 57527 fi 57528 57529 if test "x$MSVC_DLL" = x; then 57530 # Probe: Look in the Windows system32 directory 57531 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 57532 57533 windows_path="$CYGWIN_SYSTEMROOT" 57534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57535 unix_path=`$CYGPATH -u "$windows_path"` 57536 CYGWIN_SYSTEMROOT="$unix_path" 57537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57539 CYGWIN_SYSTEMROOT="$unix_path" 57540 fi 57541 57542 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 57543 57544 DLL_NAME="$DLL_NAME" 57545 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57546 METHOD="well-known location in SYSTEMROOT" 57547 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57548 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57549 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57550 57551 # Need to check if the found msvcr is correct architecture 57552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57553 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57554 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57555 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57556 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57557 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57558 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57559 CORRECT_MSVCR_ARCH="PE32 executable" 57560 else 57561 CORRECT_MSVCR_ARCH="PE32+ executable" 57562 fi 57563 else 57564 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57565 CORRECT_MSVCR_ARCH=386 57566 else 57567 CORRECT_MSVCR_ARCH=x86-64 57568 fi 57569 fi 57570 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57572 $as_echo "ok" >&6; } 57573 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57574 57575 # Only process if variable expands to non-empty 57576 57577 if test "x$MSVC_DLL" != x; then 57578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57579 57580 # Input might be given as Windows format, start by converting to 57581 # unix format. 57582 path="$MSVC_DLL" 57583 new_path=`$CYGPATH -u "$path"` 57584 57585 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57586 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57587 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57588 # "foo.exe" is OK but "foo" is an error. 57589 # 57590 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57591 # It is also a way to make sure we got the proper file name for the real test later on. 57592 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57593 if test "x$test_shortpath" = x; then 57594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57595 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57596 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57597 fi 57598 57599 # Call helper function which possibly converts this using DOS-style short mode. 57600 # If so, the updated path is stored in $new_path. 57601 57602 input_path="$new_path" 57603 # Check if we need to convert this using DOS-style short mode. If the path 57604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57605 # take no chances and rewrite it. 57606 # Note: m4 eats our [], so we need to use [ and ] instead. 57607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57608 if test "x$has_forbidden_chars" != x; then 57609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57610 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57611 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57612 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57613 # Going to short mode and back again did indeed matter. Since short mode is 57614 # case insensitive, let's make it lowercase to improve readability. 57615 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57616 # Now convert it back to Unix-style (cygpath) 57617 input_path=`$CYGPATH -u "$shortmode_path"` 57618 new_path="$input_path" 57619 fi 57620 fi 57621 57622 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57623 if test "x$test_cygdrive_prefix" = x; then 57624 # As a simple fix, exclude /usr/bin since it's not a real path. 57625 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57626 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57627 # a path prefixed by /cygdrive for fixpath to work. 57628 new_path="$CYGWIN_ROOT_PATH$input_path" 57629 fi 57630 fi 57631 57632 57633 if test "x$path" != "x$new_path"; then 57634 MSVC_DLL="$new_path" 57635 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57636 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57637 fi 57638 57639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57640 57641 path="$MSVC_DLL" 57642 has_colon=`$ECHO $path | $GREP ^.:` 57643 new_path="$path" 57644 if test "x$has_colon" = x; then 57645 # Not in mixed or Windows style, start by that. 57646 new_path=`cmd //c echo $path` 57647 fi 57648 57649 57650 input_path="$new_path" 57651 # Check if we need to convert this using DOS-style short mode. If the path 57652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57653 # take no chances and rewrite it. 57654 # Note: m4 eats our [], so we need to use [ and ] instead. 57655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57656 if test "x$has_forbidden_chars" != x; then 57657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57658 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57659 fi 57660 57661 57662 windows_path="$new_path" 57663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57664 unix_path=`$CYGPATH -u "$windows_path"` 57665 new_path="$unix_path" 57666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57668 new_path="$unix_path" 57669 fi 57670 57671 if test "x$path" != "x$new_path"; then 57672 MSVC_DLL="$new_path" 57673 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57674 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57675 fi 57676 57677 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57678 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57679 57680 else 57681 # We're on a unix platform. Hooray! :) 57682 path="$MSVC_DLL" 57683 has_space=`$ECHO "$path" | $GREP " "` 57684 if test "x$has_space" != x; then 57685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57686 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57687 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57688 fi 57689 57690 # Use eval to expand a potential ~ 57691 eval path="$path" 57692 if test ! -f "$path" && test ! -d "$path"; then 57693 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57694 fi 57695 57696 if test -d "$path"; then 57697 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57698 else 57699 dir="`$DIRNAME "$path"`" 57700 base="`$BASENAME "$path"`" 57701 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57702 fi 57703 fi 57704 fi 57705 57706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57707 $as_echo_n "checking for $DLL_NAME... " >&6; } 57708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57709 $as_echo "$MSVC_DLL" >&6; } 57710 else 57711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57712 $as_echo "incorrect, ignoring" >&6; } 57713 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57714 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57715 fi 57716 fi 57717 57718 fi 57719 57720 if test "x$MSVC_DLL" = x; then 57721 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 57722 if test "x$VS100COMNTOOLS" != x; then 57723 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 57724 57725 windows_path="$CYGWIN_VS_TOOLS_DIR" 57726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57727 unix_path=`$CYGPATH -u "$windows_path"` 57728 CYGWIN_VS_TOOLS_DIR="$unix_path" 57729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57730 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57731 CYGWIN_VS_TOOLS_DIR="$unix_path" 57732 fi 57733 57734 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57735 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57736 | $GREP -i /x64/ | $HEAD --lines 1` 57737 else 57738 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 57739 | $GREP -i /x86/ | $HEAD --lines 1` 57740 fi 57741 57742 DLL_NAME="$DLL_NAME" 57743 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57744 METHOD="search of VS100COMNTOOLS" 57745 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57746 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57747 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57748 57749 # Need to check if the found msvcr is correct architecture 57750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57751 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57752 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57754 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57755 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57756 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57757 CORRECT_MSVCR_ARCH="PE32 executable" 57758 else 57759 CORRECT_MSVCR_ARCH="PE32+ executable" 57760 fi 57761 else 57762 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57763 CORRECT_MSVCR_ARCH=386 57764 else 57765 CORRECT_MSVCR_ARCH=x86-64 57766 fi 57767 fi 57768 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57770 $as_echo "ok" >&6; } 57771 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57772 57773 # Only process if variable expands to non-empty 57774 57775 if test "x$MSVC_DLL" != x; then 57776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57777 57778 # Input might be given as Windows format, start by converting to 57779 # unix format. 57780 path="$MSVC_DLL" 57781 new_path=`$CYGPATH -u "$path"` 57782 57783 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57784 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57785 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57786 # "foo.exe" is OK but "foo" is an error. 57787 # 57788 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57789 # It is also a way to make sure we got the proper file name for the real test later on. 57790 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57791 if test "x$test_shortpath" = x; then 57792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57793 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57794 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57795 fi 57796 57797 # Call helper function which possibly converts this using DOS-style short mode. 57798 # If so, the updated path is stored in $new_path. 57799 57800 input_path="$new_path" 57801 # Check if we need to convert this using DOS-style short mode. If the path 57802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57803 # take no chances and rewrite it. 57804 # Note: m4 eats our [], so we need to use [ and ] instead. 57805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 57806 if test "x$has_forbidden_chars" != x; then 57807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57808 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 57809 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 57810 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 57811 # Going to short mode and back again did indeed matter. Since short mode is 57812 # case insensitive, let's make it lowercase to improve readability. 57813 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57814 # Now convert it back to Unix-style (cygpath) 57815 input_path=`$CYGPATH -u "$shortmode_path"` 57816 new_path="$input_path" 57817 fi 57818 fi 57819 57820 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 57821 if test "x$test_cygdrive_prefix" = x; then 57822 # As a simple fix, exclude /usr/bin since it's not a real path. 57823 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 57824 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 57825 # a path prefixed by /cygdrive for fixpath to work. 57826 new_path="$CYGWIN_ROOT_PATH$input_path" 57827 fi 57828 fi 57829 57830 57831 if test "x$path" != "x$new_path"; then 57832 MSVC_DLL="$new_path" 57833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57834 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57835 fi 57836 57837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57838 57839 path="$MSVC_DLL" 57840 has_colon=`$ECHO $path | $GREP ^.:` 57841 new_path="$path" 57842 if test "x$has_colon" = x; then 57843 # Not in mixed or Windows style, start by that. 57844 new_path=`cmd //c echo $path` 57845 fi 57846 57847 57848 input_path="$new_path" 57849 # Check if we need to convert this using DOS-style short mode. If the path 57850 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57851 # take no chances and rewrite it. 57852 # Note: m4 eats our [], so we need to use [ and ] instead. 57853 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 57854 if test "x$has_forbidden_chars" != x; then 57855 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 57856 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 57857 fi 57858 57859 57860 windows_path="$new_path" 57861 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57862 unix_path=`$CYGPATH -u "$windows_path"` 57863 new_path="$unix_path" 57864 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57865 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 57866 new_path="$unix_path" 57867 fi 57868 57869 if test "x$path" != "x$new_path"; then 57870 MSVC_DLL="$new_path" 57871 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 57872 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 57873 fi 57874 57875 # Save the first 10 bytes of this path to the storage, so fixpath can work. 57876 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 57877 57878 else 57879 # We're on a unix platform. Hooray! :) 57880 path="$MSVC_DLL" 57881 has_space=`$ECHO "$path" | $GREP " "` 57882 if test "x$has_space" != x; then 57883 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57884 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57885 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 57886 fi 57887 57888 # Use eval to expand a potential ~ 57889 eval path="$path" 57890 if test ! -f "$path" && test ! -d "$path"; then 57891 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 57892 fi 57893 57894 if test -d "$path"; then 57895 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 57896 else 57897 dir="`$DIRNAME "$path"`" 57898 base="`$BASENAME "$path"`" 57899 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 57900 fi 57901 fi 57902 fi 57903 57904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 57905 $as_echo_n "checking for $DLL_NAME... " >&6; } 57906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 57907 $as_echo "$MSVC_DLL" >&6; } 57908 else 57909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 57910 $as_echo "incorrect, ignoring" >&6; } 57911 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 57912 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 57913 fi 57914 fi 57915 57916 fi 57917 fi 57918 57919 if test "x$MSVC_DLL" = x; then 57920 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 57921 # (This was the original behaviour; kept since it might turn something up) 57922 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 57923 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 57924 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57925 | $GREP x64 | $HEAD --lines 1` 57926 else 57927 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57928 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 57929 if test "x$POSSIBLE_MSVC_DLL" = x; then 57930 # We're grasping at straws now... 57931 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 57932 | $HEAD --lines 1` 57933 fi 57934 fi 57935 57936 57937 DLL_NAME="$DLL_NAME" 57938 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 57939 METHOD="search of VCINSTALLDIR" 57940 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 57941 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 57942 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 57943 57944 # Need to check if the found msvcr is correct architecture 57945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 57946 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 57947 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 57948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 57949 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 57950 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 57951 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57952 CORRECT_MSVCR_ARCH="PE32 executable" 57953 else 57954 CORRECT_MSVCR_ARCH="PE32+ executable" 57955 fi 57956 else 57957 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 57958 CORRECT_MSVCR_ARCH=386 57959 else 57960 CORRECT_MSVCR_ARCH=x86-64 57961 fi 57962 fi 57963 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 57964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 57965 $as_echo "ok" >&6; } 57966 MSVC_DLL="$POSSIBLE_MSVC_DLL" 57967 57968 # Only process if variable expands to non-empty 57969 57970 if test "x$MSVC_DLL" != x; then 57971 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 57972 57973 # Input might be given as Windows format, start by converting to 57974 # unix format. 57975 path="$MSVC_DLL" 57976 new_path=`$CYGPATH -u "$path"` 57977 57978 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 57979 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 57980 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 57981 # "foo.exe" is OK but "foo" is an error. 57982 # 57983 # This test is therefore slightly more accurate than "test -f" to check for file precense. 57984 # It is also a way to make sure we got the proper file name for the real test later on. 57985 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 57986 if test "x$test_shortpath" = x; then 57987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 57988 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 57989 as_fn_error $? "Cannot locate the the path of MSVC_DLL" "$LINENO" 5 57990 fi 57991 57992 # Call helper function which possibly converts this using DOS-style short mode. 57993 # If so, the updated path is stored in $new_path. 57994 57995 input_path="$new_path" 57996 # Check if we need to convert this using DOS-style short mode. If the path 57997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 57998 # take no chances and rewrite it. 57999 # Note: m4 eats our [], so we need to use [ and ] instead. 58000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 58001 if test "x$has_forbidden_chars" != x; then 58002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58003 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 58004 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 58005 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 58006 # Going to short mode and back again did indeed matter. Since short mode is 58007 # case insensitive, let's make it lowercase to improve readability. 58008 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58009 # Now convert it back to Unix-style (cygpath) 58010 input_path=`$CYGPATH -u "$shortmode_path"` 58011 new_path="$input_path" 58012 fi 58013 fi 58014 58015 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 58016 if test "x$test_cygdrive_prefix" = x; then 58017 # As a simple fix, exclude /usr/bin since it's not a real path. 58018 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 58019 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 58020 # a path prefixed by /cygdrive for fixpath to work. 58021 new_path="$CYGWIN_ROOT_PATH$input_path" 58022 fi 58023 fi 58024 58025 58026 if test "x$path" != "x$new_path"; then 58027 MSVC_DLL="$new_path" 58028 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58029 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58030 fi 58031 58032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58033 58034 path="$MSVC_DLL" 58035 has_colon=`$ECHO $path | $GREP ^.:` 58036 new_path="$path" 58037 if test "x$has_colon" = x; then 58038 # Not in mixed or Windows style, start by that. 58039 new_path=`cmd //c echo $path` 58040 fi 58041 58042 58043 input_path="$new_path" 58044 # Check if we need to convert this using DOS-style short mode. If the path 58045 # contains just simple characters, use it. Otherwise (spaces, weird characters), 58046 # take no chances and rewrite it. 58047 # Note: m4 eats our [], so we need to use [ and ] instead. 58048 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 58049 if test "x$has_forbidden_chars" != x; then 58050 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 58051 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 58052 fi 58053 58054 58055 windows_path="$new_path" 58056 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58057 unix_path=`$CYGPATH -u "$windows_path"` 58058 new_path="$unix_path" 58059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58060 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 58061 new_path="$unix_path" 58062 fi 58063 58064 if test "x$path" != "x$new_path"; then 58065 MSVC_DLL="$new_path" 58066 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVC_DLL to \"$new_path\"" >&5 58067 $as_echo "$as_me: Rewriting MSVC_DLL to \"$new_path\"" >&6;} 58068 fi 58069 58070 # Save the first 10 bytes of this path to the storage, so fixpath can work. 58071 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 58072 58073 else 58074 # We're on a unix platform. Hooray! :) 58075 path="$MSVC_DLL" 58076 has_space=`$ECHO "$path" | $GREP " "` 58077 if test "x$has_space" != x; then 58078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&5 58079 $as_echo "$as_me: The path of MSVC_DLL, which resolves as \"$path\", is invalid." >&6;} 58080 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 58081 fi 58082 58083 # Use eval to expand a potential ~ 58084 eval path="$path" 58085 if test ! -f "$path" && test ! -d "$path"; then 58086 as_fn_error $? "The path of MSVC_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 58087 fi 58088 58089 if test -d "$path"; then 58090 MSVC_DLL="`cd "$path"; $THEPWDCMD -L`" 58091 else 58092 dir="`$DIRNAME "$path"`" 58093 base="`$BASENAME "$path"`" 58094 MSVC_DLL="`cd "$dir"; $THEPWDCMD -L`/$base" 58095 fi 58096 fi 58097 fi 58098 58099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58100 $as_echo_n "checking for $DLL_NAME... " >&6; } 58101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 58102 $as_echo "$MSVC_DLL" >&6; } 58103 else 58104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 58105 $as_echo "incorrect, ignoring" >&6; } 58106 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 58107 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 58108 fi 58109 fi 58110 58111 fi 58112 fi 58113 58114 if test "x$MSVC_DLL" = x; then 58115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 58116 $as_echo_n "checking for $DLL_NAME... " >&6; } 58117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58118 $as_echo "no" >&6; } 58119 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 58120 fi 58121 58122 MSVCP_DLL="$MSVC_DLL" 58123 fi 58124 58125 fi 58126 58127 fi 58128 58129 58130 if test "x$NEEDS_LIB_X11" = xfalse; then 58131 if (test "x${with_x}" != x && test "x${with_x}" != xno); then 58132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 58133 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 58134 fi 58135 X_CFLAGS= 58136 X_LIBS= 58137 else 58138 58139 if test "x${with_x}" = xno; then 58140 as_fn_error $? "It is not possible to disable the use of X11. Remove the --without-x option." "$LINENO" 5 58141 fi 58142 58143 if test "x${with_x}" != x && test "x${with_x}" != xyes; then 58144 # The user has specified a X11 base directory. Use it for includes and 58145 # libraries, unless explicitly overridden. 58146 if test "x$x_includes" = xNONE; then 58147 x_includes="${with_x}/include" 58148 fi 58149 if test "x$x_libraries" = xNONE; then 58150 x_libraries="${with_x}/lib" 58151 fi 58152 else 58153 # Check if the user has specified sysroot, but not --with-x, --x-includes or --x-libraries. 58154 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 58155 # --x-libraries for the sysroot, if that seems to be correct. 58156 if test "x$SYSROOT" != "x"; then 58157 if test "x$x_includes" = xNONE; then 58158 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 58159 x_includes="$SYSROOT/usr/X11R6/include" 58160 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 58161 x_includes="$SYSROOT/usr/include" 58162 fi 58163 fi 58164 if test "x$x_libraries" = xNONE; then 58165 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 58166 x_libraries="$SYSROOT/usr/X11R6/lib" 58167 elif test -f "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 58168 x_libraries="$SYSROOT/usr/lib64" 58169 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 58170 x_libraries="$SYSROOT/usr/lib" 58171 fi 58172 fi 58173 fi 58174 fi 58175 58176 # Now let autoconf do it's magic 58177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 58178 $as_echo_n "checking for X... " >&6; } 58179 58180 58181 # Check whether --with-x was given. 58182 if test "${with_x+set}" = set; then : 58183 withval=$with_x; 58184 fi 58185 58186 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 58187 if test "x$with_x" = xno; then 58188 # The user explicitly disabled X. 58189 have_x=disabled 58190 else 58191 case $x_includes,$x_libraries in #( 58192 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 58193 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 58194 $as_echo_n "(cached) " >&6 58195 else 58196 # One or both of the vars are not set, and there is no cached value. 58197 ac_x_includes=no ac_x_libraries=no 58198 rm -f -r conftest.dir 58199 if mkdir conftest.dir; then 58200 cd conftest.dir 58201 cat >Imakefile <<'_ACEOF' 58202 incroot: 58203 @echo incroot='${INCROOT}' 58204 usrlibdir: 58205 @echo usrlibdir='${USRLIBDIR}' 58206 libdir: 58207 @echo libdir='${LIBDIR}' 58208 _ACEOF 58209 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 58210 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 58211 for ac_var in incroot usrlibdir libdir; do 58212 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 58213 done 58214 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 58215 for ac_extension in a so sl dylib la dll; do 58216 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 58217 test -f "$ac_im_libdir/libX11.$ac_extension"; then 58218 ac_im_usrlibdir=$ac_im_libdir; break 58219 fi 58220 done 58221 # Screen out bogus values from the imake configuration. They are 58222 # bogus both because they are the default anyway, and because 58223 # using them would break gcc on systems where it needs fixed includes. 58224 case $ac_im_incroot in 58225 /usr/include) ac_x_includes= ;; 58226 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 58227 esac 58228 case $ac_im_usrlibdir in 58229 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 58230 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 58231 esac 58232 fi 58233 cd .. 58234 rm -f -r conftest.dir 58235 fi 58236 58237 # Standard set of common directories for X headers. 58238 # Check X11 before X11Rn because it is often a symlink to the current release. 58239 ac_x_header_dirs=' 58240 /usr/X11/include 58241 /usr/X11R7/include 58242 /usr/X11R6/include 58243 /usr/X11R5/include 58244 /usr/X11R4/include 58245 58246 /usr/include/X11 58247 /usr/include/X11R7 58248 /usr/include/X11R6 58249 /usr/include/X11R5 58250 /usr/include/X11R4 58251 58252 /usr/local/X11/include 58253 /usr/local/X11R7/include 58254 /usr/local/X11R6/include 58255 /usr/local/X11R5/include 58256 /usr/local/X11R4/include 58257 58258 /usr/local/include/X11 58259 /usr/local/include/X11R7 58260 /usr/local/include/X11R6 58261 /usr/local/include/X11R5 58262 /usr/local/include/X11R4 58263 58264 /usr/X386/include 58265 /usr/x386/include 58266 /usr/XFree86/include/X11 58267 58268 /usr/include 58269 /usr/local/include 58270 /usr/unsupported/include 58271 /usr/athena/include 58272 /usr/local/x11r5/include 58273 /usr/lpp/Xamples/include 58274 58275 /usr/openwin/include 58276 /usr/openwin/share/include' 58277 58278 if test "$ac_x_includes" = no; then 58279 # Guess where to find include files, by looking for Xlib.h. 58280 # First, try using that file with no special directory specified. 58281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58282 /* end confdefs.h. */ 58283 #include <X11/Xlib.h> 58284 _ACEOF 58285 if ac_fn_cxx_try_cpp "$LINENO"; then : 58286 # We can compile using X headers with no special include directory. 58287 ac_x_includes= 58288 else 58289 for ac_dir in $ac_x_header_dirs; do 58290 if test -r "$ac_dir/X11/Xlib.h"; then 58291 ac_x_includes=$ac_dir 58292 break 58293 fi 58294 done 58295 fi 58296 rm -f conftest.err conftest.i conftest.$ac_ext 58297 fi # $ac_x_includes = no 58298 58299 if test "$ac_x_libraries" = no; then 58300 # Check for the libraries. 58301 # See if we find them without any special options. 58302 # Don't add to $LIBS permanently. 58303 ac_save_LIBS=$LIBS 58304 LIBS="-lX11 $LIBS" 58305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58306 /* end confdefs.h. */ 58307 #include <X11/Xlib.h> 58308 int 58309 main () 58310 { 58311 XrmInitialize () 58312 ; 58313 return 0; 58314 } 58315 _ACEOF 58316 if ac_fn_cxx_try_link "$LINENO"; then : 58317 LIBS=$ac_save_LIBS 58318 # We can link X programs with no special library path. 58319 ac_x_libraries= 58320 else 58321 LIBS=$ac_save_LIBS 58322 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 58323 do 58324 # Don't even attempt the hair of trying to link an X program! 58325 for ac_extension in a so sl dylib la dll; do 58326 if test -r "$ac_dir/libX11.$ac_extension"; then 58327 ac_x_libraries=$ac_dir 58328 break 2 58329 fi 58330 done 58331 done 58332 fi 58333 rm -f core conftest.err conftest.$ac_objext \ 58334 conftest$ac_exeext conftest.$ac_ext 58335 fi # $ac_x_libraries = no 58336 58337 case $ac_x_includes,$ac_x_libraries in #( 58338 no,* | *,no | *\'*) 58339 # Didn't find X, or a directory has "'" in its name. 58340 ac_cv_have_x="have_x=no";; #( 58341 *) 58342 # Record where we found X for the cache. 58343 ac_cv_have_x="have_x=yes\ 58344 ac_x_includes='$ac_x_includes'\ 58345 ac_x_libraries='$ac_x_libraries'" 58346 esac 58347 fi 58348 ;; #( 58349 *) have_x=yes;; 58350 esac 58351 eval "$ac_cv_have_x" 58352 fi # $with_x != no 58353 58354 if test "$have_x" != yes; then 58355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 58356 $as_echo "$have_x" >&6; } 58357 no_x=yes 58358 else 58359 # If each of the values was on the command line, it overrides each guess. 58360 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 58361 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 58362 # Update the cache value to reflect the command line values. 58363 ac_cv_have_x="have_x=yes\ 58364 ac_x_includes='$x_includes'\ 58365 ac_x_libraries='$x_libraries'" 58366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 58367 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 58368 fi 58369 58370 if test "$no_x" = yes; then 58371 # Not all programs may use this symbol, but it does not hurt to define it. 58372 58373 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 58374 58375 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 58376 else 58377 if test -n "$x_includes"; then 58378 X_CFLAGS="$X_CFLAGS -I$x_includes" 58379 fi 58380 58381 # It would also be nice to do this for all -L options, not just this one. 58382 if test -n "$x_libraries"; then 58383 X_LIBS="$X_LIBS -L$x_libraries" 58384 # For Solaris; some versions of Sun CC require a space after -R and 58385 # others require no space. Words are not sufficient . . . . 58386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 58387 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 58388 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 58389 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 58390 ac_cxx_werror_flag=yes 58391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58392 /* end confdefs.h. */ 58393 58394 int 58395 main () 58396 { 58397 58398 ; 58399 return 0; 58400 } 58401 _ACEOF 58402 if ac_fn_cxx_try_link "$LINENO"; then : 58403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58404 $as_echo "no" >&6; } 58405 X_LIBS="$X_LIBS -R$x_libraries" 58406 else 58407 LIBS="$ac_xsave_LIBS -R $x_libraries" 58408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58409 /* end confdefs.h. */ 58410 58411 int 58412 main () 58413 { 58414 58415 ; 58416 return 0; 58417 } 58418 _ACEOF 58419 if ac_fn_cxx_try_link "$LINENO"; then : 58420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58421 $as_echo "yes" >&6; } 58422 X_LIBS="$X_LIBS -R $x_libraries" 58423 else 58424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 58425 $as_echo "neither works" >&6; } 58426 fi 58427 rm -f core conftest.err conftest.$ac_objext \ 58428 conftest$ac_exeext conftest.$ac_ext 58429 fi 58430 rm -f core conftest.err conftest.$ac_objext \ 58431 conftest$ac_exeext conftest.$ac_ext 58432 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 58433 LIBS=$ac_xsave_LIBS 58434 fi 58435 58436 # Check for system-dependent libraries X programs must link with. 58437 # Do this before checking for the system-independent R6 libraries 58438 # (-lICE), since we may need -lsocket or whatever for X linking. 58439 58440 if test "$ISC" = yes; then 58441 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 58442 else 58443 # Martyn Johnson says this is needed for Ultrix, if the X 58444 # libraries were built with DECnet support. And Karl Berry says 58445 # the Alpha needs dnet_stub (dnet does not exist). 58446 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 58447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58448 /* end confdefs.h. */ 58449 58450 /* Override any GCC internal prototype to avoid an error. 58451 Use char because int might match the return type of a GCC 58452 builtin and then its argument prototype would still apply. */ 58453 #ifdef __cplusplus 58454 extern "C" 58455 #endif 58456 char XOpenDisplay (); 58457 int 58458 main () 58459 { 58460 return XOpenDisplay (); 58461 ; 58462 return 0; 58463 } 58464 _ACEOF 58465 if ac_fn_cxx_try_link "$LINENO"; then : 58466 58467 else 58468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 58469 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 58470 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 58471 $as_echo_n "(cached) " >&6 58472 else 58473 ac_check_lib_save_LIBS=$LIBS 58474 LIBS="-ldnet $LIBS" 58475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58476 /* end confdefs.h. */ 58477 58478 /* Override any GCC internal prototype to avoid an error. 58479 Use char because int might match the return type of a GCC 58480 builtin and then its argument prototype would still apply. */ 58481 #ifdef __cplusplus 58482 extern "C" 58483 #endif 58484 char dnet_ntoa (); 58485 int 58486 main () 58487 { 58488 return dnet_ntoa (); 58489 ; 58490 return 0; 58491 } 58492 _ACEOF 58493 if ac_fn_cxx_try_link "$LINENO"; then : 58494 ac_cv_lib_dnet_dnet_ntoa=yes 58495 else 58496 ac_cv_lib_dnet_dnet_ntoa=no 58497 fi 58498 rm -f core conftest.err conftest.$ac_objext \ 58499 conftest$ac_exeext conftest.$ac_ext 58500 LIBS=$ac_check_lib_save_LIBS 58501 fi 58502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 58503 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 58504 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 58505 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 58506 fi 58507 58508 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 58509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 58510 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 58511 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 58512 $as_echo_n "(cached) " >&6 58513 else 58514 ac_check_lib_save_LIBS=$LIBS 58515 LIBS="-ldnet_stub $LIBS" 58516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58517 /* end confdefs.h. */ 58518 58519 /* Override any GCC internal prototype to avoid an error. 58520 Use char because int might match the return type of a GCC 58521 builtin and then its argument prototype would still apply. */ 58522 #ifdef __cplusplus 58523 extern "C" 58524 #endif 58525 char dnet_ntoa (); 58526 int 58527 main () 58528 { 58529 return dnet_ntoa (); 58530 ; 58531 return 0; 58532 } 58533 _ACEOF 58534 if ac_fn_cxx_try_link "$LINENO"; then : 58535 ac_cv_lib_dnet_stub_dnet_ntoa=yes 58536 else 58537 ac_cv_lib_dnet_stub_dnet_ntoa=no 58538 fi 58539 rm -f core conftest.err conftest.$ac_objext \ 58540 conftest$ac_exeext conftest.$ac_ext 58541 LIBS=$ac_check_lib_save_LIBS 58542 fi 58543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 58544 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 58545 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 58546 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 58547 fi 58548 58549 fi 58550 fi 58551 rm -f core conftest.err conftest.$ac_objext \ 58552 conftest$ac_exeext conftest.$ac_ext 58553 LIBS="$ac_xsave_LIBS" 58554 58555 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 58556 # to get the SysV transport functions. 58557 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 58558 # needs -lnsl. 58559 # The nsl library prevents programs from opening the X display 58560 # on Irix 5.2, according to T.E. Dickey. 58561 # The functions gethostbyname, getservbyname, and inet_addr are 58562 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 58563 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 58564 if test "x$ac_cv_func_gethostbyname" = xyes; then : 58565 58566 fi 58567 58568 if test $ac_cv_func_gethostbyname = no; then 58569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 58570 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 58571 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 58572 $as_echo_n "(cached) " >&6 58573 else 58574 ac_check_lib_save_LIBS=$LIBS 58575 LIBS="-lnsl $LIBS" 58576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58577 /* end confdefs.h. */ 58578 58579 /* Override any GCC internal prototype to avoid an error. 58580 Use char because int might match the return type of a GCC 58581 builtin and then its argument prototype would still apply. */ 58582 #ifdef __cplusplus 58583 extern "C" 58584 #endif 58585 char gethostbyname (); 58586 int 58587 main () 58588 { 58589 return gethostbyname (); 58590 ; 58591 return 0; 58592 } 58593 _ACEOF 58594 if ac_fn_cxx_try_link "$LINENO"; then : 58595 ac_cv_lib_nsl_gethostbyname=yes 58596 else 58597 ac_cv_lib_nsl_gethostbyname=no 58598 fi 58599 rm -f core conftest.err conftest.$ac_objext \ 58600 conftest$ac_exeext conftest.$ac_ext 58601 LIBS=$ac_check_lib_save_LIBS 58602 fi 58603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 58604 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 58605 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 58606 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 58607 fi 58608 58609 if test $ac_cv_lib_nsl_gethostbyname = no; then 58610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 58611 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 58612 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 58613 $as_echo_n "(cached) " >&6 58614 else 58615 ac_check_lib_save_LIBS=$LIBS 58616 LIBS="-lbsd $LIBS" 58617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58618 /* end confdefs.h. */ 58619 58620 /* Override any GCC internal prototype to avoid an error. 58621 Use char because int might match the return type of a GCC 58622 builtin and then its argument prototype would still apply. */ 58623 #ifdef __cplusplus 58624 extern "C" 58625 #endif 58626 char gethostbyname (); 58627 int 58628 main () 58629 { 58630 return gethostbyname (); 58631 ; 58632 return 0; 58633 } 58634 _ACEOF 58635 if ac_fn_cxx_try_link "$LINENO"; then : 58636 ac_cv_lib_bsd_gethostbyname=yes 58637 else 58638 ac_cv_lib_bsd_gethostbyname=no 58639 fi 58640 rm -f core conftest.err conftest.$ac_objext \ 58641 conftest$ac_exeext conftest.$ac_ext 58642 LIBS=$ac_check_lib_save_LIBS 58643 fi 58644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 58645 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 58646 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 58647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 58648 fi 58649 58650 fi 58651 fi 58652 58653 # lieder@skyler.mavd.honeywell.com says without -lsocket, 58654 # socket/setsockopt and other routines are undefined under SCO ODT 58655 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 58656 # on later versions), says Simon Leinen: it contains gethostby* 58657 # variants that don't use the name server (or something). -lsocket 58658 # must be given before -lnsl if both are needed. We assume that 58659 # if connect needs -lnsl, so does gethostbyname. 58660 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 58661 if test "x$ac_cv_func_connect" = xyes; then : 58662 58663 fi 58664 58665 if test $ac_cv_func_connect = no; then 58666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 58667 $as_echo_n "checking for connect in -lsocket... " >&6; } 58668 if ${ac_cv_lib_socket_connect+:} false; then : 58669 $as_echo_n "(cached) " >&6 58670 else 58671 ac_check_lib_save_LIBS=$LIBS 58672 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 58673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58674 /* end confdefs.h. */ 58675 58676 /* Override any GCC internal prototype to avoid an error. 58677 Use char because int might match the return type of a GCC 58678 builtin and then its argument prototype would still apply. */ 58679 #ifdef __cplusplus 58680 extern "C" 58681 #endif 58682 char connect (); 58683 int 58684 main () 58685 { 58686 return connect (); 58687 ; 58688 return 0; 58689 } 58690 _ACEOF 58691 if ac_fn_cxx_try_link "$LINENO"; then : 58692 ac_cv_lib_socket_connect=yes 58693 else 58694 ac_cv_lib_socket_connect=no 58695 fi 58696 rm -f core conftest.err conftest.$ac_objext \ 58697 conftest$ac_exeext conftest.$ac_ext 58698 LIBS=$ac_check_lib_save_LIBS 58699 fi 58700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 58701 $as_echo "$ac_cv_lib_socket_connect" >&6; } 58702 if test "x$ac_cv_lib_socket_connect" = xyes; then : 58703 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 58704 fi 58705 58706 fi 58707 58708 # Guillermo Gomez says -lposix is necessary on A/UX. 58709 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 58710 if test "x$ac_cv_func_remove" = xyes; then : 58711 58712 fi 58713 58714 if test $ac_cv_func_remove = no; then 58715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 58716 $as_echo_n "checking for remove in -lposix... " >&6; } 58717 if ${ac_cv_lib_posix_remove+:} false; then : 58718 $as_echo_n "(cached) " >&6 58719 else 58720 ac_check_lib_save_LIBS=$LIBS 58721 LIBS="-lposix $LIBS" 58722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58723 /* end confdefs.h. */ 58724 58725 /* Override any GCC internal prototype to avoid an error. 58726 Use char because int might match the return type of a GCC 58727 builtin and then its argument prototype would still apply. */ 58728 #ifdef __cplusplus 58729 extern "C" 58730 #endif 58731 char remove (); 58732 int 58733 main () 58734 { 58735 return remove (); 58736 ; 58737 return 0; 58738 } 58739 _ACEOF 58740 if ac_fn_cxx_try_link "$LINENO"; then : 58741 ac_cv_lib_posix_remove=yes 58742 else 58743 ac_cv_lib_posix_remove=no 58744 fi 58745 rm -f core conftest.err conftest.$ac_objext \ 58746 conftest$ac_exeext conftest.$ac_ext 58747 LIBS=$ac_check_lib_save_LIBS 58748 fi 58749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 58750 $as_echo "$ac_cv_lib_posix_remove" >&6; } 58751 if test "x$ac_cv_lib_posix_remove" = xyes; then : 58752 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 58753 fi 58754 58755 fi 58756 58757 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 58758 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 58759 if test "x$ac_cv_func_shmat" = xyes; then : 58760 58761 fi 58762 58763 if test $ac_cv_func_shmat = no; then 58764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 58765 $as_echo_n "checking for shmat in -lipc... " >&6; } 58766 if ${ac_cv_lib_ipc_shmat+:} false; then : 58767 $as_echo_n "(cached) " >&6 58768 else 58769 ac_check_lib_save_LIBS=$LIBS 58770 LIBS="-lipc $LIBS" 58771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58772 /* end confdefs.h. */ 58773 58774 /* Override any GCC internal prototype to avoid an error. 58775 Use char because int might match the return type of a GCC 58776 builtin and then its argument prototype would still apply. */ 58777 #ifdef __cplusplus 58778 extern "C" 58779 #endif 58780 char shmat (); 58781 int 58782 main () 58783 { 58784 return shmat (); 58785 ; 58786 return 0; 58787 } 58788 _ACEOF 58789 if ac_fn_cxx_try_link "$LINENO"; then : 58790 ac_cv_lib_ipc_shmat=yes 58791 else 58792 ac_cv_lib_ipc_shmat=no 58793 fi 58794 rm -f core conftest.err conftest.$ac_objext \ 58795 conftest$ac_exeext conftest.$ac_ext 58796 LIBS=$ac_check_lib_save_LIBS 58797 fi 58798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 58799 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 58800 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 58801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 58802 fi 58803 58804 fi 58805 fi 58806 58807 # Check for libraries that X11R6 Xt/Xaw programs need. 58808 ac_save_LDFLAGS=$LDFLAGS 58809 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 58810 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 58811 # check for ICE first), but we must link in the order -lSM -lICE or 58812 # we get undefined symbols. So assume we have SM if we have ICE. 58813 # These have to be linked with before -lX11, unlike the other 58814 # libraries we check for below, so use a different variable. 58815 # John Interrante, Karl Berry 58816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 58817 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 58818 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 58819 $as_echo_n "(cached) " >&6 58820 else 58821 ac_check_lib_save_LIBS=$LIBS 58822 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 58823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58824 /* end confdefs.h. */ 58825 58826 /* Override any GCC internal prototype to avoid an error. 58827 Use char because int might match the return type of a GCC 58828 builtin and then its argument prototype would still apply. */ 58829 #ifdef __cplusplus 58830 extern "C" 58831 #endif 58832 char IceConnectionNumber (); 58833 int 58834 main () 58835 { 58836 return IceConnectionNumber (); 58837 ; 58838 return 0; 58839 } 58840 _ACEOF 58841 if ac_fn_cxx_try_link "$LINENO"; then : 58842 ac_cv_lib_ICE_IceConnectionNumber=yes 58843 else 58844 ac_cv_lib_ICE_IceConnectionNumber=no 58845 fi 58846 rm -f core conftest.err conftest.$ac_objext \ 58847 conftest$ac_exeext conftest.$ac_ext 58848 LIBS=$ac_check_lib_save_LIBS 58849 fi 58850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 58851 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 58852 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 58853 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 58854 fi 58855 58856 LDFLAGS=$ac_save_LDFLAGS 58857 58858 fi 58859 58860 58861 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 58862 # this doesn't make sense so we remove it. 58863 if test "x$COMPILE_TYPE" = xcross; then 58864 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 58865 fi 58866 58867 if test "x$no_x" = xyes; then 58868 58869 # Print a helpful message on how to acquire the necessary build dependency. 58870 # x11 is the help tag: freetype, cups, alsa etc 58871 MISSING_DEPENDENCY=x11 58872 58873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58874 cygwin_help $MISSING_DEPENDENCY 58875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58876 msys_help $MISSING_DEPENDENCY 58877 else 58878 PKGHANDLER_COMMAND= 58879 58880 case $PKGHANDLER in 58881 apt-get) 58882 apt_help $MISSING_DEPENDENCY ;; 58883 yum) 58884 yum_help $MISSING_DEPENDENCY ;; 58885 brew) 58886 brew_help $MISSING_DEPENDENCY ;; 58887 port) 58888 port_help $MISSING_DEPENDENCY ;; 58889 pkgutil) 58890 pkgutil_help $MISSING_DEPENDENCY ;; 58891 pkgadd) 58892 pkgadd_help $MISSING_DEPENDENCY ;; 58893 esac 58894 58895 if test "x$PKGHANDLER_COMMAND" != x; then 58896 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58897 fi 58898 fi 58899 58900 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 58901 fi 58902 58903 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 58904 OPENWIN_HOME="/usr/openwin" 58905 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 58906 X_LIBS="-L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 58907 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 58908 fi 58909 58910 ac_ext=c 58911 ac_cpp='$CPP $CPPFLAGS' 58912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 58913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 58914 ac_compiler_gnu=$ac_cv_c_compiler_gnu 58915 58916 OLD_CFLAGS="$CFLAGS" 58917 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 58918 58919 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 58920 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 58921 do : 58922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 58923 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 58924 # include <X11/Xlib.h> 58925 # include <X11/Xutil.h> 58926 58927 58928 " 58929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 58930 cat >>confdefs.h <<_ACEOF 58931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 58932 _ACEOF 58933 X11_HEADERS_OK=yes 58934 else 58935 X11_HEADERS_OK=no; break 58936 fi 58937 58938 done 58939 58940 58941 if test "x$X11_HEADERS_OK" = xno; then 58942 58943 # Print a helpful message on how to acquire the necessary build dependency. 58944 # x11 is the help tag: freetype, cups, alsa etc 58945 MISSING_DEPENDENCY=x11 58946 58947 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 58948 cygwin_help $MISSING_DEPENDENCY 58949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 58950 msys_help $MISSING_DEPENDENCY 58951 else 58952 PKGHANDLER_COMMAND= 58953 58954 case $PKGHANDLER in 58955 apt-get) 58956 apt_help $MISSING_DEPENDENCY ;; 58957 yum) 58958 yum_help $MISSING_DEPENDENCY ;; 58959 brew) 58960 brew_help $MISSING_DEPENDENCY ;; 58961 port) 58962 port_help $MISSING_DEPENDENCY ;; 58963 pkgutil) 58964 pkgutil_help $MISSING_DEPENDENCY ;; 58965 pkgadd) 58966 pkgadd_help $MISSING_DEPENDENCY ;; 58967 esac 58968 58969 if test "x$PKGHANDLER_COMMAND" != x; then 58970 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 58971 fi 58972 fi 58973 58974 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 58975 fi 58976 58977 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 58978 # defined in libawt_xawt. 58979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 58980 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 58981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 58982 /* end confdefs.h. */ 58983 #include <X11/extensions/Xrender.h> 58984 int 58985 main () 58986 { 58987 XLinearGradient x; 58988 ; 58989 return 0; 58990 } 58991 _ACEOF 58992 if ac_fn_c_try_compile "$LINENO"; then : 58993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 58994 $as_echo "yes" >&6; } 58995 else 58996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 58997 $as_echo "no" >&6; } 58998 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 58999 fi 59000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 59001 59002 CFLAGS="$OLD_CFLAGS" 59003 ac_ext=cpp 59004 ac_cpp='$CXXCPP $CPPFLAGS' 59005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 59006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 59007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 59008 59009 fi # NEEDS_LIB_X11 59010 59011 59012 59013 59014 59015 59016 # Check whether --with-cups was given. 59017 if test "${with_cups+set}" = set; then : 59018 withval=$with_cups; 59019 fi 59020 59021 59022 # Check whether --with-cups-include was given. 59023 if test "${with_cups_include+set}" = set; then : 59024 withval=$with_cups_include; 59025 fi 59026 59027 59028 if test "x$NEEDS_LIB_CUPS" = xfalse; then 59029 if (test "x${with_cups}" != x && test "x${with_cups}" != xno) || \ 59030 (test "x${with_cups_include}" != x && test "x${with_cups_include}" != xno); then 59031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups[-*] is ignored" >&5 59032 $as_echo "$as_me: WARNING: cups not used, so --with-cups[-*] is ignored" >&2;} 59033 fi 59034 CUPS_CFLAGS= 59035 else 59036 CUPS_FOUND=no 59037 59038 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 59039 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 59040 fi 59041 59042 if test "x${with_cups}" != x; then 59043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59044 $as_echo_n "checking for cups headers... " >&6; } 59045 if test -s "${with_cups}/include/cups/cups.h"; then 59046 CUPS_CFLAGS="-I${with_cups}/include" 59047 CUPS_FOUND=yes 59048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59049 $as_echo "$CUPS_FOUND" >&6; } 59050 else 59051 as_fn_error $? "Can't find 'include/cups/cups.h' under ${with_cups} given with the --with-cups option." "$LINENO" 5 59052 fi 59053 fi 59054 if test "x${with_cups_include}" != x; then 59055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 59056 $as_echo_n "checking for cups headers... " >&6; } 59057 if test -s "${with_cups_include}/cups/cups.h"; then 59058 CUPS_CFLAGS="-I${with_cups_include}" 59059 CUPS_FOUND=yes 59060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 59061 $as_echo "$CUPS_FOUND" >&6; } 59062 else 59063 as_fn_error $? "Can't find 'cups/cups.h' under ${with_cups_include} given with the --with-cups-include option." "$LINENO" 5 59064 fi 59065 fi 59066 if test "x$CUPS_FOUND" = xno; then 59067 # Are the cups headers installed in the default /usr/include location? 59068 for ac_header in cups/cups.h cups/ppd.h 59069 do : 59070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 59071 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 59072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 59073 cat >>confdefs.h <<_ACEOF 59074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 59075 _ACEOF 59076 59077 CUPS_FOUND=yes 59078 CUPS_CFLAGS= 59079 DEFAULT_CUPS=yes 59080 59081 fi 59082 59083 done 59084 59085 fi 59086 if test "x$CUPS_FOUND" = xno; then 59087 59088 # Print a helpful message on how to acquire the necessary build dependency. 59089 # cups is the help tag: freetype, cups, alsa etc 59090 MISSING_DEPENDENCY=cups 59091 59092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59093 cygwin_help $MISSING_DEPENDENCY 59094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59095 msys_help $MISSING_DEPENDENCY 59096 else 59097 PKGHANDLER_COMMAND= 59098 59099 case $PKGHANDLER in 59100 apt-get) 59101 apt_help $MISSING_DEPENDENCY ;; 59102 yum) 59103 yum_help $MISSING_DEPENDENCY ;; 59104 brew) 59105 brew_help $MISSING_DEPENDENCY ;; 59106 port) 59107 port_help $MISSING_DEPENDENCY ;; 59108 pkgutil) 59109 pkgutil_help $MISSING_DEPENDENCY ;; 59110 pkgadd) 59111 pkgadd_help $MISSING_DEPENDENCY ;; 59112 esac 59113 59114 if test "x$PKGHANDLER_COMMAND" != x; then 59115 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59116 fi 59117 fi 59118 59119 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 59120 fi 59121 fi 59122 59123 59124 59125 59126 59127 # Check whether --with-fontconfig was given. 59128 if test "${with_fontconfig+set}" = set; then : 59129 withval=$with_fontconfig; 59130 fi 59131 59132 59133 # Check whether --with-fontconfig-include was given. 59134 if test "${with_fontconfig_include+set}" = set; then : 59135 withval=$with_fontconfig_include; 59136 fi 59137 59138 59139 if test "x$NEEDS_LIB_FONTCONFIG" = xfalse; then 59140 if (test "x${with_fontconfig}" != x && test "x${with_fontconfig}" != xno) || \ 59141 (test "x${with_fontconfig_include}" != x && test "x${with_fontconfig_include}" != xno); then 59142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&5 59143 $as_echo "$as_me: WARNING: fontconfig not used, so --with-fontconfig[-*] is ignored" >&2;} 59144 fi 59145 FONTCONFIG_CFLAGS= 59146 else 59147 FONTCONFIG_FOUND=no 59148 59149 if test "x${with_fontconfig}" = xno || test "x${with_fontconfig_include}" = xno; then 59150 as_fn_error $? "It is not possible to disable the use of fontconfig. Remove the --without-fontconfig option." "$LINENO" 5 59151 fi 59152 59153 if test "x${with_fontconfig}" != x; then 59154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59155 $as_echo_n "checking for fontconfig headers... " >&6; } 59156 if test -s "${with_fontconfig}/include/fontconfig/fontconfig.h"; then 59157 FONTCONFIG_CFLAGS="-I${with_fontconfig}/include" 59158 FONTCONFIG_FOUND=yes 59159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59160 $as_echo "$FONTCONFIG_FOUND" >&6; } 59161 else 59162 as_fn_error $? "Can't find 'include/fontconfig/fontconfig.h' under ${with_fontconfig} given with the --with-fontconfig option." "$LINENO" 5 59163 fi 59164 fi 59165 if test "x${with_fontconfig_include}" != x; then 59166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig headers" >&5 59167 $as_echo_n "checking for fontconfig headers... " >&6; } 59168 if test -s "${with_fontconfig_include}/fontconfig/fontconfig.h"; then 59169 FONTCONFIG_CFLAGS="-I${with_fontconfig_include}" 59170 FONTCONFIG_FOUND=yes 59171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_FOUND" >&5 59172 $as_echo "$FONTCONFIG_FOUND" >&6; } 59173 else 59174 as_fn_error $? "Can't find 'fontconfig/fontconfig.h' under ${with_fontconfig_include} given with the --with-fontconfig-include option." "$LINENO" 5 59175 fi 59176 fi 59177 if test "x$FONTCONFIG_FOUND" = xno; then 59178 # Are the fontconfig headers installed in the default /usr/include location? 59179 for ac_header in fontconfig/fontconfig.h 59180 do : 59181 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default" 59182 if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then : 59183 cat >>confdefs.h <<_ACEOF 59184 #define HAVE_FONTCONFIG_FONTCONFIG_H 1 59185 _ACEOF 59186 59187 FONTCONFIG_FOUND=yes 59188 FONTCONFIG_CFLAGS= 59189 DEFAULT_FONTCONFIG=yes 59190 59191 fi 59192 59193 done 59194 59195 fi 59196 if test "x$FONTCONFIG_FOUND" = xno; then 59197 59198 # Print a helpful message on how to acquire the necessary build dependency. 59199 # fontconfig is the help tag: freetype, cups, alsa etc 59200 MISSING_DEPENDENCY=fontconfig 59201 59202 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59203 cygwin_help $MISSING_DEPENDENCY 59204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59205 msys_help $MISSING_DEPENDENCY 59206 else 59207 PKGHANDLER_COMMAND= 59208 59209 case $PKGHANDLER in 59210 apt-get) 59211 apt_help $MISSING_DEPENDENCY ;; 59212 yum) 59213 yum_help $MISSING_DEPENDENCY ;; 59214 brew) 59215 brew_help $MISSING_DEPENDENCY ;; 59216 port) 59217 port_help $MISSING_DEPENDENCY ;; 59218 pkgutil) 59219 pkgutil_help $MISSING_DEPENDENCY ;; 59220 pkgadd) 59221 pkgadd_help $MISSING_DEPENDENCY ;; 59222 esac 59223 59224 if test "x$PKGHANDLER_COMMAND" != x; then 59225 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 59226 fi 59227 fi 59228 59229 as_fn_error $? "Could not find fontconfig! $HELP_MSG " "$LINENO" 5 59230 fi 59231 fi 59232 59233 59234 59235 59236 59237 # Check whether --with-freetype was given. 59238 if test "${with_freetype+set}" = set; then : 59239 withval=$with_freetype; 59240 fi 59241 59242 59243 # Check whether --with-freetype-include was given. 59244 if test "${with_freetype_include+set}" = set; then : 59245 withval=$with_freetype_include; 59246 fi 59247 59248 59249 # Check whether --with-freetype-lib was given. 59250 if test "${with_freetype_lib+set}" = set; then : 59251 withval=$with_freetype_lib; 59252 fi 59253 59254 59255 # Check whether --with-freetype-src was given. 59256 if test "${with_freetype_src+set}" = set; then : 59257 withval=$with_freetype_src; 59258 fi 59259 59260 # Check whether --enable-freetype-bundling was given. 59261 if test "${enable_freetype_bundling+set}" = set; then : 59262 enableval=$enable_freetype_bundling; 59263 fi 59264 59265 59266 # Check whether --with-freetype-license was given. 59267 if test "${with_freetype_license+set}" = set; then : 59268 withval=$with_freetype_license; 59269 fi 59270 59271 59272 # Need to specify explicitly since it needs to be overridden on some versions of macosx 59273 FREETYPE_BASE_NAME=freetype 59274 FREETYPE_CFLAGS= 59275 FREETYPE_LIBS= 59276 FREETYPE_BUNDLE_LIB_PATH= 59277 59278 if test "x$NEEDS_LIB_FREETYPE" = xfalse; then 59279 if (test "x$with_freetype" != x && test "x$with_freetype" != xno) || \ 59280 (test "x$with_freetype_include" != x && test "x$with_freetype_include" != xno) || \ 59281 (test "x$with_freetype_lib" != x && test "x$with_freetype_lib" != xno) || \ 59282 (test "x$with_freetype_src" != x && test "x$with_freetype_src" != xno); then 59283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&5 59284 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype[-*] is ignored" >&2;} 59285 fi 59286 if (test "x$enable_freetype_bundling" != x && test "x$enable_freetype_bundling" != xno); then 59287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 59288 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 59289 fi 59290 else 59291 # freetype is needed to build; go get it! 59292 59293 BUNDLE_FREETYPE="$enable_freetype_bundling" 59294 59295 if test "x$with_freetype_src" != x; then 59296 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59297 # Try to build freetype if --with-freetype-src was given on Windows 59298 59299 FREETYPE_SRC_PATH="$with_freetype_src" 59300 BUILD_FREETYPE=yes 59301 59302 # Check if the freetype sources are acessible.. 59303 if ! test -d $FREETYPE_SRC_PATH; then 59304 { $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 59305 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 59306 BUILD_FREETYPE=no 59307 fi 59308 # ..and contain a vc2010 project file 59309 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 59310 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 59311 { $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 59312 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 59313 BUILD_FREETYPE=no 59314 fi 59315 # Now check if configure found a version of 'msbuild.exe' 59316 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 59317 { $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 59318 $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;} 59319 BUILD_FREETYPE=no 59320 fi 59321 59322 # Ready to go.. 59323 if test "x$BUILD_FREETYPE" = xyes; then 59324 # msbuild requires trailing slashes for output directories 59325 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 59326 freetype_lib_path_unix="$freetype_lib_path" 59327 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 59328 59329 unix_path="$vcxproj_path" 59330 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59331 windows_path=`$CYGPATH -m "$unix_path"` 59332 vcxproj_path="$windows_path" 59333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59334 windows_path=`cmd //c echo $unix_path` 59335 vcxproj_path="$windows_path" 59336 fi 59337 59338 59339 unix_path="$freetype_lib_path" 59340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59341 windows_path=`$CYGPATH -m "$unix_path"` 59342 freetype_lib_path="$windows_path" 59343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59344 windows_path=`cmd //c echo $unix_path` 59345 freetype_lib_path="$windows_path" 59346 fi 59347 59348 59349 unix_path="$freetype_obj_path" 59350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59351 windows_path=`$CYGPATH -m "$unix_path"` 59352 freetype_obj_path="$windows_path" 59353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59354 windows_path=`cmd //c echo $unix_path` 59355 freetype_obj_path="$windows_path" 59356 fi 59357 59358 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 59359 freetype_platform=x64 59360 else 59361 freetype_platform=win32 59362 fi 59363 59364 # The original freetype project file is for VS 2010 (i.e. 'v100'), 59365 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 59366 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 59367 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 59368 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 59369 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 59370 59371 # First we try to build the freetype.dll 59372 $ECHO -e "@echo off\n"\ 59373 "$MSBUILD $vcxproj_path "\ 59374 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59375 "/p:Configuration=\"Release Multithreaded\" "\ 59376 "/p:Platform=$freetype_platform "\ 59377 "/p:ConfigurationType=DynamicLibrary "\ 59378 "/p:TargetName=freetype "\ 59379 "/p:OutDir=\"$freetype_lib_path\" "\ 59380 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 59381 cmd /c freetype.bat 59382 59383 if test -s "$freetype_lib_path_unix/freetype.dll"; then 59384 # If that succeeds we also build freetype.lib 59385 $ECHO -e "@echo off\n"\ 59386 "$MSBUILD $vcxproj_path "\ 59387 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 59388 "/p:Configuration=\"Release Multithreaded\" "\ 59389 "/p:Platform=$freetype_platform "\ 59390 "/p:ConfigurationType=StaticLibrary "\ 59391 "/p:TargetName=freetype "\ 59392 "/p:OutDir=\"$freetype_lib_path\" "\ 59393 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 59394 cmd /c freetype.bat 59395 59396 if test -s "$freetype_lib_path_unix/freetype.lib"; then 59397 # Once we build both, lib and dll, set freetype lib and include path appropriately 59398 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 59399 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 59400 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 59401 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 59402 else 59403 BUILD_FREETYPE=no 59404 fi 59405 else 59406 BUILD_FREETYPE=no 59407 fi 59408 fi 59409 59410 if test "x$BUILD_FREETYPE" = xyes; then 59411 # Okay, we built it. Check that it works. 59412 59413 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59414 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59415 METHOD="--with-freetype-src" 59416 59417 # Let's start with an optimistic view of the world :-) 59418 FOUND_FREETYPE=yes 59419 59420 # First look for the canonical freetype main include file ft2build.h. 59421 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59422 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59423 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59424 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59425 # Fail. 59426 FOUND_FREETYPE=no 59427 fi 59428 fi 59429 59430 if test "x$FOUND_FREETYPE" = xyes; then 59431 # Include file found, let's continue the sanity check. 59432 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59433 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59434 59435 # Reset to default value 59436 FREETYPE_BASE_NAME=freetype 59437 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59438 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59439 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59440 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59441 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59442 # for the .6 version explicitly. 59443 FREETYPE_BASE_NAME=freetype.6 59444 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59445 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59446 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59447 else 59448 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59449 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59450 FOUND_FREETYPE=no 59451 fi 59452 else 59453 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59454 # On Windows, we will need both .lib and .dll file. 59455 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59456 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59457 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59458 FOUND_FREETYPE=no 59459 fi 59460 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59461 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59462 # Found lib in isa dir, use that instead. 59463 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59464 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59465 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59466 fi 59467 fi 59468 fi 59469 59470 if test "x$FOUND_FREETYPE" = xyes; then 59471 59472 # Only process if variable expands to non-empty 59473 59474 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59476 59477 # Input might be given as Windows format, start by converting to 59478 # unix format. 59479 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59480 new_path=`$CYGPATH -u "$path"` 59481 59482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59485 # "foo.exe" is OK but "foo" is an error. 59486 # 59487 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59488 # It is also a way to make sure we got the proper file name for the real test later on. 59489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59490 if test "x$test_shortpath" = x; then 59491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59492 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59493 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59494 fi 59495 59496 # Call helper function which possibly converts this using DOS-style short mode. 59497 # If so, the updated path is stored in $new_path. 59498 59499 input_path="$new_path" 59500 # Check if we need to convert this using DOS-style short mode. If the path 59501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59502 # take no chances and rewrite it. 59503 # Note: m4 eats our [], so we need to use [ and ] instead. 59504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59505 if test "x$has_forbidden_chars" != x; then 59506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59507 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59508 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59509 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59510 # Going to short mode and back again did indeed matter. Since short mode is 59511 # case insensitive, let's make it lowercase to improve readability. 59512 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59513 # Now convert it back to Unix-style (cygpath) 59514 input_path=`$CYGPATH -u "$shortmode_path"` 59515 new_path="$input_path" 59516 fi 59517 fi 59518 59519 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59520 if test "x$test_cygdrive_prefix" = x; then 59521 # As a simple fix, exclude /usr/bin since it's not a real path. 59522 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59523 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59524 # a path prefixed by /cygdrive for fixpath to work. 59525 new_path="$CYGWIN_ROOT_PATH$input_path" 59526 fi 59527 fi 59528 59529 59530 if test "x$path" != "x$new_path"; then 59531 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59533 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59534 fi 59535 59536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59537 59538 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59539 has_colon=`$ECHO $path | $GREP ^.:` 59540 new_path="$path" 59541 if test "x$has_colon" = x; then 59542 # Not in mixed or Windows style, start by that. 59543 new_path=`cmd //c echo $path` 59544 fi 59545 59546 59547 input_path="$new_path" 59548 # Check if we need to convert this using DOS-style short mode. If the path 59549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59550 # take no chances and rewrite it. 59551 # Note: m4 eats our [], so we need to use [ and ] instead. 59552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59553 if test "x$has_forbidden_chars" != x; then 59554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59556 fi 59557 59558 59559 windows_path="$new_path" 59560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59561 unix_path=`$CYGPATH -u "$windows_path"` 59562 new_path="$unix_path" 59563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59565 new_path="$unix_path" 59566 fi 59567 59568 if test "x$path" != "x$new_path"; then 59569 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59571 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59572 fi 59573 59574 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59575 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59576 59577 else 59578 # We're on a unix platform. Hooray! :) 59579 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59580 has_space=`$ECHO "$path" | $GREP " "` 59581 if test "x$has_space" != x; then 59582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59583 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59584 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59585 fi 59586 59587 # Use eval to expand a potential ~ 59588 eval path="$path" 59589 if test ! -f "$path" && test ! -d "$path"; then 59590 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59591 fi 59592 59593 if test -d "$path"; then 59594 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59595 else 59596 dir="`$DIRNAME "$path"`" 59597 base="`$BASENAME "$path"`" 59598 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59599 fi 59600 fi 59601 fi 59602 59603 59604 # Only process if variable expands to non-empty 59605 59606 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59608 59609 # Input might be given as Windows format, start by converting to 59610 # unix format. 59611 path="$POTENTIAL_FREETYPE_LIB_PATH" 59612 new_path=`$CYGPATH -u "$path"` 59613 59614 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59615 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59616 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59617 # "foo.exe" is OK but "foo" is an error. 59618 # 59619 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59620 # It is also a way to make sure we got the proper file name for the real test later on. 59621 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59622 if test "x$test_shortpath" = x; then 59623 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59624 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59625 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59626 fi 59627 59628 # Call helper function which possibly converts this using DOS-style short mode. 59629 # If so, the updated path is stored in $new_path. 59630 59631 input_path="$new_path" 59632 # Check if we need to convert this using DOS-style short mode. If the path 59633 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59634 # take no chances and rewrite it. 59635 # Note: m4 eats our [], so we need to use [ and ] instead. 59636 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59637 if test "x$has_forbidden_chars" != x; then 59638 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59639 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59640 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59641 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59642 # Going to short mode and back again did indeed matter. Since short mode is 59643 # case insensitive, let's make it lowercase to improve readability. 59644 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59645 # Now convert it back to Unix-style (cygpath) 59646 input_path=`$CYGPATH -u "$shortmode_path"` 59647 new_path="$input_path" 59648 fi 59649 fi 59650 59651 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59652 if test "x$test_cygdrive_prefix" = x; then 59653 # As a simple fix, exclude /usr/bin since it's not a real path. 59654 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59655 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59656 # a path prefixed by /cygdrive for fixpath to work. 59657 new_path="$CYGWIN_ROOT_PATH$input_path" 59658 fi 59659 fi 59660 59661 59662 if test "x$path" != "x$new_path"; then 59663 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59664 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59665 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59666 fi 59667 59668 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59669 59670 path="$POTENTIAL_FREETYPE_LIB_PATH" 59671 has_colon=`$ECHO $path | $GREP ^.:` 59672 new_path="$path" 59673 if test "x$has_colon" = x; then 59674 # Not in mixed or Windows style, start by that. 59675 new_path=`cmd //c echo $path` 59676 fi 59677 59678 59679 input_path="$new_path" 59680 # Check if we need to convert this using DOS-style short mode. If the path 59681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59682 # take no chances and rewrite it. 59683 # Note: m4 eats our [], so we need to use [ and ] instead. 59684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59685 if test "x$has_forbidden_chars" != x; then 59686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59687 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59688 fi 59689 59690 59691 windows_path="$new_path" 59692 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59693 unix_path=`$CYGPATH -u "$windows_path"` 59694 new_path="$unix_path" 59695 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59696 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59697 new_path="$unix_path" 59698 fi 59699 59700 if test "x$path" != "x$new_path"; then 59701 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 59702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 59703 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 59704 fi 59705 59706 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59707 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59708 59709 else 59710 # We're on a unix platform. Hooray! :) 59711 path="$POTENTIAL_FREETYPE_LIB_PATH" 59712 has_space=`$ECHO "$path" | $GREP " "` 59713 if test "x$has_space" != x; then 59714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59715 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59716 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59717 fi 59718 59719 # Use eval to expand a potential ~ 59720 eval path="$path" 59721 if test ! -f "$path" && test ! -d "$path"; then 59722 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59723 fi 59724 59725 if test -d "$path"; then 59726 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 59727 else 59728 dir="`$DIRNAME "$path"`" 59729 base="`$BASENAME "$path"`" 59730 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59731 fi 59732 fi 59733 fi 59734 59735 59736 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 59738 $as_echo_n "checking for freetype includes... " >&6; } 59739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 59740 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 59741 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 59743 $as_echo_n "checking for freetype libraries... " >&6; } 59744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 59745 $as_echo "$FREETYPE_LIB_PATH" >&6; } 59746 fi 59747 59748 if test "x$FOUND_FREETYPE" != xyes; then 59749 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 59750 fi 59751 else 59752 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 59753 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 59754 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 59755 fi 59756 else 59757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 59758 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 59759 fi 59760 fi 59761 59762 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 59763 # User has specified settings 59764 59765 if test "x$BUNDLE_FREETYPE" = x; then 59766 # If not specified, default is to bundle freetype 59767 BUNDLE_FREETYPE=yes 59768 fi 59769 59770 if test "x$with_freetype" != x; then 59771 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 59772 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 59773 fi 59774 59775 # Allow --with-freetype-lib and --with-freetype-include to override 59776 if test "x$with_freetype_include" != x; then 59777 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 59778 fi 59779 if test "x$with_freetype_lib" != x; then 59780 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 59781 fi 59782 59783 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59784 # Okay, we got it. Check that it works. 59785 59786 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59787 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 59788 METHOD="--with-freetype" 59789 59790 # Let's start with an optimistic view of the world :-) 59791 FOUND_FREETYPE=yes 59792 59793 # First look for the canonical freetype main include file ft2build.h. 59794 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59795 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 59796 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 59797 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 59798 # Fail. 59799 FOUND_FREETYPE=no 59800 fi 59801 fi 59802 59803 if test "x$FOUND_FREETYPE" = xyes; then 59804 # Include file found, let's continue the sanity check. 59805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 59806 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 59807 59808 # Reset to default value 59809 FREETYPE_BASE_NAME=freetype 59810 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59811 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 59812 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 59813 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 59814 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 59815 # for the .6 version explicitly. 59816 FREETYPE_BASE_NAME=freetype.6 59817 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 59818 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 59819 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 59820 else 59821 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 59822 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 59823 FOUND_FREETYPE=no 59824 fi 59825 else 59826 if test "x$OPENJDK_TARGET_OS" = xwindows; then 59827 # On Windows, we will need both .lib and .dll file. 59828 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 59829 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 59830 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 59831 FOUND_FREETYPE=no 59832 fi 59833 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 59834 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 59835 # Found lib in isa dir, use that instead. 59836 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 59837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 59838 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 59839 fi 59840 fi 59841 fi 59842 59843 if test "x$FOUND_FREETYPE" = xyes; then 59844 59845 # Only process if variable expands to non-empty 59846 59847 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 59848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59849 59850 # Input might be given as Windows format, start by converting to 59851 # unix format. 59852 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59853 new_path=`$CYGPATH -u "$path"` 59854 59855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59858 # "foo.exe" is OK but "foo" is an error. 59859 # 59860 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59861 # It is also a way to make sure we got the proper file name for the real test later on. 59862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59863 if test "x$test_shortpath" = x; then 59864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59865 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59866 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 59867 fi 59868 59869 # Call helper function which possibly converts this using DOS-style short mode. 59870 # If so, the updated path is stored in $new_path. 59871 59872 input_path="$new_path" 59873 # Check if we need to convert this using DOS-style short mode. If the path 59874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59875 # take no chances and rewrite it. 59876 # Note: m4 eats our [], so we need to use [ and ] instead. 59877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 59878 if test "x$has_forbidden_chars" != x; then 59879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59880 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 59881 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 59882 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 59883 # Going to short mode and back again did indeed matter. Since short mode is 59884 # case insensitive, let's make it lowercase to improve readability. 59885 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59886 # Now convert it back to Unix-style (cygpath) 59887 input_path=`$CYGPATH -u "$shortmode_path"` 59888 new_path="$input_path" 59889 fi 59890 fi 59891 59892 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 59893 if test "x$test_cygdrive_prefix" = x; then 59894 # As a simple fix, exclude /usr/bin since it's not a real path. 59895 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 59896 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 59897 # a path prefixed by /cygdrive for fixpath to work. 59898 new_path="$CYGWIN_ROOT_PATH$input_path" 59899 fi 59900 fi 59901 59902 59903 if test "x$path" != "x$new_path"; then 59904 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59906 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59907 fi 59908 59909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59910 59911 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59912 has_colon=`$ECHO $path | $GREP ^.:` 59913 new_path="$path" 59914 if test "x$has_colon" = x; then 59915 # Not in mixed or Windows style, start by that. 59916 new_path=`cmd //c echo $path` 59917 fi 59918 59919 59920 input_path="$new_path" 59921 # Check if we need to convert this using DOS-style short mode. If the path 59922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 59923 # take no chances and rewrite it. 59924 # Note: m4 eats our [], so we need to use [ and ] instead. 59925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 59926 if test "x$has_forbidden_chars" != x; then 59927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 59928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 59929 fi 59930 59931 59932 windows_path="$new_path" 59933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59934 unix_path=`$CYGPATH -u "$windows_path"` 59935 new_path="$unix_path" 59936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 59937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 59938 new_path="$unix_path" 59939 fi 59940 59941 if test "x$path" != "x$new_path"; then 59942 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 59943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 59944 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 59945 fi 59946 59947 # Save the first 10 bytes of this path to the storage, so fixpath can work. 59948 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 59949 59950 else 59951 # We're on a unix platform. Hooray! :) 59952 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 59953 has_space=`$ECHO "$path" | $GREP " "` 59954 if test "x$has_space" != x; then 59955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 59956 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 59957 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 59958 fi 59959 59960 # Use eval to expand a potential ~ 59961 eval path="$path" 59962 if test ! -f "$path" && test ! -d "$path"; then 59963 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 59964 fi 59965 59966 if test -d "$path"; then 59967 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 59968 else 59969 dir="`$DIRNAME "$path"`" 59970 base="`$BASENAME "$path"`" 59971 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 59972 fi 59973 fi 59974 fi 59975 59976 59977 # Only process if variable expands to non-empty 59978 59979 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 59980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 59981 59982 # Input might be given as Windows format, start by converting to 59983 # unix format. 59984 path="$POTENTIAL_FREETYPE_LIB_PATH" 59985 new_path=`$CYGPATH -u "$path"` 59986 59987 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 59988 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 59989 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 59990 # "foo.exe" is OK but "foo" is an error. 59991 # 59992 # This test is therefore slightly more accurate than "test -f" to check for file precense. 59993 # It is also a way to make sure we got the proper file name for the real test later on. 59994 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 59995 if test "x$test_shortpath" = x; then 59996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 59997 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 59998 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 59999 fi 60000 60001 # Call helper function which possibly converts this using DOS-style short mode. 60002 # If so, the updated path is stored in $new_path. 60003 60004 input_path="$new_path" 60005 # Check if we need to convert this using DOS-style short mode. If the path 60006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60007 # take no chances and rewrite it. 60008 # Note: m4 eats our [], so we need to use [ and ] instead. 60009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60010 if test "x$has_forbidden_chars" != x; then 60011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60012 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60013 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60014 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60015 # Going to short mode and back again did indeed matter. Since short mode is 60016 # case insensitive, let's make it lowercase to improve readability. 60017 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60018 # Now convert it back to Unix-style (cygpath) 60019 input_path=`$CYGPATH -u "$shortmode_path"` 60020 new_path="$input_path" 60021 fi 60022 fi 60023 60024 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60025 if test "x$test_cygdrive_prefix" = x; then 60026 # As a simple fix, exclude /usr/bin since it's not a real path. 60027 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60028 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60029 # a path prefixed by /cygdrive for fixpath to work. 60030 new_path="$CYGWIN_ROOT_PATH$input_path" 60031 fi 60032 fi 60033 60034 60035 if test "x$path" != "x$new_path"; then 60036 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60037 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60038 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60039 fi 60040 60041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60042 60043 path="$POTENTIAL_FREETYPE_LIB_PATH" 60044 has_colon=`$ECHO $path | $GREP ^.:` 60045 new_path="$path" 60046 if test "x$has_colon" = x; then 60047 # Not in mixed or Windows style, start by that. 60048 new_path=`cmd //c echo $path` 60049 fi 60050 60051 60052 input_path="$new_path" 60053 # Check if we need to convert this using DOS-style short mode. If the path 60054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60055 # take no chances and rewrite it. 60056 # Note: m4 eats our [], so we need to use [ and ] instead. 60057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60058 if test "x$has_forbidden_chars" != x; then 60059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60060 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60061 fi 60062 60063 60064 windows_path="$new_path" 60065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60066 unix_path=`$CYGPATH -u "$windows_path"` 60067 new_path="$unix_path" 60068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60069 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60070 new_path="$unix_path" 60071 fi 60072 60073 if test "x$path" != "x$new_path"; then 60074 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60076 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60077 fi 60078 60079 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60080 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60081 60082 else 60083 # We're on a unix platform. Hooray! :) 60084 path="$POTENTIAL_FREETYPE_LIB_PATH" 60085 has_space=`$ECHO "$path" | $GREP " "` 60086 if test "x$has_space" != x; then 60087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60088 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60089 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60090 fi 60091 60092 # Use eval to expand a potential ~ 60093 eval path="$path" 60094 if test ! -f "$path" && test ! -d "$path"; then 60095 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60096 fi 60097 60098 if test -d "$path"; then 60099 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60100 else 60101 dir="`$DIRNAME "$path"`" 60102 base="`$BASENAME "$path"`" 60103 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60104 fi 60105 fi 60106 fi 60107 60108 60109 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60111 $as_echo_n "checking for freetype includes... " >&6; } 60112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60113 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60114 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60116 $as_echo_n "checking for freetype libraries... " >&6; } 60117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60118 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60119 fi 60120 60121 if test "x$FOUND_FREETYPE" != xyes; then 60122 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 60123 fi 60124 else 60125 # User specified only one of lib or include. This is an error. 60126 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 60127 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 60128 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 60129 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60130 else 60131 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 60132 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 60133 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 60134 fi 60135 fi 60136 else 60137 # User did not specify settings, but we need freetype. Try to locate it. 60138 60139 if test "x$BUNDLE_FREETYPE" = x; then 60140 # If not specified, default is to bundle freetype only on windows 60141 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60142 BUNDLE_FREETYPE=yes 60143 else 60144 BUNDLE_FREETYPE=no 60145 fi 60146 fi 60147 60148 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 60149 if test "x$SYSROOT" = x; then 60150 if test "x$FOUND_FREETYPE" != xyes; then 60151 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 60152 if test "x$PKG_CONFIG" != x; then 60153 60154 pkg_failed=no 60155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 60156 $as_echo_n "checking for FREETYPE... " >&6; } 60157 60158 if test -n "$FREETYPE_CFLAGS"; then 60159 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 60160 elif test -n "$PKG_CONFIG"; then 60161 if test -n "$PKG_CONFIG" && \ 60162 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60163 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60164 ac_status=$? 60165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60166 test $ac_status = 0; }; then 60167 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 60168 else 60169 pkg_failed=yes 60170 fi 60171 else 60172 pkg_failed=untried 60173 fi 60174 if test -n "$FREETYPE_LIBS"; then 60175 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 60176 elif test -n "$PKG_CONFIG"; then 60177 if test -n "$PKG_CONFIG" && \ 60178 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 60179 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 60180 ac_status=$? 60181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 60182 test $ac_status = 0; }; then 60183 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 60184 else 60185 pkg_failed=yes 60186 fi 60187 else 60188 pkg_failed=untried 60189 fi 60190 60191 60192 60193 if test $pkg_failed = yes; then 60194 60195 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 60196 _pkg_short_errors_supported=yes 60197 else 60198 _pkg_short_errors_supported=no 60199 fi 60200 if test $_pkg_short_errors_supported = yes; then 60201 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 60202 else 60203 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 60204 fi 60205 # Put the nasty error message in config.log where it belongs 60206 echo "$FREETYPE_PKG_ERRORS" >&5 60207 60208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 60209 $as_echo "no" >&6; } 60210 FOUND_FREETYPE=no 60211 elif test $pkg_failed = untried; then 60212 FOUND_FREETYPE=no 60213 else 60214 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 60215 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 60216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 60217 $as_echo "yes" >&6; } 60218 FOUND_FREETYPE=yes 60219 fi 60220 if test "x$FOUND_FREETYPE" = xyes; then 60221 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 60222 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 60223 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 60224 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 60225 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 60226 fi 60227 # PKG_CHECK_MODULES will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 60228 if test "x$BUNDLE_FREETYPE" = xyes; then 60229 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 60230 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 60231 FOUND_FREETYPE=no 60232 else 60233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 60234 $as_echo_n "checking for freetype... " >&6; } 60235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 60236 $as_echo "yes (using pkg-config)" >&6; } 60237 fi 60238 fi 60239 fi 60240 fi 60241 fi 60242 60243 if test "x$FOUND_FREETYPE" != xyes; then 60244 # Check in well-known locations 60245 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60246 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 60247 60248 windows_path="$FREETYPE_BASE_DIR" 60249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60250 unix_path=`$CYGPATH -u "$windows_path"` 60251 FREETYPE_BASE_DIR="$unix_path" 60252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60254 FREETYPE_BASE_DIR="$unix_path" 60255 fi 60256 60257 60258 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60259 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60260 METHOD="well-known location" 60261 60262 # Let's start with an optimistic view of the world :-) 60263 FOUND_FREETYPE=yes 60264 60265 # First look for the canonical freetype main include file ft2build.h. 60266 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60267 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60268 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60269 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60270 # Fail. 60271 FOUND_FREETYPE=no 60272 fi 60273 fi 60274 60275 if test "x$FOUND_FREETYPE" = xyes; then 60276 # Include file found, let's continue the sanity check. 60277 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60278 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60279 60280 # Reset to default value 60281 FREETYPE_BASE_NAME=freetype 60282 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60283 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60284 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60285 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60286 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60287 # for the .6 version explicitly. 60288 FREETYPE_BASE_NAME=freetype.6 60289 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60290 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60291 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60292 else 60293 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60294 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60295 FOUND_FREETYPE=no 60296 fi 60297 else 60298 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60299 # On Windows, we will need both .lib and .dll file. 60300 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60301 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60302 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60303 FOUND_FREETYPE=no 60304 fi 60305 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60306 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60307 # Found lib in isa dir, use that instead. 60308 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60310 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60311 fi 60312 fi 60313 fi 60314 60315 if test "x$FOUND_FREETYPE" = xyes; then 60316 60317 # Only process if variable expands to non-empty 60318 60319 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60320 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60321 60322 # Input might be given as Windows format, start by converting to 60323 # unix format. 60324 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60325 new_path=`$CYGPATH -u "$path"` 60326 60327 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60328 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60329 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60330 # "foo.exe" is OK but "foo" is an error. 60331 # 60332 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60333 # It is also a way to make sure we got the proper file name for the real test later on. 60334 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60335 if test "x$test_shortpath" = x; then 60336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60337 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60338 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60339 fi 60340 60341 # Call helper function which possibly converts this using DOS-style short mode. 60342 # If so, the updated path is stored in $new_path. 60343 60344 input_path="$new_path" 60345 # Check if we need to convert this using DOS-style short mode. If the path 60346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60347 # take no chances and rewrite it. 60348 # Note: m4 eats our [], so we need to use [ and ] instead. 60349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60350 if test "x$has_forbidden_chars" != x; then 60351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60352 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60353 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60354 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60355 # Going to short mode and back again did indeed matter. Since short mode is 60356 # case insensitive, let's make it lowercase to improve readability. 60357 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60358 # Now convert it back to Unix-style (cygpath) 60359 input_path=`$CYGPATH -u "$shortmode_path"` 60360 new_path="$input_path" 60361 fi 60362 fi 60363 60364 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60365 if test "x$test_cygdrive_prefix" = x; then 60366 # As a simple fix, exclude /usr/bin since it's not a real path. 60367 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60368 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60369 # a path prefixed by /cygdrive for fixpath to work. 60370 new_path="$CYGWIN_ROOT_PATH$input_path" 60371 fi 60372 fi 60373 60374 60375 if test "x$path" != "x$new_path"; then 60376 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60377 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60378 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60379 fi 60380 60381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60382 60383 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60384 has_colon=`$ECHO $path | $GREP ^.:` 60385 new_path="$path" 60386 if test "x$has_colon" = x; then 60387 # Not in mixed or Windows style, start by that. 60388 new_path=`cmd //c echo $path` 60389 fi 60390 60391 60392 input_path="$new_path" 60393 # Check if we need to convert this using DOS-style short mode. If the path 60394 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60395 # take no chances and rewrite it. 60396 # Note: m4 eats our [], so we need to use [ and ] instead. 60397 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60398 if test "x$has_forbidden_chars" != x; then 60399 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60400 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60401 fi 60402 60403 60404 windows_path="$new_path" 60405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60406 unix_path=`$CYGPATH -u "$windows_path"` 60407 new_path="$unix_path" 60408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60410 new_path="$unix_path" 60411 fi 60412 60413 if test "x$path" != "x$new_path"; then 60414 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60416 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60417 fi 60418 60419 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60420 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60421 60422 else 60423 # We're on a unix platform. Hooray! :) 60424 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60425 has_space=`$ECHO "$path" | $GREP " "` 60426 if test "x$has_space" != x; then 60427 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60428 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60429 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60430 fi 60431 60432 # Use eval to expand a potential ~ 60433 eval path="$path" 60434 if test ! -f "$path" && test ! -d "$path"; then 60435 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60436 fi 60437 60438 if test -d "$path"; then 60439 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60440 else 60441 dir="`$DIRNAME "$path"`" 60442 base="`$BASENAME "$path"`" 60443 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60444 fi 60445 fi 60446 fi 60447 60448 60449 # Only process if variable expands to non-empty 60450 60451 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60453 60454 # Input might be given as Windows format, start by converting to 60455 # unix format. 60456 path="$POTENTIAL_FREETYPE_LIB_PATH" 60457 new_path=`$CYGPATH -u "$path"` 60458 60459 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60460 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60461 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60462 # "foo.exe" is OK but "foo" is an error. 60463 # 60464 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60465 # It is also a way to make sure we got the proper file name for the real test later on. 60466 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60467 if test "x$test_shortpath" = x; then 60468 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60469 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60470 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60471 fi 60472 60473 # Call helper function which possibly converts this using DOS-style short mode. 60474 # If so, the updated path is stored in $new_path. 60475 60476 input_path="$new_path" 60477 # Check if we need to convert this using DOS-style short mode. If the path 60478 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60479 # take no chances and rewrite it. 60480 # Note: m4 eats our [], so we need to use [ and ] instead. 60481 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60482 if test "x$has_forbidden_chars" != x; then 60483 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60484 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60485 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60486 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60487 # Going to short mode and back again did indeed matter. Since short mode is 60488 # case insensitive, let's make it lowercase to improve readability. 60489 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60490 # Now convert it back to Unix-style (cygpath) 60491 input_path=`$CYGPATH -u "$shortmode_path"` 60492 new_path="$input_path" 60493 fi 60494 fi 60495 60496 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60497 if test "x$test_cygdrive_prefix" = x; then 60498 # As a simple fix, exclude /usr/bin since it's not a real path. 60499 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60500 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60501 # a path prefixed by /cygdrive for fixpath to work. 60502 new_path="$CYGWIN_ROOT_PATH$input_path" 60503 fi 60504 fi 60505 60506 60507 if test "x$path" != "x$new_path"; then 60508 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60509 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60510 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60511 fi 60512 60513 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60514 60515 path="$POTENTIAL_FREETYPE_LIB_PATH" 60516 has_colon=`$ECHO $path | $GREP ^.:` 60517 new_path="$path" 60518 if test "x$has_colon" = x; then 60519 # Not in mixed or Windows style, start by that. 60520 new_path=`cmd //c echo $path` 60521 fi 60522 60523 60524 input_path="$new_path" 60525 # Check if we need to convert this using DOS-style short mode. If the path 60526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60527 # take no chances and rewrite it. 60528 # Note: m4 eats our [], so we need to use [ and ] instead. 60529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60530 if test "x$has_forbidden_chars" != x; then 60531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60532 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60533 fi 60534 60535 60536 windows_path="$new_path" 60537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60538 unix_path=`$CYGPATH -u "$windows_path"` 60539 new_path="$unix_path" 60540 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60541 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60542 new_path="$unix_path" 60543 fi 60544 60545 if test "x$path" != "x$new_path"; then 60546 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60547 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60548 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60549 fi 60550 60551 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60552 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60553 60554 else 60555 # We're on a unix platform. Hooray! :) 60556 path="$POTENTIAL_FREETYPE_LIB_PATH" 60557 has_space=`$ECHO "$path" | $GREP " "` 60558 if test "x$has_space" != x; then 60559 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60560 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60561 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60562 fi 60563 60564 # Use eval to expand a potential ~ 60565 eval path="$path" 60566 if test ! -f "$path" && test ! -d "$path"; then 60567 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60568 fi 60569 60570 if test -d "$path"; then 60571 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60572 else 60573 dir="`$DIRNAME "$path"`" 60574 base="`$BASENAME "$path"`" 60575 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60576 fi 60577 fi 60578 fi 60579 60580 60581 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60583 $as_echo_n "checking for freetype includes... " >&6; } 60584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60585 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60586 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60588 $as_echo_n "checking for freetype libraries... " >&6; } 60589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60590 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60591 fi 60592 60593 if test "x$FOUND_FREETYPE" != xyes; then 60594 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 60595 60596 windows_path="$FREETYPE_BASE_DIR" 60597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60598 unix_path=`$CYGPATH -u "$windows_path"` 60599 FREETYPE_BASE_DIR="$unix_path" 60600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60602 FREETYPE_BASE_DIR="$unix_path" 60603 fi 60604 60605 60606 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60607 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 60608 METHOD="well-known location" 60609 60610 # Let's start with an optimistic view of the world :-) 60611 FOUND_FREETYPE=yes 60612 60613 # First look for the canonical freetype main include file ft2build.h. 60614 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60615 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60616 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60617 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60618 # Fail. 60619 FOUND_FREETYPE=no 60620 fi 60621 fi 60622 60623 if test "x$FOUND_FREETYPE" = xyes; then 60624 # Include file found, let's continue the sanity check. 60625 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60626 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60627 60628 # Reset to default value 60629 FREETYPE_BASE_NAME=freetype 60630 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60631 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60632 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60633 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60634 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60635 # for the .6 version explicitly. 60636 FREETYPE_BASE_NAME=freetype.6 60637 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60638 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60639 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60640 else 60641 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60642 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60643 FOUND_FREETYPE=no 60644 fi 60645 else 60646 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60647 # On Windows, we will need both .lib and .dll file. 60648 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60649 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 60650 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 60651 FOUND_FREETYPE=no 60652 fi 60653 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 60654 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 60655 # Found lib in isa dir, use that instead. 60656 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 60657 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 60658 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 60659 fi 60660 fi 60661 fi 60662 60663 if test "x$FOUND_FREETYPE" = xyes; then 60664 60665 # Only process if variable expands to non-empty 60666 60667 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 60668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60669 60670 # Input might be given as Windows format, start by converting to 60671 # unix format. 60672 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60673 new_path=`$CYGPATH -u "$path"` 60674 60675 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60676 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60677 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60678 # "foo.exe" is OK but "foo" is an error. 60679 # 60680 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60681 # It is also a way to make sure we got the proper file name for the real test later on. 60682 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60683 if test "x$test_shortpath" = x; then 60684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60685 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60686 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 60687 fi 60688 60689 # Call helper function which possibly converts this using DOS-style short mode. 60690 # If so, the updated path is stored in $new_path. 60691 60692 input_path="$new_path" 60693 # Check if we need to convert this using DOS-style short mode. If the path 60694 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60695 # take no chances and rewrite it. 60696 # Note: m4 eats our [], so we need to use [ and ] instead. 60697 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60698 if test "x$has_forbidden_chars" != x; then 60699 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60700 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60701 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60702 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60703 # Going to short mode and back again did indeed matter. Since short mode is 60704 # case insensitive, let's make it lowercase to improve readability. 60705 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60706 # Now convert it back to Unix-style (cygpath) 60707 input_path=`$CYGPATH -u "$shortmode_path"` 60708 new_path="$input_path" 60709 fi 60710 fi 60711 60712 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60713 if test "x$test_cygdrive_prefix" = x; then 60714 # As a simple fix, exclude /usr/bin since it's not a real path. 60715 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60716 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60717 # a path prefixed by /cygdrive for fixpath to work. 60718 new_path="$CYGWIN_ROOT_PATH$input_path" 60719 fi 60720 fi 60721 60722 60723 if test "x$path" != "x$new_path"; then 60724 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60725 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60726 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60727 fi 60728 60729 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60730 60731 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60732 has_colon=`$ECHO $path | $GREP ^.:` 60733 new_path="$path" 60734 if test "x$has_colon" = x; then 60735 # Not in mixed or Windows style, start by that. 60736 new_path=`cmd //c echo $path` 60737 fi 60738 60739 60740 input_path="$new_path" 60741 # Check if we need to convert this using DOS-style short mode. If the path 60742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60743 # take no chances and rewrite it. 60744 # Note: m4 eats our [], so we need to use [ and ] instead. 60745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60746 if test "x$has_forbidden_chars" != x; then 60747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60748 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60749 fi 60750 60751 60752 windows_path="$new_path" 60753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60754 unix_path=`$CYGPATH -u "$windows_path"` 60755 new_path="$unix_path" 60756 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60757 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60758 new_path="$unix_path" 60759 fi 60760 60761 if test "x$path" != "x$new_path"; then 60762 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 60763 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 60764 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 60765 fi 60766 60767 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60768 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60769 60770 else 60771 # We're on a unix platform. Hooray! :) 60772 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60773 has_space=`$ECHO "$path" | $GREP " "` 60774 if test "x$has_space" != x; then 60775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 60776 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 60777 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60778 fi 60779 60780 # Use eval to expand a potential ~ 60781 eval path="$path" 60782 if test ! -f "$path" && test ! -d "$path"; then 60783 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60784 fi 60785 60786 if test -d "$path"; then 60787 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 60788 else 60789 dir="`$DIRNAME "$path"`" 60790 base="`$BASENAME "$path"`" 60791 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60792 fi 60793 fi 60794 fi 60795 60796 60797 # Only process if variable expands to non-empty 60798 60799 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 60800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60801 60802 # Input might be given as Windows format, start by converting to 60803 # unix format. 60804 path="$POTENTIAL_FREETYPE_LIB_PATH" 60805 new_path=`$CYGPATH -u "$path"` 60806 60807 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 60808 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 60809 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 60810 # "foo.exe" is OK but "foo" is an error. 60811 # 60812 # This test is therefore slightly more accurate than "test -f" to check for file precense. 60813 # It is also a way to make sure we got the proper file name for the real test later on. 60814 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 60815 if test "x$test_shortpath" = x; then 60816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60817 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60818 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 60819 fi 60820 60821 # Call helper function which possibly converts this using DOS-style short mode. 60822 # If so, the updated path is stored in $new_path. 60823 60824 input_path="$new_path" 60825 # Check if we need to convert this using DOS-style short mode. If the path 60826 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60827 # take no chances and rewrite it. 60828 # Note: m4 eats our [], so we need to use [ and ] instead. 60829 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 60830 if test "x$has_forbidden_chars" != x; then 60831 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60832 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 60833 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 60834 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 60835 # Going to short mode and back again did indeed matter. Since short mode is 60836 # case insensitive, let's make it lowercase to improve readability. 60837 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60838 # Now convert it back to Unix-style (cygpath) 60839 input_path=`$CYGPATH -u "$shortmode_path"` 60840 new_path="$input_path" 60841 fi 60842 fi 60843 60844 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 60845 if test "x$test_cygdrive_prefix" = x; then 60846 # As a simple fix, exclude /usr/bin since it's not a real path. 60847 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 60848 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 60849 # a path prefixed by /cygdrive for fixpath to work. 60850 new_path="$CYGWIN_ROOT_PATH$input_path" 60851 fi 60852 fi 60853 60854 60855 if test "x$path" != "x$new_path"; then 60856 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60858 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60859 fi 60860 60861 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60862 60863 path="$POTENTIAL_FREETYPE_LIB_PATH" 60864 has_colon=`$ECHO $path | $GREP ^.:` 60865 new_path="$path" 60866 if test "x$has_colon" = x; then 60867 # Not in mixed or Windows style, start by that. 60868 new_path=`cmd //c echo $path` 60869 fi 60870 60871 60872 input_path="$new_path" 60873 # Check if we need to convert this using DOS-style short mode. If the path 60874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 60875 # take no chances and rewrite it. 60876 # Note: m4 eats our [], so we need to use [ and ] instead. 60877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 60878 if test "x$has_forbidden_chars" != x; then 60879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 60880 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 60881 fi 60882 60883 60884 windows_path="$new_path" 60885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60886 unix_path=`$CYGPATH -u "$windows_path"` 60887 new_path="$unix_path" 60888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60890 new_path="$unix_path" 60891 fi 60892 60893 if test "x$path" != "x$new_path"; then 60894 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 60895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 60896 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 60897 fi 60898 60899 # Save the first 10 bytes of this path to the storage, so fixpath can work. 60900 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 60901 60902 else 60903 # We're on a unix platform. Hooray! :) 60904 path="$POTENTIAL_FREETYPE_LIB_PATH" 60905 has_space=`$ECHO "$path" | $GREP " "` 60906 if test "x$has_space" != x; then 60907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 60908 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 60909 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 60910 fi 60911 60912 # Use eval to expand a potential ~ 60913 eval path="$path" 60914 if test ! -f "$path" && test ! -d "$path"; then 60915 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 60916 fi 60917 60918 if test -d "$path"; then 60919 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 60920 else 60921 dir="`$DIRNAME "$path"`" 60922 base="`$BASENAME "$path"`" 60923 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 60924 fi 60925 fi 60926 fi 60927 60928 60929 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 60930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 60931 $as_echo_n "checking for freetype includes... " >&6; } 60932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 60933 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 60934 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 60935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 60936 $as_echo_n "checking for freetype libraries... " >&6; } 60937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 60938 $as_echo "$FREETYPE_LIB_PATH" >&6; } 60939 fi 60940 60941 fi 60942 if test "x$FOUND_FREETYPE" != xyes; then 60943 FREETYPE_BASE_DIR="$HOME/freetype" 60944 60945 windows_path="$FREETYPE_BASE_DIR" 60946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 60947 unix_path=`$CYGPATH -u "$windows_path"` 60948 FREETYPE_BASE_DIR="$unix_path" 60949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 60950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 60951 FREETYPE_BASE_DIR="$unix_path" 60952 fi 60953 60954 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 60955 60956 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 60957 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 60958 METHOD="well-known location" 60959 60960 # Let's start with an optimistic view of the world :-) 60961 FOUND_FREETYPE=yes 60962 60963 # First look for the canonical freetype main include file ft2build.h. 60964 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60965 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 60966 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 60967 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 60968 # Fail. 60969 FOUND_FREETYPE=no 60970 fi 60971 fi 60972 60973 if test "x$FOUND_FREETYPE" = xyes; then 60974 # Include file found, let's continue the sanity check. 60975 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 60976 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 60977 60978 # Reset to default value 60979 FREETYPE_BASE_NAME=freetype 60980 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60981 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 60982 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 60983 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 60984 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 60985 # for the .6 version explicitly. 60986 FREETYPE_BASE_NAME=freetype.6 60987 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 60988 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 60989 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 60990 else 60991 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 60992 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 60993 FOUND_FREETYPE=no 60994 fi 60995 else 60996 if test "x$OPENJDK_TARGET_OS" = xwindows; then 60997 # On Windows, we will need both .lib and .dll file. 60998 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 60999 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61000 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61001 FOUND_FREETYPE=no 61002 fi 61003 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61004 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61005 # Found lib in isa dir, use that instead. 61006 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61007 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61008 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61009 fi 61010 fi 61011 fi 61012 61013 if test "x$FOUND_FREETYPE" = xyes; then 61014 61015 # Only process if variable expands to non-empty 61016 61017 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61018 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61019 61020 # Input might be given as Windows format, start by converting to 61021 # unix format. 61022 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61023 new_path=`$CYGPATH -u "$path"` 61024 61025 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61026 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61027 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61028 # "foo.exe" is OK but "foo" is an error. 61029 # 61030 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61031 # It is also a way to make sure we got the proper file name for the real test later on. 61032 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61033 if test "x$test_shortpath" = x; then 61034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61035 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61036 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61037 fi 61038 61039 # Call helper function which possibly converts this using DOS-style short mode. 61040 # If so, the updated path is stored in $new_path. 61041 61042 input_path="$new_path" 61043 # Check if we need to convert this using DOS-style short mode. If the path 61044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61045 # take no chances and rewrite it. 61046 # Note: m4 eats our [], so we need to use [ and ] instead. 61047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61048 if test "x$has_forbidden_chars" != x; then 61049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61050 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61051 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61052 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61053 # Going to short mode and back again did indeed matter. Since short mode is 61054 # case insensitive, let's make it lowercase to improve readability. 61055 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61056 # Now convert it back to Unix-style (cygpath) 61057 input_path=`$CYGPATH -u "$shortmode_path"` 61058 new_path="$input_path" 61059 fi 61060 fi 61061 61062 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61063 if test "x$test_cygdrive_prefix" = x; then 61064 # As a simple fix, exclude /usr/bin since it's not a real path. 61065 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61066 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61067 # a path prefixed by /cygdrive for fixpath to work. 61068 new_path="$CYGWIN_ROOT_PATH$input_path" 61069 fi 61070 fi 61071 61072 61073 if test "x$path" != "x$new_path"; then 61074 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61076 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61077 fi 61078 61079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61080 61081 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61082 has_colon=`$ECHO $path | $GREP ^.:` 61083 new_path="$path" 61084 if test "x$has_colon" = x; then 61085 # Not in mixed or Windows style, start by that. 61086 new_path=`cmd //c echo $path` 61087 fi 61088 61089 61090 input_path="$new_path" 61091 # Check if we need to convert this using DOS-style short mode. If the path 61092 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61093 # take no chances and rewrite it. 61094 # Note: m4 eats our [], so we need to use [ and ] instead. 61095 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61096 if test "x$has_forbidden_chars" != x; then 61097 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61098 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61099 fi 61100 61101 61102 windows_path="$new_path" 61103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61104 unix_path=`$CYGPATH -u "$windows_path"` 61105 new_path="$unix_path" 61106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61107 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61108 new_path="$unix_path" 61109 fi 61110 61111 if test "x$path" != "x$new_path"; then 61112 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61113 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61114 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61115 fi 61116 61117 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61118 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61119 61120 else 61121 # We're on a unix platform. Hooray! :) 61122 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61123 has_space=`$ECHO "$path" | $GREP " "` 61124 if test "x$has_space" != x; then 61125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61126 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61127 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61128 fi 61129 61130 # Use eval to expand a potential ~ 61131 eval path="$path" 61132 if test ! -f "$path" && test ! -d "$path"; then 61133 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61134 fi 61135 61136 if test -d "$path"; then 61137 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61138 else 61139 dir="`$DIRNAME "$path"`" 61140 base="`$BASENAME "$path"`" 61141 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61142 fi 61143 fi 61144 fi 61145 61146 61147 # Only process if variable expands to non-empty 61148 61149 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61151 61152 # Input might be given as Windows format, start by converting to 61153 # unix format. 61154 path="$POTENTIAL_FREETYPE_LIB_PATH" 61155 new_path=`$CYGPATH -u "$path"` 61156 61157 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61158 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61159 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61160 # "foo.exe" is OK but "foo" is an error. 61161 # 61162 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61163 # It is also a way to make sure we got the proper file name for the real test later on. 61164 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61165 if test "x$test_shortpath" = x; then 61166 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61167 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61168 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61169 fi 61170 61171 # Call helper function which possibly converts this using DOS-style short mode. 61172 # If so, the updated path is stored in $new_path. 61173 61174 input_path="$new_path" 61175 # Check if we need to convert this using DOS-style short mode. If the path 61176 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61177 # take no chances and rewrite it. 61178 # Note: m4 eats our [], so we need to use [ and ] instead. 61179 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61180 if test "x$has_forbidden_chars" != x; then 61181 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61182 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61183 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61184 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61185 # Going to short mode and back again did indeed matter. Since short mode is 61186 # case insensitive, let's make it lowercase to improve readability. 61187 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61188 # Now convert it back to Unix-style (cygpath) 61189 input_path=`$CYGPATH -u "$shortmode_path"` 61190 new_path="$input_path" 61191 fi 61192 fi 61193 61194 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61195 if test "x$test_cygdrive_prefix" = x; then 61196 # As a simple fix, exclude /usr/bin since it's not a real path. 61197 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61198 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61199 # a path prefixed by /cygdrive for fixpath to work. 61200 new_path="$CYGWIN_ROOT_PATH$input_path" 61201 fi 61202 fi 61203 61204 61205 if test "x$path" != "x$new_path"; then 61206 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61207 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61208 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61209 fi 61210 61211 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61212 61213 path="$POTENTIAL_FREETYPE_LIB_PATH" 61214 has_colon=`$ECHO $path | $GREP ^.:` 61215 new_path="$path" 61216 if test "x$has_colon" = x; then 61217 # Not in mixed or Windows style, start by that. 61218 new_path=`cmd //c echo $path` 61219 fi 61220 61221 61222 input_path="$new_path" 61223 # Check if we need to convert this using DOS-style short mode. If the path 61224 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61225 # take no chances and rewrite it. 61226 # Note: m4 eats our [], so we need to use [ and ] instead. 61227 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61228 if test "x$has_forbidden_chars" != x; then 61229 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61230 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61231 fi 61232 61233 61234 windows_path="$new_path" 61235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61236 unix_path=`$CYGPATH -u "$windows_path"` 61237 new_path="$unix_path" 61238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61239 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61240 new_path="$unix_path" 61241 fi 61242 61243 if test "x$path" != "x$new_path"; then 61244 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61245 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61246 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61247 fi 61248 61249 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61250 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61251 61252 else 61253 # We're on a unix platform. Hooray! :) 61254 path="$POTENTIAL_FREETYPE_LIB_PATH" 61255 has_space=`$ECHO "$path" | $GREP " "` 61256 if test "x$has_space" != x; then 61257 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61258 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61259 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61260 fi 61261 61262 # Use eval to expand a potential ~ 61263 eval path="$path" 61264 if test ! -f "$path" && test ! -d "$path"; then 61265 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61266 fi 61267 61268 if test -d "$path"; then 61269 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61270 else 61271 dir="`$DIRNAME "$path"`" 61272 base="`$BASENAME "$path"`" 61273 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61274 fi 61275 fi 61276 fi 61277 61278 61279 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61281 $as_echo_n "checking for freetype includes... " >&6; } 61282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61283 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61284 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61286 $as_echo_n "checking for freetype libraries... " >&6; } 61287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61288 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61289 fi 61290 61291 else 61292 61293 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61294 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 61295 METHOD="well-known location" 61296 61297 # Let's start with an optimistic view of the world :-) 61298 FOUND_FREETYPE=yes 61299 61300 # First look for the canonical freetype main include file ft2build.h. 61301 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61302 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61303 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61304 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61305 # Fail. 61306 FOUND_FREETYPE=no 61307 fi 61308 fi 61309 61310 if test "x$FOUND_FREETYPE" = xyes; then 61311 # Include file found, let's continue the sanity check. 61312 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61313 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61314 61315 # Reset to default value 61316 FREETYPE_BASE_NAME=freetype 61317 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61318 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61319 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61320 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61321 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61322 # for the .6 version explicitly. 61323 FREETYPE_BASE_NAME=freetype.6 61324 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61325 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61326 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61327 else 61328 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61329 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61330 FOUND_FREETYPE=no 61331 fi 61332 else 61333 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61334 # On Windows, we will need both .lib and .dll file. 61335 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61336 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61337 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61338 FOUND_FREETYPE=no 61339 fi 61340 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61341 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61342 # Found lib in isa dir, use that instead. 61343 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61345 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61346 fi 61347 fi 61348 fi 61349 61350 if test "x$FOUND_FREETYPE" = xyes; then 61351 61352 # Only process if variable expands to non-empty 61353 61354 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61356 61357 # Input might be given as Windows format, start by converting to 61358 # unix format. 61359 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61360 new_path=`$CYGPATH -u "$path"` 61361 61362 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61363 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61364 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61365 # "foo.exe" is OK but "foo" is an error. 61366 # 61367 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61368 # It is also a way to make sure we got the proper file name for the real test later on. 61369 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61370 if test "x$test_shortpath" = x; then 61371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61372 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61373 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61374 fi 61375 61376 # Call helper function which possibly converts this using DOS-style short mode. 61377 # If so, the updated path is stored in $new_path. 61378 61379 input_path="$new_path" 61380 # Check if we need to convert this using DOS-style short mode. If the path 61381 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61382 # take no chances and rewrite it. 61383 # Note: m4 eats our [], so we need to use [ and ] instead. 61384 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61385 if test "x$has_forbidden_chars" != x; then 61386 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61387 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61388 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61389 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61390 # Going to short mode and back again did indeed matter. Since short mode is 61391 # case insensitive, let's make it lowercase to improve readability. 61392 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61393 # Now convert it back to Unix-style (cygpath) 61394 input_path=`$CYGPATH -u "$shortmode_path"` 61395 new_path="$input_path" 61396 fi 61397 fi 61398 61399 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61400 if test "x$test_cygdrive_prefix" = x; then 61401 # As a simple fix, exclude /usr/bin since it's not a real path. 61402 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61403 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61404 # a path prefixed by /cygdrive for fixpath to work. 61405 new_path="$CYGWIN_ROOT_PATH$input_path" 61406 fi 61407 fi 61408 61409 61410 if test "x$path" != "x$new_path"; then 61411 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61413 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61414 fi 61415 61416 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61417 61418 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61419 has_colon=`$ECHO $path | $GREP ^.:` 61420 new_path="$path" 61421 if test "x$has_colon" = x; then 61422 # Not in mixed or Windows style, start by that. 61423 new_path=`cmd //c echo $path` 61424 fi 61425 61426 61427 input_path="$new_path" 61428 # Check if we need to convert this using DOS-style short mode. If the path 61429 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61430 # take no chances and rewrite it. 61431 # Note: m4 eats our [], so we need to use [ and ] instead. 61432 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61433 if test "x$has_forbidden_chars" != x; then 61434 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61435 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61436 fi 61437 61438 61439 windows_path="$new_path" 61440 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61441 unix_path=`$CYGPATH -u "$windows_path"` 61442 new_path="$unix_path" 61443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61444 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61445 new_path="$unix_path" 61446 fi 61447 61448 if test "x$path" != "x$new_path"; then 61449 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61451 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61452 fi 61453 61454 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61455 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61456 61457 else 61458 # We're on a unix platform. Hooray! :) 61459 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61460 has_space=`$ECHO "$path" | $GREP " "` 61461 if test "x$has_space" != x; then 61462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61463 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61464 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61465 fi 61466 61467 # Use eval to expand a potential ~ 61468 eval path="$path" 61469 if test ! -f "$path" && test ! -d "$path"; then 61470 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61471 fi 61472 61473 if test -d "$path"; then 61474 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61475 else 61476 dir="`$DIRNAME "$path"`" 61477 base="`$BASENAME "$path"`" 61478 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61479 fi 61480 fi 61481 fi 61482 61483 61484 # Only process if variable expands to non-empty 61485 61486 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61488 61489 # Input might be given as Windows format, start by converting to 61490 # unix format. 61491 path="$POTENTIAL_FREETYPE_LIB_PATH" 61492 new_path=`$CYGPATH -u "$path"` 61493 61494 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61495 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61496 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61497 # "foo.exe" is OK but "foo" is an error. 61498 # 61499 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61500 # It is also a way to make sure we got the proper file name for the real test later on. 61501 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61502 if test "x$test_shortpath" = x; then 61503 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61504 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61505 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61506 fi 61507 61508 # Call helper function which possibly converts this using DOS-style short mode. 61509 # If so, the updated path is stored in $new_path. 61510 61511 input_path="$new_path" 61512 # Check if we need to convert this using DOS-style short mode. If the path 61513 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61514 # take no chances and rewrite it. 61515 # Note: m4 eats our [], so we need to use [ and ] instead. 61516 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61517 if test "x$has_forbidden_chars" != x; then 61518 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61519 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61520 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61521 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61522 # Going to short mode and back again did indeed matter. Since short mode is 61523 # case insensitive, let's make it lowercase to improve readability. 61524 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61525 # Now convert it back to Unix-style (cygpath) 61526 input_path=`$CYGPATH -u "$shortmode_path"` 61527 new_path="$input_path" 61528 fi 61529 fi 61530 61531 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61532 if test "x$test_cygdrive_prefix" = x; then 61533 # As a simple fix, exclude /usr/bin since it's not a real path. 61534 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61535 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61536 # a path prefixed by /cygdrive for fixpath to work. 61537 new_path="$CYGWIN_ROOT_PATH$input_path" 61538 fi 61539 fi 61540 61541 61542 if test "x$path" != "x$new_path"; then 61543 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61544 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61545 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61546 fi 61547 61548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61549 61550 path="$POTENTIAL_FREETYPE_LIB_PATH" 61551 has_colon=`$ECHO $path | $GREP ^.:` 61552 new_path="$path" 61553 if test "x$has_colon" = x; then 61554 # Not in mixed or Windows style, start by that. 61555 new_path=`cmd //c echo $path` 61556 fi 61557 61558 61559 input_path="$new_path" 61560 # Check if we need to convert this using DOS-style short mode. If the path 61561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61562 # take no chances and rewrite it. 61563 # Note: m4 eats our [], so we need to use [ and ] instead. 61564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61565 if test "x$has_forbidden_chars" != x; then 61566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61567 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61568 fi 61569 61570 61571 windows_path="$new_path" 61572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61573 unix_path=`$CYGPATH -u "$windows_path"` 61574 new_path="$unix_path" 61575 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61576 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61577 new_path="$unix_path" 61578 fi 61579 61580 if test "x$path" != "x$new_path"; then 61581 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61582 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61583 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61584 fi 61585 61586 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61587 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61588 61589 else 61590 # We're on a unix platform. Hooray! :) 61591 path="$POTENTIAL_FREETYPE_LIB_PATH" 61592 has_space=`$ECHO "$path" | $GREP " "` 61593 if test "x$has_space" != x; then 61594 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61595 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61596 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61597 fi 61598 61599 # Use eval to expand a potential ~ 61600 eval path="$path" 61601 if test ! -f "$path" && test ! -d "$path"; then 61602 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61603 fi 61604 61605 if test -d "$path"; then 61606 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 61607 else 61608 dir="`$DIRNAME "$path"`" 61609 base="`$BASENAME "$path"`" 61610 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61611 fi 61612 fi 61613 fi 61614 61615 61616 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 61618 $as_echo_n "checking for freetype includes... " >&6; } 61619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 61620 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 61621 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 61622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 61623 $as_echo_n "checking for freetype libraries... " >&6; } 61624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 61625 $as_echo "$FREETYPE_LIB_PATH" >&6; } 61626 fi 61627 61628 fi 61629 if test "x$FOUND_FREETYPE" != xyes && test -d $FREETYPE_BASE_DIR \ 61630 && test -s "$FREETYPE_BASE_DIR/builds/windows/vc2010/freetype.vcxproj" && test "x$MSBUILD" != x; then 61631 # Source is available, as a last resort try to build freetype in default location 61632 61633 FREETYPE_SRC_PATH="$FREETYPE_BASE_DIR" 61634 BUILD_FREETYPE=yes 61635 61636 # Check if the freetype sources are acessible.. 61637 if ! test -d $FREETYPE_SRC_PATH; then 61638 { $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 61639 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can not find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 61640 BUILD_FREETYPE=no 61641 fi 61642 # ..and contain a vc2010 project file 61643 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 61644 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 61645 { $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 61646 $as_echo "$as_me: WARNING: Can not find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 61647 BUILD_FREETYPE=no 61648 fi 61649 # Now check if configure found a version of 'msbuild.exe' 61650 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 61651 { $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 61652 $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;} 61653 BUILD_FREETYPE=no 61654 fi 61655 61656 # Ready to go.. 61657 if test "x$BUILD_FREETYPE" = xyes; then 61658 # msbuild requires trailing slashes for output directories 61659 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 61660 freetype_lib_path_unix="$freetype_lib_path" 61661 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 61662 61663 unix_path="$vcxproj_path" 61664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61665 windows_path=`$CYGPATH -m "$unix_path"` 61666 vcxproj_path="$windows_path" 61667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61668 windows_path=`cmd //c echo $unix_path` 61669 vcxproj_path="$windows_path" 61670 fi 61671 61672 61673 unix_path="$freetype_lib_path" 61674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61675 windows_path=`$CYGPATH -m "$unix_path"` 61676 freetype_lib_path="$windows_path" 61677 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61678 windows_path=`cmd //c echo $unix_path` 61679 freetype_lib_path="$windows_path" 61680 fi 61681 61682 61683 unix_path="$freetype_obj_path" 61684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61685 windows_path=`$CYGPATH -m "$unix_path"` 61686 freetype_obj_path="$windows_path" 61687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61688 windows_path=`cmd //c echo $unix_path` 61689 freetype_obj_path="$windows_path" 61690 fi 61691 61692 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61693 freetype_platform=x64 61694 else 61695 freetype_platform=win32 61696 fi 61697 61698 # The original freetype project file is for VS 2010 (i.e. 'v100'), 61699 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 61700 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 61701 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 61702 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 61703 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 61704 61705 # First we try to build the freetype.dll 61706 $ECHO -e "@echo off\n"\ 61707 "$MSBUILD $vcxproj_path "\ 61708 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61709 "/p:Configuration=\"Release Multithreaded\" "\ 61710 "/p:Platform=$freetype_platform "\ 61711 "/p:ConfigurationType=DynamicLibrary "\ 61712 "/p:TargetName=freetype "\ 61713 "/p:OutDir=\"$freetype_lib_path\" "\ 61714 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 61715 cmd /c freetype.bat 61716 61717 if test -s "$freetype_lib_path_unix/freetype.dll"; then 61718 # If that succeeds we also build freetype.lib 61719 $ECHO -e "@echo off\n"\ 61720 "$MSBUILD $vcxproj_path "\ 61721 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 61722 "/p:Configuration=\"Release Multithreaded\" "\ 61723 "/p:Platform=$freetype_platform "\ 61724 "/p:ConfigurationType=StaticLibrary "\ 61725 "/p:TargetName=freetype "\ 61726 "/p:OutDir=\"$freetype_lib_path\" "\ 61727 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 61728 cmd /c freetype.bat 61729 61730 if test -s "$freetype_lib_path_unix/freetype.lib"; then 61731 # Once we build both, lib and dll, set freetype lib and include path appropriately 61732 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 61733 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 61734 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 61735 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 61736 else 61737 BUILD_FREETYPE=no 61738 fi 61739 else 61740 BUILD_FREETYPE=no 61741 fi 61742 fi 61743 61744 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 61745 61746 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 61747 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib64" 61748 METHOD="well-known location" 61749 61750 # Let's start with an optimistic view of the world :-) 61751 FOUND_FREETYPE=yes 61752 61753 # First look for the canonical freetype main include file ft2build.h. 61754 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61755 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 61756 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 61757 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 61758 # Fail. 61759 FOUND_FREETYPE=no 61760 fi 61761 fi 61762 61763 if test "x$FOUND_FREETYPE" = xyes; then 61764 # Include file found, let's continue the sanity check. 61765 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 61766 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 61767 61768 # Reset to default value 61769 FREETYPE_BASE_NAME=freetype 61770 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61771 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 61772 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 61773 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 61774 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 61775 # for the .6 version explicitly. 61776 FREETYPE_BASE_NAME=freetype.6 61777 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 61778 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 61779 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 61780 else 61781 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 61782 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 61783 FOUND_FREETYPE=no 61784 fi 61785 else 61786 if test "x$OPENJDK_TARGET_OS" = xwindows; then 61787 # On Windows, we will need both .lib and .dll file. 61788 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 61789 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 61790 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 61791 FOUND_FREETYPE=no 61792 fi 61793 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 61794 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 61795 # Found lib in isa dir, use that instead. 61796 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 61797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 61798 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 61799 fi 61800 fi 61801 fi 61802 61803 if test "x$FOUND_FREETYPE" = xyes; then 61804 61805 # Only process if variable expands to non-empty 61806 61807 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 61808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61809 61810 # Input might be given as Windows format, start by converting to 61811 # unix format. 61812 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61813 new_path=`$CYGPATH -u "$path"` 61814 61815 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61816 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61817 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61818 # "foo.exe" is OK but "foo" is an error. 61819 # 61820 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61821 # It is also a way to make sure we got the proper file name for the real test later on. 61822 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61823 if test "x$test_shortpath" = x; then 61824 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61825 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61826 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 61827 fi 61828 61829 # Call helper function which possibly converts this using DOS-style short mode. 61830 # If so, the updated path is stored in $new_path. 61831 61832 input_path="$new_path" 61833 # Check if we need to convert this using DOS-style short mode. If the path 61834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61835 # take no chances and rewrite it. 61836 # Note: m4 eats our [], so we need to use [ and ] instead. 61837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61838 if test "x$has_forbidden_chars" != x; then 61839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61840 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61841 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61842 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61843 # Going to short mode and back again did indeed matter. Since short mode is 61844 # case insensitive, let's make it lowercase to improve readability. 61845 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61846 # Now convert it back to Unix-style (cygpath) 61847 input_path=`$CYGPATH -u "$shortmode_path"` 61848 new_path="$input_path" 61849 fi 61850 fi 61851 61852 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61853 if test "x$test_cygdrive_prefix" = x; then 61854 # As a simple fix, exclude /usr/bin since it's not a real path. 61855 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61856 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61857 # a path prefixed by /cygdrive for fixpath to work. 61858 new_path="$CYGWIN_ROOT_PATH$input_path" 61859 fi 61860 fi 61861 61862 61863 if test "x$path" != "x$new_path"; then 61864 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61866 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61867 fi 61868 61869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61870 61871 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61872 has_colon=`$ECHO $path | $GREP ^.:` 61873 new_path="$path" 61874 if test "x$has_colon" = x; then 61875 # Not in mixed or Windows style, start by that. 61876 new_path=`cmd //c echo $path` 61877 fi 61878 61879 61880 input_path="$new_path" 61881 # Check if we need to convert this using DOS-style short mode. If the path 61882 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61883 # take no chances and rewrite it. 61884 # Note: m4 eats our [], so we need to use [ and ] instead. 61885 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 61886 if test "x$has_forbidden_chars" != x; then 61887 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61888 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61889 fi 61890 61891 61892 windows_path="$new_path" 61893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61894 unix_path=`$CYGPATH -u "$windows_path"` 61895 new_path="$unix_path" 61896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 61897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 61898 new_path="$unix_path" 61899 fi 61900 61901 if test "x$path" != "x$new_path"; then 61902 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 61903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 61904 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 61905 fi 61906 61907 # Save the first 10 bytes of this path to the storage, so fixpath can work. 61908 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 61909 61910 else 61911 # We're on a unix platform. Hooray! :) 61912 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 61913 has_space=`$ECHO "$path" | $GREP " "` 61914 if test "x$has_space" != x; then 61915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 61916 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 61917 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 61918 fi 61919 61920 # Use eval to expand a potential ~ 61921 eval path="$path" 61922 if test ! -f "$path" && test ! -d "$path"; then 61923 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 61924 fi 61925 61926 if test -d "$path"; then 61927 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 61928 else 61929 dir="`$DIRNAME "$path"`" 61930 base="`$BASENAME "$path"`" 61931 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 61932 fi 61933 fi 61934 fi 61935 61936 61937 # Only process if variable expands to non-empty 61938 61939 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 61940 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 61941 61942 # Input might be given as Windows format, start by converting to 61943 # unix format. 61944 path="$POTENTIAL_FREETYPE_LIB_PATH" 61945 new_path=`$CYGPATH -u "$path"` 61946 61947 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 61948 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 61949 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 61950 # "foo.exe" is OK but "foo" is an error. 61951 # 61952 # This test is therefore slightly more accurate than "test -f" to check for file precense. 61953 # It is also a way to make sure we got the proper file name for the real test later on. 61954 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 61955 if test "x$test_shortpath" = x; then 61956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 61957 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 61958 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 61959 fi 61960 61961 # Call helper function which possibly converts this using DOS-style short mode. 61962 # If so, the updated path is stored in $new_path. 61963 61964 input_path="$new_path" 61965 # Check if we need to convert this using DOS-style short mode. If the path 61966 # contains just simple characters, use it. Otherwise (spaces, weird characters), 61967 # take no chances and rewrite it. 61968 # Note: m4 eats our [], so we need to use [ and ] instead. 61969 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 61970 if test "x$has_forbidden_chars" != x; then 61971 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 61972 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 61973 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 61974 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 61975 # Going to short mode and back again did indeed matter. Since short mode is 61976 # case insensitive, let's make it lowercase to improve readability. 61977 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 61978 # Now convert it back to Unix-style (cygpath) 61979 input_path=`$CYGPATH -u "$shortmode_path"` 61980 new_path="$input_path" 61981 fi 61982 fi 61983 61984 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 61985 if test "x$test_cygdrive_prefix" = x; then 61986 # As a simple fix, exclude /usr/bin since it's not a real path. 61987 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 61988 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 61989 # a path prefixed by /cygdrive for fixpath to work. 61990 new_path="$CYGWIN_ROOT_PATH$input_path" 61991 fi 61992 fi 61993 61994 61995 if test "x$path" != "x$new_path"; then 61996 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 61997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 61998 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 61999 fi 62000 62001 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62002 62003 path="$POTENTIAL_FREETYPE_LIB_PATH" 62004 has_colon=`$ECHO $path | $GREP ^.:` 62005 new_path="$path" 62006 if test "x$has_colon" = x; then 62007 # Not in mixed or Windows style, start by that. 62008 new_path=`cmd //c echo $path` 62009 fi 62010 62011 62012 input_path="$new_path" 62013 # Check if we need to convert this using DOS-style short mode. If the path 62014 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62015 # take no chances and rewrite it. 62016 # Note: m4 eats our [], so we need to use [ and ] instead. 62017 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62018 if test "x$has_forbidden_chars" != x; then 62019 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62020 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62021 fi 62022 62023 62024 windows_path="$new_path" 62025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62026 unix_path=`$CYGPATH -u "$windows_path"` 62027 new_path="$unix_path" 62028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62030 new_path="$unix_path" 62031 fi 62032 62033 if test "x$path" != "x$new_path"; then 62034 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62035 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62036 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62037 fi 62038 62039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62041 62042 else 62043 # We're on a unix platform. Hooray! :) 62044 path="$POTENTIAL_FREETYPE_LIB_PATH" 62045 has_space=`$ECHO "$path" | $GREP " "` 62046 if test "x$has_space" != x; then 62047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62048 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62049 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62050 fi 62051 62052 # Use eval to expand a potential ~ 62053 eval path="$path" 62054 if test ! -f "$path" && test ! -d "$path"; then 62055 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62056 fi 62057 62058 if test -d "$path"; then 62059 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62060 else 62061 dir="`$DIRNAME "$path"`" 62062 base="`$BASENAME "$path"`" 62063 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62064 fi 62065 fi 62066 fi 62067 62068 62069 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62071 $as_echo_n "checking for freetype includes... " >&6; } 62072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62073 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62074 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62076 $as_echo_n "checking for freetype libraries... " >&6; } 62077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62078 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62079 fi 62080 62081 else 62082 62083 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62084 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 62085 METHOD="well-known location" 62086 62087 # Let's start with an optimistic view of the world :-) 62088 FOUND_FREETYPE=yes 62089 62090 # First look for the canonical freetype main include file ft2build.h. 62091 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62092 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62093 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62094 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62095 # Fail. 62096 FOUND_FREETYPE=no 62097 fi 62098 fi 62099 62100 if test "x$FOUND_FREETYPE" = xyes; then 62101 # Include file found, let's continue the sanity check. 62102 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62103 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62104 62105 # Reset to default value 62106 FREETYPE_BASE_NAME=freetype 62107 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62108 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62109 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62110 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62111 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62112 # for the .6 version explicitly. 62113 FREETYPE_BASE_NAME=freetype.6 62114 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62115 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62116 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62117 else 62118 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62119 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62120 FOUND_FREETYPE=no 62121 fi 62122 else 62123 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62124 # On Windows, we will need both .lib and .dll file. 62125 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62126 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62127 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62128 FOUND_FREETYPE=no 62129 fi 62130 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62131 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62132 # Found lib in isa dir, use that instead. 62133 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62134 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62135 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62136 fi 62137 fi 62138 fi 62139 62140 if test "x$FOUND_FREETYPE" = xyes; then 62141 62142 # Only process if variable expands to non-empty 62143 62144 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62146 62147 # Input might be given as Windows format, start by converting to 62148 # unix format. 62149 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62150 new_path=`$CYGPATH -u "$path"` 62151 62152 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62153 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62154 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62155 # "foo.exe" is OK but "foo" is an error. 62156 # 62157 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62158 # It is also a way to make sure we got the proper file name for the real test later on. 62159 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62160 if test "x$test_shortpath" = x; then 62161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62162 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62163 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62164 fi 62165 62166 # Call helper function which possibly converts this using DOS-style short mode. 62167 # If so, the updated path is stored in $new_path. 62168 62169 input_path="$new_path" 62170 # Check if we need to convert this using DOS-style short mode. If the path 62171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62172 # take no chances and rewrite it. 62173 # Note: m4 eats our [], so we need to use [ and ] instead. 62174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62175 if test "x$has_forbidden_chars" != x; then 62176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62177 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62178 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62179 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62180 # Going to short mode and back again did indeed matter. Since short mode is 62181 # case insensitive, let's make it lowercase to improve readability. 62182 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62183 # Now convert it back to Unix-style (cygpath) 62184 input_path=`$CYGPATH -u "$shortmode_path"` 62185 new_path="$input_path" 62186 fi 62187 fi 62188 62189 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62190 if test "x$test_cygdrive_prefix" = x; then 62191 # As a simple fix, exclude /usr/bin since it's not a real path. 62192 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62193 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62194 # a path prefixed by /cygdrive for fixpath to work. 62195 new_path="$CYGWIN_ROOT_PATH$input_path" 62196 fi 62197 fi 62198 62199 62200 if test "x$path" != "x$new_path"; then 62201 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62202 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62203 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62204 fi 62205 62206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62207 62208 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62209 has_colon=`$ECHO $path | $GREP ^.:` 62210 new_path="$path" 62211 if test "x$has_colon" = x; then 62212 # Not in mixed or Windows style, start by that. 62213 new_path=`cmd //c echo $path` 62214 fi 62215 62216 62217 input_path="$new_path" 62218 # Check if we need to convert this using DOS-style short mode. If the path 62219 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62220 # take no chances and rewrite it. 62221 # Note: m4 eats our [], so we need to use [ and ] instead. 62222 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62223 if test "x$has_forbidden_chars" != x; then 62224 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62225 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62226 fi 62227 62228 62229 windows_path="$new_path" 62230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62231 unix_path=`$CYGPATH -u "$windows_path"` 62232 new_path="$unix_path" 62233 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62234 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62235 new_path="$unix_path" 62236 fi 62237 62238 if test "x$path" != "x$new_path"; then 62239 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62240 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62241 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62242 fi 62243 62244 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62245 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62246 62247 else 62248 # We're on a unix platform. Hooray! :) 62249 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62250 has_space=`$ECHO "$path" | $GREP " "` 62251 if test "x$has_space" != x; then 62252 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62253 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62254 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62255 fi 62256 62257 # Use eval to expand a potential ~ 62258 eval path="$path" 62259 if test ! -f "$path" && test ! -d "$path"; then 62260 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62261 fi 62262 62263 if test -d "$path"; then 62264 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62265 else 62266 dir="`$DIRNAME "$path"`" 62267 base="`$BASENAME "$path"`" 62268 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62269 fi 62270 fi 62271 fi 62272 62273 62274 # Only process if variable expands to non-empty 62275 62276 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62278 62279 # Input might be given as Windows format, start by converting to 62280 # unix format. 62281 path="$POTENTIAL_FREETYPE_LIB_PATH" 62282 new_path=`$CYGPATH -u "$path"` 62283 62284 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62285 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62286 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62287 # "foo.exe" is OK but "foo" is an error. 62288 # 62289 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62290 # It is also a way to make sure we got the proper file name for the real test later on. 62291 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62292 if test "x$test_shortpath" = x; then 62293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62294 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62295 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62296 fi 62297 62298 # Call helper function which possibly converts this using DOS-style short mode. 62299 # If so, the updated path is stored in $new_path. 62300 62301 input_path="$new_path" 62302 # Check if we need to convert this using DOS-style short mode. If the path 62303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62304 # take no chances and rewrite it. 62305 # Note: m4 eats our [], so we need to use [ and ] instead. 62306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62307 if test "x$has_forbidden_chars" != x; then 62308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62309 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62310 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62311 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62312 # Going to short mode and back again did indeed matter. Since short mode is 62313 # case insensitive, let's make it lowercase to improve readability. 62314 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62315 # Now convert it back to Unix-style (cygpath) 62316 input_path=`$CYGPATH -u "$shortmode_path"` 62317 new_path="$input_path" 62318 fi 62319 fi 62320 62321 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62322 if test "x$test_cygdrive_prefix" = x; then 62323 # As a simple fix, exclude /usr/bin since it's not a real path. 62324 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62325 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62326 # a path prefixed by /cygdrive for fixpath to work. 62327 new_path="$CYGWIN_ROOT_PATH$input_path" 62328 fi 62329 fi 62330 62331 62332 if test "x$path" != "x$new_path"; then 62333 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62334 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62335 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62336 fi 62337 62338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62339 62340 path="$POTENTIAL_FREETYPE_LIB_PATH" 62341 has_colon=`$ECHO $path | $GREP ^.:` 62342 new_path="$path" 62343 if test "x$has_colon" = x; then 62344 # Not in mixed or Windows style, start by that. 62345 new_path=`cmd //c echo $path` 62346 fi 62347 62348 62349 input_path="$new_path" 62350 # Check if we need to convert this using DOS-style short mode. If the path 62351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62352 # take no chances and rewrite it. 62353 # Note: m4 eats our [], so we need to use [ and ] instead. 62354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62355 if test "x$has_forbidden_chars" != x; then 62356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62358 fi 62359 62360 62361 windows_path="$new_path" 62362 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62363 unix_path=`$CYGPATH -u "$windows_path"` 62364 new_path="$unix_path" 62365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62366 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62367 new_path="$unix_path" 62368 fi 62369 62370 if test "x$path" != "x$new_path"; then 62371 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62372 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62373 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62374 fi 62375 62376 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62377 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62378 62379 else 62380 # We're on a unix platform. Hooray! :) 62381 path="$POTENTIAL_FREETYPE_LIB_PATH" 62382 has_space=`$ECHO "$path" | $GREP " "` 62383 if test "x$has_space" != x; then 62384 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62385 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62386 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62387 fi 62388 62389 # Use eval to expand a potential ~ 62390 eval path="$path" 62391 if test ! -f "$path" && test ! -d "$path"; then 62392 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62393 fi 62394 62395 if test -d "$path"; then 62396 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62397 else 62398 dir="`$DIRNAME "$path"`" 62399 base="`$BASENAME "$path"`" 62400 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62401 fi 62402 fi 62403 fi 62404 62405 62406 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62408 $as_echo_n "checking for freetype includes... " >&6; } 62409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62410 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62411 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62413 $as_echo_n "checking for freetype libraries... " >&6; } 62414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62415 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62416 fi 62417 62418 fi 62419 fi 62420 fi 62421 else 62422 FREETYPE_BASE_DIR="$SYSROOT/usr" 62423 62424 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62425 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62426 METHOD="well-known location" 62427 62428 # Let's start with an optimistic view of the world :-) 62429 FOUND_FREETYPE=yes 62430 62431 # First look for the canonical freetype main include file ft2build.h. 62432 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62433 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62434 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62435 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62436 # Fail. 62437 FOUND_FREETYPE=no 62438 fi 62439 fi 62440 62441 if test "x$FOUND_FREETYPE" = xyes; then 62442 # Include file found, let's continue the sanity check. 62443 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62444 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62445 62446 # Reset to default value 62447 FREETYPE_BASE_NAME=freetype 62448 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62449 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62450 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62451 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62452 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62453 # for the .6 version explicitly. 62454 FREETYPE_BASE_NAME=freetype.6 62455 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62456 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62457 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62458 else 62459 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62460 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62461 FOUND_FREETYPE=no 62462 fi 62463 else 62464 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62465 # On Windows, we will need both .lib and .dll file. 62466 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62467 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62468 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62469 FOUND_FREETYPE=no 62470 fi 62471 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62472 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62473 # Found lib in isa dir, use that instead. 62474 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62475 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62476 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62477 fi 62478 fi 62479 fi 62480 62481 if test "x$FOUND_FREETYPE" = xyes; then 62482 62483 # Only process if variable expands to non-empty 62484 62485 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62487 62488 # Input might be given as Windows format, start by converting to 62489 # unix format. 62490 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62491 new_path=`$CYGPATH -u "$path"` 62492 62493 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62494 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62495 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62496 # "foo.exe" is OK but "foo" is an error. 62497 # 62498 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62499 # It is also a way to make sure we got the proper file name for the real test later on. 62500 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62501 if test "x$test_shortpath" = x; then 62502 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62503 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62504 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62505 fi 62506 62507 # Call helper function which possibly converts this using DOS-style short mode. 62508 # If so, the updated path is stored in $new_path. 62509 62510 input_path="$new_path" 62511 # Check if we need to convert this using DOS-style short mode. If the path 62512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62513 # take no chances and rewrite it. 62514 # Note: m4 eats our [], so we need to use [ and ] instead. 62515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62516 if test "x$has_forbidden_chars" != x; then 62517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62518 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62519 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62520 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62521 # Going to short mode and back again did indeed matter. Since short mode is 62522 # case insensitive, let's make it lowercase to improve readability. 62523 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62524 # Now convert it back to Unix-style (cygpath) 62525 input_path=`$CYGPATH -u "$shortmode_path"` 62526 new_path="$input_path" 62527 fi 62528 fi 62529 62530 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62531 if test "x$test_cygdrive_prefix" = x; then 62532 # As a simple fix, exclude /usr/bin since it's not a real path. 62533 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62534 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62535 # a path prefixed by /cygdrive for fixpath to work. 62536 new_path="$CYGWIN_ROOT_PATH$input_path" 62537 fi 62538 fi 62539 62540 62541 if test "x$path" != "x$new_path"; then 62542 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62544 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62545 fi 62546 62547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62548 62549 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62550 has_colon=`$ECHO $path | $GREP ^.:` 62551 new_path="$path" 62552 if test "x$has_colon" = x; then 62553 # Not in mixed or Windows style, start by that. 62554 new_path=`cmd //c echo $path` 62555 fi 62556 62557 62558 input_path="$new_path" 62559 # Check if we need to convert this using DOS-style short mode. If the path 62560 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62561 # take no chances and rewrite it. 62562 # Note: m4 eats our [], so we need to use [ and ] instead. 62563 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62564 if test "x$has_forbidden_chars" != x; then 62565 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62566 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62567 fi 62568 62569 62570 windows_path="$new_path" 62571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62572 unix_path=`$CYGPATH -u "$windows_path"` 62573 new_path="$unix_path" 62574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62576 new_path="$unix_path" 62577 fi 62578 62579 if test "x$path" != "x$new_path"; then 62580 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62582 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62583 fi 62584 62585 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62586 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62587 62588 else 62589 # We're on a unix platform. Hooray! :) 62590 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62591 has_space=`$ECHO "$path" | $GREP " "` 62592 if test "x$has_space" != x; then 62593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62594 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62595 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62596 fi 62597 62598 # Use eval to expand a potential ~ 62599 eval path="$path" 62600 if test ! -f "$path" && test ! -d "$path"; then 62601 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62602 fi 62603 62604 if test -d "$path"; then 62605 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62606 else 62607 dir="`$DIRNAME "$path"`" 62608 base="`$BASENAME "$path"`" 62609 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62610 fi 62611 fi 62612 fi 62613 62614 62615 # Only process if variable expands to non-empty 62616 62617 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62619 62620 # Input might be given as Windows format, start by converting to 62621 # unix format. 62622 path="$POTENTIAL_FREETYPE_LIB_PATH" 62623 new_path=`$CYGPATH -u "$path"` 62624 62625 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62626 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62627 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62628 # "foo.exe" is OK but "foo" is an error. 62629 # 62630 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62631 # It is also a way to make sure we got the proper file name for the real test later on. 62632 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62633 if test "x$test_shortpath" = x; then 62634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62635 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62636 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62637 fi 62638 62639 # Call helper function which possibly converts this using DOS-style short mode. 62640 # If so, the updated path is stored in $new_path. 62641 62642 input_path="$new_path" 62643 # Check if we need to convert this using DOS-style short mode. If the path 62644 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62645 # take no chances and rewrite it. 62646 # Note: m4 eats our [], so we need to use [ and ] instead. 62647 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62648 if test "x$has_forbidden_chars" != x; then 62649 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62650 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62651 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62652 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62653 # Going to short mode and back again did indeed matter. Since short mode is 62654 # case insensitive, let's make it lowercase to improve readability. 62655 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62656 # Now convert it back to Unix-style (cygpath) 62657 input_path=`$CYGPATH -u "$shortmode_path"` 62658 new_path="$input_path" 62659 fi 62660 fi 62661 62662 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62663 if test "x$test_cygdrive_prefix" = x; then 62664 # As a simple fix, exclude /usr/bin since it's not a real path. 62665 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62666 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62667 # a path prefixed by /cygdrive for fixpath to work. 62668 new_path="$CYGWIN_ROOT_PATH$input_path" 62669 fi 62670 fi 62671 62672 62673 if test "x$path" != "x$new_path"; then 62674 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62675 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62676 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62677 fi 62678 62679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62680 62681 path="$POTENTIAL_FREETYPE_LIB_PATH" 62682 has_colon=`$ECHO $path | $GREP ^.:` 62683 new_path="$path" 62684 if test "x$has_colon" = x; then 62685 # Not in mixed or Windows style, start by that. 62686 new_path=`cmd //c echo $path` 62687 fi 62688 62689 62690 input_path="$new_path" 62691 # Check if we need to convert this using DOS-style short mode. If the path 62692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62693 # take no chances and rewrite it. 62694 # Note: m4 eats our [], so we need to use [ and ] instead. 62695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62696 if test "x$has_forbidden_chars" != x; then 62697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62698 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62699 fi 62700 62701 62702 windows_path="$new_path" 62703 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62704 unix_path=`$CYGPATH -u "$windows_path"` 62705 new_path="$unix_path" 62706 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62707 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62708 new_path="$unix_path" 62709 fi 62710 62711 if test "x$path" != "x$new_path"; then 62712 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 62713 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 62714 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 62715 fi 62716 62717 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62718 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62719 62720 else 62721 # We're on a unix platform. Hooray! :) 62722 path="$POTENTIAL_FREETYPE_LIB_PATH" 62723 has_space=`$ECHO "$path" | $GREP " "` 62724 if test "x$has_space" != x; then 62725 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62726 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62727 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62728 fi 62729 62730 # Use eval to expand a potential ~ 62731 eval path="$path" 62732 if test ! -f "$path" && test ! -d "$path"; then 62733 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62734 fi 62735 62736 if test -d "$path"; then 62737 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 62738 else 62739 dir="`$DIRNAME "$path"`" 62740 base="`$BASENAME "$path"`" 62741 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62742 fi 62743 fi 62744 fi 62745 62746 62747 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 62749 $as_echo_n "checking for freetype includes... " >&6; } 62750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 62751 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 62752 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 62753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 62754 $as_echo_n "checking for freetype libraries... " >&6; } 62755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 62756 $as_echo "$FREETYPE_LIB_PATH" >&6; } 62757 fi 62758 62759 62760 if test "x$FOUND_FREETYPE" != xyes; then 62761 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 62762 62763 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 62764 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 62765 METHOD="well-known location" 62766 62767 # Let's start with an optimistic view of the world :-) 62768 FOUND_FREETYPE=yes 62769 62770 # First look for the canonical freetype main include file ft2build.h. 62771 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62772 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 62773 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 62774 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 62775 # Fail. 62776 FOUND_FREETYPE=no 62777 fi 62778 fi 62779 62780 if test "x$FOUND_FREETYPE" = xyes; then 62781 # Include file found, let's continue the sanity check. 62782 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 62783 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 62784 62785 # Reset to default value 62786 FREETYPE_BASE_NAME=freetype 62787 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62788 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 62789 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 62790 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 62791 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 62792 # for the .6 version explicitly. 62793 FREETYPE_BASE_NAME=freetype.6 62794 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 62795 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 62796 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 62797 else 62798 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 62799 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 62800 FOUND_FREETYPE=no 62801 fi 62802 else 62803 if test "x$OPENJDK_TARGET_OS" = xwindows; then 62804 # On Windows, we will need both .lib and .dll file. 62805 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 62806 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 62807 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 62808 FOUND_FREETYPE=no 62809 fi 62810 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 62811 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 62812 # Found lib in isa dir, use that instead. 62813 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 62814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 62815 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 62816 fi 62817 fi 62818 fi 62819 62820 if test "x$FOUND_FREETYPE" = xyes; then 62821 62822 # Only process if variable expands to non-empty 62823 62824 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 62825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62826 62827 # Input might be given as Windows format, start by converting to 62828 # unix format. 62829 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62830 new_path=`$CYGPATH -u "$path"` 62831 62832 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62833 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62834 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62835 # "foo.exe" is OK but "foo" is an error. 62836 # 62837 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62838 # It is also a way to make sure we got the proper file name for the real test later on. 62839 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62840 if test "x$test_shortpath" = x; then 62841 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62842 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62843 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 62844 fi 62845 62846 # Call helper function which possibly converts this using DOS-style short mode. 62847 # If so, the updated path is stored in $new_path. 62848 62849 input_path="$new_path" 62850 # Check if we need to convert this using DOS-style short mode. If the path 62851 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62852 # take no chances and rewrite it. 62853 # Note: m4 eats our [], so we need to use [ and ] instead. 62854 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62855 if test "x$has_forbidden_chars" != x; then 62856 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62857 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62858 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62859 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62860 # Going to short mode and back again did indeed matter. Since short mode is 62861 # case insensitive, let's make it lowercase to improve readability. 62862 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62863 # Now convert it back to Unix-style (cygpath) 62864 input_path=`$CYGPATH -u "$shortmode_path"` 62865 new_path="$input_path" 62866 fi 62867 fi 62868 62869 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 62870 if test "x$test_cygdrive_prefix" = x; then 62871 # As a simple fix, exclude /usr/bin since it's not a real path. 62872 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 62873 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 62874 # a path prefixed by /cygdrive for fixpath to work. 62875 new_path="$CYGWIN_ROOT_PATH$input_path" 62876 fi 62877 fi 62878 62879 62880 if test "x$path" != "x$new_path"; then 62881 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62883 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62884 fi 62885 62886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62887 62888 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62889 has_colon=`$ECHO $path | $GREP ^.:` 62890 new_path="$path" 62891 if test "x$has_colon" = x; then 62892 # Not in mixed or Windows style, start by that. 62893 new_path=`cmd //c echo $path` 62894 fi 62895 62896 62897 input_path="$new_path" 62898 # Check if we need to convert this using DOS-style short mode. If the path 62899 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62900 # take no chances and rewrite it. 62901 # Note: m4 eats our [], so we need to use [ and ] instead. 62902 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 62903 if test "x$has_forbidden_chars" != x; then 62904 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62905 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62906 fi 62907 62908 62909 windows_path="$new_path" 62910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62911 unix_path=`$CYGPATH -u "$windows_path"` 62912 new_path="$unix_path" 62913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 62914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 62915 new_path="$unix_path" 62916 fi 62917 62918 if test "x$path" != "x$new_path"; then 62919 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 62920 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 62921 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 62922 fi 62923 62924 # Save the first 10 bytes of this path to the storage, so fixpath can work. 62925 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 62926 62927 else 62928 # We're on a unix platform. Hooray! :) 62929 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 62930 has_space=`$ECHO "$path" | $GREP " "` 62931 if test "x$has_space" != x; then 62932 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 62933 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 62934 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 62935 fi 62936 62937 # Use eval to expand a potential ~ 62938 eval path="$path" 62939 if test ! -f "$path" && test ! -d "$path"; then 62940 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 62941 fi 62942 62943 if test -d "$path"; then 62944 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 62945 else 62946 dir="`$DIRNAME "$path"`" 62947 base="`$BASENAME "$path"`" 62948 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 62949 fi 62950 fi 62951 fi 62952 62953 62954 # Only process if variable expands to non-empty 62955 62956 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 62957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 62958 62959 # Input might be given as Windows format, start by converting to 62960 # unix format. 62961 path="$POTENTIAL_FREETYPE_LIB_PATH" 62962 new_path=`$CYGPATH -u "$path"` 62963 62964 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 62965 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 62966 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 62967 # "foo.exe" is OK but "foo" is an error. 62968 # 62969 # This test is therefore slightly more accurate than "test -f" to check for file precense. 62970 # It is also a way to make sure we got the proper file name for the real test later on. 62971 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 62972 if test "x$test_shortpath" = x; then 62973 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 62974 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 62975 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 62976 fi 62977 62978 # Call helper function which possibly converts this using DOS-style short mode. 62979 # If so, the updated path is stored in $new_path. 62980 62981 input_path="$new_path" 62982 # Check if we need to convert this using DOS-style short mode. If the path 62983 # contains just simple characters, use it. Otherwise (spaces, weird characters), 62984 # take no chances and rewrite it. 62985 # Note: m4 eats our [], so we need to use [ and ] instead. 62986 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 62987 if test "x$has_forbidden_chars" != x; then 62988 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 62989 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 62990 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 62991 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 62992 # Going to short mode and back again did indeed matter. Since short mode is 62993 # case insensitive, let's make it lowercase to improve readability. 62994 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 62995 # Now convert it back to Unix-style (cygpath) 62996 input_path=`$CYGPATH -u "$shortmode_path"` 62997 new_path="$input_path" 62998 fi 62999 fi 63000 63001 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63002 if test "x$test_cygdrive_prefix" = x; then 63003 # As a simple fix, exclude /usr/bin since it's not a real path. 63004 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63005 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63006 # a path prefixed by /cygdrive for fixpath to work. 63007 new_path="$CYGWIN_ROOT_PATH$input_path" 63008 fi 63009 fi 63010 63011 63012 if test "x$path" != "x$new_path"; then 63013 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63015 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63016 fi 63017 63018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63019 63020 path="$POTENTIAL_FREETYPE_LIB_PATH" 63021 has_colon=`$ECHO $path | $GREP ^.:` 63022 new_path="$path" 63023 if test "x$has_colon" = x; then 63024 # Not in mixed or Windows style, start by that. 63025 new_path=`cmd //c echo $path` 63026 fi 63027 63028 63029 input_path="$new_path" 63030 # Check if we need to convert this using DOS-style short mode. If the path 63031 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63032 # take no chances and rewrite it. 63033 # Note: m4 eats our [], so we need to use [ and ] instead. 63034 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63035 if test "x$has_forbidden_chars" != x; then 63036 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63037 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63038 fi 63039 63040 63041 windows_path="$new_path" 63042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63043 unix_path=`$CYGPATH -u "$windows_path"` 63044 new_path="$unix_path" 63045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63046 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63047 new_path="$unix_path" 63048 fi 63049 63050 if test "x$path" != "x$new_path"; then 63051 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63053 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63054 fi 63055 63056 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63057 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63058 63059 else 63060 # We're on a unix platform. Hooray! :) 63061 path="$POTENTIAL_FREETYPE_LIB_PATH" 63062 has_space=`$ECHO "$path" | $GREP " "` 63063 if test "x$has_space" != x; then 63064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63065 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63066 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63067 fi 63068 63069 # Use eval to expand a potential ~ 63070 eval path="$path" 63071 if test ! -f "$path" && test ! -d "$path"; then 63072 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63073 fi 63074 63075 if test -d "$path"; then 63076 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63077 else 63078 dir="`$DIRNAME "$path"`" 63079 base="`$BASENAME "$path"`" 63080 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63081 fi 63082 fi 63083 fi 63084 63085 63086 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63088 $as_echo_n "checking for freetype includes... " >&6; } 63089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63090 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63091 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63093 $as_echo_n "checking for freetype libraries... " >&6; } 63094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63095 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63096 fi 63097 63098 fi 63099 if test "x$FOUND_FREETYPE" != xyes; then 63100 FREETYPE_BASE_DIR="$SYSROOT/usr/local" 63101 63102 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63103 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63104 METHOD="well-known location" 63105 63106 # Let's start with an optimistic view of the world :-) 63107 FOUND_FREETYPE=yes 63108 63109 # First look for the canonical freetype main include file ft2build.h. 63110 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63111 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63112 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63113 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63114 # Fail. 63115 FOUND_FREETYPE=no 63116 fi 63117 fi 63118 63119 if test "x$FOUND_FREETYPE" = xyes; then 63120 # Include file found, let's continue the sanity check. 63121 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63122 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63123 63124 # Reset to default value 63125 FREETYPE_BASE_NAME=freetype 63126 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63127 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63128 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63129 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63130 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63131 # for the .6 version explicitly. 63132 FREETYPE_BASE_NAME=freetype.6 63133 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63134 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63135 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63136 else 63137 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63138 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63139 FOUND_FREETYPE=no 63140 fi 63141 else 63142 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63143 # On Windows, we will need both .lib and .dll file. 63144 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63145 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63146 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63147 FOUND_FREETYPE=no 63148 fi 63149 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63150 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63151 # Found lib in isa dir, use that instead. 63152 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63153 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63154 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63155 fi 63156 fi 63157 fi 63158 63159 if test "x$FOUND_FREETYPE" = xyes; then 63160 63161 # Only process if variable expands to non-empty 63162 63163 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63165 63166 # Input might be given as Windows format, start by converting to 63167 # unix format. 63168 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63169 new_path=`$CYGPATH -u "$path"` 63170 63171 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63172 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63173 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63174 # "foo.exe" is OK but "foo" is an error. 63175 # 63176 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63177 # It is also a way to make sure we got the proper file name for the real test later on. 63178 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63179 if test "x$test_shortpath" = x; then 63180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63181 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63182 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63183 fi 63184 63185 # Call helper function which possibly converts this using DOS-style short mode. 63186 # If so, the updated path is stored in $new_path. 63187 63188 input_path="$new_path" 63189 # Check if we need to convert this using DOS-style short mode. If the path 63190 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63191 # take no chances and rewrite it. 63192 # Note: m4 eats our [], so we need to use [ and ] instead. 63193 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63194 if test "x$has_forbidden_chars" != x; then 63195 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63196 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63197 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63198 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63199 # Going to short mode and back again did indeed matter. Since short mode is 63200 # case insensitive, let's make it lowercase to improve readability. 63201 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63202 # Now convert it back to Unix-style (cygpath) 63203 input_path=`$CYGPATH -u "$shortmode_path"` 63204 new_path="$input_path" 63205 fi 63206 fi 63207 63208 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63209 if test "x$test_cygdrive_prefix" = x; then 63210 # As a simple fix, exclude /usr/bin since it's not a real path. 63211 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63212 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63213 # a path prefixed by /cygdrive for fixpath to work. 63214 new_path="$CYGWIN_ROOT_PATH$input_path" 63215 fi 63216 fi 63217 63218 63219 if test "x$path" != "x$new_path"; then 63220 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63221 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63222 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63223 fi 63224 63225 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63226 63227 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63228 has_colon=`$ECHO $path | $GREP ^.:` 63229 new_path="$path" 63230 if test "x$has_colon" = x; then 63231 # Not in mixed or Windows style, start by that. 63232 new_path=`cmd //c echo $path` 63233 fi 63234 63235 63236 input_path="$new_path" 63237 # Check if we need to convert this using DOS-style short mode. If the path 63238 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63239 # take no chances and rewrite it. 63240 # Note: m4 eats our [], so we need to use [ and ] instead. 63241 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63242 if test "x$has_forbidden_chars" != x; then 63243 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63244 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63245 fi 63246 63247 63248 windows_path="$new_path" 63249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63250 unix_path=`$CYGPATH -u "$windows_path"` 63251 new_path="$unix_path" 63252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63254 new_path="$unix_path" 63255 fi 63256 63257 if test "x$path" != "x$new_path"; then 63258 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63259 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63260 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63261 fi 63262 63263 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63264 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63265 63266 else 63267 # We're on a unix platform. Hooray! :) 63268 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63269 has_space=`$ECHO "$path" | $GREP " "` 63270 if test "x$has_space" != x; then 63271 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63272 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63273 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63274 fi 63275 63276 # Use eval to expand a potential ~ 63277 eval path="$path" 63278 if test ! -f "$path" && test ! -d "$path"; then 63279 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63280 fi 63281 63282 if test -d "$path"; then 63283 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63284 else 63285 dir="`$DIRNAME "$path"`" 63286 base="`$BASENAME "$path"`" 63287 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63288 fi 63289 fi 63290 fi 63291 63292 63293 # Only process if variable expands to non-empty 63294 63295 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63296 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63297 63298 # Input might be given as Windows format, start by converting to 63299 # unix format. 63300 path="$POTENTIAL_FREETYPE_LIB_PATH" 63301 new_path=`$CYGPATH -u "$path"` 63302 63303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63306 # "foo.exe" is OK but "foo" is an error. 63307 # 63308 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63309 # It is also a way to make sure we got the proper file name for the real test later on. 63310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63311 if test "x$test_shortpath" = x; then 63312 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63313 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63314 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63315 fi 63316 63317 # Call helper function which possibly converts this using DOS-style short mode. 63318 # If so, the updated path is stored in $new_path. 63319 63320 input_path="$new_path" 63321 # Check if we need to convert this using DOS-style short mode. If the path 63322 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63323 # take no chances and rewrite it. 63324 # Note: m4 eats our [], so we need to use [ and ] instead. 63325 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63326 if test "x$has_forbidden_chars" != x; then 63327 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63328 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63329 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63330 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63331 # Going to short mode and back again did indeed matter. Since short mode is 63332 # case insensitive, let's make it lowercase to improve readability. 63333 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63334 # Now convert it back to Unix-style (cygpath) 63335 input_path=`$CYGPATH -u "$shortmode_path"` 63336 new_path="$input_path" 63337 fi 63338 fi 63339 63340 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63341 if test "x$test_cygdrive_prefix" = x; then 63342 # As a simple fix, exclude /usr/bin since it's not a real path. 63343 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63344 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63345 # a path prefixed by /cygdrive for fixpath to work. 63346 new_path="$CYGWIN_ROOT_PATH$input_path" 63347 fi 63348 fi 63349 63350 63351 if test "x$path" != "x$new_path"; then 63352 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63353 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63354 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63355 fi 63356 63357 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63358 63359 path="$POTENTIAL_FREETYPE_LIB_PATH" 63360 has_colon=`$ECHO $path | $GREP ^.:` 63361 new_path="$path" 63362 if test "x$has_colon" = x; then 63363 # Not in mixed or Windows style, start by that. 63364 new_path=`cmd //c echo $path` 63365 fi 63366 63367 63368 input_path="$new_path" 63369 # Check if we need to convert this using DOS-style short mode. If the path 63370 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63371 # take no chances and rewrite it. 63372 # Note: m4 eats our [], so we need to use [ and ] instead. 63373 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63374 if test "x$has_forbidden_chars" != x; then 63375 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63376 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63377 fi 63378 63379 63380 windows_path="$new_path" 63381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63382 unix_path=`$CYGPATH -u "$windows_path"` 63383 new_path="$unix_path" 63384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63386 new_path="$unix_path" 63387 fi 63388 63389 if test "x$path" != "x$new_path"; then 63390 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63391 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63392 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63393 fi 63394 63395 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63396 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63397 63398 else 63399 # We're on a unix platform. Hooray! :) 63400 path="$POTENTIAL_FREETYPE_LIB_PATH" 63401 has_space=`$ECHO "$path" | $GREP " "` 63402 if test "x$has_space" != x; then 63403 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63404 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63405 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63406 fi 63407 63408 # Use eval to expand a potential ~ 63409 eval path="$path" 63410 if test ! -f "$path" && test ! -d "$path"; then 63411 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63412 fi 63413 63414 if test -d "$path"; then 63415 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63416 else 63417 dir="`$DIRNAME "$path"`" 63418 base="`$BASENAME "$path"`" 63419 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63420 fi 63421 fi 63422 fi 63423 63424 63425 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63427 $as_echo_n "checking for freetype includes... " >&6; } 63428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63429 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63430 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63432 $as_echo_n "checking for freetype libraries... " >&6; } 63433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63434 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63435 fi 63436 63437 fi 63438 63439 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 63440 if test "x$FOUND_FREETYPE" != xyes; then 63441 # Due to changes in OSX 10.11 XQuartz now installs to /opt/X11 63442 FREETYPE_BASE_DIR="$SYSROOT/opt/X11" 63443 63444 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63445 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 63446 METHOD="well-known location" 63447 63448 # Let's start with an optimistic view of the world :-) 63449 FOUND_FREETYPE=yes 63450 63451 # First look for the canonical freetype main include file ft2build.h. 63452 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63453 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63454 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63455 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63456 # Fail. 63457 FOUND_FREETYPE=no 63458 fi 63459 fi 63460 63461 if test "x$FOUND_FREETYPE" = xyes; then 63462 # Include file found, let's continue the sanity check. 63463 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63464 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63465 63466 # Reset to default value 63467 FREETYPE_BASE_NAME=freetype 63468 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63469 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63470 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63471 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63472 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63473 # for the .6 version explicitly. 63474 FREETYPE_BASE_NAME=freetype.6 63475 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63476 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63477 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63478 else 63479 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63480 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63481 FOUND_FREETYPE=no 63482 fi 63483 else 63484 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63485 # On Windows, we will need both .lib and .dll file. 63486 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63487 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63488 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63489 FOUND_FREETYPE=no 63490 fi 63491 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63492 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63493 # Found lib in isa dir, use that instead. 63494 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63496 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63497 fi 63498 fi 63499 fi 63500 63501 if test "x$FOUND_FREETYPE" = xyes; then 63502 63503 # Only process if variable expands to non-empty 63504 63505 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63507 63508 # Input might be given as Windows format, start by converting to 63509 # unix format. 63510 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63511 new_path=`$CYGPATH -u "$path"` 63512 63513 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63514 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63515 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63516 # "foo.exe" is OK but "foo" is an error. 63517 # 63518 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63519 # It is also a way to make sure we got the proper file name for the real test later on. 63520 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63521 if test "x$test_shortpath" = x; then 63522 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63523 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63524 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63525 fi 63526 63527 # Call helper function which possibly converts this using DOS-style short mode. 63528 # If so, the updated path is stored in $new_path. 63529 63530 input_path="$new_path" 63531 # Check if we need to convert this using DOS-style short mode. If the path 63532 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63533 # take no chances and rewrite it. 63534 # Note: m4 eats our [], so we need to use [ and ] instead. 63535 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63536 if test "x$has_forbidden_chars" != x; then 63537 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63538 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63539 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63540 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63541 # Going to short mode and back again did indeed matter. Since short mode is 63542 # case insensitive, let's make it lowercase to improve readability. 63543 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63544 # Now convert it back to Unix-style (cygpath) 63545 input_path=`$CYGPATH -u "$shortmode_path"` 63546 new_path="$input_path" 63547 fi 63548 fi 63549 63550 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63551 if test "x$test_cygdrive_prefix" = x; then 63552 # As a simple fix, exclude /usr/bin since it's not a real path. 63553 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63554 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63555 # a path prefixed by /cygdrive for fixpath to work. 63556 new_path="$CYGWIN_ROOT_PATH$input_path" 63557 fi 63558 fi 63559 63560 63561 if test "x$path" != "x$new_path"; then 63562 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63563 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63564 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63565 fi 63566 63567 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63568 63569 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63570 has_colon=`$ECHO $path | $GREP ^.:` 63571 new_path="$path" 63572 if test "x$has_colon" = x; then 63573 # Not in mixed or Windows style, start by that. 63574 new_path=`cmd //c echo $path` 63575 fi 63576 63577 63578 input_path="$new_path" 63579 # Check if we need to convert this using DOS-style short mode. If the path 63580 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63581 # take no chances and rewrite it. 63582 # Note: m4 eats our [], so we need to use [ and ] instead. 63583 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63584 if test "x$has_forbidden_chars" != x; then 63585 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63586 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63587 fi 63588 63589 63590 windows_path="$new_path" 63591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63592 unix_path=`$CYGPATH -u "$windows_path"` 63593 new_path="$unix_path" 63594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63595 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63596 new_path="$unix_path" 63597 fi 63598 63599 if test "x$path" != "x$new_path"; then 63600 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63601 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63602 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63603 fi 63604 63605 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63606 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63607 63608 else 63609 # We're on a unix platform. Hooray! :) 63610 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63611 has_space=`$ECHO "$path" | $GREP " "` 63612 if test "x$has_space" != x; then 63613 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63614 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63615 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63616 fi 63617 63618 # Use eval to expand a potential ~ 63619 eval path="$path" 63620 if test ! -f "$path" && test ! -d "$path"; then 63621 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63622 fi 63623 63624 if test -d "$path"; then 63625 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63626 else 63627 dir="`$DIRNAME "$path"`" 63628 base="`$BASENAME "$path"`" 63629 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63630 fi 63631 fi 63632 fi 63633 63634 63635 # Only process if variable expands to non-empty 63636 63637 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63639 63640 # Input might be given as Windows format, start by converting to 63641 # unix format. 63642 path="$POTENTIAL_FREETYPE_LIB_PATH" 63643 new_path=`$CYGPATH -u "$path"` 63644 63645 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63646 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63647 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63648 # "foo.exe" is OK but "foo" is an error. 63649 # 63650 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63651 # It is also a way to make sure we got the proper file name for the real test later on. 63652 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63653 if test "x$test_shortpath" = x; then 63654 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63655 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63656 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63657 fi 63658 63659 # Call helper function which possibly converts this using DOS-style short mode. 63660 # If so, the updated path is stored in $new_path. 63661 63662 input_path="$new_path" 63663 # Check if we need to convert this using DOS-style short mode. If the path 63664 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63665 # take no chances and rewrite it. 63666 # Note: m4 eats our [], so we need to use [ and ] instead. 63667 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63668 if test "x$has_forbidden_chars" != x; then 63669 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63670 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63671 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63672 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63673 # Going to short mode and back again did indeed matter. Since short mode is 63674 # case insensitive, let's make it lowercase to improve readability. 63675 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63676 # Now convert it back to Unix-style (cygpath) 63677 input_path=`$CYGPATH -u "$shortmode_path"` 63678 new_path="$input_path" 63679 fi 63680 fi 63681 63682 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63683 if test "x$test_cygdrive_prefix" = x; then 63684 # As a simple fix, exclude /usr/bin since it's not a real path. 63685 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63686 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63687 # a path prefixed by /cygdrive for fixpath to work. 63688 new_path="$CYGWIN_ROOT_PATH$input_path" 63689 fi 63690 fi 63691 63692 63693 if test "x$path" != "x$new_path"; then 63694 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63695 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63696 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63697 fi 63698 63699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63700 63701 path="$POTENTIAL_FREETYPE_LIB_PATH" 63702 has_colon=`$ECHO $path | $GREP ^.:` 63703 new_path="$path" 63704 if test "x$has_colon" = x; then 63705 # Not in mixed or Windows style, start by that. 63706 new_path=`cmd //c echo $path` 63707 fi 63708 63709 63710 input_path="$new_path" 63711 # Check if we need to convert this using DOS-style short mode. If the path 63712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63713 # take no chances and rewrite it. 63714 # Note: m4 eats our [], so we need to use [ and ] instead. 63715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63716 if test "x$has_forbidden_chars" != x; then 63717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63718 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63719 fi 63720 63721 63722 windows_path="$new_path" 63723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63724 unix_path=`$CYGPATH -u "$windows_path"` 63725 new_path="$unix_path" 63726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63728 new_path="$unix_path" 63729 fi 63730 63731 if test "x$path" != "x$new_path"; then 63732 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 63733 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 63734 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 63735 fi 63736 63737 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63738 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63739 63740 else 63741 # We're on a unix platform. Hooray! :) 63742 path="$POTENTIAL_FREETYPE_LIB_PATH" 63743 has_space=`$ECHO "$path" | $GREP " "` 63744 if test "x$has_space" != x; then 63745 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63746 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63747 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63748 fi 63749 63750 # Use eval to expand a potential ~ 63751 eval path="$path" 63752 if test ! -f "$path" && test ! -d "$path"; then 63753 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63754 fi 63755 63756 if test -d "$path"; then 63757 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 63758 else 63759 dir="`$DIRNAME "$path"`" 63760 base="`$BASENAME "$path"`" 63761 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63762 fi 63763 fi 63764 fi 63765 63766 63767 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 63769 $as_echo_n "checking for freetype includes... " >&6; } 63770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 63771 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 63772 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 63773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 63774 $as_echo_n "checking for freetype libraries... " >&6; } 63775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 63776 $as_echo "$FREETYPE_LIB_PATH" >&6; } 63777 fi 63778 63779 fi 63780 fi 63781 63782 if test "x$FOUND_FREETYPE" != xyes; then 63783 FREETYPE_BASE_DIR="$SYSROOT/usr" 63784 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 63785 63786 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 63787 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/$OPENJDK_TARGET_CPU-linux-gnu" 63788 METHOD="well-known location" 63789 63790 # Let's start with an optimistic view of the world :-) 63791 FOUND_FREETYPE=yes 63792 63793 # First look for the canonical freetype main include file ft2build.h. 63794 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63795 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 63796 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 63797 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 63798 # Fail. 63799 FOUND_FREETYPE=no 63800 fi 63801 fi 63802 63803 if test "x$FOUND_FREETYPE" = xyes; then 63804 # Include file found, let's continue the sanity check. 63805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 63806 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 63807 63808 # Reset to default value 63809 FREETYPE_BASE_NAME=freetype 63810 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63811 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 63812 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 63813 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 63814 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 63815 # for the .6 version explicitly. 63816 FREETYPE_BASE_NAME=freetype.6 63817 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 63818 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 63819 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 63820 else 63821 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 63822 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 63823 FOUND_FREETYPE=no 63824 fi 63825 else 63826 if test "x$OPENJDK_TARGET_OS" = xwindows; then 63827 # On Windows, we will need both .lib and .dll file. 63828 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 63829 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 63830 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 63831 FOUND_FREETYPE=no 63832 fi 63833 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 63834 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 63835 # Found lib in isa dir, use that instead. 63836 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 63837 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 63838 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 63839 fi 63840 fi 63841 fi 63842 63843 if test "x$FOUND_FREETYPE" = xyes; then 63844 63845 # Only process if variable expands to non-empty 63846 63847 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 63848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63849 63850 # Input might be given as Windows format, start by converting to 63851 # unix format. 63852 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63853 new_path=`$CYGPATH -u "$path"` 63854 63855 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63856 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63857 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63858 # "foo.exe" is OK but "foo" is an error. 63859 # 63860 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63861 # It is also a way to make sure we got the proper file name for the real test later on. 63862 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63863 if test "x$test_shortpath" = x; then 63864 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63865 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63866 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 63867 fi 63868 63869 # Call helper function which possibly converts this using DOS-style short mode. 63870 # If so, the updated path is stored in $new_path. 63871 63872 input_path="$new_path" 63873 # Check if we need to convert this using DOS-style short mode. If the path 63874 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63875 # take no chances and rewrite it. 63876 # Note: m4 eats our [], so we need to use [ and ] instead. 63877 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 63878 if test "x$has_forbidden_chars" != x; then 63879 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63880 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 63881 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 63882 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 63883 # Going to short mode and back again did indeed matter. Since short mode is 63884 # case insensitive, let's make it lowercase to improve readability. 63885 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63886 # Now convert it back to Unix-style (cygpath) 63887 input_path=`$CYGPATH -u "$shortmode_path"` 63888 new_path="$input_path" 63889 fi 63890 fi 63891 63892 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 63893 if test "x$test_cygdrive_prefix" = x; then 63894 # As a simple fix, exclude /usr/bin since it's not a real path. 63895 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 63896 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 63897 # a path prefixed by /cygdrive for fixpath to work. 63898 new_path="$CYGWIN_ROOT_PATH$input_path" 63899 fi 63900 fi 63901 63902 63903 if test "x$path" != "x$new_path"; then 63904 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63905 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63906 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63907 fi 63908 63909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63910 63911 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63912 has_colon=`$ECHO $path | $GREP ^.:` 63913 new_path="$path" 63914 if test "x$has_colon" = x; then 63915 # Not in mixed or Windows style, start by that. 63916 new_path=`cmd //c echo $path` 63917 fi 63918 63919 63920 input_path="$new_path" 63921 # Check if we need to convert this using DOS-style short mode. If the path 63922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 63923 # take no chances and rewrite it. 63924 # Note: m4 eats our [], so we need to use [ and ] instead. 63925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 63926 if test "x$has_forbidden_chars" != x; then 63927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 63928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 63929 fi 63930 63931 63932 windows_path="$new_path" 63933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63934 unix_path=`$CYGPATH -u "$windows_path"` 63935 new_path="$unix_path" 63936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 63937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 63938 new_path="$unix_path" 63939 fi 63940 63941 if test "x$path" != "x$new_path"; then 63942 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 63943 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 63944 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 63945 fi 63946 63947 # Save the first 10 bytes of this path to the storage, so fixpath can work. 63948 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 63949 63950 else 63951 # We're on a unix platform. Hooray! :) 63952 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 63953 has_space=`$ECHO "$path" | $GREP " "` 63954 if test "x$has_space" != x; then 63955 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 63956 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 63957 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 63958 fi 63959 63960 # Use eval to expand a potential ~ 63961 eval path="$path" 63962 if test ! -f "$path" && test ! -d "$path"; then 63963 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 63964 fi 63965 63966 if test -d "$path"; then 63967 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 63968 else 63969 dir="`$DIRNAME "$path"`" 63970 base="`$BASENAME "$path"`" 63971 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 63972 fi 63973 fi 63974 fi 63975 63976 63977 # Only process if variable expands to non-empty 63978 63979 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 63980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 63981 63982 # Input might be given as Windows format, start by converting to 63983 # unix format. 63984 path="$POTENTIAL_FREETYPE_LIB_PATH" 63985 new_path=`$CYGPATH -u "$path"` 63986 63987 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 63988 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 63989 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 63990 # "foo.exe" is OK but "foo" is an error. 63991 # 63992 # This test is therefore slightly more accurate than "test -f" to check for file precense. 63993 # It is also a way to make sure we got the proper file name for the real test later on. 63994 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 63995 if test "x$test_shortpath" = x; then 63996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 63997 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 63998 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 63999 fi 64000 64001 # Call helper function which possibly converts this using DOS-style short mode. 64002 # If so, the updated path is stored in $new_path. 64003 64004 input_path="$new_path" 64005 # Check if we need to convert this using DOS-style short mode. If the path 64006 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64007 # take no chances and rewrite it. 64008 # Note: m4 eats our [], so we need to use [ and ] instead. 64009 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64010 if test "x$has_forbidden_chars" != x; then 64011 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64012 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64013 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64014 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64015 # Going to short mode and back again did indeed matter. Since short mode is 64016 # case insensitive, let's make it lowercase to improve readability. 64017 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64018 # Now convert it back to Unix-style (cygpath) 64019 input_path=`$CYGPATH -u "$shortmode_path"` 64020 new_path="$input_path" 64021 fi 64022 fi 64023 64024 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64025 if test "x$test_cygdrive_prefix" = x; then 64026 # As a simple fix, exclude /usr/bin since it's not a real path. 64027 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64028 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64029 # a path prefixed by /cygdrive for fixpath to work. 64030 new_path="$CYGWIN_ROOT_PATH$input_path" 64031 fi 64032 fi 64033 64034 64035 if test "x$path" != "x$new_path"; then 64036 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64037 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64038 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64039 fi 64040 64041 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64042 64043 path="$POTENTIAL_FREETYPE_LIB_PATH" 64044 has_colon=`$ECHO $path | $GREP ^.:` 64045 new_path="$path" 64046 if test "x$has_colon" = x; then 64047 # Not in mixed or Windows style, start by that. 64048 new_path=`cmd //c echo $path` 64049 fi 64050 64051 64052 input_path="$new_path" 64053 # Check if we need to convert this using DOS-style short mode. If the path 64054 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64055 # take no chances and rewrite it. 64056 # Note: m4 eats our [], so we need to use [ and ] instead. 64057 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64058 if test "x$has_forbidden_chars" != x; then 64059 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64060 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64061 fi 64062 64063 64064 windows_path="$new_path" 64065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64066 unix_path=`$CYGPATH -u "$windows_path"` 64067 new_path="$unix_path" 64068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64069 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64070 new_path="$unix_path" 64071 fi 64072 64073 if test "x$path" != "x$new_path"; then 64074 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64076 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64077 fi 64078 64079 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64080 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64081 64082 else 64083 # We're on a unix platform. Hooray! :) 64084 path="$POTENTIAL_FREETYPE_LIB_PATH" 64085 has_space=`$ECHO "$path" | $GREP " "` 64086 if test "x$has_space" != x; then 64087 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64088 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64089 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64090 fi 64091 64092 # Use eval to expand a potential ~ 64093 eval path="$path" 64094 if test ! -f "$path" && test ! -d "$path"; then 64095 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64096 fi 64097 64098 if test -d "$path"; then 64099 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64100 else 64101 dir="`$DIRNAME "$path"`" 64102 base="`$BASENAME "$path"`" 64103 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64104 fi 64105 fi 64106 fi 64107 64108 64109 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64111 $as_echo_n "checking for freetype includes... " >&6; } 64112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64113 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64114 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64116 $as_echo_n "checking for freetype libraries... " >&6; } 64117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64118 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64119 fi 64120 64121 else 64122 64123 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64124 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 64125 METHOD="well-known location" 64126 64127 # Let's start with an optimistic view of the world :-) 64128 FOUND_FREETYPE=yes 64129 64130 # First look for the canonical freetype main include file ft2build.h. 64131 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64132 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64133 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64134 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64135 # Fail. 64136 FOUND_FREETYPE=no 64137 fi 64138 fi 64139 64140 if test "x$FOUND_FREETYPE" = xyes; then 64141 # Include file found, let's continue the sanity check. 64142 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64143 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64144 64145 # Reset to default value 64146 FREETYPE_BASE_NAME=freetype 64147 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64148 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64149 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64150 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64151 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64152 # for the .6 version explicitly. 64153 FREETYPE_BASE_NAME=freetype.6 64154 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64155 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64156 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64157 else 64158 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64159 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64160 FOUND_FREETYPE=no 64161 fi 64162 else 64163 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64164 # On Windows, we will need both .lib and .dll file. 64165 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64166 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64167 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64168 FOUND_FREETYPE=no 64169 fi 64170 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64171 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64172 # Found lib in isa dir, use that instead. 64173 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64175 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64176 fi 64177 fi 64178 fi 64179 64180 if test "x$FOUND_FREETYPE" = xyes; then 64181 64182 # Only process if variable expands to non-empty 64183 64184 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64186 64187 # Input might be given as Windows format, start by converting to 64188 # unix format. 64189 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64190 new_path=`$CYGPATH -u "$path"` 64191 64192 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64193 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64194 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64195 # "foo.exe" is OK but "foo" is an error. 64196 # 64197 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64198 # It is also a way to make sure we got the proper file name for the real test later on. 64199 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64200 if test "x$test_shortpath" = x; then 64201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64202 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64203 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64204 fi 64205 64206 # Call helper function which possibly converts this using DOS-style short mode. 64207 # If so, the updated path is stored in $new_path. 64208 64209 input_path="$new_path" 64210 # Check if we need to convert this using DOS-style short mode. If the path 64211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64212 # take no chances and rewrite it. 64213 # Note: m4 eats our [], so we need to use [ and ] instead. 64214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64215 if test "x$has_forbidden_chars" != x; then 64216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64220 # Going to short mode and back again did indeed matter. Since short mode is 64221 # case insensitive, let's make it lowercase to improve readability. 64222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64223 # Now convert it back to Unix-style (cygpath) 64224 input_path=`$CYGPATH -u "$shortmode_path"` 64225 new_path="$input_path" 64226 fi 64227 fi 64228 64229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64230 if test "x$test_cygdrive_prefix" = x; then 64231 # As a simple fix, exclude /usr/bin since it's not a real path. 64232 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64234 # a path prefixed by /cygdrive for fixpath to work. 64235 new_path="$CYGWIN_ROOT_PATH$input_path" 64236 fi 64237 fi 64238 64239 64240 if test "x$path" != "x$new_path"; then 64241 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64242 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64243 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64244 fi 64245 64246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64247 64248 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64249 has_colon=`$ECHO $path | $GREP ^.:` 64250 new_path="$path" 64251 if test "x$has_colon" = x; then 64252 # Not in mixed or Windows style, start by that. 64253 new_path=`cmd //c echo $path` 64254 fi 64255 64256 64257 input_path="$new_path" 64258 # Check if we need to convert this using DOS-style short mode. If the path 64259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64260 # take no chances and rewrite it. 64261 # Note: m4 eats our [], so we need to use [ and ] instead. 64262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64263 if test "x$has_forbidden_chars" != x; then 64264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64265 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64266 fi 64267 64268 64269 windows_path="$new_path" 64270 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64271 unix_path=`$CYGPATH -u "$windows_path"` 64272 new_path="$unix_path" 64273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64274 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64275 new_path="$unix_path" 64276 fi 64277 64278 if test "x$path" != "x$new_path"; then 64279 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64280 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64281 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64282 fi 64283 64284 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64285 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64286 64287 else 64288 # We're on a unix platform. Hooray! :) 64289 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64290 has_space=`$ECHO "$path" | $GREP " "` 64291 if test "x$has_space" != x; then 64292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64293 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64294 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64295 fi 64296 64297 # Use eval to expand a potential ~ 64298 eval path="$path" 64299 if test ! -f "$path" && test ! -d "$path"; then 64300 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64301 fi 64302 64303 if test -d "$path"; then 64304 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64305 else 64306 dir="`$DIRNAME "$path"`" 64307 base="`$BASENAME "$path"`" 64308 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64309 fi 64310 fi 64311 fi 64312 64313 64314 # Only process if variable expands to non-empty 64315 64316 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64318 64319 # Input might be given as Windows format, start by converting to 64320 # unix format. 64321 path="$POTENTIAL_FREETYPE_LIB_PATH" 64322 new_path=`$CYGPATH -u "$path"` 64323 64324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64327 # "foo.exe" is OK but "foo" is an error. 64328 # 64329 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64330 # It is also a way to make sure we got the proper file name for the real test later on. 64331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64332 if test "x$test_shortpath" = x; then 64333 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64334 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64335 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64336 fi 64337 64338 # Call helper function which possibly converts this using DOS-style short mode. 64339 # If so, the updated path is stored in $new_path. 64340 64341 input_path="$new_path" 64342 # Check if we need to convert this using DOS-style short mode. If the path 64343 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64344 # take no chances and rewrite it. 64345 # Note: m4 eats our [], so we need to use [ and ] instead. 64346 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64347 if test "x$has_forbidden_chars" != x; then 64348 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64349 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64350 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64351 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64352 # Going to short mode and back again did indeed matter. Since short mode is 64353 # case insensitive, let's make it lowercase to improve readability. 64354 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64355 # Now convert it back to Unix-style (cygpath) 64356 input_path=`$CYGPATH -u "$shortmode_path"` 64357 new_path="$input_path" 64358 fi 64359 fi 64360 64361 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64362 if test "x$test_cygdrive_prefix" = x; then 64363 # As a simple fix, exclude /usr/bin since it's not a real path. 64364 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64365 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64366 # a path prefixed by /cygdrive for fixpath to work. 64367 new_path="$CYGWIN_ROOT_PATH$input_path" 64368 fi 64369 fi 64370 64371 64372 if test "x$path" != "x$new_path"; then 64373 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64375 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64376 fi 64377 64378 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64379 64380 path="$POTENTIAL_FREETYPE_LIB_PATH" 64381 has_colon=`$ECHO $path | $GREP ^.:` 64382 new_path="$path" 64383 if test "x$has_colon" = x; then 64384 # Not in mixed or Windows style, start by that. 64385 new_path=`cmd //c echo $path` 64386 fi 64387 64388 64389 input_path="$new_path" 64390 # Check if we need to convert this using DOS-style short mode. If the path 64391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64392 # take no chances and rewrite it. 64393 # Note: m4 eats our [], so we need to use [ and ] instead. 64394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64395 if test "x$has_forbidden_chars" != x; then 64396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64397 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64398 fi 64399 64400 64401 windows_path="$new_path" 64402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64403 unix_path=`$CYGPATH -u "$windows_path"` 64404 new_path="$unix_path" 64405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64407 new_path="$unix_path" 64408 fi 64409 64410 if test "x$path" != "x$new_path"; then 64411 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64412 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64413 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64414 fi 64415 64416 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64417 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64418 64419 else 64420 # We're on a unix platform. Hooray! :) 64421 path="$POTENTIAL_FREETYPE_LIB_PATH" 64422 has_space=`$ECHO "$path" | $GREP " "` 64423 if test "x$has_space" != x; then 64424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64425 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64426 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64427 fi 64428 64429 # Use eval to expand a potential ~ 64430 eval path="$path" 64431 if test ! -f "$path" && test ! -d "$path"; then 64432 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64433 fi 64434 64435 if test -d "$path"; then 64436 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64437 else 64438 dir="`$DIRNAME "$path"`" 64439 base="`$BASENAME "$path"`" 64440 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64441 fi 64442 fi 64443 fi 64444 64445 64446 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64448 $as_echo_n "checking for freetype includes... " >&6; } 64449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64450 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64451 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64453 $as_echo_n "checking for freetype libraries... " >&6; } 64454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64455 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64456 fi 64457 64458 if test "x$FOUND_FREETYPE" != xyes; then 64459 64460 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 64461 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 64462 METHOD="well-known location" 64463 64464 # Let's start with an optimistic view of the world :-) 64465 FOUND_FREETYPE=yes 64466 64467 # First look for the canonical freetype main include file ft2build.h. 64468 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64469 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 64470 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 64471 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 64472 # Fail. 64473 FOUND_FREETYPE=no 64474 fi 64475 fi 64476 64477 if test "x$FOUND_FREETYPE" = xyes; then 64478 # Include file found, let's continue the sanity check. 64479 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 64480 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 64481 64482 # Reset to default value 64483 FREETYPE_BASE_NAME=freetype 64484 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64485 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 64486 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 64487 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 64488 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 64489 # for the .6 version explicitly. 64490 FREETYPE_BASE_NAME=freetype.6 64491 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 64492 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 64493 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 64494 else 64495 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 64496 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 64497 FOUND_FREETYPE=no 64498 fi 64499 else 64500 if test "x$OPENJDK_TARGET_OS" = xwindows; then 64501 # On Windows, we will need both .lib and .dll file. 64502 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 64503 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 64504 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 64505 FOUND_FREETYPE=no 64506 fi 64507 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 64508 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 64509 # Found lib in isa dir, use that instead. 64510 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 64511 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 64512 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 64513 fi 64514 fi 64515 fi 64516 64517 if test "x$FOUND_FREETYPE" = xyes; then 64518 64519 # Only process if variable expands to non-empty 64520 64521 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 64522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64523 64524 # Input might be given as Windows format, start by converting to 64525 # unix format. 64526 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64527 new_path=`$CYGPATH -u "$path"` 64528 64529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64532 # "foo.exe" is OK but "foo" is an error. 64533 # 64534 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64535 # It is also a way to make sure we got the proper file name for the real test later on. 64536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64537 if test "x$test_shortpath" = x; then 64538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64539 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64540 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 64541 fi 64542 64543 # Call helper function which possibly converts this using DOS-style short mode. 64544 # If so, the updated path is stored in $new_path. 64545 64546 input_path="$new_path" 64547 # Check if we need to convert this using DOS-style short mode. If the path 64548 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64549 # take no chances and rewrite it. 64550 # Note: m4 eats our [], so we need to use [ and ] instead. 64551 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64552 if test "x$has_forbidden_chars" != x; then 64553 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64554 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64555 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64556 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64557 # Going to short mode and back again did indeed matter. Since short mode is 64558 # case insensitive, let's make it lowercase to improve readability. 64559 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64560 # Now convert it back to Unix-style (cygpath) 64561 input_path=`$CYGPATH -u "$shortmode_path"` 64562 new_path="$input_path" 64563 fi 64564 fi 64565 64566 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64567 if test "x$test_cygdrive_prefix" = x; then 64568 # As a simple fix, exclude /usr/bin since it's not a real path. 64569 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64570 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64571 # a path prefixed by /cygdrive for fixpath to work. 64572 new_path="$CYGWIN_ROOT_PATH$input_path" 64573 fi 64574 fi 64575 64576 64577 if test "x$path" != "x$new_path"; then 64578 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64579 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64580 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64581 fi 64582 64583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64584 64585 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64586 has_colon=`$ECHO $path | $GREP ^.:` 64587 new_path="$path" 64588 if test "x$has_colon" = x; then 64589 # Not in mixed or Windows style, start by that. 64590 new_path=`cmd //c echo $path` 64591 fi 64592 64593 64594 input_path="$new_path" 64595 # Check if we need to convert this using DOS-style short mode. If the path 64596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64597 # take no chances and rewrite it. 64598 # Note: m4 eats our [], so we need to use [ and ] instead. 64599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64600 if test "x$has_forbidden_chars" != x; then 64601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64602 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64603 fi 64604 64605 64606 windows_path="$new_path" 64607 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64608 unix_path=`$CYGPATH -u "$windows_path"` 64609 new_path="$unix_path" 64610 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64611 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64612 new_path="$unix_path" 64613 fi 64614 64615 if test "x$path" != "x$new_path"; then 64616 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 64617 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64618 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64619 fi 64620 64621 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64622 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64623 64624 else 64625 # We're on a unix platform. Hooray! :) 64626 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64627 has_space=`$ECHO "$path" | $GREP " "` 64628 if test "x$has_space" != x; then 64629 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64630 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64631 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64632 fi 64633 64634 # Use eval to expand a potential ~ 64635 eval path="$path" 64636 if test ! -f "$path" && test ! -d "$path"; then 64637 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64638 fi 64639 64640 if test -d "$path"; then 64641 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64642 else 64643 dir="`$DIRNAME "$path"`" 64644 base="`$BASENAME "$path"`" 64645 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64646 fi 64647 fi 64648 fi 64649 64650 64651 # Only process if variable expands to non-empty 64652 64653 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 64654 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64655 64656 # Input might be given as Windows format, start by converting to 64657 # unix format. 64658 path="$POTENTIAL_FREETYPE_LIB_PATH" 64659 new_path=`$CYGPATH -u "$path"` 64660 64661 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64662 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64663 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64664 # "foo.exe" is OK but "foo" is an error. 64665 # 64666 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64667 # It is also a way to make sure we got the proper file name for the real test later on. 64668 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64669 if test "x$test_shortpath" = x; then 64670 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64671 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64672 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 64673 fi 64674 64675 # Call helper function which possibly converts this using DOS-style short mode. 64676 # If so, the updated path is stored in $new_path. 64677 64678 input_path="$new_path" 64679 # Check if we need to convert this using DOS-style short mode. If the path 64680 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64681 # take no chances and rewrite it. 64682 # Note: m4 eats our [], so we need to use [ and ] instead. 64683 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64684 if test "x$has_forbidden_chars" != x; then 64685 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64686 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64687 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64688 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64689 # Going to short mode and back again did indeed matter. Since short mode is 64690 # case insensitive, let's make it lowercase to improve readability. 64691 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64692 # Now convert it back to Unix-style (cygpath) 64693 input_path=`$CYGPATH -u "$shortmode_path"` 64694 new_path="$input_path" 64695 fi 64696 fi 64697 64698 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64699 if test "x$test_cygdrive_prefix" = x; then 64700 # As a simple fix, exclude /usr/bin since it's not a real path. 64701 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64702 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64703 # a path prefixed by /cygdrive for fixpath to work. 64704 new_path="$CYGWIN_ROOT_PATH$input_path" 64705 fi 64706 fi 64707 64708 64709 if test "x$path" != "x$new_path"; then 64710 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64711 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64712 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64713 fi 64714 64715 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64716 64717 path="$POTENTIAL_FREETYPE_LIB_PATH" 64718 has_colon=`$ECHO $path | $GREP ^.:` 64719 new_path="$path" 64720 if test "x$has_colon" = x; then 64721 # Not in mixed or Windows style, start by that. 64722 new_path=`cmd //c echo $path` 64723 fi 64724 64725 64726 input_path="$new_path" 64727 # Check if we need to convert this using DOS-style short mode. If the path 64728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64729 # take no chances and rewrite it. 64730 # Note: m4 eats our [], so we need to use [ and ] instead. 64731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64732 if test "x$has_forbidden_chars" != x; then 64733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64734 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64735 fi 64736 64737 64738 windows_path="$new_path" 64739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64740 unix_path=`$CYGPATH -u "$windows_path"` 64741 new_path="$unix_path" 64742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64743 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64744 new_path="$unix_path" 64745 fi 64746 64747 if test "x$path" != "x$new_path"; then 64748 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 64749 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 64750 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 64751 fi 64752 64753 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64754 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64755 64756 else 64757 # We're on a unix platform. Hooray! :) 64758 path="$POTENTIAL_FREETYPE_LIB_PATH" 64759 has_space=`$ECHO "$path" | $GREP " "` 64760 if test "x$has_space" != x; then 64761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 64762 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 64763 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64764 fi 64765 64766 # Use eval to expand a potential ~ 64767 eval path="$path" 64768 if test ! -f "$path" && test ! -d "$path"; then 64769 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64770 fi 64771 64772 if test -d "$path"; then 64773 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 64774 else 64775 dir="`$DIRNAME "$path"`" 64776 base="`$BASENAME "$path"`" 64777 POTENTIAL_FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64778 fi 64779 fi 64780 fi 64781 64782 64783 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 64784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 64785 $as_echo_n "checking for freetype includes... " >&6; } 64786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 64787 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 64788 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 64789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 64790 $as_echo_n "checking for freetype libraries... " >&6; } 64791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 64792 $as_echo "$FREETYPE_LIB_PATH" >&6; } 64793 fi 64794 64795 fi 64796 fi 64797 fi 64798 fi 64799 fi # end check in well-known locations 64800 64801 if test "x$FOUND_FREETYPE" != xyes; then 64802 64803 # Print a helpful message on how to acquire the necessary build dependency. 64804 # freetype is the help tag: freetype, cups, alsa etc 64805 MISSING_DEPENDENCY=freetype 64806 64807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64808 cygwin_help $MISSING_DEPENDENCY 64809 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64810 msys_help $MISSING_DEPENDENCY 64811 else 64812 PKGHANDLER_COMMAND= 64813 64814 case $PKGHANDLER in 64815 apt-get) 64816 apt_help $MISSING_DEPENDENCY ;; 64817 yum) 64818 yum_help $MISSING_DEPENDENCY ;; 64819 brew) 64820 brew_help $MISSING_DEPENDENCY ;; 64821 port) 64822 port_help $MISSING_DEPENDENCY ;; 64823 pkgutil) 64824 pkgutil_help $MISSING_DEPENDENCY ;; 64825 pkgadd) 64826 pkgadd_help $MISSING_DEPENDENCY ;; 64827 esac 64828 64829 if test "x$PKGHANDLER_COMMAND" != x; then 64830 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 64831 fi 64832 fi 64833 64834 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 64835 fi 64836 fi # end user specified settings 64837 64838 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 64839 if test "x$FREETYPE_CFLAGS" = x; then 64840 64841 # Only process if variable expands to non-empty 64842 64843 if test "x$FREETYPE_INCLUDE_PATH" != x; then 64844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64845 64846 # Input might be given as Windows format, start by converting to 64847 # unix format. 64848 path="$FREETYPE_INCLUDE_PATH" 64849 new_path=`$CYGPATH -u "$path"` 64850 64851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64854 # "foo.exe" is OK but "foo" is an error. 64855 # 64856 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64857 # It is also a way to make sure we got the proper file name for the real test later on. 64858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64859 if test "x$test_shortpath" = x; then 64860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64861 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64862 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 64863 fi 64864 64865 # Call helper function which possibly converts this using DOS-style short mode. 64866 # If so, the updated path is stored in $new_path. 64867 64868 input_path="$new_path" 64869 # Check if we need to convert this using DOS-style short mode. If the path 64870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64871 # take no chances and rewrite it. 64872 # Note: m4 eats our [], so we need to use [ and ] instead. 64873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 64874 if test "x$has_forbidden_chars" != x; then 64875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 64877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 64878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 64879 # Going to short mode and back again did indeed matter. Since short mode is 64880 # case insensitive, let's make it lowercase to improve readability. 64881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64882 # Now convert it back to Unix-style (cygpath) 64883 input_path=`$CYGPATH -u "$shortmode_path"` 64884 new_path="$input_path" 64885 fi 64886 fi 64887 64888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 64889 if test "x$test_cygdrive_prefix" = x; then 64890 # As a simple fix, exclude /usr/bin since it's not a real path. 64891 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 64892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 64893 # a path prefixed by /cygdrive for fixpath to work. 64894 new_path="$CYGWIN_ROOT_PATH$input_path" 64895 fi 64896 fi 64897 64898 64899 if test "x$path" != "x$new_path"; then 64900 FREETYPE_INCLUDE_PATH="$new_path" 64901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64902 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64903 fi 64904 64905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64906 64907 path="$FREETYPE_INCLUDE_PATH" 64908 has_colon=`$ECHO $path | $GREP ^.:` 64909 new_path="$path" 64910 if test "x$has_colon" = x; then 64911 # Not in mixed or Windows style, start by that. 64912 new_path=`cmd //c echo $path` 64913 fi 64914 64915 64916 input_path="$new_path" 64917 # Check if we need to convert this using DOS-style short mode. If the path 64918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 64919 # take no chances and rewrite it. 64920 # Note: m4 eats our [], so we need to use [ and ] instead. 64921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 64922 if test "x$has_forbidden_chars" != x; then 64923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 64924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 64925 fi 64926 64927 64928 windows_path="$new_path" 64929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64930 unix_path=`$CYGPATH -u "$windows_path"` 64931 new_path="$unix_path" 64932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 64933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 64934 new_path="$unix_path" 64935 fi 64936 64937 if test "x$path" != "x$new_path"; then 64938 FREETYPE_INCLUDE_PATH="$new_path" 64939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 64940 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 64941 fi 64942 64943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 64944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 64945 64946 else 64947 # We're on a unix platform. Hooray! :) 64948 path="$FREETYPE_INCLUDE_PATH" 64949 has_space=`$ECHO "$path" | $GREP " "` 64950 if test "x$has_space" != x; then 64951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 64952 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 64953 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 64954 fi 64955 64956 # Use eval to expand a potential ~ 64957 eval path="$path" 64958 if test ! -f "$path" && test ! -d "$path"; then 64959 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 64960 fi 64961 64962 if test -d "$path"; then 64963 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 64964 else 64965 dir="`$DIRNAME "$path"`" 64966 base="`$BASENAME "$path"`" 64967 FREETYPE_INCLUDE_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 64968 fi 64969 fi 64970 fi 64971 64972 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 64973 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 64974 else 64975 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 64976 fi 64977 fi 64978 64979 if test "x$FREETYPE_LIBS" = x; then 64980 64981 # Only process if variable expands to non-empty 64982 64983 if test "x$FREETYPE_LIB_PATH" != x; then 64984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 64985 64986 # Input might be given as Windows format, start by converting to 64987 # unix format. 64988 path="$FREETYPE_LIB_PATH" 64989 new_path=`$CYGPATH -u "$path"` 64990 64991 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 64992 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 64993 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 64994 # "foo.exe" is OK but "foo" is an error. 64995 # 64996 # This test is therefore slightly more accurate than "test -f" to check for file precense. 64997 # It is also a way to make sure we got the proper file name for the real test later on. 64998 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 64999 if test "x$test_shortpath" = x; then 65000 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65001 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65002 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 65003 fi 65004 65005 # Call helper function which possibly converts this using DOS-style short mode. 65006 # If so, the updated path is stored in $new_path. 65007 65008 input_path="$new_path" 65009 # Check if we need to convert this using DOS-style short mode. If the path 65010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65011 # take no chances and rewrite it. 65012 # Note: m4 eats our [], so we need to use [ and ] instead. 65013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65014 if test "x$has_forbidden_chars" != x; then 65015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65016 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65017 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65018 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65019 # Going to short mode and back again did indeed matter. Since short mode is 65020 # case insensitive, let's make it lowercase to improve readability. 65021 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65022 # Now convert it back to Unix-style (cygpath) 65023 input_path=`$CYGPATH -u "$shortmode_path"` 65024 new_path="$input_path" 65025 fi 65026 fi 65027 65028 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65029 if test "x$test_cygdrive_prefix" = x; then 65030 # As a simple fix, exclude /usr/bin since it's not a real path. 65031 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65032 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65033 # a path prefixed by /cygdrive for fixpath to work. 65034 new_path="$CYGWIN_ROOT_PATH$input_path" 65035 fi 65036 fi 65037 65038 65039 if test "x$path" != "x$new_path"; then 65040 FREETYPE_LIB_PATH="$new_path" 65041 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65042 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65043 fi 65044 65045 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65046 65047 path="$FREETYPE_LIB_PATH" 65048 has_colon=`$ECHO $path | $GREP ^.:` 65049 new_path="$path" 65050 if test "x$has_colon" = x; then 65051 # Not in mixed or Windows style, start by that. 65052 new_path=`cmd //c echo $path` 65053 fi 65054 65055 65056 input_path="$new_path" 65057 # Check if we need to convert this using DOS-style short mode. If the path 65058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65059 # take no chances and rewrite it. 65060 # Note: m4 eats our [], so we need to use [ and ] instead. 65061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65062 if test "x$has_forbidden_chars" != x; then 65063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65064 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65065 fi 65066 65067 65068 windows_path="$new_path" 65069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65070 unix_path=`$CYGPATH -u "$windows_path"` 65071 new_path="$unix_path" 65072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65074 new_path="$unix_path" 65075 fi 65076 65077 if test "x$path" != "x$new_path"; then 65078 FREETYPE_LIB_PATH="$new_path" 65079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 65080 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 65081 fi 65082 65083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65085 65086 else 65087 # We're on a unix platform. Hooray! :) 65088 path="$FREETYPE_LIB_PATH" 65089 has_space=`$ECHO "$path" | $GREP " "` 65090 if test "x$has_space" != x; then 65091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 65092 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 65093 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65094 fi 65095 65096 # Use eval to expand a potential ~ 65097 eval path="$path" 65098 if test ! -f "$path" && test ! -d "$path"; then 65099 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 65100 fi 65101 65102 if test -d "$path"; then 65103 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 65104 else 65105 dir="`$DIRNAME "$path"`" 65106 base="`$BASENAME "$path"`" 65107 FREETYPE_LIB_PATH="`cd "$dir"; $THEPWDCMD -L`/$base" 65108 fi 65109 fi 65110 fi 65111 65112 if test "x$OPENJDK_TARGET_OS" = xwindows; then 65113 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 65114 else 65115 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 65116 fi 65117 fi 65118 65119 # Try to compile it 65120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 65121 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 65122 ac_ext=cpp 65123 ac_cpp='$CXXCPP $CPPFLAGS' 65124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65127 65128 PREV_CXXCFLAGS="$CXXFLAGS" 65129 PREV_LIBS="$LIBS" 65130 PREV_CXX="$CXX" 65131 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 65132 LIBS="$LIBS $FREETYPE_LIBS" 65133 CXX="$FIXPATH $CXX" 65134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65135 /* end confdefs.h. */ 65136 65137 #include<ft2build.h> 65138 #include FT_FREETYPE_H 65139 int main () { 65140 FT_Init_FreeType(NULL); 65141 return 0; 65142 } 65143 65144 _ACEOF 65145 if ac_fn_cxx_try_link "$LINENO"; then : 65146 65147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65148 $as_echo "yes" >&6; } 65149 65150 else 65151 65152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65153 $as_echo "no" >&6; } 65154 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 65155 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 65156 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 65157 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 65158 65159 65160 # Print a helpful message on how to acquire the necessary build dependency. 65161 # freetype is the help tag: freetype, cups, alsa etc 65162 MISSING_DEPENDENCY=freetype 65163 65164 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65165 cygwin_help $MISSING_DEPENDENCY 65166 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65167 msys_help $MISSING_DEPENDENCY 65168 else 65169 PKGHANDLER_COMMAND= 65170 65171 case $PKGHANDLER in 65172 apt-get) 65173 apt_help $MISSING_DEPENDENCY ;; 65174 yum) 65175 yum_help $MISSING_DEPENDENCY ;; 65176 brew) 65177 brew_help $MISSING_DEPENDENCY ;; 65178 port) 65179 port_help $MISSING_DEPENDENCY ;; 65180 pkgutil) 65181 pkgutil_help $MISSING_DEPENDENCY ;; 65182 pkgadd) 65183 pkgadd_help $MISSING_DEPENDENCY ;; 65184 esac 65185 65186 if test "x$PKGHANDLER_COMMAND" != x; then 65187 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65188 fi 65189 fi 65190 65191 65192 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 65193 65194 65195 fi 65196 rm -f core conftest.err conftest.$ac_objext \ 65197 conftest$ac_exeext conftest.$ac_ext 65198 CXXCFLAGS="$PREV_CXXFLAGS" 65199 LIBS="$PREV_LIBS" 65200 CXX="$PREV_CXX" 65201 ac_ext=cpp 65202 ac_cpp='$CXXCPP $CPPFLAGS' 65203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65206 65207 65208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 65209 $as_echo_n "checking if we should bundle freetype... " >&6; } 65210 if test "x$BUNDLE_FREETYPE" = xyes; then 65211 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 65212 fi 65213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 65214 $as_echo "$BUNDLE_FREETYPE" >&6; } 65215 65216 if test "x$BUNDLE_FREETYPE" = xyes; then 65217 FREETYPE_LICENSE="" 65218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype license" >&5 65219 $as_echo_n "checking for freetype license... " >&6; } 65220 if test "x$with_freetype_license" = "xyes"; then 65221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65222 $as_echo "no" >&6; } 65223 as_fn_error $? "--with-freetype-license must have a value" "$LINENO" 5 65224 elif test "x$with_freetype_license" != "x"; then 65225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_freetype_license" >&5 65226 $as_echo "$with_freetype_license" >&6; } 65227 FREETYPE_LICENSE="$with_freetype_license" 65228 65229 # Only process if variable expands to non-empty 65230 65231 if test "x$FREETYPE_LICENSE" != x; then 65232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65233 65234 # Input might be given as Windows format, start by converting to 65235 # unix format. 65236 path="$FREETYPE_LICENSE" 65237 new_path=`$CYGPATH -u "$path"` 65238 65239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65242 # "foo.exe" is OK but "foo" is an error. 65243 # 65244 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65245 # It is also a way to make sure we got the proper file name for the real test later on. 65246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65247 if test "x$test_shortpath" = x; then 65248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65249 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65250 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65251 fi 65252 65253 # Call helper function which possibly converts this using DOS-style short mode. 65254 # If so, the updated path is stored in $new_path. 65255 65256 input_path="$new_path" 65257 # Check if we need to convert this using DOS-style short mode. If the path 65258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65259 # take no chances and rewrite it. 65260 # Note: m4 eats our [], so we need to use [ and ] instead. 65261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65262 if test "x$has_forbidden_chars" != x; then 65263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65264 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65265 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65266 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65267 # Going to short mode and back again did indeed matter. Since short mode is 65268 # case insensitive, let's make it lowercase to improve readability. 65269 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65270 # Now convert it back to Unix-style (cygpath) 65271 input_path=`$CYGPATH -u "$shortmode_path"` 65272 new_path="$input_path" 65273 fi 65274 fi 65275 65276 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65277 if test "x$test_cygdrive_prefix" = x; then 65278 # As a simple fix, exclude /usr/bin since it's not a real path. 65279 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65280 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65281 # a path prefixed by /cygdrive for fixpath to work. 65282 new_path="$CYGWIN_ROOT_PATH$input_path" 65283 fi 65284 fi 65285 65286 65287 if test "x$path" != "x$new_path"; then 65288 FREETYPE_LICENSE="$new_path" 65289 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65290 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65291 fi 65292 65293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65294 65295 path="$FREETYPE_LICENSE" 65296 has_colon=`$ECHO $path | $GREP ^.:` 65297 new_path="$path" 65298 if test "x$has_colon" = x; then 65299 # Not in mixed or Windows style, start by that. 65300 new_path=`cmd //c echo $path` 65301 fi 65302 65303 65304 input_path="$new_path" 65305 # Check if we need to convert this using DOS-style short mode. If the path 65306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65307 # take no chances and rewrite it. 65308 # Note: m4 eats our [], so we need to use [ and ] instead. 65309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65310 if test "x$has_forbidden_chars" != x; then 65311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65312 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65313 fi 65314 65315 65316 windows_path="$new_path" 65317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65318 unix_path=`$CYGPATH -u "$windows_path"` 65319 new_path="$unix_path" 65320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65322 new_path="$unix_path" 65323 fi 65324 65325 if test "x$path" != "x$new_path"; then 65326 FREETYPE_LICENSE="$new_path" 65327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65328 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65329 fi 65330 65331 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65332 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65333 65334 else 65335 # We're on a unix platform. Hooray! :) 65336 path="$FREETYPE_LICENSE" 65337 has_space=`$ECHO "$path" | $GREP " "` 65338 if test "x$has_space" != x; then 65339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65340 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65341 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65342 fi 65343 65344 # Use eval to expand a potential ~ 65345 eval path="$path" 65346 if test ! -f "$path" && test ! -d "$path"; then 65347 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65348 fi 65349 65350 if test -d "$path"; then 65351 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65352 else 65353 dir="`$DIRNAME "$path"`" 65354 base="`$BASENAME "$path"`" 65355 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65356 fi 65357 fi 65358 fi 65359 65360 if test ! -f "$FREETYPE_LICENSE"; then 65361 as_fn_error $? "$FREETYPE_LICENSE cannot be found" "$LINENO" 5 65362 fi 65363 else 65364 if test "x$with_freetype" != "x" && test -f $with_freetype/freetype.md; then 65365 FREETYPE_LICENSE="$with_freetype/freetype.md" 65366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LICENSE" >&5 65367 $as_echo "$FREETYPE_LICENSE" >&6; } 65368 65369 # Only process if variable expands to non-empty 65370 65371 if test "x$FREETYPE_LICENSE" != x; then 65372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65373 65374 # Input might be given as Windows format, start by converting to 65375 # unix format. 65376 path="$FREETYPE_LICENSE" 65377 new_path=`$CYGPATH -u "$path"` 65378 65379 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 65380 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 65381 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 65382 # "foo.exe" is OK but "foo" is an error. 65383 # 65384 # This test is therefore slightly more accurate than "test -f" to check for file precense. 65385 # It is also a way to make sure we got the proper file name for the real test later on. 65386 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 65387 if test "x$test_shortpath" = x; then 65388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65389 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65390 as_fn_error $? "Cannot locate the the path of FREETYPE_LICENSE" "$LINENO" 5 65391 fi 65392 65393 # Call helper function which possibly converts this using DOS-style short mode. 65394 # If so, the updated path is stored in $new_path. 65395 65396 input_path="$new_path" 65397 # Check if we need to convert this using DOS-style short mode. If the path 65398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65399 # take no chances and rewrite it. 65400 # Note: m4 eats our [], so we need to use [ and ] instead. 65401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 65402 if test "x$has_forbidden_chars" != x; then 65403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65404 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 65405 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 65406 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 65407 # Going to short mode and back again did indeed matter. Since short mode is 65408 # case insensitive, let's make it lowercase to improve readability. 65409 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65410 # Now convert it back to Unix-style (cygpath) 65411 input_path=`$CYGPATH -u "$shortmode_path"` 65412 new_path="$input_path" 65413 fi 65414 fi 65415 65416 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 65417 if test "x$test_cygdrive_prefix" = x; then 65418 # As a simple fix, exclude /usr/bin since it's not a real path. 65419 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 65420 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 65421 # a path prefixed by /cygdrive for fixpath to work. 65422 new_path="$CYGWIN_ROOT_PATH$input_path" 65423 fi 65424 fi 65425 65426 65427 if test "x$path" != "x$new_path"; then 65428 FREETYPE_LICENSE="$new_path" 65429 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65430 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65431 fi 65432 65433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65434 65435 path="$FREETYPE_LICENSE" 65436 has_colon=`$ECHO $path | $GREP ^.:` 65437 new_path="$path" 65438 if test "x$has_colon" = x; then 65439 # Not in mixed or Windows style, start by that. 65440 new_path=`cmd //c echo $path` 65441 fi 65442 65443 65444 input_path="$new_path" 65445 # Check if we need to convert this using DOS-style short mode. If the path 65446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 65447 # take no chances and rewrite it. 65448 # Note: m4 eats our [], so we need to use [ and ] instead. 65449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 65450 if test "x$has_forbidden_chars" != x; then 65451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 65452 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 65453 fi 65454 65455 65456 windows_path="$new_path" 65457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65458 unix_path=`$CYGPATH -u "$windows_path"` 65459 new_path="$unix_path" 65460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65461 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 65462 new_path="$unix_path" 65463 fi 65464 65465 if test "x$path" != "x$new_path"; then 65466 FREETYPE_LICENSE="$new_path" 65467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&5 65468 $as_echo "$as_me: Rewriting FREETYPE_LICENSE to \"$new_path\"" >&6;} 65469 fi 65470 65471 # Save the first 10 bytes of this path to the storage, so fixpath can work. 65472 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 65473 65474 else 65475 # We're on a unix platform. Hooray! :) 65476 path="$FREETYPE_LICENSE" 65477 has_space=`$ECHO "$path" | $GREP " "` 65478 if test "x$has_space" != x; then 65479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&5 65480 $as_echo "$as_me: The path of FREETYPE_LICENSE, which resolves as \"$path\", is invalid." >&6;} 65481 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 65482 fi 65483 65484 # Use eval to expand a potential ~ 65485 eval path="$path" 65486 if test ! -f "$path" && test ! -d "$path"; then 65487 as_fn_error $? "The path of FREETYPE_LICENSE, which resolves as \"$path\", is not found." "$LINENO" 5 65488 fi 65489 65490 if test -d "$path"; then 65491 FREETYPE_LICENSE="`cd "$path"; $THEPWDCMD -L`" 65492 else 65493 dir="`$DIRNAME "$path"`" 65494 base="`$BASENAME "$path"`" 65495 FREETYPE_LICENSE="`cd "$dir"; $THEPWDCMD -L`/$base" 65496 fi 65497 fi 65498 fi 65499 65500 else 65501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65502 $as_echo "no" >&6; } 65503 fi 65504 fi 65505 fi 65506 65507 fi # end freetype needed 65508 65509 65510 65511 65512 65513 65514 65515 65516 # Check whether --with-alsa was given. 65517 if test "${with_alsa+set}" = set; then : 65518 withval=$with_alsa; 65519 fi 65520 65521 65522 # Check whether --with-alsa-include was given. 65523 if test "${with_alsa_include+set}" = set; then : 65524 withval=$with_alsa_include; 65525 fi 65526 65527 65528 # Check whether --with-alsa-lib was given. 65529 if test "${with_alsa_lib+set}" = set; then : 65530 withval=$with_alsa_lib; 65531 fi 65532 65533 65534 if test "x$NEEDS_LIB_ALSA" = xfalse; then 65535 if (test "x${with_alsa}" != x && test "x${with_alsa}" != xno) || \ 65536 (test "x${with_alsa_include}" != x && test "x${with_alsa_include}" != xno) || \ 65537 (test "x${with_alsa_lib}" != x && test "x${with_alsa_lib}" != xno); then 65538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&5 65539 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa[-*] is ignored" >&2;} 65540 fi 65541 ALSA_CFLAGS= 65542 ALSA_LIBS= 65543 else 65544 ALSA_FOUND=no 65545 65546 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 65547 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 65548 fi 65549 65550 if test "x${with_alsa}" != x; then 65551 ALSA_LIBS="-L${with_alsa}/lib -lasound" 65552 ALSA_CFLAGS="-I${with_alsa}/include" 65553 ALSA_FOUND=yes 65554 fi 65555 if test "x${with_alsa_include}" != x; then 65556 ALSA_CFLAGS="-I${with_alsa_include}" 65557 ALSA_FOUND=yes 65558 fi 65559 if test "x${with_alsa_lib}" != x; then 65560 ALSA_LIBS="-L${with_alsa_lib} -lasound" 65561 ALSA_FOUND=yes 65562 fi 65563 # Do not try pkg-config if we have a sysroot set. 65564 if test "x$SYSROOT" = x; then 65565 if test "x$ALSA_FOUND" = xno; then 65566 65567 pkg_failed=no 65568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 65569 $as_echo_n "checking for ALSA... " >&6; } 65570 65571 if test -n "$ALSA_CFLAGS"; then 65572 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 65573 elif test -n "$PKG_CONFIG"; then 65574 if test -n "$PKG_CONFIG" && \ 65575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65576 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65577 ac_status=$? 65578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65579 test $ac_status = 0; }; then 65580 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 65581 else 65582 pkg_failed=yes 65583 fi 65584 else 65585 pkg_failed=untried 65586 fi 65587 if test -n "$ALSA_LIBS"; then 65588 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 65589 elif test -n "$PKG_CONFIG"; then 65590 if test -n "$PKG_CONFIG" && \ 65591 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 65592 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 65593 ac_status=$? 65594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65595 test $ac_status = 0; }; then 65596 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 65597 else 65598 pkg_failed=yes 65599 fi 65600 else 65601 pkg_failed=untried 65602 fi 65603 65604 65605 65606 if test $pkg_failed = yes; then 65607 65608 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65609 _pkg_short_errors_supported=yes 65610 else 65611 _pkg_short_errors_supported=no 65612 fi 65613 if test $_pkg_short_errors_supported = yes; then 65614 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 65615 else 65616 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 65617 fi 65618 # Put the nasty error message in config.log where it belongs 65619 echo "$ALSA_PKG_ERRORS" >&5 65620 65621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65622 $as_echo "no" >&6; } 65623 ALSA_FOUND=no 65624 elif test $pkg_failed = untried; then 65625 ALSA_FOUND=no 65626 else 65627 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 65628 ALSA_LIBS=$pkg_cv_ALSA_LIBS 65629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65630 $as_echo "yes" >&6; } 65631 ALSA_FOUND=yes 65632 fi 65633 fi 65634 fi 65635 if test "x$ALSA_FOUND" = xno; then 65636 for ac_header in alsa/asoundlib.h 65637 do : 65638 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 65639 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 65640 cat >>confdefs.h <<_ACEOF 65641 #define HAVE_ALSA_ASOUNDLIB_H 1 65642 _ACEOF 65643 65644 ALSA_FOUND=yes 65645 ALSA_CFLAGS=-Iignoreme 65646 ALSA_LIBS=-lasound 65647 DEFAULT_ALSA=yes 65648 65649 else 65650 ALSA_FOUND=no 65651 65652 fi 65653 65654 done 65655 65656 fi 65657 if test "x$ALSA_FOUND" = xno; then 65658 65659 # Print a helpful message on how to acquire the necessary build dependency. 65660 # alsa is the help tag: freetype, cups, alsa etc 65661 MISSING_DEPENDENCY=alsa 65662 65663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65664 cygwin_help $MISSING_DEPENDENCY 65665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65666 msys_help $MISSING_DEPENDENCY 65667 else 65668 PKGHANDLER_COMMAND= 65669 65670 case $PKGHANDLER in 65671 apt-get) 65672 apt_help $MISSING_DEPENDENCY ;; 65673 yum) 65674 yum_help $MISSING_DEPENDENCY ;; 65675 brew) 65676 brew_help $MISSING_DEPENDENCY ;; 65677 port) 65678 port_help $MISSING_DEPENDENCY ;; 65679 pkgutil) 65680 pkgutil_help $MISSING_DEPENDENCY ;; 65681 pkgadd) 65682 pkgadd_help $MISSING_DEPENDENCY ;; 65683 esac 65684 65685 if test "x$PKGHANDLER_COMMAND" != x; then 65686 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65687 fi 65688 fi 65689 65690 as_fn_error $? "Could not find alsa! $HELP_MSG" "$LINENO" 5 65691 fi 65692 fi 65693 65694 65695 65696 65697 65698 65699 # Check whether --with-libffi was given. 65700 if test "${with_libffi+set}" = set; then : 65701 withval=$with_libffi; 65702 fi 65703 65704 65705 # Check whether --with-libffi-include was given. 65706 if test "${with_libffi_include+set}" = set; then : 65707 withval=$with_libffi_include; 65708 fi 65709 65710 65711 # Check whether --with-libffi-lib was given. 65712 if test "${with_libffi_lib+set}" = set; then : 65713 withval=$with_libffi_lib; 65714 fi 65715 65716 # Check whether --enable-libffi-bundling was given. 65717 if test "${enable_libffi_bundling+set}" = set; then : 65718 enableval=$enable_libffi_bundling; 65719 fi 65720 65721 65722 if test "x$NEEDS_LIB_FFI" = xfalse; then 65723 if (test "x${with_libffi}" != x && test "x${with_libffi}" != xno) || \ 65724 (test "x${with_libffi_include}" != x && test "x${with_libffi_include}" != xno) || \ 65725 (test "x${with_libffi_lib}" != x && test "x${with_libffi_lib}" != xno); then 65726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&5 65727 $as_echo "$as_me: WARNING: libffi not used, so --with-libffi[-*] is ignored" >&2;} 65728 fi 65729 LIBFFI_CFLAGS= 65730 LIBFFI_LIBS= 65731 else 65732 LIBFFI_FOUND=no 65733 65734 if test "x${with_libffi}" = xno || test "x${with_libffi_include}" = xno || test "x${with_libffi_lib}" = xno; then 65735 as_fn_error $? "It is not possible to disable the use of libffi. Remove the --without-libffi option." "$LINENO" 5 65736 fi 65737 65738 if test "x${with_libffi}" != x; then 65739 LIBFFI_LIB_PATH="${with_libffi}/lib" 65740 LIBFFI_LIBS="-L${with_libffi}/lib -lffi" 65741 LIBFFI_CFLAGS="-I${with_libffi}/include" 65742 LIBFFI_FOUND=yes 65743 fi 65744 if test "x${with_libffi_include}" != x; then 65745 LIBFFI_CFLAGS="-I${with_libffi_include}" 65746 LIBFFI_FOUND=yes 65747 fi 65748 if test "x${with_libffi_lib}" != x; then 65749 LIBFFI_LIB_PATH="${with_libffi_lib}" 65750 LIBFFI_LIBS="-L${with_libffi_lib} -lffi" 65751 LIBFFI_FOUND=yes 65752 fi 65753 # Do not try pkg-config if we have a sysroot set. 65754 if test "x$SYSROOT" = x; then 65755 if test "x$LIBFFI_FOUND" = xno; then 65756 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 65757 65758 pkg_failed=no 65759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 65760 $as_echo_n "checking for LIBFFI... " >&6; } 65761 65762 if test -n "$LIBFFI_CFLAGS"; then 65763 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 65764 elif test -n "$PKG_CONFIG"; then 65765 if test -n "$PKG_CONFIG" && \ 65766 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65767 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65768 ac_status=$? 65769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65770 test $ac_status = 0; }; then 65771 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 65772 else 65773 pkg_failed=yes 65774 fi 65775 else 65776 pkg_failed=untried 65777 fi 65778 if test -n "$LIBFFI_LIBS"; then 65779 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 65780 elif test -n "$PKG_CONFIG"; then 65781 if test -n "$PKG_CONFIG" && \ 65782 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 65783 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 65784 ac_status=$? 65785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 65786 test $ac_status = 0; }; then 65787 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 65788 else 65789 pkg_failed=yes 65790 fi 65791 else 65792 pkg_failed=untried 65793 fi 65794 65795 65796 65797 if test $pkg_failed = yes; then 65798 65799 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 65800 _pkg_short_errors_supported=yes 65801 else 65802 _pkg_short_errors_supported=no 65803 fi 65804 if test $_pkg_short_errors_supported = yes; then 65805 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 65806 else 65807 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 65808 fi 65809 # Put the nasty error message in config.log where it belongs 65810 echo "$LIBFFI_PKG_ERRORS" >&5 65811 65812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65813 $as_echo "no" >&6; } 65814 LIBFFI_FOUND=no 65815 elif test $pkg_failed = untried; then 65816 LIBFFI_FOUND=no 65817 else 65818 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 65819 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 65820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 65821 $as_echo "yes" >&6; } 65822 LIBFFI_FOUND=yes 65823 fi 65824 fi 65825 fi 65826 if test "x$LIBFFI_FOUND" = xno; then 65827 for ac_header in ffi.h 65828 do : 65829 ac_fn_cxx_check_header_mongrel "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 65830 if test "x$ac_cv_header_ffi_h" = xyes; then : 65831 cat >>confdefs.h <<_ACEOF 65832 #define HAVE_FFI_H 1 65833 _ACEOF 65834 65835 LIBFFI_FOUND=yes 65836 LIBFFI_CFLAGS= 65837 LIBFFI_LIBS=-lffi 65838 65839 else 65840 LIBFFI_FOUND=no 65841 65842 fi 65843 65844 done 65845 65846 fi 65847 if test "x$LIBFFI_FOUND" = xno; then 65848 65849 # Print a helpful message on how to acquire the necessary build dependency. 65850 # ffi is the help tag: freetype, cups, alsa etc 65851 MISSING_DEPENDENCY=ffi 65852 65853 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65854 cygwin_help $MISSING_DEPENDENCY 65855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65856 msys_help $MISSING_DEPENDENCY 65857 else 65858 PKGHANDLER_COMMAND= 65859 65860 case $PKGHANDLER in 65861 apt-get) 65862 apt_help $MISSING_DEPENDENCY ;; 65863 yum) 65864 yum_help $MISSING_DEPENDENCY ;; 65865 brew) 65866 brew_help $MISSING_DEPENDENCY ;; 65867 port) 65868 port_help $MISSING_DEPENDENCY ;; 65869 pkgutil) 65870 pkgutil_help $MISSING_DEPENDENCY ;; 65871 pkgadd) 65872 pkgadd_help $MISSING_DEPENDENCY ;; 65873 esac 65874 65875 if test "x$PKGHANDLER_COMMAND" != x; then 65876 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65877 fi 65878 fi 65879 65880 as_fn_error $? "Could not find libffi! $HELP_MSG" "$LINENO" 5 65881 fi 65882 65883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi works" >&5 65884 $as_echo_n "checking if libffi works... " >&6; } 65885 ac_ext=c 65886 ac_cpp='$CPP $CPPFLAGS' 65887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65889 ac_compiler_gnu=$ac_cv_c_compiler_gnu 65890 65891 OLD_CFLAGS="$CFLAGS" 65892 CFLAGS="$CFLAGS $LIBFFI_CFLAGS" 65893 OLD_LIBS="$LIBS" 65894 LIBS="$LIBS $LIBFFI_LIBS" 65895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 65896 /* end confdefs.h. */ 65897 #include <ffi.h> 65898 int 65899 main () 65900 { 65901 65902 ffi_call(NULL, NULL, NULL, NULL); 65903 return 0; 65904 65905 ; 65906 return 0; 65907 } 65908 _ACEOF 65909 if ac_fn_c_try_link "$LINENO"; then : 65910 LIBFFI_WORKS=yes 65911 else 65912 LIBFFI_WORKS=no 65913 65914 fi 65915 rm -f core conftest.err conftest.$ac_objext \ 65916 conftest$ac_exeext conftest.$ac_ext 65917 CFLAGS="$OLD_CFLAGS" 65918 LIBS="$OLD_LIBS" 65919 ac_ext=cpp 65920 ac_cpp='$CXXCPP $CPPFLAGS' 65921 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 65922 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 65923 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 65924 65925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBFFI_WORKS" >&5 65926 $as_echo "$LIBFFI_WORKS" >&6; } 65927 65928 if test "x$LIBFFI_WORKS" = xno; then 65929 65930 # Print a helpful message on how to acquire the necessary build dependency. 65931 # ffi is the help tag: freetype, cups, alsa etc 65932 MISSING_DEPENDENCY=ffi 65933 65934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 65935 cygwin_help $MISSING_DEPENDENCY 65936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 65937 msys_help $MISSING_DEPENDENCY 65938 else 65939 PKGHANDLER_COMMAND= 65940 65941 case $PKGHANDLER in 65942 apt-get) 65943 apt_help $MISSING_DEPENDENCY ;; 65944 yum) 65945 yum_help $MISSING_DEPENDENCY ;; 65946 brew) 65947 brew_help $MISSING_DEPENDENCY ;; 65948 port) 65949 port_help $MISSING_DEPENDENCY ;; 65950 pkgutil) 65951 pkgutil_help $MISSING_DEPENDENCY ;; 65952 pkgadd) 65953 pkgadd_help $MISSING_DEPENDENCY ;; 65954 esac 65955 65956 if test "x$PKGHANDLER_COMMAND" != x; then 65957 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 65958 fi 65959 fi 65960 65961 as_fn_error $? "Found libffi but could not link and compile with it. $HELP_MSG" "$LINENO" 5 65962 fi 65963 65964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libffi should be bundled" >&5 65965 $as_echo_n "checking if libffi should be bundled... " >&6; } 65966 if test "x$enable_libffi_bundling" = "x"; then 65967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 65968 $as_echo "no" >&6; } 65969 ENABLE_LIBFFI_BUNDLING=false 65970 elif test "x$enable_libffi_bundling" = "xno"; then 65971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 65972 $as_echo "no, forced" >&6; } 65973 ENABLE_LIBFFI_BUNDLING=false 65974 elif test "x$enable_libffi_bundling" = "xyes"; then 65975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 65976 $as_echo "yes, forced" >&6; } 65977 ENABLE_LIBFFI_BUNDLING=true 65978 else 65979 as_fn_error $? "Invalid value for --enable-libffi-bundling" "$LINENO" 5 65980 fi 65981 65982 # Find the libffi.so.X to bundle 65983 if test "x${ENABLE_LIBFFI_BUNDLING}" = "xtrue"; then 65984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libffi lib file location" >&5 65985 $as_echo_n "checking for libffi lib file location... " >&6; } 65986 if test "x${LIBFFI_LIB_PATH}" != x; then 65987 if test -e ${LIBFFI_LIB_PATH}/libffi.so.?; then 65988 LIBFFI_LIB_FILE="${LIBFFI_LIB_PATH}/libffi.so.?" 65989 else 65990 as_fn_error $? "Could not locate libffi.so.? for bundling in ${LIBFFI_LIB_PATH}" "$LINENO" 5 65991 fi 65992 else 65993 # If we don't have an explicit path, look in a few obvious places 65994 if test "x${OPENJDK_TARGET_CPU}" = "xx86"; then 65995 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 65996 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 65997 elif test -e ${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.? ; then 65998 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/i386-linux-gnu/libffi.so.?" 65999 else 66000 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66001 fi 66002 elif test "x${OPENJDK_TARGET_CPU}" = "xx86_64"; then 66003 if test -e ${SYSROOT}/usr/lib64/libffi.so.? ; then 66004 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib64/libffi.so.?" 66005 elif test -e ${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.? ; then 66006 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/x86_64-linux-gnu/libffi.so.?" 66007 else 66008 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66009 fi 66010 else 66011 # Fallback on the default /usr/lib dir 66012 if test -e ${SYSROOT}/usr/lib/libffi.so.? ; then 66013 LIBFFI_LIB_FILE="${SYSROOT}/usr/lib/libffi.so.?" 66014 else 66015 as_fn_error $? "Could not locate libffi.so.? for bundling" "$LINENO" 5 66016 fi 66017 fi 66018 fi 66019 # Make sure the wildcard is evaluated 66020 LIBFFI_LIB_FILE="$(ls ${LIBFFI_LIB_FILE})" 66021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${LIBFFI_LIB_FILE}" >&5 66022 $as_echo "${LIBFFI_LIB_FILE}" >&6; } 66023 fi 66024 fi 66025 66026 66027 66028 66029 66030 66031 66032 66033 # Check whether --with-libjpeg was given. 66034 if test "${with_libjpeg+set}" = set; then : 66035 withval=$with_libjpeg; 66036 fi 66037 66038 66039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 66040 $as_echo_n "checking for which libjpeg to use... " >&6; } 66041 # default is bundled 66042 DEFAULT_LIBJPEG=bundled 66043 # if user didn't specify, use DEFAULT_LIBJPEG 66044 if test "x${with_libjpeg}" = "x"; then 66045 with_libjpeg=${DEFAULT_LIBJPEG} 66046 fi 66047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 66048 $as_echo "${with_libjpeg}" >&6; } 66049 66050 if test "x${with_libjpeg}" = "xbundled"; then 66051 USE_EXTERNAL_LIBJPEG=false 66052 elif test "x${with_libjpeg}" = "xsystem"; then 66053 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 66054 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 66055 66056 else 66057 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 66058 fi 66059 66060 66061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 66062 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 66063 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 66064 $as_echo_n "(cached) " >&6 66065 else 66066 ac_check_lib_save_LIBS=$LIBS 66067 LIBS="-ljpeg $LIBS" 66068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66069 /* end confdefs.h. */ 66070 66071 /* Override any GCC internal prototype to avoid an error. 66072 Use char because int might match the return type of a GCC 66073 builtin and then its argument prototype would still apply. */ 66074 #ifdef __cplusplus 66075 extern "C" 66076 #endif 66077 char jpeg_CreateDecompress (); 66078 int 66079 main () 66080 { 66081 return jpeg_CreateDecompress (); 66082 ; 66083 return 0; 66084 } 66085 _ACEOF 66086 if ac_fn_cxx_try_link "$LINENO"; then : 66087 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 66088 else 66089 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 66090 fi 66091 rm -f core conftest.err conftest.$ac_objext \ 66092 conftest$ac_exeext conftest.$ac_ext 66093 LIBS=$ac_check_lib_save_LIBS 66094 fi 66095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 66096 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 66097 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 66098 cat >>confdefs.h <<_ACEOF 66099 #define HAVE_LIBJPEG 1 66100 _ACEOF 66101 66102 LIBS="-ljpeg $LIBS" 66103 66104 else 66105 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 66106 fi 66107 66108 66109 USE_EXTERNAL_LIBJPEG=true 66110 else 66111 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 66112 fi 66113 66114 66115 66116 66117 66118 # Check whether --with-giflib was given. 66119 if test "${with_giflib+set}" = set; then : 66120 withval=$with_giflib; 66121 fi 66122 66123 66124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 66125 $as_echo_n "checking for which giflib to use... " >&6; } 66126 # default is bundled 66127 DEFAULT_GIFLIB=bundled 66128 # if user didn't specify, use DEFAULT_GIFLIB 66129 if test "x${with_giflib}" = "x"; then 66130 with_giflib=${DEFAULT_GIFLIB} 66131 fi 66132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 66133 $as_echo "${with_giflib}" >&6; } 66134 66135 if test "x${with_giflib}" = "xbundled"; then 66136 USE_EXTERNAL_LIBGIF=false 66137 elif test "x${with_giflib}" = "xsystem"; then 66138 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 66139 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 66140 66141 else 66142 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 66143 fi 66144 66145 66146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 66147 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 66148 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 66149 $as_echo_n "(cached) " >&6 66150 else 66151 ac_check_lib_save_LIBS=$LIBS 66152 LIBS="-lgif $LIBS" 66153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66154 /* end confdefs.h. */ 66155 66156 /* Override any GCC internal prototype to avoid an error. 66157 Use char because int might match the return type of a GCC 66158 builtin and then its argument prototype would still apply. */ 66159 #ifdef __cplusplus 66160 extern "C" 66161 #endif 66162 char DGifGetCode (); 66163 int 66164 main () 66165 { 66166 return DGifGetCode (); 66167 ; 66168 return 0; 66169 } 66170 _ACEOF 66171 if ac_fn_cxx_try_link "$LINENO"; then : 66172 ac_cv_lib_gif_DGifGetCode=yes 66173 else 66174 ac_cv_lib_gif_DGifGetCode=no 66175 fi 66176 rm -f core conftest.err conftest.$ac_objext \ 66177 conftest$ac_exeext conftest.$ac_ext 66178 LIBS=$ac_check_lib_save_LIBS 66179 fi 66180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 66181 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 66182 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 66183 cat >>confdefs.h <<_ACEOF 66184 #define HAVE_LIBGIF 1 66185 _ACEOF 66186 66187 LIBS="-lgif $LIBS" 66188 66189 else 66190 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 66191 fi 66192 66193 66194 USE_EXTERNAL_LIBGIF=true 66195 else 66196 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 66197 fi 66198 66199 66200 66201 66202 66203 # Check whether --with-libpng was given. 66204 if test "${with_libpng+set}" = set; then : 66205 withval=$with_libpng; 66206 fi 66207 66208 66209 66210 pkg_failed=no 66211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 66212 $as_echo_n "checking for PNG... " >&6; } 66213 66214 if test -n "$PNG_CFLAGS"; then 66215 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 66216 elif test -n "$PKG_CONFIG"; then 66217 if test -n "$PKG_CONFIG" && \ 66218 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66219 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66220 ac_status=$? 66221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66222 test $ac_status = 0; }; then 66223 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 66224 else 66225 pkg_failed=yes 66226 fi 66227 else 66228 pkg_failed=untried 66229 fi 66230 if test -n "$PNG_LIBS"; then 66231 pkg_cv_PNG_LIBS="$PNG_LIBS" 66232 elif test -n "$PKG_CONFIG"; then 66233 if test -n "$PKG_CONFIG" && \ 66234 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 66235 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 66236 ac_status=$? 66237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66238 test $ac_status = 0; }; then 66239 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 66240 else 66241 pkg_failed=yes 66242 fi 66243 else 66244 pkg_failed=untried 66245 fi 66246 66247 66248 66249 if test $pkg_failed = yes; then 66250 66251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66252 _pkg_short_errors_supported=yes 66253 else 66254 _pkg_short_errors_supported=no 66255 fi 66256 if test $_pkg_short_errors_supported = yes; then 66257 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 66258 else 66259 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 66260 fi 66261 # Put the nasty error message in config.log where it belongs 66262 echo "$PNG_PKG_ERRORS" >&5 66263 66264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66265 $as_echo "no" >&6; } 66266 LIBPNG_FOUND=no 66267 elif test $pkg_failed = untried; then 66268 LIBPNG_FOUND=no 66269 else 66270 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 66271 PNG_LIBS=$pkg_cv_PNG_LIBS 66272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66273 $as_echo "yes" >&6; } 66274 LIBPNG_FOUND=yes 66275 fi 66276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 66277 $as_echo_n "checking for which libpng to use... " >&6; } 66278 66279 # default is bundled 66280 DEFAULT_LIBPNG=bundled 66281 # if user didn't specify, use DEFAULT_LIBPNG 66282 if test "x${with_libpng}" = "x"; then 66283 with_libpng=${DEFAULT_LIBPNG} 66284 fi 66285 66286 if test "x${with_libpng}" = "xbundled"; then 66287 USE_EXTERNAL_LIBPNG=false 66288 PNG_CFLAGS="" 66289 PNG_LIBS="" 66290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66291 $as_echo "bundled" >&6; } 66292 elif test "x${with_libpng}" = "xsystem"; then 66293 if test "x${LIBPNG_FOUND}" = "xyes"; then 66294 # PKG_CHECK_MODULES will set PNG_CFLAGS and PNG_LIBS 66295 USE_EXTERNAL_LIBPNG=true 66296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66297 $as_echo "system" >&6; } 66298 else 66299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66300 $as_echo "system not found" >&6; } 66301 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 66302 fi 66303 else 66304 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 66305 fi 66306 66307 66308 66309 66310 66311 66312 66313 # Check whether --with-zlib was given. 66314 if test "${with_zlib+set}" = set; then : 66315 withval=$with_zlib; 66316 fi 66317 66318 66319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 66320 $as_echo_n "checking for compress in -lz... " >&6; } 66321 if ${ac_cv_lib_z_compress+:} false; then : 66322 $as_echo_n "(cached) " >&6 66323 else 66324 ac_check_lib_save_LIBS=$LIBS 66325 LIBS="-lz $LIBS" 66326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66327 /* end confdefs.h. */ 66328 66329 /* Override any GCC internal prototype to avoid an error. 66330 Use char because int might match the return type of a GCC 66331 builtin and then its argument prototype would still apply. */ 66332 #ifdef __cplusplus 66333 extern "C" 66334 #endif 66335 char compress (); 66336 int 66337 main () 66338 { 66339 return compress (); 66340 ; 66341 return 0; 66342 } 66343 _ACEOF 66344 if ac_fn_cxx_try_link "$LINENO"; then : 66345 ac_cv_lib_z_compress=yes 66346 else 66347 ac_cv_lib_z_compress=no 66348 fi 66349 rm -f core conftest.err conftest.$ac_objext \ 66350 conftest$ac_exeext conftest.$ac_ext 66351 LIBS=$ac_check_lib_save_LIBS 66352 fi 66353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 66354 $as_echo "$ac_cv_lib_z_compress" >&6; } 66355 if test "x$ac_cv_lib_z_compress" = xyes; then : 66356 ZLIB_FOUND=yes 66357 else 66358 ZLIB_FOUND=no 66359 fi 66360 66361 66362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 66363 $as_echo_n "checking for which zlib to use... " >&6; } 66364 66365 DEFAULT_ZLIB=system 66366 if test "x$OPENJDK_TARGET_OS" = xwindows; then 66367 # On windows default is bundled...on others default is system 66368 DEFAULT_ZLIB=bundled 66369 fi 66370 66371 if test "x${ZLIB_FOUND}" != "xyes"; then 66372 # If we don't find any system...set default to bundled 66373 DEFAULT_ZLIB=bundled 66374 fi 66375 66376 # If user didn't specify, use DEFAULT_ZLIB 66377 if test "x${with_zlib}" = "x"; then 66378 with_zlib=${DEFAULT_ZLIB} 66379 fi 66380 66381 if test "x${with_zlib}" = "xbundled"; then 66382 USE_EXTERNAL_LIBZ=false 66383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66384 $as_echo "bundled" >&6; } 66385 elif test "x${with_zlib}" = "xsystem"; then 66386 if test "x${ZLIB_FOUND}" = "xyes"; then 66387 USE_EXTERNAL_LIBZ=true 66388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66389 $as_echo "system" >&6; } 66390 66391 if test "x$USE_EXTERNAL_LIBPNG" != "xtrue"; then 66392 # If we use bundled libpng, we must verify that we have a proper zlib. 66393 # For instance zlib-ng has had issues with inflateValidate(). 66394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system zlib functionality" >&5 66395 $as_echo_n "checking for system zlib functionality... " >&6; } 66396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66397 /* end confdefs.h. */ 66398 #include "zlib.h" 66399 int 66400 main () 66401 { 66402 66403 #if ZLIB_VERNUM >= 0x1281 66404 inflateValidate(NULL, 0); 66405 #endif 66406 66407 ; 66408 return 0; 66409 } 66410 _ACEOF 66411 if ac_fn_cxx_try_compile "$LINENO"; then : 66412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 66413 $as_echo "ok" >&6; } 66414 else 66415 66416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not ok" >&5 66417 $as_echo "not ok" >&6; } 66418 as_fn_error $? "System zlib not working correctly" "$LINENO" 5 66419 66420 66421 fi 66422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 66423 fi 66424 else 66425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 66426 $as_echo "system not found" >&6; } 66427 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 66428 fi 66429 else 66430 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 66431 fi 66432 66433 66434 66435 66436 66437 # Check whether --with-lcms was given. 66438 if test "${with_lcms+set}" = set; then : 66439 withval=$with_lcms; 66440 fi 66441 66442 66443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 66444 $as_echo_n "checking for which lcms to use... " >&6; } 66445 66446 DEFAULT_LCMS=bundled 66447 # If user didn't specify, use DEFAULT_LCMS 66448 if test "x${with_lcms}" = "x"; then 66449 with_lcms=${DEFAULT_LCMS} 66450 fi 66451 66452 if test "x${with_lcms}" = "xbundled"; then 66453 USE_EXTERNAL_LCMS=false 66454 LCMS_CFLAGS="" 66455 LCMS_LIBS="" 66456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 66457 $as_echo "bundled" >&6; } 66458 elif test "x${with_lcms}" = "xsystem"; then 66459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 66460 $as_echo "system" >&6; } 66461 66462 pkg_failed=no 66463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 66464 $as_echo_n "checking for LCMS... " >&6; } 66465 66466 if test -n "$LCMS_CFLAGS"; then 66467 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 66468 elif test -n "$PKG_CONFIG"; then 66469 if test -n "$PKG_CONFIG" && \ 66470 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66471 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66472 ac_status=$? 66473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66474 test $ac_status = 0; }; then 66475 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 66476 else 66477 pkg_failed=yes 66478 fi 66479 else 66480 pkg_failed=untried 66481 fi 66482 if test -n "$LCMS_LIBS"; then 66483 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 66484 elif test -n "$PKG_CONFIG"; then 66485 if test -n "$PKG_CONFIG" && \ 66486 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 66487 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 66488 ac_status=$? 66489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 66490 test $ac_status = 0; }; then 66491 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 66492 else 66493 pkg_failed=yes 66494 fi 66495 else 66496 pkg_failed=untried 66497 fi 66498 66499 66500 66501 if test $pkg_failed = yes; then 66502 66503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 66504 _pkg_short_errors_supported=yes 66505 else 66506 _pkg_short_errors_supported=no 66507 fi 66508 if test $_pkg_short_errors_supported = yes; then 66509 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 66510 else 66511 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 66512 fi 66513 # Put the nasty error message in config.log where it belongs 66514 echo "$LCMS_PKG_ERRORS" >&5 66515 66516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66517 $as_echo "no" >&6; } 66518 LCMS_FOUND=no 66519 elif test $pkg_failed = untried; then 66520 LCMS_FOUND=no 66521 else 66522 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 66523 LCMS_LIBS=$pkg_cv_LCMS_LIBS 66524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66525 $as_echo "yes" >&6; } 66526 LCMS_FOUND=yes 66527 fi 66528 if test "x${LCMS_FOUND}" = "xyes"; then 66529 # PKG_CHECK_MODULES will set LCMS_CFLAGS and LCMS_LIBS 66530 USE_EXTERNAL_LCMS=true 66531 else 66532 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 66533 fi 66534 else 66535 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 66536 fi 66537 66538 66539 66540 66541 66542 66543 66544 66545 66546 66547 66548 66549 66550 # Setup libm (the maths library) 66551 if test "x$OPENJDK_TARGET_OS" != "xwindows"; then 66552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 66553 $as_echo_n "checking for cos in -lm... " >&6; } 66554 if ${ac_cv_lib_m_cos+:} false; then : 66555 $as_echo_n "(cached) " >&6 66556 else 66557 ac_check_lib_save_LIBS=$LIBS 66558 LIBS="-lm $LIBS" 66559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66560 /* end confdefs.h. */ 66561 66562 /* Override any GCC internal prototype to avoid an error. 66563 Use char because int might match the return type of a GCC 66564 builtin and then its argument prototype would still apply. */ 66565 #ifdef __cplusplus 66566 extern "C" 66567 #endif 66568 char cos (); 66569 int 66570 main () 66571 { 66572 return cos (); 66573 ; 66574 return 0; 66575 } 66576 _ACEOF 66577 if ac_fn_cxx_try_link "$LINENO"; then : 66578 ac_cv_lib_m_cos=yes 66579 else 66580 ac_cv_lib_m_cos=no 66581 fi 66582 rm -f core conftest.err conftest.$ac_objext \ 66583 conftest$ac_exeext conftest.$ac_ext 66584 LIBS=$ac_check_lib_save_LIBS 66585 fi 66586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 66587 $as_echo "$ac_cv_lib_m_cos" >&6; } 66588 if test "x$ac_cv_lib_m_cos" = xyes; then : 66589 cat >>confdefs.h <<_ACEOF 66590 #define HAVE_LIBM 1 66591 _ACEOF 66592 66593 LIBS="-lm $LIBS" 66594 66595 else 66596 66597 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 66598 $as_echo "$as_me: Maths library was not found" >&6;} 66599 66600 fi 66601 66602 LIBM="-lm" 66603 else 66604 LIBM="" 66605 fi 66606 66607 66608 # Setup libdl (for dynamic library loading) 66609 save_LIBS="$LIBS" 66610 LIBS="" 66611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 66612 $as_echo_n "checking for dlopen in -ldl... " >&6; } 66613 if ${ac_cv_lib_dl_dlopen+:} false; then : 66614 $as_echo_n "(cached) " >&6 66615 else 66616 ac_check_lib_save_LIBS=$LIBS 66617 LIBS="-ldl $LIBS" 66618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 66619 /* end confdefs.h. */ 66620 66621 /* Override any GCC internal prototype to avoid an error. 66622 Use char because int might match the return type of a GCC 66623 builtin and then its argument prototype would still apply. */ 66624 #ifdef __cplusplus 66625 extern "C" 66626 #endif 66627 char dlopen (); 66628 int 66629 main () 66630 { 66631 return dlopen (); 66632 ; 66633 return 0; 66634 } 66635 _ACEOF 66636 if ac_fn_cxx_try_link "$LINENO"; then : 66637 ac_cv_lib_dl_dlopen=yes 66638 else 66639 ac_cv_lib_dl_dlopen=no 66640 fi 66641 rm -f core conftest.err conftest.$ac_objext \ 66642 conftest$ac_exeext conftest.$ac_ext 66643 LIBS=$ac_check_lib_save_LIBS 66644 fi 66645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 66646 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 66647 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 66648 cat >>confdefs.h <<_ACEOF 66649 #define HAVE_LIBDL 1 66650 _ACEOF 66651 66652 LIBS="-ldl $LIBS" 66653 66654 fi 66655 66656 LIBDL="$LIBS" 66657 66658 LIBS="$save_LIBS" 66659 66660 # Deprecated libraries, keep the flags for backwards compatibility 66661 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 66662 66663 66664 # Check whether --with-dxsdk was given. 66665 if test "${with_dxsdk+set}" = set; then : 66666 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 66667 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 66668 fi 66669 66670 66671 66672 66673 # Check whether --with-dxsdk-lib was given. 66674 if test "${with_dxsdk_lib+set}" = set; then : 66675 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 66676 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 66677 fi 66678 66679 66680 66681 66682 # Check whether --with-dxsdk-include was given. 66683 if test "${with_dxsdk_include+set}" = set; then : 66684 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 66685 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 66686 fi 66687 66688 66689 fi 66690 66691 # Control if libzip can use mmap. Available for purposes of overriding. 66692 LIBZIP_CAN_USE_MMAP=true 66693 66694 66695 66696 if test "$OPENJDK_TARGET_OS" = "solaris" && test "x$BUILD_GTEST" = "xtrue"; then 66697 # Find the root of the Solaris Studio installation from the compiler path 66698 SOLARIS_STUDIO_DIR="$(dirname $CC)/.." 66699 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4$OPENJDK_TARGET_CPU_ISADIR/libstlport.so.1" 66700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstlport.so.1" >&5 66701 $as_echo_n "checking for libstlport.so.1... " >&6; } 66702 if ! test -f "$STLPORT_LIB" && test "x$OPENJDK_TARGET_CPU_ISADIR" = "x/sparcv9"; then 66703 # SS12u3 has libstlport under 'stlport4/v9' instead of 'stlport4/sparcv9' 66704 STLPORT_LIB="$SOLARIS_STUDIO_DIR/lib/stlport4/v9/libstlport.so.1" 66705 fi 66706 if test -f "$STLPORT_LIB"; then 66707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $STLPORT_LIB" >&5 66708 $as_echo "yes, $STLPORT_LIB" >&6; } 66709 66710 # Only process if variable expands to non-empty 66711 66712 if test "x$STLPORT_LIB" != x; then 66713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66714 66715 # Input might be given as Windows format, start by converting to 66716 # unix format. 66717 path="$STLPORT_LIB" 66718 new_path=`$CYGPATH -u "$path"` 66719 66720 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 66721 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 66722 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 66723 # "foo.exe" is OK but "foo" is an error. 66724 # 66725 # This test is therefore slightly more accurate than "test -f" to check for file precense. 66726 # It is also a way to make sure we got the proper file name for the real test later on. 66727 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 66728 if test "x$test_shortpath" = x; then 66729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66730 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66731 as_fn_error $? "Cannot locate the the path of STLPORT_LIB" "$LINENO" 5 66732 fi 66733 66734 # Call helper function which possibly converts this using DOS-style short mode. 66735 # If so, the updated path is stored in $new_path. 66736 66737 input_path="$new_path" 66738 # Check if we need to convert this using DOS-style short mode. If the path 66739 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66740 # take no chances and rewrite it. 66741 # Note: m4 eats our [], so we need to use [ and ] instead. 66742 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 66743 if test "x$has_forbidden_chars" != x; then 66744 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66745 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 66746 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 66747 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 66748 # Going to short mode and back again did indeed matter. Since short mode is 66749 # case insensitive, let's make it lowercase to improve readability. 66750 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66751 # Now convert it back to Unix-style (cygpath) 66752 input_path=`$CYGPATH -u "$shortmode_path"` 66753 new_path="$input_path" 66754 fi 66755 fi 66756 66757 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 66758 if test "x$test_cygdrive_prefix" = x; then 66759 # As a simple fix, exclude /usr/bin since it's not a real path. 66760 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 66761 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 66762 # a path prefixed by /cygdrive for fixpath to work. 66763 new_path="$CYGWIN_ROOT_PATH$input_path" 66764 fi 66765 fi 66766 66767 66768 if test "x$path" != "x$new_path"; then 66769 STLPORT_LIB="$new_path" 66770 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66771 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66772 fi 66773 66774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66775 66776 path="$STLPORT_LIB" 66777 has_colon=`$ECHO $path | $GREP ^.:` 66778 new_path="$path" 66779 if test "x$has_colon" = x; then 66780 # Not in mixed or Windows style, start by that. 66781 new_path=`cmd //c echo $path` 66782 fi 66783 66784 66785 input_path="$new_path" 66786 # Check if we need to convert this using DOS-style short mode. If the path 66787 # contains just simple characters, use it. Otherwise (spaces, weird characters), 66788 # take no chances and rewrite it. 66789 # Note: m4 eats our [], so we need to use [ and ] instead. 66790 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 66791 if test "x$has_forbidden_chars" != x; then 66792 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 66793 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 66794 fi 66795 66796 66797 windows_path="$new_path" 66798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 66799 unix_path=`$CYGPATH -u "$windows_path"` 66800 new_path="$unix_path" 66801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 66802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 66803 new_path="$unix_path" 66804 fi 66805 66806 if test "x$path" != "x$new_path"; then 66807 STLPORT_LIB="$new_path" 66808 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STLPORT_LIB to \"$new_path\"" >&5 66809 $as_echo "$as_me: Rewriting STLPORT_LIB to \"$new_path\"" >&6;} 66810 fi 66811 66812 # Save the first 10 bytes of this path to the storage, so fixpath can work. 66813 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 66814 66815 else 66816 # We're on a unix platform. Hooray! :) 66817 path="$STLPORT_LIB" 66818 has_space=`$ECHO "$path" | $GREP " "` 66819 if test "x$has_space" != x; then 66820 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&5 66821 $as_echo "$as_me: The path of STLPORT_LIB, which resolves as \"$path\", is invalid." >&6;} 66822 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 66823 fi 66824 66825 # Use eval to expand a potential ~ 66826 eval path="$path" 66827 if test ! -f "$path" && test ! -d "$path"; then 66828 as_fn_error $? "The path of STLPORT_LIB, which resolves as \"$path\", is not found." "$LINENO" 5 66829 fi 66830 66831 if test -d "$path"; then 66832 STLPORT_LIB="`cd "$path"; $THEPWDCMD -L`" 66833 else 66834 dir="`$DIRNAME "$path"`" 66835 base="`$BASENAME "$path"`" 66836 STLPORT_LIB="`cd "$dir"; $THEPWDCMD -L`/$base" 66837 fi 66838 fi 66839 fi 66840 66841 else 66842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not found at $STLPORT_LIB" >&5 66843 $as_echo "no, not found at $STLPORT_LIB" >&6; } 66844 as_fn_error $? "Failed to find libstlport.so.1, cannot build Hotspot gtests" "$LINENO" 5 66845 fi 66846 66847 fi 66848 66849 66850 66851 66852 66853 66854 66855 66856 66857 66858 66859 66860 66861 66862 # Hotspot setup depends on lib checks. 66863 66864 66865 # The user can in some cases supply additional jvm features. For the custom 66866 # variant, this defines the entire variant. 66867 66868 # Check whether --with-jvm-features was given. 66869 if test "${with_jvm_features+set}" = set; then : 66870 withval=$with_jvm_features; 66871 fi 66872 66873 if test "x$with_jvm_features" != x; then 66874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking additional JVM features" >&5 66875 $as_echo_n "checking additional JVM features... " >&6; } 66876 JVM_FEATURES=`$ECHO $with_jvm_features | $SED -e 's/,/ /g'` 66877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES" >&5 66878 $as_echo "$JVM_FEATURES" >&6; } 66879 fi 66880 66881 # Override hotspot cpu definitions for ARM platforms 66882 if test "x$OPENJDK_TARGET_CPU" = xarm; then 66883 HOTSPOT_TARGET_CPU=arm_32 66884 HOTSPOT_TARGET_CPU_DEFINE="ARM32" 66885 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 66886 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 66887 elif test "x$OPENJDK_TARGET_CPU" = xaarch64 && test "x$HOTSPOT_TARGET_CPU_PORT" = xarm64; then 66888 HOTSPOT_TARGET_CPU=arm_64 66889 HOTSPOT_TARGET_CPU_ARCH=arm 66890 JVM_LDFLAGS="$JVM_LDFLAGS -fsigned-char" 66891 JVM_CFLAGS="$JVM_CFLAGS -DARM -fsigned-char" 66892 fi 66893 66894 # Verify that dependencies are met for explicitly set features. 66895 if [[ " $JVM_FEATURES " =~ " jvmti " ]] && ! [[ " $JVM_FEATURES " =~ " services " ]] ; then 66896 as_fn_error $? "Specified JVM feature 'jvmti' requires feature 'services'" "$LINENO" 5 66897 fi 66898 66899 if [[ " $JVM_FEATURES " =~ " management " ]] && ! [[ " $JVM_FEATURES " =~ " nmt " ]] ; then 66900 as_fn_error $? "Specified JVM feature 'management' requires feature 'nmt'" "$LINENO" 5 66901 fi 66902 66903 if [[ " $JVM_FEATURES " =~ " jvmci " ]] && ! ( [[ " $JVM_FEATURES " =~ " compiler1 " ]] || [[ " $JVM_FEATURES " =~ " compiler2 " ]] ); then 66904 as_fn_error $? "Specified JVM feature 'jvmci' requires feature 'compiler2' or 'compiler1'" "$LINENO" 5 66905 fi 66906 66907 if [[ " $JVM_FEATURES " =~ " compiler2 " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 66908 as_fn_error $? "Specified JVM feature 'compiler2' requires feature 'all-gcs'" "$LINENO" 5 66909 fi 66910 66911 if [[ " $JVM_FEATURES " =~ " vm-structs " ]] && ! [[ " $JVM_FEATURES " =~ " all-gcs " ]] ; then 66912 as_fn_error $? "Specified JVM feature 'vm-structs' requires feature 'all-gcs'" "$LINENO" 5 66913 fi 66914 66915 # Turn on additional features based on other parts of configure 66916 if test "x$INCLUDE_DTRACE" = "xtrue"; then 66917 JVM_FEATURES="$JVM_FEATURES dtrace" 66918 else 66919 if [[ " $JVM_FEATURES " =~ " dtrace " ]] ; then 66920 as_fn_error $? "To enable dtrace, you must use --enable-dtrace" "$LINENO" 5 66921 fi 66922 fi 66923 66924 if test "x$STATIC_BUILD" = "xtrue"; then 66925 JVM_FEATURES="$JVM_FEATURES static-build" 66926 else 66927 if [[ " $JVM_FEATURES " =~ " static-build " ]] ; then 66928 as_fn_error $? "To enable static-build, you must use --enable-static-build" "$LINENO" 5 66929 fi 66930 fi 66931 66932 if ! [[ " $JVM_VARIANTS " =~ " zero " ]] ; then 66933 if [[ " $JVM_FEATURES " =~ " zero " ]] ; then 66934 as_fn_error $? "To enable zero, you must use --with-jvm-variants=zero" "$LINENO" 5 66935 fi 66936 fi 66937 66938 # Only enable jvmci on x86_64, sparcv9 and aarch64. 66939 if test "x$OPENJDK_TARGET_CPU" = "xx86_64" || \ 66940 test "x$OPENJDK_TARGET_CPU" = "xsparcv9" || \ 66941 test "x$OPENJDK_TARGET_CPU" = "xaarch64" ; then 66942 JVM_FEATURES_jvmci="jvmci" 66943 else 66944 JVM_FEATURES_jvmci="" 66945 fi 66946 66947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jdk.internal.vm.compiler should be built" >&5 66948 $as_echo_n "checking if jdk.internal.vm.compiler should be built... " >&6; } 66949 if [[ " $JVM_FEATURES " =~ " graal " ]] ; then 66950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66951 $as_echo "yes, forced" >&6; } 66952 if test "x$JVM_FEATURES_jvmci" != "xjvmci" ; then 66953 as_fn_error $? "Specified JVM feature 'graal' requires feature 'jvmci'" "$LINENO" 5 66954 fi 66955 INCLUDE_GRAAL="true" 66956 else 66957 # By default enable graal build on linux-x64 or where AOT is available. 66958 # graal build requires jvmci. 66959 if test "x$JVM_FEATURES_jvmci" = "xjvmci" && \ 66960 (test "x$OPENJDK_TARGET_CPU" = "xx86_64" && \ 66961 test "x$OPENJDK_TARGET_OS" = "xlinux" || \ 66962 test "x$ENABLE_AOT" = "xtrue") ; then 66963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66964 $as_echo "yes" >&6; } 66965 JVM_FEATURES_graal="graal" 66966 INCLUDE_GRAAL="true" 66967 else 66968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66969 $as_echo "no" >&6; } 66970 JVM_FEATURES_graal="" 66971 INCLUDE_GRAAL="false" 66972 fi 66973 fi 66974 66975 66976 66977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if aot should be enabled" >&5 66978 $as_echo_n "checking if aot should be enabled... " >&6; } 66979 if test "x$ENABLE_AOT" = "xtrue"; then 66980 if test "x$enable_aot" = "xyes"; then 66981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 66982 $as_echo "yes, forced" >&6; } 66983 else 66984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 66985 $as_echo "yes" >&6; } 66986 fi 66987 JVM_FEATURES_aot="aot" 66988 else 66989 if test "x$enable_aot" = "xno"; then 66990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 66991 $as_echo "no, forced" >&6; } 66992 else 66993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 66994 $as_echo "no" >&6; } 66995 fi 66996 JVM_FEATURES_aot="" 66997 fi 66998 66999 if test "x$OPENJDK_TARGET_CPU" = xarm ; then 67000 # Default to use link time optimizations on minimal on arm 67001 JVM_FEATURES_link_time_opt="link-time-opt" 67002 else 67003 JVM_FEATURES_link_time_opt="" 67004 fi 67005 67006 # All variants but minimal (and custom) get these features 67007 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES jvmti vm-structs jni-check services management all-gcs nmt" 67008 if test "x$ENABLE_CDS" = "xtrue"; then 67009 NON_MINIMAL_FEATURES="$NON_MINIMAL_FEATURES cds" 67010 fi 67011 67012 # Enable features depending on variant. 67013 JVM_FEATURES_server="compiler1 compiler2 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci $JVM_FEATURES_aot $JVM_FEATURES_graal" 67014 JVM_FEATURES_client="compiler1 $NON_MINIMAL_FEATURES $JVM_FEATURES $JVM_FEATURES_jvmci" 67015 JVM_FEATURES_core="$NON_MINIMAL_FEATURES $JVM_FEATURES" 67016 JVM_FEATURES_minimal="compiler1 minimal $JVM_FEATURES $JVM_FEATURES_link_time_opt" 67017 JVM_FEATURES_zero="zero $NON_MINIMAL_FEATURES $JVM_FEATURES" 67018 JVM_FEATURES_custom="$JVM_FEATURES" 67019 67020 67021 67022 67023 67024 67025 67026 67027 # Used for verification of Makefiles by check-jvm-feature 67028 67029 67030 # We don't support --with-jvm-interpreter anymore, use zero instead. 67031 67032 67033 # Check whether --with-jvm-interpreter was given. 67034 if test "${with_jvm_interpreter+set}" = set; then : 67035 withval=$with_jvm_interpreter; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&5 67036 $as_echo "$as_me: WARNING: Option --with-jvm-interpreter is deprecated and will be ignored." >&2;} 67037 fi 67038 67039 67040 67041 67042 ############################################################################### 67043 # 67044 # We need to do some final tweaking, when everything else is done. 67045 # 67046 ############################################################################### 67047 67048 67049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 67050 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 67051 67052 if test -d "${TOPDIR}/src/jdk.crypto.ec/share/native/libsunec/impl"; then 67053 ENABLE_INTREE_EC=true 67054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67055 $as_echo "yes" >&6; } 67056 else 67057 ENABLE_INTREE_EC=false 67058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67059 $as_echo "no" >&6; } 67060 fi 67061 67062 67063 67064 67065 # Check whether --enable-jtreg-failure-handler was given. 67066 if test "${enable_jtreg_failure_handler+set}" = set; then : 67067 enableval=$enable_jtreg_failure_handler; 67068 fi 67069 67070 67071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jtreg failure handler should be built" >&5 67072 $as_echo_n "checking if jtreg failure handler should be built... " >&6; } 67073 67074 if test "x$enable_jtreg_failure_handler" = "xyes"; then 67075 if test "x$JT_HOME" = "x"; then 67076 as_fn_error $? "Cannot enable jtreg failure handler without jtreg." "$LINENO" 5 67077 else 67078 BUILD_FAILURE_HANDLER=true 67079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67080 $as_echo "yes, forced" >&6; } 67081 fi 67082 elif test "x$enable_jtreg_failure_handler" = "xno"; then 67083 BUILD_FAILURE_HANDLER=false 67084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67085 $as_echo "no, forced" >&6; } 67086 elif test "x$enable_jtreg_failure_handler" = "xauto" \ 67087 || test "x$enable_jtreg_failure_handler" = "x"; then 67088 if test "x$JT_HOME" = "x"; then 67089 BUILD_FAILURE_HANDLER=false 67090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, missing jtreg" >&5 67091 $as_echo "no, missing jtreg" >&6; } 67092 else 67093 BUILD_FAILURE_HANDLER=true 67094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, jtreg present" >&5 67095 $as_echo "yes, jtreg present" >&6; } 67096 fi 67097 else 67098 as_fn_error $? "Invalid value for --enable-jtreg-failure-handler: $enable_jtreg_failure_handler" "$LINENO" 5 67099 fi 67100 67101 67102 67103 67104 # Check whether --enable-generate-classlist was given. 67105 if test "${enable_generate_classlist+set}" = set; then : 67106 enableval=$enable_generate_classlist; 67107 fi 67108 67109 67110 # Check if it's likely that it's possible to generate the classlist. Depending 67111 # on exact jvm configuration it could be possible anyway. 67112 if test "x$ENABLE_CDS" = "xtrue" && ( [[ " $JVM_VARIANTS " =~ " server " ]] || [[ " $JVM_VARIANTS " =~ " client " ]] ); then 67113 ENABLE_GENERATE_CLASSLIST_POSSIBLE="true" 67114 else 67115 ENABLE_GENERATE_CLASSLIST_POSSIBLE="false" 67116 fi 67117 67118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the CDS classlist generation should be enabled" >&5 67119 $as_echo_n "checking if the CDS classlist generation should be enabled... " >&6; } 67120 if test "x$enable_generate_classlist" = "xyes"; then 67121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, forced" >&5 67122 $as_echo "yes, forced" >&6; } 67123 ENABLE_GENERATE_CLASSLIST="true" 67124 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xfalse"; then 67125 { $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 67126 $as_echo "$as_me: WARNING: Generation of classlist might not be possible with JVM Variants $JVM_VARIANTS and enable-cds=$ENABLE_CDS" >&2;} 67127 fi 67128 elif test "x$enable_generate_classlist" = "xno"; then 67129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 67130 $as_echo "no, forced" >&6; } 67131 ENABLE_GENERATE_CLASSLIST="false" 67132 elif test "x$enable_generate_classlist" = "x"; then 67133 if test "x$ENABLE_GENERATE_CLASSLIST_POSSIBLE" = "xtrue"; then 67134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 67135 $as_echo "yes" >&6; } 67136 ENABLE_GENERATE_CLASSLIST="true" 67137 else 67138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67139 $as_echo "no" >&6; } 67140 ENABLE_GENERATE_CLASSLIST="false" 67141 fi 67142 else 67143 as_fn_error $? "Invalid value for --enable-generate-classlist: $enable_generate_classlist" "$LINENO" 5 67144 fi 67145 67146 67147 67148 67149 ############################################################################### 67150 # 67151 # Configure parts of the build that only affect the build performance, 67152 # not the result. 67153 # 67154 ############################################################################### 67155 67156 67157 # How many cores do we have on this build system? 67158 67159 # Check whether --with-num-cores was given. 67160 if test "${with_num_cores+set}" = set; then : 67161 withval=$with_num_cores; 67162 fi 67163 67164 if test "x$with_num_cores" = x; then 67165 # The number of cores were not specified, try to probe them. 67166 67167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 67168 $as_echo_n "checking for number of cores... " >&6; } 67169 NUM_CORES=1 67170 FOUND_CORES=no 67171 67172 if test -f /proc/cpuinfo; then 67173 # Looks like a Linux (or cygwin) system 67174 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 67175 FOUND_CORES=yes 67176 elif test -x /usr/sbin/psrinfo; then 67177 # Looks like a Solaris system 67178 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 67179 FOUND_CORES=yes 67180 elif test -x /usr/sbin/sysctl; then 67181 # Looks like a MacOSX system 67182 NUM_CORES=`/usr/sbin/sysctl -n hw.ncpu` 67183 FOUND_CORES=yes 67184 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 67185 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 67186 FOUND_CORES=yes 67187 elif test -n "$NUMBER_OF_PROCESSORS"; then 67188 # On windows, look in the env 67189 NUM_CORES=$NUMBER_OF_PROCESSORS 67190 FOUND_CORES=yes 67191 fi 67192 67193 if test "x$FOUND_CORES" = xyes; then 67194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 67195 $as_echo "$NUM_CORES" >&6; } 67196 else 67197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 67198 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 67199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 67200 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 67201 fi 67202 67203 else 67204 NUM_CORES=$with_num_cores 67205 fi 67206 67207 67208 67209 # How much memory do we have on this build system? 67210 67211 # Check whether --with-memory-size was given. 67212 if test "${with_memory_size+set}" = set; then : 67213 withval=$with_memory_size; 67214 fi 67215 67216 if test "x$with_memory_size" = x; then 67217 # The memory size was not specified, try to probe it. 67218 67219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 67220 $as_echo_n "checking for memory size... " >&6; } 67221 # Default to 1024 MB 67222 MEMORY_SIZE=1024 67223 FOUND_MEM=no 67224 67225 if test -f /proc/meminfo; then 67226 # Looks like a Linux (or cygwin) system 67227 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 67228 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 67229 FOUND_MEM=yes 67230 elif test -x /usr/sbin/prtconf; then 67231 # Looks like a Solaris or AIX system 67232 MEMORY_SIZE=`/usr/sbin/prtconf 2> /dev/null | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 67233 FOUND_MEM=yes 67234 elif test -x /usr/sbin/sysctl; then 67235 # Looks like a MacOSX system 67236 MEMORY_SIZE=`/usr/sbin/sysctl -n hw.memsize` 67237 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67238 FOUND_MEM=yes 67239 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 67240 # Windows, but without cygwin 67241 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 67242 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 67243 FOUND_MEM=yes 67244 fi 67245 67246 if test "x$FOUND_MEM" = xyes; then 67247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 67248 $as_echo "$MEMORY_SIZE MB" >&6; } 67249 else 67250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 67251 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 67252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 67253 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 67254 fi 67255 67256 else 67257 MEMORY_SIZE=$with_memory_size 67258 fi 67259 67260 67261 67262 # Provide a decent default number of parallel jobs for make depending on 67263 # number of cores, amount of memory and machine architecture. 67264 67265 # Check whether --with-jobs was given. 67266 if test "${with_jobs+set}" = set; then : 67267 withval=$with_jobs; 67268 fi 67269 67270 if test "x$with_jobs" = x; then 67271 # Number of jobs was not specified, calculate. 67272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 67273 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 67274 # Approximate memory in GB. 67275 memory_gb=`expr $MEMORY_SIZE / 1024` 67276 # Pick the lowest of memory in gb and number of cores. 67277 if test "$memory_gb" -lt "$NUM_CORES"; then 67278 JOBS="$memory_gb" 67279 else 67280 JOBS="$NUM_CORES" 67281 fi 67282 if test "$JOBS" -eq "0"; then 67283 JOBS=1 67284 fi 67285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 67286 $as_echo "$JOBS" >&6; } 67287 else 67288 JOBS=$with_jobs 67289 fi 67290 67291 67292 67293 # The number of test jobs will be chosen automatically if TEST_JOBS is 0 67294 67295 # Check whether --with-test-jobs was given. 67296 if test "${with_test_jobs+set}" = set; then : 67297 withval=$with_test_jobs; 67298 fi 67299 67300 if test "x$with_test_jobs" = x; then 67301 TEST_JOBS=0 67302 else 67303 TEST_JOBS=$with_test_jobs 67304 fi 67305 67306 67307 67308 # Setup arguments for the boot jdk (after cores and memory have been setup) 67309 67310 ############################################################################## 67311 # 67312 # Specify jvm options for anything that is run with the Boot JDK. 67313 # Not all JVM:s accept the same arguments on the command line. 67314 # 67315 67316 # Check whether --with-boot-jdk-jvmargs was given. 67317 if test "${with_boot_jdk_jvmargs+set}" = set; then : 67318 withval=$with_boot_jdk_jvmargs; 67319 fi 67320 67321 67322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 67323 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 67324 67325 # Force en-US environment 67326 67327 $ECHO "Check if jvm arg is ok: -Duser.language=en -Duser.country=US" >&5 67328 $ECHO "Command: $JAVA -Duser.language=en -Duser.country=US -version" >&5 67329 OUTPUT=`$JAVA -Duser.language=en -Duser.country=US -version 2>&1` 67330 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67331 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67332 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67333 boot_jdk_jvmargs="$boot_jdk_jvmargs -Duser.language=en -Duser.country=US" 67334 JVM_ARG_OK=true 67335 else 67336 $ECHO "Arg failed:" >&5 67337 $ECHO "$OUTPUT" >&5 67338 JVM_ARG_OK=false 67339 fi 67340 67341 67342 if test "x$BOOTJDK_USE_LOCAL_CDS" = xtrue; then 67343 # Use our own CDS archive 67344 67345 $ECHO "Check if jvm arg is ok: $boot_jdk_cds_args -Xshare:auto" >&5 67346 $ECHO "Command: $JAVA $boot_jdk_cds_args -Xshare:auto -version" >&5 67347 OUTPUT=`$JAVA $boot_jdk_cds_args -Xshare:auto -version 2>&1` 67348 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67349 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67350 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67351 boot_jdk_jvmargs="$boot_jdk_jvmargs $boot_jdk_cds_args -Xshare:auto" 67352 JVM_ARG_OK=true 67353 else 67354 $ECHO "Arg failed:" >&5 67355 $ECHO "$OUTPUT" >&5 67356 JVM_ARG_OK=false 67357 fi 67358 67359 else 67360 # Otherwise optimistically use the system-wide one, if one is present 67361 67362 $ECHO "Check if jvm arg is ok: -Xshare:auto" >&5 67363 $ECHO "Command: $JAVA -Xshare:auto -version" >&5 67364 OUTPUT=`$JAVA -Xshare:auto -version 2>&1` 67365 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67366 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67367 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67368 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xshare:auto" 67369 JVM_ARG_OK=true 67370 else 67371 $ECHO "Arg failed:" >&5 67372 $ECHO "$OUTPUT" >&5 67373 JVM_ARG_OK=false 67374 fi 67375 67376 fi 67377 67378 # Apply user provided options. 67379 67380 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 67381 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 67382 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 67383 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67384 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67385 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67386 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 67387 JVM_ARG_OK=true 67388 else 67389 $ECHO "Arg failed:" >&5 67390 $ECHO "$OUTPUT" >&5 67391 JVM_ARG_OK=false 67392 fi 67393 67394 67395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 67396 $as_echo "$boot_jdk_jvmargs" >&6; } 67397 67398 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 67399 JAVA_FLAGS=$boot_jdk_jvmargs 67400 67401 67402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 67403 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 67404 67405 # Starting amount of heap memory. 67406 67407 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 67408 $ECHO "Command: $JAVA -Xms64M -version" >&5 67409 OUTPUT=`$JAVA -Xms64M -version 2>&1` 67410 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67411 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67412 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67413 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 67414 JVM_ARG_OK=true 67415 else 67416 $ECHO "Arg failed:" >&5 67417 $ECHO "$OUTPUT" >&5 67418 JVM_ARG_OK=false 67419 fi 67420 67421 BOOTCYCLE_JVM_ARGS_BIG=-Xms64M 67422 67423 # Maximum amount of heap memory and stack size. 67424 JVM_HEAP_LIMIT_32="1024" 67425 # Running a 64 bit JVM allows for and requires a bigger heap 67426 JVM_HEAP_LIMIT_64="1600" 67427 STACK_SIZE_32=768 67428 STACK_SIZE_64=1536 67429 JVM_HEAP_LIMIT_GLOBAL=`expr $MEMORY_SIZE / 2` 67430 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_32"; then 67431 JVM_HEAP_LIMIT_32=$JVM_HEAP_LIMIT_GLOBAL 67432 fi 67433 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "$JVM_HEAP_LIMIT_64"; then 67434 JVM_HEAP_LIMIT_64=$JVM_HEAP_LIMIT_GLOBAL 67435 fi 67436 if test "$JVM_HEAP_LIMIT_GLOBAL" -lt "512"; then 67437 JVM_HEAP_LIMIT_32=512 67438 JVM_HEAP_LIMIT_64=512 67439 fi 67440 67441 if test "x$BOOT_JDK_BITS" = "x32"; then 67442 STACK_SIZE=$STACK_SIZE_32 67443 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_32 67444 else 67445 STACK_SIZE=$STACK_SIZE_64 67446 JVM_MAX_HEAP=$JVM_HEAP_LIMIT_64 67447 fi 67448 67449 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 67450 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 67451 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 67452 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67453 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67454 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67455 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 67456 JVM_ARG_OK=true 67457 else 67458 $ECHO "Arg failed:" >&5 67459 $ECHO "$OUTPUT" >&5 67460 JVM_ARG_OK=false 67461 fi 67462 67463 67464 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 67465 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 67466 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 67467 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67468 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67469 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67470 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 67471 JVM_ARG_OK=true 67472 else 67473 $ECHO "Arg failed:" >&5 67474 $ECHO "$OUTPUT" >&5 67475 JVM_ARG_OK=false 67476 fi 67477 67478 67479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 67480 $as_echo "$boot_jdk_jvmargs_big" >&6; } 67481 67482 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 67483 67484 67485 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 67486 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_32 67487 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_32 67488 else 67489 BOOTCYCLE_MAX_HEAP=$JVM_HEAP_LIMIT_64 67490 BOOTCYCLE_STACK_SIZE=$STACK_SIZE_64 67491 fi 67492 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -Xmx${BOOTCYCLE_MAX_HEAP}M" 67493 BOOTCYCLE_JVM_ARGS_BIG="$BOOTCYCLE_JVM_ARGS_BIG -XX:ThreadStackSize=$BOOTCYCLE_STACK_SIZE" 67494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for bootcycle boot jdk java command for big workloads" >&5 67495 $as_echo_n "checking flags for bootcycle boot jdk java command for big workloads... " >&6; } 67496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOTCYCLE_JVM_ARGS_BIG" >&5 67497 $as_echo "$BOOTCYCLE_JVM_ARGS_BIG" >&6; } 67498 67499 67500 # By default, the main javac compilations use big 67501 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_BIG" 67502 67503 67504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 67505 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 67506 67507 # Use serial gc for small short lived tools if possible 67508 67509 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 67510 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 67511 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 67512 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67513 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67514 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67515 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 67516 JVM_ARG_OK=true 67517 else 67518 $ECHO "Arg failed:" >&5 67519 $ECHO "$OUTPUT" >&5 67520 JVM_ARG_OK=false 67521 fi 67522 67523 67524 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 67525 $ECHO "Command: $JAVA -Xms32M -version" >&5 67526 OUTPUT=`$JAVA -Xms32M -version 2>&1` 67527 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67528 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67529 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67530 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 67531 JVM_ARG_OK=true 67532 else 67533 $ECHO "Arg failed:" >&5 67534 $ECHO "$OUTPUT" >&5 67535 JVM_ARG_OK=false 67536 fi 67537 67538 67539 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 67540 $ECHO "Command: $JAVA -Xmx512M -version" >&5 67541 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 67542 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67543 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67544 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67545 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 67546 JVM_ARG_OK=true 67547 else 67548 $ECHO "Arg failed:" >&5 67549 $ECHO "$OUTPUT" >&5 67550 JVM_ARG_OK=false 67551 fi 67552 67553 67554 $ECHO "Check if jvm arg is ok: -XX:TieredStopAtLevel=1" >&5 67555 $ECHO "Command: $JAVA -XX:TieredStopAtLevel=1 -version" >&5 67556 OUTPUT=`$JAVA -XX:TieredStopAtLevel=1 -version 2>&1` 67557 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67558 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67559 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67560 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:TieredStopAtLevel=1" 67561 JVM_ARG_OK=true 67562 else 67563 $ECHO "Arg failed:" >&5 67564 $ECHO "$OUTPUT" >&5 67565 JVM_ARG_OK=false 67566 fi 67567 67568 67569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 67570 $as_echo "$boot_jdk_jvmargs_small" >&6; } 67571 67572 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 67573 67574 67575 JAVA_TOOL_FLAGS_SMALL="" 67576 for f in $JAVA_FLAGS_SMALL; do 67577 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 67578 done 67579 67580 67581 67582 # Setup smart javac (after cores and memory have been setup) 67583 67584 67585 # Check whether --with-sjavac-server-java was given. 67586 if test "${with_sjavac_server_java+set}" = set; then : 67587 withval=$with_sjavac_server_java; 67588 fi 67589 67590 67591 if test "x$with_sjavac_server_java" != x; then 67592 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 67593 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 67594 if test "x$FOUND_VERSION" = x; then 67595 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 67596 fi 67597 else 67598 SJAVAC_SERVER_JAVA="$JAVA" 67599 fi 67600 67601 67602 if test "$MEMORY_SIZE" -gt "3000"; then 67603 if "$JAVA" -version 2>&1 | $GREP -q "64-Bit"; then 67604 JVM_64BIT=true 67605 fi 67606 fi 67607 67608 MX_VALUE=`expr $MEMORY_SIZE / 2` 67609 if test "$JVM_64BIT" = true; then 67610 # Set ms lower than mx since more than one instance of the server might 67611 # get launched at the same time before they figure out which instance won. 67612 MS_VALUE=512 67613 if test "$MX_VALUE" -gt "2048"; then 67614 MX_VALUE=2048 67615 fi 67616 else 67617 MS_VALUE=256 67618 if test "$MX_VALUE" -gt "1500"; then 67619 MX_VALUE=1500 67620 fi 67621 fi 67622 if test "$MX_VALUE" -lt "512"; then 67623 MX_VALUE=512 67624 fi 67625 67626 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 67627 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 67628 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 67629 FOUND_WARN=`$ECHO "$OUTPUT" | $GREP -i warn` 67630 FOUND_VERSION=`$ECHO $OUTPUT | $GREP " version \""` 67631 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 67632 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 67633 JVM_ARG_OK=true 67634 else 67635 $ECHO "Arg failed:" >&5 67636 $ECHO "$OUTPUT" >&5 67637 JVM_ARG_OK=false 67638 fi 67639 67640 67641 67642 # Check whether --enable-sjavac was given. 67643 if test "${enable_sjavac+set}" = set; then : 67644 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 67645 else 67646 ENABLE_SJAVAC="no" 67647 fi 67648 67649 if test "x$JVM_ARG_OK" = "xfalse"; then 67650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 67651 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 67652 ENABLE_SJAVAC="no" 67653 fi 67654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 67655 $as_echo_n "checking whether to use sjavac... " >&6; } 67656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 67657 $as_echo "$ENABLE_SJAVAC" >&6; } 67658 67659 67660 # Check whether --enable-javac-server was given. 67661 if test "${enable_javac_server+set}" = set; then : 67662 enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}" 67663 else 67664 ENABLE_JAVAC_SERVER="yes" 67665 fi 67666 67667 if test "x$JVM_ARG_OK" = "xfalse"; then 67668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&5 67669 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling javac server" >&2;} 67670 ENABLE_JAVAC_SERVER="no" 67671 fi 67672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use javac server" >&5 67673 $as_echo_n "checking whether to use javac server... " >&6; } 67674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5 67675 $as_echo "$ENABLE_JAVAC_SERVER" >&6; } 67676 67677 67678 if test "x$ENABLE_JAVAC_SERVER" = "xyes" || test "x$ENABLE_SJAVAC" = "xyes"; then 67679 # When using a server javac, the small client instances do not need much 67680 # resources. 67681 JAVA_FLAGS_JAVAC="$JAVA_FLAGS_SMALL" 67682 fi 67683 67684 67685 # Setup use of icecc if requested 67686 67687 # Check whether --enable-icecc was given. 67688 if test "${enable_icecc+set}" = set; then : 67689 enableval=$enable_icecc; 67690 fi 67691 67692 67693 if test "x${enable_icecc}" = "xyes"; then 67694 67695 67696 67697 # Publish this variable in the help. 67698 67699 67700 if [ -z "${ICECC_CMD+x}" ]; then 67701 # The variable is not set by user, try to locate tool using the code snippet 67702 for ac_prog in icecc 67703 do 67704 # Extract the first word of "$ac_prog", so it can be a program name with args. 67705 set dummy $ac_prog; ac_word=$2 67706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67707 $as_echo_n "checking for $ac_word... " >&6; } 67708 if ${ac_cv_path_ICECC_CMD+:} false; then : 67709 $as_echo_n "(cached) " >&6 67710 else 67711 case $ICECC_CMD in 67712 [\\/]* | ?:[\\/]*) 67713 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67714 ;; 67715 *) 67716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67717 for as_dir in $PATH 67718 do 67719 IFS=$as_save_IFS 67720 test -z "$as_dir" && as_dir=. 67721 for ac_exec_ext in '' $ac_executable_extensions; do 67722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67723 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67725 break 2 67726 fi 67727 done 67728 done 67729 IFS=$as_save_IFS 67730 67731 ;; 67732 esac 67733 fi 67734 ICECC_CMD=$ac_cv_path_ICECC_CMD 67735 if test -n "$ICECC_CMD"; then 67736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67737 $as_echo "$ICECC_CMD" >&6; } 67738 else 67739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67740 $as_echo "no" >&6; } 67741 fi 67742 67743 67744 test -n "$ICECC_CMD" && break 67745 done 67746 67747 else 67748 # The variable is set, but is it from the command line or the environment? 67749 67750 # Try to remove the string !ICECC_CMD! from our list. 67751 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CMD!/} 67752 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67753 # If it failed, the variable was not from the command line. Ignore it, 67754 # but warn the user (except for BASH, which is always set by the calling BASH). 67755 if test "xICECC_CMD" != xBASH; then 67756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&5 67757 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CMD from the environment. Use command line variables instead." >&2;} 67758 fi 67759 # Try to locate tool using the code snippet 67760 for ac_prog in icecc 67761 do 67762 # Extract the first word of "$ac_prog", so it can be a program name with args. 67763 set dummy $ac_prog; ac_word=$2 67764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67765 $as_echo_n "checking for $ac_word... " >&6; } 67766 if ${ac_cv_path_ICECC_CMD+:} false; then : 67767 $as_echo_n "(cached) " >&6 67768 else 67769 case $ICECC_CMD in 67770 [\\/]* | ?:[\\/]*) 67771 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67772 ;; 67773 *) 67774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67775 for as_dir in $PATH 67776 do 67777 IFS=$as_save_IFS 67778 test -z "$as_dir" && as_dir=. 67779 for ac_exec_ext in '' $ac_executable_extensions; do 67780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67781 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67783 break 2 67784 fi 67785 done 67786 done 67787 IFS=$as_save_IFS 67788 67789 ;; 67790 esac 67791 fi 67792 ICECC_CMD=$ac_cv_path_ICECC_CMD 67793 if test -n "$ICECC_CMD"; then 67794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67795 $as_echo "$ICECC_CMD" >&6; } 67796 else 67797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67798 $as_echo "no" >&6; } 67799 fi 67800 67801 67802 test -n "$ICECC_CMD" && break 67803 done 67804 67805 else 67806 # If it succeeded, then it was overridden by the user. We will use it 67807 # for the tool. 67808 67809 # First remove it from the list of overridden variables, so we can test 67810 # for unknown variables in the end. 67811 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 67812 67813 # Check if we try to supply an empty value 67814 if test "x$ICECC_CMD" = x; then 67815 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CMD= (no value)" >&5 67816 $as_echo "$as_me: Setting user supplied tool ICECC_CMD= (no value)" >&6;} 67817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67818 $as_echo_n "checking for ICECC_CMD... " >&6; } 67819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 67820 $as_echo "disabled" >&6; } 67821 else 67822 # Check if the provided tool contains a complete path. 67823 tool_specified="$ICECC_CMD" 67824 tool_basename="${tool_specified##*/}" 67825 if test "x$tool_basename" = "x$tool_specified"; then 67826 # A command without a complete path is provided, search $PATH. 67827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CMD=$tool_basename" >&5 67828 $as_echo "$as_me: Will search for user supplied tool ICECC_CMD=$tool_basename" >&6;} 67829 # Extract the first word of "$tool_basename", so it can be a program name with args. 67830 set dummy $tool_basename; ac_word=$2 67831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67832 $as_echo_n "checking for $ac_word... " >&6; } 67833 if ${ac_cv_path_ICECC_CMD+:} false; then : 67834 $as_echo_n "(cached) " >&6 67835 else 67836 case $ICECC_CMD in 67837 [\\/]* | ?:[\\/]*) 67838 ac_cv_path_ICECC_CMD="$ICECC_CMD" # Let the user override the test with a path. 67839 ;; 67840 *) 67841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67842 for as_dir in $PATH 67843 do 67844 IFS=$as_save_IFS 67845 test -z "$as_dir" && as_dir=. 67846 for ac_exec_ext in '' $ac_executable_extensions; do 67847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67848 ac_cv_path_ICECC_CMD="$as_dir/$ac_word$ac_exec_ext" 67849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67850 break 2 67851 fi 67852 done 67853 done 67854 IFS=$as_save_IFS 67855 67856 ;; 67857 esac 67858 fi 67859 ICECC_CMD=$ac_cv_path_ICECC_CMD 67860 if test -n "$ICECC_CMD"; then 67861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CMD" >&5 67862 $as_echo "$ICECC_CMD" >&6; } 67863 else 67864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67865 $as_echo "no" >&6; } 67866 fi 67867 67868 67869 if test "x$ICECC_CMD" = x; then 67870 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 67871 fi 67872 else 67873 # Otherwise we believe it is a complete path. Use it as it is. 67874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CMD=$tool_specified" >&5 67875 $as_echo "$as_me: Will use user supplied tool ICECC_CMD=$tool_specified" >&6;} 67876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CMD" >&5 67877 $as_echo_n "checking for ICECC_CMD... " >&6; } 67878 if test ! -x "$tool_specified"; then 67879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 67880 $as_echo "not found" >&6; } 67881 as_fn_error $? "User supplied tool ICECC_CMD=$tool_specified does not exist or is not executable" "$LINENO" 5 67882 fi 67883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 67884 $as_echo "$tool_specified" >&6; } 67885 fi 67886 fi 67887 fi 67888 67889 fi 67890 67891 67892 67893 if test "x$ICECC_CMD" = x; then 67894 as_fn_error $? "Could not find required tool for ICECC_CMD" "$LINENO" 5 67895 fi 67896 67897 67898 old_path="$PATH" 67899 67900 # Look for icecc-create-env in some known places 67901 PATH="$PATH:/usr/lib/icecc:/usr/lib64/icecc" 67902 67903 67904 67905 # Publish this variable in the help. 67906 67907 67908 if [ -z "${ICECC_CREATE_ENV+x}" ]; then 67909 # The variable is not set by user, try to locate tool using the code snippet 67910 for ac_prog in icecc-create-env 67911 do 67912 # Extract the first word of "$ac_prog", so it can be a program name with args. 67913 set dummy $ac_prog; ac_word=$2 67914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67915 $as_echo_n "checking for $ac_word... " >&6; } 67916 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 67917 $as_echo_n "(cached) " >&6 67918 else 67919 case $ICECC_CREATE_ENV in 67920 [\\/]* | ?:[\\/]*) 67921 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 67922 ;; 67923 *) 67924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67925 for as_dir in $PATH 67926 do 67927 IFS=$as_save_IFS 67928 test -z "$as_dir" && as_dir=. 67929 for ac_exec_ext in '' $ac_executable_extensions; do 67930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67931 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 67932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67933 break 2 67934 fi 67935 done 67936 done 67937 IFS=$as_save_IFS 67938 67939 ;; 67940 esac 67941 fi 67942 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 67943 if test -n "$ICECC_CREATE_ENV"; then 67944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 67945 $as_echo "$ICECC_CREATE_ENV" >&6; } 67946 else 67947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 67948 $as_echo "no" >&6; } 67949 fi 67950 67951 67952 test -n "$ICECC_CREATE_ENV" && break 67953 done 67954 67955 else 67956 # The variable is set, but is it from the command line or the environment? 67957 67958 # Try to remove the string !ICECC_CREATE_ENV! from our list. 67959 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_CREATE_ENV!/} 67960 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 67961 # If it failed, the variable was not from the command line. Ignore it, 67962 # but warn the user (except for BASH, which is always set by the calling BASH). 67963 if test "xICECC_CREATE_ENV" != xBASH; then 67964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&5 67965 $as_echo "$as_me: WARNING: Ignoring value of ICECC_CREATE_ENV from the environment. Use command line variables instead." >&2;} 67966 fi 67967 # Try to locate tool using the code snippet 67968 for ac_prog in icecc-create-env 67969 do 67970 # Extract the first word of "$ac_prog", so it can be a program name with args. 67971 set dummy $ac_prog; ac_word=$2 67972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 67973 $as_echo_n "checking for $ac_word... " >&6; } 67974 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 67975 $as_echo_n "(cached) " >&6 67976 else 67977 case $ICECC_CREATE_ENV in 67978 [\\/]* | ?:[\\/]*) 67979 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 67980 ;; 67981 *) 67982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 67983 for as_dir in $PATH 67984 do 67985 IFS=$as_save_IFS 67986 test -z "$as_dir" && as_dir=. 67987 for ac_exec_ext in '' $ac_executable_extensions; do 67988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 67989 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 67990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 67991 break 2 67992 fi 67993 done 67994 done 67995 IFS=$as_save_IFS 67996 67997 ;; 67998 esac 67999 fi 68000 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68001 if test -n "$ICECC_CREATE_ENV"; then 68002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68003 $as_echo "$ICECC_CREATE_ENV" >&6; } 68004 else 68005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68006 $as_echo "no" >&6; } 68007 fi 68008 68009 68010 test -n "$ICECC_CREATE_ENV" && break 68011 done 68012 68013 else 68014 # If it succeeded, then it was overridden by the user. We will use it 68015 # for the tool. 68016 68017 # First remove it from the list of overridden variables, so we can test 68018 # for unknown variables in the end. 68019 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68020 68021 # Check if we try to supply an empty value 68022 if test "x$ICECC_CREATE_ENV" = x; then 68023 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&5 68024 $as_echo "$as_me: Setting user supplied tool ICECC_CREATE_ENV= (no value)" >&6;} 68025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68026 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68028 $as_echo "disabled" >&6; } 68029 else 68030 # Check if the provided tool contains a complete path. 68031 tool_specified="$ICECC_CREATE_ENV" 68032 tool_basename="${tool_specified##*/}" 68033 if test "x$tool_basename" = "x$tool_specified"; then 68034 # A command without a complete path is provided, search $PATH. 68035 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&5 68036 $as_echo "$as_me: Will search for user supplied tool ICECC_CREATE_ENV=$tool_basename" >&6;} 68037 # Extract the first word of "$tool_basename", so it can be a program name with args. 68038 set dummy $tool_basename; ac_word=$2 68039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68040 $as_echo_n "checking for $ac_word... " >&6; } 68041 if ${ac_cv_path_ICECC_CREATE_ENV+:} false; then : 68042 $as_echo_n "(cached) " >&6 68043 else 68044 case $ICECC_CREATE_ENV in 68045 [\\/]* | ?:[\\/]*) 68046 ac_cv_path_ICECC_CREATE_ENV="$ICECC_CREATE_ENV" # Let the user override the test with a path. 68047 ;; 68048 *) 68049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68050 for as_dir in $PATH 68051 do 68052 IFS=$as_save_IFS 68053 test -z "$as_dir" && as_dir=. 68054 for ac_exec_ext in '' $ac_executable_extensions; do 68055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68056 ac_cv_path_ICECC_CREATE_ENV="$as_dir/$ac_word$ac_exec_ext" 68057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68058 break 2 68059 fi 68060 done 68061 done 68062 IFS=$as_save_IFS 68063 68064 ;; 68065 esac 68066 fi 68067 ICECC_CREATE_ENV=$ac_cv_path_ICECC_CREATE_ENV 68068 if test -n "$ICECC_CREATE_ENV"; then 68069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_CREATE_ENV" >&5 68070 $as_echo "$ICECC_CREATE_ENV" >&6; } 68071 else 68072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68073 $as_echo "no" >&6; } 68074 fi 68075 68076 68077 if test "x$ICECC_CREATE_ENV" = x; then 68078 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68079 fi 68080 else 68081 # Otherwise we believe it is a complete path. Use it as it is. 68082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&5 68083 $as_echo "$as_me: Will use user supplied tool ICECC_CREATE_ENV=$tool_specified" >&6;} 68084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_CREATE_ENV" >&5 68085 $as_echo_n "checking for ICECC_CREATE_ENV... " >&6; } 68086 if test ! -x "$tool_specified"; then 68087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68088 $as_echo "not found" >&6; } 68089 as_fn_error $? "User supplied tool ICECC_CREATE_ENV=$tool_specified does not exist or is not executable" "$LINENO" 5 68090 fi 68091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68092 $as_echo "$tool_specified" >&6; } 68093 fi 68094 fi 68095 fi 68096 68097 fi 68098 68099 68100 68101 if test "x$ICECC_CREATE_ENV" = x; then 68102 as_fn_error $? "Could not find required tool for ICECC_CREATE_ENV" "$LINENO" 5 68103 fi 68104 68105 68106 # Use icecc-create-env to create a minimal compilation environment that can 68107 # be sent to the other hosts in the icecream cluster. 68108 icecc_create_env_log="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env.log" 68109 ${MKDIR} -p ${CONFIGURESUPPORT_OUTPUTDIR}/icecc 68110 # Older versions of icecc does not have the --gcc parameter 68111 if ${ICECC_CREATE_ENV} | $GREP -q -e --gcc; then 68112 icecc_gcc_arg="--gcc" 68113 fi 68114 if test "x${TOOLCHAIN_TYPE}" = "xgcc"; then 68115 68116 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68117 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${CC} ${CXX} > \ 68118 ${icecc_create_env_log} 2>&1 ) 68119 if test "$?" != "0"; then 68120 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68121 $as_echo "$as_me: icecc-create-env output:" >&6;} 68122 cat \ 68123 ${icecc_create_env_log} 68124 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68125 fi 68126 68127 elif test "x$TOOLCHAIN_TYPE" = "xclang"; then 68128 # For clang, the icecc compilerwrapper is needed. It usually resides next 68129 # to icecc-create-env. 68130 68131 68132 68133 # Publish this variable in the help. 68134 68135 68136 if [ -z "${ICECC_WRAPPER+x}" ]; then 68137 # The variable is not set by user, try to locate tool using the code snippet 68138 for ac_prog in compilerwrapper 68139 do 68140 # Extract the first word of "$ac_prog", so it can be a program name with args. 68141 set dummy $ac_prog; ac_word=$2 68142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68143 $as_echo_n "checking for $ac_word... " >&6; } 68144 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68145 $as_echo_n "(cached) " >&6 68146 else 68147 case $ICECC_WRAPPER in 68148 [\\/]* | ?:[\\/]*) 68149 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68150 ;; 68151 *) 68152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68153 for as_dir in $PATH 68154 do 68155 IFS=$as_save_IFS 68156 test -z "$as_dir" && as_dir=. 68157 for ac_exec_ext in '' $ac_executable_extensions; do 68158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68159 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68161 break 2 68162 fi 68163 done 68164 done 68165 IFS=$as_save_IFS 68166 68167 ;; 68168 esac 68169 fi 68170 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68171 if test -n "$ICECC_WRAPPER"; then 68172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68173 $as_echo "$ICECC_WRAPPER" >&6; } 68174 else 68175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68176 $as_echo "no" >&6; } 68177 fi 68178 68179 68180 test -n "$ICECC_WRAPPER" && break 68181 done 68182 68183 else 68184 # The variable is set, but is it from the command line or the environment? 68185 68186 # Try to remove the string !ICECC_WRAPPER! from our list. 68187 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ICECC_WRAPPER!/} 68188 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68189 # If it failed, the variable was not from the command line. Ignore it, 68190 # but warn the user (except for BASH, which is always set by the calling BASH). 68191 if test "xICECC_WRAPPER" != xBASH; then 68192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&5 68193 $as_echo "$as_me: WARNING: Ignoring value of ICECC_WRAPPER from the environment. Use command line variables instead." >&2;} 68194 fi 68195 # Try to locate tool using the code snippet 68196 for ac_prog in compilerwrapper 68197 do 68198 # Extract the first word of "$ac_prog", so it can be a program name with args. 68199 set dummy $ac_prog; ac_word=$2 68200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68201 $as_echo_n "checking for $ac_word... " >&6; } 68202 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68203 $as_echo_n "(cached) " >&6 68204 else 68205 case $ICECC_WRAPPER in 68206 [\\/]* | ?:[\\/]*) 68207 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68208 ;; 68209 *) 68210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68211 for as_dir in $PATH 68212 do 68213 IFS=$as_save_IFS 68214 test -z "$as_dir" && as_dir=. 68215 for ac_exec_ext in '' $ac_executable_extensions; do 68216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68217 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68219 break 2 68220 fi 68221 done 68222 done 68223 IFS=$as_save_IFS 68224 68225 ;; 68226 esac 68227 fi 68228 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68229 if test -n "$ICECC_WRAPPER"; then 68230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68231 $as_echo "$ICECC_WRAPPER" >&6; } 68232 else 68233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68234 $as_echo "no" >&6; } 68235 fi 68236 68237 68238 test -n "$ICECC_WRAPPER" && break 68239 done 68240 68241 else 68242 # If it succeeded, then it was overridden by the user. We will use it 68243 # for the tool. 68244 68245 # First remove it from the list of overridden variables, so we can test 68246 # for unknown variables in the end. 68247 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68248 68249 # Check if we try to supply an empty value 68250 if test "x$ICECC_WRAPPER" = x; then 68251 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool ICECC_WRAPPER= (no value)" >&5 68252 $as_echo "$as_me: Setting user supplied tool ICECC_WRAPPER= (no value)" >&6;} 68253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68254 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68256 $as_echo "disabled" >&6; } 68257 else 68258 # Check if the provided tool contains a complete path. 68259 tool_specified="$ICECC_WRAPPER" 68260 tool_basename="${tool_specified##*/}" 68261 if test "x$tool_basename" = "x$tool_specified"; then 68262 # A command without a complete path is provided, search $PATH. 68263 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&5 68264 $as_echo "$as_me: Will search for user supplied tool ICECC_WRAPPER=$tool_basename" >&6;} 68265 # Extract the first word of "$tool_basename", so it can be a program name with args. 68266 set dummy $tool_basename; ac_word=$2 68267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68268 $as_echo_n "checking for $ac_word... " >&6; } 68269 if ${ac_cv_path_ICECC_WRAPPER+:} false; then : 68270 $as_echo_n "(cached) " >&6 68271 else 68272 case $ICECC_WRAPPER in 68273 [\\/]* | ?:[\\/]*) 68274 ac_cv_path_ICECC_WRAPPER="$ICECC_WRAPPER" # Let the user override the test with a path. 68275 ;; 68276 *) 68277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68278 for as_dir in $PATH 68279 do 68280 IFS=$as_save_IFS 68281 test -z "$as_dir" && as_dir=. 68282 for ac_exec_ext in '' $ac_executable_extensions; do 68283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68284 ac_cv_path_ICECC_WRAPPER="$as_dir/$ac_word$ac_exec_ext" 68285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68286 break 2 68287 fi 68288 done 68289 done 68290 IFS=$as_save_IFS 68291 68292 ;; 68293 esac 68294 fi 68295 ICECC_WRAPPER=$ac_cv_path_ICECC_WRAPPER 68296 if test -n "$ICECC_WRAPPER"; then 68297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICECC_WRAPPER" >&5 68298 $as_echo "$ICECC_WRAPPER" >&6; } 68299 else 68300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68301 $as_echo "no" >&6; } 68302 fi 68303 68304 68305 if test "x$ICECC_WRAPPER" = x; then 68306 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68307 fi 68308 else 68309 # Otherwise we believe it is a complete path. Use it as it is. 68310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&5 68311 $as_echo "$as_me: Will use user supplied tool ICECC_WRAPPER=$tool_specified" >&6;} 68312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICECC_WRAPPER" >&5 68313 $as_echo_n "checking for ICECC_WRAPPER... " >&6; } 68314 if test ! -x "$tool_specified"; then 68315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68316 $as_echo "not found" >&6; } 68317 as_fn_error $? "User supplied tool ICECC_WRAPPER=$tool_specified does not exist or is not executable" "$LINENO" 5 68318 fi 68319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68320 $as_echo "$tool_specified" >&6; } 68321 fi 68322 fi 68323 fi 68324 68325 fi 68326 68327 68328 68329 if test "x$ICECC_WRAPPER" = x; then 68330 as_fn_error $? "Could not find required tool for ICECC_WRAPPER" "$LINENO" 5 68331 fi 68332 68333 68334 68335 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68336 && ${ICECC_CREATE_ENV} --clang ${CC} ${ICECC_WRAPPER} > ${icecc_create_env_log} 2>&1 ) 68337 if test "$?" != "0"; then 68338 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68339 $as_echo "$as_me: icecc-create-env output:" >&6;} 68340 cat ${icecc_create_env_log} 68341 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68342 fi 68343 68344 else 68345 as_fn_error $? "Can only create icecc compiler packages for toolchain types gcc and clang" "$LINENO" 5 68346 fi 68347 PATH="$old_path" 68348 # The bundle with the compiler gets a name based on checksums. Parse log file 68349 # to find it. 68350 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log}`" 68351 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68352 if test ! -f ${ICECC_ENV_BUNDLE}; then 68353 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68354 fi 68355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for target compiler" >&5 68356 $as_echo_n "checking for icecc build environment for target compiler... " >&6; } 68357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68358 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68359 ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${CC} ICECC_CXX=${CXX} ${ICECC_CMD}" 68360 68361 if test "x${COMPILE_TYPE}" = "xcross"; then 68362 # If cross compiling, create a separate env package for the build compiler 68363 # Assume "gcc" or "cc" is gcc and "clang" is clang. Otherwise bail. 68364 icecc_create_env_log_build="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/icecc_create_env_build.log" 68365 if test "x${BUILD_CC##*/}" = "xgcc" || test "x${BUILD_CC##*/}" = "xcc"; then 68366 68367 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68368 && ${ICECC_CREATE_ENV} ${icecc_gcc_arg} ${BUILD_CC} ${BUILD_CXX} > \ 68369 ${icecc_create_env_log_build} 2>&1 ) 68370 if test "$?" != "0"; then 68371 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68372 $as_echo "$as_me: icecc-create-env output:" >&6;} 68373 cat \ 68374 ${icecc_create_env_log_build} 68375 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68376 fi 68377 68378 elif test "x${BUILD_CC##*/}" = "xclang"; then 68379 68380 ( cd ${CONFIGURESUPPORT_OUTPUTDIR}/icecc \ 68381 && ${ICECC_CREATE_ENV} --clang ${BUILD_CC} ${ICECC_WRAPPER} > ${icecc_create_env_log_build} 2>&1 ) 68382 if test "$?" != "0"; then 68383 { $as_echo "$as_me:${as_lineno-$LINENO}: icecc-create-env output:" >&5 68384 $as_echo "$as_me: icecc-create-env output:" >&6;} 68385 cat ${icecc_create_env_log_build} 68386 as_fn_error $? "Failed to create icecc compiler environment" "$LINENO" 5 68387 fi 68388 68389 else 68390 as_fn_error $? "Cannot create icecc compiler package for ${BUILD_CC}" "$LINENO" 5 68391 fi 68392 ICECC_ENV_BUNDLE_BASENAME="`${SED} -n '/^creating/s/creating //p' ${icecc_create_env_log_build}`" 68393 ICECC_ENV_BUNDLE="${CONFIGURESUPPORT_OUTPUTDIR}/icecc/${ICECC_ENV_BUNDLE_BASENAME}" 68394 if test ! -f ${ICECC_ENV_BUNDLE}; then 68395 as_fn_error $? "icecc-create-env did not produce an environment ${ICECC_ENV_BUNDLE}" "$LINENO" 5 68396 fi 68397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icecc build environment for build compiler" >&5 68398 $as_echo_n "checking for icecc build environment for build compiler... " >&6; } 68399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ICECC_ENV_BUNDLE}" >&5 68400 $as_echo "${ICECC_ENV_BUNDLE}" >&6; } 68401 BUILD_ICECC="ICECC_VERSION=${ICECC_ENV_BUNDLE} ICECC_CC=${BUILD_CC} \ 68402 ICECC_CXX=${BUILD_CXX} ${ICECC_CMD}" 68403 else 68404 BUILD_ICECC="${ICECC}" 68405 fi 68406 68407 68408 fi 68409 68410 68411 # Can the C/C++ compiler use precompiled headers? 68412 68413 68414 ############################################################################### 68415 # 68416 # Can the C/C++ compiler use precompiled headers? 68417 # 68418 # Check whether --enable-precompiled-headers was given. 68419 if test "${enable_precompiled_headers+set}" = set; then : 68420 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 68421 else 68422 ENABLE_PRECOMPH=yes 68423 fi 68424 68425 68426 USE_PRECOMPILED_HEADER=true 68427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking If precompiled header is enabled" >&5 68428 $as_echo_n "checking If precompiled header is enabled... " >&6; } 68429 if test "x$ENABLE_PRECOMPH" = xno; then 68430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, forced" >&5 68431 $as_echo "no, forced" >&6; } 68432 USE_PRECOMPILED_HEADER=false 68433 elif test "x$ICECC" != "x"; then 68434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work effectively with icecc" >&5 68435 $as_echo "no, does not work effectively with icecc" >&6; } 68436 USE_PRECOMPILED_HEADER=false 68437 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 68438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with Solaris Studio" >&5 68439 $as_echo "no, does not work with Solaris Studio" >&6; } 68440 USE_PRECOMPILED_HEADER=false 68441 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 68442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, does not work with xlc" >&5 68443 $as_echo "no, does not work with xlc" >&6; } 68444 USE_PRECOMPILED_HEADER=false 68445 else 68446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68447 $as_echo "yes" >&6; } 68448 fi 68449 68450 if test "x$ENABLE_PRECOMPH" = xyes; then 68451 # Check that the compiler actually supports precomp headers. 68452 if test "x$TOOLCHAIN_TYPE" = xgcc; then 68453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 68454 $as_echo_n "checking that precompiled headers work... " >&6; } 68455 echo "int alfa();" > conftest.h 68456 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 68457 if test ! -f conftest.hpp.gch; then 68458 USE_PRECOMPILED_HEADER=false 68459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68460 $as_echo "no" >&6; } 68461 else 68462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68463 $as_echo "yes" >&6; } 68464 fi 68465 $RM conftest.h conftest.hpp.gch 68466 fi 68467 fi 68468 68469 68470 68471 68472 # Setup use of ccache, if available 68473 68474 # Check whether --enable-ccache was given. 68475 if test "${enable_ccache+set}" = set; then : 68476 enableval=$enable_ccache; 68477 fi 68478 68479 68480 CCACHE_STATUS= 68481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 68482 $as_echo_n "checking is ccache enabled... " >&6; } 68483 if test "x$enable_ccache" = xyes; then 68484 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 68485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68486 $as_echo "yes" >&6; } 68487 OLD_PATH="$PATH" 68488 if test "x$TOOLCHAIN_PATH" != x; then 68489 PATH=$TOOLCHAIN_PATH:$PATH 68490 fi 68491 68492 68493 68494 # Publish this variable in the help. 68495 68496 68497 if [ -z "${CCACHE+x}" ]; then 68498 # The variable is not set by user, try to locate tool using the code snippet 68499 for ac_prog in ccache 68500 do 68501 # Extract the first word of "$ac_prog", so it can be a program name with args. 68502 set dummy $ac_prog; ac_word=$2 68503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68504 $as_echo_n "checking for $ac_word... " >&6; } 68505 if ${ac_cv_path_CCACHE+:} false; then : 68506 $as_echo_n "(cached) " >&6 68507 else 68508 case $CCACHE in 68509 [\\/]* | ?:[\\/]*) 68510 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68511 ;; 68512 *) 68513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68514 for as_dir in $PATH 68515 do 68516 IFS=$as_save_IFS 68517 test -z "$as_dir" && as_dir=. 68518 for ac_exec_ext in '' $ac_executable_extensions; do 68519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68520 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68522 break 2 68523 fi 68524 done 68525 done 68526 IFS=$as_save_IFS 68527 68528 ;; 68529 esac 68530 fi 68531 CCACHE=$ac_cv_path_CCACHE 68532 if test -n "$CCACHE"; then 68533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68534 $as_echo "$CCACHE" >&6; } 68535 else 68536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68537 $as_echo "no" >&6; } 68538 fi 68539 68540 68541 test -n "$CCACHE" && break 68542 done 68543 68544 else 68545 # The variable is set, but is it from the command line or the environment? 68546 68547 # Try to remove the string !CCACHE! from our list. 68548 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 68549 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 68550 # If it failed, the variable was not from the command line. Ignore it, 68551 # but warn the user (except for BASH, which is always set by the calling BASH). 68552 if test "xCCACHE" != xBASH; then 68553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 68554 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 68555 fi 68556 # Try to locate tool using the code snippet 68557 for ac_prog in ccache 68558 do 68559 # Extract the first word of "$ac_prog", so it can be a program name with args. 68560 set dummy $ac_prog; ac_word=$2 68561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68562 $as_echo_n "checking for $ac_word... " >&6; } 68563 if ${ac_cv_path_CCACHE+:} false; then : 68564 $as_echo_n "(cached) " >&6 68565 else 68566 case $CCACHE in 68567 [\\/]* | ?:[\\/]*) 68568 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68569 ;; 68570 *) 68571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68572 for as_dir in $PATH 68573 do 68574 IFS=$as_save_IFS 68575 test -z "$as_dir" && as_dir=. 68576 for ac_exec_ext in '' $ac_executable_extensions; do 68577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68578 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68580 break 2 68581 fi 68582 done 68583 done 68584 IFS=$as_save_IFS 68585 68586 ;; 68587 esac 68588 fi 68589 CCACHE=$ac_cv_path_CCACHE 68590 if test -n "$CCACHE"; then 68591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68592 $as_echo "$CCACHE" >&6; } 68593 else 68594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68595 $as_echo "no" >&6; } 68596 fi 68597 68598 68599 test -n "$CCACHE" && break 68600 done 68601 68602 else 68603 # If it succeeded, then it was overridden by the user. We will use it 68604 # for the tool. 68605 68606 # First remove it from the list of overridden variables, so we can test 68607 # for unknown variables in the end. 68608 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 68609 68610 # Check if we try to supply an empty value 68611 if test "x$CCACHE" = x; then 68612 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting user supplied tool CCACHE= (no value)" >&5 68613 $as_echo "$as_me: Setting user supplied tool CCACHE= (no value)" >&6;} 68614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68615 $as_echo_n "checking for CCACHE... " >&6; } 68616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 68617 $as_echo "disabled" >&6; } 68618 else 68619 # Check if the provided tool contains a complete path. 68620 tool_specified="$CCACHE" 68621 tool_basename="${tool_specified##*/}" 68622 if test "x$tool_basename" = "x$tool_specified"; then 68623 # A command without a complete path is provided, search $PATH. 68624 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 68625 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 68626 # Extract the first word of "$tool_basename", so it can be a program name with args. 68627 set dummy $tool_basename; ac_word=$2 68628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 68629 $as_echo_n "checking for $ac_word... " >&6; } 68630 if ${ac_cv_path_CCACHE+:} false; then : 68631 $as_echo_n "(cached) " >&6 68632 else 68633 case $CCACHE in 68634 [\\/]* | ?:[\\/]*) 68635 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 68636 ;; 68637 *) 68638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 68639 for as_dir in $PATH 68640 do 68641 IFS=$as_save_IFS 68642 test -z "$as_dir" && as_dir=. 68643 for ac_exec_ext in '' $ac_executable_extensions; do 68644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 68645 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 68646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 68647 break 2 68648 fi 68649 done 68650 done 68651 IFS=$as_save_IFS 68652 68653 ;; 68654 esac 68655 fi 68656 CCACHE=$ac_cv_path_CCACHE 68657 if test -n "$CCACHE"; then 68658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 68659 $as_echo "$CCACHE" >&6; } 68660 else 68661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68662 $as_echo "no" >&6; } 68663 fi 68664 68665 68666 if test "x$CCACHE" = x; then 68667 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 68668 fi 68669 else 68670 # Otherwise we believe it is a complete path. Use it as it is. 68671 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 68672 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 68673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 68674 $as_echo_n "checking for CCACHE... " >&6; } 68675 if test ! -x "$tool_specified"; then 68676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 68677 $as_echo "not found" >&6; } 68678 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 68679 fi 68680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 68681 $as_echo "$tool_specified" >&6; } 68682 fi 68683 fi 68684 fi 68685 68686 fi 68687 68688 68689 68690 if test "x$CCACHE" = x; then 68691 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 68692 fi 68693 68694 68695 PATH="$OLD_PATH" 68696 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 68697 CCACHE_STATUS="Active ($CCACHE_VERSION)" 68698 else 68699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68700 $as_echo "no" >&6; } 68701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 68702 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 68703 fi 68704 elif test "x$enable_ccache" = xno; then 68705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 68706 $as_echo "no, explicitly disabled" >&6; } 68707 CCACHE_STATUS="Disabled" 68708 elif test "x$enable_ccache" = x; then 68709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68710 $as_echo "no" >&6; } 68711 else 68712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 68713 $as_echo "unknown" >&6; } 68714 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 68715 fi 68716 68717 68718 68719 # Check whether --with-ccache-dir was given. 68720 if test "${with_ccache_dir+set}" = set; then : 68721 withval=$with_ccache_dir; 68722 fi 68723 68724 68725 if test "x$with_ccache_dir" != x; then 68726 # When using a non home ccache directory, assume the use is to share ccache files 68727 # with other users. Thus change the umask. 68728 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 68729 if test "x$CCACHE" = x; then 68730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 68731 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 68732 fi 68733 fi 68734 68735 if test "x$CCACHE" != x; then 68736 68737 if test "x$CCACHE" != x; then 68738 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 68739 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68740 $GREP -e '^1\.' -e '^2\.' -e '^3\.0\.' -e '^3\.1\.'` 68741 if test "x$HAS_BAD_CCACHE" != "x"; then 68742 as_fn_error $? "On macosx, ccache 3.2 or later is required, found $CCACHE_VERSION" "$LINENO" 5 68743 fi 68744 fi 68745 if test "x$USE_PRECOMPILED_HEADER" = "xtrue"; then 68746 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 68747 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]$'` 68748 if test "x$HAS_BAD_CCACHE" != "x"; then 68749 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 68750 fi 68751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 68752 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 68753 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 68754 PUSHED_FLAGS="$CXXFLAGS" 68755 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 68756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68757 /* end confdefs.h. */ 68758 68759 int 68760 main () 68761 { 68762 68763 ; 68764 return 0; 68765 } 68766 _ACEOF 68767 if ac_fn_cxx_try_compile "$LINENO"; then : 68768 CC_KNOWS_CCACHE_TRICK=yes 68769 else 68770 CC_KNOWS_CCACHE_TRICK=no 68771 fi 68772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 68773 CXXFLAGS="$PUSHED_FLAGS" 68774 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 68775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 68776 $as_echo "yes" >&6; } 68777 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 68778 68779 CCACHE_SLOPPINESS=pch_defines,time_macros 68780 else 68781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 68782 $as_echo "no" >&6; } 68783 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 68784 fi 68785 fi 68786 68787 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 68788 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 68789 68790 if test "x$SET_CCACHE_DIR" != x; then 68791 mkdir -p $CCACHE_DIR > /dev/null 2>&1 68792 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 68793 fi 68794 fi 68795 68796 fi 68797 68798 68799 ############################################################################### 68800 # 68801 # And now the finish... 68802 # 68803 ############################################################################### 68804 68805 # Check for some common pitfalls 68806 68807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 68808 file_to_test="$TOPDIR/LICENSE" 68809 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 68810 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 68811 fi 68812 fi 68813 68814 68815 # Did user specify any unknown variables? 68816 68817 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 68818 # Replace the separating ! with spaces before presenting for end user. 68819 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 68820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 68821 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 68822 fi 68823 68824 68825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 68826 $as_echo_n "checking if build directory is on local disk... " >&6; } 68827 68828 # df -l lists only local disks; if the given directory is not found then 68829 # a non-zero exit code is given 68830 if test "x$DF" = x; then 68831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 68832 # msys does not have df; use Windows "net use" instead. 68833 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 68834 if test "x$IS_NETWORK_DISK" = x; then 68835 OUTPUT_DIR_IS_LOCAL="yes" 68836 else 68837 OUTPUT_DIR_IS_LOCAL="no" 68838 fi 68839 else 68840 # No df here, say it's local 68841 OUTPUT_DIR_IS_LOCAL="yes" 68842 fi 68843 else 68844 # JDK-8189619 68845 # df on AIX does not understand -l. On modern AIXes it understands "-T local" which 68846 # is the same. On older AIXes we just continue to live with a "not local build" warning. 68847 if test "x$OPENJDK_TARGET_OS" = xaix; then 68848 DF_LOCAL_ONLY_OPTION='-T local' 68849 else 68850 DF_LOCAL_ONLY_OPTION='-l' 68851 fi 68852 if $DF $DF_LOCAL_ONLY_OPTION $OUTPUTDIR > /dev/null 2>&1; then 68853 OUTPUT_DIR_IS_LOCAL="yes" 68854 else 68855 OUTPUT_DIR_IS_LOCAL="no" 68856 fi 68857 fi 68858 68859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 68860 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 68861 68862 68863 68864 # Check if the user has any old-style ALT_ variables set. 68865 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 68866 68867 # Before generating output files, test if they exist. If they do, this is a reconfigure. 68868 # Since we can't properly handle the dependencies for this, warn the user about the situation 68869 if test -e $OUTPUTDIR/spec.gmk; then 68870 IS_RECONFIGURE=yes 68871 else 68872 IS_RECONFIGURE=no 68873 fi 68874 68875 68876 # At the end, call the custom hook. (Dummy macro if no custom sources available) 68877 68878 68879 # This needs to be done after CUSTOM_LATE_HOOK since we can setup custom features. 68880 68881 # Keep feature lists sorted and free of duplicates 68882 JVM_FEATURES_server="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_server | $SORT -u))" 68883 JVM_FEATURES_client="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_client | $SORT -u))" 68884 JVM_FEATURES_core="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_core | $SORT -u))" 68885 JVM_FEATURES_minimal="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_minimal | $SORT -u))" 68886 JVM_FEATURES_zero="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_zero | $SORT -u))" 68887 JVM_FEATURES_custom="$($ECHO $($PRINTF '%s\n' $JVM_FEATURES_custom | $SORT -u))" 68888 68889 # Validate features 68890 for variant in $JVM_VARIANTS; do 68891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking JVM features for JVM variant '$variant'" >&5 68892 $as_echo_n "checking JVM features for JVM variant '$variant'... " >&6; } 68893 features_var_name=JVM_FEATURES_$variant 68894 JVM_FEATURES_TO_TEST=${!features_var_name} 68895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JVM_FEATURES_TO_TEST" >&5 68896 $as_echo "$JVM_FEATURES_TO_TEST" >&6; } 68897 NEEDLE=${VALID_JVM_FEATURES// /$'\n'} 68898 STACK=${JVM_FEATURES_TO_TEST// /$'\n'} 68899 INVALID_FEATURES=`$GREP -Fvx "${NEEDLE}" <<< "${STACK}"` 68900 if test "x$INVALID_FEATURES" != x; then 68901 as_fn_error $? "Invalid JVM feature(s): $INVALID_FEATURES" "$LINENO" 5 68902 fi 68903 done 68904 68905 68906 # We're messing a bit with internal autoconf variables to put the config.status 68907 # in the output directory instead of the current directory. 68908 CONFIG_STATUS="$CONFIGURESUPPORT_OUTPUTDIR/config.status" 68909 68910 # Create the actual output files. Now the main work of configure is done. 68911 cat >confcache <<\_ACEOF 68912 # This file is a shell script that caches the results of configure 68913 # tests run on this system so they can be shared between configure 68914 # scripts and configure runs, see configure's option --config-cache. 68915 # It is not useful on other systems. If it contains results you don't 68916 # want to keep, you may remove or edit it. 68917 # 68918 # config.status only pays attention to the cache file if you give it 68919 # the --recheck option to rerun configure. 68920 # 68921 # `ac_cv_env_foo' variables (set or unset) will be overridden when 68922 # loading this file, other *unset* `ac_cv_foo' will be assigned the 68923 # following values. 68924 68925 _ACEOF 68926 68927 # The following way of writing the cache mishandles newlines in values, 68928 # but we know of no workaround that is simple, portable, and efficient. 68929 # So, we kill variables containing newlines. 68930 # Ultrix sh set writes to stderr and can't be redirected directly, 68931 # and sets the high bit in the cache file unless we assign to the vars. 68932 ( 68933 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 68934 eval ac_val=\$$ac_var 68935 case $ac_val in #( 68936 *${as_nl}*) 68937 case $ac_var in #( 68938 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 68939 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 68940 esac 68941 case $ac_var in #( 68942 _ | IFS | as_nl) ;; #( 68943 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 68944 *) { eval $ac_var=; unset $ac_var;} ;; 68945 esac ;; 68946 esac 68947 done 68948 68949 (set) 2>&1 | 68950 case $as_nl`(ac_space=' '; set) 2>&1` in #( 68951 *${as_nl}ac_space=\ *) 68952 # `set' does not quote correctly, so add quotes: double-quote 68953 # substitution turns \\\\ into \\, and sed turns \\ into \. 68954 sed -n \ 68955 "s/'/'\\\\''/g; 68956 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 68957 ;; #( 68958 *) 68959 # `set' quotes correctly as required by POSIX, so do not add quotes. 68960 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 68961 ;; 68962 esac | 68963 sort 68964 ) | 68965 sed ' 68966 /^ac_cv_env_/b end 68967 t clear 68968 :clear 68969 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 68970 t end 68971 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 68972 :end' >>confcache 68973 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 68974 if test -w "$cache_file"; then 68975 if test "x$cache_file" != "x/dev/null"; then 68976 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 68977 $as_echo "$as_me: updating cache $cache_file" >&6;} 68978 if test ! -f "$cache_file" || test -h "$cache_file"; then 68979 cat confcache >"$cache_file" 68980 else 68981 case $cache_file in #( 68982 */* | ?:*) 68983 mv -f confcache "$cache_file"$$ && 68984 mv -f "$cache_file"$$ "$cache_file" ;; #( 68985 *) 68986 mv -f confcache "$cache_file" ;; 68987 esac 68988 fi 68989 fi 68990 else 68991 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 68992 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 68993 fi 68994 fi 68995 rm -f confcache 68996 68997 test "x$prefix" = xNONE && prefix=$ac_default_prefix 68998 # Let make expand exec_prefix. 68999 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 69000 69001 # Transform confdefs.h into DEFS. 69002 # Protect against shell expansion while executing Makefile rules. 69003 # Protect against Makefile macro expansion. 69004 # 69005 # If the first sed substitution is executed (which looks for macros that 69006 # take arguments), then branch to the quote section. Otherwise, 69007 # look for a macro that doesn't take arguments. 69008 ac_script=' 69009 :mline 69010 /\\$/{ 69011 N 69012 s,\\\n,, 69013 b mline 69014 } 69015 t clear 69016 :clear 69017 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 69018 t quote 69019 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 69020 t quote 69021 b any 69022 :quote 69023 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 69024 s/\[/\\&/g 69025 s/\]/\\&/g 69026 s/\$/$$/g 69027 H 69028 :any 69029 ${ 69030 g 69031 s/^\n// 69032 s/\n/ /g 69033 p 69034 } 69035 ' 69036 DEFS=`sed -n "$ac_script" confdefs.h` 69037 69038 69039 ac_libobjs= 69040 ac_ltlibobjs= 69041 U= 69042 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 69043 # 1. Remove the extension, and $U if already installed. 69044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 69045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 69046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 69047 # will be set to the directory where LIBOBJS objects are built. 69048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 69049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 69050 done 69051 LIBOBJS=$ac_libobjs 69052 69053 LTLIBOBJS=$ac_ltlibobjs 69054 69055 69056 69057 : "${CONFIG_STATUS=./config.status}" 69058 ac_write_fail=0 69059 ac_clean_files_save=$ac_clean_files 69060 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 69061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 69062 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 69063 as_write_fail=0 69064 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 69065 #! $SHELL 69066 # Generated by $as_me. 69067 # Run this file to recreate the current configuration. 69068 # Compiler output produced by configure, useful for debugging 69069 # configure, is in config.log if it exists. 69070 69071 debug=false 69072 ac_cs_recheck=false 69073 ac_cs_silent=false 69074 69075 SHELL=\${CONFIG_SHELL-$SHELL} 69076 export SHELL 69077 _ASEOF 69078 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 69079 ## -------------------- ## 69080 ## M4sh Initialization. ## 69081 ## -------------------- ## 69082 69083 # Be more Bourne compatible 69084 DUALCASE=1; export DUALCASE # for MKS sh 69085 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 69086 emulate sh 69087 NULLCMD=: 69088 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 69089 # is contrary to our usage. Disable this feature. 69090 alias -g '${1+"$@"}'='"$@"' 69091 setopt NO_GLOB_SUBST 69092 else 69093 case `(set -o) 2>/dev/null` in #( 69094 *posix*) : 69095 set -o posix ;; #( 69096 *) : 69097 ;; 69098 esac 69099 fi 69100 69101 69102 as_nl=' 69103 ' 69104 export as_nl 69105 # Printing a long string crashes Solaris 7 /usr/bin/printf. 69106 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 69107 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 69108 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 69109 # Prefer a ksh shell builtin over an external printf program on Solaris, 69110 # but without wasting forks for bash or zsh. 69111 if test -z "$BASH_VERSION$ZSH_VERSION" \ 69112 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 69113 as_echo='print -r --' 69114 as_echo_n='print -rn --' 69115 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 69116 as_echo='printf %s\n' 69117 as_echo_n='printf %s' 69118 else 69119 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 69120 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 69121 as_echo_n='/usr/ucb/echo -n' 69122 else 69123 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 69124 as_echo_n_body='eval 69125 arg=$1; 69126 case $arg in #( 69127 *"$as_nl"*) 69128 expr "X$arg" : "X\\(.*\\)$as_nl"; 69129 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 69130 esac; 69131 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 69132 ' 69133 export as_echo_n_body 69134 as_echo_n='sh -c $as_echo_n_body as_echo' 69135 fi 69136 export as_echo_body 69137 as_echo='sh -c $as_echo_body as_echo' 69138 fi 69139 69140 # The user is always right. 69141 if test "${PATH_SEPARATOR+set}" != set; then 69142 PATH_SEPARATOR=: 69143 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 69144 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 69145 PATH_SEPARATOR=';' 69146 } 69147 fi 69148 69149 69150 # IFS 69151 # We need space, tab and new line, in precisely that order. Quoting is 69152 # there to prevent editors from complaining about space-tab. 69153 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 69154 # splitting by setting IFS to empty value.) 69155 IFS=" "" $as_nl" 69156 69157 # Find who we are. Look in the path if we contain no directory separator. 69158 as_myself= 69159 case $0 in #(( 69160 *[\\/]* ) as_myself=$0 ;; 69161 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 69162 for as_dir in $PATH 69163 do 69164 IFS=$as_save_IFS 69165 test -z "$as_dir" && as_dir=. 69166 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 69167 done 69168 IFS=$as_save_IFS 69169 69170 ;; 69171 esac 69172 # We did not find ourselves, most probably we were run as `sh COMMAND' 69173 # in which case we are not to be found in the path. 69174 if test "x$as_myself" = x; then 69175 as_myself=$0 69176 fi 69177 if test ! -f "$as_myself"; then 69178 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 69179 exit 1 69180 fi 69181 69182 # Unset variables that we do not need and which cause bugs (e.g. in 69183 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 69184 # suppresses any "Segmentation fault" message there. '((' could 69185 # trigger a bug in pdksh 5.2.14. 69186 for as_var in BASH_ENV ENV MAIL MAILPATH 69187 do eval test x\${$as_var+set} = xset \ 69188 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 69189 done 69190 PS1='$ ' 69191 PS2='> ' 69192 PS4='+ ' 69193 69194 # NLS nuisances. 69195 LC_ALL=C 69196 export LC_ALL 69197 LANGUAGE=C 69198 export LANGUAGE 69199 69200 # CDPATH. 69201 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 69202 69203 69204 # as_fn_error STATUS ERROR [LINENO LOG_FD] 69205 # ---------------------------------------- 69206 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 69207 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 69208 # script with STATUS, using 1 if that was 0. 69209 as_fn_error () 69210 { 69211 as_status=$1; test $as_status -eq 0 && as_status=1 69212 if test "$4"; then 69213 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 69214 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 69215 fi 69216 $as_echo "$as_me: error: $2" >&2 69217 as_fn_exit $as_status 69218 } # as_fn_error 69219 69220 69221 # as_fn_set_status STATUS 69222 # ----------------------- 69223 # Set $? to STATUS, without forking. 69224 as_fn_set_status () 69225 { 69226 return $1 69227 } # as_fn_set_status 69228 69229 # as_fn_exit STATUS 69230 # ----------------- 69231 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 69232 as_fn_exit () 69233 { 69234 set +e 69235 as_fn_set_status $1 69236 exit $1 69237 } # as_fn_exit 69238 69239 # as_fn_unset VAR 69240 # --------------- 69241 # Portably unset VAR. 69242 as_fn_unset () 69243 { 69244 { eval $1=; unset $1;} 69245 } 69246 as_unset=as_fn_unset 69247 # as_fn_append VAR VALUE 69248 # ---------------------- 69249 # Append the text in VALUE to the end of the definition contained in VAR. Take 69250 # advantage of any shell optimizations that allow amortized linear growth over 69251 # repeated appends, instead of the typical quadratic growth present in naive 69252 # implementations. 69253 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 69254 eval 'as_fn_append () 69255 { 69256 eval $1+=\$2 69257 }' 69258 else 69259 as_fn_append () 69260 { 69261 eval $1=\$$1\$2 69262 } 69263 fi # as_fn_append 69264 69265 # as_fn_arith ARG... 69266 # ------------------ 69267 # Perform arithmetic evaluation on the ARGs, and store the result in the 69268 # global $as_val. Take advantage of shells that can avoid forks. The arguments 69269 # must be portable across $(()) and expr. 69270 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 69271 eval 'as_fn_arith () 69272 { 69273 as_val=$(( $* )) 69274 }' 69275 else 69276 as_fn_arith () 69277 { 69278 as_val=`expr "$@" || test $? -eq 1` 69279 } 69280 fi # as_fn_arith 69281 69282 69283 if expr a : '\(a\)' >/dev/null 2>&1 && 69284 test "X`expr 00001 : '.*\(...\)'`" = X001; then 69285 as_expr=expr 69286 else 69287 as_expr=false 69288 fi 69289 69290 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 69291 as_basename=basename 69292 else 69293 as_basename=false 69294 fi 69295 69296 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 69297 as_dirname=dirname 69298 else 69299 as_dirname=false 69300 fi 69301 69302 as_me=`$as_basename -- "$0" || 69303 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 69304 X"$0" : 'X\(//\)$' \| \ 69305 X"$0" : 'X\(/\)' \| . 2>/dev/null || 69306 $as_echo X/"$0" | 69307 sed '/^.*\/\([^/][^/]*\)\/*$/{ 69308 s//\1/ 69309 q 69310 } 69311 /^X\/\(\/\/\)$/{ 69312 s//\1/ 69313 q 69314 } 69315 /^X\/\(\/\).*/{ 69316 s//\1/ 69317 q 69318 } 69319 s/.*/./; q'` 69320 69321 # Avoid depending upon Character Ranges. 69322 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 69323 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 69324 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 69325 as_cr_digits='0123456789' 69326 as_cr_alnum=$as_cr_Letters$as_cr_digits 69327 69328 ECHO_C= ECHO_N= ECHO_T= 69329 case `echo -n x` in #((((( 69330 -n*) 69331 case `echo 'xy\c'` in 69332 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 69333 xy) ECHO_C='\c';; 69334 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 69335 ECHO_T=' ';; 69336 esac;; 69337 *) 69338 ECHO_N='-n';; 69339 esac 69340 69341 rm -f conf$$ conf$$.exe conf$$.file 69342 if test -d conf$$.dir; then 69343 rm -f conf$$.dir/conf$$.file 69344 else 69345 rm -f conf$$.dir 69346 mkdir conf$$.dir 2>/dev/null 69347 fi 69348 if (echo >conf$$.file) 2>/dev/null; then 69349 if ln -s conf$$.file conf$$ 2>/dev/null; then 69350 as_ln_s='ln -s' 69351 # ... but there are two gotchas: 69352 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 69353 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 69354 # In both cases, we have to default to `cp -pR'. 69355 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 69356 as_ln_s='cp -pR' 69357 elif ln conf$$.file conf$$ 2>/dev/null; then 69358 as_ln_s=ln 69359 else 69360 as_ln_s='cp -pR' 69361 fi 69362 else 69363 as_ln_s='cp -pR' 69364 fi 69365 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 69366 rmdir conf$$.dir 2>/dev/null 69367 69368 69369 # as_fn_mkdir_p 69370 # ------------- 69371 # Create "$as_dir" as a directory, including parents if necessary. 69372 as_fn_mkdir_p () 69373 { 69374 69375 case $as_dir in #( 69376 -*) as_dir=./$as_dir;; 69377 esac 69378 test -d "$as_dir" || eval $as_mkdir_p || { 69379 as_dirs= 69380 while :; do 69381 case $as_dir in #( 69382 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 69383 *) as_qdir=$as_dir;; 69384 esac 69385 as_dirs="'$as_qdir' $as_dirs" 69386 as_dir=`$as_dirname -- "$as_dir" || 69387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69388 X"$as_dir" : 'X\(//\)[^/]' \| \ 69389 X"$as_dir" : 'X\(//\)$' \| \ 69390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 69391 $as_echo X"$as_dir" | 69392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69393 s//\1/ 69394 q 69395 } 69396 /^X\(\/\/\)[^/].*/{ 69397 s//\1/ 69398 q 69399 } 69400 /^X\(\/\/\)$/{ 69401 s//\1/ 69402 q 69403 } 69404 /^X\(\/\).*/{ 69405 s//\1/ 69406 q 69407 } 69408 s/.*/./; q'` 69409 test -d "$as_dir" && break 69410 done 69411 test -z "$as_dirs" || eval "mkdir $as_dirs" 69412 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 69413 69414 69415 } # as_fn_mkdir_p 69416 if mkdir -p . 2>/dev/null; then 69417 as_mkdir_p='mkdir -p "$as_dir"' 69418 else 69419 test -d ./-p && rmdir ./-p 69420 as_mkdir_p=false 69421 fi 69422 69423 69424 # as_fn_executable_p FILE 69425 # ----------------------- 69426 # Test if FILE is an executable regular file. 69427 as_fn_executable_p () 69428 { 69429 test -f "$1" && test -x "$1" 69430 } # as_fn_executable_p 69431 as_test_x='test -x' 69432 as_executable_p=as_fn_executable_p 69433 69434 # Sed expression to map a string onto a valid CPP name. 69435 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 69436 69437 # Sed expression to map a string onto a valid variable name. 69438 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 69439 69440 69441 exec 6>&1 69442 ## ----------------------------------- ## 69443 ## Main body of $CONFIG_STATUS script. ## 69444 ## ----------------------------------- ## 69445 _ASEOF 69446 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 69447 69448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69449 # Save the log message, to keep $0 and so on meaningful, and to 69450 # report actual input values of CONFIG_FILES etc. instead of their 69451 # values after options handling. 69452 ac_log=" 69453 This file was extended by OpenJDK $as_me jdk9, which was 69454 generated by GNU Autoconf 2.69. Invocation command line was 69455 69456 CONFIG_FILES = $CONFIG_FILES 69457 CONFIG_HEADERS = $CONFIG_HEADERS 69458 CONFIG_LINKS = $CONFIG_LINKS 69459 CONFIG_COMMANDS = $CONFIG_COMMANDS 69460 $ $0 $@ 69461 69462 on `(hostname || uname -n) 2>/dev/null | sed 1q` 69463 " 69464 69465 _ACEOF 69466 69467 case $ac_config_files in *" 69468 "*) set x $ac_config_files; shift; ac_config_files=$*;; 69469 esac 69470 69471 69472 69473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69474 # Files that config.status was made for. 69475 config_files="$ac_config_files" 69476 69477 _ACEOF 69478 69479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69480 ac_cs_usage="\ 69481 \`$as_me' instantiates files and other configuration actions 69482 from templates according to the current configuration. Unless the files 69483 and actions are specified as TAGs, all are instantiated by default. 69484 69485 Usage: $0 [OPTION]... [TAG]... 69486 69487 -h, --help print this help, then exit 69488 -V, --version print version number and configuration settings, then exit 69489 --config print configuration, then exit 69490 -q, --quiet, --silent 69491 do not print progress messages 69492 -d, --debug don't remove temporary files 69493 --recheck update $as_me by reconfiguring in the same conditions 69494 --file=FILE[:TEMPLATE] 69495 instantiate the configuration file FILE 69496 69497 Configuration files: 69498 $config_files 69499 69500 Report bugs to <build-dev@openjdk.java.net>. 69501 OpenJDK home page: <http://openjdk.java.net>." 69502 69503 _ACEOF 69504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69505 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 69506 ac_cs_version="\\ 69507 OpenJDK config.status jdk9 69508 configured by $0, generated by GNU Autoconf 2.69, 69509 with options \\"\$ac_cs_config\\" 69510 69511 Copyright (C) 2012 Free Software Foundation, Inc. 69512 This config.status script is free software; the Free Software Foundation 69513 gives unlimited permission to copy, distribute and modify it." 69514 69515 ac_pwd='$ac_pwd' 69516 srcdir='$srcdir' 69517 AWK='$AWK' 69518 test -n "\$AWK" || AWK=awk 69519 _ACEOF 69520 69521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69522 # The default lists apply if the user does not specify any file. 69523 ac_need_defaults=: 69524 while test $# != 0 69525 do 69526 case $1 in 69527 --*=?*) 69528 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69529 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 69530 ac_shift=: 69531 ;; 69532 --*=) 69533 ac_option=`expr "X$1" : 'X\([^=]*\)='` 69534 ac_optarg= 69535 ac_shift=: 69536 ;; 69537 *) 69538 ac_option=$1 69539 ac_optarg=$2 69540 ac_shift=shift 69541 ;; 69542 esac 69543 69544 case $ac_option in 69545 # Handling of the options. 69546 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 69547 ac_cs_recheck=: ;; 69548 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 69549 $as_echo "$ac_cs_version"; exit ;; 69550 --config | --confi | --conf | --con | --co | --c ) 69551 $as_echo "$ac_cs_config"; exit ;; 69552 --debug | --debu | --deb | --de | --d | -d ) 69553 debug=: ;; 69554 --file | --fil | --fi | --f ) 69555 $ac_shift 69556 case $ac_optarg in 69557 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 69558 '') as_fn_error $? "missing file argument" ;; 69559 esac 69560 as_fn_append CONFIG_FILES " '$ac_optarg'" 69561 ac_need_defaults=false;; 69562 --he | --h | --help | --hel | -h ) 69563 $as_echo "$ac_cs_usage"; exit ;; 69564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 69565 | -silent | --silent | --silen | --sile | --sil | --si | --s) 69566 ac_cs_silent=: ;; 69567 69568 # This is an error. 69569 -*) as_fn_error $? "unrecognized option: \`$1' 69570 Try \`$0 --help' for more information." ;; 69571 69572 *) as_fn_append ac_config_targets " $1" 69573 ac_need_defaults=false ;; 69574 69575 esac 69576 shift 69577 done 69578 69579 ac_configure_extra_args= 69580 69581 if $ac_cs_silent; then 69582 exec 6>/dev/null 69583 ac_configure_extra_args="$ac_configure_extra_args --silent" 69584 fi 69585 69586 _ACEOF 69587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69588 if \$ac_cs_recheck; then 69589 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 69590 shift 69591 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 69592 CONFIG_SHELL='$SHELL' 69593 export CONFIG_SHELL 69594 exec "\$@" 69595 fi 69596 69597 _ACEOF 69598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69599 exec 5>>config.log 69600 { 69601 echo 69602 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 69603 ## Running $as_me. ## 69604 _ASBOX 69605 $as_echo "$ac_log" 69606 } >&5 69607 69608 _ACEOF 69609 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69610 _ACEOF 69611 69612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69613 69614 # Handling of arguments. 69615 for ac_config_target in $ac_config_targets 69616 do 69617 case $ac_config_target in 69618 "$OUTPUTDIR/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 69619 "$OUTPUTDIR/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 69620 "$OUTPUTDIR/buildjdk-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/buildjdk-spec.gmk:$AUTOCONF_DIR/buildjdk-spec.gmk.in" ;; 69621 "$OUTPUTDIR/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 69622 "$OUTPUTDIR/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUTDIR/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 69623 69624 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 69625 esac 69626 done 69627 69628 69629 # If the user did not use the arguments to specify the items to instantiate, 69630 # then the envvar interface is used. Set only those that are not. 69631 # We use the long form for the default assignment because of an extremely 69632 # bizarre bug on SunOS 4.1.3. 69633 if $ac_need_defaults; then 69634 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 69635 fi 69636 69637 # Have a temporary directory for convenience. Make it in the build tree 69638 # simply because there is no reason against having it here, and in addition, 69639 # creating and moving files from /tmp can sometimes cause problems. 69640 # Hook for its removal unless debugging. 69641 # Note that there is a small window in which the directory will not be cleaned: 69642 # after its creation but before its name has been assigned to `$tmp'. 69643 $debug || 69644 { 69645 tmp= ac_tmp= 69646 trap 'exit_status=$? 69647 : "${ac_tmp:=$tmp}" 69648 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 69649 ' 0 69650 trap 'as_fn_exit 1' 1 2 13 15 69651 } 69652 # Create a (secure) tmp directory for tmp files. 69653 69654 { 69655 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 69656 test -d "$tmp" 69657 } || 69658 { 69659 tmp=./conf$$-$RANDOM 69660 (umask 077 && mkdir "$tmp") 69661 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 69662 ac_tmp=$tmp 69663 69664 # Set up the scripts for CONFIG_FILES section. 69665 # No need to generate them if there are no CONFIG_FILES. 69666 # This happens for instance with `./config.status config.h'. 69667 if test -n "$CONFIG_FILES"; then 69668 69669 69670 ac_cr=`echo X | tr X '\015'` 69671 # On cygwin, bash can eat \r inside `` if the user requested igncr. 69672 # But we know of no other shell where ac_cr would be empty at this 69673 # point, so we can use a bashism as a fallback. 69674 if test "x$ac_cr" = x; then 69675 eval ac_cr=\$\'\\r\' 69676 fi 69677 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 69678 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 69679 ac_cs_awk_cr='\\r' 69680 else 69681 ac_cs_awk_cr=$ac_cr 69682 fi 69683 69684 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 69685 _ACEOF 69686 69687 69688 { 69689 echo "cat >conf$$subs.awk <<_ACEOF" && 69690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 69691 echo "_ACEOF" 69692 } >conf$$subs.sh || 69693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69694 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 69695 ac_delim='%!_!# ' 69696 for ac_last_try in false false false false false :; do 69697 . ./conf$$subs.sh || 69698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69699 69700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 69701 if test $ac_delim_n = $ac_delim_num; then 69702 break 69703 elif $ac_last_try; then 69704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 69705 else 69706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 69707 fi 69708 done 69709 rm -f conf$$subs.sh 69710 69711 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69712 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 69713 _ACEOF 69714 sed -n ' 69715 h 69716 s/^/S["/; s/!.*/"]=/ 69717 p 69718 g 69719 s/^[^!]*!// 69720 :repl 69721 t repl 69722 s/'"$ac_delim"'$// 69723 t delim 69724 :nl 69725 h 69726 s/\(.\{148\}\)..*/\1/ 69727 t more1 69728 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 69729 p 69730 n 69731 b repl 69732 :more1 69733 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69734 p 69735 g 69736 s/.\{148\}// 69737 t nl 69738 :delim 69739 h 69740 s/\(.\{148\}\)..*/\1/ 69741 t more2 69742 s/["\\]/\\&/g; s/^/"/; s/$/"/ 69743 p 69744 b 69745 :more2 69746 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 69747 p 69748 g 69749 s/.\{148\}// 69750 t delim 69751 ' <conf$$subs.awk | sed ' 69752 /^[^""]/{ 69753 N 69754 s/\n// 69755 } 69756 ' >>$CONFIG_STATUS || ac_write_fail=1 69757 rm -f conf$$subs.awk 69758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69759 _ACAWK 69760 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 69761 for (key in S) S_is_set[key] = 1 69762 FS = "" 69763 69764 } 69765 { 69766 line = $ 0 69767 nfields = split(line, field, "@") 69768 substed = 0 69769 len = length(field[1]) 69770 for (i = 2; i < nfields; i++) { 69771 key = field[i] 69772 keylen = length(key) 69773 if (S_is_set[key]) { 69774 value = S[key] 69775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 69776 len += length(value) + length(field[++i]) 69777 substed = 1 69778 } else 69779 len += 1 + keylen 69780 } 69781 69782 print line 69783 } 69784 69785 _ACAWK 69786 _ACEOF 69787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69788 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 69789 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 69790 else 69791 cat 69792 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 69793 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 69794 _ACEOF 69795 69796 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 69797 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 69798 # trailing colons and then remove the whole line if VPATH becomes empty 69799 # (actually we leave an empty line to preserve line numbers). 69800 if test "x$srcdir" = x.; then 69801 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 69802 h 69803 s/// 69804 s/^/:/ 69805 s/[ ]*$/:/ 69806 s/:\$(srcdir):/:/g 69807 s/:\${srcdir}:/:/g 69808 s/:@srcdir@:/:/g 69809 s/^:*// 69810 s/:*$// 69811 x 69812 s/\(=[ ]*\).*/\1/ 69813 G 69814 s/\n// 69815 s/^[^=]*=[ ]*$// 69816 }' 69817 fi 69818 69819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69820 fi # test -n "$CONFIG_FILES" 69821 69822 69823 eval set X " :F $CONFIG_FILES " 69824 shift 69825 for ac_tag 69826 do 69827 case $ac_tag in 69828 :[FHLC]) ac_mode=$ac_tag; continue;; 69829 esac 69830 case $ac_mode$ac_tag in 69831 :[FHL]*:*);; 69832 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 69833 :[FH]-) ac_tag=-:-;; 69834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 69835 esac 69836 ac_save_IFS=$IFS 69837 IFS=: 69838 set x $ac_tag 69839 IFS=$ac_save_IFS 69840 shift 69841 ac_file=$1 69842 shift 69843 69844 case $ac_mode in 69845 :L) ac_source=$1;; 69846 :[FH]) 69847 ac_file_inputs= 69848 for ac_f 69849 do 69850 case $ac_f in 69851 -) ac_f="$ac_tmp/stdin";; 69852 *) # Look for the file first in the build tree, then in the source tree 69853 # (if the path is not absolute). The absolute path cannot be DOS-style, 69854 # because $ac_f cannot contain `:'. 69855 test -f "$ac_f" || 69856 case $ac_f in 69857 [\\/$]*) false;; 69858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 69859 esac || 69860 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 69861 esac 69862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 69863 as_fn_append ac_file_inputs " '$ac_f'" 69864 done 69865 69866 # Let's still pretend it is `configure' which instantiates (i.e., don't 69867 # use $as_me), people would be surprised to read: 69868 # /* config.h. Generated by config.status. */ 69869 configure_input='Generated from '` 69870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 69871 `' by configure.' 69872 if test x"$ac_file" != x-; then 69873 configure_input="$ac_file. $configure_input" 69874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 69875 $as_echo "$as_me: creating $ac_file" >&6;} 69876 fi 69877 # Neutralize special characters interpreted by sed in replacement strings. 69878 case $configure_input in #( 69879 *\&* | *\|* | *\\* ) 69880 ac_sed_conf_input=`$as_echo "$configure_input" | 69881 sed 's/[\\\\&|]/\\\\&/g'`;; #( 69882 *) ac_sed_conf_input=$configure_input;; 69883 esac 69884 69885 case $ac_tag in 69886 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 69887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 69888 esac 69889 ;; 69890 esac 69891 69892 ac_dir=`$as_dirname -- "$ac_file" || 69893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 69894 X"$ac_file" : 'X\(//\)[^/]' \| \ 69895 X"$ac_file" : 'X\(//\)$' \| \ 69896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 69897 $as_echo X"$ac_file" | 69898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 69899 s//\1/ 69900 q 69901 } 69902 /^X\(\/\/\)[^/].*/{ 69903 s//\1/ 69904 q 69905 } 69906 /^X\(\/\/\)$/{ 69907 s//\1/ 69908 q 69909 } 69910 /^X\(\/\).*/{ 69911 s//\1/ 69912 q 69913 } 69914 s/.*/./; q'` 69915 as_dir="$ac_dir"; as_fn_mkdir_p 69916 ac_builddir=. 69917 69918 case "$ac_dir" in 69919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 69920 *) 69921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 69922 # A ".." for each directory in $ac_dir_suffix. 69923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 69924 case $ac_top_builddir_sub in 69925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 69926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 69927 esac ;; 69928 esac 69929 ac_abs_top_builddir=$ac_pwd 69930 ac_abs_builddir=$ac_pwd$ac_dir_suffix 69931 # for backward compatibility: 69932 ac_top_builddir=$ac_top_build_prefix 69933 69934 case $srcdir in 69935 .) # We are building in place. 69936 ac_srcdir=. 69937 ac_top_srcdir=$ac_top_builddir_sub 69938 ac_abs_top_srcdir=$ac_pwd ;; 69939 [\\/]* | ?:[\\/]* ) # Absolute name. 69940 ac_srcdir=$srcdir$ac_dir_suffix; 69941 ac_top_srcdir=$srcdir 69942 ac_abs_top_srcdir=$srcdir ;; 69943 *) # Relative name. 69944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 69945 ac_top_srcdir=$ac_top_build_prefix$srcdir 69946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 69947 esac 69948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 69949 69950 69951 case $ac_mode in 69952 :F) 69953 # 69954 # CONFIG_FILE 69955 # 69956 69957 _ACEOF 69958 69959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69960 # If the template does not know about datarootdir, expand it. 69961 # FIXME: This hack should be removed a few years after 2.60. 69962 ac_datarootdir_hack=; ac_datarootdir_seen= 69963 ac_sed_dataroot=' 69964 /datarootdir/ { 69965 p 69966 q 69967 } 69968 /@datadir@/p 69969 /@docdir@/p 69970 /@infodir@/p 69971 /@localedir@/p 69972 /@mandir@/p' 69973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 69974 *datarootdir*) ac_datarootdir_seen=yes;; 69975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 69976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 69977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 69978 _ACEOF 69979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69980 ac_datarootdir_hack=' 69981 s&@datadir@&$datadir&g 69982 s&@docdir@&$docdir&g 69983 s&@infodir@&$infodir&g 69984 s&@localedir@&$localedir&g 69985 s&@mandir@&$mandir&g 69986 s&\\\${datarootdir}&$datarootdir&g' ;; 69987 esac 69988 _ACEOF 69989 69990 # Neutralize VPATH when `$srcdir' = `.'. 69991 # Shell code in configure.ac might set extrasub. 69992 # FIXME: do we really want to maintain this feature? 69993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 69994 ac_sed_extra="$ac_vpsub 69995 $extrasub 69996 _ACEOF 69997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 69998 :t 69999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 70000 s|@configure_input@|$ac_sed_conf_input|;t t 70001 s&@top_builddir@&$ac_top_builddir_sub&;t t 70002 s&@top_build_prefix@&$ac_top_build_prefix&;t t 70003 s&@srcdir@&$ac_srcdir&;t t 70004 s&@abs_srcdir@&$ac_abs_srcdir&;t t 70005 s&@top_srcdir@&$ac_top_srcdir&;t t 70006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 70007 s&@builddir@&$ac_builddir&;t t 70008 s&@abs_builddir@&$ac_abs_builddir&;t t 70009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 70010 $ac_datarootdir_hack 70011 " 70012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 70013 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70014 70015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 70016 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 70017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 70018 "$ac_tmp/out"`; test -z "$ac_out"; } && 70019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70020 which seems to be undefined. Please make sure it is defined" >&5 70021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 70022 which seems to be undefined. Please make sure it is defined" >&2;} 70023 70024 rm -f "$ac_tmp/stdin" 70025 case $ac_file in 70026 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 70027 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 70028 esac \ 70029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 70030 ;; 70031 70032 70033 70034 esac 70035 70036 done # for ac_tag 70037 70038 70039 as_fn_exit 0 70040 _ACEOF 70041 ac_clean_files=$ac_clean_files_save 70042 70043 test $ac_write_fail = 0 || 70044 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 70045 70046 70047 # configure is writing to config.log, and then calls config.status. 70048 # config.status does its own redirection, appending to config.log. 70049 # Unfortunately, on DOS this fails, as config.log is still kept open 70050 # by configure, so config.status won't be able to write to it; its 70051 # output is simply discarded. So we exec the FD to /dev/null, 70052 # effectively closing config.log, so it can be properly (re)opened and 70053 # appended to by config.status. When coming back to configure, we 70054 # need to make the FD available again. 70055 if test "$no_create" != yes; then 70056 ac_cs_success=: 70057 ac_config_status_args= 70058 test "$silent" = yes && 70059 ac_config_status_args="$ac_config_status_args --quiet" 70060 exec 5>/dev/null 70061 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 70062 exec 5>>config.log 70063 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 70064 # would make configure fail if this is the last instruction. 70065 $ac_cs_success || as_fn_exit 1 70066 fi 70067 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 70068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 70069 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 70070 fi 70071 70072 70073 # After AC_OUTPUT, we need to do final work 70074 70075 70076 # Try to move config.log (generated by autoconf) to the configure-support directory. 70077 if test -e ./config.log; then 70078 $MV -f ./config.log "$CONFIGURESUPPORT_OUTPUTDIR/config.log" 2> /dev/null 70079 fi 70080 70081 # Rotate our log file (configure.log) 70082 if test -e "$OUTPUTDIR/configure.log.old"; then 70083 $RM -f "$OUTPUTDIR/configure.log.old" 70084 fi 70085 if test -e "$OUTPUTDIR/configure.log"; then 70086 $MV -f "$OUTPUTDIR/configure.log" "$OUTPUTDIR/configure.log.old" 2> /dev/null 70087 fi 70088 70089 # Move configure.log from current directory to the build output root 70090 if test -e ./configure.log; then 70091 $MV -f ./configure.log "$OUTPUTDIR/configure.log" 2> /dev/null 70092 fi 70093 70094 # Make the compare script executable 70095 $CHMOD +x $OUTPUTDIR/compare.sh 70096 70097 70098 # Finally output some useful information to the user 70099 70100 # Finally output some useful information to the user 70101 70102 printf "\n" 70103 printf "====================================================\n" 70104 if test "x$no_create" != "xyes"; then 70105 if test "x$IS_RECONFIGURE" != "xyes"; then 70106 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUTDIR" 70107 else 70108 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUTDIR" 70109 fi 70110 else 70111 if test "x$IS_RECONFIGURE" != "xyes"; then 70112 printf "A configuration has been successfully checked but not created\n" 70113 else 70114 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUTDIR" 70115 fi 70116 fi 70117 if test "x$CONFIGURE_COMMAND_LINE" != x; then 70118 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 70119 else 70120 printf "using default settings.\n" 70121 fi 70122 70123 printf "\n" 70124 printf "Configuration summary:\n" 70125 printf "* Debug level: $DEBUG_LEVEL\n" 70126 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 70127 printf "* JDK variant: $JDK_VARIANT\n" 70128 printf "* JVM variants: $JVM_VARIANTS\n" 70129 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 70130 printf "* Version string: $VERSION_STRING ($VERSION_SHORT)\n" 70131 70132 printf "\n" 70133 printf "Tools summary:\n" 70134 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 70135 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 70136 fi 70137 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 70138 if test "x$TOOLCHAIN_VERSION" != "x"; then 70139 print_version=" $TOOLCHAIN_VERSION" 70140 fi 70141 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 70142 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 70143 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 70144 70145 printf "\n" 70146 printf "Build performance summary:\n" 70147 printf "* Cores to use: $JOBS\n" 70148 printf "* Memory limit: $MEMORY_SIZE MB\n" 70149 if test "x$CCACHE_STATUS" != "x"; then 70150 printf "* ccache status: $CCACHE_STATUS\n" 70151 fi 70152 printf "\n" 70153 70154 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xtrue"; then 70155 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 70156 printf "will result in longer build times.\n" 70157 printf "\n" 70158 fi 70159 70160 if test "x$FOUND_ALT_VARIABLES" != "x"; then 70161 printf "WARNING: You have old-style ALT_ environment variables set.\n" 70162 printf "These are not respected, and will be ignored. It is recommended\n" 70163 printf "that you clean your environment. The following variables are set:\n" 70164 printf "$FOUND_ALT_VARIABLES\n" 70165 printf "\n" 70166 fi 70167 70168 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 70169 printf "WARNING: Your build output directory is not on a local disk.\n" 70170 printf "This will severely degrade build performance!\n" 70171 printf "It is recommended that you create an output directory on a local disk,\n" 70172 printf "and run the configure script again from that directory.\n" 70173 printf "\n" 70174 fi 70175 70176 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 70177 printf "WARNING: The result of this configuration has overridden an older\n" 70178 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 70179 printf "proper build. Failure to do so might result in strange build problems.\n" 70180 printf "\n" 70181 fi 70182 70183 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 70184 printf "WARNING: The result of this configuration was not saved.\n" 70185 printf "You should run without '--no-create | -n' to create the configuration.\n" 70186 printf "\n" 70187 fi 70188 70189 70190 70191 # Locate config.log. 70192 if test -e "$CONFIGURESUPPORT_OUTPUTDIR/config.log"; then 70193 CONFIG_LOG_PATH="$CONFIGURESUPPORT_OUTPUTDIR" 70194 elif test -e "./config.log"; then 70195 CONFIG_LOG_PATH="." 70196 fi 70197 70198 if test -e "$CONFIG_LOG_PATH/config.log"; then 70199 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" > /dev/null 2>&1 70200 if test $? -eq 0; then 70201 printf "The following warnings were produced. Repeated here for convenience:\n" 70202 # We must quote sed expression (using []) to stop m4 from eating the []. 70203 $GREP '^configure:.*: WARNING:' "$CONFIG_LOG_PATH/config.log" | $SED -e 's/^configure:[0-9]*: //' 70204 printf "\n" 70205 fi 70206 fi 70207