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 SJAVAC_SERVER_DIR 636 ENABLE_SJAVAC 637 SJAVAC_SERVER_JAVA_FLAGS 638 SJAVAC_SERVER_JAVA 639 JAVA_TOOL_FLAGS_SMALL 640 JAVA_FLAGS_SMALL 641 JAVA_FLAGS_BIG 642 JAVA_FLAGS 643 JOBS 644 MEMORY_SIZE 645 NUM_CORES 646 ENABLE_INTREE_EC 647 SALIB_NAME 648 HOTSPOT_MAKE_ARGS 649 MSVCP_DLL 650 MSVCR_DLL 651 LIBCXX 652 LLVM_LIBS 653 LLVM_LDFLAGS 654 LLVM_CFLAGS 655 LLVM_CONFIG 656 LIBFFI_LIBS 657 LIBFFI_CFLAGS 658 STATIC_CXX_SETTING 659 LIBDL 660 LIBM 661 LIBZIP_CAN_USE_MMAP 662 USE_EXTERNAL_LIBZ 663 USE_EXTERNAL_LIBPNG 664 PNG_LIBS 665 PNG_CFLAGS 666 USE_EXTERNAL_LCMS 667 LCMS_LIBS 668 LCMS_CFLAGS 669 USE_EXTERNAL_LIBGIF 670 USE_EXTERNAL_LIBJPEG 671 ALSA_LIBS 672 ALSA_CFLAGS 673 FREETYPE_BUNDLE_LIB_PATH 674 FREETYPE_LIBS 675 FREETYPE_CFLAGS 676 CUPS_CFLAGS 677 X_EXTRA_LIBS 678 X_LIBS 679 X_PRE_LIBS 680 X_CFLAGS 681 XMKMF 682 FIXPATH 683 ZIP_DEBUGINFO_FILES 684 ENABLE_DEBUG_SYMBOLS 685 CFLAGS_WARNINGS_ARE_ERRORS 686 COMPILER_SUPPORTS_TARGET_BITS_FLAG 687 ZERO_ARCHFLAG 688 LDFLAGS_CXX_JDK 689 LDFLAGS_JDKEXE_SUFFIX 690 LDFLAGS_JDKLIB_SUFFIX 691 LDFLAGS_JDKEXE 692 LDFLAGS_JDKLIB 693 CXXFLAGS_JDKEXE 694 CXXFLAGS_JDKLIB 695 CFLAGS_JDKEXE 696 CFLAGS_JDKLIB 697 MACOSX_VERSION_MIN 698 LEGACY_EXTRA_LDFLAGS 699 LEGACY_EXTRA_CXXFLAGS 700 LEGACY_EXTRA_CFLAGS 701 CXX_O_FLAG_NONE 702 CXX_O_FLAG_DEBUG 703 CXX_O_FLAG_NORM 704 CXX_O_FLAG_HI 705 CXX_O_FLAG_HIGHEST 706 C_O_FLAG_NONE 707 C_O_FLAG_DEBUG 708 C_O_FLAG_NORM 709 C_O_FLAG_HI 710 C_O_FLAG_HIGHEST 711 CXXFLAGS_DEBUG_OPTIONS 712 CFLAGS_DEBUG_OPTIONS 713 CXXFLAGS_DEBUG_SYMBOLS 714 CFLAGS_DEBUG_SYMBOLS 715 CXX_FLAG_DEPS 716 C_FLAG_DEPS 717 SET_SHARED_LIBRARY_MAPFILE 718 SET_SHARED_LIBRARY_NAME 719 SET_SHARED_LIBRARY_ORIGIN 720 SET_EXECUTABLE_ORIGIN 721 SHARED_LIBRARY_FLAGS 722 CXX_FLAG_REORDER 723 C_FLAG_REORDER 724 SYSROOT_LDFLAGS 725 SYSROOT_CFLAGS 726 RC_FLAGS 727 AR_OUT_OPTION 728 LD_OUT_OPTION 729 EXE_OUT_OPTION 730 CC_OUT_OPTION 731 POST_MCS_CMD 732 POST_STRIP_CMD 733 ARFLAGS 734 COMPILER_TARGET_BITS_FLAG 735 JT_HOME 736 JTREGEXE 737 USING_BROKEN_SUSE_LD 738 PACKAGE_PATH 739 LDEXECXX 740 LDEXE 741 USE_CLANG 742 HOTSPOT_LD 743 HOTSPOT_CXX 744 HOTSPOT_RC 745 HOTSPOT_MT 746 BUILD_LD 747 BUILD_CXX 748 BUILD_CC 749 ac_ct_OBJDUMP 750 OBJDUMP 751 ac_ct_OBJCOPY 752 OBJCOPY 753 ac_ct_NM 754 ac_ct_STRIP 755 MCS 756 GNM 757 NM 758 STRIP 759 MSBUILD 760 DUMPBIN 761 RC 762 MT 763 LIPO 764 ac_ct_AR 765 AR 766 AS 767 LDCXX 768 LD 769 CXXCPP 770 CPP 771 ac_ct_CXX 772 CXXFLAGS 773 CXX 774 ac_ct_PROPER_COMPILER_CXX 775 PROPER_COMPILER_CXX 776 TOOLCHAIN_PATH_CXX 777 POTENTIAL_CXX 778 OBJEXT 779 EXEEXT 780 ac_ct_CC 781 CPPFLAGS 782 LDFLAGS 783 CFLAGS 784 CC 785 ac_ct_PROPER_COMPILER_CC 786 PROPER_COMPILER_CC 787 TOOLCHAIN_PATH_CC 788 POTENTIAL_CC 789 VS_LIB 790 VS_INCLUDE 791 VS_PATH 792 CYGWIN_LINK 793 EXE_SUFFIX 794 OBJ_SUFFIX 795 STATIC_LIBRARY 796 SHARED_LIBRARY 797 STATIC_LIBRARY_SUFFIX 798 SHARED_LIBRARY_SUFFIX 799 LIBRARY_PREFIX 800 TOOLCHAIN_TYPE 801 BUILD_HOTSPOT 802 HOTSPOT_DIST 803 BUILD_OUTPUT 804 OVERRIDE_SRC_ROOT 805 ADD_SRC_ROOT 806 JDK_TOPDIR 807 NASHORN_TOPDIR 808 HOTSPOT_TOPDIR 809 JAXWS_TOPDIR 810 JAXP_TOPDIR 811 CORBA_TOPDIR 812 LANGTOOLS_TOPDIR 813 JAVAC_FLAGS 814 BOOT_JDK_SOURCETARGET 815 JARSIGNER 816 NATIVE2ASCII 817 JAR 818 JAVAH 819 JAVAC 820 JAVA 821 BOOT_JDK 822 JAVA_CHECK 823 JAVAC_CHECK 824 COOKED_BUILD_NUMBER 825 JDK_VERSION 826 COPYRIGHT_YEAR 827 MACOSX_BUNDLE_ID_BASE 828 MACOSX_BUNDLE_NAME_BASE 829 COMPANY_NAME 830 JDK_RC_PLATFORM_NAME 831 PRODUCT_SUFFIX 832 PRODUCT_NAME 833 LAUNCHER_NAME 834 MILESTONE 835 JDK_BUILD_NUMBER 836 JDK_UPDATE_VERSION 837 JDK_MICRO_VERSION 838 JDK_MINOR_VERSION 839 JDK_MAJOR_VERSION 840 USER_RELEASE_SUFFIX 841 COMPRESS_JARS 842 RMICONNECTOR_IIOP 843 UNLIMITED_CRYPTO 844 CACERTS_FILE 845 TEST_IN_BUILD 846 BUILD_HEADLESS 847 SUPPORT_HEADFUL 848 SUPPORT_HEADLESS 849 BDEPS_FTP 850 BDEPS_UNZIP 851 OS_VERSION_MICRO 852 OS_VERSION_MINOR 853 OS_VERSION_MAJOR 854 PKG_CONFIG 855 BASH_ARGS 856 CODESIGN 857 XATTR 858 DSYMUTIL 859 IS_GNU_TIME 860 TIME 861 STAT 862 HG 863 READELF 864 OTOOL 865 LDD 866 ZIP 867 UNZIP 868 FIND_DELETE 869 OUTPUT_SYNC 870 OUTPUT_SYNC_SUPPORTED 871 MAKE 872 CHECK_TOOLSDIR_MAKE 873 CHECK_TOOLSDIR_GMAKE 874 CHECK_MAKE 875 CHECK_GMAKE 876 PKGHANDLER 877 OUTPUT_ROOT 878 CONF_NAME 879 SPEC 880 SDKROOT 881 XCODEBUILD 882 BUILD_VARIANT_RELEASE 883 DEBUG_CLASSFILES 884 FASTDEBUG 885 VARIANT 886 DEBUG_LEVEL 887 MACOSX_UNIVERSAL 888 INCLUDE_SA 889 JVM_VARIANT_CORE 890 JVM_VARIANT_ZEROSHARK 891 JVM_VARIANT_ZERO 892 JVM_VARIANT_KERNEL 893 JVM_VARIANT_MINIMAL1 894 JVM_VARIANT_CLIENT 895 JVM_VARIANT_SERVER 896 JVM_VARIANTS 897 JVM_INTERPRETER 898 JDK_VARIANT 899 SET_OPENJDK 900 BUILD_LOG_WRAPPER 901 BUILD_LOG_PREVIOUS 902 BUILD_LOG 903 TOPDIR 904 PATH_SEP 905 ZERO_ARCHDEF 906 DEFINE_CROSS_COMPILE_ARCH 907 LP64 908 OPENJDK_TARGET_OS_EXPORT_DIR 909 OPENJDK_TARGET_CPU_JLI_CFLAGS 910 OPENJDK_TARGET_CPU_OSARCH 911 OPENJDK_TARGET_CPU_ISADIR 912 OPENJDK_TARGET_CPU_LIBDIR 913 OPENJDK_TARGET_CPU_LEGACY_LIB 914 OPENJDK_TARGET_CPU_LEGACY 915 REQUIRED_OS_VERSION 916 REQUIRED_OS_NAME 917 COMPILE_TYPE 918 OPENJDK_TARGET_CPU_ENDIAN 919 OPENJDK_TARGET_CPU_BITS 920 OPENJDK_TARGET_CPU_ARCH 921 OPENJDK_TARGET_CPU 922 OPENJDK_TARGET_OS_ENV 923 OPENJDK_TARGET_OS_TYPE 924 OPENJDK_TARGET_OS 925 OPENJDK_BUILD_CPU_ENDIAN 926 OPENJDK_BUILD_CPU_BITS 927 OPENJDK_BUILD_CPU_ARCH 928 OPENJDK_BUILD_CPU 929 OPENJDK_BUILD_OS_ENV 930 OPENJDK_BUILD_OS_TYPE 931 OPENJDK_BUILD_OS 932 OPENJDK_BUILD_AUTOCONF_NAME 933 OPENJDK_TARGET_AUTOCONF_NAME 934 target_os 935 target_vendor 936 target_cpu 937 target 938 host_os 939 host_vendor 940 host_cpu 941 host 942 build_os 943 build_vendor 944 build_cpu 945 build 946 CPIO 947 SETFILE 948 DF 949 READLINK 950 CYGPATH 951 SED 952 FGREP 953 EGREP 954 GREP 955 AWK 956 XARGS 957 WHICH 958 WC 959 UNIQ 960 UNAME 961 TR 962 TOUCH 963 TEE 964 TAR 965 TAIL 966 SORT 967 SH 968 RM 969 PRINTF 970 NAWK 971 MV 972 MKTEMP 973 MKDIR 974 LS 975 LN 976 HEAD 977 FIND 978 FILE 979 EXPR 980 ECHO 981 DIRNAME 982 DIFF 983 DATE 984 CUT 985 CP 986 COMM 987 CMP 988 CHMOD 989 CAT 990 BASH 991 BASENAME 992 DATE_WHEN_CONFIGURED 993 ORIGINAL_PATH 994 CONFIGURE_COMMAND_LINE 995 target_alias 996 host_alias 997 build_alias 998 LIBS 999 ECHO_T 1000 ECHO_N 1001 ECHO_C 1002 DEFS 1003 mandir 1004 localedir 1005 libdir 1006 psdir 1007 pdfdir 1008 dvidir 1009 htmldir 1010 infodir 1011 docdir 1012 oldincludedir 1013 includedir 1014 localstatedir 1015 sharedstatedir 1016 sysconfdir 1017 datadir 1018 datarootdir 1019 libexecdir 1020 sbindir 1021 bindir 1022 program_transform_name 1023 prefix 1024 exec_prefix 1025 PACKAGE_URL 1026 PACKAGE_BUGREPORT 1027 PACKAGE_STRING 1028 PACKAGE_VERSION 1029 PACKAGE_TARNAME 1030 PACKAGE_NAME 1031 PATH_SEPARATOR 1032 SHELL' 1033 ac_subst_files='' 1034 ac_user_opts=' 1035 enable_option_checking 1036 with_target_bits 1037 enable_openjdk_only 1038 with_custom_make_dir 1039 with_jdk_variant 1040 with_jvm_interpreter 1041 with_jvm_variants 1042 enable_debug 1043 with_debug_level 1044 with_devkit 1045 with_sys_root 1046 with_sysroot 1047 with_tools_dir 1048 with_toolchain_path 1049 with_extra_path 1050 with_sdk_name 1051 with_conf_name 1052 with_output_sync 1053 with_builddeps_conf 1054 with_builddeps_server 1055 with_builddeps_dir 1056 with_builddeps_group 1057 enable_headful 1058 enable_hotspot_test_in_build 1059 with_cacerts_file 1060 enable_unlimited_crypto 1061 enable_rmiconnector_iiop 1062 with_milestone 1063 with_update_version 1064 with_user_release_suffix 1065 with_build_number 1066 with_copyright_year 1067 with_boot_jdk 1068 with_add_source_root 1069 with_override_source_root 1070 with_adds_and_overrides 1071 with_override_langtools 1072 with_override_corba 1073 with_override_jaxp 1074 with_override_jaxws 1075 with_override_hotspot 1076 with_override_nashorn 1077 with_override_jdk 1078 with_import_hotspot 1079 with_toolchain_type 1080 with_toolchain_version 1081 with_jtreg 1082 with_extra_cflags 1083 with_extra_cxxflags 1084 with_extra_ldflags 1085 enable_debug_symbols 1086 enable_zip_debug_info 1087 with_x 1088 with_cups 1089 with_cups_include 1090 with_freetype 1091 with_freetype_include 1092 with_freetype_lib 1093 with_freetype_src 1094 enable_freetype_bundling 1095 with_alsa 1096 with_alsa_include 1097 with_alsa_lib 1098 with_libjpeg 1099 with_giflib 1100 with_lcms 1101 with_libpng 1102 with_zlib 1103 with_stdc__lib 1104 with_msvcr_dll 1105 with_msvcp_dll 1106 with_dxsdk 1107 with_dxsdk_lib 1108 with_dxsdk_include 1109 with_num_cores 1110 with_memory_size 1111 with_jobs 1112 with_boot_jdk_jvmargs 1113 with_sjavac_server_java 1114 enable_sjavac 1115 enable_precompiled_headers 1116 enable_ccache 1117 with_ccache_dir 1118 ' 1119 ac_precious_vars='build_alias 1120 host_alias 1121 target_alias 1122 BASENAME 1123 BASH 1124 CAT 1125 CHMOD 1126 CMP 1127 COMM 1128 CP 1129 CUT 1130 DATE 1131 DIFF 1132 DIRNAME 1133 ECHO 1134 EXPR 1135 FILE 1136 FIND 1137 HEAD 1138 LN 1139 LS 1140 MKDIR 1141 MKTEMP 1142 MV 1143 NAWK 1144 PRINTF 1145 RM 1146 SH 1147 SORT 1148 TAIL 1149 TAR 1150 TEE 1151 TOUCH 1152 TR 1153 UNAME 1154 UNIQ 1155 WC 1156 WHICH 1157 XARGS 1158 AWK 1159 GREP 1160 EGREP 1161 FGREP 1162 SED 1163 CYGPATH 1164 READLINK 1165 DF 1166 SETFILE 1167 CPIO 1168 UNZIP 1169 ZIP 1170 LDD 1171 OTOOL 1172 READELF 1173 HG 1174 STAT 1175 TIME 1176 DSYMUTIL 1177 XATTR 1178 CODESIGN 1179 PKG_CONFIG 1180 JAVA 1181 JAVAC 1182 JAVAH 1183 JAR 1184 NATIVE2ASCII 1185 JARSIGNER 1186 CC 1187 CFLAGS 1188 LDFLAGS 1189 LIBS 1190 CPPFLAGS 1191 CXX 1192 CXXFLAGS 1193 CCC 1194 CPP 1195 CXXCPP 1196 AS 1197 AR 1198 LIPO 1199 STRIP 1200 NM 1201 GNM 1202 MCS 1203 OBJCOPY 1204 OBJDUMP 1205 BUILD_CC 1206 BUILD_CXX 1207 BUILD_LD 1208 JTREGEXE 1209 XMKMF 1210 FREETYPE_CFLAGS 1211 FREETYPE_LIBS 1212 ALSA_CFLAGS 1213 ALSA_LIBS 1214 LCMS_CFLAGS 1215 LCMS_LIBS 1216 PNG_CFLAGS 1217 PNG_LIBS 1218 LIBFFI_CFLAGS 1219 LIBFFI_LIBS 1220 CCACHE' 1221 1222 1223 # Initialize some variables set by options. 1224 ac_init_help= 1225 ac_init_version=false 1226 ac_unrecognized_opts= 1227 ac_unrecognized_sep= 1228 # The variables have the same names as the options, with 1229 # dashes changed to underlines. 1230 cache_file=/dev/null 1231 exec_prefix=NONE 1232 no_create= 1233 no_recursion= 1234 prefix=NONE 1235 program_prefix=NONE 1236 program_suffix=NONE 1237 program_transform_name=s,x,x, 1238 silent= 1239 site= 1240 srcdir= 1241 verbose= 1242 x_includes=NONE 1243 x_libraries=NONE 1244 1245 # Installation directory options. 1246 # These are left unexpanded so users can "make install exec_prefix=/foo" 1247 # and all the variables that are supposed to be based on exec_prefix 1248 # by default will actually change. 1249 # Use braces instead of parens because sh, perl, etc. also accept them. 1250 # (The list follows the same order as the GNU Coding Standards.) 1251 bindir='${exec_prefix}/bin' 1252 sbindir='${exec_prefix}/sbin' 1253 libexecdir='${exec_prefix}/libexec' 1254 datarootdir='${prefix}/share' 1255 datadir='${datarootdir}' 1256 sysconfdir='${prefix}/etc' 1257 sharedstatedir='${prefix}/com' 1258 localstatedir='${prefix}/var' 1259 includedir='${prefix}/include' 1260 oldincludedir='/usr/include' 1261 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1262 infodir='${datarootdir}/info' 1263 htmldir='${docdir}' 1264 dvidir='${docdir}' 1265 pdfdir='${docdir}' 1266 psdir='${docdir}' 1267 libdir='${exec_prefix}/lib' 1268 localedir='${datarootdir}/locale' 1269 mandir='${datarootdir}/man' 1270 1271 ac_prev= 1272 ac_dashdash= 1273 for ac_option 1274 do 1275 # If the previous option needs an argument, assign it. 1276 if test -n "$ac_prev"; then 1277 eval $ac_prev=\$ac_option 1278 ac_prev= 1279 continue 1280 fi 1281 1282 case $ac_option in 1283 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1284 *=) ac_optarg= ;; 1285 *) ac_optarg=yes ;; 1286 esac 1287 1288 # Accept the important Cygnus configure options, so we can diagnose typos. 1289 1290 case $ac_dashdash$ac_option in 1291 --) 1292 ac_dashdash=yes ;; 1293 1294 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1295 ac_prev=bindir ;; 1296 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1297 bindir=$ac_optarg ;; 1298 1299 -build | --build | --buil | --bui | --bu) 1300 ac_prev=build_alias ;; 1301 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1302 build_alias=$ac_optarg ;; 1303 1304 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1305 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1306 ac_prev=cache_file ;; 1307 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1308 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1309 cache_file=$ac_optarg ;; 1310 1311 --config-cache | -C) 1312 cache_file=config.cache ;; 1313 1314 -datadir | --datadir | --datadi | --datad) 1315 ac_prev=datadir ;; 1316 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1317 datadir=$ac_optarg ;; 1318 1319 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1320 | --dataroo | --dataro | --datar) 1321 ac_prev=datarootdir ;; 1322 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1323 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1324 datarootdir=$ac_optarg ;; 1325 1326 -disable-* | --disable-*) 1327 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1328 # Reject names that are not valid shell variable names. 1329 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1330 as_fn_error $? "invalid feature name: $ac_useropt" 1331 ac_useropt_orig=$ac_useropt 1332 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1333 case $ac_user_opts in 1334 *" 1335 "enable_$ac_useropt" 1336 "*) ;; 1337 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1338 ac_unrecognized_sep=', ';; 1339 esac 1340 eval enable_$ac_useropt=no ;; 1341 1342 -docdir | --docdir | --docdi | --doc | --do) 1343 ac_prev=docdir ;; 1344 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1345 docdir=$ac_optarg ;; 1346 1347 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1348 ac_prev=dvidir ;; 1349 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1350 dvidir=$ac_optarg ;; 1351 1352 -enable-* | --enable-*) 1353 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1354 # Reject names that are not valid shell variable names. 1355 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1356 as_fn_error $? "invalid feature name: $ac_useropt" 1357 ac_useropt_orig=$ac_useropt 1358 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1359 case $ac_user_opts in 1360 *" 1361 "enable_$ac_useropt" 1362 "*) ;; 1363 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1364 ac_unrecognized_sep=', ';; 1365 esac 1366 eval enable_$ac_useropt=\$ac_optarg ;; 1367 1368 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1369 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1370 | --exec | --exe | --ex) 1371 ac_prev=exec_prefix ;; 1372 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1373 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1374 | --exec=* | --exe=* | --ex=*) 1375 exec_prefix=$ac_optarg ;; 1376 1377 -gas | --gas | --ga | --g) 1378 # Obsolete; use --with-gas. 1379 with_gas=yes ;; 1380 1381 -help | --help | --hel | --he | -h) 1382 ac_init_help=long ;; 1383 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1384 ac_init_help=recursive ;; 1385 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1386 ac_init_help=short ;; 1387 1388 -host | --host | --hos | --ho) 1389 ac_prev=host_alias ;; 1390 -host=* | --host=* | --hos=* | --ho=*) 1391 host_alias=$ac_optarg ;; 1392 1393 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1394 ac_prev=htmldir ;; 1395 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1396 | --ht=*) 1397 htmldir=$ac_optarg ;; 1398 1399 -includedir | --includedir | --includedi | --included | --include \ 1400 | --includ | --inclu | --incl | --inc) 1401 ac_prev=includedir ;; 1402 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1403 | --includ=* | --inclu=* | --incl=* | --inc=*) 1404 includedir=$ac_optarg ;; 1405 1406 -infodir | --infodir | --infodi | --infod | --info | --inf) 1407 ac_prev=infodir ;; 1408 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1409 infodir=$ac_optarg ;; 1410 1411 -libdir | --libdir | --libdi | --libd) 1412 ac_prev=libdir ;; 1413 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1414 libdir=$ac_optarg ;; 1415 1416 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1417 | --libexe | --libex | --libe) 1418 ac_prev=libexecdir ;; 1419 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1420 | --libexe=* | --libex=* | --libe=*) 1421 libexecdir=$ac_optarg ;; 1422 1423 -localedir | --localedir | --localedi | --localed | --locale) 1424 ac_prev=localedir ;; 1425 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1426 localedir=$ac_optarg ;; 1427 1428 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1429 | --localstate | --localstat | --localsta | --localst | --locals) 1430 ac_prev=localstatedir ;; 1431 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1432 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1433 localstatedir=$ac_optarg ;; 1434 1435 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1436 ac_prev=mandir ;; 1437 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1438 mandir=$ac_optarg ;; 1439 1440 -nfp | --nfp | --nf) 1441 # Obsolete; use --without-fp. 1442 with_fp=no ;; 1443 1444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1445 | --no-cr | --no-c | -n) 1446 no_create=yes ;; 1447 1448 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1449 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1450 no_recursion=yes ;; 1451 1452 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1453 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1454 | --oldin | --oldi | --old | --ol | --o) 1455 ac_prev=oldincludedir ;; 1456 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1457 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1458 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1459 oldincludedir=$ac_optarg ;; 1460 1461 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1462 ac_prev=prefix ;; 1463 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1464 prefix=$ac_optarg ;; 1465 1466 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1467 | --program-pre | --program-pr | --program-p) 1468 ac_prev=program_prefix ;; 1469 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1470 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1471 program_prefix=$ac_optarg ;; 1472 1473 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1474 | --program-suf | --program-su | --program-s) 1475 ac_prev=program_suffix ;; 1476 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1477 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1478 program_suffix=$ac_optarg ;; 1479 1480 -program-transform-name | --program-transform-name \ 1481 | --program-transform-nam | --program-transform-na \ 1482 | --program-transform-n | --program-transform- \ 1483 | --program-transform | --program-transfor \ 1484 | --program-transfo | --program-transf \ 1485 | --program-trans | --program-tran \ 1486 | --progr-tra | --program-tr | --program-t) 1487 ac_prev=program_transform_name ;; 1488 -program-transform-name=* | --program-transform-name=* \ 1489 | --program-transform-nam=* | --program-transform-na=* \ 1490 | --program-transform-n=* | --program-transform-=* \ 1491 | --program-transform=* | --program-transfor=* \ 1492 | --program-transfo=* | --program-transf=* \ 1493 | --program-trans=* | --program-tran=* \ 1494 | --progr-tra=* | --program-tr=* | --program-t=*) 1495 program_transform_name=$ac_optarg ;; 1496 1497 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1498 ac_prev=pdfdir ;; 1499 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1500 pdfdir=$ac_optarg ;; 1501 1502 -psdir | --psdir | --psdi | --psd | --ps) 1503 ac_prev=psdir ;; 1504 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1505 psdir=$ac_optarg ;; 1506 1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1508 | -silent | --silent | --silen | --sile | --sil) 1509 silent=yes ;; 1510 1511 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1512 ac_prev=sbindir ;; 1513 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1514 | --sbi=* | --sb=*) 1515 sbindir=$ac_optarg ;; 1516 1517 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1518 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1519 | --sharedst | --shareds | --shared | --share | --shar \ 1520 | --sha | --sh) 1521 ac_prev=sharedstatedir ;; 1522 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1523 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1524 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1525 | --sha=* | --sh=*) 1526 sharedstatedir=$ac_optarg ;; 1527 1528 -site | --site | --sit) 1529 ac_prev=site ;; 1530 -site=* | --site=* | --sit=*) 1531 site=$ac_optarg ;; 1532 1533 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1534 ac_prev=srcdir ;; 1535 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1536 srcdir=$ac_optarg ;; 1537 1538 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1539 | --syscon | --sysco | --sysc | --sys | --sy) 1540 ac_prev=sysconfdir ;; 1541 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1542 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1543 sysconfdir=$ac_optarg ;; 1544 1545 -target | --target | --targe | --targ | --tar | --ta | --t) 1546 ac_prev=target_alias ;; 1547 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1548 target_alias=$ac_optarg ;; 1549 1550 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1551 verbose=yes ;; 1552 1553 -version | --version | --versio | --versi | --vers | -V) 1554 ac_init_version=: ;; 1555 1556 -with-* | --with-*) 1557 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1558 # Reject names that are not valid shell variable names. 1559 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1560 as_fn_error $? "invalid package name: $ac_useropt" 1561 ac_useropt_orig=$ac_useropt 1562 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1563 case $ac_user_opts in 1564 *" 1565 "with_$ac_useropt" 1566 "*) ;; 1567 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1568 ac_unrecognized_sep=', ';; 1569 esac 1570 eval with_$ac_useropt=\$ac_optarg ;; 1571 1572 -without-* | --without-*) 1573 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1574 # Reject names that are not valid shell variable names. 1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1576 as_fn_error $? "invalid package name: $ac_useropt" 1577 ac_useropt_orig=$ac_useropt 1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1579 case $ac_user_opts in 1580 *" 1581 "with_$ac_useropt" 1582 "*) ;; 1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1584 ac_unrecognized_sep=', ';; 1585 esac 1586 eval with_$ac_useropt=no ;; 1587 1588 --x) 1589 # Obsolete; use --with-x. 1590 with_x=yes ;; 1591 1592 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1593 | --x-incl | --x-inc | --x-in | --x-i) 1594 ac_prev=x_includes ;; 1595 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1596 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1597 x_includes=$ac_optarg ;; 1598 1599 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1600 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1601 ac_prev=x_libraries ;; 1602 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1603 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1604 x_libraries=$ac_optarg ;; 1605 1606 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1607 Try \`$0 --help' for more information" 1608 ;; 1609 1610 *=*) 1611 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1612 # Reject names that are not valid shell variable names. 1613 case $ac_envvar in #( 1614 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1615 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1616 esac 1617 eval $ac_envvar=\$ac_optarg 1618 export $ac_envvar ;; 1619 1620 *) 1621 # FIXME: should be removed in autoconf 3.0. 1622 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1623 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1624 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1625 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1626 ;; 1627 1628 esac 1629 done 1630 1631 if test -n "$ac_prev"; then 1632 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1633 as_fn_error $? "missing argument to $ac_option" 1634 fi 1635 1636 if test -n "$ac_unrecognized_opts"; then 1637 case $enable_option_checking in 1638 no) ;; 1639 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1640 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1641 esac 1642 fi 1643 1644 # Check all directory arguments for consistency. 1645 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1646 datadir sysconfdir sharedstatedir localstatedir includedir \ 1647 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1648 libdir localedir mandir 1649 do 1650 eval ac_val=\$$ac_var 1651 # Remove trailing slashes. 1652 case $ac_val in 1653 */ ) 1654 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1655 eval $ac_var=\$ac_val;; 1656 esac 1657 # Be sure to have absolute directory names. 1658 case $ac_val in 1659 [\\/$]* | ?:[\\/]* ) continue;; 1660 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1661 esac 1662 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1663 done 1664 1665 # There might be people who depend on the old broken behavior: `$host' 1666 # used to hold the argument of --host etc. 1667 # FIXME: To remove some day. 1668 build=$build_alias 1669 host=$host_alias 1670 target=$target_alias 1671 1672 # FIXME: To remove some day. 1673 if test "x$host_alias" != x; then 1674 if test "x$build_alias" = x; then 1675 cross_compiling=maybe 1676 elif test "x$build_alias" != "x$host_alias"; then 1677 cross_compiling=yes 1678 fi 1679 fi 1680 1681 ac_tool_prefix= 1682 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1683 1684 test "$silent" = yes && exec 6>/dev/null 1685 1686 1687 ac_pwd=`pwd` && test -n "$ac_pwd" && 1688 ac_ls_di=`ls -di .` && 1689 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1690 as_fn_error $? "working directory cannot be determined" 1691 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1692 as_fn_error $? "pwd does not report name of working directory" 1693 1694 1695 # Find the source files, if location was not specified. 1696 if test -z "$srcdir"; then 1697 ac_srcdir_defaulted=yes 1698 # Try the directory containing this script, then the parent directory. 1699 ac_confdir=`$as_dirname -- "$as_myself" || 1700 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1701 X"$as_myself" : 'X\(//\)[^/]' \| \ 1702 X"$as_myself" : 'X\(//\)$' \| \ 1703 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1704 $as_echo X"$as_myself" | 1705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1706 s//\1/ 1707 q 1708 } 1709 /^X\(\/\/\)[^/].*/{ 1710 s//\1/ 1711 q 1712 } 1713 /^X\(\/\/\)$/{ 1714 s//\1/ 1715 q 1716 } 1717 /^X\(\/\).*/{ 1718 s//\1/ 1719 q 1720 } 1721 s/.*/./; q'` 1722 srcdir=$ac_confdir 1723 if test ! -r "$srcdir/$ac_unique_file"; then 1724 srcdir=.. 1725 fi 1726 else 1727 ac_srcdir_defaulted=no 1728 fi 1729 if test ! -r "$srcdir/$ac_unique_file"; then 1730 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1731 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1732 fi 1733 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1734 ac_abs_confdir=`( 1735 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1736 pwd)` 1737 # When building in place, set srcdir=. 1738 if test "$ac_abs_confdir" = "$ac_pwd"; then 1739 srcdir=. 1740 fi 1741 # Remove unnecessary trailing slashes from srcdir. 1742 # Double slashes in file names in object file debugging info 1743 # mess up M-x gdb in Emacs. 1744 case $srcdir in 1745 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1746 esac 1747 for ac_var in $ac_precious_vars; do 1748 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1749 eval ac_env_${ac_var}_value=\$${ac_var} 1750 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1751 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1752 done 1753 1754 # 1755 # Report the --help message. 1756 # 1757 if test "$ac_init_help" = "long"; then 1758 # Omit some internal or obsolete options to make the list less imposing. 1759 # This message is too long to be a string in the A/UX 3.1 sh. 1760 cat <<_ACEOF 1761 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1762 1763 Usage: $0 [OPTION]... [VAR=VALUE]... 1764 1765 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1766 VAR=VALUE. See below for descriptions of some of the useful variables. 1767 1768 Defaults for the options are specified in brackets. 1769 1770 Configuration: 1771 -h, --help display this help and exit 1772 --help=short display options specific to this package 1773 --help=recursive display the short help of all the included packages 1774 -V, --version display version information and exit 1775 -q, --quiet, --silent do not print \`checking ...' messages 1776 --cache-file=FILE cache test results in FILE [disabled] 1777 -C, --config-cache alias for \`--cache-file=config.cache' 1778 -n, --no-create do not create output files 1779 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1780 1781 Installation directories: 1782 --prefix=PREFIX install architecture-independent files in PREFIX 1783 [$ac_default_prefix] 1784 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1785 [PREFIX] 1786 1787 By default, \`make install' will install all the files in 1788 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1789 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1790 for instance \`--prefix=\$HOME'. 1791 1792 For better control, use the options below. 1793 1794 Fine tuning of the installation directories: 1795 --bindir=DIR user executables [EPREFIX/bin] 1796 --sbindir=DIR system admin executables [EPREFIX/sbin] 1797 --libexecdir=DIR program executables [EPREFIX/libexec] 1798 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1799 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1800 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1801 --libdir=DIR object code libraries [EPREFIX/lib] 1802 --includedir=DIR C header files [PREFIX/include] 1803 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1804 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1805 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1806 --infodir=DIR info documentation [DATAROOTDIR/info] 1807 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1808 --mandir=DIR man documentation [DATAROOTDIR/man] 1809 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1810 --htmldir=DIR html documentation [DOCDIR] 1811 --dvidir=DIR dvi documentation [DOCDIR] 1812 --pdfdir=DIR pdf documentation [DOCDIR] 1813 --psdir=DIR ps documentation [DOCDIR] 1814 _ACEOF 1815 1816 cat <<\_ACEOF 1817 1818 X features: 1819 --x-includes=DIR X include files are in DIR 1820 --x-libraries=DIR X library files are in DIR 1821 1822 System types: 1823 --build=BUILD configure for building on BUILD [guessed] 1824 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1825 --target=TARGET configure for building compilers for TARGET [HOST] 1826 _ACEOF 1827 fi 1828 1829 if test -n "$ac_init_help"; then 1830 case $ac_init_help in 1831 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1832 esac 1833 cat <<\_ACEOF 1834 1835 Optional Features: 1836 --disable-option-checking ignore unrecognized --enable/--with options 1837 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1838 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1839 --enable-openjdk-only suppress building custom source even if present 1840 [disabled] 1841 --enable-debug set the debug level to fastdebug (shorthand for 1842 --with-debug-level=fastdebug) [disabled] 1843 --disable-headful disable building headful support (graphical UI 1844 support) [enabled] 1845 --enable-hotspot-test-in-build 1846 run the Queens test after Hotspot build [disabled] 1847 --enable-unlimited-crypto 1848 Enable unlimited crypto policy [disabled] 1849 --enable-rmiconnector-iiop 1850 enable the JMX RMIConnector iiop transport 1851 [disabled] 1852 --disable-debug-symbols disable generation of debug symbols [enabled] 1853 --disable-zip-debug-info 1854 disable zipping of debug-info files [enabled] 1855 --disable-freetype-bundling 1856 disable bundling of the freetype library with the 1857 build result [enabled on Windows or when using 1858 --with-freetype, disabled otherwise] 1859 --enable-sjavac use sjavac to do fast incremental compiles 1860 [disabled] 1861 --disable-precompiled-headers 1862 disable using precompiled headers when compiling C++ 1863 [enabled] 1864 --enable-ccache enable using ccache to speed up recompilations 1865 [disabled] 1866 1867 Optional Packages: 1868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1870 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1871 support it), e.g. --with-target-bits=32 [guessed] 1872 --with-custom-make-dir Deprecated. Option is kept for backwards 1873 compatibility and is ignored 1874 --with-jdk-variant JDK variant to build (normal) [normal] 1875 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1876 --with-jvm-variants JVM variants (separated by commas) to build (server, 1877 client, minimal1, kernel, zero, zeroshark, core) 1878 [server] 1879 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1880 optimized (HotSpot build only)) [release] 1881 --with-devkit use this devkit for compilers, tools and resources 1882 --with-sys-root alias for --with-sysroot for backwards compatability 1883 --with-sysroot use this directory as sysroot 1884 --with-tools-dir alias for --with-toolchain-path for backwards 1885 compatibility 1886 --with-toolchain-path prepend these directories when searching for 1887 toolchain binaries (compilers etc) 1888 --with-extra-path prepend these directories to the default path 1889 --with-sdk-name use the platform SDK of the given name. [macosx] 1890 --with-conf-name use this as the name of the configuration [generated 1891 from important configuration options] 1892 --with-output-sync set make output sync type if supported by make. 1893 [recurse] 1894 --with-builddeps-conf use this configuration file for the builddeps 1895 --with-builddeps-server download and use build dependencies from this server 1896 url 1897 --with-builddeps-dir store downloaded build dependencies here 1898 [/localhome/builddeps] 1899 --with-builddeps-group chgrp the downloaded build dependencies to this 1900 group 1901 --with-cacerts-file specify alternative cacerts file 1902 --with-milestone Set milestone value for build [internal] 1903 --with-update-version Set update version value for build [b00] 1904 --with-user-release-suffix 1905 Add a custom string to the version string if build 1906 number is not set.[username_builddateb00] 1907 --with-build-number Set build number value for build [b00] 1908 --with-copyright-year Set copyright year value for build [current year] 1909 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1910 --with-add-source-root for each and every source directory, look in this 1911 additional source root for the same directory; if it 1912 exists and have files in it, include it in the build 1913 --with-override-source-root 1914 for each and every source directory, look in this 1915 override source root for the same directory; if it 1916 exists, use that directory instead and ignore the 1917 directory in the original source root 1918 --with-adds-and-overrides 1919 use the subdirs 'adds' and 'overrides' in the 1920 specified directory as add-source-root and 1921 override-source-root 1922 --with-override-langtools 1923 use this langtools dir for the build 1924 --with-override-corba use this corba dir for the build 1925 --with-override-jaxp use this jaxp dir for the build 1926 --with-override-jaxws use this jaxws dir for the build 1927 --with-override-hotspot use this hotspot dir for the build 1928 --with-override-nashorn use this nashorn dir for the build 1929 --with-override-jdk use this jdk dir for the build 1930 --with-import-hotspot import hotspot binaries from this jdk image or 1931 hotspot build dist dir instead of building from 1932 source 1933 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1934 to show possible values [platform dependent] 1935 --with-toolchain-version 1936 the version of the toolchain to look for, use 1937 '--help' to show possible values [platform 1938 dependent] 1939 --with-jtreg Regression Test Harness [probed] 1940 --with-extra-cflags extra flags to be used when compiling jdk c-files 1941 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1942 --with-extra-ldflags extra flags to be used when linking jdk 1943 --with-x use the X Window System 1944 --with-cups specify prefix directory for the cups package 1945 (expecting the headers under PATH/include) 1946 --with-cups-include specify directory for the cups include files 1947 --with-freetype specify prefix directory for the freetype package 1948 (expecting the libraries under PATH/lib and the 1949 headers under PATH/include) 1950 --with-freetype-include specify directory for the freetype include files 1951 --with-freetype-lib specify directory for the freetype library 1952 --with-freetype-src specify directory with freetype sources to 1953 automatically build the library (experimental, 1954 Windows-only) 1955 --with-alsa specify prefix directory for the alsa package 1956 (expecting the libraries under PATH/lib and the 1957 headers under PATH/include) 1958 --with-alsa-include specify directory for the alsa include files 1959 --with-alsa-lib specify directory for the alsa library 1960 --with-libjpeg use libjpeg from build system or OpenJDK source 1961 (system, bundled) [bundled] 1962 --with-giflib use giflib from build system or OpenJDK source 1963 (system, bundled) [bundled] 1964 --with-lcms use lcms2 from build system or OpenJDK source 1965 (system, bundled) [bundled] 1966 --with-libpng use libpng from build system or OpenJDK source 1967 (system, bundled) [bundled] 1968 --with-zlib use zlib from build system or OpenJDK source 1969 (system, bundled) [bundled] 1970 --with-stdc++lib=<static>,<dynamic>,<default> 1971 force linking of the C++ runtime on Linux to either 1972 static or dynamic, default is static with dynamic as 1973 fallback 1974 --with-msvcr-dll path to microsoft C runtime dll (msvcr*.dll) 1975 (Windows only) [probed] 1976 --with-msvcp-dll path to microsoft C++ runtime dll (msvcp*.dll) 1977 (Windows only) [probed] 1978 --with-dxsdk Deprecated. Option is kept for backwards 1979 compatibility and is ignored 1980 --with-dxsdk-lib Deprecated. Option is kept for backwards 1981 compatibility and is ignored 1982 --with-dxsdk-include Deprecated. Option is kept for backwards 1983 compatibility and is ignored 1984 --with-num-cores number of cores in the build system, e.g. 1985 --with-num-cores=8 [probed] 1986 --with-memory-size memory (in MB) available in the build system, e.g. 1987 --with-memory-size=1024 [probed] 1988 --with-jobs number of parallel jobs to let make run [calculated 1989 based on cores and memory] 1990 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1991 invocations of boot JDK, overriding the default 1992 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1993 -enableassertions" 1994 --with-sjavac-server-java 1995 use this java binary for running the sjavac 1996 background server [Boot JDK java] 1997 --with-ccache-dir where to store ccache files [~/.ccache] 1998 1999 Some influential environment variables: 2000 BASENAME Override default value for BASENAME 2001 BASH Override default value for BASH 2002 CAT Override default value for CAT 2003 CHMOD Override default value for CHMOD 2004 CMP Override default value for CMP 2005 COMM Override default value for COMM 2006 CP Override default value for CP 2007 CUT Override default value for CUT 2008 DATE Override default value for DATE 2009 DIFF Override default value for DIFF 2010 DIRNAME Override default value for DIRNAME 2011 ECHO Override default value for ECHO 2012 EXPR Override default value for EXPR 2013 FILE Override default value for FILE 2014 FIND Override default value for FIND 2015 HEAD Override default value for HEAD 2016 LN Override default value for LN 2017 LS Override default value for LS 2018 MKDIR Override default value for MKDIR 2019 MKTEMP Override default value for MKTEMP 2020 MV Override default value for MV 2021 NAWK Override default value for NAWK 2022 PRINTF Override default value for PRINTF 2023 RM Override default value for RM 2024 SH Override default value for SH 2025 SORT Override default value for SORT 2026 TAIL Override default value for TAIL 2027 TAR Override default value for TAR 2028 TEE Override default value for TEE 2029 TOUCH Override default value for TOUCH 2030 TR Override default value for TR 2031 UNAME Override default value for UNAME 2032 UNIQ Override default value for UNIQ 2033 WC Override default value for WC 2034 WHICH Override default value for WHICH 2035 XARGS Override default value for XARGS 2036 AWK Override default value for AWK 2037 GREP Override default value for GREP 2038 EGREP Override default value for EGREP 2039 FGREP Override default value for FGREP 2040 SED Override default value for SED 2041 CYGPATH Override default value for CYGPATH 2042 READLINK Override default value for READLINK 2043 DF Override default value for DF 2044 SETFILE Override default value for SETFILE 2045 CPIO Override default value for CPIO 2046 UNZIP Override default value for UNZIP 2047 ZIP Override default value for ZIP 2048 LDD Override default value for LDD 2049 OTOOL Override default value for OTOOL 2050 READELF Override default value for READELF 2051 HG Override default value for HG 2052 STAT Override default value for STAT 2053 TIME Override default value for TIME 2054 DSYMUTIL Override default value for DSYMUTIL 2055 XATTR Override default value for XATTR 2056 CODESIGN Override default value for CODESIGN 2057 PKG_CONFIG path to pkg-config utility 2058 JAVA Override default value for JAVA 2059 JAVAC Override default value for JAVAC 2060 JAVAH Override default value for JAVAH 2061 JAR Override default value for JAR 2062 NATIVE2ASCII 2063 Override default value for NATIVE2ASCII 2064 JARSIGNER Override default value for JARSIGNER 2065 CC C compiler command 2066 CFLAGS C compiler flags 2067 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2068 nonstandard directory <lib dir> 2069 LIBS libraries to pass to the linker, e.g. -l<library> 2070 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2071 you have headers in a nonstandard directory <include dir> 2072 CXX C++ compiler command 2073 CXXFLAGS C++ compiler flags 2074 CPP C preprocessor 2075 CXXCPP C++ preprocessor 2076 AS Override default value for AS 2077 AR Override default value for AR 2078 LIPO Override default value for LIPO 2079 STRIP Override default value for STRIP 2080 NM Override default value for NM 2081 GNM Override default value for GNM 2082 MCS Override default value for MCS 2083 OBJCOPY Override default value for OBJCOPY 2084 OBJDUMP Override default value for OBJDUMP 2085 BUILD_CC Override default value for BUILD_CC 2086 BUILD_CXX Override default value for BUILD_CXX 2087 BUILD_LD Override default value for BUILD_LD 2088 JTREGEXE Override default value for JTREGEXE 2089 XMKMF Path to xmkmf, Makefile generator for X Window System 2090 FREETYPE_CFLAGS 2091 C compiler flags for FREETYPE, overriding pkg-config 2092 FREETYPE_LIBS 2093 linker flags for FREETYPE, overriding pkg-config 2094 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2095 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2096 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2097 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2098 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2099 PNG_LIBS linker flags for PNG, overriding pkg-config 2100 LIBFFI_CFLAGS 2101 C compiler flags for LIBFFI, overriding pkg-config 2102 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2103 CCACHE Override default value for CCACHE 2104 2105 Use these variables to override the choices made by `configure' or to help 2106 it to find libraries and programs with nonstandard names/locations. 2107 2108 Report bugs to <build-dev@openjdk.java.net>. 2109 OpenJDK home page: <http://openjdk.java.net>. 2110 _ACEOF 2111 ac_status=$? 2112 fi 2113 2114 if test "$ac_init_help" = "recursive"; then 2115 # If there are subdirs, report their specific --help. 2116 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2117 test -d "$ac_dir" || 2118 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2119 continue 2120 ac_builddir=. 2121 2122 case "$ac_dir" in 2123 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2124 *) 2125 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2126 # A ".." for each directory in $ac_dir_suffix. 2127 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2128 case $ac_top_builddir_sub in 2129 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2130 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2131 esac ;; 2132 esac 2133 ac_abs_top_builddir=$ac_pwd 2134 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2135 # for backward compatibility: 2136 ac_top_builddir=$ac_top_build_prefix 2137 2138 case $srcdir in 2139 .) # We are building in place. 2140 ac_srcdir=. 2141 ac_top_srcdir=$ac_top_builddir_sub 2142 ac_abs_top_srcdir=$ac_pwd ;; 2143 [\\/]* | ?:[\\/]* ) # Absolute name. 2144 ac_srcdir=$srcdir$ac_dir_suffix; 2145 ac_top_srcdir=$srcdir 2146 ac_abs_top_srcdir=$srcdir ;; 2147 *) # Relative name. 2148 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2149 ac_top_srcdir=$ac_top_build_prefix$srcdir 2150 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2151 esac 2152 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2153 2154 cd "$ac_dir" || { ac_status=$?; continue; } 2155 # Check for guested configure. 2156 if test -f "$ac_srcdir/configure.gnu"; then 2157 echo && 2158 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2159 elif test -f "$ac_srcdir/configure"; then 2160 echo && 2161 $SHELL "$ac_srcdir/configure" --help=recursive 2162 else 2163 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2164 fi || ac_status=$? 2165 cd "$ac_pwd" || { ac_status=$?; break; } 2166 done 2167 fi 2168 2169 test -n "$ac_init_help" && exit $ac_status 2170 if $ac_init_version; then 2171 cat <<\_ACEOF 2172 OpenJDK configure jdk9 2173 generated by GNU Autoconf 2.69 2174 2175 Copyright (C) 2012 Free Software Foundation, Inc. 2176 This configure script is free software; the Free Software Foundation 2177 gives unlimited permission to copy, distribute and modify it. 2178 _ACEOF 2179 exit 2180 fi 2181 2182 ## ------------------------ ## 2183 ## Autoconf initialization. ## 2184 ## ------------------------ ## 2185 2186 # ac_fn_c_try_compile LINENO 2187 # -------------------------- 2188 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2189 ac_fn_c_try_compile () 2190 { 2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2192 rm -f conftest.$ac_objext 2193 if { { ac_try="$ac_compile" 2194 case "(($ac_try" in 2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2196 *) ac_try_echo=$ac_try;; 2197 esac 2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2199 $as_echo "$ac_try_echo"; } >&5 2200 (eval "$ac_compile") 2>conftest.err 2201 ac_status=$? 2202 if test -s conftest.err; then 2203 grep -v '^ *+' conftest.err >conftest.er1 2204 cat conftest.er1 >&5 2205 mv -f conftest.er1 conftest.err 2206 fi 2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2208 test $ac_status = 0; } && { 2209 test -z "$ac_c_werror_flag" || 2210 test ! -s conftest.err 2211 } && test -s conftest.$ac_objext; then : 2212 ac_retval=0 2213 else 2214 $as_echo "$as_me: failed program was:" >&5 2215 sed 's/^/| /' conftest.$ac_ext >&5 2216 2217 ac_retval=1 2218 fi 2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2220 as_fn_set_status $ac_retval 2221 2222 } # ac_fn_c_try_compile 2223 2224 # ac_fn_cxx_try_compile LINENO 2225 # ---------------------------- 2226 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2227 ac_fn_cxx_try_compile () 2228 { 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 rm -f conftest.$ac_objext 2231 if { { ac_try="$ac_compile" 2232 case "(($ac_try" in 2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2234 *) ac_try_echo=$ac_try;; 2235 esac 2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2237 $as_echo "$ac_try_echo"; } >&5 2238 (eval "$ac_compile") 2>conftest.err 2239 ac_status=$? 2240 if test -s conftest.err; then 2241 grep -v '^ *+' conftest.err >conftest.er1 2242 cat conftest.er1 >&5 2243 mv -f conftest.er1 conftest.err 2244 fi 2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2246 test $ac_status = 0; } && { 2247 test -z "$ac_cxx_werror_flag" || 2248 test ! -s conftest.err 2249 } && test -s conftest.$ac_objext; then : 2250 ac_retval=0 2251 else 2252 $as_echo "$as_me: failed program was:" >&5 2253 sed 's/^/| /' conftest.$ac_ext >&5 2254 2255 ac_retval=1 2256 fi 2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2258 as_fn_set_status $ac_retval 2259 2260 } # ac_fn_cxx_try_compile 2261 2262 # ac_fn_c_try_cpp LINENO 2263 # ---------------------- 2264 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2265 ac_fn_c_try_cpp () 2266 { 2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2268 if { { ac_try="$ac_cpp conftest.$ac_ext" 2269 case "(($ac_try" in 2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2271 *) ac_try_echo=$ac_try;; 2272 esac 2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2274 $as_echo "$ac_try_echo"; } >&5 2275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2276 ac_status=$? 2277 if test -s conftest.err; then 2278 grep -v '^ *+' conftest.err >conftest.er1 2279 cat conftest.er1 >&5 2280 mv -f conftest.er1 conftest.err 2281 fi 2282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2283 test $ac_status = 0; } > conftest.i && { 2284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2285 test ! -s conftest.err 2286 }; then : 2287 ac_retval=0 2288 else 2289 $as_echo "$as_me: failed program was:" >&5 2290 sed 's/^/| /' conftest.$ac_ext >&5 2291 2292 ac_retval=1 2293 fi 2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2295 as_fn_set_status $ac_retval 2296 2297 } # ac_fn_c_try_cpp 2298 2299 # ac_fn_cxx_try_cpp LINENO 2300 # ------------------------ 2301 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2302 ac_fn_cxx_try_cpp () 2303 { 2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2305 if { { ac_try="$ac_cpp conftest.$ac_ext" 2306 case "(($ac_try" in 2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2308 *) ac_try_echo=$ac_try;; 2309 esac 2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2311 $as_echo "$ac_try_echo"; } >&5 2312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2313 ac_status=$? 2314 if test -s conftest.err; then 2315 grep -v '^ *+' conftest.err >conftest.er1 2316 cat conftest.er1 >&5 2317 mv -f conftest.er1 conftest.err 2318 fi 2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2320 test $ac_status = 0; } > conftest.i && { 2321 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2322 test ! -s conftest.err 2323 }; then : 2324 ac_retval=0 2325 else 2326 $as_echo "$as_me: failed program was:" >&5 2327 sed 's/^/| /' conftest.$ac_ext >&5 2328 2329 ac_retval=1 2330 fi 2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2332 as_fn_set_status $ac_retval 2333 2334 } # ac_fn_cxx_try_cpp 2335 2336 # ac_fn_c_try_link LINENO 2337 # ----------------------- 2338 # Try to link conftest.$ac_ext, and return whether this succeeded. 2339 ac_fn_c_try_link () 2340 { 2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2342 rm -f conftest.$ac_objext conftest$ac_exeext 2343 if { { ac_try="$ac_link" 2344 case "(($ac_try" in 2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2346 *) ac_try_echo=$ac_try;; 2347 esac 2348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2349 $as_echo "$ac_try_echo"; } >&5 2350 (eval "$ac_link") 2>conftest.err 2351 ac_status=$? 2352 if test -s conftest.err; then 2353 grep -v '^ *+' conftest.err >conftest.er1 2354 cat conftest.er1 >&5 2355 mv -f conftest.er1 conftest.err 2356 fi 2357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2358 test $ac_status = 0; } && { 2359 test -z "$ac_c_werror_flag" || 2360 test ! -s conftest.err 2361 } && test -s conftest$ac_exeext && { 2362 test "$cross_compiling" = yes || 2363 test -x conftest$ac_exeext 2364 }; then : 2365 ac_retval=0 2366 else 2367 $as_echo "$as_me: failed program was:" >&5 2368 sed 's/^/| /' conftest.$ac_ext >&5 2369 2370 ac_retval=1 2371 fi 2372 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2373 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2374 # interfere with the next link command; also delete a directory that is 2375 # left behind by Apple's compiler. We do this before executing the actions. 2376 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2377 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2378 as_fn_set_status $ac_retval 2379 2380 } # ac_fn_c_try_link 2381 2382 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2383 # --------------------------------------------------------- 2384 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2385 # the include files in INCLUDES and setting the cache variable VAR 2386 # accordingly. 2387 ac_fn_cxx_check_header_mongrel () 2388 { 2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2390 if eval \${$3+:} false; then : 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2392 $as_echo_n "checking for $2... " >&6; } 2393 if eval \${$3+:} false; then : 2394 $as_echo_n "(cached) " >&6 2395 fi 2396 eval ac_res=\$$3 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2398 $as_echo "$ac_res" >&6; } 2399 else 2400 # Is the header compilable? 2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2402 $as_echo_n "checking $2 usability... " >&6; } 2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2404 /* end confdefs.h. */ 2405 $4 2406 #include <$2> 2407 _ACEOF 2408 if ac_fn_cxx_try_compile "$LINENO"; then : 2409 ac_header_compiler=yes 2410 else 2411 ac_header_compiler=no 2412 fi 2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2415 $as_echo "$ac_header_compiler" >&6; } 2416 2417 # Is the header present? 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2419 $as_echo_n "checking $2 presence... " >&6; } 2420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2421 /* end confdefs.h. */ 2422 #include <$2> 2423 _ACEOF 2424 if ac_fn_cxx_try_cpp "$LINENO"; then : 2425 ac_header_preproc=yes 2426 else 2427 ac_header_preproc=no 2428 fi 2429 rm -f conftest.err conftest.i conftest.$ac_ext 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2431 $as_echo "$ac_header_preproc" >&6; } 2432 2433 # So? What about this header? 2434 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2435 yes:no: ) 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2437 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2439 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2440 ;; 2441 no:yes:* ) 2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2443 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2445 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2447 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2449 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2451 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2452 ( $as_echo "## ----------------------------------------- ## 2453 ## Report this to build-dev@openjdk.java.net ## 2454 ## ----------------------------------------- ##" 2455 ) | sed "s/^/$as_me: WARNING: /" >&2 2456 ;; 2457 esac 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2459 $as_echo_n "checking for $2... " >&6; } 2460 if eval \${$3+:} false; then : 2461 $as_echo_n "(cached) " >&6 2462 else 2463 eval "$3=\$ac_header_compiler" 2464 fi 2465 eval ac_res=\$$3 2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2467 $as_echo "$ac_res" >&6; } 2468 fi 2469 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2470 2471 } # ac_fn_cxx_check_header_mongrel 2472 2473 # ac_fn_cxx_try_run LINENO 2474 # ------------------------ 2475 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2476 # that executables *can* be run. 2477 ac_fn_cxx_try_run () 2478 { 2479 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2480 if { { ac_try="$ac_link" 2481 case "(($ac_try" in 2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2483 *) ac_try_echo=$ac_try;; 2484 esac 2485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2486 $as_echo "$ac_try_echo"; } >&5 2487 (eval "$ac_link") 2>&5 2488 ac_status=$? 2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2490 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2491 { { case "(($ac_try" in 2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2493 *) ac_try_echo=$ac_try;; 2494 esac 2495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2496 $as_echo "$ac_try_echo"; } >&5 2497 (eval "$ac_try") 2>&5 2498 ac_status=$? 2499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2500 test $ac_status = 0; }; }; then : 2501 ac_retval=0 2502 else 2503 $as_echo "$as_me: program exited with status $ac_status" >&5 2504 $as_echo "$as_me: failed program was:" >&5 2505 sed 's/^/| /' conftest.$ac_ext >&5 2506 2507 ac_retval=$ac_status 2508 fi 2509 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2510 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2511 as_fn_set_status $ac_retval 2512 2513 } # ac_fn_cxx_try_run 2514 2515 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2516 # --------------------------------------------------------- 2517 # Tests whether HEADER exists and can be compiled using the include files in 2518 # INCLUDES, setting the cache variable VAR accordingly. 2519 ac_fn_cxx_check_header_compile () 2520 { 2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2523 $as_echo_n "checking for $2... " >&6; } 2524 if eval \${$3+:} false; then : 2525 $as_echo_n "(cached) " >&6 2526 else 2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2528 /* end confdefs.h. */ 2529 $4 2530 #include <$2> 2531 _ACEOF 2532 if ac_fn_cxx_try_compile "$LINENO"; then : 2533 eval "$3=yes" 2534 else 2535 eval "$3=no" 2536 fi 2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2538 fi 2539 eval ac_res=\$$3 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2541 $as_echo "$ac_res" >&6; } 2542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2543 2544 } # ac_fn_cxx_check_header_compile 2545 2546 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2547 # ---------------------------------------------- 2548 # Tries to find the compile-time value of EXPR in a program that includes 2549 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2550 # computed 2551 ac_fn_cxx_compute_int () 2552 { 2553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2554 if test "$cross_compiling" = yes; then 2555 # Depending upon the size, compute the lo and hi bounds. 2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2557 /* end confdefs.h. */ 2558 $4 2559 int 2560 main () 2561 { 2562 static int test_array [1 - 2 * !(($2) >= 0)]; 2563 test_array [0] = 0; 2564 return test_array [0]; 2565 2566 ; 2567 return 0; 2568 } 2569 _ACEOF 2570 if ac_fn_cxx_try_compile "$LINENO"; then : 2571 ac_lo=0 ac_mid=0 2572 while :; do 2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2574 /* end confdefs.h. */ 2575 $4 2576 int 2577 main () 2578 { 2579 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2580 test_array [0] = 0; 2581 return test_array [0]; 2582 2583 ; 2584 return 0; 2585 } 2586 _ACEOF 2587 if ac_fn_cxx_try_compile "$LINENO"; then : 2588 ac_hi=$ac_mid; break 2589 else 2590 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2591 if test $ac_lo -le $ac_mid; then 2592 ac_lo= ac_hi= 2593 break 2594 fi 2595 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2596 fi 2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2598 done 2599 else 2600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2601 /* end confdefs.h. */ 2602 $4 2603 int 2604 main () 2605 { 2606 static int test_array [1 - 2 * !(($2) < 0)]; 2607 test_array [0] = 0; 2608 return test_array [0]; 2609 2610 ; 2611 return 0; 2612 } 2613 _ACEOF 2614 if ac_fn_cxx_try_compile "$LINENO"; then : 2615 ac_hi=-1 ac_mid=-1 2616 while :; do 2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2618 /* end confdefs.h. */ 2619 $4 2620 int 2621 main () 2622 { 2623 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2624 test_array [0] = 0; 2625 return test_array [0]; 2626 2627 ; 2628 return 0; 2629 } 2630 _ACEOF 2631 if ac_fn_cxx_try_compile "$LINENO"; then : 2632 ac_lo=$ac_mid; break 2633 else 2634 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2635 if test $ac_mid -le $ac_hi; then 2636 ac_lo= ac_hi= 2637 break 2638 fi 2639 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2640 fi 2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2642 done 2643 else 2644 ac_lo= ac_hi= 2645 fi 2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2647 fi 2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2649 # Binary search between lo and hi bounds. 2650 while test "x$ac_lo" != "x$ac_hi"; do 2651 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2653 /* end confdefs.h. */ 2654 $4 2655 int 2656 main () 2657 { 2658 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2659 test_array [0] = 0; 2660 return test_array [0]; 2661 2662 ; 2663 return 0; 2664 } 2665 _ACEOF 2666 if ac_fn_cxx_try_compile "$LINENO"; then : 2667 ac_hi=$ac_mid 2668 else 2669 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2670 fi 2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2672 done 2673 case $ac_lo in #(( 2674 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2675 '') ac_retval=1 ;; 2676 esac 2677 else 2678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2679 /* end confdefs.h. */ 2680 $4 2681 static long int longval () { return $2; } 2682 static unsigned long int ulongval () { return $2; } 2683 #include <stdio.h> 2684 #include <stdlib.h> 2685 int 2686 main () 2687 { 2688 2689 FILE *f = fopen ("conftest.val", "w"); 2690 if (! f) 2691 return 1; 2692 if (($2) < 0) 2693 { 2694 long int i = longval (); 2695 if (i != ($2)) 2696 return 1; 2697 fprintf (f, "%ld", i); 2698 } 2699 else 2700 { 2701 unsigned long int i = ulongval (); 2702 if (i != ($2)) 2703 return 1; 2704 fprintf (f, "%lu", i); 2705 } 2706 /* Do not output a trailing newline, as this causes \r\n confusion 2707 on some platforms. */ 2708 return ferror (f) || fclose (f) != 0; 2709 2710 ; 2711 return 0; 2712 } 2713 _ACEOF 2714 if ac_fn_cxx_try_run "$LINENO"; then : 2715 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2716 else 2717 ac_retval=1 2718 fi 2719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2720 conftest.$ac_objext conftest.beam conftest.$ac_ext 2721 rm -f conftest.val 2722 2723 fi 2724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2725 as_fn_set_status $ac_retval 2726 2727 } # ac_fn_cxx_compute_int 2728 2729 # ac_fn_cxx_try_link LINENO 2730 # ------------------------- 2731 # Try to link conftest.$ac_ext, and return whether this succeeded. 2732 ac_fn_cxx_try_link () 2733 { 2734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2735 rm -f conftest.$ac_objext conftest$ac_exeext 2736 if { { ac_try="$ac_link" 2737 case "(($ac_try" in 2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2739 *) ac_try_echo=$ac_try;; 2740 esac 2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2742 $as_echo "$ac_try_echo"; } >&5 2743 (eval "$ac_link") 2>conftest.err 2744 ac_status=$? 2745 if test -s conftest.err; then 2746 grep -v '^ *+' conftest.err >conftest.er1 2747 cat conftest.er1 >&5 2748 mv -f conftest.er1 conftest.err 2749 fi 2750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2751 test $ac_status = 0; } && { 2752 test -z "$ac_cxx_werror_flag" || 2753 test ! -s conftest.err 2754 } && test -s conftest$ac_exeext && { 2755 test "$cross_compiling" = yes || 2756 test -x conftest$ac_exeext 2757 }; then : 2758 ac_retval=0 2759 else 2760 $as_echo "$as_me: failed program was:" >&5 2761 sed 's/^/| /' conftest.$ac_ext >&5 2762 2763 ac_retval=1 2764 fi 2765 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2766 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2767 # interfere with the next link command; also delete a directory that is 2768 # left behind by Apple's compiler. We do this before executing the actions. 2769 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2770 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2771 as_fn_set_status $ac_retval 2772 2773 } # ac_fn_cxx_try_link 2774 2775 # ac_fn_cxx_check_func LINENO FUNC VAR 2776 # ------------------------------------ 2777 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2778 ac_fn_cxx_check_func () 2779 { 2780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2782 $as_echo_n "checking for $2... " >&6; } 2783 if eval \${$3+:} false; then : 2784 $as_echo_n "(cached) " >&6 2785 else 2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2787 /* end confdefs.h. */ 2788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2789 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2790 #define $2 innocuous_$2 2791 2792 /* System header to define __stub macros and hopefully few prototypes, 2793 which can conflict with char $2 (); below. 2794 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2795 <limits.h> exists even on freestanding compilers. */ 2796 2797 #ifdef __STDC__ 2798 # include <limits.h> 2799 #else 2800 # include <assert.h> 2801 #endif 2802 2803 #undef $2 2804 2805 /* Override any GCC internal prototype to avoid an error. 2806 Use char because int might match the return type of a GCC 2807 builtin and then its argument prototype would still apply. */ 2808 #ifdef __cplusplus 2809 extern "C" 2810 #endif 2811 char $2 (); 2812 /* The GNU C library defines this for functions which it implements 2813 to always fail with ENOSYS. Some functions are actually named 2814 something starting with __ and the normal name is an alias. */ 2815 #if defined __stub_$2 || defined __stub___$2 2816 choke me 2817 #endif 2818 2819 int 2820 main () 2821 { 2822 return $2 (); 2823 ; 2824 return 0; 2825 } 2826 _ACEOF 2827 if ac_fn_cxx_try_link "$LINENO"; then : 2828 eval "$3=yes" 2829 else 2830 eval "$3=no" 2831 fi 2832 rm -f core conftest.err conftest.$ac_objext \ 2833 conftest$ac_exeext conftest.$ac_ext 2834 fi 2835 eval ac_res=\$$3 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2837 $as_echo "$ac_res" >&6; } 2838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2839 2840 } # ac_fn_cxx_check_func 2841 2842 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2843 # ------------------------------------------------------- 2844 # Tests whether HEADER exists and can be compiled using the include files in 2845 # INCLUDES, setting the cache variable VAR accordingly. 2846 ac_fn_c_check_header_compile () 2847 { 2848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2850 $as_echo_n "checking for $2... " >&6; } 2851 if eval \${$3+:} false; then : 2852 $as_echo_n "(cached) " >&6 2853 else 2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2855 /* end confdefs.h. */ 2856 $4 2857 #include <$2> 2858 _ACEOF 2859 if ac_fn_c_try_compile "$LINENO"; then : 2860 eval "$3=yes" 2861 else 2862 eval "$3=no" 2863 fi 2864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2865 fi 2866 eval ac_res=\$$3 2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2868 $as_echo "$ac_res" >&6; } 2869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2870 2871 } # ac_fn_c_check_header_compile 2872 cat >config.log <<_ACEOF 2873 This file contains any messages produced by compilers while 2874 running configure, to aid debugging if configure makes a mistake. 2875 2876 It was created by OpenJDK $as_me jdk9, which was 2877 generated by GNU Autoconf 2.69. Invocation command line was 2878 2879 $ $0 $@ 2880 2881 _ACEOF 2882 exec 5>>config.log 2883 { 2884 cat <<_ASUNAME 2885 ## --------- ## 2886 ## Platform. ## 2887 ## --------- ## 2888 2889 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2890 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2891 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2892 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2893 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2894 2895 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2896 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2897 2898 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2899 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2900 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2901 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2902 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2903 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2904 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2905 2906 _ASUNAME 2907 2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2909 for as_dir in $PATH 2910 do 2911 IFS=$as_save_IFS 2912 test -z "$as_dir" && as_dir=. 2913 $as_echo "PATH: $as_dir" 2914 done 2915 IFS=$as_save_IFS 2916 2917 } >&5 2918 2919 cat >&5 <<_ACEOF 2920 2921 2922 ## ----------- ## 2923 ## Core tests. ## 2924 ## ----------- ## 2925 2926 _ACEOF 2927 2928 2929 # Keep a trace of the command line. 2930 # Strip out --no-create and --no-recursion so they do not pile up. 2931 # Strip out --silent because we don't want to record it for future runs. 2932 # Also quote any args containing shell meta-characters. 2933 # Make two passes to allow for proper duplicate-argument suppression. 2934 ac_configure_args= 2935 ac_configure_args0= 2936 ac_configure_args1= 2937 ac_must_keep_next=false 2938 for ac_pass in 1 2 2939 do 2940 for ac_arg 2941 do 2942 case $ac_arg in 2943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2945 | -silent | --silent | --silen | --sile | --sil) 2946 continue ;; 2947 *\'*) 2948 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2949 esac 2950 case $ac_pass in 2951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2952 2) 2953 as_fn_append ac_configure_args1 " '$ac_arg'" 2954 if test $ac_must_keep_next = true; then 2955 ac_must_keep_next=false # Got value, back to normal. 2956 else 2957 case $ac_arg in 2958 *=* | --config-cache | -C | -disable-* | --disable-* \ 2959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2961 | -with-* | --with-* | -without-* | --without-* | --x) 2962 case "$ac_configure_args0 " in 2963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2964 esac 2965 ;; 2966 -* ) ac_must_keep_next=true ;; 2967 esac 2968 fi 2969 as_fn_append ac_configure_args " '$ac_arg'" 2970 ;; 2971 esac 2972 done 2973 done 2974 { ac_configure_args0=; unset ac_configure_args0;} 2975 { ac_configure_args1=; unset ac_configure_args1;} 2976 2977 # When interrupted or exit'd, cleanup temporary files, and complete 2978 # config.log. We remove comments because anyway the quotes in there 2979 # would cause problems or look ugly. 2980 # WARNING: Use '\'' to represent an apostrophe within the trap. 2981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2982 trap 'exit_status=$? 2983 # Save into config.log some information that might help in debugging. 2984 { 2985 echo 2986 2987 $as_echo "## ---------------- ## 2988 ## Cache variables. ## 2989 ## ---------------- ##" 2990 echo 2991 # The following way of writing the cache mishandles newlines in values, 2992 ( 2993 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2994 eval ac_val=\$$ac_var 2995 case $ac_val in #( 2996 *${as_nl}*) 2997 case $ac_var in #( 2998 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2999 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3000 esac 3001 case $ac_var in #( 3002 _ | IFS | as_nl) ;; #( 3003 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3004 *) { eval $ac_var=; unset $ac_var;} ;; 3005 esac ;; 3006 esac 3007 done 3008 (set) 2>&1 | 3009 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3010 *${as_nl}ac_space=\ *) 3011 sed -n \ 3012 "s/'\''/'\''\\\\'\'''\''/g; 3013 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3014 ;; #( 3015 *) 3016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3017 ;; 3018 esac | 3019 sort 3020 ) 3021 echo 3022 3023 $as_echo "## ----------------- ## 3024 ## Output variables. ## 3025 ## ----------------- ##" 3026 echo 3027 for ac_var in $ac_subst_vars 3028 do 3029 eval ac_val=\$$ac_var 3030 case $ac_val in 3031 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3032 esac 3033 $as_echo "$ac_var='\''$ac_val'\''" 3034 done | sort 3035 echo 3036 3037 if test -n "$ac_subst_files"; then 3038 $as_echo "## ------------------- ## 3039 ## File substitutions. ## 3040 ## ------------------- ##" 3041 echo 3042 for ac_var in $ac_subst_files 3043 do 3044 eval ac_val=\$$ac_var 3045 case $ac_val in 3046 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3047 esac 3048 $as_echo "$ac_var='\''$ac_val'\''" 3049 done | sort 3050 echo 3051 fi 3052 3053 if test -s confdefs.h; then 3054 $as_echo "## ----------- ## 3055 ## confdefs.h. ## 3056 ## ----------- ##" 3057 echo 3058 cat confdefs.h 3059 echo 3060 fi 3061 test "$ac_signal" != 0 && 3062 $as_echo "$as_me: caught signal $ac_signal" 3063 $as_echo "$as_me: exit $exit_status" 3064 } >&5 3065 rm -f core *.core core.conftest.* && 3066 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3067 exit $exit_status 3068 ' 0 3069 for ac_signal in 1 2 13 15; do 3070 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3071 done 3072 ac_signal=0 3073 3074 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3075 rm -f -r conftest* confdefs.h 3076 3077 $as_echo "/* confdefs.h */" > confdefs.h 3078 3079 # Predefined preprocessor variables. 3080 3081 cat >>confdefs.h <<_ACEOF 3082 #define PACKAGE_NAME "$PACKAGE_NAME" 3083 _ACEOF 3084 3085 cat >>confdefs.h <<_ACEOF 3086 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3087 _ACEOF 3088 3089 cat >>confdefs.h <<_ACEOF 3090 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3091 _ACEOF 3092 3093 cat >>confdefs.h <<_ACEOF 3094 #define PACKAGE_STRING "$PACKAGE_STRING" 3095 _ACEOF 3096 3097 cat >>confdefs.h <<_ACEOF 3098 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3099 _ACEOF 3100 3101 cat >>confdefs.h <<_ACEOF 3102 #define PACKAGE_URL "$PACKAGE_URL" 3103 _ACEOF 3104 3105 3106 # Let the site file select an alternate cache file if it wants to. 3107 # Prefer an explicitly selected file to automatically selected ones. 3108 ac_site_file1=NONE 3109 ac_site_file2=NONE 3110 if test -n "$CONFIG_SITE"; then 3111 # We do not want a PATH search for config.site. 3112 case $CONFIG_SITE in #(( 3113 -*) ac_site_file1=./$CONFIG_SITE;; 3114 */*) ac_site_file1=$CONFIG_SITE;; 3115 *) ac_site_file1=./$CONFIG_SITE;; 3116 esac 3117 elif test "x$prefix" != xNONE; then 3118 ac_site_file1=$prefix/share/config.site 3119 ac_site_file2=$prefix/etc/config.site 3120 else 3121 ac_site_file1=$ac_default_prefix/share/config.site 3122 ac_site_file2=$ac_default_prefix/etc/config.site 3123 fi 3124 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3125 do 3126 test "x$ac_site_file" = xNONE && continue 3127 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3128 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3129 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3130 sed 's/^/| /' "$ac_site_file" >&5 3131 . "$ac_site_file" \ 3132 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3134 as_fn_error $? "failed to load site script $ac_site_file 3135 See \`config.log' for more details" "$LINENO" 5; } 3136 fi 3137 done 3138 3139 if test -r "$cache_file"; then 3140 # Some versions of bash will fail to source /dev/null (special files 3141 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3142 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3144 $as_echo "$as_me: loading cache $cache_file" >&6;} 3145 case $cache_file in 3146 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3147 *) . "./$cache_file";; 3148 esac 3149 fi 3150 else 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3152 $as_echo "$as_me: creating cache $cache_file" >&6;} 3153 >$cache_file 3154 fi 3155 3156 # Check that the precious variables saved in the cache have kept the same 3157 # value. 3158 ac_cache_corrupted=false 3159 for ac_var in $ac_precious_vars; do 3160 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3161 eval ac_new_set=\$ac_env_${ac_var}_set 3162 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3163 eval ac_new_val=\$ac_env_${ac_var}_value 3164 case $ac_old_set,$ac_new_set in 3165 set,) 3166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3167 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3168 ac_cache_corrupted=: ;; 3169 ,set) 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3171 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3172 ac_cache_corrupted=: ;; 3173 ,);; 3174 *) 3175 if test "x$ac_old_val" != "x$ac_new_val"; then 3176 # differences in whitespace do not lead to failure. 3177 ac_old_val_w=`echo x $ac_old_val` 3178 ac_new_val_w=`echo x $ac_new_val` 3179 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3181 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3182 ac_cache_corrupted=: 3183 else 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3185 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3186 eval $ac_var=\$ac_old_val 3187 fi 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3189 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3191 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3192 fi;; 3193 esac 3194 # Pass precious variables to config.status. 3195 if test "$ac_new_set" = set; then 3196 case $ac_new_val in 3197 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3198 *) ac_arg=$ac_var=$ac_new_val ;; 3199 esac 3200 case " $ac_configure_args " in 3201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3202 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3203 esac 3204 fi 3205 done 3206 if $ac_cache_corrupted; then 3207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3210 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3211 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3212 fi 3213 ## -------------------- ## 3214 ## Main body of script. ## 3215 ## -------------------- ## 3216 3217 ac_ext=c 3218 ac_cpp='$CPP $CPPFLAGS' 3219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3221 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3222 3223 3224 3225 ac_aux_dir= 3226 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3227 if test -f "$ac_dir/install-sh"; then 3228 ac_aux_dir=$ac_dir 3229 ac_install_sh="$ac_aux_dir/install-sh -c" 3230 break 3231 elif test -f "$ac_dir/install.sh"; then 3232 ac_aux_dir=$ac_dir 3233 ac_install_sh="$ac_aux_dir/install.sh -c" 3234 break 3235 elif test -f "$ac_dir/shtool"; then 3236 ac_aux_dir=$ac_dir 3237 ac_install_sh="$ac_aux_dir/shtool install -c" 3238 break 3239 fi 3240 done 3241 if test -z "$ac_aux_dir"; then 3242 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3243 fi 3244 3245 # These three variables are undocumented and unsupported, 3246 # and are intended to be withdrawn in a future Autoconf release. 3247 # They can cause serious problems if a builder's source tree is in a directory 3248 # whose full name contains unusual characters. 3249 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3250 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3251 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3252 3253 3254 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3255 3256 # 3257 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3258 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3259 # 3260 # This code is free software; you can redistribute it and/or modify it 3261 # under the terms of the GNU General Public License version 2 only, as 3262 # published by the Free Software Foundation. Oracle designates this 3263 # particular file as subject to the "Classpath" exception as provided 3264 # by Oracle in the LICENSE file that accompanied this code. 3265 # 3266 # This code is distributed in the hope that it will be useful, but WITHOUT 3267 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3268 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3269 # version 2 for more details (a copy is included in the LICENSE file that 3270 # accompanied this code). 3271 # 3272 # You should have received a copy of the GNU General Public License version 3273 # 2 along with this work; if not, write to the Free Software Foundation, 3274 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3275 # 3276 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3277 # or visit www.oracle.com if you need additional information or have any 3278 # questions. 3279 # 3280 3281 # 3282 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3283 # 3284 # This program is free software; you can redistribute it and/or modify 3285 # it under the terms of the GNU General Public License as published by 3286 # the Free Software Foundation; either version 2 of the License, or 3287 # (at your option) any later version. 3288 # 3289 # This program is distributed in the hope that it will be useful, but 3290 # WITHOUT ANY WARRANTY; without even the implied warranty of 3291 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3292 # General Public License for more details. 3293 # 3294 # You should have received a copy of the GNU General Public License 3295 # along with this program; if not, write to the Free Software 3296 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3297 # 3298 # As a special exception to the GNU General Public License, if you 3299 # distribute this file as part of a program that contains a 3300 # configuration script generated by Autoconf, you may include it under 3301 # the same distribution terms that you use for the rest of that program. 3302 3303 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3304 # ---------------------------------- 3305 # PKG_PROG_PKG_CONFIG 3306 3307 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3308 # 3309 # Check to see whether a particular set of modules exists. Similar 3310 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3311 # 3312 # 3313 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3314 # this or PKG_CHECK_MODULES is called, or make sure to call 3315 # PKG_CHECK_EXISTS manually 3316 # -------------------------------------------------------------- 3317 3318 3319 3320 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3321 # --------------------------------------------- 3322 # _PKG_CONFIG 3323 3324 # _PKG_SHORT_ERRORS_SUPPORTED 3325 # ----------------------------- 3326 # _PKG_SHORT_ERRORS_SUPPORTED 3327 3328 3329 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3330 # [ACTION-IF-NOT-FOUND]) 3331 # 3332 # 3333 # Note that if there is a possibility the first call to 3334 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3335 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3336 # 3337 # 3338 # -------------------------------------------------------------- 3339 # PKG_CHECK_MODULES 3340 3341 3342 # Include these first... 3343 # 3344 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3345 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3346 # 3347 # This code is free software; you can redistribute it and/or modify it 3348 # under the terms of the GNU General Public License version 2 only, as 3349 # published by the Free Software Foundation. Oracle designates this 3350 # particular file as subject to the "Classpath" exception as provided 3351 # by Oracle in the LICENSE file that accompanied this code. 3352 # 3353 # This code is distributed in the hope that it will be useful, but WITHOUT 3354 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3355 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3356 # version 2 for more details (a copy is included in the LICENSE file that 3357 # accompanied this code). 3358 # 3359 # You should have received a copy of the GNU General Public License version 3360 # 2 along with this work; if not, write to the Free Software Foundation, 3361 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3362 # 3363 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3364 # or visit www.oracle.com if you need additional information or have any 3365 # questions. 3366 # 3367 3368 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3369 # If so, then append $1 to $2 \ 3370 # Also set JVM_ARG_OK to true/false depending on outcome. 3371 3372 3373 # Appends a string to a path variable, only adding the : when needed. 3374 3375 3376 # Prepends a string to a path variable, only adding the : when needed. 3377 3378 3379 # This will make sure the given variable points to a full and proper 3380 # path. This means: 3381 # 1) There will be no spaces in the path. On unix platforms, 3382 # spaces in the path will result in an error. On Windows, 3383 # the path will be rewritten using short-style to be space-free. 3384 # 2) The path will be absolute, and it will be in unix-style (on 3385 # cygwin). 3386 # $1: The name of the variable to fix 3387 3388 3389 # This will make sure the given variable points to a executable 3390 # with a full and proper path. This means: 3391 # 1) There will be no spaces in the path. On unix platforms, 3392 # spaces in the path will result in an error. On Windows, 3393 # the path will be rewritten using short-style to be space-free. 3394 # 2) The path will be absolute, and it will be in unix-style (on 3395 # cygwin). 3396 # Any arguments given to the executable is preserved. 3397 # If the input variable does not have a directory specification, then 3398 # it need to be in the PATH. 3399 # $1: The name of the variable to fix 3400 3401 3402 3403 3404 # Register a --with argument but mark it as deprecated 3405 # $1: The name of the with argument to deprecate, not including --with- 3406 3407 3408 # Register a --enable argument but mark it as deprecated 3409 # $1: The name of the with argument to deprecate, not including --enable- 3410 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3411 3412 3413 3414 3415 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3416 # $1: variable to check 3417 3418 3419 # Check that there are no unprocessed overridden variables left. 3420 # If so, they are an incorrect argument and we will exit with an error. 3421 3422 3423 # Setup a tool for the given variable. If correctly specified by the user, 3424 # use that value, otherwise search for the tool using the supplied code snippet. 3425 # $1: variable to set 3426 # $2: code snippet to call to look for the tool 3427 3428 3429 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3430 # $1: variable to set 3431 # $2: executable name (or list of names) to look for 3432 3433 3434 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3435 # $1: variable to set 3436 # $2: executable name (or list of names) to look for 3437 3438 3439 # Like BASIC_PATH_PROGS but fails if no tool was found. 3440 # $1: variable to set 3441 # $2: executable name (or list of names) to look for 3442 3443 3444 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3445 # $1: variable to set 3446 # $2: autoconf macro to call to look for the special tool 3447 3448 3449 # Setup the most fundamental tools that relies on not much else to set up, 3450 # but is used by much of the early bootstrap code. 3451 3452 3453 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 #%%% Simple tools %%% 3464 3465 # Check if we have found a usable version of make 3466 # $1: the path to a potential make binary (or empty) 3467 # $2: the description on how we found this 3468 3469 3470 3471 3472 # Goes looking for a usable version of GNU make. 3473 3474 3475 3476 3477 3478 3479 # Check if build directory is on local disk. If not possible to determine, 3480 # we prefer to claim it's local. 3481 # Argument 1: directory to test 3482 # Argument 2: what to do if it is on local disk 3483 # Argument 3: what to do otherwise (remote disk or failure) 3484 3485 3486 # Check that source files have basic read permissions set. This might 3487 # not be the case in cygwin in certain conditions. 3488 3489 3490 3491 3492 # Check for support for specific options in bash 3493 3494 3495 # 3496 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3497 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3498 # 3499 # This code is free software; you can redistribute it and/or modify it 3500 # under the terms of the GNU General Public License version 2 only, as 3501 # published by the Free Software Foundation. Oracle designates this 3502 # particular file as subject to the "Classpath" exception as provided 3503 # by Oracle in the LICENSE file that accompanied this code. 3504 # 3505 # This code is distributed in the hope that it will be useful, but WITHOUT 3506 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3507 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3508 # version 2 for more details (a copy is included in the LICENSE file that 3509 # accompanied this code). 3510 # 3511 # You should have received a copy of the GNU General Public License version 3512 # 2 along with this work; if not, write to the Free Software Foundation, 3513 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3514 # 3515 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3516 # or visit www.oracle.com if you need additional information or have any 3517 # questions. 3518 # 3519 3520 3521 3522 3523 3524 # Helper function which possibly converts a path using DOS-style short mode. 3525 # If so, the updated path is stored in $new_path. 3526 # $1: The path to check 3527 3528 3529 # Helper function which possibly converts a path using DOS-style short mode. 3530 # If so, the updated path is stored in $new_path. 3531 # $1: The path to check 3532 3533 3534 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3535 # and could probably be heavily simplified. However, all changes in this 3536 # area tend to need lot of testing in different scenarios, and in lack of 3537 # proper unit testing, cleaning this up has not been deemed worth the effort 3538 # at the moment. 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3549 3550 3551 3552 3553 # 3554 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3555 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3556 # 3557 # This code is free software; you can redistribute it and/or modify it 3558 # under the terms of the GNU General Public License version 2 only, as 3559 # published by the Free Software Foundation. Oracle designates this 3560 # particular file as subject to the "Classpath" exception as provided 3561 # by Oracle in the LICENSE file that accompanied this code. 3562 # 3563 # This code is distributed in the hope that it will be useful, but WITHOUT 3564 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3565 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3566 # version 2 for more details (a copy is included in the LICENSE file that 3567 # accompanied this code). 3568 # 3569 # You should have received a copy of the GNU General Public License version 3570 # 2 along with this work; if not, write to the Free Software Foundation, 3571 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3572 # 3573 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3574 # or visit www.oracle.com if you need additional information or have any 3575 # questions. 3576 # 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 # ... then the rest 3589 # 3590 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3591 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3592 # 3593 # This code is free software; you can redistribute it and/or modify it 3594 # under the terms of the GNU General Public License version 2 only, as 3595 # published by the Free Software Foundation. Oracle designates this 3596 # particular file as subject to the "Classpath" exception as provided 3597 # by Oracle in the LICENSE file that accompanied this code. 3598 # 3599 # This code is distributed in the hope that it will be useful, but WITHOUT 3600 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3601 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3602 # version 2 for more details (a copy is included in the LICENSE file that 3603 # accompanied this code). 3604 # 3605 # You should have received a copy of the GNU General Public License version 3606 # 2 along with this work; if not, write to the Free Software Foundation, 3607 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3608 # 3609 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3610 # or visit www.oracle.com if you need additional information or have any 3611 # questions. 3612 # 3613 3614 ######################################################################## 3615 # This file handles detection of the Boot JDK. The Boot JDK detection 3616 # process has been developed as a response to solve a complex real-world 3617 # problem. Initially, it was simple, but it has grown as platform after 3618 # platform, idiosyncracy after idiosyncracy has been supported. 3619 # 3620 # The basic idea is this: 3621 # 1) You need an acceptable *) JDK to use as a Boot JDK 3622 # 2) There are several ways to locate a JDK, that are mostly platform 3623 # dependent **) 3624 # 3) You can have multiple JDKs installed 3625 # 4) If possible, configure should try to dig out an acceptable JDK 3626 # automatically, without having to resort to command-line options 3627 # 3628 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3629 # javac) and not a JRE, etc. 3630 # 3631 # **) On Windows we typically use a well-known path. 3632 # On MacOSX we typically use the tool java_home. 3633 # On Linux we typically find javac in the $PATH, and then follow a 3634 # chain of symlinks that often ends up in a real JDK. 3635 # 3636 # This leads to the code where we check in different ways to locate a 3637 # JDK, and if one is found, check if it is acceptable. If not, we print 3638 # our reasons for rejecting it (useful when debugging non-working 3639 # configure situations) and continue checking the next one. 3640 ######################################################################## 3641 3642 # Execute the check given as argument, and verify the result 3643 # If the Boot JDK was previously found, do nothing 3644 # $1 A command line (typically autoconf macro) to execute 3645 3646 3647 # Test: Is bootjdk explicitely set by command line arguments? 3648 3649 3650 # Test: Is bootjdk available from builddeps? 3651 3652 3653 # Test: Is $JAVA_HOME set? 3654 3655 3656 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3657 3658 3659 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3660 # $1: Argument to the java_home binary (optional) 3661 3662 3663 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3664 3665 3666 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3667 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3668 # $1 = Path to directory containing jdk installations. 3669 # $2 = String to append to the found JDK directory to get the proper JDK home 3670 3671 3672 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3673 # environmental variable as base for where to look. 3674 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3675 3676 3677 # Test: Is there a JDK installed in default, well-known locations? 3678 3679 3680 # Check that a command-line tool in the Boot JDK is correct 3681 # $1 = name of variable to assign 3682 # $2 = name of binary 3683 3684 3685 ############################################################################### 3686 # 3687 # We need a Boot JDK to bootstrap the build. 3688 # 3689 3690 3691 3692 3693 3694 # 3695 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3696 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3697 # 3698 # This code is free software; you can redistribute it and/or modify it 3699 # under the terms of the GNU General Public License version 2 only, as 3700 # published by the Free Software Foundation. Oracle designates this 3701 # particular file as subject to the "Classpath" exception as provided 3702 # by Oracle in the LICENSE file that accompanied this code. 3703 # 3704 # This code is distributed in the hope that it will be useful, but WITHOUT 3705 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3706 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3707 # version 2 for more details (a copy is included in the LICENSE file that 3708 # accompanied this code). 3709 # 3710 # You should have received a copy of the GNU General Public License version 3711 # 2 along with this work; if not, write to the Free Software Foundation, 3712 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3713 # 3714 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3715 # or visit www.oracle.com if you need additional information or have any 3716 # questions. 3717 # 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 # 3739 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3740 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3741 # 3742 # This code is free software; you can redistribute it and/or modify it 3743 # under the terms of the GNU General Public License version 2 only, as 3744 # published by the Free Software Foundation. Oracle designates this 3745 # particular file as subject to the "Classpath" exception as provided 3746 # by Oracle in the LICENSE file that accompanied this code. 3747 # 3748 # This code is distributed in the hope that it will be useful, but WITHOUT 3749 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3750 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3751 # version 2 for more details (a copy is included in the LICENSE file that 3752 # accompanied this code). 3753 # 3754 # You should have received a copy of the GNU General Public License version 3755 # 2 along with this work; if not, write to the Free Software Foundation, 3756 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3757 # 3758 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3759 # or visit www.oracle.com if you need additional information or have any 3760 # questions. 3761 # 3762 3763 3764 3765 3766 3767 # Documentation on common flags used for solstudio in HIGHEST. 3768 # 3769 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3770 # done with care, there are some assumptions below that need to 3771 # be understood about the use of pointers, and IEEE behavior. 3772 # 3773 # -fns: Use non-standard floating point mode (not IEEE 754) 3774 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3775 # -fsingle: Use single precision floating point with 'float' 3776 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3777 # (Source with excessing pointer casting and data access with mixed 3778 # pointer types are not recommended) 3779 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3780 # (If you expect perfect errno behavior, do not use this) 3781 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3782 # -xrestrict: Pointer parameters to functions do not overlap 3783 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3784 # If you pass in multiple pointers to the same data, do not use this) 3785 # -xlibmil: Inline some library routines 3786 # (If you expect perfect errno behavior, do not use this) 3787 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3788 # (If you expect perfect errno behavior, do not use this) 3789 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3790 3791 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3792 # Bug? 3793 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3794 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3795 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3796 #fi 3797 3798 3799 3800 3801 3802 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3803 # [RUN-IF-FALSE]) 3804 # ------------------------------------------------------------ 3805 # Check that the c and c++ compilers support an argument 3806 3807 3808 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3809 # [RUN-IF-FALSE]) 3810 # ------------------------------------------------------------ 3811 # Check that the linker support an argument 3812 3813 3814 3815 3816 # 3817 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3818 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3819 # 3820 # This code is free software; you can redistribute it and/or modify it 3821 # under the terms of the GNU General Public License version 2 only, as 3822 # published by the Free Software Foundation. Oracle designates this 3823 # particular file as subject to the "Classpath" exception as provided 3824 # by Oracle in the LICENSE file that accompanied this code. 3825 # 3826 # This code is distributed in the hope that it will be useful, but WITHOUT 3827 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3828 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3829 # version 2 for more details (a copy is included in the LICENSE file that 3830 # accompanied this code). 3831 # 3832 # You should have received a copy of the GNU General Public License version 3833 # 2 along with this work; if not, write to the Free Software Foundation, 3834 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3835 # 3836 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3837 # or visit www.oracle.com if you need additional information or have any 3838 # questions. 3839 # 3840 3841 3842 3843 3844 3845 cygwin_help() { 3846 case $1 in 3847 unzip) 3848 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3849 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3850 ;; 3851 zip) 3852 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3853 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3854 ;; 3855 make) 3856 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3857 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3858 ;; 3859 freetype) 3860 HELP_MSG=" 3861 The freetype library can now be build during the configure process. 3862 Download the freetype sources and unpack them into an arbitrary directory: 3863 3864 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3865 tar -xzf freetype-2.5.3.tar.gz 3866 3867 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3868 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3869 builds or into '<freetype_src>/lib32' for 32-bit builds. 3870 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3871 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3872 ;; 3873 esac 3874 } 3875 3876 msys_help() { 3877 PKGHANDLER_COMMAND="" 3878 } 3879 3880 apt_help() { 3881 case $1 in 3882 devkit) 3883 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3884 openjdk) 3885 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3886 alsa) 3887 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3888 cups) 3889 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3890 freetype) 3891 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3892 pulse) 3893 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3894 x11) 3895 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3896 ccache) 3897 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3898 esac 3899 } 3900 3901 yum_help() { 3902 case $1 in 3903 devkit) 3904 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3905 openjdk) 3906 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3907 alsa) 3908 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3909 cups) 3910 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3911 freetype) 3912 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3913 pulse) 3914 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3915 x11) 3916 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3917 ccache) 3918 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3919 esac 3920 } 3921 3922 port_help() { 3923 PKGHANDLER_COMMAND="" 3924 } 3925 3926 pkgutil_help() { 3927 PKGHANDLER_COMMAND="" 3928 } 3929 3930 pkgadd_help() { 3931 PKGHANDLER_COMMAND="" 3932 } 3933 3934 # This function will check if we're called from the "configure" wrapper while 3935 # printing --help. If so, we will print out additional information that can 3936 # only be extracted within the autoconf script, and then exit. This must be 3937 # called at the very beginning in configure.ac. 3938 3939 3940 3941 3942 3943 3944 # 3945 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3946 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3947 # 3948 # This code is free software; you can redistribute it and/or modify it 3949 # under the terms of the GNU General Public License version 2 only, as 3950 # published by the Free Software Foundation. Oracle designates this 3951 # particular file as subject to the "Classpath" exception as provided 3952 # by Oracle in the LICENSE file that accompanied this code. 3953 # 3954 # This code is distributed in the hope that it will be useful, but WITHOUT 3955 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3956 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3957 # version 2 for more details (a copy is included in the LICENSE file that 3958 # accompanied this code). 3959 # 3960 # You should have received a copy of the GNU General Public License version 3961 # 2 along with this work; if not, write to the Free Software Foundation, 3962 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3963 # 3964 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3965 # or visit www.oracle.com if you need additional information or have any 3966 # questions. 3967 # 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 ############################################################################### 3979 # 3980 # Should we build only OpenJDK even if closed sources are present? 3981 # 3982 3983 3984 3985 3986 ############################################################################### 3987 # 3988 # Setup version numbers 3989 # 3990 3991 3992 3993 3994 3995 3996 # 3997 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3998 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3999 # 4000 # This code is free software; you can redistribute it and/or modify it 4001 # under the terms of the GNU General Public License version 2 only, as 4002 # published by the Free Software Foundation. Oracle designates this 4003 # particular file as subject to the "Classpath" exception as provided 4004 # by Oracle in the LICENSE file that accompanied this code. 4005 # 4006 # This code is distributed in the hope that it will be useful, but WITHOUT 4007 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4008 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4009 # version 2 for more details (a copy is included in the LICENSE file that 4010 # accompanied this code). 4011 # 4012 # You should have received a copy of the GNU General Public License version 4013 # 2 along with this work; if not, write to the Free Software Foundation, 4014 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4015 # 4016 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4017 # or visit www.oracle.com if you need additional information or have any 4018 # questions. 4019 # 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 # 4042 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4043 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4044 # 4045 # This code is free software; you can redistribute it and/or modify it 4046 # under the terms of the GNU General Public License version 2 only, as 4047 # published by the Free Software Foundation. Oracle designates this 4048 # particular file as subject to the "Classpath" exception as provided 4049 # by Oracle in the LICENSE file that accompanied this code. 4050 # 4051 # This code is distributed in the hope that it will be useful, but WITHOUT 4052 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4053 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4054 # version 2 for more details (a copy is included in the LICENSE file that 4055 # accompanied this code). 4056 # 4057 # You should have received a copy of the GNU General Public License version 4058 # 2 along with this work; if not, write to the Free Software Foundation, 4059 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4060 # 4061 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4062 # or visit www.oracle.com if you need additional information or have any 4063 # questions. 4064 # 4065 4066 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4067 # Converts autoconf style CPU name to OpenJDK style, into 4068 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4069 4070 4071 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4072 # Converts autoconf style OS name to OpenJDK style, into 4073 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4074 4075 4076 # Expects $host_os $host_cpu $build_os and $build_cpu 4077 # and $with_target_bits to have been setup! 4078 # 4079 # Translate the standard triplet(quadruplet) definition 4080 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4081 # OPENJDK_BUILD_OS, etc. 4082 4083 4084 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4085 # accordingly. Must be done after setting up build and target system, but before 4086 # doing anything else with these values. 4087 4088 4089 # Setup the legacy variables, for controlling the old makefiles. 4090 # 4091 4092 4093 4094 4095 #%%% Build and target systems %%% 4096 4097 4098 4099 4100 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4101 # Add -mX to various FLAGS variables. 4102 4103 4104 4105 4106 4107 4108 # 4109 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4110 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4111 # 4112 # This code is free software; you can redistribute it and/or modify it 4113 # under the terms of the GNU General Public License version 2 only, as 4114 # published by the Free Software Foundation. Oracle designates this 4115 # particular file as subject to the "Classpath" exception as provided 4116 # by Oracle in the LICENSE file that accompanied this code. 4117 # 4118 # This code is distributed in the hope that it will be useful, but WITHOUT 4119 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4120 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4121 # version 2 for more details (a copy is included in the LICENSE file that 4122 # accompanied this code). 4123 # 4124 # You should have received a copy of the GNU General Public License version 4125 # 2 along with this work; if not, write to the Free Software Foundation, 4126 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4127 # 4128 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4129 # or visit www.oracle.com if you need additional information or have any 4130 # questions. 4131 # 4132 4133 4134 4135 4136 4137 4138 4139 4140 # 4141 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 4142 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4143 # 4144 # This code is free software; you can redistribute it and/or modify it 4145 # under the terms of the GNU General Public License version 2 only, as 4146 # published by the Free Software Foundation. Oracle designates this 4147 # particular file as subject to the "Classpath" exception as provided 4148 # by Oracle in the LICENSE file that accompanied this code. 4149 # 4150 # This code is distributed in the hope that it will be useful, but WITHOUT 4151 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4152 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4153 # version 2 for more details (a copy is included in the LICENSE file that 4154 # accompanied this code). 4155 # 4156 # You should have received a copy of the GNU General Public License version 4157 # 2 along with this work; if not, write to the Free Software Foundation, 4158 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4159 # 4160 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4161 # or visit www.oracle.com if you need additional information or have any 4162 # questions. 4163 # 4164 4165 ######################################################################## 4166 # This file is responsible for detecting, verifying and setting up the 4167 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4168 # proper paths to the binaries, but it will not setup any flags. 4169 # 4170 # The binaries used is determined by the toolchain type, which is the family of 4171 # compilers and related tools that are used. 4172 ######################################################################## 4173 4174 4175 # All valid toolchains, regardless of platform (used by help.m4) 4176 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4177 4178 # These toolchains are valid on different platforms 4179 VALID_TOOLCHAINS_linux="gcc clang" 4180 VALID_TOOLCHAINS_solaris="solstudio" 4181 VALID_TOOLCHAINS_macosx="gcc clang" 4182 VALID_TOOLCHAINS_aix="xlc" 4183 VALID_TOOLCHAINS_windows="microsoft" 4184 4185 # Toolchain descriptions 4186 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4187 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4188 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4189 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4190 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4191 4192 # Setup a number of variables describing how native output files are 4193 # named on this platform/toolchain. 4194 4195 4196 # Determine which toolchain type to use, and make sure it is valid for this 4197 # platform. Setup various information about the selected toolchain. 4198 4199 4200 # Before we start detecting the toolchain executables, we might need some 4201 # special setup, e.g. additional paths etc. 4202 4203 4204 # Restore path, etc 4205 4206 4207 # Check if a compiler is of the toolchain type we expect, and save the version 4208 # information from it. If the compiler does not match the expected type, 4209 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4210 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4211 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4212 # 4213 # $1 = compiler to test (CC or CXX) 4214 # $2 = human readable name of compiler (C or C++) 4215 4216 4217 # Try to locate the given C or C++ compiler in the path, or otherwise. 4218 # 4219 # $1 = compiler to test (CC or CXX) 4220 # $2 = human readable name of compiler (C or C++) 4221 # $3 = list of compiler names to search for 4222 4223 4224 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4225 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4226 # archiver (AR). Verify that the compilers are correct according to the 4227 # toolchain type. 4228 4229 4230 # Setup additional tools that is considered a part of the toolchain, but not the 4231 # core part. Many of these are highly platform-specific and do not exist, 4232 # and/or are not needed on all platforms. 4233 4234 4235 # Setup the build tools (i.e, the compiler and linker used to build programs 4236 # that should be run on the build platform, not the target platform, as a build 4237 # helper). Since the non-cross-compile case uses the normal, target compilers 4238 # for this, we can only do this after these have been setup. 4239 4240 4241 # Setup legacy variables that are still needed as alternative ways to refer to 4242 # parts of the toolchain. 4243 4244 4245 # Do some additional checks on the detected tools. 4246 4247 4248 # Setup the JTReg Regression Test Harness. 4249 4250 4251 # 4252 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4253 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4254 # 4255 # This code is free software; you can redistribute it and/or modify it 4256 # under the terms of the GNU General Public License version 2 only, as 4257 # published by the Free Software Foundation. Oracle designates this 4258 # particular file as subject to the "Classpath" exception as provided 4259 # by Oracle in the LICENSE file that accompanied this code. 4260 # 4261 # This code is distributed in the hope that it will be useful, but WITHOUT 4262 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4263 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4264 # version 2 for more details (a copy is included in the LICENSE file that 4265 # accompanied this code). 4266 # 4267 # You should have received a copy of the GNU General Public License version 4268 # 2 along with this work; if not, write to the Free Software Foundation, 4269 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4270 # 4271 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4272 # or visit www.oracle.com if you need additional information or have any 4273 # questions. 4274 # 4275 4276 ################################################################################ 4277 4278 VALID_VS_VERSIONS="2010 2012 2013" 4279 4280 VS_DESCRIPTION_2010="Microsoft Visual Studio 2010" 4281 VS_VERSION_INTERNAL_2010=100 4282 VS_MSVCR_2010=msvcr100.dll 4283 # We don't use msvcp on Visual Studio 2010 4284 #VS_MSVCP_2010=msvcp100.dll 4285 VS_ENVVAR_2010="VS100COMNTOOLS" 4286 VS_VS_INSTALLDIR_2010="Microsoft Visual Studio 10.0" 4287 VS_SDK_INSTALLDIR_2010="Microsoft SDKs/Windows/v7.1" 4288 VS_VS_PLATFORM_NAME_2010="v100" 4289 VS_SDK_PLATFORM_NAME_2010="Windows7.1SDK" 4290 4291 VS_DESCRIPTION_2012="Microsoft Visual Studio 2012" 4292 VS_VERSION_INTERNAL_2012=110 4293 VS_MSVCR_2012=msvcr110.dll 4294 VS_MSVCP_2012=msvcp110.dll 4295 VS_ENVVAR_2012="VS110COMNTOOLS" 4296 VS_VS_INSTALLDIR_2012="Microsoft Visual Studio 11.0" 4297 VS_SDK_INSTALLDIR_2012= 4298 VS_VS_PLATFORM_NAME_2012="v110" 4299 VS_SDK_PLATFORM_NAME_2012= 4300 4301 VS_DESCRIPTION_2013="Microsoft Visual Studio 2013" 4302 VS_VERSION_INTERNAL_2013=120 4303 VS_MSVCR_2013=msvcr120.dll 4304 VS_MSVCP_2013=msvcp120.dll 4305 VS_ENVVAR_2013="VS120COMNTOOLS" 4306 VS_VS_INSTALLDIR_2013="Microsoft Visual Studio 12.0" 4307 VS_SDK_INSTALLDIR_2013= 4308 VS_VS_PLATFORM_NAME_2013="v120" 4309 VS_SDK_PLATFORM_NAME_2013= 4310 4311 ################################################################################ 4312 4313 4314 4315 ################################################################################ 4316 4317 4318 4319 ################################################################################ 4320 # Finds the bat or cmd file in Visual Studio or the SDK that sets up a proper 4321 # build environment and assigns it to VS_ENV_CMD 4322 4323 4324 ################################################################################ 4325 4326 4327 4328 ################################################################################ 4329 # Check if the VS env variables were setup prior to running configure. 4330 # If not, then find vcvarsall.bat and run it automatically, and integrate 4331 # the set env variables into the spec file. 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 # This line needs to be here, verbatim, after all includes and the dummy hook 4346 # definitions. It is replaced with custom functionality when building 4347 # custom sources. 4348 #CUSTOM_AUTOCONF_INCLUDE 4349 4350 # Do not change or remove the following line, it is needed for consistency checks: 4351 DATE_WHEN_GENERATED=1425462435 4352 4353 ############################################################################### 4354 # 4355 # Initialization / Boot-strapping 4356 # 4357 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4358 # thus it jumps back and forth, each time gaining something needed later on. 4359 # 4360 ############################################################################### 4361 4362 # If we are requested to print additional help, do that and then exit. 4363 # This must be the very first call. 4364 4365 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4366 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4367 $PRINTF "Which are valid to use depends on the build platform.\n" 4368 for toolchain in $VALID_TOOLCHAINS_all; do 4369 # Use indirect variable referencing 4370 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4371 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4372 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4373 done 4374 4375 # And now exit directly 4376 exit 0 4377 fi 4378 4379 4380 # Basic initialization that must happen first of all in the normal process. 4381 4382 # Save the original command line. This is passed to us by the wrapper configure script. 4383 4384 # Save the path variable before it gets changed 4385 ORIGINAL_PATH="$PATH" 4386 4387 DATE_WHEN_CONFIGURED=`LANG=C date` 4388 4389 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4390 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4391 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4392 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4393 4394 4395 # Start with tools that do not need have cross compilation support 4396 # and can be expected to be found in the default PATH. These tools are 4397 # used by configure. Nor are these tools expected to be found in the 4398 # devkit from the builddeps server either, since they are 4399 # needed to download the devkit. 4400 4401 # First are all the simple required tools. 4402 4403 4404 4405 # Publish this variable in the help. 4406 4407 4408 if test "x$BASENAME" = x; then 4409 # The variable is not set by user, try to locate tool using the code snippet 4410 for ac_prog in basename 4411 do 4412 # Extract the first word of "$ac_prog", so it can be a program name with args. 4413 set dummy $ac_prog; ac_word=$2 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4415 $as_echo_n "checking for $ac_word... " >&6; } 4416 if ${ac_cv_path_BASENAME+:} false; then : 4417 $as_echo_n "(cached) " >&6 4418 else 4419 case $BASENAME in 4420 [\\/]* | ?:[\\/]*) 4421 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4422 ;; 4423 *) 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425 for as_dir in $PATH 4426 do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_exec_ext in '' $ac_executable_extensions; do 4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4431 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4433 break 2 4434 fi 4435 done 4436 done 4437 IFS=$as_save_IFS 4438 4439 ;; 4440 esac 4441 fi 4442 BASENAME=$ac_cv_path_BASENAME 4443 if test -n "$BASENAME"; then 4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4445 $as_echo "$BASENAME" >&6; } 4446 else 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4448 $as_echo "no" >&6; } 4449 fi 4450 4451 4452 test -n "$BASENAME" && break 4453 done 4454 4455 else 4456 # The variable is set, but is it from the command line or the environment? 4457 4458 # Try to remove the string !BASENAME! from our list. 4459 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4460 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4461 # If it failed, the variable was not from the command line. Ignore it, 4462 # but warn the user (except for BASH, which is always set by the calling BASH). 4463 if test "xBASENAME" != xBASH; then 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4465 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4466 fi 4467 # Try to locate tool using the code snippet 4468 for ac_prog in basename 4469 do 4470 # Extract the first word of "$ac_prog", so it can be a program name with args. 4471 set dummy $ac_prog; ac_word=$2 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4473 $as_echo_n "checking for $ac_word... " >&6; } 4474 if ${ac_cv_path_BASENAME+:} false; then : 4475 $as_echo_n "(cached) " >&6 4476 else 4477 case $BASENAME in 4478 [\\/]* | ?:[\\/]*) 4479 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4480 ;; 4481 *) 4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4483 for as_dir in $PATH 4484 do 4485 IFS=$as_save_IFS 4486 test -z "$as_dir" && as_dir=. 4487 for ac_exec_ext in '' $ac_executable_extensions; do 4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4489 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4491 break 2 4492 fi 4493 done 4494 done 4495 IFS=$as_save_IFS 4496 4497 ;; 4498 esac 4499 fi 4500 BASENAME=$ac_cv_path_BASENAME 4501 if test -n "$BASENAME"; then 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4503 $as_echo "$BASENAME" >&6; } 4504 else 4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4506 $as_echo "no" >&6; } 4507 fi 4508 4509 4510 test -n "$BASENAME" && break 4511 done 4512 4513 else 4514 # If it succeeded, then it was overridden by the user. We will use it 4515 # for the tool. 4516 4517 # First remove it from the list of overridden variables, so we can test 4518 # for unknown variables in the end. 4519 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4520 4521 # Check if the provided tool contains a complete path. 4522 tool_specified="$BASENAME" 4523 tool_basename="${tool_specified##*/}" 4524 if test "x$tool_basename" = "x$tool_specified"; then 4525 # A command without a complete path is provided, search $PATH. 4526 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4527 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4528 # Extract the first word of "$tool_basename", so it can be a program name with args. 4529 set dummy $tool_basename; ac_word=$2 4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4531 $as_echo_n "checking for $ac_word... " >&6; } 4532 if ${ac_cv_path_BASENAME+:} false; then : 4533 $as_echo_n "(cached) " >&6 4534 else 4535 case $BASENAME in 4536 [\\/]* | ?:[\\/]*) 4537 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4538 ;; 4539 *) 4540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4541 for as_dir in $PATH 4542 do 4543 IFS=$as_save_IFS 4544 test -z "$as_dir" && as_dir=. 4545 for ac_exec_ext in '' $ac_executable_extensions; do 4546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4547 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4549 break 2 4550 fi 4551 done 4552 done 4553 IFS=$as_save_IFS 4554 4555 ;; 4556 esac 4557 fi 4558 BASENAME=$ac_cv_path_BASENAME 4559 if test -n "$BASENAME"; then 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4561 $as_echo "$BASENAME" >&6; } 4562 else 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4564 $as_echo "no" >&6; } 4565 fi 4566 4567 4568 if test "x$BASENAME" = x; then 4569 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4570 fi 4571 else 4572 # Otherwise we believe it is a complete path. Use it as it is. 4573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4574 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4576 $as_echo_n "checking for BASENAME... " >&6; } 4577 if test ! -x "$tool_specified"; then 4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4579 $as_echo "not found" >&6; } 4580 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4581 fi 4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4583 $as_echo "$tool_specified" >&6; } 4584 fi 4585 fi 4586 fi 4587 4588 4589 4590 if test "x$BASENAME" = x; then 4591 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4592 fi 4593 4594 4595 4596 4597 4598 # Publish this variable in the help. 4599 4600 4601 if test "x$BASH" = x; then 4602 # The variable is not set by user, try to locate tool using the code snippet 4603 for ac_prog in bash 4604 do 4605 # Extract the first word of "$ac_prog", so it can be a program name with args. 4606 set dummy $ac_prog; ac_word=$2 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4608 $as_echo_n "checking for $ac_word... " >&6; } 4609 if ${ac_cv_path_BASH+:} false; then : 4610 $as_echo_n "(cached) " >&6 4611 else 4612 case $BASH in 4613 [\\/]* | ?:[\\/]*) 4614 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4615 ;; 4616 *) 4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4618 for as_dir in $PATH 4619 do 4620 IFS=$as_save_IFS 4621 test -z "$as_dir" && as_dir=. 4622 for ac_exec_ext in '' $ac_executable_extensions; do 4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4624 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4626 break 2 4627 fi 4628 done 4629 done 4630 IFS=$as_save_IFS 4631 4632 ;; 4633 esac 4634 fi 4635 BASH=$ac_cv_path_BASH 4636 if test -n "$BASH"; then 4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4638 $as_echo "$BASH" >&6; } 4639 else 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4641 $as_echo "no" >&6; } 4642 fi 4643 4644 4645 test -n "$BASH" && break 4646 done 4647 4648 else 4649 # The variable is set, but is it from the command line or the environment? 4650 4651 # Try to remove the string !BASH! from our list. 4652 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4653 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4654 # If it failed, the variable was not from the command line. Ignore it, 4655 # but warn the user (except for BASH, which is always set by the calling BASH). 4656 if test "xBASH" != xBASH; then 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4658 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4659 fi 4660 # Try to locate tool using the code snippet 4661 for ac_prog in bash 4662 do 4663 # Extract the first word of "$ac_prog", so it can be a program name with args. 4664 set dummy $ac_prog; ac_word=$2 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4666 $as_echo_n "checking for $ac_word... " >&6; } 4667 if ${ac_cv_path_BASH+:} false; then : 4668 $as_echo_n "(cached) " >&6 4669 else 4670 case $BASH in 4671 [\\/]* | ?:[\\/]*) 4672 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4673 ;; 4674 *) 4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4676 for as_dir in $PATH 4677 do 4678 IFS=$as_save_IFS 4679 test -z "$as_dir" && as_dir=. 4680 for ac_exec_ext in '' $ac_executable_extensions; do 4681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4682 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4684 break 2 4685 fi 4686 done 4687 done 4688 IFS=$as_save_IFS 4689 4690 ;; 4691 esac 4692 fi 4693 BASH=$ac_cv_path_BASH 4694 if test -n "$BASH"; then 4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4696 $as_echo "$BASH" >&6; } 4697 else 4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4699 $as_echo "no" >&6; } 4700 fi 4701 4702 4703 test -n "$BASH" && break 4704 done 4705 4706 else 4707 # If it succeeded, then it was overridden by the user. We will use it 4708 # for the tool. 4709 4710 # First remove it from the list of overridden variables, so we can test 4711 # for unknown variables in the end. 4712 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4713 4714 # Check if the provided tool contains a complete path. 4715 tool_specified="$BASH" 4716 tool_basename="${tool_specified##*/}" 4717 if test "x$tool_basename" = "x$tool_specified"; then 4718 # A command without a complete path is provided, search $PATH. 4719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4720 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4721 # Extract the first word of "$tool_basename", so it can be a program name with args. 4722 set dummy $tool_basename; ac_word=$2 4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4724 $as_echo_n "checking for $ac_word... " >&6; } 4725 if ${ac_cv_path_BASH+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727 else 4728 case $BASH in 4729 [\\/]* | ?:[\\/]*) 4730 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4731 ;; 4732 *) 4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4734 for as_dir in $PATH 4735 do 4736 IFS=$as_save_IFS 4737 test -z "$as_dir" && as_dir=. 4738 for ac_exec_ext in '' $ac_executable_extensions; do 4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4740 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4742 break 2 4743 fi 4744 done 4745 done 4746 IFS=$as_save_IFS 4747 4748 ;; 4749 esac 4750 fi 4751 BASH=$ac_cv_path_BASH 4752 if test -n "$BASH"; then 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4754 $as_echo "$BASH" >&6; } 4755 else 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4757 $as_echo "no" >&6; } 4758 fi 4759 4760 4761 if test "x$BASH" = x; then 4762 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4763 fi 4764 else 4765 # Otherwise we believe it is a complete path. Use it as it is. 4766 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4767 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4769 $as_echo_n "checking for BASH... " >&6; } 4770 if test ! -x "$tool_specified"; then 4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4772 $as_echo "not found" >&6; } 4773 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4774 fi 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4776 $as_echo "$tool_specified" >&6; } 4777 fi 4778 fi 4779 fi 4780 4781 4782 4783 if test "x$BASH" = x; then 4784 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4785 fi 4786 4787 4788 4789 4790 4791 # Publish this variable in the help. 4792 4793 4794 if test "x$CAT" = x; then 4795 # The variable is not set by user, try to locate tool using the code snippet 4796 for ac_prog in cat 4797 do 4798 # Extract the first word of "$ac_prog", so it can be a program name with args. 4799 set dummy $ac_prog; ac_word=$2 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4801 $as_echo_n "checking for $ac_word... " >&6; } 4802 if ${ac_cv_path_CAT+:} false; then : 4803 $as_echo_n "(cached) " >&6 4804 else 4805 case $CAT in 4806 [\\/]* | ?:[\\/]*) 4807 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4808 ;; 4809 *) 4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4811 for as_dir in $PATH 4812 do 4813 IFS=$as_save_IFS 4814 test -z "$as_dir" && as_dir=. 4815 for ac_exec_ext in '' $ac_executable_extensions; do 4816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4817 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4819 break 2 4820 fi 4821 done 4822 done 4823 IFS=$as_save_IFS 4824 4825 ;; 4826 esac 4827 fi 4828 CAT=$ac_cv_path_CAT 4829 if test -n "$CAT"; then 4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4831 $as_echo "$CAT" >&6; } 4832 else 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4834 $as_echo "no" >&6; } 4835 fi 4836 4837 4838 test -n "$CAT" && break 4839 done 4840 4841 else 4842 # The variable is set, but is it from the command line or the environment? 4843 4844 # Try to remove the string !CAT! from our list. 4845 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4846 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4847 # If it failed, the variable was not from the command line. Ignore it, 4848 # but warn the user (except for BASH, which is always set by the calling BASH). 4849 if test "xCAT" != xBASH; then 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4851 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4852 fi 4853 # Try to locate tool using the code snippet 4854 for ac_prog in cat 4855 do 4856 # Extract the first word of "$ac_prog", so it can be a program name with args. 4857 set dummy $ac_prog; ac_word=$2 4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4859 $as_echo_n "checking for $ac_word... " >&6; } 4860 if ${ac_cv_path_CAT+:} false; then : 4861 $as_echo_n "(cached) " >&6 4862 else 4863 case $CAT in 4864 [\\/]* | ?:[\\/]*) 4865 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4866 ;; 4867 *) 4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4869 for as_dir in $PATH 4870 do 4871 IFS=$as_save_IFS 4872 test -z "$as_dir" && as_dir=. 4873 for ac_exec_ext in '' $ac_executable_extensions; do 4874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4875 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4877 break 2 4878 fi 4879 done 4880 done 4881 IFS=$as_save_IFS 4882 4883 ;; 4884 esac 4885 fi 4886 CAT=$ac_cv_path_CAT 4887 if test -n "$CAT"; then 4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4889 $as_echo "$CAT" >&6; } 4890 else 4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4892 $as_echo "no" >&6; } 4893 fi 4894 4895 4896 test -n "$CAT" && break 4897 done 4898 4899 else 4900 # If it succeeded, then it was overridden by the user. We will use it 4901 # for the tool. 4902 4903 # First remove it from the list of overridden variables, so we can test 4904 # for unknown variables in the end. 4905 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4906 4907 # Check if the provided tool contains a complete path. 4908 tool_specified="$CAT" 4909 tool_basename="${tool_specified##*/}" 4910 if test "x$tool_basename" = "x$tool_specified"; then 4911 # A command without a complete path is provided, search $PATH. 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4913 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4914 # Extract the first word of "$tool_basename", so it can be a program name with args. 4915 set dummy $tool_basename; ac_word=$2 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4917 $as_echo_n "checking for $ac_word... " >&6; } 4918 if ${ac_cv_path_CAT+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920 else 4921 case $CAT in 4922 [\\/]* | ?:[\\/]*) 4923 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4924 ;; 4925 *) 4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4927 for as_dir in $PATH 4928 do 4929 IFS=$as_save_IFS 4930 test -z "$as_dir" && as_dir=. 4931 for ac_exec_ext in '' $ac_executable_extensions; do 4932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4933 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4935 break 2 4936 fi 4937 done 4938 done 4939 IFS=$as_save_IFS 4940 4941 ;; 4942 esac 4943 fi 4944 CAT=$ac_cv_path_CAT 4945 if test -n "$CAT"; then 4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4947 $as_echo "$CAT" >&6; } 4948 else 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4950 $as_echo "no" >&6; } 4951 fi 4952 4953 4954 if test "x$CAT" = x; then 4955 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4956 fi 4957 else 4958 # Otherwise we believe it is a complete path. Use it as it is. 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4960 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4962 $as_echo_n "checking for CAT... " >&6; } 4963 if test ! -x "$tool_specified"; then 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4965 $as_echo "not found" >&6; } 4966 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4967 fi 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4969 $as_echo "$tool_specified" >&6; } 4970 fi 4971 fi 4972 fi 4973 4974 4975 4976 if test "x$CAT" = x; then 4977 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4978 fi 4979 4980 4981 4982 4983 4984 # Publish this variable in the help. 4985 4986 4987 if test "x$CHMOD" = x; then 4988 # The variable is not set by user, try to locate tool using the code snippet 4989 for ac_prog in chmod 4990 do 4991 # Extract the first word of "$ac_prog", so it can be a program name with args. 4992 set dummy $ac_prog; ac_word=$2 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4994 $as_echo_n "checking for $ac_word... " >&6; } 4995 if ${ac_cv_path_CHMOD+:} false; then : 4996 $as_echo_n "(cached) " >&6 4997 else 4998 case $CHMOD in 4999 [\\/]* | ?:[\\/]*) 5000 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5001 ;; 5002 *) 5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5004 for as_dir in $PATH 5005 do 5006 IFS=$as_save_IFS 5007 test -z "$as_dir" && as_dir=. 5008 for ac_exec_ext in '' $ac_executable_extensions; do 5009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5010 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5012 break 2 5013 fi 5014 done 5015 done 5016 IFS=$as_save_IFS 5017 5018 ;; 5019 esac 5020 fi 5021 CHMOD=$ac_cv_path_CHMOD 5022 if test -n "$CHMOD"; then 5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5024 $as_echo "$CHMOD" >&6; } 5025 else 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5027 $as_echo "no" >&6; } 5028 fi 5029 5030 5031 test -n "$CHMOD" && break 5032 done 5033 5034 else 5035 # The variable is set, but is it from the command line or the environment? 5036 5037 # Try to remove the string !CHMOD! from our list. 5038 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5039 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5040 # If it failed, the variable was not from the command line. Ignore it, 5041 # but warn the user (except for BASH, which is always set by the calling BASH). 5042 if test "xCHMOD" != xBASH; then 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5044 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5045 fi 5046 # Try to locate tool using the code snippet 5047 for ac_prog in chmod 5048 do 5049 # Extract the first word of "$ac_prog", so it can be a program name with args. 5050 set dummy $ac_prog; ac_word=$2 5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5052 $as_echo_n "checking for $ac_word... " >&6; } 5053 if ${ac_cv_path_CHMOD+:} false; then : 5054 $as_echo_n "(cached) " >&6 5055 else 5056 case $CHMOD in 5057 [\\/]* | ?:[\\/]*) 5058 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5059 ;; 5060 *) 5061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5062 for as_dir in $PATH 5063 do 5064 IFS=$as_save_IFS 5065 test -z "$as_dir" && as_dir=. 5066 for ac_exec_ext in '' $ac_executable_extensions; do 5067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5068 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5070 break 2 5071 fi 5072 done 5073 done 5074 IFS=$as_save_IFS 5075 5076 ;; 5077 esac 5078 fi 5079 CHMOD=$ac_cv_path_CHMOD 5080 if test -n "$CHMOD"; then 5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5082 $as_echo "$CHMOD" >&6; } 5083 else 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5085 $as_echo "no" >&6; } 5086 fi 5087 5088 5089 test -n "$CHMOD" && break 5090 done 5091 5092 else 5093 # If it succeeded, then it was overridden by the user. We will use it 5094 # for the tool. 5095 5096 # First remove it from the list of overridden variables, so we can test 5097 # for unknown variables in the end. 5098 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5099 5100 # Check if the provided tool contains a complete path. 5101 tool_specified="$CHMOD" 5102 tool_basename="${tool_specified##*/}" 5103 if test "x$tool_basename" = "x$tool_specified"; then 5104 # A command without a complete path is provided, search $PATH. 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5106 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5107 # Extract the first word of "$tool_basename", so it can be a program name with args. 5108 set dummy $tool_basename; ac_word=$2 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5110 $as_echo_n "checking for $ac_word... " >&6; } 5111 if ${ac_cv_path_CHMOD+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113 else 5114 case $CHMOD in 5115 [\\/]* | ?:[\\/]*) 5116 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5117 ;; 5118 *) 5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5120 for as_dir in $PATH 5121 do 5122 IFS=$as_save_IFS 5123 test -z "$as_dir" && as_dir=. 5124 for ac_exec_ext in '' $ac_executable_extensions; do 5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5126 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5128 break 2 5129 fi 5130 done 5131 done 5132 IFS=$as_save_IFS 5133 5134 ;; 5135 esac 5136 fi 5137 CHMOD=$ac_cv_path_CHMOD 5138 if test -n "$CHMOD"; then 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5140 $as_echo "$CHMOD" >&6; } 5141 else 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5143 $as_echo "no" >&6; } 5144 fi 5145 5146 5147 if test "x$CHMOD" = x; then 5148 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5149 fi 5150 else 5151 # Otherwise we believe it is a complete path. Use it as it is. 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5153 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5155 $as_echo_n "checking for CHMOD... " >&6; } 5156 if test ! -x "$tool_specified"; then 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5158 $as_echo "not found" >&6; } 5159 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5160 fi 5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5162 $as_echo "$tool_specified" >&6; } 5163 fi 5164 fi 5165 fi 5166 5167 5168 5169 if test "x$CHMOD" = x; then 5170 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5171 fi 5172 5173 5174 5175 5176 5177 # Publish this variable in the help. 5178 5179 5180 if test "x$CMP" = x; then 5181 # The variable is not set by user, try to locate tool using the code snippet 5182 for ac_prog in cmp 5183 do 5184 # Extract the first word of "$ac_prog", so it can be a program name with args. 5185 set dummy $ac_prog; ac_word=$2 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5187 $as_echo_n "checking for $ac_word... " >&6; } 5188 if ${ac_cv_path_CMP+:} false; then : 5189 $as_echo_n "(cached) " >&6 5190 else 5191 case $CMP in 5192 [\\/]* | ?:[\\/]*) 5193 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5194 ;; 5195 *) 5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5197 for as_dir in $PATH 5198 do 5199 IFS=$as_save_IFS 5200 test -z "$as_dir" && as_dir=. 5201 for ac_exec_ext in '' $ac_executable_extensions; do 5202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5203 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5205 break 2 5206 fi 5207 done 5208 done 5209 IFS=$as_save_IFS 5210 5211 ;; 5212 esac 5213 fi 5214 CMP=$ac_cv_path_CMP 5215 if test -n "$CMP"; then 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5217 $as_echo "$CMP" >&6; } 5218 else 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5220 $as_echo "no" >&6; } 5221 fi 5222 5223 5224 test -n "$CMP" && break 5225 done 5226 5227 else 5228 # The variable is set, but is it from the command line or the environment? 5229 5230 # Try to remove the string !CMP! from our list. 5231 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5232 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5233 # If it failed, the variable was not from the command line. Ignore it, 5234 # but warn the user (except for BASH, which is always set by the calling BASH). 5235 if test "xCMP" != xBASH; then 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5237 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5238 fi 5239 # Try to locate tool using the code snippet 5240 for ac_prog in cmp 5241 do 5242 # Extract the first word of "$ac_prog", so it can be a program name with args. 5243 set dummy $ac_prog; ac_word=$2 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5245 $as_echo_n "checking for $ac_word... " >&6; } 5246 if ${ac_cv_path_CMP+:} false; then : 5247 $as_echo_n "(cached) " >&6 5248 else 5249 case $CMP in 5250 [\\/]* | ?:[\\/]*) 5251 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5252 ;; 5253 *) 5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5255 for as_dir in $PATH 5256 do 5257 IFS=$as_save_IFS 5258 test -z "$as_dir" && as_dir=. 5259 for ac_exec_ext in '' $ac_executable_extensions; do 5260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5261 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5263 break 2 5264 fi 5265 done 5266 done 5267 IFS=$as_save_IFS 5268 5269 ;; 5270 esac 5271 fi 5272 CMP=$ac_cv_path_CMP 5273 if test -n "$CMP"; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5275 $as_echo "$CMP" >&6; } 5276 else 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5278 $as_echo "no" >&6; } 5279 fi 5280 5281 5282 test -n "$CMP" && break 5283 done 5284 5285 else 5286 # If it succeeded, then it was overridden by the user. We will use it 5287 # for the tool. 5288 5289 # First remove it from the list of overridden variables, so we can test 5290 # for unknown variables in the end. 5291 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5292 5293 # Check if the provided tool contains a complete path. 5294 tool_specified="$CMP" 5295 tool_basename="${tool_specified##*/}" 5296 if test "x$tool_basename" = "x$tool_specified"; then 5297 # A command without a complete path is provided, search $PATH. 5298 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5299 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5300 # Extract the first word of "$tool_basename", so it can be a program name with args. 5301 set dummy $tool_basename; ac_word=$2 5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5303 $as_echo_n "checking for $ac_word... " >&6; } 5304 if ${ac_cv_path_CMP+:} false; then : 5305 $as_echo_n "(cached) " >&6 5306 else 5307 case $CMP in 5308 [\\/]* | ?:[\\/]*) 5309 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5310 ;; 5311 *) 5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313 for as_dir in $PATH 5314 do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5319 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323 done 5324 done 5325 IFS=$as_save_IFS 5326 5327 ;; 5328 esac 5329 fi 5330 CMP=$ac_cv_path_CMP 5331 if test -n "$CMP"; then 5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5333 $as_echo "$CMP" >&6; } 5334 else 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5336 $as_echo "no" >&6; } 5337 fi 5338 5339 5340 if test "x$CMP" = x; then 5341 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5342 fi 5343 else 5344 # Otherwise we believe it is a complete path. Use it as it is. 5345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5346 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5348 $as_echo_n "checking for CMP... " >&6; } 5349 if test ! -x "$tool_specified"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5351 $as_echo "not found" >&6; } 5352 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5353 fi 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5355 $as_echo "$tool_specified" >&6; } 5356 fi 5357 fi 5358 fi 5359 5360 5361 5362 if test "x$CMP" = x; then 5363 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5364 fi 5365 5366 5367 5368 5369 5370 # Publish this variable in the help. 5371 5372 5373 if test "x$COMM" = x; then 5374 # The variable is not set by user, try to locate tool using the code snippet 5375 for ac_prog in comm 5376 do 5377 # Extract the first word of "$ac_prog", so it can be a program name with args. 5378 set dummy $ac_prog; ac_word=$2 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5380 $as_echo_n "checking for $ac_word... " >&6; } 5381 if ${ac_cv_path_COMM+:} false; then : 5382 $as_echo_n "(cached) " >&6 5383 else 5384 case $COMM in 5385 [\\/]* | ?:[\\/]*) 5386 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5387 ;; 5388 *) 5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5390 for as_dir in $PATH 5391 do 5392 IFS=$as_save_IFS 5393 test -z "$as_dir" && as_dir=. 5394 for ac_exec_ext in '' $ac_executable_extensions; do 5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5396 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5398 break 2 5399 fi 5400 done 5401 done 5402 IFS=$as_save_IFS 5403 5404 ;; 5405 esac 5406 fi 5407 COMM=$ac_cv_path_COMM 5408 if test -n "$COMM"; then 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5410 $as_echo "$COMM" >&6; } 5411 else 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5413 $as_echo "no" >&6; } 5414 fi 5415 5416 5417 test -n "$COMM" && break 5418 done 5419 5420 else 5421 # The variable is set, but is it from the command line or the environment? 5422 5423 # Try to remove the string !COMM! from our list. 5424 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5425 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5426 # If it failed, the variable was not from the command line. Ignore it, 5427 # but warn the user (except for BASH, which is always set by the calling BASH). 5428 if test "xCOMM" != xBASH; then 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5430 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5431 fi 5432 # Try to locate tool using the code snippet 5433 for ac_prog in comm 5434 do 5435 # Extract the first word of "$ac_prog", so it can be a program name with args. 5436 set dummy $ac_prog; ac_word=$2 5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5438 $as_echo_n "checking for $ac_word... " >&6; } 5439 if ${ac_cv_path_COMM+:} false; then : 5440 $as_echo_n "(cached) " >&6 5441 else 5442 case $COMM in 5443 [\\/]* | ?:[\\/]*) 5444 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5445 ;; 5446 *) 5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5448 for as_dir in $PATH 5449 do 5450 IFS=$as_save_IFS 5451 test -z "$as_dir" && as_dir=. 5452 for ac_exec_ext in '' $ac_executable_extensions; do 5453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5454 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5456 break 2 5457 fi 5458 done 5459 done 5460 IFS=$as_save_IFS 5461 5462 ;; 5463 esac 5464 fi 5465 COMM=$ac_cv_path_COMM 5466 if test -n "$COMM"; then 5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5468 $as_echo "$COMM" >&6; } 5469 else 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5471 $as_echo "no" >&6; } 5472 fi 5473 5474 5475 test -n "$COMM" && break 5476 done 5477 5478 else 5479 # If it succeeded, then it was overridden by the user. We will use it 5480 # for the tool. 5481 5482 # First remove it from the list of overridden variables, so we can test 5483 # for unknown variables in the end. 5484 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5485 5486 # Check if the provided tool contains a complete path. 5487 tool_specified="$COMM" 5488 tool_basename="${tool_specified##*/}" 5489 if test "x$tool_basename" = "x$tool_specified"; then 5490 # A command without a complete path is provided, search $PATH. 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5492 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5493 # Extract the first word of "$tool_basename", so it can be a program name with args. 5494 set dummy $tool_basename; ac_word=$2 5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5496 $as_echo_n "checking for $ac_word... " >&6; } 5497 if ${ac_cv_path_COMM+:} false; then : 5498 $as_echo_n "(cached) " >&6 5499 else 5500 case $COMM in 5501 [\\/]* | ?:[\\/]*) 5502 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5503 ;; 5504 *) 5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5506 for as_dir in $PATH 5507 do 5508 IFS=$as_save_IFS 5509 test -z "$as_dir" && as_dir=. 5510 for ac_exec_ext in '' $ac_executable_extensions; do 5511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5512 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5514 break 2 5515 fi 5516 done 5517 done 5518 IFS=$as_save_IFS 5519 5520 ;; 5521 esac 5522 fi 5523 COMM=$ac_cv_path_COMM 5524 if test -n "$COMM"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5526 $as_echo "$COMM" >&6; } 5527 else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529 $as_echo "no" >&6; } 5530 fi 5531 5532 5533 if test "x$COMM" = x; then 5534 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5535 fi 5536 else 5537 # Otherwise we believe it is a complete path. Use it as it is. 5538 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5539 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5541 $as_echo_n "checking for COMM... " >&6; } 5542 if test ! -x "$tool_specified"; then 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5544 $as_echo "not found" >&6; } 5545 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5546 fi 5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5548 $as_echo "$tool_specified" >&6; } 5549 fi 5550 fi 5551 fi 5552 5553 5554 5555 if test "x$COMM" = x; then 5556 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5557 fi 5558 5559 5560 5561 5562 5563 # Publish this variable in the help. 5564 5565 5566 if test "x$CP" = x; then 5567 # The variable is not set by user, try to locate tool using the code snippet 5568 for ac_prog in cp 5569 do 5570 # Extract the first word of "$ac_prog", so it can be a program name with args. 5571 set dummy $ac_prog; ac_word=$2 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573 $as_echo_n "checking for $ac_word... " >&6; } 5574 if ${ac_cv_path_CP+:} false; then : 5575 $as_echo_n "(cached) " >&6 5576 else 5577 case $CP in 5578 [\\/]* | ?:[\\/]*) 5579 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5580 ;; 5581 *) 5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5583 for as_dir in $PATH 5584 do 5585 IFS=$as_save_IFS 5586 test -z "$as_dir" && as_dir=. 5587 for ac_exec_ext in '' $ac_executable_extensions; do 5588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5589 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5591 break 2 5592 fi 5593 done 5594 done 5595 IFS=$as_save_IFS 5596 5597 ;; 5598 esac 5599 fi 5600 CP=$ac_cv_path_CP 5601 if test -n "$CP"; then 5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5603 $as_echo "$CP" >&6; } 5604 else 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5606 $as_echo "no" >&6; } 5607 fi 5608 5609 5610 test -n "$CP" && break 5611 done 5612 5613 else 5614 # The variable is set, but is it from the command line or the environment? 5615 5616 # Try to remove the string !CP! from our list. 5617 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5618 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5619 # If it failed, the variable was not from the command line. Ignore it, 5620 # but warn the user (except for BASH, which is always set by the calling BASH). 5621 if test "xCP" != xBASH; then 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5623 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5624 fi 5625 # Try to locate tool using the code snippet 5626 for ac_prog in cp 5627 do 5628 # Extract the first word of "$ac_prog", so it can be a program name with args. 5629 set dummy $ac_prog; ac_word=$2 5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5631 $as_echo_n "checking for $ac_word... " >&6; } 5632 if ${ac_cv_path_CP+:} false; then : 5633 $as_echo_n "(cached) " >&6 5634 else 5635 case $CP in 5636 [\\/]* | ?:[\\/]*) 5637 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5638 ;; 5639 *) 5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5641 for as_dir in $PATH 5642 do 5643 IFS=$as_save_IFS 5644 test -z "$as_dir" && as_dir=. 5645 for ac_exec_ext in '' $ac_executable_extensions; do 5646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5647 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5649 break 2 5650 fi 5651 done 5652 done 5653 IFS=$as_save_IFS 5654 5655 ;; 5656 esac 5657 fi 5658 CP=$ac_cv_path_CP 5659 if test -n "$CP"; then 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5661 $as_echo "$CP" >&6; } 5662 else 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664 $as_echo "no" >&6; } 5665 fi 5666 5667 5668 test -n "$CP" && break 5669 done 5670 5671 else 5672 # If it succeeded, then it was overridden by the user. We will use it 5673 # for the tool. 5674 5675 # First remove it from the list of overridden variables, so we can test 5676 # for unknown variables in the end. 5677 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5678 5679 # Check if the provided tool contains a complete path. 5680 tool_specified="$CP" 5681 tool_basename="${tool_specified##*/}" 5682 if test "x$tool_basename" = "x$tool_specified"; then 5683 # A command without a complete path is provided, search $PATH. 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5685 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5686 # Extract the first word of "$tool_basename", so it can be a program name with args. 5687 set dummy $tool_basename; ac_word=$2 5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5689 $as_echo_n "checking for $ac_word... " >&6; } 5690 if ${ac_cv_path_CP+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692 else 5693 case $CP in 5694 [\\/]* | ?:[\\/]*) 5695 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5696 ;; 5697 *) 5698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699 for as_dir in $PATH 5700 do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709 done 5710 done 5711 IFS=$as_save_IFS 5712 5713 ;; 5714 esac 5715 fi 5716 CP=$ac_cv_path_CP 5717 if test -n "$CP"; then 5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5719 $as_echo "$CP" >&6; } 5720 else 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5722 $as_echo "no" >&6; } 5723 fi 5724 5725 5726 if test "x$CP" = x; then 5727 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5728 fi 5729 else 5730 # Otherwise we believe it is a complete path. Use it as it is. 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5732 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5734 $as_echo_n "checking for CP... " >&6; } 5735 if test ! -x "$tool_specified"; then 5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5737 $as_echo "not found" >&6; } 5738 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5739 fi 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5741 $as_echo "$tool_specified" >&6; } 5742 fi 5743 fi 5744 fi 5745 5746 5747 5748 if test "x$CP" = x; then 5749 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5750 fi 5751 5752 5753 5754 5755 5756 # Publish this variable in the help. 5757 5758 5759 if test "x$CUT" = x; then 5760 # The variable is not set by user, try to locate tool using the code snippet 5761 for ac_prog in cut 5762 do 5763 # Extract the first word of "$ac_prog", so it can be a program name with args. 5764 set dummy $ac_prog; ac_word=$2 5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5766 $as_echo_n "checking for $ac_word... " >&6; } 5767 if ${ac_cv_path_CUT+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769 else 5770 case $CUT in 5771 [\\/]* | ?:[\\/]*) 5772 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5773 ;; 5774 *) 5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5776 for as_dir in $PATH 5777 do 5778 IFS=$as_save_IFS 5779 test -z "$as_dir" && as_dir=. 5780 for ac_exec_ext in '' $ac_executable_extensions; do 5781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5782 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5784 break 2 5785 fi 5786 done 5787 done 5788 IFS=$as_save_IFS 5789 5790 ;; 5791 esac 5792 fi 5793 CUT=$ac_cv_path_CUT 5794 if test -n "$CUT"; then 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5796 $as_echo "$CUT" >&6; } 5797 else 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5799 $as_echo "no" >&6; } 5800 fi 5801 5802 5803 test -n "$CUT" && break 5804 done 5805 5806 else 5807 # The variable is set, but is it from the command line or the environment? 5808 5809 # Try to remove the string !CUT! from our list. 5810 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5811 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5812 # If it failed, the variable was not from the command line. Ignore it, 5813 # but warn the user (except for BASH, which is always set by the calling BASH). 5814 if test "xCUT" != xBASH; then 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5816 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5817 fi 5818 # Try to locate tool using the code snippet 5819 for ac_prog in cut 5820 do 5821 # Extract the first word of "$ac_prog", so it can be a program name with args. 5822 set dummy $ac_prog; ac_word=$2 5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824 $as_echo_n "checking for $ac_word... " >&6; } 5825 if ${ac_cv_path_CUT+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827 else 5828 case $CUT in 5829 [\\/]* | ?:[\\/]*) 5830 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5831 ;; 5832 *) 5833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5834 for as_dir in $PATH 5835 do 5836 IFS=$as_save_IFS 5837 test -z "$as_dir" && as_dir=. 5838 for ac_exec_ext in '' $ac_executable_extensions; do 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5840 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5842 break 2 5843 fi 5844 done 5845 done 5846 IFS=$as_save_IFS 5847 5848 ;; 5849 esac 5850 fi 5851 CUT=$ac_cv_path_CUT 5852 if test -n "$CUT"; then 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5854 $as_echo "$CUT" >&6; } 5855 else 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5857 $as_echo "no" >&6; } 5858 fi 5859 5860 5861 test -n "$CUT" && break 5862 done 5863 5864 else 5865 # If it succeeded, then it was overridden by the user. We will use it 5866 # for the tool. 5867 5868 # First remove it from the list of overridden variables, so we can test 5869 # for unknown variables in the end. 5870 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5871 5872 # Check if the provided tool contains a complete path. 5873 tool_specified="$CUT" 5874 tool_basename="${tool_specified##*/}" 5875 if test "x$tool_basename" = "x$tool_specified"; then 5876 # A command without a complete path is provided, search $PATH. 5877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5878 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5879 # Extract the first word of "$tool_basename", so it can be a program name with args. 5880 set dummy $tool_basename; ac_word=$2 5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5882 $as_echo_n "checking for $ac_word... " >&6; } 5883 if ${ac_cv_path_CUT+:} false; then : 5884 $as_echo_n "(cached) " >&6 5885 else 5886 case $CUT in 5887 [\\/]* | ?:[\\/]*) 5888 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5889 ;; 5890 *) 5891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5892 for as_dir in $PATH 5893 do 5894 IFS=$as_save_IFS 5895 test -z "$as_dir" && as_dir=. 5896 for ac_exec_ext in '' $ac_executable_extensions; do 5897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5898 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5900 break 2 5901 fi 5902 done 5903 done 5904 IFS=$as_save_IFS 5905 5906 ;; 5907 esac 5908 fi 5909 CUT=$ac_cv_path_CUT 5910 if test -n "$CUT"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5912 $as_echo "$CUT" >&6; } 5913 else 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915 $as_echo "no" >&6; } 5916 fi 5917 5918 5919 if test "x$CUT" = x; then 5920 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5921 fi 5922 else 5923 # Otherwise we believe it is a complete path. Use it as it is. 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5925 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5927 $as_echo_n "checking for CUT... " >&6; } 5928 if test ! -x "$tool_specified"; then 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5930 $as_echo "not found" >&6; } 5931 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5932 fi 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5934 $as_echo "$tool_specified" >&6; } 5935 fi 5936 fi 5937 fi 5938 5939 5940 5941 if test "x$CUT" = x; then 5942 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5943 fi 5944 5945 5946 5947 5948 5949 # Publish this variable in the help. 5950 5951 5952 if test "x$DATE" = x; then 5953 # The variable is not set by user, try to locate tool using the code snippet 5954 for ac_prog in date 5955 do 5956 # Extract the first word of "$ac_prog", so it can be a program name with args. 5957 set dummy $ac_prog; ac_word=$2 5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5959 $as_echo_n "checking for $ac_word... " >&6; } 5960 if ${ac_cv_path_DATE+:} false; then : 5961 $as_echo_n "(cached) " >&6 5962 else 5963 case $DATE in 5964 [\\/]* | ?:[\\/]*) 5965 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5966 ;; 5967 *) 5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5969 for as_dir in $PATH 5970 do 5971 IFS=$as_save_IFS 5972 test -z "$as_dir" && as_dir=. 5973 for ac_exec_ext in '' $ac_executable_extensions; do 5974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5975 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5977 break 2 5978 fi 5979 done 5980 done 5981 IFS=$as_save_IFS 5982 5983 ;; 5984 esac 5985 fi 5986 DATE=$ac_cv_path_DATE 5987 if test -n "$DATE"; then 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5989 $as_echo "$DATE" >&6; } 5990 else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5992 $as_echo "no" >&6; } 5993 fi 5994 5995 5996 test -n "$DATE" && break 5997 done 5998 5999 else 6000 # The variable is set, but is it from the command line or the environment? 6001 6002 # Try to remove the string !DATE! from our list. 6003 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6004 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6005 # If it failed, the variable was not from the command line. Ignore it, 6006 # but warn the user (except for BASH, which is always set by the calling BASH). 6007 if test "xDATE" != xBASH; then 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6009 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6010 fi 6011 # Try to locate tool using the code snippet 6012 for ac_prog in date 6013 do 6014 # Extract the first word of "$ac_prog", so it can be a program name with args. 6015 set dummy $ac_prog; ac_word=$2 6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6017 $as_echo_n "checking for $ac_word... " >&6; } 6018 if ${ac_cv_path_DATE+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020 else 6021 case $DATE in 6022 [\\/]* | ?:[\\/]*) 6023 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6024 ;; 6025 *) 6026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6027 for as_dir in $PATH 6028 do 6029 IFS=$as_save_IFS 6030 test -z "$as_dir" && as_dir=. 6031 for ac_exec_ext in '' $ac_executable_extensions; do 6032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6033 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6035 break 2 6036 fi 6037 done 6038 done 6039 IFS=$as_save_IFS 6040 6041 ;; 6042 esac 6043 fi 6044 DATE=$ac_cv_path_DATE 6045 if test -n "$DATE"; then 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6047 $as_echo "$DATE" >&6; } 6048 else 6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6050 $as_echo "no" >&6; } 6051 fi 6052 6053 6054 test -n "$DATE" && break 6055 done 6056 6057 else 6058 # If it succeeded, then it was overridden by the user. We will use it 6059 # for the tool. 6060 6061 # First remove it from the list of overridden variables, so we can test 6062 # for unknown variables in the end. 6063 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6064 6065 # Check if the provided tool contains a complete path. 6066 tool_specified="$DATE" 6067 tool_basename="${tool_specified##*/}" 6068 if test "x$tool_basename" = "x$tool_specified"; then 6069 # A command without a complete path is provided, search $PATH. 6070 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6071 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6072 # Extract the first word of "$tool_basename", so it can be a program name with args. 6073 set dummy $tool_basename; ac_word=$2 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6075 $as_echo_n "checking for $ac_word... " >&6; } 6076 if ${ac_cv_path_DATE+:} false; then : 6077 $as_echo_n "(cached) " >&6 6078 else 6079 case $DATE in 6080 [\\/]* | ?:[\\/]*) 6081 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6082 ;; 6083 *) 6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6085 for as_dir in $PATH 6086 do 6087 IFS=$as_save_IFS 6088 test -z "$as_dir" && as_dir=. 6089 for ac_exec_ext in '' $ac_executable_extensions; do 6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6091 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6093 break 2 6094 fi 6095 done 6096 done 6097 IFS=$as_save_IFS 6098 6099 ;; 6100 esac 6101 fi 6102 DATE=$ac_cv_path_DATE 6103 if test -n "$DATE"; then 6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6105 $as_echo "$DATE" >&6; } 6106 else 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6108 $as_echo "no" >&6; } 6109 fi 6110 6111 6112 if test "x$DATE" = x; then 6113 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6114 fi 6115 else 6116 # Otherwise we believe it is a complete path. Use it as it is. 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6118 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6120 $as_echo_n "checking for DATE... " >&6; } 6121 if test ! -x "$tool_specified"; then 6122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6123 $as_echo "not found" >&6; } 6124 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6125 fi 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6127 $as_echo "$tool_specified" >&6; } 6128 fi 6129 fi 6130 fi 6131 6132 6133 6134 if test "x$DATE" = x; then 6135 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6136 fi 6137 6138 6139 6140 6141 6142 # Publish this variable in the help. 6143 6144 6145 if test "x$DIFF" = x; then 6146 # The variable is not set by user, try to locate tool using the code snippet 6147 for ac_prog in gdiff diff 6148 do 6149 # Extract the first word of "$ac_prog", so it can be a program name with args. 6150 set dummy $ac_prog; ac_word=$2 6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6152 $as_echo_n "checking for $ac_word... " >&6; } 6153 if ${ac_cv_path_DIFF+:} false; then : 6154 $as_echo_n "(cached) " >&6 6155 else 6156 case $DIFF in 6157 [\\/]* | ?:[\\/]*) 6158 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6159 ;; 6160 *) 6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6162 for as_dir in $PATH 6163 do 6164 IFS=$as_save_IFS 6165 test -z "$as_dir" && as_dir=. 6166 for ac_exec_ext in '' $ac_executable_extensions; do 6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6168 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6170 break 2 6171 fi 6172 done 6173 done 6174 IFS=$as_save_IFS 6175 6176 ;; 6177 esac 6178 fi 6179 DIFF=$ac_cv_path_DIFF 6180 if test -n "$DIFF"; then 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6182 $as_echo "$DIFF" >&6; } 6183 else 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6185 $as_echo "no" >&6; } 6186 fi 6187 6188 6189 test -n "$DIFF" && break 6190 done 6191 6192 else 6193 # The variable is set, but is it from the command line or the environment? 6194 6195 # Try to remove the string !DIFF! from our list. 6196 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6197 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6198 # If it failed, the variable was not from the command line. Ignore it, 6199 # but warn the user (except for BASH, which is always set by the calling BASH). 6200 if test "xDIFF" != xBASH; then 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6202 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6203 fi 6204 # Try to locate tool using the code snippet 6205 for ac_prog in gdiff diff 6206 do 6207 # Extract the first word of "$ac_prog", so it can be a program name with args. 6208 set dummy $ac_prog; ac_word=$2 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6210 $as_echo_n "checking for $ac_word... " >&6; } 6211 if ${ac_cv_path_DIFF+:} false; then : 6212 $as_echo_n "(cached) " >&6 6213 else 6214 case $DIFF in 6215 [\\/]* | ?:[\\/]*) 6216 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6217 ;; 6218 *) 6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6220 for as_dir in $PATH 6221 do 6222 IFS=$as_save_IFS 6223 test -z "$as_dir" && as_dir=. 6224 for ac_exec_ext in '' $ac_executable_extensions; do 6225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6226 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6228 break 2 6229 fi 6230 done 6231 done 6232 IFS=$as_save_IFS 6233 6234 ;; 6235 esac 6236 fi 6237 DIFF=$ac_cv_path_DIFF 6238 if test -n "$DIFF"; then 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6240 $as_echo "$DIFF" >&6; } 6241 else 6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6243 $as_echo "no" >&6; } 6244 fi 6245 6246 6247 test -n "$DIFF" && break 6248 done 6249 6250 else 6251 # If it succeeded, then it was overridden by the user. We will use it 6252 # for the tool. 6253 6254 # First remove it from the list of overridden variables, so we can test 6255 # for unknown variables in the end. 6256 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6257 6258 # Check if the provided tool contains a complete path. 6259 tool_specified="$DIFF" 6260 tool_basename="${tool_specified##*/}" 6261 if test "x$tool_basename" = "x$tool_specified"; then 6262 # A command without a complete path is provided, search $PATH. 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6264 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6265 # Extract the first word of "$tool_basename", so it can be a program name with args. 6266 set dummy $tool_basename; ac_word=$2 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6268 $as_echo_n "checking for $ac_word... " >&6; } 6269 if ${ac_cv_path_DIFF+:} false; then : 6270 $as_echo_n "(cached) " >&6 6271 else 6272 case $DIFF in 6273 [\\/]* | ?:[\\/]*) 6274 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6275 ;; 6276 *) 6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278 for as_dir in $PATH 6279 do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6284 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288 done 6289 done 6290 IFS=$as_save_IFS 6291 6292 ;; 6293 esac 6294 fi 6295 DIFF=$ac_cv_path_DIFF 6296 if test -n "$DIFF"; then 6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6298 $as_echo "$DIFF" >&6; } 6299 else 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6301 $as_echo "no" >&6; } 6302 fi 6303 6304 6305 if test "x$DIFF" = x; then 6306 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6307 fi 6308 else 6309 # Otherwise we believe it is a complete path. Use it as it is. 6310 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6311 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6313 $as_echo_n "checking for DIFF... " >&6; } 6314 if test ! -x "$tool_specified"; then 6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6316 $as_echo "not found" >&6; } 6317 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6318 fi 6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6320 $as_echo "$tool_specified" >&6; } 6321 fi 6322 fi 6323 fi 6324 6325 6326 6327 if test "x$DIFF" = x; then 6328 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6329 fi 6330 6331 6332 6333 6334 6335 # Publish this variable in the help. 6336 6337 6338 if test "x$DIRNAME" = x; then 6339 # The variable is not set by user, try to locate tool using the code snippet 6340 for ac_prog in dirname 6341 do 6342 # Extract the first word of "$ac_prog", so it can be a program name with args. 6343 set dummy $ac_prog; ac_word=$2 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6345 $as_echo_n "checking for $ac_word... " >&6; } 6346 if ${ac_cv_path_DIRNAME+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348 else 6349 case $DIRNAME in 6350 [\\/]* | ?:[\\/]*) 6351 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6352 ;; 6353 *) 6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6355 for as_dir in $PATH 6356 do 6357 IFS=$as_save_IFS 6358 test -z "$as_dir" && as_dir=. 6359 for ac_exec_ext in '' $ac_executable_extensions; do 6360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6361 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6363 break 2 6364 fi 6365 done 6366 done 6367 IFS=$as_save_IFS 6368 6369 ;; 6370 esac 6371 fi 6372 DIRNAME=$ac_cv_path_DIRNAME 6373 if test -n "$DIRNAME"; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6375 $as_echo "$DIRNAME" >&6; } 6376 else 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378 $as_echo "no" >&6; } 6379 fi 6380 6381 6382 test -n "$DIRNAME" && break 6383 done 6384 6385 else 6386 # The variable is set, but is it from the command line or the environment? 6387 6388 # Try to remove the string !DIRNAME! from our list. 6389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6391 # If it failed, the variable was not from the command line. Ignore it, 6392 # but warn the user (except for BASH, which is always set by the calling BASH). 6393 if test "xDIRNAME" != xBASH; then 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6395 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6396 fi 6397 # Try to locate tool using the code snippet 6398 for ac_prog in dirname 6399 do 6400 # Extract the first word of "$ac_prog", so it can be a program name with args. 6401 set dummy $ac_prog; ac_word=$2 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403 $as_echo_n "checking for $ac_word... " >&6; } 6404 if ${ac_cv_path_DIRNAME+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406 else 6407 case $DIRNAME in 6408 [\\/]* | ?:[\\/]*) 6409 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6410 ;; 6411 *) 6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6413 for as_dir in $PATH 6414 do 6415 IFS=$as_save_IFS 6416 test -z "$as_dir" && as_dir=. 6417 for ac_exec_ext in '' $ac_executable_extensions; do 6418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6419 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6421 break 2 6422 fi 6423 done 6424 done 6425 IFS=$as_save_IFS 6426 6427 ;; 6428 esac 6429 fi 6430 DIRNAME=$ac_cv_path_DIRNAME 6431 if test -n "$DIRNAME"; then 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6433 $as_echo "$DIRNAME" >&6; } 6434 else 6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6436 $as_echo "no" >&6; } 6437 fi 6438 6439 6440 test -n "$DIRNAME" && break 6441 done 6442 6443 else 6444 # If it succeeded, then it was overridden by the user. We will use it 6445 # for the tool. 6446 6447 # First remove it from the list of overridden variables, so we can test 6448 # for unknown variables in the end. 6449 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6450 6451 # Check if the provided tool contains a complete path. 6452 tool_specified="$DIRNAME" 6453 tool_basename="${tool_specified##*/}" 6454 if test "x$tool_basename" = "x$tool_specified"; then 6455 # A command without a complete path is provided, search $PATH. 6456 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6457 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6458 # Extract the first word of "$tool_basename", so it can be a program name with args. 6459 set dummy $tool_basename; ac_word=$2 6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6461 $as_echo_n "checking for $ac_word... " >&6; } 6462 if ${ac_cv_path_DIRNAME+:} false; then : 6463 $as_echo_n "(cached) " >&6 6464 else 6465 case $DIRNAME in 6466 [\\/]* | ?:[\\/]*) 6467 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6468 ;; 6469 *) 6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6471 for as_dir in $PATH 6472 do 6473 IFS=$as_save_IFS 6474 test -z "$as_dir" && as_dir=. 6475 for ac_exec_ext in '' $ac_executable_extensions; do 6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6477 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6479 break 2 6480 fi 6481 done 6482 done 6483 IFS=$as_save_IFS 6484 6485 ;; 6486 esac 6487 fi 6488 DIRNAME=$ac_cv_path_DIRNAME 6489 if test -n "$DIRNAME"; then 6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6491 $as_echo "$DIRNAME" >&6; } 6492 else 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6494 $as_echo "no" >&6; } 6495 fi 6496 6497 6498 if test "x$DIRNAME" = x; then 6499 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6500 fi 6501 else 6502 # Otherwise we believe it is a complete path. Use it as it is. 6503 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6504 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6506 $as_echo_n "checking for DIRNAME... " >&6; } 6507 if test ! -x "$tool_specified"; then 6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6509 $as_echo "not found" >&6; } 6510 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6511 fi 6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6513 $as_echo "$tool_specified" >&6; } 6514 fi 6515 fi 6516 fi 6517 6518 6519 6520 if test "x$DIRNAME" = x; then 6521 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6522 fi 6523 6524 6525 6526 6527 6528 # Publish this variable in the help. 6529 6530 6531 if test "x$ECHO" = x; then 6532 # The variable is not set by user, try to locate tool using the code snippet 6533 for ac_prog in echo 6534 do 6535 # Extract the first word of "$ac_prog", so it can be a program name with args. 6536 set dummy $ac_prog; ac_word=$2 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6538 $as_echo_n "checking for $ac_word... " >&6; } 6539 if ${ac_cv_path_ECHO+:} false; then : 6540 $as_echo_n "(cached) " >&6 6541 else 6542 case $ECHO in 6543 [\\/]* | ?:[\\/]*) 6544 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6545 ;; 6546 *) 6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6548 for as_dir in $PATH 6549 do 6550 IFS=$as_save_IFS 6551 test -z "$as_dir" && as_dir=. 6552 for ac_exec_ext in '' $ac_executable_extensions; do 6553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6554 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6556 break 2 6557 fi 6558 done 6559 done 6560 IFS=$as_save_IFS 6561 6562 ;; 6563 esac 6564 fi 6565 ECHO=$ac_cv_path_ECHO 6566 if test -n "$ECHO"; then 6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6568 $as_echo "$ECHO" >&6; } 6569 else 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6571 $as_echo "no" >&6; } 6572 fi 6573 6574 6575 test -n "$ECHO" && break 6576 done 6577 6578 else 6579 # The variable is set, but is it from the command line or the environment? 6580 6581 # Try to remove the string !ECHO! from our list. 6582 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6583 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6584 # If it failed, the variable was not from the command line. Ignore it, 6585 # but warn the user (except for BASH, which is always set by the calling BASH). 6586 if test "xECHO" != xBASH; then 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6588 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6589 fi 6590 # Try to locate tool using the code snippet 6591 for ac_prog in echo 6592 do 6593 # Extract the first word of "$ac_prog", so it can be a program name with args. 6594 set dummy $ac_prog; ac_word=$2 6595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6596 $as_echo_n "checking for $ac_word... " >&6; } 6597 if ${ac_cv_path_ECHO+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599 else 6600 case $ECHO in 6601 [\\/]* | ?:[\\/]*) 6602 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6603 ;; 6604 *) 6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606 for as_dir in $PATH 6607 do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616 done 6617 done 6618 IFS=$as_save_IFS 6619 6620 ;; 6621 esac 6622 fi 6623 ECHO=$ac_cv_path_ECHO 6624 if test -n "$ECHO"; then 6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6626 $as_echo "$ECHO" >&6; } 6627 else 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6629 $as_echo "no" >&6; } 6630 fi 6631 6632 6633 test -n "$ECHO" && break 6634 done 6635 6636 else 6637 # If it succeeded, then it was overridden by the user. We will use it 6638 # for the tool. 6639 6640 # First remove it from the list of overridden variables, so we can test 6641 # for unknown variables in the end. 6642 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6643 6644 # Check if the provided tool contains a complete path. 6645 tool_specified="$ECHO" 6646 tool_basename="${tool_specified##*/}" 6647 if test "x$tool_basename" = "x$tool_specified"; then 6648 # A command without a complete path is provided, search $PATH. 6649 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6650 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6651 # Extract the first word of "$tool_basename", so it can be a program name with args. 6652 set dummy $tool_basename; ac_word=$2 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6654 $as_echo_n "checking for $ac_word... " >&6; } 6655 if ${ac_cv_path_ECHO+:} false; then : 6656 $as_echo_n "(cached) " >&6 6657 else 6658 case $ECHO in 6659 [\\/]* | ?:[\\/]*) 6660 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6661 ;; 6662 *) 6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664 for as_dir in $PATH 6665 do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6670 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674 done 6675 done 6676 IFS=$as_save_IFS 6677 6678 ;; 6679 esac 6680 fi 6681 ECHO=$ac_cv_path_ECHO 6682 if test -n "$ECHO"; then 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6684 $as_echo "$ECHO" >&6; } 6685 else 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6687 $as_echo "no" >&6; } 6688 fi 6689 6690 6691 if test "x$ECHO" = x; then 6692 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6693 fi 6694 else 6695 # Otherwise we believe it is a complete path. Use it as it is. 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6697 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6699 $as_echo_n "checking for ECHO... " >&6; } 6700 if test ! -x "$tool_specified"; then 6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6702 $as_echo "not found" >&6; } 6703 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6704 fi 6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6706 $as_echo "$tool_specified" >&6; } 6707 fi 6708 fi 6709 fi 6710 6711 6712 6713 if test "x$ECHO" = x; then 6714 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6715 fi 6716 6717 6718 6719 6720 6721 # Publish this variable in the help. 6722 6723 6724 if test "x$EXPR" = x; then 6725 # The variable is not set by user, try to locate tool using the code snippet 6726 for ac_prog in expr 6727 do 6728 # Extract the first word of "$ac_prog", so it can be a program name with args. 6729 set dummy $ac_prog; ac_word=$2 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6731 $as_echo_n "checking for $ac_word... " >&6; } 6732 if ${ac_cv_path_EXPR+:} false; then : 6733 $as_echo_n "(cached) " >&6 6734 else 6735 case $EXPR in 6736 [\\/]* | ?:[\\/]*) 6737 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6738 ;; 6739 *) 6740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6741 for as_dir in $PATH 6742 do 6743 IFS=$as_save_IFS 6744 test -z "$as_dir" && as_dir=. 6745 for ac_exec_ext in '' $ac_executable_extensions; do 6746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6747 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6749 break 2 6750 fi 6751 done 6752 done 6753 IFS=$as_save_IFS 6754 6755 ;; 6756 esac 6757 fi 6758 EXPR=$ac_cv_path_EXPR 6759 if test -n "$EXPR"; then 6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6761 $as_echo "$EXPR" >&6; } 6762 else 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6764 $as_echo "no" >&6; } 6765 fi 6766 6767 6768 test -n "$EXPR" && break 6769 done 6770 6771 else 6772 # The variable is set, but is it from the command line or the environment? 6773 6774 # Try to remove the string !EXPR! from our list. 6775 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6776 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6777 # If it failed, the variable was not from the command line. Ignore it, 6778 # but warn the user (except for BASH, which is always set by the calling BASH). 6779 if test "xEXPR" != xBASH; then 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6781 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6782 fi 6783 # Try to locate tool using the code snippet 6784 for ac_prog in expr 6785 do 6786 # Extract the first word of "$ac_prog", so it can be a program name with args. 6787 set dummy $ac_prog; ac_word=$2 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6789 $as_echo_n "checking for $ac_word... " >&6; } 6790 if ${ac_cv_path_EXPR+:} false; then : 6791 $as_echo_n "(cached) " >&6 6792 else 6793 case $EXPR in 6794 [\\/]* | ?:[\\/]*) 6795 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6796 ;; 6797 *) 6798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6799 for as_dir in $PATH 6800 do 6801 IFS=$as_save_IFS 6802 test -z "$as_dir" && as_dir=. 6803 for ac_exec_ext in '' $ac_executable_extensions; do 6804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6805 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6807 break 2 6808 fi 6809 done 6810 done 6811 IFS=$as_save_IFS 6812 6813 ;; 6814 esac 6815 fi 6816 EXPR=$ac_cv_path_EXPR 6817 if test -n "$EXPR"; then 6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6819 $as_echo "$EXPR" >&6; } 6820 else 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6822 $as_echo "no" >&6; } 6823 fi 6824 6825 6826 test -n "$EXPR" && break 6827 done 6828 6829 else 6830 # If it succeeded, then it was overridden by the user. We will use it 6831 # for the tool. 6832 6833 # First remove it from the list of overridden variables, so we can test 6834 # for unknown variables in the end. 6835 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6836 6837 # Check if the provided tool contains a complete path. 6838 tool_specified="$EXPR" 6839 tool_basename="${tool_specified##*/}" 6840 if test "x$tool_basename" = "x$tool_specified"; then 6841 # A command without a complete path is provided, search $PATH. 6842 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6843 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6844 # Extract the first word of "$tool_basename", so it can be a program name with args. 6845 set dummy $tool_basename; ac_word=$2 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6847 $as_echo_n "checking for $ac_word... " >&6; } 6848 if ${ac_cv_path_EXPR+:} false; then : 6849 $as_echo_n "(cached) " >&6 6850 else 6851 case $EXPR in 6852 [\\/]* | ?:[\\/]*) 6853 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6854 ;; 6855 *) 6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857 for as_dir in $PATH 6858 do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6863 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867 done 6868 done 6869 IFS=$as_save_IFS 6870 6871 ;; 6872 esac 6873 fi 6874 EXPR=$ac_cv_path_EXPR 6875 if test -n "$EXPR"; then 6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6877 $as_echo "$EXPR" >&6; } 6878 else 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6880 $as_echo "no" >&6; } 6881 fi 6882 6883 6884 if test "x$EXPR" = x; then 6885 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6886 fi 6887 else 6888 # Otherwise we believe it is a complete path. Use it as it is. 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6890 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6892 $as_echo_n "checking for EXPR... " >&6; } 6893 if test ! -x "$tool_specified"; then 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6895 $as_echo "not found" >&6; } 6896 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6897 fi 6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6899 $as_echo "$tool_specified" >&6; } 6900 fi 6901 fi 6902 fi 6903 6904 6905 6906 if test "x$EXPR" = x; then 6907 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6908 fi 6909 6910 6911 6912 6913 6914 # Publish this variable in the help. 6915 6916 6917 if test "x$FILE" = x; then 6918 # The variable is not set by user, try to locate tool using the code snippet 6919 for ac_prog in file 6920 do 6921 # Extract the first word of "$ac_prog", so it can be a program name with args. 6922 set dummy $ac_prog; ac_word=$2 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6924 $as_echo_n "checking for $ac_word... " >&6; } 6925 if ${ac_cv_path_FILE+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927 else 6928 case $FILE in 6929 [\\/]* | ?:[\\/]*) 6930 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6931 ;; 6932 *) 6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6934 for as_dir in $PATH 6935 do 6936 IFS=$as_save_IFS 6937 test -z "$as_dir" && as_dir=. 6938 for ac_exec_ext in '' $ac_executable_extensions; do 6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6940 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6942 break 2 6943 fi 6944 done 6945 done 6946 IFS=$as_save_IFS 6947 6948 ;; 6949 esac 6950 fi 6951 FILE=$ac_cv_path_FILE 6952 if test -n "$FILE"; then 6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6954 $as_echo "$FILE" >&6; } 6955 else 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6957 $as_echo "no" >&6; } 6958 fi 6959 6960 6961 test -n "$FILE" && break 6962 done 6963 6964 else 6965 # The variable is set, but is it from the command line or the environment? 6966 6967 # Try to remove the string !FILE! from our list. 6968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6970 # If it failed, the variable was not from the command line. Ignore it, 6971 # but warn the user (except for BASH, which is always set by the calling BASH). 6972 if test "xFILE" != xBASH; then 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6974 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6975 fi 6976 # Try to locate tool using the code snippet 6977 for ac_prog in file 6978 do 6979 # Extract the first word of "$ac_prog", so it can be a program name with args. 6980 set dummy $ac_prog; ac_word=$2 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6982 $as_echo_n "checking for $ac_word... " >&6; } 6983 if ${ac_cv_path_FILE+:} false; then : 6984 $as_echo_n "(cached) " >&6 6985 else 6986 case $FILE in 6987 [\\/]* | ?:[\\/]*) 6988 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6989 ;; 6990 *) 6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6992 for as_dir in $PATH 6993 do 6994 IFS=$as_save_IFS 6995 test -z "$as_dir" && as_dir=. 6996 for ac_exec_ext in '' $ac_executable_extensions; do 6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6998 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7000 break 2 7001 fi 7002 done 7003 done 7004 IFS=$as_save_IFS 7005 7006 ;; 7007 esac 7008 fi 7009 FILE=$ac_cv_path_FILE 7010 if test -n "$FILE"; then 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7012 $as_echo "$FILE" >&6; } 7013 else 7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7015 $as_echo "no" >&6; } 7016 fi 7017 7018 7019 test -n "$FILE" && break 7020 done 7021 7022 else 7023 # If it succeeded, then it was overridden by the user. We will use it 7024 # for the tool. 7025 7026 # First remove it from the list of overridden variables, so we can test 7027 # for unknown variables in the end. 7028 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7029 7030 # Check if the provided tool contains a complete path. 7031 tool_specified="$FILE" 7032 tool_basename="${tool_specified##*/}" 7033 if test "x$tool_basename" = "x$tool_specified"; then 7034 # A command without a complete path is provided, search $PATH. 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7036 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7037 # Extract the first word of "$tool_basename", so it can be a program name with args. 7038 set dummy $tool_basename; ac_word=$2 7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7040 $as_echo_n "checking for $ac_word... " >&6; } 7041 if ${ac_cv_path_FILE+:} false; then : 7042 $as_echo_n "(cached) " >&6 7043 else 7044 case $FILE in 7045 [\\/]* | ?:[\\/]*) 7046 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7047 ;; 7048 *) 7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7050 for as_dir in $PATH 7051 do 7052 IFS=$as_save_IFS 7053 test -z "$as_dir" && as_dir=. 7054 for ac_exec_ext in '' $ac_executable_extensions; do 7055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7056 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7058 break 2 7059 fi 7060 done 7061 done 7062 IFS=$as_save_IFS 7063 7064 ;; 7065 esac 7066 fi 7067 FILE=$ac_cv_path_FILE 7068 if test -n "$FILE"; then 7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7070 $as_echo "$FILE" >&6; } 7071 else 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7073 $as_echo "no" >&6; } 7074 fi 7075 7076 7077 if test "x$FILE" = x; then 7078 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7079 fi 7080 else 7081 # Otherwise we believe it is a complete path. Use it as it is. 7082 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7083 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7085 $as_echo_n "checking for FILE... " >&6; } 7086 if test ! -x "$tool_specified"; then 7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7088 $as_echo "not found" >&6; } 7089 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7090 fi 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7092 $as_echo "$tool_specified" >&6; } 7093 fi 7094 fi 7095 fi 7096 7097 7098 7099 if test "x$FILE" = x; then 7100 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7101 fi 7102 7103 7104 7105 7106 7107 # Publish this variable in the help. 7108 7109 7110 if test "x$FIND" = x; then 7111 # The variable is not set by user, try to locate tool using the code snippet 7112 for ac_prog in find 7113 do 7114 # Extract the first word of "$ac_prog", so it can be a program name with args. 7115 set dummy $ac_prog; ac_word=$2 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7117 $as_echo_n "checking for $ac_word... " >&6; } 7118 if ${ac_cv_path_FIND+:} false; then : 7119 $as_echo_n "(cached) " >&6 7120 else 7121 case $FIND in 7122 [\\/]* | ?:[\\/]*) 7123 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7124 ;; 7125 *) 7126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7127 for as_dir in $PATH 7128 do 7129 IFS=$as_save_IFS 7130 test -z "$as_dir" && as_dir=. 7131 for ac_exec_ext in '' $ac_executable_extensions; do 7132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7133 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7135 break 2 7136 fi 7137 done 7138 done 7139 IFS=$as_save_IFS 7140 7141 ;; 7142 esac 7143 fi 7144 FIND=$ac_cv_path_FIND 7145 if test -n "$FIND"; then 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7147 $as_echo "$FIND" >&6; } 7148 else 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7150 $as_echo "no" >&6; } 7151 fi 7152 7153 7154 test -n "$FIND" && break 7155 done 7156 7157 else 7158 # The variable is set, but is it from the command line or the environment? 7159 7160 # Try to remove the string !FIND! from our list. 7161 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7162 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7163 # If it failed, the variable was not from the command line. Ignore it, 7164 # but warn the user (except for BASH, which is always set by the calling BASH). 7165 if test "xFIND" != xBASH; then 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7167 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7168 fi 7169 # Try to locate tool using the code snippet 7170 for ac_prog in find 7171 do 7172 # Extract the first word of "$ac_prog", so it can be a program name with args. 7173 set dummy $ac_prog; ac_word=$2 7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7175 $as_echo_n "checking for $ac_word... " >&6; } 7176 if ${ac_cv_path_FIND+:} false; then : 7177 $as_echo_n "(cached) " >&6 7178 else 7179 case $FIND in 7180 [\\/]* | ?:[\\/]*) 7181 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7182 ;; 7183 *) 7184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7185 for as_dir in $PATH 7186 do 7187 IFS=$as_save_IFS 7188 test -z "$as_dir" && as_dir=. 7189 for ac_exec_ext in '' $ac_executable_extensions; do 7190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7191 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7193 break 2 7194 fi 7195 done 7196 done 7197 IFS=$as_save_IFS 7198 7199 ;; 7200 esac 7201 fi 7202 FIND=$ac_cv_path_FIND 7203 if test -n "$FIND"; then 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7205 $as_echo "$FIND" >&6; } 7206 else 7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7208 $as_echo "no" >&6; } 7209 fi 7210 7211 7212 test -n "$FIND" && break 7213 done 7214 7215 else 7216 # If it succeeded, then it was overridden by the user. We will use it 7217 # for the tool. 7218 7219 # First remove it from the list of overridden variables, so we can test 7220 # for unknown variables in the end. 7221 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7222 7223 # Check if the provided tool contains a complete path. 7224 tool_specified="$FIND" 7225 tool_basename="${tool_specified##*/}" 7226 if test "x$tool_basename" = "x$tool_specified"; then 7227 # A command without a complete path is provided, search $PATH. 7228 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7229 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7230 # Extract the first word of "$tool_basename", so it can be a program name with args. 7231 set dummy $tool_basename; ac_word=$2 7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7233 $as_echo_n "checking for $ac_word... " >&6; } 7234 if ${ac_cv_path_FIND+:} false; then : 7235 $as_echo_n "(cached) " >&6 7236 else 7237 case $FIND in 7238 [\\/]* | ?:[\\/]*) 7239 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7240 ;; 7241 *) 7242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7243 for as_dir in $PATH 7244 do 7245 IFS=$as_save_IFS 7246 test -z "$as_dir" && as_dir=. 7247 for ac_exec_ext in '' $ac_executable_extensions; do 7248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7249 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7251 break 2 7252 fi 7253 done 7254 done 7255 IFS=$as_save_IFS 7256 7257 ;; 7258 esac 7259 fi 7260 FIND=$ac_cv_path_FIND 7261 if test -n "$FIND"; then 7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7263 $as_echo "$FIND" >&6; } 7264 else 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7266 $as_echo "no" >&6; } 7267 fi 7268 7269 7270 if test "x$FIND" = x; then 7271 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7272 fi 7273 else 7274 # Otherwise we believe it is a complete path. Use it as it is. 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7276 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7278 $as_echo_n "checking for FIND... " >&6; } 7279 if test ! -x "$tool_specified"; then 7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7281 $as_echo "not found" >&6; } 7282 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7283 fi 7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7285 $as_echo "$tool_specified" >&6; } 7286 fi 7287 fi 7288 fi 7289 7290 7291 7292 if test "x$FIND" = x; then 7293 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7294 fi 7295 7296 7297 7298 7299 7300 # Publish this variable in the help. 7301 7302 7303 if test "x$HEAD" = x; then 7304 # The variable is not set by user, try to locate tool using the code snippet 7305 for ac_prog in head 7306 do 7307 # Extract the first word of "$ac_prog", so it can be a program name with args. 7308 set dummy $ac_prog; ac_word=$2 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7310 $as_echo_n "checking for $ac_word... " >&6; } 7311 if ${ac_cv_path_HEAD+:} false; then : 7312 $as_echo_n "(cached) " >&6 7313 else 7314 case $HEAD in 7315 [\\/]* | ?:[\\/]*) 7316 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7317 ;; 7318 *) 7319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7320 for as_dir in $PATH 7321 do 7322 IFS=$as_save_IFS 7323 test -z "$as_dir" && as_dir=. 7324 for ac_exec_ext in '' $ac_executable_extensions; do 7325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7326 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7328 break 2 7329 fi 7330 done 7331 done 7332 IFS=$as_save_IFS 7333 7334 ;; 7335 esac 7336 fi 7337 HEAD=$ac_cv_path_HEAD 7338 if test -n "$HEAD"; then 7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7340 $as_echo "$HEAD" >&6; } 7341 else 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7343 $as_echo "no" >&6; } 7344 fi 7345 7346 7347 test -n "$HEAD" && break 7348 done 7349 7350 else 7351 # The variable is set, but is it from the command line or the environment? 7352 7353 # Try to remove the string !HEAD! from our list. 7354 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7355 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7356 # If it failed, the variable was not from the command line. Ignore it, 7357 # but warn the user (except for BASH, which is always set by the calling BASH). 7358 if test "xHEAD" != xBASH; then 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7360 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7361 fi 7362 # Try to locate tool using the code snippet 7363 for ac_prog in head 7364 do 7365 # Extract the first word of "$ac_prog", so it can be a program name with args. 7366 set dummy $ac_prog; ac_word=$2 7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7368 $as_echo_n "checking for $ac_word... " >&6; } 7369 if ${ac_cv_path_HEAD+:} false; then : 7370 $as_echo_n "(cached) " >&6 7371 else 7372 case $HEAD in 7373 [\\/]* | ?:[\\/]*) 7374 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7375 ;; 7376 *) 7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7378 for as_dir in $PATH 7379 do 7380 IFS=$as_save_IFS 7381 test -z "$as_dir" && as_dir=. 7382 for ac_exec_ext in '' $ac_executable_extensions; do 7383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7384 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7386 break 2 7387 fi 7388 done 7389 done 7390 IFS=$as_save_IFS 7391 7392 ;; 7393 esac 7394 fi 7395 HEAD=$ac_cv_path_HEAD 7396 if test -n "$HEAD"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7398 $as_echo "$HEAD" >&6; } 7399 else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401 $as_echo "no" >&6; } 7402 fi 7403 7404 7405 test -n "$HEAD" && break 7406 done 7407 7408 else 7409 # If it succeeded, then it was overridden by the user. We will use it 7410 # for the tool. 7411 7412 # First remove it from the list of overridden variables, so we can test 7413 # for unknown variables in the end. 7414 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7415 7416 # Check if the provided tool contains a complete path. 7417 tool_specified="$HEAD" 7418 tool_basename="${tool_specified##*/}" 7419 if test "x$tool_basename" = "x$tool_specified"; then 7420 # A command without a complete path is provided, search $PATH. 7421 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7422 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7423 # Extract the first word of "$tool_basename", so it can be a program name with args. 7424 set dummy $tool_basename; ac_word=$2 7425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7426 $as_echo_n "checking for $ac_word... " >&6; } 7427 if ${ac_cv_path_HEAD+:} false; then : 7428 $as_echo_n "(cached) " >&6 7429 else 7430 case $HEAD in 7431 [\\/]* | ?:[\\/]*) 7432 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7433 ;; 7434 *) 7435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7436 for as_dir in $PATH 7437 do 7438 IFS=$as_save_IFS 7439 test -z "$as_dir" && as_dir=. 7440 for ac_exec_ext in '' $ac_executable_extensions; do 7441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7442 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7444 break 2 7445 fi 7446 done 7447 done 7448 IFS=$as_save_IFS 7449 7450 ;; 7451 esac 7452 fi 7453 HEAD=$ac_cv_path_HEAD 7454 if test -n "$HEAD"; then 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7456 $as_echo "$HEAD" >&6; } 7457 else 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7459 $as_echo "no" >&6; } 7460 fi 7461 7462 7463 if test "x$HEAD" = x; then 7464 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7465 fi 7466 else 7467 # Otherwise we believe it is a complete path. Use it as it is. 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7469 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7471 $as_echo_n "checking for HEAD... " >&6; } 7472 if test ! -x "$tool_specified"; then 7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7474 $as_echo "not found" >&6; } 7475 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7476 fi 7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7478 $as_echo "$tool_specified" >&6; } 7479 fi 7480 fi 7481 fi 7482 7483 7484 7485 if test "x$HEAD" = x; then 7486 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7487 fi 7488 7489 7490 7491 7492 7493 # Publish this variable in the help. 7494 7495 7496 if test "x$LN" = x; then 7497 # The variable is not set by user, try to locate tool using the code snippet 7498 for ac_prog in ln 7499 do 7500 # Extract the first word of "$ac_prog", so it can be a program name with args. 7501 set dummy $ac_prog; ac_word=$2 7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7503 $as_echo_n "checking for $ac_word... " >&6; } 7504 if ${ac_cv_path_LN+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506 else 7507 case $LN in 7508 [\\/]* | ?:[\\/]*) 7509 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7510 ;; 7511 *) 7512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513 for as_dir in $PATH 7514 do 7515 IFS=$as_save_IFS 7516 test -z "$as_dir" && as_dir=. 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7519 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523 done 7524 done 7525 IFS=$as_save_IFS 7526 7527 ;; 7528 esac 7529 fi 7530 LN=$ac_cv_path_LN 7531 if test -n "$LN"; then 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7533 $as_echo "$LN" >&6; } 7534 else 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7536 $as_echo "no" >&6; } 7537 fi 7538 7539 7540 test -n "$LN" && break 7541 done 7542 7543 else 7544 # The variable is set, but is it from the command line or the environment? 7545 7546 # Try to remove the string !LN! from our list. 7547 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7548 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7549 # If it failed, the variable was not from the command line. Ignore it, 7550 # but warn the user (except for BASH, which is always set by the calling BASH). 7551 if test "xLN" != xBASH; then 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7553 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7554 fi 7555 # Try to locate tool using the code snippet 7556 for ac_prog in ln 7557 do 7558 # Extract the first word of "$ac_prog", so it can be a program name with args. 7559 set dummy $ac_prog; ac_word=$2 7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7561 $as_echo_n "checking for $ac_word... " >&6; } 7562 if ${ac_cv_path_LN+:} false; then : 7563 $as_echo_n "(cached) " >&6 7564 else 7565 case $LN in 7566 [\\/]* | ?:[\\/]*) 7567 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7568 ;; 7569 *) 7570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7571 for as_dir in $PATH 7572 do 7573 IFS=$as_save_IFS 7574 test -z "$as_dir" && as_dir=. 7575 for ac_exec_ext in '' $ac_executable_extensions; do 7576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7577 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7579 break 2 7580 fi 7581 done 7582 done 7583 IFS=$as_save_IFS 7584 7585 ;; 7586 esac 7587 fi 7588 LN=$ac_cv_path_LN 7589 if test -n "$LN"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7591 $as_echo "$LN" >&6; } 7592 else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594 $as_echo "no" >&6; } 7595 fi 7596 7597 7598 test -n "$LN" && break 7599 done 7600 7601 else 7602 # If it succeeded, then it was overridden by the user. We will use it 7603 # for the tool. 7604 7605 # First remove it from the list of overridden variables, so we can test 7606 # for unknown variables in the end. 7607 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7608 7609 # Check if the provided tool contains a complete path. 7610 tool_specified="$LN" 7611 tool_basename="${tool_specified##*/}" 7612 if test "x$tool_basename" = "x$tool_specified"; then 7613 # A command without a complete path is provided, search $PATH. 7614 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7615 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7616 # Extract the first word of "$tool_basename", so it can be a program name with args. 7617 set dummy $tool_basename; ac_word=$2 7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7619 $as_echo_n "checking for $ac_word... " >&6; } 7620 if ${ac_cv_path_LN+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622 else 7623 case $LN in 7624 [\\/]* | ?:[\\/]*) 7625 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7626 ;; 7627 *) 7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7629 for as_dir in $PATH 7630 do 7631 IFS=$as_save_IFS 7632 test -z "$as_dir" && as_dir=. 7633 for ac_exec_ext in '' $ac_executable_extensions; do 7634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7635 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7637 break 2 7638 fi 7639 done 7640 done 7641 IFS=$as_save_IFS 7642 7643 ;; 7644 esac 7645 fi 7646 LN=$ac_cv_path_LN 7647 if test -n "$LN"; then 7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7649 $as_echo "$LN" >&6; } 7650 else 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7652 $as_echo "no" >&6; } 7653 fi 7654 7655 7656 if test "x$LN" = x; then 7657 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7658 fi 7659 else 7660 # Otherwise we believe it is a complete path. Use it as it is. 7661 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7662 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7664 $as_echo_n "checking for LN... " >&6; } 7665 if test ! -x "$tool_specified"; then 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7667 $as_echo "not found" >&6; } 7668 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7669 fi 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7671 $as_echo "$tool_specified" >&6; } 7672 fi 7673 fi 7674 fi 7675 7676 7677 7678 if test "x$LN" = x; then 7679 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7680 fi 7681 7682 7683 7684 7685 7686 # Publish this variable in the help. 7687 7688 7689 if test "x$LS" = x; then 7690 # The variable is not set by user, try to locate tool using the code snippet 7691 for ac_prog in ls 7692 do 7693 # Extract the first word of "$ac_prog", so it can be a program name with args. 7694 set dummy $ac_prog; ac_word=$2 7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696 $as_echo_n "checking for $ac_word... " >&6; } 7697 if ${ac_cv_path_LS+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699 else 7700 case $LS in 7701 [\\/]* | ?:[\\/]*) 7702 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7703 ;; 7704 *) 7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7706 for as_dir in $PATH 7707 do 7708 IFS=$as_save_IFS 7709 test -z "$as_dir" && as_dir=. 7710 for ac_exec_ext in '' $ac_executable_extensions; do 7711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7712 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7714 break 2 7715 fi 7716 done 7717 done 7718 IFS=$as_save_IFS 7719 7720 ;; 7721 esac 7722 fi 7723 LS=$ac_cv_path_LS 7724 if test -n "$LS"; then 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7726 $as_echo "$LS" >&6; } 7727 else 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7729 $as_echo "no" >&6; } 7730 fi 7731 7732 7733 test -n "$LS" && break 7734 done 7735 7736 else 7737 # The variable is set, but is it from the command line or the environment? 7738 7739 # Try to remove the string !LS! from our list. 7740 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7741 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7742 # If it failed, the variable was not from the command line. Ignore it, 7743 # but warn the user (except for BASH, which is always set by the calling BASH). 7744 if test "xLS" != xBASH; then 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7746 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7747 fi 7748 # Try to locate tool using the code snippet 7749 for ac_prog in ls 7750 do 7751 # Extract the first word of "$ac_prog", so it can be a program name with args. 7752 set dummy $ac_prog; ac_word=$2 7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7754 $as_echo_n "checking for $ac_word... " >&6; } 7755 if ${ac_cv_path_LS+:} false; then : 7756 $as_echo_n "(cached) " >&6 7757 else 7758 case $LS in 7759 [\\/]* | ?:[\\/]*) 7760 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7761 ;; 7762 *) 7763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7764 for as_dir in $PATH 7765 do 7766 IFS=$as_save_IFS 7767 test -z "$as_dir" && as_dir=. 7768 for ac_exec_ext in '' $ac_executable_extensions; do 7769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7770 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7772 break 2 7773 fi 7774 done 7775 done 7776 IFS=$as_save_IFS 7777 7778 ;; 7779 esac 7780 fi 7781 LS=$ac_cv_path_LS 7782 if test -n "$LS"; then 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7784 $as_echo "$LS" >&6; } 7785 else 7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7787 $as_echo "no" >&6; } 7788 fi 7789 7790 7791 test -n "$LS" && break 7792 done 7793 7794 else 7795 # If it succeeded, then it was overridden by the user. We will use it 7796 # for the tool. 7797 7798 # First remove it from the list of overridden variables, so we can test 7799 # for unknown variables in the end. 7800 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7801 7802 # Check if the provided tool contains a complete path. 7803 tool_specified="$LS" 7804 tool_basename="${tool_specified##*/}" 7805 if test "x$tool_basename" = "x$tool_specified"; then 7806 # A command without a complete path is provided, search $PATH. 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7808 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7809 # Extract the first word of "$tool_basename", so it can be a program name with args. 7810 set dummy $tool_basename; ac_word=$2 7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7812 $as_echo_n "checking for $ac_word... " >&6; } 7813 if ${ac_cv_path_LS+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815 else 7816 case $LS in 7817 [\\/]* | ?:[\\/]*) 7818 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7819 ;; 7820 *) 7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7822 for as_dir in $PATH 7823 do 7824 IFS=$as_save_IFS 7825 test -z "$as_dir" && as_dir=. 7826 for ac_exec_ext in '' $ac_executable_extensions; do 7827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7828 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7830 break 2 7831 fi 7832 done 7833 done 7834 IFS=$as_save_IFS 7835 7836 ;; 7837 esac 7838 fi 7839 LS=$ac_cv_path_LS 7840 if test -n "$LS"; then 7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7842 $as_echo "$LS" >&6; } 7843 else 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7845 $as_echo "no" >&6; } 7846 fi 7847 7848 7849 if test "x$LS" = x; then 7850 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7851 fi 7852 else 7853 # Otherwise we believe it is a complete path. Use it as it is. 7854 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7855 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7857 $as_echo_n "checking for LS... " >&6; } 7858 if test ! -x "$tool_specified"; then 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7860 $as_echo "not found" >&6; } 7861 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7862 fi 7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7864 $as_echo "$tool_specified" >&6; } 7865 fi 7866 fi 7867 fi 7868 7869 7870 7871 if test "x$LS" = x; then 7872 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7873 fi 7874 7875 7876 7877 7878 7879 # Publish this variable in the help. 7880 7881 7882 if test "x$MKDIR" = x; then 7883 # The variable is not set by user, try to locate tool using the code snippet 7884 for ac_prog in mkdir 7885 do 7886 # Extract the first word of "$ac_prog", so it can be a program name with args. 7887 set dummy $ac_prog; ac_word=$2 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7889 $as_echo_n "checking for $ac_word... " >&6; } 7890 if ${ac_cv_path_MKDIR+:} false; then : 7891 $as_echo_n "(cached) " >&6 7892 else 7893 case $MKDIR in 7894 [\\/]* | ?:[\\/]*) 7895 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7896 ;; 7897 *) 7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7899 for as_dir in $PATH 7900 do 7901 IFS=$as_save_IFS 7902 test -z "$as_dir" && as_dir=. 7903 for ac_exec_ext in '' $ac_executable_extensions; do 7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7905 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7907 break 2 7908 fi 7909 done 7910 done 7911 IFS=$as_save_IFS 7912 7913 ;; 7914 esac 7915 fi 7916 MKDIR=$ac_cv_path_MKDIR 7917 if test -n "$MKDIR"; then 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7919 $as_echo "$MKDIR" >&6; } 7920 else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922 $as_echo "no" >&6; } 7923 fi 7924 7925 7926 test -n "$MKDIR" && break 7927 done 7928 7929 else 7930 # The variable is set, but is it from the command line or the environment? 7931 7932 # Try to remove the string !MKDIR! from our list. 7933 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7934 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7935 # If it failed, the variable was not from the command line. Ignore it, 7936 # but warn the user (except for BASH, which is always set by the calling BASH). 7937 if test "xMKDIR" != xBASH; then 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7939 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7940 fi 7941 # Try to locate tool using the code snippet 7942 for ac_prog in mkdir 7943 do 7944 # Extract the first word of "$ac_prog", so it can be a program name with args. 7945 set dummy $ac_prog; ac_word=$2 7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7947 $as_echo_n "checking for $ac_word... " >&6; } 7948 if ${ac_cv_path_MKDIR+:} false; then : 7949 $as_echo_n "(cached) " >&6 7950 else 7951 case $MKDIR in 7952 [\\/]* | ?:[\\/]*) 7953 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7954 ;; 7955 *) 7956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7957 for as_dir in $PATH 7958 do 7959 IFS=$as_save_IFS 7960 test -z "$as_dir" && as_dir=. 7961 for ac_exec_ext in '' $ac_executable_extensions; do 7962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7963 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7965 break 2 7966 fi 7967 done 7968 done 7969 IFS=$as_save_IFS 7970 7971 ;; 7972 esac 7973 fi 7974 MKDIR=$ac_cv_path_MKDIR 7975 if test -n "$MKDIR"; then 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7977 $as_echo "$MKDIR" >&6; } 7978 else 7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7980 $as_echo "no" >&6; } 7981 fi 7982 7983 7984 test -n "$MKDIR" && break 7985 done 7986 7987 else 7988 # If it succeeded, then it was overridden by the user. We will use it 7989 # for the tool. 7990 7991 # First remove it from the list of overridden variables, so we can test 7992 # for unknown variables in the end. 7993 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7994 7995 # Check if the provided tool contains a complete path. 7996 tool_specified="$MKDIR" 7997 tool_basename="${tool_specified##*/}" 7998 if test "x$tool_basename" = "x$tool_specified"; then 7999 # A command without a complete path is provided, search $PATH. 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8001 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8002 # Extract the first word of "$tool_basename", so it can be a program name with args. 8003 set dummy $tool_basename; ac_word=$2 8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8005 $as_echo_n "checking for $ac_word... " >&6; } 8006 if ${ac_cv_path_MKDIR+:} false; then : 8007 $as_echo_n "(cached) " >&6 8008 else 8009 case $MKDIR in 8010 [\\/]* | ?:[\\/]*) 8011 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8012 ;; 8013 *) 8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8015 for as_dir in $PATH 8016 do 8017 IFS=$as_save_IFS 8018 test -z "$as_dir" && as_dir=. 8019 for ac_exec_ext in '' $ac_executable_extensions; do 8020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8021 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8023 break 2 8024 fi 8025 done 8026 done 8027 IFS=$as_save_IFS 8028 8029 ;; 8030 esac 8031 fi 8032 MKDIR=$ac_cv_path_MKDIR 8033 if test -n "$MKDIR"; then 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8035 $as_echo "$MKDIR" >&6; } 8036 else 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8038 $as_echo "no" >&6; } 8039 fi 8040 8041 8042 if test "x$MKDIR" = x; then 8043 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8044 fi 8045 else 8046 # Otherwise we believe it is a complete path. Use it as it is. 8047 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8048 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8050 $as_echo_n "checking for MKDIR... " >&6; } 8051 if test ! -x "$tool_specified"; then 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8053 $as_echo "not found" >&6; } 8054 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8055 fi 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8057 $as_echo "$tool_specified" >&6; } 8058 fi 8059 fi 8060 fi 8061 8062 8063 8064 if test "x$MKDIR" = x; then 8065 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8066 fi 8067 8068 8069 8070 8071 8072 # Publish this variable in the help. 8073 8074 8075 if test "x$MKTEMP" = x; then 8076 # The variable is not set by user, try to locate tool using the code snippet 8077 for ac_prog in mktemp 8078 do 8079 # Extract the first word of "$ac_prog", so it can be a program name with args. 8080 set dummy $ac_prog; ac_word=$2 8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8082 $as_echo_n "checking for $ac_word... " >&6; } 8083 if ${ac_cv_path_MKTEMP+:} false; then : 8084 $as_echo_n "(cached) " >&6 8085 else 8086 case $MKTEMP in 8087 [\\/]* | ?:[\\/]*) 8088 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8089 ;; 8090 *) 8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8092 for as_dir in $PATH 8093 do 8094 IFS=$as_save_IFS 8095 test -z "$as_dir" && as_dir=. 8096 for ac_exec_ext in '' $ac_executable_extensions; do 8097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8098 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8100 break 2 8101 fi 8102 done 8103 done 8104 IFS=$as_save_IFS 8105 8106 ;; 8107 esac 8108 fi 8109 MKTEMP=$ac_cv_path_MKTEMP 8110 if test -n "$MKTEMP"; then 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8112 $as_echo "$MKTEMP" >&6; } 8113 else 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8115 $as_echo "no" >&6; } 8116 fi 8117 8118 8119 test -n "$MKTEMP" && break 8120 done 8121 8122 else 8123 # The variable is set, but is it from the command line or the environment? 8124 8125 # Try to remove the string !MKTEMP! from our list. 8126 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8127 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8128 # If it failed, the variable was not from the command line. Ignore it, 8129 # but warn the user (except for BASH, which is always set by the calling BASH). 8130 if test "xMKTEMP" != xBASH; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8132 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8133 fi 8134 # Try to locate tool using the code snippet 8135 for ac_prog in mktemp 8136 do 8137 # Extract the first word of "$ac_prog", so it can be a program name with args. 8138 set dummy $ac_prog; ac_word=$2 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8140 $as_echo_n "checking for $ac_word... " >&6; } 8141 if ${ac_cv_path_MKTEMP+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143 else 8144 case $MKTEMP in 8145 [\\/]* | ?:[\\/]*) 8146 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8147 ;; 8148 *) 8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8150 for as_dir in $PATH 8151 do 8152 IFS=$as_save_IFS 8153 test -z "$as_dir" && as_dir=. 8154 for ac_exec_ext in '' $ac_executable_extensions; do 8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8156 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8158 break 2 8159 fi 8160 done 8161 done 8162 IFS=$as_save_IFS 8163 8164 ;; 8165 esac 8166 fi 8167 MKTEMP=$ac_cv_path_MKTEMP 8168 if test -n "$MKTEMP"; then 8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8170 $as_echo "$MKTEMP" >&6; } 8171 else 8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8173 $as_echo "no" >&6; } 8174 fi 8175 8176 8177 test -n "$MKTEMP" && break 8178 done 8179 8180 else 8181 # If it succeeded, then it was overridden by the user. We will use it 8182 # for the tool. 8183 8184 # First remove it from the list of overridden variables, so we can test 8185 # for unknown variables in the end. 8186 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8187 8188 # Check if the provided tool contains a complete path. 8189 tool_specified="$MKTEMP" 8190 tool_basename="${tool_specified##*/}" 8191 if test "x$tool_basename" = "x$tool_specified"; then 8192 # A command without a complete path is provided, search $PATH. 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8194 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8195 # Extract the first word of "$tool_basename", so it can be a program name with args. 8196 set dummy $tool_basename; ac_word=$2 8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8198 $as_echo_n "checking for $ac_word... " >&6; } 8199 if ${ac_cv_path_MKTEMP+:} false; then : 8200 $as_echo_n "(cached) " >&6 8201 else 8202 case $MKTEMP in 8203 [\\/]* | ?:[\\/]*) 8204 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8205 ;; 8206 *) 8207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8208 for as_dir in $PATH 8209 do 8210 IFS=$as_save_IFS 8211 test -z "$as_dir" && as_dir=. 8212 for ac_exec_ext in '' $ac_executable_extensions; do 8213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8214 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8216 break 2 8217 fi 8218 done 8219 done 8220 IFS=$as_save_IFS 8221 8222 ;; 8223 esac 8224 fi 8225 MKTEMP=$ac_cv_path_MKTEMP 8226 if test -n "$MKTEMP"; then 8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8228 $as_echo "$MKTEMP" >&6; } 8229 else 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8231 $as_echo "no" >&6; } 8232 fi 8233 8234 8235 if test "x$MKTEMP" = x; then 8236 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8237 fi 8238 else 8239 # Otherwise we believe it is a complete path. Use it as it is. 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8241 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8243 $as_echo_n "checking for MKTEMP... " >&6; } 8244 if test ! -x "$tool_specified"; then 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8246 $as_echo "not found" >&6; } 8247 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8248 fi 8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8250 $as_echo "$tool_specified" >&6; } 8251 fi 8252 fi 8253 fi 8254 8255 8256 8257 if test "x$MKTEMP" = x; then 8258 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8259 fi 8260 8261 8262 8263 8264 8265 # Publish this variable in the help. 8266 8267 8268 if test "x$MV" = x; then 8269 # The variable is not set by user, try to locate tool using the code snippet 8270 for ac_prog in mv 8271 do 8272 # Extract the first word of "$ac_prog", so it can be a program name with args. 8273 set dummy $ac_prog; ac_word=$2 8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8275 $as_echo_n "checking for $ac_word... " >&6; } 8276 if ${ac_cv_path_MV+:} false; then : 8277 $as_echo_n "(cached) " >&6 8278 else 8279 case $MV in 8280 [\\/]* | ?:[\\/]*) 8281 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8282 ;; 8283 *) 8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8285 for as_dir in $PATH 8286 do 8287 IFS=$as_save_IFS 8288 test -z "$as_dir" && as_dir=. 8289 for ac_exec_ext in '' $ac_executable_extensions; do 8290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8291 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8293 break 2 8294 fi 8295 done 8296 done 8297 IFS=$as_save_IFS 8298 8299 ;; 8300 esac 8301 fi 8302 MV=$ac_cv_path_MV 8303 if test -n "$MV"; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8305 $as_echo "$MV" >&6; } 8306 else 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8308 $as_echo "no" >&6; } 8309 fi 8310 8311 8312 test -n "$MV" && break 8313 done 8314 8315 else 8316 # The variable is set, but is it from the command line or the environment? 8317 8318 # Try to remove the string !MV! from our list. 8319 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8320 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8321 # If it failed, the variable was not from the command line. Ignore it, 8322 # but warn the user (except for BASH, which is always set by the calling BASH). 8323 if test "xMV" != xBASH; then 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8325 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8326 fi 8327 # Try to locate tool using the code snippet 8328 for ac_prog in mv 8329 do 8330 # Extract the first word of "$ac_prog", so it can be a program name with args. 8331 set dummy $ac_prog; ac_word=$2 8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8333 $as_echo_n "checking for $ac_word... " >&6; } 8334 if ${ac_cv_path_MV+:} false; then : 8335 $as_echo_n "(cached) " >&6 8336 else 8337 case $MV in 8338 [\\/]* | ?:[\\/]*) 8339 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8340 ;; 8341 *) 8342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8343 for as_dir in $PATH 8344 do 8345 IFS=$as_save_IFS 8346 test -z "$as_dir" && as_dir=. 8347 for ac_exec_ext in '' $ac_executable_extensions; do 8348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8349 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8351 break 2 8352 fi 8353 done 8354 done 8355 IFS=$as_save_IFS 8356 8357 ;; 8358 esac 8359 fi 8360 MV=$ac_cv_path_MV 8361 if test -n "$MV"; then 8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8363 $as_echo "$MV" >&6; } 8364 else 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8366 $as_echo "no" >&6; } 8367 fi 8368 8369 8370 test -n "$MV" && break 8371 done 8372 8373 else 8374 # If it succeeded, then it was overridden by the user. We will use it 8375 # for the tool. 8376 8377 # First remove it from the list of overridden variables, so we can test 8378 # for unknown variables in the end. 8379 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8380 8381 # Check if the provided tool contains a complete path. 8382 tool_specified="$MV" 8383 tool_basename="${tool_specified##*/}" 8384 if test "x$tool_basename" = "x$tool_specified"; then 8385 # A command without a complete path is provided, search $PATH. 8386 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8387 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8388 # Extract the first word of "$tool_basename", so it can be a program name with args. 8389 set dummy $tool_basename; ac_word=$2 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8391 $as_echo_n "checking for $ac_word... " >&6; } 8392 if ${ac_cv_path_MV+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394 else 8395 case $MV in 8396 [\\/]* | ?:[\\/]*) 8397 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8398 ;; 8399 *) 8400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8401 for as_dir in $PATH 8402 do 8403 IFS=$as_save_IFS 8404 test -z "$as_dir" && as_dir=. 8405 for ac_exec_ext in '' $ac_executable_extensions; do 8406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8407 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8409 break 2 8410 fi 8411 done 8412 done 8413 IFS=$as_save_IFS 8414 8415 ;; 8416 esac 8417 fi 8418 MV=$ac_cv_path_MV 8419 if test -n "$MV"; then 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8421 $as_echo "$MV" >&6; } 8422 else 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8424 $as_echo "no" >&6; } 8425 fi 8426 8427 8428 if test "x$MV" = x; then 8429 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8430 fi 8431 else 8432 # Otherwise we believe it is a complete path. Use it as it is. 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8434 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8436 $as_echo_n "checking for MV... " >&6; } 8437 if test ! -x "$tool_specified"; then 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8439 $as_echo "not found" >&6; } 8440 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8441 fi 8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8443 $as_echo "$tool_specified" >&6; } 8444 fi 8445 fi 8446 fi 8447 8448 8449 8450 if test "x$MV" = x; then 8451 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8452 fi 8453 8454 8455 8456 8457 8458 # Publish this variable in the help. 8459 8460 8461 if test "x$NAWK" = x; then 8462 # The variable is not set by user, try to locate tool using the code snippet 8463 for ac_prog in nawk gawk awk 8464 do 8465 # Extract the first word of "$ac_prog", so it can be a program name with args. 8466 set dummy $ac_prog; ac_word=$2 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8468 $as_echo_n "checking for $ac_word... " >&6; } 8469 if ${ac_cv_path_NAWK+:} false; then : 8470 $as_echo_n "(cached) " >&6 8471 else 8472 case $NAWK in 8473 [\\/]* | ?:[\\/]*) 8474 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8475 ;; 8476 *) 8477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8478 for as_dir in $PATH 8479 do 8480 IFS=$as_save_IFS 8481 test -z "$as_dir" && as_dir=. 8482 for ac_exec_ext in '' $ac_executable_extensions; do 8483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8484 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8486 break 2 8487 fi 8488 done 8489 done 8490 IFS=$as_save_IFS 8491 8492 ;; 8493 esac 8494 fi 8495 NAWK=$ac_cv_path_NAWK 8496 if test -n "$NAWK"; then 8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8498 $as_echo "$NAWK" >&6; } 8499 else 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8501 $as_echo "no" >&6; } 8502 fi 8503 8504 8505 test -n "$NAWK" && break 8506 done 8507 8508 else 8509 # The variable is set, but is it from the command line or the environment? 8510 8511 # Try to remove the string !NAWK! from our list. 8512 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8513 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8514 # If it failed, the variable was not from the command line. Ignore it, 8515 # but warn the user (except for BASH, which is always set by the calling BASH). 8516 if test "xNAWK" != xBASH; then 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8518 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8519 fi 8520 # Try to locate tool using the code snippet 8521 for ac_prog in nawk gawk awk 8522 do 8523 # Extract the first word of "$ac_prog", so it can be a program name with args. 8524 set dummy $ac_prog; ac_word=$2 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8526 $as_echo_n "checking for $ac_word... " >&6; } 8527 if ${ac_cv_path_NAWK+:} false; then : 8528 $as_echo_n "(cached) " >&6 8529 else 8530 case $NAWK in 8531 [\\/]* | ?:[\\/]*) 8532 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8533 ;; 8534 *) 8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8536 for as_dir in $PATH 8537 do 8538 IFS=$as_save_IFS 8539 test -z "$as_dir" && as_dir=. 8540 for ac_exec_ext in '' $ac_executable_extensions; do 8541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8542 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8544 break 2 8545 fi 8546 done 8547 done 8548 IFS=$as_save_IFS 8549 8550 ;; 8551 esac 8552 fi 8553 NAWK=$ac_cv_path_NAWK 8554 if test -n "$NAWK"; then 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8556 $as_echo "$NAWK" >&6; } 8557 else 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8559 $as_echo "no" >&6; } 8560 fi 8561 8562 8563 test -n "$NAWK" && break 8564 done 8565 8566 else 8567 # If it succeeded, then it was overridden by the user. We will use it 8568 # for the tool. 8569 8570 # First remove it from the list of overridden variables, so we can test 8571 # for unknown variables in the end. 8572 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8573 8574 # Check if the provided tool contains a complete path. 8575 tool_specified="$NAWK" 8576 tool_basename="${tool_specified##*/}" 8577 if test "x$tool_basename" = "x$tool_specified"; then 8578 # A command without a complete path is provided, search $PATH. 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8580 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8581 # Extract the first word of "$tool_basename", so it can be a program name with args. 8582 set dummy $tool_basename; ac_word=$2 8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8584 $as_echo_n "checking for $ac_word... " >&6; } 8585 if ${ac_cv_path_NAWK+:} false; then : 8586 $as_echo_n "(cached) " >&6 8587 else 8588 case $NAWK in 8589 [\\/]* | ?:[\\/]*) 8590 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8591 ;; 8592 *) 8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8594 for as_dir in $PATH 8595 do 8596 IFS=$as_save_IFS 8597 test -z "$as_dir" && as_dir=. 8598 for ac_exec_ext in '' $ac_executable_extensions; do 8599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8600 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8602 break 2 8603 fi 8604 done 8605 done 8606 IFS=$as_save_IFS 8607 8608 ;; 8609 esac 8610 fi 8611 NAWK=$ac_cv_path_NAWK 8612 if test -n "$NAWK"; then 8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8614 $as_echo "$NAWK" >&6; } 8615 else 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8617 $as_echo "no" >&6; } 8618 fi 8619 8620 8621 if test "x$NAWK" = x; then 8622 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8623 fi 8624 else 8625 # Otherwise we believe it is a complete path. Use it as it is. 8626 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8627 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8629 $as_echo_n "checking for NAWK... " >&6; } 8630 if test ! -x "$tool_specified"; then 8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8632 $as_echo "not found" >&6; } 8633 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8634 fi 8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8636 $as_echo "$tool_specified" >&6; } 8637 fi 8638 fi 8639 fi 8640 8641 8642 8643 if test "x$NAWK" = x; then 8644 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8645 fi 8646 8647 8648 8649 8650 8651 # Publish this variable in the help. 8652 8653 8654 if test "x$PRINTF" = x; then 8655 # The variable is not set by user, try to locate tool using the code snippet 8656 for ac_prog in printf 8657 do 8658 # Extract the first word of "$ac_prog", so it can be a program name with args. 8659 set dummy $ac_prog; ac_word=$2 8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8661 $as_echo_n "checking for $ac_word... " >&6; } 8662 if ${ac_cv_path_PRINTF+:} false; then : 8663 $as_echo_n "(cached) " >&6 8664 else 8665 case $PRINTF in 8666 [\\/]* | ?:[\\/]*) 8667 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8668 ;; 8669 *) 8670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8671 for as_dir in $PATH 8672 do 8673 IFS=$as_save_IFS 8674 test -z "$as_dir" && as_dir=. 8675 for ac_exec_ext in '' $ac_executable_extensions; do 8676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8677 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8679 break 2 8680 fi 8681 done 8682 done 8683 IFS=$as_save_IFS 8684 8685 ;; 8686 esac 8687 fi 8688 PRINTF=$ac_cv_path_PRINTF 8689 if test -n "$PRINTF"; then 8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8691 $as_echo "$PRINTF" >&6; } 8692 else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8694 $as_echo "no" >&6; } 8695 fi 8696 8697 8698 test -n "$PRINTF" && break 8699 done 8700 8701 else 8702 # The variable is set, but is it from the command line or the environment? 8703 8704 # Try to remove the string !PRINTF! from our list. 8705 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8706 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8707 # If it failed, the variable was not from the command line. Ignore it, 8708 # but warn the user (except for BASH, which is always set by the calling BASH). 8709 if test "xPRINTF" != xBASH; then 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8711 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8712 fi 8713 # Try to locate tool using the code snippet 8714 for ac_prog in printf 8715 do 8716 # Extract the first word of "$ac_prog", so it can be a program name with args. 8717 set dummy $ac_prog; ac_word=$2 8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8719 $as_echo_n "checking for $ac_word... " >&6; } 8720 if ${ac_cv_path_PRINTF+:} false; then : 8721 $as_echo_n "(cached) " >&6 8722 else 8723 case $PRINTF in 8724 [\\/]* | ?:[\\/]*) 8725 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8726 ;; 8727 *) 8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8729 for as_dir in $PATH 8730 do 8731 IFS=$as_save_IFS 8732 test -z "$as_dir" && as_dir=. 8733 for ac_exec_ext in '' $ac_executable_extensions; do 8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8735 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8737 break 2 8738 fi 8739 done 8740 done 8741 IFS=$as_save_IFS 8742 8743 ;; 8744 esac 8745 fi 8746 PRINTF=$ac_cv_path_PRINTF 8747 if test -n "$PRINTF"; then 8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8749 $as_echo "$PRINTF" >&6; } 8750 else 8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8752 $as_echo "no" >&6; } 8753 fi 8754 8755 8756 test -n "$PRINTF" && break 8757 done 8758 8759 else 8760 # If it succeeded, then it was overridden by the user. We will use it 8761 # for the tool. 8762 8763 # First remove it from the list of overridden variables, so we can test 8764 # for unknown variables in the end. 8765 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8766 8767 # Check if the provided tool contains a complete path. 8768 tool_specified="$PRINTF" 8769 tool_basename="${tool_specified##*/}" 8770 if test "x$tool_basename" = "x$tool_specified"; then 8771 # A command without a complete path is provided, search $PATH. 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8773 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8774 # Extract the first word of "$tool_basename", so it can be a program name with args. 8775 set dummy $tool_basename; ac_word=$2 8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8777 $as_echo_n "checking for $ac_word... " >&6; } 8778 if ${ac_cv_path_PRINTF+:} false; then : 8779 $as_echo_n "(cached) " >&6 8780 else 8781 case $PRINTF in 8782 [\\/]* | ?:[\\/]*) 8783 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8784 ;; 8785 *) 8786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8787 for as_dir in $PATH 8788 do 8789 IFS=$as_save_IFS 8790 test -z "$as_dir" && as_dir=. 8791 for ac_exec_ext in '' $ac_executable_extensions; do 8792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8793 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8795 break 2 8796 fi 8797 done 8798 done 8799 IFS=$as_save_IFS 8800 8801 ;; 8802 esac 8803 fi 8804 PRINTF=$ac_cv_path_PRINTF 8805 if test -n "$PRINTF"; then 8806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8807 $as_echo "$PRINTF" >&6; } 8808 else 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8810 $as_echo "no" >&6; } 8811 fi 8812 8813 8814 if test "x$PRINTF" = x; then 8815 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8816 fi 8817 else 8818 # Otherwise we believe it is a complete path. Use it as it is. 8819 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8820 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8822 $as_echo_n "checking for PRINTF... " >&6; } 8823 if test ! -x "$tool_specified"; then 8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8825 $as_echo "not found" >&6; } 8826 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8827 fi 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8829 $as_echo "$tool_specified" >&6; } 8830 fi 8831 fi 8832 fi 8833 8834 8835 8836 if test "x$PRINTF" = x; then 8837 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8838 fi 8839 8840 8841 8842 8843 8844 # Publish this variable in the help. 8845 8846 8847 if test "x$RM" = x; then 8848 # The variable is not set by user, try to locate tool using the code snippet 8849 for ac_prog in rm 8850 do 8851 # Extract the first word of "$ac_prog", so it can be a program name with args. 8852 set dummy $ac_prog; ac_word=$2 8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8854 $as_echo_n "checking for $ac_word... " >&6; } 8855 if ${ac_cv_path_RM+:} false; then : 8856 $as_echo_n "(cached) " >&6 8857 else 8858 case $RM in 8859 [\\/]* | ?:[\\/]*) 8860 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8861 ;; 8862 *) 8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8864 for as_dir in $PATH 8865 do 8866 IFS=$as_save_IFS 8867 test -z "$as_dir" && as_dir=. 8868 for ac_exec_ext in '' $ac_executable_extensions; do 8869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8870 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8872 break 2 8873 fi 8874 done 8875 done 8876 IFS=$as_save_IFS 8877 8878 ;; 8879 esac 8880 fi 8881 RM=$ac_cv_path_RM 8882 if test -n "$RM"; then 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8884 $as_echo "$RM" >&6; } 8885 else 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8887 $as_echo "no" >&6; } 8888 fi 8889 8890 8891 test -n "$RM" && break 8892 done 8893 8894 else 8895 # The variable is set, but is it from the command line or the environment? 8896 8897 # Try to remove the string !RM! from our list. 8898 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8899 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8900 # If it failed, the variable was not from the command line. Ignore it, 8901 # but warn the user (except for BASH, which is always set by the calling BASH). 8902 if test "xRM" != xBASH; then 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8904 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8905 fi 8906 # Try to locate tool using the code snippet 8907 for ac_prog in rm 8908 do 8909 # Extract the first word of "$ac_prog", so it can be a program name with args. 8910 set dummy $ac_prog; ac_word=$2 8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8912 $as_echo_n "checking for $ac_word... " >&6; } 8913 if ${ac_cv_path_RM+:} false; then : 8914 $as_echo_n "(cached) " >&6 8915 else 8916 case $RM in 8917 [\\/]* | ?:[\\/]*) 8918 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8919 ;; 8920 *) 8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8922 for as_dir in $PATH 8923 do 8924 IFS=$as_save_IFS 8925 test -z "$as_dir" && as_dir=. 8926 for ac_exec_ext in '' $ac_executable_extensions; do 8927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8928 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8930 break 2 8931 fi 8932 done 8933 done 8934 IFS=$as_save_IFS 8935 8936 ;; 8937 esac 8938 fi 8939 RM=$ac_cv_path_RM 8940 if test -n "$RM"; then 8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8942 $as_echo "$RM" >&6; } 8943 else 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8945 $as_echo "no" >&6; } 8946 fi 8947 8948 8949 test -n "$RM" && break 8950 done 8951 8952 else 8953 # If it succeeded, then it was overridden by the user. We will use it 8954 # for the tool. 8955 8956 # First remove it from the list of overridden variables, so we can test 8957 # for unknown variables in the end. 8958 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8959 8960 # Check if the provided tool contains a complete path. 8961 tool_specified="$RM" 8962 tool_basename="${tool_specified##*/}" 8963 if test "x$tool_basename" = "x$tool_specified"; then 8964 # A command without a complete path is provided, search $PATH. 8965 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8966 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8967 # Extract the first word of "$tool_basename", so it can be a program name with args. 8968 set dummy $tool_basename; ac_word=$2 8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8970 $as_echo_n "checking for $ac_word... " >&6; } 8971 if ${ac_cv_path_RM+:} false; then : 8972 $as_echo_n "(cached) " >&6 8973 else 8974 case $RM in 8975 [\\/]* | ?:[\\/]*) 8976 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8977 ;; 8978 *) 8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8980 for as_dir in $PATH 8981 do 8982 IFS=$as_save_IFS 8983 test -z "$as_dir" && as_dir=. 8984 for ac_exec_ext in '' $ac_executable_extensions; do 8985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8986 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8988 break 2 8989 fi 8990 done 8991 done 8992 IFS=$as_save_IFS 8993 8994 ;; 8995 esac 8996 fi 8997 RM=$ac_cv_path_RM 8998 if test -n "$RM"; then 8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9000 $as_echo "$RM" >&6; } 9001 else 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9003 $as_echo "no" >&6; } 9004 fi 9005 9006 9007 if test "x$RM" = x; then 9008 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9009 fi 9010 else 9011 # Otherwise we believe it is a complete path. Use it as it is. 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9013 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9015 $as_echo_n "checking for RM... " >&6; } 9016 if test ! -x "$tool_specified"; then 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9018 $as_echo "not found" >&6; } 9019 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9020 fi 9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9022 $as_echo "$tool_specified" >&6; } 9023 fi 9024 fi 9025 fi 9026 9027 9028 9029 if test "x$RM" = x; then 9030 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9031 fi 9032 9033 9034 9035 9036 9037 # Publish this variable in the help. 9038 9039 9040 if test "x$SH" = x; then 9041 # The variable is not set by user, try to locate tool using the code snippet 9042 for ac_prog in sh 9043 do 9044 # Extract the first word of "$ac_prog", so it can be a program name with args. 9045 set dummy $ac_prog; ac_word=$2 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9047 $as_echo_n "checking for $ac_word... " >&6; } 9048 if ${ac_cv_path_SH+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050 else 9051 case $SH in 9052 [\\/]* | ?:[\\/]*) 9053 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9054 ;; 9055 *) 9056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9057 for as_dir in $PATH 9058 do 9059 IFS=$as_save_IFS 9060 test -z "$as_dir" && as_dir=. 9061 for ac_exec_ext in '' $ac_executable_extensions; do 9062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9063 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9065 break 2 9066 fi 9067 done 9068 done 9069 IFS=$as_save_IFS 9070 9071 ;; 9072 esac 9073 fi 9074 SH=$ac_cv_path_SH 9075 if test -n "$SH"; then 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9077 $as_echo "$SH" >&6; } 9078 else 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9080 $as_echo "no" >&6; } 9081 fi 9082 9083 9084 test -n "$SH" && break 9085 done 9086 9087 else 9088 # The variable is set, but is it from the command line or the environment? 9089 9090 # Try to remove the string !SH! from our list. 9091 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9092 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9093 # If it failed, the variable was not from the command line. Ignore it, 9094 # but warn the user (except for BASH, which is always set by the calling BASH). 9095 if test "xSH" != xBASH; then 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9097 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9098 fi 9099 # Try to locate tool using the code snippet 9100 for ac_prog in sh 9101 do 9102 # Extract the first word of "$ac_prog", so it can be a program name with args. 9103 set dummy $ac_prog; ac_word=$2 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9105 $as_echo_n "checking for $ac_word... " >&6; } 9106 if ${ac_cv_path_SH+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108 else 9109 case $SH in 9110 [\\/]* | ?:[\\/]*) 9111 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9112 ;; 9113 *) 9114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9115 for as_dir in $PATH 9116 do 9117 IFS=$as_save_IFS 9118 test -z "$as_dir" && as_dir=. 9119 for ac_exec_ext in '' $ac_executable_extensions; do 9120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9121 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9123 break 2 9124 fi 9125 done 9126 done 9127 IFS=$as_save_IFS 9128 9129 ;; 9130 esac 9131 fi 9132 SH=$ac_cv_path_SH 9133 if test -n "$SH"; then 9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9135 $as_echo "$SH" >&6; } 9136 else 9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9138 $as_echo "no" >&6; } 9139 fi 9140 9141 9142 test -n "$SH" && break 9143 done 9144 9145 else 9146 # If it succeeded, then it was overridden by the user. We will use it 9147 # for the tool. 9148 9149 # First remove it from the list of overridden variables, so we can test 9150 # for unknown variables in the end. 9151 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9152 9153 # Check if the provided tool contains a complete path. 9154 tool_specified="$SH" 9155 tool_basename="${tool_specified##*/}" 9156 if test "x$tool_basename" = "x$tool_specified"; then 9157 # A command without a complete path is provided, search $PATH. 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9159 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9160 # Extract the first word of "$tool_basename", so it can be a program name with args. 9161 set dummy $tool_basename; ac_word=$2 9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9163 $as_echo_n "checking for $ac_word... " >&6; } 9164 if ${ac_cv_path_SH+:} false; then : 9165 $as_echo_n "(cached) " >&6 9166 else 9167 case $SH in 9168 [\\/]* | ?:[\\/]*) 9169 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9170 ;; 9171 *) 9172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9173 for as_dir in $PATH 9174 do 9175 IFS=$as_save_IFS 9176 test -z "$as_dir" && as_dir=. 9177 for ac_exec_ext in '' $ac_executable_extensions; do 9178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9179 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9181 break 2 9182 fi 9183 done 9184 done 9185 IFS=$as_save_IFS 9186 9187 ;; 9188 esac 9189 fi 9190 SH=$ac_cv_path_SH 9191 if test -n "$SH"; then 9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9193 $as_echo "$SH" >&6; } 9194 else 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9196 $as_echo "no" >&6; } 9197 fi 9198 9199 9200 if test "x$SH" = x; then 9201 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9202 fi 9203 else 9204 # Otherwise we believe it is a complete path. Use it as it is. 9205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9206 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9208 $as_echo_n "checking for SH... " >&6; } 9209 if test ! -x "$tool_specified"; then 9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9211 $as_echo "not found" >&6; } 9212 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9213 fi 9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9215 $as_echo "$tool_specified" >&6; } 9216 fi 9217 fi 9218 fi 9219 9220 9221 9222 if test "x$SH" = x; then 9223 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9224 fi 9225 9226 9227 9228 9229 9230 # Publish this variable in the help. 9231 9232 9233 if test "x$SORT" = x; then 9234 # The variable is not set by user, try to locate tool using the code snippet 9235 for ac_prog in sort 9236 do 9237 # Extract the first word of "$ac_prog", so it can be a program name with args. 9238 set dummy $ac_prog; ac_word=$2 9239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9240 $as_echo_n "checking for $ac_word... " >&6; } 9241 if ${ac_cv_path_SORT+:} false; then : 9242 $as_echo_n "(cached) " >&6 9243 else 9244 case $SORT in 9245 [\\/]* | ?:[\\/]*) 9246 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9247 ;; 9248 *) 9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9250 for as_dir in $PATH 9251 do 9252 IFS=$as_save_IFS 9253 test -z "$as_dir" && as_dir=. 9254 for ac_exec_ext in '' $ac_executable_extensions; do 9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9256 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9258 break 2 9259 fi 9260 done 9261 done 9262 IFS=$as_save_IFS 9263 9264 ;; 9265 esac 9266 fi 9267 SORT=$ac_cv_path_SORT 9268 if test -n "$SORT"; then 9269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9270 $as_echo "$SORT" >&6; } 9271 else 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9273 $as_echo "no" >&6; } 9274 fi 9275 9276 9277 test -n "$SORT" && break 9278 done 9279 9280 else 9281 # The variable is set, but is it from the command line or the environment? 9282 9283 # Try to remove the string !SORT! from our list. 9284 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9285 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9286 # If it failed, the variable was not from the command line. Ignore it, 9287 # but warn the user (except for BASH, which is always set by the calling BASH). 9288 if test "xSORT" != xBASH; then 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9290 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9291 fi 9292 # Try to locate tool using the code snippet 9293 for ac_prog in sort 9294 do 9295 # Extract the first word of "$ac_prog", so it can be a program name with args. 9296 set dummy $ac_prog; ac_word=$2 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9298 $as_echo_n "checking for $ac_word... " >&6; } 9299 if ${ac_cv_path_SORT+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301 else 9302 case $SORT in 9303 [\\/]* | ?:[\\/]*) 9304 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9305 ;; 9306 *) 9307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9308 for as_dir in $PATH 9309 do 9310 IFS=$as_save_IFS 9311 test -z "$as_dir" && as_dir=. 9312 for ac_exec_ext in '' $ac_executable_extensions; do 9313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9314 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9316 break 2 9317 fi 9318 done 9319 done 9320 IFS=$as_save_IFS 9321 9322 ;; 9323 esac 9324 fi 9325 SORT=$ac_cv_path_SORT 9326 if test -n "$SORT"; then 9327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9328 $as_echo "$SORT" >&6; } 9329 else 9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9331 $as_echo "no" >&6; } 9332 fi 9333 9334 9335 test -n "$SORT" && break 9336 done 9337 9338 else 9339 # If it succeeded, then it was overridden by the user. We will use it 9340 # for the tool. 9341 9342 # First remove it from the list of overridden variables, so we can test 9343 # for unknown variables in the end. 9344 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9345 9346 # Check if the provided tool contains a complete path. 9347 tool_specified="$SORT" 9348 tool_basename="${tool_specified##*/}" 9349 if test "x$tool_basename" = "x$tool_specified"; then 9350 # A command without a complete path is provided, search $PATH. 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9352 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9353 # Extract the first word of "$tool_basename", so it can be a program name with args. 9354 set dummy $tool_basename; ac_word=$2 9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9356 $as_echo_n "checking for $ac_word... " >&6; } 9357 if ${ac_cv_path_SORT+:} false; then : 9358 $as_echo_n "(cached) " >&6 9359 else 9360 case $SORT in 9361 [\\/]* | ?:[\\/]*) 9362 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9363 ;; 9364 *) 9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9366 for as_dir in $PATH 9367 do 9368 IFS=$as_save_IFS 9369 test -z "$as_dir" && as_dir=. 9370 for ac_exec_ext in '' $ac_executable_extensions; do 9371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9372 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9374 break 2 9375 fi 9376 done 9377 done 9378 IFS=$as_save_IFS 9379 9380 ;; 9381 esac 9382 fi 9383 SORT=$ac_cv_path_SORT 9384 if test -n "$SORT"; then 9385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9386 $as_echo "$SORT" >&6; } 9387 else 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9389 $as_echo "no" >&6; } 9390 fi 9391 9392 9393 if test "x$SORT" = x; then 9394 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9395 fi 9396 else 9397 # Otherwise we believe it is a complete path. Use it as it is. 9398 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9399 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9401 $as_echo_n "checking for SORT... " >&6; } 9402 if test ! -x "$tool_specified"; then 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9404 $as_echo "not found" >&6; } 9405 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9406 fi 9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9408 $as_echo "$tool_specified" >&6; } 9409 fi 9410 fi 9411 fi 9412 9413 9414 9415 if test "x$SORT" = x; then 9416 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9417 fi 9418 9419 9420 9421 9422 9423 # Publish this variable in the help. 9424 9425 9426 if test "x$TAIL" = x; then 9427 # The variable is not set by user, try to locate tool using the code snippet 9428 for ac_prog in tail 9429 do 9430 # Extract the first word of "$ac_prog", so it can be a program name with args. 9431 set dummy $ac_prog; ac_word=$2 9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9433 $as_echo_n "checking for $ac_word... " >&6; } 9434 if ${ac_cv_path_TAIL+:} false; then : 9435 $as_echo_n "(cached) " >&6 9436 else 9437 case $TAIL in 9438 [\\/]* | ?:[\\/]*) 9439 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9440 ;; 9441 *) 9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9443 for as_dir in $PATH 9444 do 9445 IFS=$as_save_IFS 9446 test -z "$as_dir" && as_dir=. 9447 for ac_exec_ext in '' $ac_executable_extensions; do 9448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9449 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9451 break 2 9452 fi 9453 done 9454 done 9455 IFS=$as_save_IFS 9456 9457 ;; 9458 esac 9459 fi 9460 TAIL=$ac_cv_path_TAIL 9461 if test -n "$TAIL"; then 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9463 $as_echo "$TAIL" >&6; } 9464 else 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9466 $as_echo "no" >&6; } 9467 fi 9468 9469 9470 test -n "$TAIL" && break 9471 done 9472 9473 else 9474 # The variable is set, but is it from the command line or the environment? 9475 9476 # Try to remove the string !TAIL! from our list. 9477 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9478 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9479 # If it failed, the variable was not from the command line. Ignore it, 9480 # but warn the user (except for BASH, which is always set by the calling BASH). 9481 if test "xTAIL" != xBASH; then 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9483 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9484 fi 9485 # Try to locate tool using the code snippet 9486 for ac_prog in tail 9487 do 9488 # Extract the first word of "$ac_prog", so it can be a program name with args. 9489 set dummy $ac_prog; ac_word=$2 9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9491 $as_echo_n "checking for $ac_word... " >&6; } 9492 if ${ac_cv_path_TAIL+:} false; then : 9493 $as_echo_n "(cached) " >&6 9494 else 9495 case $TAIL in 9496 [\\/]* | ?:[\\/]*) 9497 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9498 ;; 9499 *) 9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9501 for as_dir in $PATH 9502 do 9503 IFS=$as_save_IFS 9504 test -z "$as_dir" && as_dir=. 9505 for ac_exec_ext in '' $ac_executable_extensions; do 9506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9507 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9509 break 2 9510 fi 9511 done 9512 done 9513 IFS=$as_save_IFS 9514 9515 ;; 9516 esac 9517 fi 9518 TAIL=$ac_cv_path_TAIL 9519 if test -n "$TAIL"; then 9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9521 $as_echo "$TAIL" >&6; } 9522 else 9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9524 $as_echo "no" >&6; } 9525 fi 9526 9527 9528 test -n "$TAIL" && break 9529 done 9530 9531 else 9532 # If it succeeded, then it was overridden by the user. We will use it 9533 # for the tool. 9534 9535 # First remove it from the list of overridden variables, so we can test 9536 # for unknown variables in the end. 9537 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9538 9539 # Check if the provided tool contains a complete path. 9540 tool_specified="$TAIL" 9541 tool_basename="${tool_specified##*/}" 9542 if test "x$tool_basename" = "x$tool_specified"; then 9543 # A command without a complete path is provided, search $PATH. 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9545 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9546 # Extract the first word of "$tool_basename", so it can be a program name with args. 9547 set dummy $tool_basename; ac_word=$2 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9549 $as_echo_n "checking for $ac_word... " >&6; } 9550 if ${ac_cv_path_TAIL+:} false; then : 9551 $as_echo_n "(cached) " >&6 9552 else 9553 case $TAIL in 9554 [\\/]* | ?:[\\/]*) 9555 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9556 ;; 9557 *) 9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9559 for as_dir in $PATH 9560 do 9561 IFS=$as_save_IFS 9562 test -z "$as_dir" && as_dir=. 9563 for ac_exec_ext in '' $ac_executable_extensions; do 9564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9565 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9567 break 2 9568 fi 9569 done 9570 done 9571 IFS=$as_save_IFS 9572 9573 ;; 9574 esac 9575 fi 9576 TAIL=$ac_cv_path_TAIL 9577 if test -n "$TAIL"; then 9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9579 $as_echo "$TAIL" >&6; } 9580 else 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9582 $as_echo "no" >&6; } 9583 fi 9584 9585 9586 if test "x$TAIL" = x; then 9587 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9588 fi 9589 else 9590 # Otherwise we believe it is a complete path. Use it as it is. 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9592 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9594 $as_echo_n "checking for TAIL... " >&6; } 9595 if test ! -x "$tool_specified"; then 9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9597 $as_echo "not found" >&6; } 9598 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9599 fi 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9601 $as_echo "$tool_specified" >&6; } 9602 fi 9603 fi 9604 fi 9605 9606 9607 9608 if test "x$TAIL" = x; then 9609 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9610 fi 9611 9612 9613 9614 9615 9616 # Publish this variable in the help. 9617 9618 9619 if test "x$TAR" = x; then 9620 # The variable is not set by user, try to locate tool using the code snippet 9621 for ac_prog in tar 9622 do 9623 # Extract the first word of "$ac_prog", so it can be a program name with args. 9624 set dummy $ac_prog; ac_word=$2 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9626 $as_echo_n "checking for $ac_word... " >&6; } 9627 if ${ac_cv_path_TAR+:} false; then : 9628 $as_echo_n "(cached) " >&6 9629 else 9630 case $TAR in 9631 [\\/]* | ?:[\\/]*) 9632 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9633 ;; 9634 *) 9635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9636 for as_dir in $PATH 9637 do 9638 IFS=$as_save_IFS 9639 test -z "$as_dir" && as_dir=. 9640 for ac_exec_ext in '' $ac_executable_extensions; do 9641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9642 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9644 break 2 9645 fi 9646 done 9647 done 9648 IFS=$as_save_IFS 9649 9650 ;; 9651 esac 9652 fi 9653 TAR=$ac_cv_path_TAR 9654 if test -n "$TAR"; then 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9656 $as_echo "$TAR" >&6; } 9657 else 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9659 $as_echo "no" >&6; } 9660 fi 9661 9662 9663 test -n "$TAR" && break 9664 done 9665 9666 else 9667 # The variable is set, but is it from the command line or the environment? 9668 9669 # Try to remove the string !TAR! from our list. 9670 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9671 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9672 # If it failed, the variable was not from the command line. Ignore it, 9673 # but warn the user (except for BASH, which is always set by the calling BASH). 9674 if test "xTAR" != xBASH; then 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9676 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9677 fi 9678 # Try to locate tool using the code snippet 9679 for ac_prog in tar 9680 do 9681 # Extract the first word of "$ac_prog", so it can be a program name with args. 9682 set dummy $ac_prog; ac_word=$2 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9684 $as_echo_n "checking for $ac_word... " >&6; } 9685 if ${ac_cv_path_TAR+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687 else 9688 case $TAR in 9689 [\\/]* | ?:[\\/]*) 9690 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9691 ;; 9692 *) 9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9694 for as_dir in $PATH 9695 do 9696 IFS=$as_save_IFS 9697 test -z "$as_dir" && as_dir=. 9698 for ac_exec_ext in '' $ac_executable_extensions; do 9699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9700 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9702 break 2 9703 fi 9704 done 9705 done 9706 IFS=$as_save_IFS 9707 9708 ;; 9709 esac 9710 fi 9711 TAR=$ac_cv_path_TAR 9712 if test -n "$TAR"; then 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9714 $as_echo "$TAR" >&6; } 9715 else 9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9717 $as_echo "no" >&6; } 9718 fi 9719 9720 9721 test -n "$TAR" && break 9722 done 9723 9724 else 9725 # If it succeeded, then it was overridden by the user. We will use it 9726 # for the tool. 9727 9728 # First remove it from the list of overridden variables, so we can test 9729 # for unknown variables in the end. 9730 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9731 9732 # Check if the provided tool contains a complete path. 9733 tool_specified="$TAR" 9734 tool_basename="${tool_specified##*/}" 9735 if test "x$tool_basename" = "x$tool_specified"; then 9736 # A command without a complete path is provided, search $PATH. 9737 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9738 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9739 # Extract the first word of "$tool_basename", so it can be a program name with args. 9740 set dummy $tool_basename; ac_word=$2 9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9742 $as_echo_n "checking for $ac_word... " >&6; } 9743 if ${ac_cv_path_TAR+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745 else 9746 case $TAR in 9747 [\\/]* | ?:[\\/]*) 9748 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9749 ;; 9750 *) 9751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9752 for as_dir in $PATH 9753 do 9754 IFS=$as_save_IFS 9755 test -z "$as_dir" && as_dir=. 9756 for ac_exec_ext in '' $ac_executable_extensions; do 9757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9758 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9760 break 2 9761 fi 9762 done 9763 done 9764 IFS=$as_save_IFS 9765 9766 ;; 9767 esac 9768 fi 9769 TAR=$ac_cv_path_TAR 9770 if test -n "$TAR"; then 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9772 $as_echo "$TAR" >&6; } 9773 else 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9775 $as_echo "no" >&6; } 9776 fi 9777 9778 9779 if test "x$TAR" = x; then 9780 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9781 fi 9782 else 9783 # Otherwise we believe it is a complete path. Use it as it is. 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9785 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9787 $as_echo_n "checking for TAR... " >&6; } 9788 if test ! -x "$tool_specified"; then 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9790 $as_echo "not found" >&6; } 9791 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9792 fi 9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9794 $as_echo "$tool_specified" >&6; } 9795 fi 9796 fi 9797 fi 9798 9799 9800 9801 if test "x$TAR" = x; then 9802 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9803 fi 9804 9805 9806 9807 9808 9809 # Publish this variable in the help. 9810 9811 9812 if test "x$TEE" = x; then 9813 # The variable is not set by user, try to locate tool using the code snippet 9814 for ac_prog in tee 9815 do 9816 # Extract the first word of "$ac_prog", so it can be a program name with args. 9817 set dummy $ac_prog; ac_word=$2 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9819 $as_echo_n "checking for $ac_word... " >&6; } 9820 if ${ac_cv_path_TEE+:} false; then : 9821 $as_echo_n "(cached) " >&6 9822 else 9823 case $TEE in 9824 [\\/]* | ?:[\\/]*) 9825 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9826 ;; 9827 *) 9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9829 for as_dir in $PATH 9830 do 9831 IFS=$as_save_IFS 9832 test -z "$as_dir" && as_dir=. 9833 for ac_exec_ext in '' $ac_executable_extensions; do 9834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9835 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9837 break 2 9838 fi 9839 done 9840 done 9841 IFS=$as_save_IFS 9842 9843 ;; 9844 esac 9845 fi 9846 TEE=$ac_cv_path_TEE 9847 if test -n "$TEE"; then 9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9849 $as_echo "$TEE" >&6; } 9850 else 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9852 $as_echo "no" >&6; } 9853 fi 9854 9855 9856 test -n "$TEE" && break 9857 done 9858 9859 else 9860 # The variable is set, but is it from the command line or the environment? 9861 9862 # Try to remove the string !TEE! from our list. 9863 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9864 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9865 # If it failed, the variable was not from the command line. Ignore it, 9866 # but warn the user (except for BASH, which is always set by the calling BASH). 9867 if test "xTEE" != xBASH; then 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9869 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9870 fi 9871 # Try to locate tool using the code snippet 9872 for ac_prog in tee 9873 do 9874 # Extract the first word of "$ac_prog", so it can be a program name with args. 9875 set dummy $ac_prog; ac_word=$2 9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9877 $as_echo_n "checking for $ac_word... " >&6; } 9878 if ${ac_cv_path_TEE+:} false; then : 9879 $as_echo_n "(cached) " >&6 9880 else 9881 case $TEE in 9882 [\\/]* | ?:[\\/]*) 9883 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9884 ;; 9885 *) 9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9887 for as_dir in $PATH 9888 do 9889 IFS=$as_save_IFS 9890 test -z "$as_dir" && as_dir=. 9891 for ac_exec_ext in '' $ac_executable_extensions; do 9892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9893 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9895 break 2 9896 fi 9897 done 9898 done 9899 IFS=$as_save_IFS 9900 9901 ;; 9902 esac 9903 fi 9904 TEE=$ac_cv_path_TEE 9905 if test -n "$TEE"; then 9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9907 $as_echo "$TEE" >&6; } 9908 else 9909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9910 $as_echo "no" >&6; } 9911 fi 9912 9913 9914 test -n "$TEE" && break 9915 done 9916 9917 else 9918 # If it succeeded, then it was overridden by the user. We will use it 9919 # for the tool. 9920 9921 # First remove it from the list of overridden variables, so we can test 9922 # for unknown variables in the end. 9923 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9924 9925 # Check if the provided tool contains a complete path. 9926 tool_specified="$TEE" 9927 tool_basename="${tool_specified##*/}" 9928 if test "x$tool_basename" = "x$tool_specified"; then 9929 # A command without a complete path is provided, search $PATH. 9930 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9931 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9932 # Extract the first word of "$tool_basename", so it can be a program name with args. 9933 set dummy $tool_basename; ac_word=$2 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9935 $as_echo_n "checking for $ac_word... " >&6; } 9936 if ${ac_cv_path_TEE+:} false; then : 9937 $as_echo_n "(cached) " >&6 9938 else 9939 case $TEE in 9940 [\\/]* | ?:[\\/]*) 9941 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9942 ;; 9943 *) 9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9945 for as_dir in $PATH 9946 do 9947 IFS=$as_save_IFS 9948 test -z "$as_dir" && as_dir=. 9949 for ac_exec_ext in '' $ac_executable_extensions; do 9950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9951 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9953 break 2 9954 fi 9955 done 9956 done 9957 IFS=$as_save_IFS 9958 9959 ;; 9960 esac 9961 fi 9962 TEE=$ac_cv_path_TEE 9963 if test -n "$TEE"; then 9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9965 $as_echo "$TEE" >&6; } 9966 else 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9968 $as_echo "no" >&6; } 9969 fi 9970 9971 9972 if test "x$TEE" = x; then 9973 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9974 fi 9975 else 9976 # Otherwise we believe it is a complete path. Use it as it is. 9977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9978 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9980 $as_echo_n "checking for TEE... " >&6; } 9981 if test ! -x "$tool_specified"; then 9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9983 $as_echo "not found" >&6; } 9984 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9985 fi 9986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9987 $as_echo "$tool_specified" >&6; } 9988 fi 9989 fi 9990 fi 9991 9992 9993 9994 if test "x$TEE" = x; then 9995 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9996 fi 9997 9998 9999 10000 10001 10002 # Publish this variable in the help. 10003 10004 10005 if test "x$TOUCH" = x; then 10006 # The variable is not set by user, try to locate tool using the code snippet 10007 for ac_prog in touch 10008 do 10009 # Extract the first word of "$ac_prog", so it can be a program name with args. 10010 set dummy $ac_prog; ac_word=$2 10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10012 $as_echo_n "checking for $ac_word... " >&6; } 10013 if ${ac_cv_path_TOUCH+:} false; then : 10014 $as_echo_n "(cached) " >&6 10015 else 10016 case $TOUCH in 10017 [\\/]* | ?:[\\/]*) 10018 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10019 ;; 10020 *) 10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10022 for as_dir in $PATH 10023 do 10024 IFS=$as_save_IFS 10025 test -z "$as_dir" && as_dir=. 10026 for ac_exec_ext in '' $ac_executable_extensions; do 10027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10028 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10030 break 2 10031 fi 10032 done 10033 done 10034 IFS=$as_save_IFS 10035 10036 ;; 10037 esac 10038 fi 10039 TOUCH=$ac_cv_path_TOUCH 10040 if test -n "$TOUCH"; then 10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10042 $as_echo "$TOUCH" >&6; } 10043 else 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10045 $as_echo "no" >&6; } 10046 fi 10047 10048 10049 test -n "$TOUCH" && break 10050 done 10051 10052 else 10053 # The variable is set, but is it from the command line or the environment? 10054 10055 # Try to remove the string !TOUCH! from our list. 10056 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10057 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10058 # If it failed, the variable was not from the command line. Ignore it, 10059 # but warn the user (except for BASH, which is always set by the calling BASH). 10060 if test "xTOUCH" != xBASH; then 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10062 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10063 fi 10064 # Try to locate tool using the code snippet 10065 for ac_prog in touch 10066 do 10067 # Extract the first word of "$ac_prog", so it can be a program name with args. 10068 set dummy $ac_prog; ac_word=$2 10069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10070 $as_echo_n "checking for $ac_word... " >&6; } 10071 if ${ac_cv_path_TOUCH+:} false; then : 10072 $as_echo_n "(cached) " >&6 10073 else 10074 case $TOUCH in 10075 [\\/]* | ?:[\\/]*) 10076 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10077 ;; 10078 *) 10079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10080 for as_dir in $PATH 10081 do 10082 IFS=$as_save_IFS 10083 test -z "$as_dir" && as_dir=. 10084 for ac_exec_ext in '' $ac_executable_extensions; do 10085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10086 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10088 break 2 10089 fi 10090 done 10091 done 10092 IFS=$as_save_IFS 10093 10094 ;; 10095 esac 10096 fi 10097 TOUCH=$ac_cv_path_TOUCH 10098 if test -n "$TOUCH"; then 10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10100 $as_echo "$TOUCH" >&6; } 10101 else 10102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10103 $as_echo "no" >&6; } 10104 fi 10105 10106 10107 test -n "$TOUCH" && break 10108 done 10109 10110 else 10111 # If it succeeded, then it was overridden by the user. We will use it 10112 # for the tool. 10113 10114 # First remove it from the list of overridden variables, so we can test 10115 # for unknown variables in the end. 10116 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10117 10118 # Check if the provided tool contains a complete path. 10119 tool_specified="$TOUCH" 10120 tool_basename="${tool_specified##*/}" 10121 if test "x$tool_basename" = "x$tool_specified"; then 10122 # A command without a complete path is provided, search $PATH. 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10124 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10125 # Extract the first word of "$tool_basename", so it can be a program name with args. 10126 set dummy $tool_basename; ac_word=$2 10127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10128 $as_echo_n "checking for $ac_word... " >&6; } 10129 if ${ac_cv_path_TOUCH+:} false; then : 10130 $as_echo_n "(cached) " >&6 10131 else 10132 case $TOUCH in 10133 [\\/]* | ?:[\\/]*) 10134 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10135 ;; 10136 *) 10137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10138 for as_dir in $PATH 10139 do 10140 IFS=$as_save_IFS 10141 test -z "$as_dir" && as_dir=. 10142 for ac_exec_ext in '' $ac_executable_extensions; do 10143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10144 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10146 break 2 10147 fi 10148 done 10149 done 10150 IFS=$as_save_IFS 10151 10152 ;; 10153 esac 10154 fi 10155 TOUCH=$ac_cv_path_TOUCH 10156 if test -n "$TOUCH"; then 10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10158 $as_echo "$TOUCH" >&6; } 10159 else 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10161 $as_echo "no" >&6; } 10162 fi 10163 10164 10165 if test "x$TOUCH" = x; then 10166 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10167 fi 10168 else 10169 # Otherwise we believe it is a complete path. Use it as it is. 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10171 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10173 $as_echo_n "checking for TOUCH... " >&6; } 10174 if test ! -x "$tool_specified"; then 10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10176 $as_echo "not found" >&6; } 10177 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10178 fi 10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10180 $as_echo "$tool_specified" >&6; } 10181 fi 10182 fi 10183 fi 10184 10185 10186 10187 if test "x$TOUCH" = x; then 10188 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10189 fi 10190 10191 10192 10193 10194 10195 # Publish this variable in the help. 10196 10197 10198 if test "x$TR" = x; then 10199 # The variable is not set by user, try to locate tool using the code snippet 10200 for ac_prog in tr 10201 do 10202 # Extract the first word of "$ac_prog", so it can be a program name with args. 10203 set dummy $ac_prog; ac_word=$2 10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10205 $as_echo_n "checking for $ac_word... " >&6; } 10206 if ${ac_cv_path_TR+:} false; then : 10207 $as_echo_n "(cached) " >&6 10208 else 10209 case $TR in 10210 [\\/]* | ?:[\\/]*) 10211 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10212 ;; 10213 *) 10214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10215 for as_dir in $PATH 10216 do 10217 IFS=$as_save_IFS 10218 test -z "$as_dir" && as_dir=. 10219 for ac_exec_ext in '' $ac_executable_extensions; do 10220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10221 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10223 break 2 10224 fi 10225 done 10226 done 10227 IFS=$as_save_IFS 10228 10229 ;; 10230 esac 10231 fi 10232 TR=$ac_cv_path_TR 10233 if test -n "$TR"; then 10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10235 $as_echo "$TR" >&6; } 10236 else 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10238 $as_echo "no" >&6; } 10239 fi 10240 10241 10242 test -n "$TR" && break 10243 done 10244 10245 else 10246 # The variable is set, but is it from the command line or the environment? 10247 10248 # Try to remove the string !TR! from our list. 10249 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10250 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10251 # If it failed, the variable was not from the command line. Ignore it, 10252 # but warn the user (except for BASH, which is always set by the calling BASH). 10253 if test "xTR" != xBASH; then 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10255 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10256 fi 10257 # Try to locate tool using the code snippet 10258 for ac_prog in tr 10259 do 10260 # Extract the first word of "$ac_prog", so it can be a program name with args. 10261 set dummy $ac_prog; ac_word=$2 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10263 $as_echo_n "checking for $ac_word... " >&6; } 10264 if ${ac_cv_path_TR+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266 else 10267 case $TR in 10268 [\\/]* | ?:[\\/]*) 10269 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10270 ;; 10271 *) 10272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10273 for as_dir in $PATH 10274 do 10275 IFS=$as_save_IFS 10276 test -z "$as_dir" && as_dir=. 10277 for ac_exec_ext in '' $ac_executable_extensions; do 10278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10279 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10281 break 2 10282 fi 10283 done 10284 done 10285 IFS=$as_save_IFS 10286 10287 ;; 10288 esac 10289 fi 10290 TR=$ac_cv_path_TR 10291 if test -n "$TR"; then 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10293 $as_echo "$TR" >&6; } 10294 else 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10296 $as_echo "no" >&6; } 10297 fi 10298 10299 10300 test -n "$TR" && break 10301 done 10302 10303 else 10304 # If it succeeded, then it was overridden by the user. We will use it 10305 # for the tool. 10306 10307 # First remove it from the list of overridden variables, so we can test 10308 # for unknown variables in the end. 10309 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10310 10311 # Check if the provided tool contains a complete path. 10312 tool_specified="$TR" 10313 tool_basename="${tool_specified##*/}" 10314 if test "x$tool_basename" = "x$tool_specified"; then 10315 # A command without a complete path is provided, search $PATH. 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10317 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10318 # Extract the first word of "$tool_basename", so it can be a program name with args. 10319 set dummy $tool_basename; ac_word=$2 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10321 $as_echo_n "checking for $ac_word... " >&6; } 10322 if ${ac_cv_path_TR+:} false; then : 10323 $as_echo_n "(cached) " >&6 10324 else 10325 case $TR in 10326 [\\/]* | ?:[\\/]*) 10327 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10328 ;; 10329 *) 10330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10331 for as_dir in $PATH 10332 do 10333 IFS=$as_save_IFS 10334 test -z "$as_dir" && as_dir=. 10335 for ac_exec_ext in '' $ac_executable_extensions; do 10336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10337 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10339 break 2 10340 fi 10341 done 10342 done 10343 IFS=$as_save_IFS 10344 10345 ;; 10346 esac 10347 fi 10348 TR=$ac_cv_path_TR 10349 if test -n "$TR"; then 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10351 $as_echo "$TR" >&6; } 10352 else 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10354 $as_echo "no" >&6; } 10355 fi 10356 10357 10358 if test "x$TR" = x; then 10359 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10360 fi 10361 else 10362 # Otherwise we believe it is a complete path. Use it as it is. 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10364 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10366 $as_echo_n "checking for TR... " >&6; } 10367 if test ! -x "$tool_specified"; then 10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10369 $as_echo "not found" >&6; } 10370 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10371 fi 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10373 $as_echo "$tool_specified" >&6; } 10374 fi 10375 fi 10376 fi 10377 10378 10379 10380 if test "x$TR" = x; then 10381 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10382 fi 10383 10384 10385 10386 10387 10388 # Publish this variable in the help. 10389 10390 10391 if test "x$UNAME" = x; then 10392 # The variable is not set by user, try to locate tool using the code snippet 10393 for ac_prog in uname 10394 do 10395 # Extract the first word of "$ac_prog", so it can be a program name with args. 10396 set dummy $ac_prog; ac_word=$2 10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10398 $as_echo_n "checking for $ac_word... " >&6; } 10399 if ${ac_cv_path_UNAME+:} false; then : 10400 $as_echo_n "(cached) " >&6 10401 else 10402 case $UNAME in 10403 [\\/]* | ?:[\\/]*) 10404 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10405 ;; 10406 *) 10407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10408 for as_dir in $PATH 10409 do 10410 IFS=$as_save_IFS 10411 test -z "$as_dir" && as_dir=. 10412 for ac_exec_ext in '' $ac_executable_extensions; do 10413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10414 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10416 break 2 10417 fi 10418 done 10419 done 10420 IFS=$as_save_IFS 10421 10422 ;; 10423 esac 10424 fi 10425 UNAME=$ac_cv_path_UNAME 10426 if test -n "$UNAME"; then 10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10428 $as_echo "$UNAME" >&6; } 10429 else 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10431 $as_echo "no" >&6; } 10432 fi 10433 10434 10435 test -n "$UNAME" && break 10436 done 10437 10438 else 10439 # The variable is set, but is it from the command line or the environment? 10440 10441 # Try to remove the string !UNAME! from our list. 10442 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10443 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10444 # If it failed, the variable was not from the command line. Ignore it, 10445 # but warn the user (except for BASH, which is always set by the calling BASH). 10446 if test "xUNAME" != xBASH; then 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10448 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10449 fi 10450 # Try to locate tool using the code snippet 10451 for ac_prog in uname 10452 do 10453 # Extract the first word of "$ac_prog", so it can be a program name with args. 10454 set dummy $ac_prog; ac_word=$2 10455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10456 $as_echo_n "checking for $ac_word... " >&6; } 10457 if ${ac_cv_path_UNAME+:} false; then : 10458 $as_echo_n "(cached) " >&6 10459 else 10460 case $UNAME in 10461 [\\/]* | ?:[\\/]*) 10462 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10463 ;; 10464 *) 10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10466 for as_dir in $PATH 10467 do 10468 IFS=$as_save_IFS 10469 test -z "$as_dir" && as_dir=. 10470 for ac_exec_ext in '' $ac_executable_extensions; do 10471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10472 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10474 break 2 10475 fi 10476 done 10477 done 10478 IFS=$as_save_IFS 10479 10480 ;; 10481 esac 10482 fi 10483 UNAME=$ac_cv_path_UNAME 10484 if test -n "$UNAME"; then 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10486 $as_echo "$UNAME" >&6; } 10487 else 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10489 $as_echo "no" >&6; } 10490 fi 10491 10492 10493 test -n "$UNAME" && break 10494 done 10495 10496 else 10497 # If it succeeded, then it was overridden by the user. We will use it 10498 # for the tool. 10499 10500 # First remove it from the list of overridden variables, so we can test 10501 # for unknown variables in the end. 10502 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10503 10504 # Check if the provided tool contains a complete path. 10505 tool_specified="$UNAME" 10506 tool_basename="${tool_specified##*/}" 10507 if test "x$tool_basename" = "x$tool_specified"; then 10508 # A command without a complete path is provided, search $PATH. 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10510 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10511 # Extract the first word of "$tool_basename", so it can be a program name with args. 10512 set dummy $tool_basename; ac_word=$2 10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10514 $as_echo_n "checking for $ac_word... " >&6; } 10515 if ${ac_cv_path_UNAME+:} false; then : 10516 $as_echo_n "(cached) " >&6 10517 else 10518 case $UNAME in 10519 [\\/]* | ?:[\\/]*) 10520 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10521 ;; 10522 *) 10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10524 for as_dir in $PATH 10525 do 10526 IFS=$as_save_IFS 10527 test -z "$as_dir" && as_dir=. 10528 for ac_exec_ext in '' $ac_executable_extensions; do 10529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10530 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10532 break 2 10533 fi 10534 done 10535 done 10536 IFS=$as_save_IFS 10537 10538 ;; 10539 esac 10540 fi 10541 UNAME=$ac_cv_path_UNAME 10542 if test -n "$UNAME"; then 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10544 $as_echo "$UNAME" >&6; } 10545 else 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10547 $as_echo "no" >&6; } 10548 fi 10549 10550 10551 if test "x$UNAME" = x; then 10552 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10553 fi 10554 else 10555 # Otherwise we believe it is a complete path. Use it as it is. 10556 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10557 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10559 $as_echo_n "checking for UNAME... " >&6; } 10560 if test ! -x "$tool_specified"; then 10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10562 $as_echo "not found" >&6; } 10563 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10564 fi 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10566 $as_echo "$tool_specified" >&6; } 10567 fi 10568 fi 10569 fi 10570 10571 10572 10573 if test "x$UNAME" = x; then 10574 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10575 fi 10576 10577 10578 10579 10580 10581 # Publish this variable in the help. 10582 10583 10584 if test "x$UNIQ" = x; then 10585 # The variable is not set by user, try to locate tool using the code snippet 10586 for ac_prog in uniq 10587 do 10588 # Extract the first word of "$ac_prog", so it can be a program name with args. 10589 set dummy $ac_prog; ac_word=$2 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10591 $as_echo_n "checking for $ac_word... " >&6; } 10592 if ${ac_cv_path_UNIQ+:} false; then : 10593 $as_echo_n "(cached) " >&6 10594 else 10595 case $UNIQ in 10596 [\\/]* | ?:[\\/]*) 10597 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10598 ;; 10599 *) 10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10601 for as_dir in $PATH 10602 do 10603 IFS=$as_save_IFS 10604 test -z "$as_dir" && as_dir=. 10605 for ac_exec_ext in '' $ac_executable_extensions; do 10606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10607 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10609 break 2 10610 fi 10611 done 10612 done 10613 IFS=$as_save_IFS 10614 10615 ;; 10616 esac 10617 fi 10618 UNIQ=$ac_cv_path_UNIQ 10619 if test -n "$UNIQ"; then 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10621 $as_echo "$UNIQ" >&6; } 10622 else 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10624 $as_echo "no" >&6; } 10625 fi 10626 10627 10628 test -n "$UNIQ" && break 10629 done 10630 10631 else 10632 # The variable is set, but is it from the command line or the environment? 10633 10634 # Try to remove the string !UNIQ! from our list. 10635 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10636 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10637 # If it failed, the variable was not from the command line. Ignore it, 10638 # but warn the user (except for BASH, which is always set by the calling BASH). 10639 if test "xUNIQ" != xBASH; then 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10641 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10642 fi 10643 # Try to locate tool using the code snippet 10644 for ac_prog in uniq 10645 do 10646 # Extract the first word of "$ac_prog", so it can be a program name with args. 10647 set dummy $ac_prog; ac_word=$2 10648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10649 $as_echo_n "checking for $ac_word... " >&6; } 10650 if ${ac_cv_path_UNIQ+:} false; then : 10651 $as_echo_n "(cached) " >&6 10652 else 10653 case $UNIQ in 10654 [\\/]* | ?:[\\/]*) 10655 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10656 ;; 10657 *) 10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10659 for as_dir in $PATH 10660 do 10661 IFS=$as_save_IFS 10662 test -z "$as_dir" && as_dir=. 10663 for ac_exec_ext in '' $ac_executable_extensions; do 10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10665 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10667 break 2 10668 fi 10669 done 10670 done 10671 IFS=$as_save_IFS 10672 10673 ;; 10674 esac 10675 fi 10676 UNIQ=$ac_cv_path_UNIQ 10677 if test -n "$UNIQ"; then 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10679 $as_echo "$UNIQ" >&6; } 10680 else 10681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10682 $as_echo "no" >&6; } 10683 fi 10684 10685 10686 test -n "$UNIQ" && break 10687 done 10688 10689 else 10690 # If it succeeded, then it was overridden by the user. We will use it 10691 # for the tool. 10692 10693 # First remove it from the list of overridden variables, so we can test 10694 # for unknown variables in the end. 10695 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10696 10697 # Check if the provided tool contains a complete path. 10698 tool_specified="$UNIQ" 10699 tool_basename="${tool_specified##*/}" 10700 if test "x$tool_basename" = "x$tool_specified"; then 10701 # A command without a complete path is provided, search $PATH. 10702 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10703 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10704 # Extract the first word of "$tool_basename", so it can be a program name with args. 10705 set dummy $tool_basename; ac_word=$2 10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10707 $as_echo_n "checking for $ac_word... " >&6; } 10708 if ${ac_cv_path_UNIQ+:} false; then : 10709 $as_echo_n "(cached) " >&6 10710 else 10711 case $UNIQ in 10712 [\\/]* | ?:[\\/]*) 10713 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10714 ;; 10715 *) 10716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10717 for as_dir in $PATH 10718 do 10719 IFS=$as_save_IFS 10720 test -z "$as_dir" && as_dir=. 10721 for ac_exec_ext in '' $ac_executable_extensions; do 10722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10723 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10725 break 2 10726 fi 10727 done 10728 done 10729 IFS=$as_save_IFS 10730 10731 ;; 10732 esac 10733 fi 10734 UNIQ=$ac_cv_path_UNIQ 10735 if test -n "$UNIQ"; then 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10737 $as_echo "$UNIQ" >&6; } 10738 else 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10740 $as_echo "no" >&6; } 10741 fi 10742 10743 10744 if test "x$UNIQ" = x; then 10745 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10746 fi 10747 else 10748 # Otherwise we believe it is a complete path. Use it as it is. 10749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10750 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10752 $as_echo_n "checking for UNIQ... " >&6; } 10753 if test ! -x "$tool_specified"; then 10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10755 $as_echo "not found" >&6; } 10756 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10757 fi 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10759 $as_echo "$tool_specified" >&6; } 10760 fi 10761 fi 10762 fi 10763 10764 10765 10766 if test "x$UNIQ" = x; then 10767 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10768 fi 10769 10770 10771 10772 10773 10774 # Publish this variable in the help. 10775 10776 10777 if test "x$WC" = x; then 10778 # The variable is not set by user, try to locate tool using the code snippet 10779 for ac_prog in wc 10780 do 10781 # Extract the first word of "$ac_prog", so it can be a program name with args. 10782 set dummy $ac_prog; ac_word=$2 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10784 $as_echo_n "checking for $ac_word... " >&6; } 10785 if ${ac_cv_path_WC+:} false; then : 10786 $as_echo_n "(cached) " >&6 10787 else 10788 case $WC in 10789 [\\/]* | ?:[\\/]*) 10790 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10791 ;; 10792 *) 10793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10794 for as_dir in $PATH 10795 do 10796 IFS=$as_save_IFS 10797 test -z "$as_dir" && as_dir=. 10798 for ac_exec_ext in '' $ac_executable_extensions; do 10799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10800 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10802 break 2 10803 fi 10804 done 10805 done 10806 IFS=$as_save_IFS 10807 10808 ;; 10809 esac 10810 fi 10811 WC=$ac_cv_path_WC 10812 if test -n "$WC"; then 10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10814 $as_echo "$WC" >&6; } 10815 else 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10817 $as_echo "no" >&6; } 10818 fi 10819 10820 10821 test -n "$WC" && break 10822 done 10823 10824 else 10825 # The variable is set, but is it from the command line or the environment? 10826 10827 # Try to remove the string !WC! from our list. 10828 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10829 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10830 # If it failed, the variable was not from the command line. Ignore it, 10831 # but warn the user (except for BASH, which is always set by the calling BASH). 10832 if test "xWC" != xBASH; then 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10834 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10835 fi 10836 # Try to locate tool using the code snippet 10837 for ac_prog in wc 10838 do 10839 # Extract the first word of "$ac_prog", so it can be a program name with args. 10840 set dummy $ac_prog; ac_word=$2 10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10842 $as_echo_n "checking for $ac_word... " >&6; } 10843 if ${ac_cv_path_WC+:} false; then : 10844 $as_echo_n "(cached) " >&6 10845 else 10846 case $WC in 10847 [\\/]* | ?:[\\/]*) 10848 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10849 ;; 10850 *) 10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10852 for as_dir in $PATH 10853 do 10854 IFS=$as_save_IFS 10855 test -z "$as_dir" && as_dir=. 10856 for ac_exec_ext in '' $ac_executable_extensions; do 10857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10858 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10860 break 2 10861 fi 10862 done 10863 done 10864 IFS=$as_save_IFS 10865 10866 ;; 10867 esac 10868 fi 10869 WC=$ac_cv_path_WC 10870 if test -n "$WC"; then 10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10872 $as_echo "$WC" >&6; } 10873 else 10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10875 $as_echo "no" >&6; } 10876 fi 10877 10878 10879 test -n "$WC" && break 10880 done 10881 10882 else 10883 # If it succeeded, then it was overridden by the user. We will use it 10884 # for the tool. 10885 10886 # First remove it from the list of overridden variables, so we can test 10887 # for unknown variables in the end. 10888 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10889 10890 # Check if the provided tool contains a complete path. 10891 tool_specified="$WC" 10892 tool_basename="${tool_specified##*/}" 10893 if test "x$tool_basename" = "x$tool_specified"; then 10894 # A command without a complete path is provided, search $PATH. 10895 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10896 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10897 # Extract the first word of "$tool_basename", so it can be a program name with args. 10898 set dummy $tool_basename; ac_word=$2 10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10900 $as_echo_n "checking for $ac_word... " >&6; } 10901 if ${ac_cv_path_WC+:} false; then : 10902 $as_echo_n "(cached) " >&6 10903 else 10904 case $WC in 10905 [\\/]* | ?:[\\/]*) 10906 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10907 ;; 10908 *) 10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10910 for as_dir in $PATH 10911 do 10912 IFS=$as_save_IFS 10913 test -z "$as_dir" && as_dir=. 10914 for ac_exec_ext in '' $ac_executable_extensions; do 10915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10916 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10918 break 2 10919 fi 10920 done 10921 done 10922 IFS=$as_save_IFS 10923 10924 ;; 10925 esac 10926 fi 10927 WC=$ac_cv_path_WC 10928 if test -n "$WC"; then 10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10930 $as_echo "$WC" >&6; } 10931 else 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10933 $as_echo "no" >&6; } 10934 fi 10935 10936 10937 if test "x$WC" = x; then 10938 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10939 fi 10940 else 10941 # Otherwise we believe it is a complete path. Use it as it is. 10942 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10943 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10945 $as_echo_n "checking for WC... " >&6; } 10946 if test ! -x "$tool_specified"; then 10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10948 $as_echo "not found" >&6; } 10949 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10950 fi 10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10952 $as_echo "$tool_specified" >&6; } 10953 fi 10954 fi 10955 fi 10956 10957 10958 10959 if test "x$WC" = x; then 10960 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10961 fi 10962 10963 10964 10965 10966 10967 # Publish this variable in the help. 10968 10969 10970 if test "x$WHICH" = x; then 10971 # The variable is not set by user, try to locate tool using the code snippet 10972 for ac_prog in which 10973 do 10974 # Extract the first word of "$ac_prog", so it can be a program name with args. 10975 set dummy $ac_prog; ac_word=$2 10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10977 $as_echo_n "checking for $ac_word... " >&6; } 10978 if ${ac_cv_path_WHICH+:} false; then : 10979 $as_echo_n "(cached) " >&6 10980 else 10981 case $WHICH in 10982 [\\/]* | ?:[\\/]*) 10983 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10984 ;; 10985 *) 10986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10987 for as_dir in $PATH 10988 do 10989 IFS=$as_save_IFS 10990 test -z "$as_dir" && as_dir=. 10991 for ac_exec_ext in '' $ac_executable_extensions; do 10992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10993 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10995 break 2 10996 fi 10997 done 10998 done 10999 IFS=$as_save_IFS 11000 11001 ;; 11002 esac 11003 fi 11004 WHICH=$ac_cv_path_WHICH 11005 if test -n "$WHICH"; then 11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11007 $as_echo "$WHICH" >&6; } 11008 else 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11010 $as_echo "no" >&6; } 11011 fi 11012 11013 11014 test -n "$WHICH" && break 11015 done 11016 11017 else 11018 # The variable is set, but is it from the command line or the environment? 11019 11020 # Try to remove the string !WHICH! from our list. 11021 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11022 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11023 # If it failed, the variable was not from the command line. Ignore it, 11024 # but warn the user (except for BASH, which is always set by the calling BASH). 11025 if test "xWHICH" != xBASH; then 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11027 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11028 fi 11029 # Try to locate tool using the code snippet 11030 for ac_prog in which 11031 do 11032 # Extract the first word of "$ac_prog", so it can be a program name with args. 11033 set dummy $ac_prog; ac_word=$2 11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11035 $as_echo_n "checking for $ac_word... " >&6; } 11036 if ${ac_cv_path_WHICH+:} false; then : 11037 $as_echo_n "(cached) " >&6 11038 else 11039 case $WHICH in 11040 [\\/]* | ?:[\\/]*) 11041 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11042 ;; 11043 *) 11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11045 for as_dir in $PATH 11046 do 11047 IFS=$as_save_IFS 11048 test -z "$as_dir" && as_dir=. 11049 for ac_exec_ext in '' $ac_executable_extensions; do 11050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11051 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11053 break 2 11054 fi 11055 done 11056 done 11057 IFS=$as_save_IFS 11058 11059 ;; 11060 esac 11061 fi 11062 WHICH=$ac_cv_path_WHICH 11063 if test -n "$WHICH"; then 11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11065 $as_echo "$WHICH" >&6; } 11066 else 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11068 $as_echo "no" >&6; } 11069 fi 11070 11071 11072 test -n "$WHICH" && break 11073 done 11074 11075 else 11076 # If it succeeded, then it was overridden by the user. We will use it 11077 # for the tool. 11078 11079 # First remove it from the list of overridden variables, so we can test 11080 # for unknown variables in the end. 11081 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11082 11083 # Check if the provided tool contains a complete path. 11084 tool_specified="$WHICH" 11085 tool_basename="${tool_specified##*/}" 11086 if test "x$tool_basename" = "x$tool_specified"; then 11087 # A command without a complete path is provided, search $PATH. 11088 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11089 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11090 # Extract the first word of "$tool_basename", so it can be a program name with args. 11091 set dummy $tool_basename; ac_word=$2 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11093 $as_echo_n "checking for $ac_word... " >&6; } 11094 if ${ac_cv_path_WHICH+:} false; then : 11095 $as_echo_n "(cached) " >&6 11096 else 11097 case $WHICH in 11098 [\\/]* | ?:[\\/]*) 11099 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11100 ;; 11101 *) 11102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11103 for as_dir in $PATH 11104 do 11105 IFS=$as_save_IFS 11106 test -z "$as_dir" && as_dir=. 11107 for ac_exec_ext in '' $ac_executable_extensions; do 11108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11109 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11111 break 2 11112 fi 11113 done 11114 done 11115 IFS=$as_save_IFS 11116 11117 ;; 11118 esac 11119 fi 11120 WHICH=$ac_cv_path_WHICH 11121 if test -n "$WHICH"; then 11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11123 $as_echo "$WHICH" >&6; } 11124 else 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11126 $as_echo "no" >&6; } 11127 fi 11128 11129 11130 if test "x$WHICH" = x; then 11131 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11132 fi 11133 else 11134 # Otherwise we believe it is a complete path. Use it as it is. 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11136 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11138 $as_echo_n "checking for WHICH... " >&6; } 11139 if test ! -x "$tool_specified"; then 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11141 $as_echo "not found" >&6; } 11142 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11143 fi 11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11145 $as_echo "$tool_specified" >&6; } 11146 fi 11147 fi 11148 fi 11149 11150 11151 11152 if test "x$WHICH" = x; then 11153 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11154 fi 11155 11156 11157 11158 11159 11160 # Publish this variable in the help. 11161 11162 11163 if test "x$XARGS" = x; then 11164 # The variable is not set by user, try to locate tool using the code snippet 11165 for ac_prog in xargs 11166 do 11167 # Extract the first word of "$ac_prog", so it can be a program name with args. 11168 set dummy $ac_prog; ac_word=$2 11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11170 $as_echo_n "checking for $ac_word... " >&6; } 11171 if ${ac_cv_path_XARGS+:} false; then : 11172 $as_echo_n "(cached) " >&6 11173 else 11174 case $XARGS in 11175 [\\/]* | ?:[\\/]*) 11176 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11177 ;; 11178 *) 11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11180 for as_dir in $PATH 11181 do 11182 IFS=$as_save_IFS 11183 test -z "$as_dir" && as_dir=. 11184 for ac_exec_ext in '' $ac_executable_extensions; do 11185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11186 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11188 break 2 11189 fi 11190 done 11191 done 11192 IFS=$as_save_IFS 11193 11194 ;; 11195 esac 11196 fi 11197 XARGS=$ac_cv_path_XARGS 11198 if test -n "$XARGS"; then 11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11200 $as_echo "$XARGS" >&6; } 11201 else 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11203 $as_echo "no" >&6; } 11204 fi 11205 11206 11207 test -n "$XARGS" && break 11208 done 11209 11210 else 11211 # The variable is set, but is it from the command line or the environment? 11212 11213 # Try to remove the string !XARGS! from our list. 11214 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11215 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11216 # If it failed, the variable was not from the command line. Ignore it, 11217 # but warn the user (except for BASH, which is always set by the calling BASH). 11218 if test "xXARGS" != xBASH; then 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11220 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11221 fi 11222 # Try to locate tool using the code snippet 11223 for ac_prog in xargs 11224 do 11225 # Extract the first word of "$ac_prog", so it can be a program name with args. 11226 set dummy $ac_prog; ac_word=$2 11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11228 $as_echo_n "checking for $ac_word... " >&6; } 11229 if ${ac_cv_path_XARGS+:} false; then : 11230 $as_echo_n "(cached) " >&6 11231 else 11232 case $XARGS in 11233 [\\/]* | ?:[\\/]*) 11234 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11235 ;; 11236 *) 11237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11238 for as_dir in $PATH 11239 do 11240 IFS=$as_save_IFS 11241 test -z "$as_dir" && as_dir=. 11242 for ac_exec_ext in '' $ac_executable_extensions; do 11243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11244 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11246 break 2 11247 fi 11248 done 11249 done 11250 IFS=$as_save_IFS 11251 11252 ;; 11253 esac 11254 fi 11255 XARGS=$ac_cv_path_XARGS 11256 if test -n "$XARGS"; then 11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11258 $as_echo "$XARGS" >&6; } 11259 else 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11261 $as_echo "no" >&6; } 11262 fi 11263 11264 11265 test -n "$XARGS" && break 11266 done 11267 11268 else 11269 # If it succeeded, then it was overridden by the user. We will use it 11270 # for the tool. 11271 11272 # First remove it from the list of overridden variables, so we can test 11273 # for unknown variables in the end. 11274 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11275 11276 # Check if the provided tool contains a complete path. 11277 tool_specified="$XARGS" 11278 tool_basename="${tool_specified##*/}" 11279 if test "x$tool_basename" = "x$tool_specified"; then 11280 # A command without a complete path is provided, search $PATH. 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11282 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11283 # Extract the first word of "$tool_basename", so it can be a program name with args. 11284 set dummy $tool_basename; ac_word=$2 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11286 $as_echo_n "checking for $ac_word... " >&6; } 11287 if ${ac_cv_path_XARGS+:} false; then : 11288 $as_echo_n "(cached) " >&6 11289 else 11290 case $XARGS in 11291 [\\/]* | ?:[\\/]*) 11292 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11293 ;; 11294 *) 11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11296 for as_dir in $PATH 11297 do 11298 IFS=$as_save_IFS 11299 test -z "$as_dir" && as_dir=. 11300 for ac_exec_ext in '' $ac_executable_extensions; do 11301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11302 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11304 break 2 11305 fi 11306 done 11307 done 11308 IFS=$as_save_IFS 11309 11310 ;; 11311 esac 11312 fi 11313 XARGS=$ac_cv_path_XARGS 11314 if test -n "$XARGS"; then 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11316 $as_echo "$XARGS" >&6; } 11317 else 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11319 $as_echo "no" >&6; } 11320 fi 11321 11322 11323 if test "x$XARGS" = x; then 11324 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11325 fi 11326 else 11327 # Otherwise we believe it is a complete path. Use it as it is. 11328 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11329 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11331 $as_echo_n "checking for XARGS... " >&6; } 11332 if test ! -x "$tool_specified"; then 11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11334 $as_echo "not found" >&6; } 11335 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11336 fi 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11338 $as_echo "$tool_specified" >&6; } 11339 fi 11340 fi 11341 fi 11342 11343 11344 11345 if test "x$XARGS" = x; then 11346 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11347 fi 11348 11349 11350 11351 # Then required tools that require some special treatment. 11352 11353 11354 # Publish this variable in the help. 11355 11356 11357 if test "x$AWK" = x; then 11358 # The variable is not set by user, try to locate tool using the code snippet 11359 for ac_prog in gawk mawk nawk awk 11360 do 11361 # Extract the first word of "$ac_prog", so it can be a program name with args. 11362 set dummy $ac_prog; ac_word=$2 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11364 $as_echo_n "checking for $ac_word... " >&6; } 11365 if ${ac_cv_prog_AWK+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367 else 11368 if test -n "$AWK"; then 11369 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11370 else 11371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11372 for as_dir in $PATH 11373 do 11374 IFS=$as_save_IFS 11375 test -z "$as_dir" && as_dir=. 11376 for ac_exec_ext in '' $ac_executable_extensions; do 11377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11378 ac_cv_prog_AWK="$ac_prog" 11379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11380 break 2 11381 fi 11382 done 11383 done 11384 IFS=$as_save_IFS 11385 11386 fi 11387 fi 11388 AWK=$ac_cv_prog_AWK 11389 if test -n "$AWK"; then 11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11391 $as_echo "$AWK" >&6; } 11392 else 11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11394 $as_echo "no" >&6; } 11395 fi 11396 11397 11398 test -n "$AWK" && break 11399 done 11400 11401 else 11402 # The variable is set, but is it from the command line or the environment? 11403 11404 # Try to remove the string !AWK! from our list. 11405 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11406 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11407 # If it failed, the variable was not from the command line. Ignore it, 11408 # but warn the user (except for BASH, which is always set by the calling BASH). 11409 if test "xAWK" != xBASH; then 11410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11411 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11412 fi 11413 # Try to locate tool using the code snippet 11414 for ac_prog in gawk mawk nawk awk 11415 do 11416 # Extract the first word of "$ac_prog", so it can be a program name with args. 11417 set dummy $ac_prog; ac_word=$2 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11419 $as_echo_n "checking for $ac_word... " >&6; } 11420 if ${ac_cv_prog_AWK+:} false; then : 11421 $as_echo_n "(cached) " >&6 11422 else 11423 if test -n "$AWK"; then 11424 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11425 else 11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11427 for as_dir in $PATH 11428 do 11429 IFS=$as_save_IFS 11430 test -z "$as_dir" && as_dir=. 11431 for ac_exec_ext in '' $ac_executable_extensions; do 11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11433 ac_cv_prog_AWK="$ac_prog" 11434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11435 break 2 11436 fi 11437 done 11438 done 11439 IFS=$as_save_IFS 11440 11441 fi 11442 fi 11443 AWK=$ac_cv_prog_AWK 11444 if test -n "$AWK"; then 11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11446 $as_echo "$AWK" >&6; } 11447 else 11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11449 $as_echo "no" >&6; } 11450 fi 11451 11452 11453 test -n "$AWK" && break 11454 done 11455 11456 else 11457 # If it succeeded, then it was overridden by the user. We will use it 11458 # for the tool. 11459 11460 # First remove it from the list of overridden variables, so we can test 11461 # for unknown variables in the end. 11462 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11463 11464 # Check if the provided tool contains a complete path. 11465 tool_specified="$AWK" 11466 tool_basename="${tool_specified##*/}" 11467 if test "x$tool_basename" = "x$tool_specified"; then 11468 # A command without a complete path is provided, search $PATH. 11469 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11470 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11471 # Extract the first word of "$tool_basename", so it can be a program name with args. 11472 set dummy $tool_basename; ac_word=$2 11473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11474 $as_echo_n "checking for $ac_word... " >&6; } 11475 if ${ac_cv_path_AWK+:} false; then : 11476 $as_echo_n "(cached) " >&6 11477 else 11478 case $AWK in 11479 [\\/]* | ?:[\\/]*) 11480 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11481 ;; 11482 *) 11483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11484 for as_dir in $PATH 11485 do 11486 IFS=$as_save_IFS 11487 test -z "$as_dir" && as_dir=. 11488 for ac_exec_ext in '' $ac_executable_extensions; do 11489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11490 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11492 break 2 11493 fi 11494 done 11495 done 11496 IFS=$as_save_IFS 11497 11498 ;; 11499 esac 11500 fi 11501 AWK=$ac_cv_path_AWK 11502 if test -n "$AWK"; then 11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11504 $as_echo "$AWK" >&6; } 11505 else 11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11507 $as_echo "no" >&6; } 11508 fi 11509 11510 11511 if test "x$AWK" = x; then 11512 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11513 fi 11514 else 11515 # Otherwise we believe it is a complete path. Use it as it is. 11516 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11517 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11519 $as_echo_n "checking for AWK... " >&6; } 11520 if test ! -x "$tool_specified"; then 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11522 $as_echo "not found" >&6; } 11523 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11524 fi 11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11526 $as_echo "$tool_specified" >&6; } 11527 fi 11528 fi 11529 fi 11530 11531 11532 if test "x$AWK" = x; then 11533 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11534 fi 11535 11536 11537 11538 11539 # Publish this variable in the help. 11540 11541 11542 if test "x$GREP" = x; then 11543 # The variable is not set by user, try to locate tool using the code snippet 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11545 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11546 if ${ac_cv_path_GREP+:} false; then : 11547 $as_echo_n "(cached) " >&6 11548 else 11549 if test -z "$GREP"; then 11550 ac_path_GREP_found=false 11551 # Loop through the user's path and test for each of PROGNAME-LIST 11552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11553 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11554 do 11555 IFS=$as_save_IFS 11556 test -z "$as_dir" && as_dir=. 11557 for ac_prog in grep ggrep; do 11558 for ac_exec_ext in '' $ac_executable_extensions; do 11559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11560 as_fn_executable_p "$ac_path_GREP" || continue 11561 # Check for GNU ac_path_GREP and select it if it is found. 11562 # Check for GNU $ac_path_GREP 11563 case `"$ac_path_GREP" --version 2>&1` in 11564 *GNU*) 11565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11566 *) 11567 ac_count=0 11568 $as_echo_n 0123456789 >"conftest.in" 11569 while : 11570 do 11571 cat "conftest.in" "conftest.in" >"conftest.tmp" 11572 mv "conftest.tmp" "conftest.in" 11573 cp "conftest.in" "conftest.nl" 11574 $as_echo 'GREP' >> "conftest.nl" 11575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11577 as_fn_arith $ac_count + 1 && ac_count=$as_val 11578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11579 # Best one so far, save it but keep looking for a better one 11580 ac_cv_path_GREP="$ac_path_GREP" 11581 ac_path_GREP_max=$ac_count 11582 fi 11583 # 10*(2^10) chars as input seems more than enough 11584 test $ac_count -gt 10 && break 11585 done 11586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11587 esac 11588 11589 $ac_path_GREP_found && break 3 11590 done 11591 done 11592 done 11593 IFS=$as_save_IFS 11594 if test -z "$ac_cv_path_GREP"; then 11595 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11596 fi 11597 else 11598 ac_cv_path_GREP=$GREP 11599 fi 11600 11601 fi 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11603 $as_echo "$ac_cv_path_GREP" >&6; } 11604 GREP="$ac_cv_path_GREP" 11605 11606 11607 else 11608 # The variable is set, but is it from the command line or the environment? 11609 11610 # Try to remove the string !GREP! from our list. 11611 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11612 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11613 # If it failed, the variable was not from the command line. Ignore it, 11614 # but warn the user (except for BASH, which is always set by the calling BASH). 11615 if test "xGREP" != xBASH; then 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11617 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11618 fi 11619 # Try to locate tool using the code snippet 11620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11621 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11622 if ${ac_cv_path_GREP+:} false; then : 11623 $as_echo_n "(cached) " >&6 11624 else 11625 if test -z "$GREP"; then 11626 ac_path_GREP_found=false 11627 # Loop through the user's path and test for each of PROGNAME-LIST 11628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11629 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11630 do 11631 IFS=$as_save_IFS 11632 test -z "$as_dir" && as_dir=. 11633 for ac_prog in grep ggrep; do 11634 for ac_exec_ext in '' $ac_executable_extensions; do 11635 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11636 as_fn_executable_p "$ac_path_GREP" || continue 11637 # Check for GNU ac_path_GREP and select it if it is found. 11638 # Check for GNU $ac_path_GREP 11639 case `"$ac_path_GREP" --version 2>&1` in 11640 *GNU*) 11641 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11642 *) 11643 ac_count=0 11644 $as_echo_n 0123456789 >"conftest.in" 11645 while : 11646 do 11647 cat "conftest.in" "conftest.in" >"conftest.tmp" 11648 mv "conftest.tmp" "conftest.in" 11649 cp "conftest.in" "conftest.nl" 11650 $as_echo 'GREP' >> "conftest.nl" 11651 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11652 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11653 as_fn_arith $ac_count + 1 && ac_count=$as_val 11654 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11655 # Best one so far, save it but keep looking for a better one 11656 ac_cv_path_GREP="$ac_path_GREP" 11657 ac_path_GREP_max=$ac_count 11658 fi 11659 # 10*(2^10) chars as input seems more than enough 11660 test $ac_count -gt 10 && break 11661 done 11662 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11663 esac 11664 11665 $ac_path_GREP_found && break 3 11666 done 11667 done 11668 done 11669 IFS=$as_save_IFS 11670 if test -z "$ac_cv_path_GREP"; then 11671 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11672 fi 11673 else 11674 ac_cv_path_GREP=$GREP 11675 fi 11676 11677 fi 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11679 $as_echo "$ac_cv_path_GREP" >&6; } 11680 GREP="$ac_cv_path_GREP" 11681 11682 11683 else 11684 # If it succeeded, then it was overridden by the user. We will use it 11685 # for the tool. 11686 11687 # First remove it from the list of overridden variables, so we can test 11688 # for unknown variables in the end. 11689 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11690 11691 # Check if the provided tool contains a complete path. 11692 tool_specified="$GREP" 11693 tool_basename="${tool_specified##*/}" 11694 if test "x$tool_basename" = "x$tool_specified"; then 11695 # A command without a complete path is provided, search $PATH. 11696 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11697 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11698 # Extract the first word of "$tool_basename", so it can be a program name with args. 11699 set dummy $tool_basename; ac_word=$2 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11701 $as_echo_n "checking for $ac_word... " >&6; } 11702 if ${ac_cv_path_GREP+:} false; then : 11703 $as_echo_n "(cached) " >&6 11704 else 11705 case $GREP in 11706 [\\/]* | ?:[\\/]*) 11707 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11708 ;; 11709 *) 11710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11711 for as_dir in $PATH 11712 do 11713 IFS=$as_save_IFS 11714 test -z "$as_dir" && as_dir=. 11715 for ac_exec_ext in '' $ac_executable_extensions; do 11716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11717 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11719 break 2 11720 fi 11721 done 11722 done 11723 IFS=$as_save_IFS 11724 11725 ;; 11726 esac 11727 fi 11728 GREP=$ac_cv_path_GREP 11729 if test -n "$GREP"; then 11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11731 $as_echo "$GREP" >&6; } 11732 else 11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11734 $as_echo "no" >&6; } 11735 fi 11736 11737 11738 if test "x$GREP" = x; then 11739 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11740 fi 11741 else 11742 # Otherwise we believe it is a complete path. Use it as it is. 11743 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11744 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11746 $as_echo_n "checking for GREP... " >&6; } 11747 if test ! -x "$tool_specified"; then 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11749 $as_echo "not found" >&6; } 11750 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11751 fi 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11753 $as_echo "$tool_specified" >&6; } 11754 fi 11755 fi 11756 fi 11757 11758 11759 if test "x$GREP" = x; then 11760 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11761 fi 11762 11763 11764 11765 11766 # Publish this variable in the help. 11767 11768 11769 if test "x$EGREP" = x; then 11770 # The variable is not set by user, try to locate tool using the code snippet 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11772 $as_echo_n "checking for egrep... " >&6; } 11773 if ${ac_cv_path_EGREP+:} false; then : 11774 $as_echo_n "(cached) " >&6 11775 else 11776 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11777 then ac_cv_path_EGREP="$GREP -E" 11778 else 11779 if test -z "$EGREP"; then 11780 ac_path_EGREP_found=false 11781 # Loop through the user's path and test for each of PROGNAME-LIST 11782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11784 do 11785 IFS=$as_save_IFS 11786 test -z "$as_dir" && as_dir=. 11787 for ac_prog in egrep; do 11788 for ac_exec_ext in '' $ac_executable_extensions; do 11789 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11790 as_fn_executable_p "$ac_path_EGREP" || continue 11791 # Check for GNU ac_path_EGREP and select it if it is found. 11792 # Check for GNU $ac_path_EGREP 11793 case `"$ac_path_EGREP" --version 2>&1` in 11794 *GNU*) 11795 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11796 *) 11797 ac_count=0 11798 $as_echo_n 0123456789 >"conftest.in" 11799 while : 11800 do 11801 cat "conftest.in" "conftest.in" >"conftest.tmp" 11802 mv "conftest.tmp" "conftest.in" 11803 cp "conftest.in" "conftest.nl" 11804 $as_echo 'EGREP' >> "conftest.nl" 11805 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11807 as_fn_arith $ac_count + 1 && ac_count=$as_val 11808 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11809 # Best one so far, save it but keep looking for a better one 11810 ac_cv_path_EGREP="$ac_path_EGREP" 11811 ac_path_EGREP_max=$ac_count 11812 fi 11813 # 10*(2^10) chars as input seems more than enough 11814 test $ac_count -gt 10 && break 11815 done 11816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11817 esac 11818 11819 $ac_path_EGREP_found && break 3 11820 done 11821 done 11822 done 11823 IFS=$as_save_IFS 11824 if test -z "$ac_cv_path_EGREP"; then 11825 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11826 fi 11827 else 11828 ac_cv_path_EGREP=$EGREP 11829 fi 11830 11831 fi 11832 fi 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11834 $as_echo "$ac_cv_path_EGREP" >&6; } 11835 EGREP="$ac_cv_path_EGREP" 11836 11837 11838 else 11839 # The variable is set, but is it from the command line or the environment? 11840 11841 # Try to remove the string !EGREP! from our list. 11842 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11843 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11844 # If it failed, the variable was not from the command line. Ignore it, 11845 # but warn the user (except for BASH, which is always set by the calling BASH). 11846 if test "xEGREP" != xBASH; then 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11848 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11849 fi 11850 # Try to locate tool using the code snippet 11851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11852 $as_echo_n "checking for egrep... " >&6; } 11853 if ${ac_cv_path_EGREP+:} false; then : 11854 $as_echo_n "(cached) " >&6 11855 else 11856 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11857 then ac_cv_path_EGREP="$GREP -E" 11858 else 11859 if test -z "$EGREP"; then 11860 ac_path_EGREP_found=false 11861 # Loop through the user's path and test for each of PROGNAME-LIST 11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11864 do 11865 IFS=$as_save_IFS 11866 test -z "$as_dir" && as_dir=. 11867 for ac_prog in egrep; do 11868 for ac_exec_ext in '' $ac_executable_extensions; do 11869 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11870 as_fn_executable_p "$ac_path_EGREP" || continue 11871 # Check for GNU ac_path_EGREP and select it if it is found. 11872 # Check for GNU $ac_path_EGREP 11873 case `"$ac_path_EGREP" --version 2>&1` in 11874 *GNU*) 11875 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11876 *) 11877 ac_count=0 11878 $as_echo_n 0123456789 >"conftest.in" 11879 while : 11880 do 11881 cat "conftest.in" "conftest.in" >"conftest.tmp" 11882 mv "conftest.tmp" "conftest.in" 11883 cp "conftest.in" "conftest.nl" 11884 $as_echo 'EGREP' >> "conftest.nl" 11885 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11887 as_fn_arith $ac_count + 1 && ac_count=$as_val 11888 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11889 # Best one so far, save it but keep looking for a better one 11890 ac_cv_path_EGREP="$ac_path_EGREP" 11891 ac_path_EGREP_max=$ac_count 11892 fi 11893 # 10*(2^10) chars as input seems more than enough 11894 test $ac_count -gt 10 && break 11895 done 11896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11897 esac 11898 11899 $ac_path_EGREP_found && break 3 11900 done 11901 done 11902 done 11903 IFS=$as_save_IFS 11904 if test -z "$ac_cv_path_EGREP"; then 11905 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11906 fi 11907 else 11908 ac_cv_path_EGREP=$EGREP 11909 fi 11910 11911 fi 11912 fi 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11914 $as_echo "$ac_cv_path_EGREP" >&6; } 11915 EGREP="$ac_cv_path_EGREP" 11916 11917 11918 else 11919 # If it succeeded, then it was overridden by the user. We will use it 11920 # for the tool. 11921 11922 # First remove it from the list of overridden variables, so we can test 11923 # for unknown variables in the end. 11924 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11925 11926 # Check if the provided tool contains a complete path. 11927 tool_specified="$EGREP" 11928 tool_basename="${tool_specified##*/}" 11929 if test "x$tool_basename" = "x$tool_specified"; then 11930 # A command without a complete path is provided, search $PATH. 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11932 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11933 # Extract the first word of "$tool_basename", so it can be a program name with args. 11934 set dummy $tool_basename; ac_word=$2 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11936 $as_echo_n "checking for $ac_word... " >&6; } 11937 if ${ac_cv_path_EGREP+:} false; then : 11938 $as_echo_n "(cached) " >&6 11939 else 11940 case $EGREP in 11941 [\\/]* | ?:[\\/]*) 11942 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11943 ;; 11944 *) 11945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11946 for as_dir in $PATH 11947 do 11948 IFS=$as_save_IFS 11949 test -z "$as_dir" && as_dir=. 11950 for ac_exec_ext in '' $ac_executable_extensions; do 11951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11952 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11954 break 2 11955 fi 11956 done 11957 done 11958 IFS=$as_save_IFS 11959 11960 ;; 11961 esac 11962 fi 11963 EGREP=$ac_cv_path_EGREP 11964 if test -n "$EGREP"; then 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11966 $as_echo "$EGREP" >&6; } 11967 else 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11969 $as_echo "no" >&6; } 11970 fi 11971 11972 11973 if test "x$EGREP" = x; then 11974 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11975 fi 11976 else 11977 # Otherwise we believe it is a complete path. Use it as it is. 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11979 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11981 $as_echo_n "checking for EGREP... " >&6; } 11982 if test ! -x "$tool_specified"; then 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11984 $as_echo "not found" >&6; } 11985 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11986 fi 11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11988 $as_echo "$tool_specified" >&6; } 11989 fi 11990 fi 11991 fi 11992 11993 11994 if test "x$EGREP" = x; then 11995 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11996 fi 11997 11998 11999 12000 12001 # Publish this variable in the help. 12002 12003 12004 if test "x$FGREP" = x; then 12005 # The variable is not set by user, try to locate tool using the code snippet 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12007 $as_echo_n "checking for fgrep... " >&6; } 12008 if ${ac_cv_path_FGREP+:} false; then : 12009 $as_echo_n "(cached) " >&6 12010 else 12011 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12012 then ac_cv_path_FGREP="$GREP -F" 12013 else 12014 if test -z "$FGREP"; then 12015 ac_path_FGREP_found=false 12016 # Loop through the user's path and test for each of PROGNAME-LIST 12017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12018 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12019 do 12020 IFS=$as_save_IFS 12021 test -z "$as_dir" && as_dir=. 12022 for ac_prog in fgrep; do 12023 for ac_exec_ext in '' $ac_executable_extensions; do 12024 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12025 as_fn_executable_p "$ac_path_FGREP" || continue 12026 # Check for GNU ac_path_FGREP and select it if it is found. 12027 # Check for GNU $ac_path_FGREP 12028 case `"$ac_path_FGREP" --version 2>&1` in 12029 *GNU*) 12030 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12031 *) 12032 ac_count=0 12033 $as_echo_n 0123456789 >"conftest.in" 12034 while : 12035 do 12036 cat "conftest.in" "conftest.in" >"conftest.tmp" 12037 mv "conftest.tmp" "conftest.in" 12038 cp "conftest.in" "conftest.nl" 12039 $as_echo 'FGREP' >> "conftest.nl" 12040 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12041 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12042 as_fn_arith $ac_count + 1 && ac_count=$as_val 12043 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12044 # Best one so far, save it but keep looking for a better one 12045 ac_cv_path_FGREP="$ac_path_FGREP" 12046 ac_path_FGREP_max=$ac_count 12047 fi 12048 # 10*(2^10) chars as input seems more than enough 12049 test $ac_count -gt 10 && break 12050 done 12051 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12052 esac 12053 12054 $ac_path_FGREP_found && break 3 12055 done 12056 done 12057 done 12058 IFS=$as_save_IFS 12059 if test -z "$ac_cv_path_FGREP"; then 12060 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12061 fi 12062 else 12063 ac_cv_path_FGREP=$FGREP 12064 fi 12065 12066 fi 12067 fi 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12069 $as_echo "$ac_cv_path_FGREP" >&6; } 12070 FGREP="$ac_cv_path_FGREP" 12071 12072 12073 else 12074 # The variable is set, but is it from the command line or the environment? 12075 12076 # Try to remove the string !FGREP! from our list. 12077 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12078 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12079 # If it failed, the variable was not from the command line. Ignore it, 12080 # but warn the user (except for BASH, which is always set by the calling BASH). 12081 if test "xFGREP" != xBASH; then 12082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12083 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12084 fi 12085 # Try to locate tool using the code snippet 12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12087 $as_echo_n "checking for fgrep... " >&6; } 12088 if ${ac_cv_path_FGREP+:} false; then : 12089 $as_echo_n "(cached) " >&6 12090 else 12091 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12092 then ac_cv_path_FGREP="$GREP -F" 12093 else 12094 if test -z "$FGREP"; then 12095 ac_path_FGREP_found=false 12096 # Loop through the user's path and test for each of PROGNAME-LIST 12097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12098 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12099 do 12100 IFS=$as_save_IFS 12101 test -z "$as_dir" && as_dir=. 12102 for ac_prog in fgrep; do 12103 for ac_exec_ext in '' $ac_executable_extensions; do 12104 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12105 as_fn_executable_p "$ac_path_FGREP" || continue 12106 # Check for GNU ac_path_FGREP and select it if it is found. 12107 # Check for GNU $ac_path_FGREP 12108 case `"$ac_path_FGREP" --version 2>&1` in 12109 *GNU*) 12110 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12111 *) 12112 ac_count=0 12113 $as_echo_n 0123456789 >"conftest.in" 12114 while : 12115 do 12116 cat "conftest.in" "conftest.in" >"conftest.tmp" 12117 mv "conftest.tmp" "conftest.in" 12118 cp "conftest.in" "conftest.nl" 12119 $as_echo 'FGREP' >> "conftest.nl" 12120 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12121 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12122 as_fn_arith $ac_count + 1 && ac_count=$as_val 12123 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12124 # Best one so far, save it but keep looking for a better one 12125 ac_cv_path_FGREP="$ac_path_FGREP" 12126 ac_path_FGREP_max=$ac_count 12127 fi 12128 # 10*(2^10) chars as input seems more than enough 12129 test $ac_count -gt 10 && break 12130 done 12131 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12132 esac 12133 12134 $ac_path_FGREP_found && break 3 12135 done 12136 done 12137 done 12138 IFS=$as_save_IFS 12139 if test -z "$ac_cv_path_FGREP"; then 12140 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12141 fi 12142 else 12143 ac_cv_path_FGREP=$FGREP 12144 fi 12145 12146 fi 12147 fi 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12149 $as_echo "$ac_cv_path_FGREP" >&6; } 12150 FGREP="$ac_cv_path_FGREP" 12151 12152 12153 else 12154 # If it succeeded, then it was overridden by the user. We will use it 12155 # for the tool. 12156 12157 # First remove it from the list of overridden variables, so we can test 12158 # for unknown variables in the end. 12159 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12160 12161 # Check if the provided tool contains a complete path. 12162 tool_specified="$FGREP" 12163 tool_basename="${tool_specified##*/}" 12164 if test "x$tool_basename" = "x$tool_specified"; then 12165 # A command without a complete path is provided, search $PATH. 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12167 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12168 # Extract the first word of "$tool_basename", so it can be a program name with args. 12169 set dummy $tool_basename; ac_word=$2 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12171 $as_echo_n "checking for $ac_word... " >&6; } 12172 if ${ac_cv_path_FGREP+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174 else 12175 case $FGREP in 12176 [\\/]* | ?:[\\/]*) 12177 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12178 ;; 12179 *) 12180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12181 for as_dir in $PATH 12182 do 12183 IFS=$as_save_IFS 12184 test -z "$as_dir" && as_dir=. 12185 for ac_exec_ext in '' $ac_executable_extensions; do 12186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12187 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12189 break 2 12190 fi 12191 done 12192 done 12193 IFS=$as_save_IFS 12194 12195 ;; 12196 esac 12197 fi 12198 FGREP=$ac_cv_path_FGREP 12199 if test -n "$FGREP"; then 12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12201 $as_echo "$FGREP" >&6; } 12202 else 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12204 $as_echo "no" >&6; } 12205 fi 12206 12207 12208 if test "x$FGREP" = x; then 12209 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12210 fi 12211 else 12212 # Otherwise we believe it is a complete path. Use it as it is. 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12214 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12216 $as_echo_n "checking for FGREP... " >&6; } 12217 if test ! -x "$tool_specified"; then 12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12219 $as_echo "not found" >&6; } 12220 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12221 fi 12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12223 $as_echo "$tool_specified" >&6; } 12224 fi 12225 fi 12226 fi 12227 12228 12229 if test "x$FGREP" = x; then 12230 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12231 fi 12232 12233 12234 12235 12236 # Publish this variable in the help. 12237 12238 12239 if test "x$SED" = x; then 12240 # The variable is not set by user, try to locate tool using the code snippet 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12242 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12243 if ${ac_cv_path_SED+:} false; then : 12244 $as_echo_n "(cached) " >&6 12245 else 12246 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12247 for ac_i in 1 2 3 4 5 6 7; do 12248 ac_script="$ac_script$as_nl$ac_script" 12249 done 12250 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12251 { ac_script=; unset ac_script;} 12252 if test -z "$SED"; then 12253 ac_path_SED_found=false 12254 # Loop through the user's path and test for each of PROGNAME-LIST 12255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12256 for as_dir in $PATH 12257 do 12258 IFS=$as_save_IFS 12259 test -z "$as_dir" && as_dir=. 12260 for ac_prog in sed gsed; do 12261 for ac_exec_ext in '' $ac_executable_extensions; do 12262 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12263 as_fn_executable_p "$ac_path_SED" || continue 12264 # Check for GNU ac_path_SED and select it if it is found. 12265 # Check for GNU $ac_path_SED 12266 case `"$ac_path_SED" --version 2>&1` in 12267 *GNU*) 12268 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12269 *) 12270 ac_count=0 12271 $as_echo_n 0123456789 >"conftest.in" 12272 while : 12273 do 12274 cat "conftest.in" "conftest.in" >"conftest.tmp" 12275 mv "conftest.tmp" "conftest.in" 12276 cp "conftest.in" "conftest.nl" 12277 $as_echo '' >> "conftest.nl" 12278 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12279 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12280 as_fn_arith $ac_count + 1 && ac_count=$as_val 12281 if test $ac_count -gt ${ac_path_SED_max-0}; then 12282 # Best one so far, save it but keep looking for a better one 12283 ac_cv_path_SED="$ac_path_SED" 12284 ac_path_SED_max=$ac_count 12285 fi 12286 # 10*(2^10) chars as input seems more than enough 12287 test $ac_count -gt 10 && break 12288 done 12289 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12290 esac 12291 12292 $ac_path_SED_found && break 3 12293 done 12294 done 12295 done 12296 IFS=$as_save_IFS 12297 if test -z "$ac_cv_path_SED"; then 12298 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12299 fi 12300 else 12301 ac_cv_path_SED=$SED 12302 fi 12303 12304 fi 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12306 $as_echo "$ac_cv_path_SED" >&6; } 12307 SED="$ac_cv_path_SED" 12308 rm -f conftest.sed 12309 12310 else 12311 # The variable is set, but is it from the command line or the environment? 12312 12313 # Try to remove the string !SED! from our list. 12314 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12315 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12316 # If it failed, the variable was not from the command line. Ignore it, 12317 # but warn the user (except for BASH, which is always set by the calling BASH). 12318 if test "xSED" != xBASH; then 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12320 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12321 fi 12322 # Try to locate tool using the code snippet 12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12324 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12325 if ${ac_cv_path_SED+:} false; then : 12326 $as_echo_n "(cached) " >&6 12327 else 12328 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12329 for ac_i in 1 2 3 4 5 6 7; do 12330 ac_script="$ac_script$as_nl$ac_script" 12331 done 12332 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12333 { ac_script=; unset ac_script;} 12334 if test -z "$SED"; then 12335 ac_path_SED_found=false 12336 # Loop through the user's path and test for each of PROGNAME-LIST 12337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12338 for as_dir in $PATH 12339 do 12340 IFS=$as_save_IFS 12341 test -z "$as_dir" && as_dir=. 12342 for ac_prog in sed gsed; do 12343 for ac_exec_ext in '' $ac_executable_extensions; do 12344 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12345 as_fn_executable_p "$ac_path_SED" || continue 12346 # Check for GNU ac_path_SED and select it if it is found. 12347 # Check for GNU $ac_path_SED 12348 case `"$ac_path_SED" --version 2>&1` in 12349 *GNU*) 12350 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12351 *) 12352 ac_count=0 12353 $as_echo_n 0123456789 >"conftest.in" 12354 while : 12355 do 12356 cat "conftest.in" "conftest.in" >"conftest.tmp" 12357 mv "conftest.tmp" "conftest.in" 12358 cp "conftest.in" "conftest.nl" 12359 $as_echo '' >> "conftest.nl" 12360 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12361 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12362 as_fn_arith $ac_count + 1 && ac_count=$as_val 12363 if test $ac_count -gt ${ac_path_SED_max-0}; then 12364 # Best one so far, save it but keep looking for a better one 12365 ac_cv_path_SED="$ac_path_SED" 12366 ac_path_SED_max=$ac_count 12367 fi 12368 # 10*(2^10) chars as input seems more than enough 12369 test $ac_count -gt 10 && break 12370 done 12371 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12372 esac 12373 12374 $ac_path_SED_found && break 3 12375 done 12376 done 12377 done 12378 IFS=$as_save_IFS 12379 if test -z "$ac_cv_path_SED"; then 12380 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12381 fi 12382 else 12383 ac_cv_path_SED=$SED 12384 fi 12385 12386 fi 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12388 $as_echo "$ac_cv_path_SED" >&6; } 12389 SED="$ac_cv_path_SED" 12390 rm -f conftest.sed 12391 12392 else 12393 # If it succeeded, then it was overridden by the user. We will use it 12394 # for the tool. 12395 12396 # First remove it from the list of overridden variables, so we can test 12397 # for unknown variables in the end. 12398 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12399 12400 # Check if the provided tool contains a complete path. 12401 tool_specified="$SED" 12402 tool_basename="${tool_specified##*/}" 12403 if test "x$tool_basename" = "x$tool_specified"; then 12404 # A command without a complete path is provided, search $PATH. 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12406 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12407 # Extract the first word of "$tool_basename", so it can be a program name with args. 12408 set dummy $tool_basename; ac_word=$2 12409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12410 $as_echo_n "checking for $ac_word... " >&6; } 12411 if ${ac_cv_path_SED+:} false; then : 12412 $as_echo_n "(cached) " >&6 12413 else 12414 case $SED in 12415 [\\/]* | ?:[\\/]*) 12416 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12417 ;; 12418 *) 12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12420 for as_dir in $PATH 12421 do 12422 IFS=$as_save_IFS 12423 test -z "$as_dir" && as_dir=. 12424 for ac_exec_ext in '' $ac_executable_extensions; do 12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12426 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12428 break 2 12429 fi 12430 done 12431 done 12432 IFS=$as_save_IFS 12433 12434 ;; 12435 esac 12436 fi 12437 SED=$ac_cv_path_SED 12438 if test -n "$SED"; then 12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12440 $as_echo "$SED" >&6; } 12441 else 12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12443 $as_echo "no" >&6; } 12444 fi 12445 12446 12447 if test "x$SED" = x; then 12448 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12449 fi 12450 else 12451 # Otherwise we believe it is a complete path. Use it as it is. 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12453 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12455 $as_echo_n "checking for SED... " >&6; } 12456 if test ! -x "$tool_specified"; then 12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12458 $as_echo "not found" >&6; } 12459 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12460 fi 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12462 $as_echo "$tool_specified" >&6; } 12463 fi 12464 fi 12465 fi 12466 12467 12468 if test "x$SED" = x; then 12469 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12470 fi 12471 12472 12473 12474 # Always force rm. 12475 RM="$RM -f" 12476 12477 # pwd behaves differently on various platforms and some don't support the -L flag. 12478 # Always use the bash builtin pwd to get uniform behavior. 12479 THEPWDCMD=pwd 12480 12481 # These are not required on all platforms 12482 12483 12484 # Publish this variable in the help. 12485 12486 12487 if test "x$CYGPATH" = x; then 12488 # The variable is not set by user, try to locate tool using the code snippet 12489 for ac_prog in cygpath 12490 do 12491 # Extract the first word of "$ac_prog", so it can be a program name with args. 12492 set dummy $ac_prog; ac_word=$2 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12494 $as_echo_n "checking for $ac_word... " >&6; } 12495 if ${ac_cv_path_CYGPATH+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497 else 12498 case $CYGPATH in 12499 [\\/]* | ?:[\\/]*) 12500 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12501 ;; 12502 *) 12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12504 for as_dir in $PATH 12505 do 12506 IFS=$as_save_IFS 12507 test -z "$as_dir" && as_dir=. 12508 for ac_exec_ext in '' $ac_executable_extensions; do 12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12510 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12512 break 2 12513 fi 12514 done 12515 done 12516 IFS=$as_save_IFS 12517 12518 ;; 12519 esac 12520 fi 12521 CYGPATH=$ac_cv_path_CYGPATH 12522 if test -n "$CYGPATH"; then 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12524 $as_echo "$CYGPATH" >&6; } 12525 else 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12527 $as_echo "no" >&6; } 12528 fi 12529 12530 12531 test -n "$CYGPATH" && break 12532 done 12533 12534 else 12535 # The variable is set, but is it from the command line or the environment? 12536 12537 # Try to remove the string !CYGPATH! from our list. 12538 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12539 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12540 # If it failed, the variable was not from the command line. Ignore it, 12541 # but warn the user (except for BASH, which is always set by the calling BASH). 12542 if test "xCYGPATH" != xBASH; then 12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12544 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12545 fi 12546 # Try to locate tool using the code snippet 12547 for ac_prog in cygpath 12548 do 12549 # Extract the first word of "$ac_prog", so it can be a program name with args. 12550 set dummy $ac_prog; ac_word=$2 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12552 $as_echo_n "checking for $ac_word... " >&6; } 12553 if ${ac_cv_path_CYGPATH+:} false; then : 12554 $as_echo_n "(cached) " >&6 12555 else 12556 case $CYGPATH in 12557 [\\/]* | ?:[\\/]*) 12558 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12559 ;; 12560 *) 12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12562 for as_dir in $PATH 12563 do 12564 IFS=$as_save_IFS 12565 test -z "$as_dir" && as_dir=. 12566 for ac_exec_ext in '' $ac_executable_extensions; do 12567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12568 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12570 break 2 12571 fi 12572 done 12573 done 12574 IFS=$as_save_IFS 12575 12576 ;; 12577 esac 12578 fi 12579 CYGPATH=$ac_cv_path_CYGPATH 12580 if test -n "$CYGPATH"; then 12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12582 $as_echo "$CYGPATH" >&6; } 12583 else 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12585 $as_echo "no" >&6; } 12586 fi 12587 12588 12589 test -n "$CYGPATH" && break 12590 done 12591 12592 else 12593 # If it succeeded, then it was overridden by the user. We will use it 12594 # for the tool. 12595 12596 # First remove it from the list of overridden variables, so we can test 12597 # for unknown variables in the end. 12598 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12599 12600 # Check if the provided tool contains a complete path. 12601 tool_specified="$CYGPATH" 12602 tool_basename="${tool_specified##*/}" 12603 if test "x$tool_basename" = "x$tool_specified"; then 12604 # A command without a complete path is provided, search $PATH. 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12606 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12607 # Extract the first word of "$tool_basename", so it can be a program name with args. 12608 set dummy $tool_basename; ac_word=$2 12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12610 $as_echo_n "checking for $ac_word... " >&6; } 12611 if ${ac_cv_path_CYGPATH+:} false; then : 12612 $as_echo_n "(cached) " >&6 12613 else 12614 case $CYGPATH in 12615 [\\/]* | ?:[\\/]*) 12616 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12617 ;; 12618 *) 12619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12620 for as_dir in $PATH 12621 do 12622 IFS=$as_save_IFS 12623 test -z "$as_dir" && as_dir=. 12624 for ac_exec_ext in '' $ac_executable_extensions; do 12625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12626 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12628 break 2 12629 fi 12630 done 12631 done 12632 IFS=$as_save_IFS 12633 12634 ;; 12635 esac 12636 fi 12637 CYGPATH=$ac_cv_path_CYGPATH 12638 if test -n "$CYGPATH"; then 12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12640 $as_echo "$CYGPATH" >&6; } 12641 else 12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12643 $as_echo "no" >&6; } 12644 fi 12645 12646 12647 if test "x$CYGPATH" = x; then 12648 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12649 fi 12650 else 12651 # Otherwise we believe it is a complete path. Use it as it is. 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12653 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12655 $as_echo_n "checking for CYGPATH... " >&6; } 12656 if test ! -x "$tool_specified"; then 12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12658 $as_echo "not found" >&6; } 12659 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12660 fi 12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12662 $as_echo "$tool_specified" >&6; } 12663 fi 12664 fi 12665 fi 12666 12667 12668 12669 12670 # Publish this variable in the help. 12671 12672 12673 if test "x$READLINK" = x; then 12674 # The variable is not set by user, try to locate tool using the code snippet 12675 for ac_prog in greadlink readlink 12676 do 12677 # Extract the first word of "$ac_prog", so it can be a program name with args. 12678 set dummy $ac_prog; ac_word=$2 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12680 $as_echo_n "checking for $ac_word... " >&6; } 12681 if ${ac_cv_path_READLINK+:} false; then : 12682 $as_echo_n "(cached) " >&6 12683 else 12684 case $READLINK in 12685 [\\/]* | ?:[\\/]*) 12686 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12687 ;; 12688 *) 12689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12690 for as_dir in $PATH 12691 do 12692 IFS=$as_save_IFS 12693 test -z "$as_dir" && as_dir=. 12694 for ac_exec_ext in '' $ac_executable_extensions; do 12695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12696 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12698 break 2 12699 fi 12700 done 12701 done 12702 IFS=$as_save_IFS 12703 12704 ;; 12705 esac 12706 fi 12707 READLINK=$ac_cv_path_READLINK 12708 if test -n "$READLINK"; then 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12710 $as_echo "$READLINK" >&6; } 12711 else 12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12713 $as_echo "no" >&6; } 12714 fi 12715 12716 12717 test -n "$READLINK" && break 12718 done 12719 12720 else 12721 # The variable is set, but is it from the command line or the environment? 12722 12723 # Try to remove the string !READLINK! from our list. 12724 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12725 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12726 # If it failed, the variable was not from the command line. Ignore it, 12727 # but warn the user (except for BASH, which is always set by the calling BASH). 12728 if test "xREADLINK" != xBASH; then 12729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12730 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12731 fi 12732 # Try to locate tool using the code snippet 12733 for ac_prog in greadlink readlink 12734 do 12735 # Extract the first word of "$ac_prog", so it can be a program name with args. 12736 set dummy $ac_prog; ac_word=$2 12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12738 $as_echo_n "checking for $ac_word... " >&6; } 12739 if ${ac_cv_path_READLINK+:} false; then : 12740 $as_echo_n "(cached) " >&6 12741 else 12742 case $READLINK in 12743 [\\/]* | ?:[\\/]*) 12744 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12745 ;; 12746 *) 12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12748 for as_dir in $PATH 12749 do 12750 IFS=$as_save_IFS 12751 test -z "$as_dir" && as_dir=. 12752 for ac_exec_ext in '' $ac_executable_extensions; do 12753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12754 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12756 break 2 12757 fi 12758 done 12759 done 12760 IFS=$as_save_IFS 12761 12762 ;; 12763 esac 12764 fi 12765 READLINK=$ac_cv_path_READLINK 12766 if test -n "$READLINK"; then 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12768 $as_echo "$READLINK" >&6; } 12769 else 12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12771 $as_echo "no" >&6; } 12772 fi 12773 12774 12775 test -n "$READLINK" && break 12776 done 12777 12778 else 12779 # If it succeeded, then it was overridden by the user. We will use it 12780 # for the tool. 12781 12782 # First remove it from the list of overridden variables, so we can test 12783 # for unknown variables in the end. 12784 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12785 12786 # Check if the provided tool contains a complete path. 12787 tool_specified="$READLINK" 12788 tool_basename="${tool_specified##*/}" 12789 if test "x$tool_basename" = "x$tool_specified"; then 12790 # A command without a complete path is provided, search $PATH. 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12792 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12793 # Extract the first word of "$tool_basename", so it can be a program name with args. 12794 set dummy $tool_basename; ac_word=$2 12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12796 $as_echo_n "checking for $ac_word... " >&6; } 12797 if ${ac_cv_path_READLINK+:} false; then : 12798 $as_echo_n "(cached) " >&6 12799 else 12800 case $READLINK in 12801 [\\/]* | ?:[\\/]*) 12802 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12803 ;; 12804 *) 12805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12806 for as_dir in $PATH 12807 do 12808 IFS=$as_save_IFS 12809 test -z "$as_dir" && as_dir=. 12810 for ac_exec_ext in '' $ac_executable_extensions; do 12811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12812 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12814 break 2 12815 fi 12816 done 12817 done 12818 IFS=$as_save_IFS 12819 12820 ;; 12821 esac 12822 fi 12823 READLINK=$ac_cv_path_READLINK 12824 if test -n "$READLINK"; then 12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12826 $as_echo "$READLINK" >&6; } 12827 else 12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12829 $as_echo "no" >&6; } 12830 fi 12831 12832 12833 if test "x$READLINK" = x; then 12834 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12835 fi 12836 else 12837 # Otherwise we believe it is a complete path. Use it as it is. 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12839 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12841 $as_echo_n "checking for READLINK... " >&6; } 12842 if test ! -x "$tool_specified"; then 12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12844 $as_echo "not found" >&6; } 12845 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12846 fi 12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12848 $as_echo "$tool_specified" >&6; } 12849 fi 12850 fi 12851 fi 12852 12853 12854 12855 12856 # Publish this variable in the help. 12857 12858 12859 if test "x$DF" = x; then 12860 # The variable is not set by user, try to locate tool using the code snippet 12861 for ac_prog in df 12862 do 12863 # Extract the first word of "$ac_prog", so it can be a program name with args. 12864 set dummy $ac_prog; ac_word=$2 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12866 $as_echo_n "checking for $ac_word... " >&6; } 12867 if ${ac_cv_path_DF+:} false; then : 12868 $as_echo_n "(cached) " >&6 12869 else 12870 case $DF in 12871 [\\/]* | ?:[\\/]*) 12872 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12873 ;; 12874 *) 12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12876 for as_dir in $PATH 12877 do 12878 IFS=$as_save_IFS 12879 test -z "$as_dir" && as_dir=. 12880 for ac_exec_ext in '' $ac_executable_extensions; do 12881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12882 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12884 break 2 12885 fi 12886 done 12887 done 12888 IFS=$as_save_IFS 12889 12890 ;; 12891 esac 12892 fi 12893 DF=$ac_cv_path_DF 12894 if test -n "$DF"; then 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12896 $as_echo "$DF" >&6; } 12897 else 12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12899 $as_echo "no" >&6; } 12900 fi 12901 12902 12903 test -n "$DF" && break 12904 done 12905 12906 else 12907 # The variable is set, but is it from the command line or the environment? 12908 12909 # Try to remove the string !DF! from our list. 12910 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12911 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12912 # If it failed, the variable was not from the command line. Ignore it, 12913 # but warn the user (except for BASH, which is always set by the calling BASH). 12914 if test "xDF" != xBASH; then 12915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12916 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12917 fi 12918 # Try to locate tool using the code snippet 12919 for ac_prog in df 12920 do 12921 # Extract the first word of "$ac_prog", so it can be a program name with args. 12922 set dummy $ac_prog; ac_word=$2 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12924 $as_echo_n "checking for $ac_word... " >&6; } 12925 if ${ac_cv_path_DF+:} false; then : 12926 $as_echo_n "(cached) " >&6 12927 else 12928 case $DF in 12929 [\\/]* | ?:[\\/]*) 12930 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12931 ;; 12932 *) 12933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12934 for as_dir in $PATH 12935 do 12936 IFS=$as_save_IFS 12937 test -z "$as_dir" && as_dir=. 12938 for ac_exec_ext in '' $ac_executable_extensions; do 12939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12940 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12942 break 2 12943 fi 12944 done 12945 done 12946 IFS=$as_save_IFS 12947 12948 ;; 12949 esac 12950 fi 12951 DF=$ac_cv_path_DF 12952 if test -n "$DF"; then 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12954 $as_echo "$DF" >&6; } 12955 else 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12957 $as_echo "no" >&6; } 12958 fi 12959 12960 12961 test -n "$DF" && break 12962 done 12963 12964 else 12965 # If it succeeded, then it was overridden by the user. We will use it 12966 # for the tool. 12967 12968 # First remove it from the list of overridden variables, so we can test 12969 # for unknown variables in the end. 12970 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12971 12972 # Check if the provided tool contains a complete path. 12973 tool_specified="$DF" 12974 tool_basename="${tool_specified##*/}" 12975 if test "x$tool_basename" = "x$tool_specified"; then 12976 # A command without a complete path is provided, search $PATH. 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12978 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12979 # Extract the first word of "$tool_basename", so it can be a program name with args. 12980 set dummy $tool_basename; ac_word=$2 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12982 $as_echo_n "checking for $ac_word... " >&6; } 12983 if ${ac_cv_path_DF+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985 else 12986 case $DF in 12987 [\\/]* | ?:[\\/]*) 12988 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12989 ;; 12990 *) 12991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12992 for as_dir in $PATH 12993 do 12994 IFS=$as_save_IFS 12995 test -z "$as_dir" && as_dir=. 12996 for ac_exec_ext in '' $ac_executable_extensions; do 12997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12998 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13000 break 2 13001 fi 13002 done 13003 done 13004 IFS=$as_save_IFS 13005 13006 ;; 13007 esac 13008 fi 13009 DF=$ac_cv_path_DF 13010 if test -n "$DF"; then 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13012 $as_echo "$DF" >&6; } 13013 else 13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13015 $as_echo "no" >&6; } 13016 fi 13017 13018 13019 if test "x$DF" = x; then 13020 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13021 fi 13022 else 13023 # Otherwise we believe it is a complete path. Use it as it is. 13024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13025 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13027 $as_echo_n "checking for DF... " >&6; } 13028 if test ! -x "$tool_specified"; then 13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13030 $as_echo "not found" >&6; } 13031 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13032 fi 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13034 $as_echo "$tool_specified" >&6; } 13035 fi 13036 fi 13037 fi 13038 13039 13040 13041 13042 # Publish this variable in the help. 13043 13044 13045 if test "x$SETFILE" = x; then 13046 # The variable is not set by user, try to locate tool using the code snippet 13047 for ac_prog in SetFile 13048 do 13049 # Extract the first word of "$ac_prog", so it can be a program name with args. 13050 set dummy $ac_prog; ac_word=$2 13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13052 $as_echo_n "checking for $ac_word... " >&6; } 13053 if ${ac_cv_path_SETFILE+:} false; then : 13054 $as_echo_n "(cached) " >&6 13055 else 13056 case $SETFILE in 13057 [\\/]* | ?:[\\/]*) 13058 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13059 ;; 13060 *) 13061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13062 for as_dir in $PATH 13063 do 13064 IFS=$as_save_IFS 13065 test -z "$as_dir" && as_dir=. 13066 for ac_exec_ext in '' $ac_executable_extensions; do 13067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13068 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13070 break 2 13071 fi 13072 done 13073 done 13074 IFS=$as_save_IFS 13075 13076 ;; 13077 esac 13078 fi 13079 SETFILE=$ac_cv_path_SETFILE 13080 if test -n "$SETFILE"; then 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13082 $as_echo "$SETFILE" >&6; } 13083 else 13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13085 $as_echo "no" >&6; } 13086 fi 13087 13088 13089 test -n "$SETFILE" && break 13090 done 13091 13092 else 13093 # The variable is set, but is it from the command line or the environment? 13094 13095 # Try to remove the string !SETFILE! from our list. 13096 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13097 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13098 # If it failed, the variable was not from the command line. Ignore it, 13099 # but warn the user (except for BASH, which is always set by the calling BASH). 13100 if test "xSETFILE" != xBASH; then 13101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13102 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13103 fi 13104 # Try to locate tool using the code snippet 13105 for ac_prog in SetFile 13106 do 13107 # Extract the first word of "$ac_prog", so it can be a program name with args. 13108 set dummy $ac_prog; ac_word=$2 13109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13110 $as_echo_n "checking for $ac_word... " >&6; } 13111 if ${ac_cv_path_SETFILE+:} false; then : 13112 $as_echo_n "(cached) " >&6 13113 else 13114 case $SETFILE in 13115 [\\/]* | ?:[\\/]*) 13116 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13117 ;; 13118 *) 13119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13120 for as_dir in $PATH 13121 do 13122 IFS=$as_save_IFS 13123 test -z "$as_dir" && as_dir=. 13124 for ac_exec_ext in '' $ac_executable_extensions; do 13125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13126 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13128 break 2 13129 fi 13130 done 13131 done 13132 IFS=$as_save_IFS 13133 13134 ;; 13135 esac 13136 fi 13137 SETFILE=$ac_cv_path_SETFILE 13138 if test -n "$SETFILE"; then 13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13140 $as_echo "$SETFILE" >&6; } 13141 else 13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13143 $as_echo "no" >&6; } 13144 fi 13145 13146 13147 test -n "$SETFILE" && break 13148 done 13149 13150 else 13151 # If it succeeded, then it was overridden by the user. We will use it 13152 # for the tool. 13153 13154 # First remove it from the list of overridden variables, so we can test 13155 # for unknown variables in the end. 13156 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13157 13158 # Check if the provided tool contains a complete path. 13159 tool_specified="$SETFILE" 13160 tool_basename="${tool_specified##*/}" 13161 if test "x$tool_basename" = "x$tool_specified"; then 13162 # A command without a complete path is provided, search $PATH. 13163 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13164 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13165 # Extract the first word of "$tool_basename", so it can be a program name with args. 13166 set dummy $tool_basename; ac_word=$2 13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13168 $as_echo_n "checking for $ac_word... " >&6; } 13169 if ${ac_cv_path_SETFILE+:} false; then : 13170 $as_echo_n "(cached) " >&6 13171 else 13172 case $SETFILE in 13173 [\\/]* | ?:[\\/]*) 13174 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13175 ;; 13176 *) 13177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13178 for as_dir in $PATH 13179 do 13180 IFS=$as_save_IFS 13181 test -z "$as_dir" && as_dir=. 13182 for ac_exec_ext in '' $ac_executable_extensions; do 13183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13184 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13186 break 2 13187 fi 13188 done 13189 done 13190 IFS=$as_save_IFS 13191 13192 ;; 13193 esac 13194 fi 13195 SETFILE=$ac_cv_path_SETFILE 13196 if test -n "$SETFILE"; then 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13198 $as_echo "$SETFILE" >&6; } 13199 else 13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13201 $as_echo "no" >&6; } 13202 fi 13203 13204 13205 if test "x$SETFILE" = x; then 13206 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13207 fi 13208 else 13209 # Otherwise we believe it is a complete path. Use it as it is. 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13211 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13213 $as_echo_n "checking for SETFILE... " >&6; } 13214 if test ! -x "$tool_specified"; then 13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13216 $as_echo "not found" >&6; } 13217 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13218 fi 13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13220 $as_echo "$tool_specified" >&6; } 13221 fi 13222 fi 13223 fi 13224 13225 13226 13227 13228 # Publish this variable in the help. 13229 13230 13231 if test "x$CPIO" = x; then 13232 # The variable is not set by user, try to locate tool using the code snippet 13233 for ac_prog in cpio bsdcpio 13234 do 13235 # Extract the first word of "$ac_prog", so it can be a program name with args. 13236 set dummy $ac_prog; ac_word=$2 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13238 $as_echo_n "checking for $ac_word... " >&6; } 13239 if ${ac_cv_path_CPIO+:} false; then : 13240 $as_echo_n "(cached) " >&6 13241 else 13242 case $CPIO in 13243 [\\/]* | ?:[\\/]*) 13244 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13245 ;; 13246 *) 13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13248 for as_dir in $PATH 13249 do 13250 IFS=$as_save_IFS 13251 test -z "$as_dir" && as_dir=. 13252 for ac_exec_ext in '' $ac_executable_extensions; do 13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13254 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13256 break 2 13257 fi 13258 done 13259 done 13260 IFS=$as_save_IFS 13261 13262 ;; 13263 esac 13264 fi 13265 CPIO=$ac_cv_path_CPIO 13266 if test -n "$CPIO"; then 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13268 $as_echo "$CPIO" >&6; } 13269 else 13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13271 $as_echo "no" >&6; } 13272 fi 13273 13274 13275 test -n "$CPIO" && break 13276 done 13277 13278 else 13279 # The variable is set, but is it from the command line or the environment? 13280 13281 # Try to remove the string !CPIO! from our list. 13282 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13283 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13284 # If it failed, the variable was not from the command line. Ignore it, 13285 # but warn the user (except for BASH, which is always set by the calling BASH). 13286 if test "xCPIO" != xBASH; then 13287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13288 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13289 fi 13290 # Try to locate tool using the code snippet 13291 for ac_prog in cpio bsdcpio 13292 do 13293 # Extract the first word of "$ac_prog", so it can be a program name with args. 13294 set dummy $ac_prog; ac_word=$2 13295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13296 $as_echo_n "checking for $ac_word... " >&6; } 13297 if ${ac_cv_path_CPIO+:} false; then : 13298 $as_echo_n "(cached) " >&6 13299 else 13300 case $CPIO in 13301 [\\/]* | ?:[\\/]*) 13302 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13303 ;; 13304 *) 13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13306 for as_dir in $PATH 13307 do 13308 IFS=$as_save_IFS 13309 test -z "$as_dir" && as_dir=. 13310 for ac_exec_ext in '' $ac_executable_extensions; do 13311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13312 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13314 break 2 13315 fi 13316 done 13317 done 13318 IFS=$as_save_IFS 13319 13320 ;; 13321 esac 13322 fi 13323 CPIO=$ac_cv_path_CPIO 13324 if test -n "$CPIO"; then 13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13326 $as_echo "$CPIO" >&6; } 13327 else 13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13329 $as_echo "no" >&6; } 13330 fi 13331 13332 13333 test -n "$CPIO" && break 13334 done 13335 13336 else 13337 # If it succeeded, then it was overridden by the user. We will use it 13338 # for the tool. 13339 13340 # First remove it from the list of overridden variables, so we can test 13341 # for unknown variables in the end. 13342 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13343 13344 # Check if the provided tool contains a complete path. 13345 tool_specified="$CPIO" 13346 tool_basename="${tool_specified##*/}" 13347 if test "x$tool_basename" = "x$tool_specified"; then 13348 # A command without a complete path is provided, search $PATH. 13349 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13350 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13351 # Extract the first word of "$tool_basename", so it can be a program name with args. 13352 set dummy $tool_basename; ac_word=$2 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13354 $as_echo_n "checking for $ac_word... " >&6; } 13355 if ${ac_cv_path_CPIO+:} false; then : 13356 $as_echo_n "(cached) " >&6 13357 else 13358 case $CPIO in 13359 [\\/]* | ?:[\\/]*) 13360 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13361 ;; 13362 *) 13363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13364 for as_dir in $PATH 13365 do 13366 IFS=$as_save_IFS 13367 test -z "$as_dir" && as_dir=. 13368 for ac_exec_ext in '' $ac_executable_extensions; do 13369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13370 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13372 break 2 13373 fi 13374 done 13375 done 13376 IFS=$as_save_IFS 13377 13378 ;; 13379 esac 13380 fi 13381 CPIO=$ac_cv_path_CPIO 13382 if test -n "$CPIO"; then 13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13384 $as_echo "$CPIO" >&6; } 13385 else 13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13387 $as_echo "no" >&6; } 13388 fi 13389 13390 13391 if test "x$CPIO" = x; then 13392 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13393 fi 13394 else 13395 # Otherwise we believe it is a complete path. Use it as it is. 13396 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13397 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13399 $as_echo_n "checking for CPIO... " >&6; } 13400 if test ! -x "$tool_specified"; then 13401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13402 $as_echo "not found" >&6; } 13403 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13404 fi 13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13406 $as_echo "$tool_specified" >&6; } 13407 fi 13408 fi 13409 fi 13410 13411 13412 13413 13414 # Now we can determine OpenJDK build and target platforms. This is required to 13415 # have early on. 13416 # Make sure we can run config.sub. 13417 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13418 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13419 13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13421 $as_echo_n "checking build system type... " >&6; } 13422 if ${ac_cv_build+:} false; then : 13423 $as_echo_n "(cached) " >&6 13424 else 13425 ac_build_alias=$build_alias 13426 test "x$ac_build_alias" = x && 13427 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13428 test "x$ac_build_alias" = x && 13429 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13430 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13431 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13432 13433 fi 13434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13435 $as_echo "$ac_cv_build" >&6; } 13436 case $ac_cv_build in 13437 *-*-*) ;; 13438 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13439 esac 13440 build=$ac_cv_build 13441 ac_save_IFS=$IFS; IFS='-' 13442 set x $ac_cv_build 13443 shift 13444 build_cpu=$1 13445 build_vendor=$2 13446 shift; shift 13447 # Remember, the first character of IFS is used to create $*, 13448 # except with old shells: 13449 build_os=$* 13450 IFS=$ac_save_IFS 13451 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13452 13453 13454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13455 $as_echo_n "checking host system type... " >&6; } 13456 if ${ac_cv_host+:} false; then : 13457 $as_echo_n "(cached) " >&6 13458 else 13459 if test "x$host_alias" = x; then 13460 ac_cv_host=$ac_cv_build 13461 else 13462 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13464 fi 13465 13466 fi 13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13468 $as_echo "$ac_cv_host" >&6; } 13469 case $ac_cv_host in 13470 *-*-*) ;; 13471 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13472 esac 13473 host=$ac_cv_host 13474 ac_save_IFS=$IFS; IFS='-' 13475 set x $ac_cv_host 13476 shift 13477 host_cpu=$1 13478 host_vendor=$2 13479 shift; shift 13480 # Remember, the first character of IFS is used to create $*, 13481 # except with old shells: 13482 host_os=$* 13483 IFS=$ac_save_IFS 13484 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13485 13486 13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13488 $as_echo_n "checking target system type... " >&6; } 13489 if ${ac_cv_target+:} false; then : 13490 $as_echo_n "(cached) " >&6 13491 else 13492 if test "x$target_alias" = x; then 13493 ac_cv_target=$ac_cv_host 13494 else 13495 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13496 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13497 fi 13498 13499 fi 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13501 $as_echo "$ac_cv_target" >&6; } 13502 case $ac_cv_target in 13503 *-*-*) ;; 13504 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13505 esac 13506 target=$ac_cv_target 13507 ac_save_IFS=$IFS; IFS='-' 13508 set x $ac_cv_target 13509 shift 13510 target_cpu=$1 13511 target_vendor=$2 13512 shift; shift 13513 # Remember, the first character of IFS is used to create $*, 13514 # except with old shells: 13515 target_os=$* 13516 IFS=$ac_save_IFS 13517 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13518 13519 13520 # The aliases save the names the user supplied, while $host etc. 13521 # will get canonicalized. 13522 test -n "$target_alias" && 13523 test "$program_prefix$program_suffix$program_transform_name" = \ 13524 NONENONEs,x,x, && 13525 program_prefix=${target_alias}- 13526 13527 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13528 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13529 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13530 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13531 # to use the configure naming style. 13532 13533 13534 13535 13536 13537 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13538 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13539 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13540 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13541 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13542 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13543 13544 13545 13546 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13547 13548 case "$build_os" in 13549 *linux*) 13550 VAR_OS=linux 13551 VAR_OS_TYPE=unix 13552 ;; 13553 *solaris*) 13554 VAR_OS=solaris 13555 VAR_OS_TYPE=unix 13556 ;; 13557 *darwin*) 13558 VAR_OS=macosx 13559 VAR_OS_TYPE=unix 13560 ;; 13561 *bsd*) 13562 VAR_OS=bsd 13563 VAR_OS_TYPE=unix 13564 ;; 13565 *cygwin*) 13566 VAR_OS=windows 13567 VAR_OS_ENV=windows.cygwin 13568 ;; 13569 *mingw*) 13570 VAR_OS=windows 13571 VAR_OS_ENV=windows.msys 13572 ;; 13573 *aix*) 13574 VAR_OS=aix 13575 VAR_OS_TYPE=unix 13576 ;; 13577 *) 13578 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13579 ;; 13580 esac 13581 13582 13583 # First argument is the cpu name from the trip/quad 13584 case "$build_cpu" in 13585 x86_64) 13586 VAR_CPU=x86_64 13587 VAR_CPU_ARCH=x86 13588 VAR_CPU_BITS=64 13589 VAR_CPU_ENDIAN=little 13590 ;; 13591 i?86) 13592 VAR_CPU=x86 13593 VAR_CPU_ARCH=x86 13594 VAR_CPU_BITS=32 13595 VAR_CPU_ENDIAN=little 13596 ;; 13597 arm*) 13598 VAR_CPU=arm 13599 VAR_CPU_ARCH=arm 13600 VAR_CPU_BITS=32 13601 VAR_CPU_ENDIAN=little 13602 ;; 13603 aarch64) 13604 VAR_CPU=aarch64 13605 VAR_CPU_ARCH=aarch64 13606 VAR_CPU_BITS=64 13607 VAR_CPU_ENDIAN=little 13608 ;; 13609 powerpc) 13610 VAR_CPU=ppc 13611 VAR_CPU_ARCH=ppc 13612 VAR_CPU_BITS=32 13613 VAR_CPU_ENDIAN=big 13614 ;; 13615 powerpc64) 13616 VAR_CPU=ppc64 13617 VAR_CPU_ARCH=ppc 13618 VAR_CPU_BITS=64 13619 VAR_CPU_ENDIAN=big 13620 ;; 13621 powerpc64le) 13622 VAR_CPU=ppc64 13623 VAR_CPU_ARCH=ppc 13624 VAR_CPU_BITS=64 13625 VAR_CPU_ENDIAN=little 13626 ;; 13627 s390) 13628 VAR_CPU=s390 13629 VAR_CPU_ARCH=s390 13630 VAR_CPU_BITS=32 13631 VAR_CPU_ENDIAN=big 13632 ;; 13633 s390x) 13634 VAR_CPU=s390x 13635 VAR_CPU_ARCH=s390 13636 VAR_CPU_BITS=64 13637 VAR_CPU_ENDIAN=big 13638 ;; 13639 sparc) 13640 VAR_CPU=sparc 13641 VAR_CPU_ARCH=sparc 13642 VAR_CPU_BITS=32 13643 VAR_CPU_ENDIAN=big 13644 ;; 13645 sparcv9|sparc64) 13646 VAR_CPU=sparcv9 13647 VAR_CPU_ARCH=sparc 13648 VAR_CPU_BITS=64 13649 VAR_CPU_ENDIAN=big 13650 ;; 13651 *) 13652 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13653 ;; 13654 esac 13655 13656 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13657 OPENJDK_BUILD_OS="$VAR_OS" 13658 if test "x$VAR_OS_TYPE" != x; then 13659 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13660 else 13661 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13662 fi 13663 if test "x$VAR_OS_ENV" != x; then 13664 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13665 else 13666 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13667 fi 13668 OPENJDK_BUILD_CPU="$VAR_CPU" 13669 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13670 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13671 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13672 13673 13674 13675 13676 13677 13678 13679 13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13681 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13683 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13684 13685 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13686 13687 case "$host_os" in 13688 *linux*) 13689 VAR_OS=linux 13690 VAR_OS_TYPE=unix 13691 ;; 13692 *solaris*) 13693 VAR_OS=solaris 13694 VAR_OS_TYPE=unix 13695 ;; 13696 *darwin*) 13697 VAR_OS=macosx 13698 VAR_OS_TYPE=unix 13699 ;; 13700 *bsd*) 13701 VAR_OS=bsd 13702 VAR_OS_TYPE=unix 13703 ;; 13704 *cygwin*) 13705 VAR_OS=windows 13706 VAR_OS_ENV=windows.cygwin 13707 ;; 13708 *mingw*) 13709 VAR_OS=windows 13710 VAR_OS_ENV=windows.msys 13711 ;; 13712 *aix*) 13713 VAR_OS=aix 13714 VAR_OS_TYPE=unix 13715 ;; 13716 *) 13717 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13718 ;; 13719 esac 13720 13721 13722 # First argument is the cpu name from the trip/quad 13723 case "$host_cpu" in 13724 x86_64) 13725 VAR_CPU=x86_64 13726 VAR_CPU_ARCH=x86 13727 VAR_CPU_BITS=64 13728 VAR_CPU_ENDIAN=little 13729 ;; 13730 i?86) 13731 VAR_CPU=x86 13732 VAR_CPU_ARCH=x86 13733 VAR_CPU_BITS=32 13734 VAR_CPU_ENDIAN=little 13735 ;; 13736 arm*) 13737 VAR_CPU=arm 13738 VAR_CPU_ARCH=arm 13739 VAR_CPU_BITS=32 13740 VAR_CPU_ENDIAN=little 13741 ;; 13742 aarch64) 13743 VAR_CPU=aarch64 13744 VAR_CPU_ARCH=aarch64 13745 VAR_CPU_BITS=64 13746 VAR_CPU_ENDIAN=little 13747 ;; 13748 powerpc) 13749 VAR_CPU=ppc 13750 VAR_CPU_ARCH=ppc 13751 VAR_CPU_BITS=32 13752 VAR_CPU_ENDIAN=big 13753 ;; 13754 powerpc64) 13755 VAR_CPU=ppc64 13756 VAR_CPU_ARCH=ppc 13757 VAR_CPU_BITS=64 13758 VAR_CPU_ENDIAN=big 13759 ;; 13760 powerpc64le) 13761 VAR_CPU=ppc64 13762 VAR_CPU_ARCH=ppc 13763 VAR_CPU_BITS=64 13764 VAR_CPU_ENDIAN=little 13765 ;; 13766 s390) 13767 VAR_CPU=s390 13768 VAR_CPU_ARCH=s390 13769 VAR_CPU_BITS=32 13770 VAR_CPU_ENDIAN=big 13771 ;; 13772 s390x) 13773 VAR_CPU=s390x 13774 VAR_CPU_ARCH=s390 13775 VAR_CPU_BITS=64 13776 VAR_CPU_ENDIAN=big 13777 ;; 13778 sparc) 13779 VAR_CPU=sparc 13780 VAR_CPU_ARCH=sparc 13781 VAR_CPU_BITS=32 13782 VAR_CPU_ENDIAN=big 13783 ;; 13784 sparcv9|sparc64) 13785 VAR_CPU=sparcv9 13786 VAR_CPU_ARCH=sparc 13787 VAR_CPU_BITS=64 13788 VAR_CPU_ENDIAN=big 13789 ;; 13790 *) 13791 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13792 ;; 13793 esac 13794 13795 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13796 OPENJDK_TARGET_OS="$VAR_OS" 13797 if test "x$VAR_OS_TYPE" != x; then 13798 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13799 else 13800 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13801 fi 13802 if test "x$VAR_OS_ENV" != x; then 13803 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13804 else 13805 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13806 fi 13807 OPENJDK_TARGET_CPU="$VAR_CPU" 13808 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13809 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13810 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13811 13812 13813 13814 13815 13816 13817 13818 13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13820 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13822 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13823 13824 13825 13826 # Check whether --with-target-bits was given. 13827 if test "${with_target_bits+set}" = set; then : 13828 withval=$with_target_bits; 13829 fi 13830 13831 13832 # We have three types of compiles: 13833 # native == normal compilation, target system == build system 13834 # cross == traditional cross compilation, target system != build system; special toolchain needed 13835 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13836 # 13837 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13838 # We're doing a proper cross-compilation 13839 COMPILE_TYPE="cross" 13840 else 13841 COMPILE_TYPE="native" 13842 fi 13843 13844 if test "x$with_target_bits" != x; then 13845 if test "x$COMPILE_TYPE" = "xcross"; then 13846 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13847 fi 13848 13849 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13850 # A reduced build is requested 13851 COMPILE_TYPE="reduced" 13852 OPENJDK_TARGET_CPU_BITS=32 13853 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13854 OPENJDK_TARGET_CPU=x86 13855 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13856 OPENJDK_TARGET_CPU=sparc 13857 else 13858 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13859 fi 13860 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13861 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 13862 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13863 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13864 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13865 else 13866 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13867 fi 13868 fi 13869 13870 13871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13872 $as_echo_n "checking compilation type... " >&6; } 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13874 $as_echo "$COMPILE_TYPE" >&6; } 13875 13876 13877 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13878 REQUIRED_OS_NAME=SunOS 13879 REQUIRED_OS_VERSION=5.10 13880 fi 13881 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13882 REQUIRED_OS_NAME=Linux 13883 REQUIRED_OS_VERSION=2.6 13884 fi 13885 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13886 REQUIRED_OS_NAME=Windows 13887 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13888 REQUIRED_OS_VERSION=5.2 13889 else 13890 REQUIRED_OS_VERSION=5.1 13891 fi 13892 fi 13893 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13894 REQUIRED_OS_NAME=Darwin 13895 REQUIRED_OS_VERSION=11.2 13896 fi 13897 13898 13899 13900 13901 13902 # Also store the legacy naming of the cpu. 13903 # Ie i586 and amd64 instead of x86 and x86_64 13904 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13905 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13906 OPENJDK_TARGET_CPU_LEGACY="i586" 13907 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13908 # On all platforms except MacOSX replace x86_64 with amd64. 13909 OPENJDK_TARGET_CPU_LEGACY="amd64" 13910 fi 13911 13912 13913 # And the second legacy naming of the cpu. 13914 # Ie i386 and amd64 instead of x86 and x86_64. 13915 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13916 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13917 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13918 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13919 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13920 fi 13921 13922 13923 # This is the name of the cpu (but using i386 and amd64 instead of 13924 # x86 and x86_64, respectively), preceeded by a /, to be used when 13925 # locating libraries. On macosx, it's empty, though. 13926 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13927 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13928 OPENJDK_TARGET_CPU_LIBDIR="" 13929 fi 13930 13931 13932 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13933 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13934 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13935 OPENJDK_TARGET_CPU_ISADIR="" 13936 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13937 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13938 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13939 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13940 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13941 fi 13942 fi 13943 13944 13945 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13946 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13947 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13948 # On linux only, we replace x86 with i386. 13949 OPENJDK_TARGET_CPU_OSARCH="i386" 13950 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13951 # On all platforms except macosx, we replace x86_64 with amd64. 13952 OPENJDK_TARGET_CPU_OSARCH="amd64" 13953 fi 13954 13955 13956 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13957 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13958 OPENJDK_TARGET_CPU_JLI="i386" 13959 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13960 # On all platforms except macosx, we replace x86_64 with amd64. 13961 OPENJDK_TARGET_CPU_JLI="amd64" 13962 fi 13963 # Now setup the -D flags for building libjli. 13964 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13965 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13966 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13967 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13968 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13969 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13970 fi 13971 fi 13972 13973 13974 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13975 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13976 else 13977 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 13978 fi 13979 13980 13981 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13982 A_LP64="LP64:=" 13983 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13984 # unpack200.exe 13985 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13986 ADD_LP64="-D_LP64=1" 13987 fi 13988 fi 13989 LP64=$A_LP64 13990 13991 13992 if test "x$COMPILE_TYPE" = "xcross"; then 13993 # FIXME: ... or should this include reduced builds..? 13994 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13995 else 13996 DEFINE_CROSS_COMPILE_ARCH="" 13997 fi 13998 13999 14000 # ZERO_ARCHDEF is used to enable architecture-specific code 14001 case "${OPENJDK_TARGET_CPU}" in 14002 ppc) ZERO_ARCHDEF=PPC32 ;; 14003 ppc64) ZERO_ARCHDEF=PPC64 ;; 14004 s390*) ZERO_ARCHDEF=S390 ;; 14005 sparc*) ZERO_ARCHDEF=SPARC ;; 14006 x86_64*) ZERO_ARCHDEF=AMD64 ;; 14007 x86) ZERO_ARCHDEF=IA32 ;; 14008 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 14009 esac 14010 14011 14012 14013 14014 # Continue setting up basic stuff. Most remaining code require fundamental tools. 14015 14016 # Save the current directory this script was started from 14017 CURDIR="$PWD" 14018 14019 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 14020 PATH_SEP=";" 14021 14022 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 14023 if test $SRC_ROOT_LENGTH -gt 100; then 14024 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 14025 fi 14026 14027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14029 $as_echo_n "checking cygwin release... " >&6; } 14030 CYGWIN_VERSION=`$UNAME -r` 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14032 $as_echo "$CYGWIN_VERSION" >&6; } 14033 WINDOWS_ENV_VENDOR='cygwin' 14034 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14035 14036 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14037 if test "x$CYGWIN_VERSION_OK" = x; then 14038 { $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 14039 $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;} 14040 as_fn_error $? "Cannot continue" "$LINENO" 5 14041 fi 14042 if test "x$CYGPATH" = x; then 14043 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14044 fi 14045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14046 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14047 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14048 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14049 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14050 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14052 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14053 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14054 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14055 if test "x$test_cygdrive_prefix" = x; then 14056 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14057 fi 14058 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14060 $as_echo_n "checking msys release... " >&6; } 14061 MSYS_VERSION=`$UNAME -r` 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14063 $as_echo "$MSYS_VERSION" >&6; } 14064 14065 WINDOWS_ENV_VENDOR='msys' 14066 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14067 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14069 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14070 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14071 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14072 14073 windows_path="$MSYS_ROOT_PATH" 14074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14075 unix_path=`$CYGPATH -u "$windows_path"` 14076 MSYS_ROOT_PATH="$unix_path" 14077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14078 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14079 MSYS_ROOT_PATH="$unix_path" 14080 fi 14081 14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14083 $as_echo "$MSYS_ROOT_PATH" >&6; } 14084 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14085 else 14086 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14087 fi 14088 14089 # Test if windows or unix (cygwin/msys) find is first in path. 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14091 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14092 FIND_BINARY_OUTPUT=`find --version 2>&1` 14093 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14095 $as_echo "unix style" >&6; } 14096 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14098 $as_echo "Windows" >&6; } 14099 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14100 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14101 { $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 14102 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14103 as_fn_error $? "Cannot continue" "$LINENO" 5 14104 else 14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14106 $as_echo "unknown" >&6; } 14107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14108 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14109 fi 14110 14111 else 14112 PATH_SEP=":" 14113 fi 14114 14115 14116 # We get the top-level directory from the supporting wrappers. 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14118 $as_echo_n "checking for top-level directory... " >&6; } 14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14120 $as_echo "$TOPDIR" >&6; } 14121 14122 14123 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14124 14125 # Only process if variable expands to non-empty 14126 14127 if test "x$CURDIR" != x; then 14128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14129 14130 # Input might be given as Windows format, start by converting to 14131 # unix format. 14132 path="$CURDIR" 14133 new_path=`$CYGPATH -u "$path"` 14134 14135 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14136 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14137 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14138 # "foo.exe" is OK but "foo" is an error. 14139 # 14140 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14141 # It is also a way to make sure we got the proper file name for the real test later on. 14142 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14143 if test "x$test_shortpath" = x; then 14144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14145 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14146 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14147 fi 14148 14149 # Call helper function which possibly converts this using DOS-style short mode. 14150 # If so, the updated path is stored in $new_path. 14151 14152 input_path="$new_path" 14153 # Check if we need to convert this using DOS-style short mode. If the path 14154 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14155 # take no chances and rewrite it. 14156 # Note: m4 eats our [], so we need to use [ and ] instead. 14157 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14158 if test "x$has_forbidden_chars" != x; then 14159 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14160 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14161 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14162 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14163 # Going to short mode and back again did indeed matter. Since short mode is 14164 # case insensitive, let's make it lowercase to improve readability. 14165 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14166 # Now convert it back to Unix-stile (cygpath) 14167 input_path=`$CYGPATH -u "$shortmode_path"` 14168 new_path="$input_path" 14169 fi 14170 fi 14171 14172 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14173 if test "x$test_cygdrive_prefix" = x; then 14174 # As a simple fix, exclude /usr/bin since it's not a real path. 14175 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14176 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14177 # a path prefixed by /cygdrive for fixpath to work. 14178 new_path="$CYGWIN_ROOT_PATH$input_path" 14179 fi 14180 fi 14181 14182 14183 if test "x$path" != "x$new_path"; then 14184 CURDIR="$new_path" 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14186 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14187 fi 14188 14189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14190 14191 path="$CURDIR" 14192 has_colon=`$ECHO $path | $GREP ^.:` 14193 new_path="$path" 14194 if test "x$has_colon" = x; then 14195 # Not in mixed or Windows style, start by that. 14196 new_path=`cmd //c echo $path` 14197 fi 14198 14199 14200 input_path="$new_path" 14201 # Check if we need to convert this using DOS-style short mode. If the path 14202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14203 # take no chances and rewrite it. 14204 # Note: m4 eats our [], so we need to use [ and ] instead. 14205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14206 if test "x$has_forbidden_chars" != x; then 14207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14208 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14209 fi 14210 14211 14212 windows_path="$new_path" 14213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14214 unix_path=`$CYGPATH -u "$windows_path"` 14215 new_path="$unix_path" 14216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14218 new_path="$unix_path" 14219 fi 14220 14221 if test "x$path" != "x$new_path"; then 14222 CURDIR="$new_path" 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14224 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14225 fi 14226 14227 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14228 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14229 14230 else 14231 # We're on a unix platform. Hooray! :) 14232 path="$CURDIR" 14233 has_space=`$ECHO "$path" | $GREP " "` 14234 if test "x$has_space" != x; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14236 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14237 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14238 fi 14239 14240 # Use eval to expand a potential ~ 14241 eval path="$path" 14242 if test ! -f "$path" && test ! -d "$path"; then 14243 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14244 fi 14245 14246 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14247 fi 14248 fi 14249 14250 14251 # Only process if variable expands to non-empty 14252 14253 if test "x$TOPDIR" != x; then 14254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14255 14256 # Input might be given as Windows format, start by converting to 14257 # unix format. 14258 path="$TOPDIR" 14259 new_path=`$CYGPATH -u "$path"` 14260 14261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14264 # "foo.exe" is OK but "foo" is an error. 14265 # 14266 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14267 # It is also a way to make sure we got the proper file name for the real test later on. 14268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14269 if test "x$test_shortpath" = x; then 14270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14271 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14272 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14273 fi 14274 14275 # Call helper function which possibly converts this using DOS-style short mode. 14276 # If so, the updated path is stored in $new_path. 14277 14278 input_path="$new_path" 14279 # Check if we need to convert this using DOS-style short mode. If the path 14280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14281 # take no chances and rewrite it. 14282 # Note: m4 eats our [], so we need to use [ and ] instead. 14283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14284 if test "x$has_forbidden_chars" != x; then 14285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14289 # Going to short mode and back again did indeed matter. Since short mode is 14290 # case insensitive, let's make it lowercase to improve readability. 14291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14292 # Now convert it back to Unix-stile (cygpath) 14293 input_path=`$CYGPATH -u "$shortmode_path"` 14294 new_path="$input_path" 14295 fi 14296 fi 14297 14298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14299 if test "x$test_cygdrive_prefix" = x; then 14300 # As a simple fix, exclude /usr/bin since it's not a real path. 14301 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14303 # a path prefixed by /cygdrive for fixpath to work. 14304 new_path="$CYGWIN_ROOT_PATH$input_path" 14305 fi 14306 fi 14307 14308 14309 if test "x$path" != "x$new_path"; then 14310 TOPDIR="$new_path" 14311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14312 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14313 fi 14314 14315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14316 14317 path="$TOPDIR" 14318 has_colon=`$ECHO $path | $GREP ^.:` 14319 new_path="$path" 14320 if test "x$has_colon" = x; then 14321 # Not in mixed or Windows style, start by that. 14322 new_path=`cmd //c echo $path` 14323 fi 14324 14325 14326 input_path="$new_path" 14327 # Check if we need to convert this using DOS-style short mode. If the path 14328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14329 # take no chances and rewrite it. 14330 # Note: m4 eats our [], so we need to use [ and ] instead. 14331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14332 if test "x$has_forbidden_chars" != x; then 14333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14335 fi 14336 14337 14338 windows_path="$new_path" 14339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14340 unix_path=`$CYGPATH -u "$windows_path"` 14341 new_path="$unix_path" 14342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14344 new_path="$unix_path" 14345 fi 14346 14347 if test "x$path" != "x$new_path"; then 14348 TOPDIR="$new_path" 14349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14350 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14351 fi 14352 14353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14355 14356 else 14357 # We're on a unix platform. Hooray! :) 14358 path="$TOPDIR" 14359 has_space=`$ECHO "$path" | $GREP " "` 14360 if test "x$has_space" != x; then 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14362 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14363 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14364 fi 14365 14366 # Use eval to expand a potential ~ 14367 eval path="$path" 14368 if test ! -f "$path" && test ! -d "$path"; then 14369 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14370 fi 14371 14372 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14373 fi 14374 fi 14375 14376 # SRC_ROOT is a traditional alias for TOPDIR. 14377 SRC_ROOT=$TOPDIR 14378 14379 # Locate the directory of this script. 14380 AUTOCONF_DIR=$TOPDIR/common/autoconf 14381 14382 14383 # Setup default logging of stdout and stderr to build.log in the output root. 14384 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14385 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14386 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14387 14388 14389 14390 14391 14392 # Check if it's a pure open build or if custom sources are to be used. 14393 14394 # Check whether --enable-openjdk-only was given. 14395 if test "${enable_openjdk_only+set}" = set; then : 14396 enableval=$enable_openjdk_only; 14397 else 14398 enable_openjdk_only="no" 14399 fi 14400 14401 14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14403 $as_echo_n "checking for presence of closed sources... " >&6; } 14404 if test -d "$SRC_ROOT/jdk/src/closed"; then 14405 CLOSED_SOURCE_PRESENT=yes 14406 else 14407 CLOSED_SOURCE_PRESENT=no 14408 fi 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14410 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14411 14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14413 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14414 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14416 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14417 14418 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14419 OPENJDK=true 14420 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14422 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14423 fi 14424 else 14425 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14426 OPENJDK=true 14427 else 14428 OPENJDK=false 14429 fi 14430 fi 14431 14432 if test "x$OPENJDK" = "xtrue"; then 14433 SET_OPENJDK="OPENJDK=true" 14434 fi 14435 14436 14437 14438 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14439 # the IncludeCustomExtension macro. 14440 14441 14442 # Check whether --with-custom-make-dir was given. 14443 if test "${with_custom_make_dir+set}" = set; then : 14444 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 14445 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14446 fi 14447 14448 14449 14450 14451 # These are needed to be able to create a configuration name (and thus the output directory) 14452 14453 ############################################################################### 14454 # 14455 # Check which variant of the JDK that we want to build. 14456 # Currently we have: 14457 # normal: standard edition 14458 # but the custom make system may add other variants 14459 # 14460 # Effectively the JDK variant gives a name to a specific set of 14461 # modules to compile into the JDK. In the future, these modules 14462 # might even be Jigsaw modules. 14463 # 14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14465 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14466 14467 # Check whether --with-jdk-variant was given. 14468 if test "${with_jdk_variant+set}" = set; then : 14469 withval=$with_jdk_variant; 14470 fi 14471 14472 14473 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14474 JDK_VARIANT="normal" 14475 else 14476 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14477 fi 14478 14479 14480 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14482 $as_echo "$JDK_VARIANT" >&6; } 14483 14484 14485 ############################################################################### 14486 # 14487 # Check which interpreter of the JVM we want to build. 14488 # Currently we have: 14489 # template: Template interpreter (the default) 14490 # cpp : C++ interpreter 14491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14492 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14493 14494 # Check whether --with-jvm-interpreter was given. 14495 if test "${with_jvm_interpreter+set}" = set; then : 14496 withval=$with_jvm_interpreter; 14497 fi 14498 14499 14500 if test "x$with_jvm_interpreter" = x; then 14501 with_jvm_interpreter="template" 14502 fi 14503 14504 JVM_INTERPRETER="$with_jvm_interpreter" 14505 14506 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14507 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14508 fi 14509 14510 14511 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14513 $as_echo "$with_jvm_interpreter" >&6; } 14514 14515 14516 14517 ############################################################################### 14518 # 14519 # Check which variants of the JVM that we want to build. 14520 # Currently we have: 14521 # server: normal interpreter and a tiered C1/C2 compiler 14522 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14523 # minimal1: reduced form of client with optional VM services and features stripped out 14524 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14525 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14526 # zero: no machine code interpreter, no compiler 14527 # zeroshark: zero interpreter and shark/llvm compiler backend 14528 # core: interpreter only, no compiler (only works on some platforms) 14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14530 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14531 14532 # Check whether --with-jvm-variants was given. 14533 if test "${with_jvm_variants+set}" = set; then : 14534 withval=$with_jvm_variants; 14535 fi 14536 14537 14538 if test "x$with_jvm_variants" = x; then 14539 with_jvm_variants="server" 14540 fi 14541 14542 JVM_VARIANTS=",$with_jvm_variants," 14543 TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/minimal1,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//' -e 's/core,//'` 14544 14545 if test "x$TEST_VARIANTS" != "x,"; then 14546 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14547 fi 14548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14549 $as_echo "$with_jvm_variants" >&6; } 14550 14551 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14552 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14553 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14554 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14555 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14556 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14557 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14558 14559 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14560 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14561 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14562 fi 14563 fi 14564 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14565 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14566 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14567 fi 14568 fi 14569 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14570 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14571 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14572 fi 14573 fi 14574 14575 # Replace the commas with AND for use in the build directory name. 14576 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14577 COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/minimal1,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/' -e 's/core,/1/'` 14578 if test "x$COUNT_VARIANTS" != "x,1"; then 14579 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14580 else 14581 BUILDING_MULTIPLE_JVM_VARIANTS=no 14582 fi 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 INCLUDE_SA=true 14594 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14595 INCLUDE_SA=false 14596 fi 14597 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14598 INCLUDE_SA=false 14599 fi 14600 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14601 INCLUDE_SA=false 14602 fi 14603 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14604 INCLUDE_SA=false 14605 fi 14606 14607 14608 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14609 MACOSX_UNIVERSAL="true" 14610 fi 14611 14612 14613 14614 14615 ############################################################################### 14616 # 14617 # Set the debug level 14618 # release: no debug information, all optimizations, no asserts. 14619 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14620 # fastdebug: debug information (-g), all optimizations, all asserts 14621 # slowdebug: debug information (-g), no optimizations, all asserts 14622 # 14623 DEBUG_LEVEL="release" 14624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14625 $as_echo_n "checking which debug level to use... " >&6; } 14626 # Check whether --enable-debug was given. 14627 if test "${enable_debug+set}" = set; then : 14628 enableval=$enable_debug; 14629 ENABLE_DEBUG="${enableval}" 14630 DEBUG_LEVEL="fastdebug" 14631 14632 else 14633 ENABLE_DEBUG="no" 14634 fi 14635 14636 14637 14638 # Check whether --with-debug-level was given. 14639 if test "${with_debug_level+set}" = set; then : 14640 withval=$with_debug_level; 14641 DEBUG_LEVEL="${withval}" 14642 if test "x$ENABLE_DEBUG" = xyes; then 14643 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14644 fi 14645 14646 fi 14647 14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14649 $as_echo "$DEBUG_LEVEL" >&6; } 14650 14651 if test "x$DEBUG_LEVEL" != xrelease && \ 14652 test "x$DEBUG_LEVEL" != xoptimized && \ 14653 test "x$DEBUG_LEVEL" != xfastdebug && \ 14654 test "x$DEBUG_LEVEL" != xslowdebug; then 14655 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14656 fi 14657 14658 14659 ############################################################################### 14660 # 14661 # Setup legacy vars/targets and new vars to deal with different debug levels. 14662 # 14663 14664 case $DEBUG_LEVEL in 14665 release ) 14666 VARIANT="OPT" 14667 FASTDEBUG="false" 14668 DEBUG_CLASSFILES="false" 14669 BUILD_VARIANT_RELEASE="" 14670 HOTSPOT_DEBUG_LEVEL="product" 14671 HOTSPOT_EXPORT="product" 14672 ;; 14673 fastdebug ) 14674 VARIANT="DBG" 14675 FASTDEBUG="true" 14676 DEBUG_CLASSFILES="true" 14677 BUILD_VARIANT_RELEASE="-fastdebug" 14678 HOTSPOT_DEBUG_LEVEL="fastdebug" 14679 HOTSPOT_EXPORT="fastdebug" 14680 ;; 14681 slowdebug ) 14682 VARIANT="DBG" 14683 FASTDEBUG="false" 14684 DEBUG_CLASSFILES="true" 14685 BUILD_VARIANT_RELEASE="-debug" 14686 HOTSPOT_DEBUG_LEVEL="debug" 14687 HOTSPOT_EXPORT="debug" 14688 ;; 14689 optimized ) 14690 VARIANT="OPT" 14691 FASTDEBUG="false" 14692 DEBUG_CLASSFILES="false" 14693 BUILD_VARIANT_RELEASE="-optimized" 14694 HOTSPOT_DEBUG_LEVEL="optimized" 14695 HOTSPOT_EXPORT="optimized" 14696 ;; 14697 esac 14698 14699 # The debug level 'optimized' is a little special because it is currently only 14700 # applicable to the HotSpot build where it means to build a completely 14701 # optimized version of the VM without any debugging code (like for the 14702 # 'release' debug level which is called 'product' in the HotSpot build) but 14703 # with the exception that it can contain additional code which is otherwise 14704 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14705 # test new and/or experimental features which are not intended for customer 14706 # shipment. Because these new features need to be tested and benchmarked in 14707 # real world scenarios, we want to build the containing JDK at the 'release' 14708 # debug level. 14709 if test "x$DEBUG_LEVEL" = xoptimized; then 14710 DEBUG_LEVEL="release" 14711 fi 14712 14713 ##### 14714 # Generate the legacy makefile targets for hotspot. 14715 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14716 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14717 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14718 # But until then ... 14719 HOTSPOT_TARGET="" 14720 14721 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14722 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14723 fi 14724 14725 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14726 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14727 fi 14728 14729 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14730 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14731 fi 14732 14733 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14734 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14735 fi 14736 14737 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14738 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14739 fi 14740 14741 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14742 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14743 fi 14744 14745 if test "x$JVM_VARIANT_CORE" = xtrue; then 14746 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14747 fi 14748 14749 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14750 14751 # On Macosx universal binaries are produced, but they only contain 14752 # 64 bit intel. This invalidates control of which jvms are built 14753 # from configure, but only server is valid anyway. Fix this 14754 # when hotspot makefiles are rewritten. 14755 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14756 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14757 fi 14758 14759 ##### 14760 14761 14762 14763 14764 14765 14766 14767 14768 # With basic setup done, call the custom early hook. 14769 14770 14771 # Check if we have devkits, extra paths or sysroot set. 14772 14773 14774 # Check whether --with-devkit was given. 14775 if test "${with_devkit+set}" = set; then : 14776 withval=$with_devkit; 14777 14778 # Only process if variable expands to non-empty 14779 14780 if test "x$with_devkit" != x; then 14781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14782 14783 # Input might be given as Windows format, start by converting to 14784 # unix format. 14785 path="$with_devkit" 14786 new_path=`$CYGPATH -u "$path"` 14787 14788 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14789 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14790 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14791 # "foo.exe" is OK but "foo" is an error. 14792 # 14793 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14794 # It is also a way to make sure we got the proper file name for the real test later on. 14795 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14796 if test "x$test_shortpath" = x; then 14797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14798 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14799 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14800 fi 14801 14802 # Call helper function which possibly converts this using DOS-style short mode. 14803 # If so, the updated path is stored in $new_path. 14804 14805 input_path="$new_path" 14806 # Check if we need to convert this using DOS-style short mode. If the path 14807 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14808 # take no chances and rewrite it. 14809 # Note: m4 eats our [], so we need to use [ and ] instead. 14810 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14811 if test "x$has_forbidden_chars" != x; then 14812 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14813 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14814 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14815 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14816 # Going to short mode and back again did indeed matter. Since short mode is 14817 # case insensitive, let's make it lowercase to improve readability. 14818 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14819 # Now convert it back to Unix-stile (cygpath) 14820 input_path=`$CYGPATH -u "$shortmode_path"` 14821 new_path="$input_path" 14822 fi 14823 fi 14824 14825 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14826 if test "x$test_cygdrive_prefix" = x; then 14827 # As a simple fix, exclude /usr/bin since it's not a real path. 14828 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14829 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14830 # a path prefixed by /cygdrive for fixpath to work. 14831 new_path="$CYGWIN_ROOT_PATH$input_path" 14832 fi 14833 fi 14834 14835 14836 if test "x$path" != "x$new_path"; then 14837 with_devkit="$new_path" 14838 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14839 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14840 fi 14841 14842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14843 14844 path="$with_devkit" 14845 has_colon=`$ECHO $path | $GREP ^.:` 14846 new_path="$path" 14847 if test "x$has_colon" = x; then 14848 # Not in mixed or Windows style, start by that. 14849 new_path=`cmd //c echo $path` 14850 fi 14851 14852 14853 input_path="$new_path" 14854 # Check if we need to convert this using DOS-style short mode. If the path 14855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14856 # take no chances and rewrite it. 14857 # Note: m4 eats our [], so we need to use [ and ] instead. 14858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14859 if test "x$has_forbidden_chars" != x; then 14860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14861 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14862 fi 14863 14864 14865 windows_path="$new_path" 14866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14867 unix_path=`$CYGPATH -u "$windows_path"` 14868 new_path="$unix_path" 14869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14871 new_path="$unix_path" 14872 fi 14873 14874 if test "x$path" != "x$new_path"; then 14875 with_devkit="$new_path" 14876 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14877 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14878 fi 14879 14880 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14881 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14882 14883 else 14884 # We're on a unix platform. Hooray! :) 14885 path="$with_devkit" 14886 has_space=`$ECHO "$path" | $GREP " "` 14887 if test "x$has_space" != x; then 14888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14889 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14890 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14891 fi 14892 14893 # Use eval to expand a potential ~ 14894 eval path="$path" 14895 if test ! -f "$path" && test ! -d "$path"; then 14896 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14897 fi 14898 14899 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14900 fi 14901 fi 14902 14903 DEVKIT_ROOT="$with_devkit" 14904 # Check for a meta data info file in the root of the devkit 14905 if test -f "$DEVKIT_ROOT/devkit.info"; then 14906 # This potentially sets the following: 14907 # DEVKIT_NAME: A descriptive name of the devkit 14908 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14909 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14910 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14911 . $DEVKIT_ROOT/devkit.info 14912 fi 14913 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14915 $as_echo_n "checking for devkit... " >&6; } 14916 if test "x$DEVKIT_NAME" != x; then 14917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14918 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14919 else 14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14921 $as_echo "$DEVKIT_ROOT" >&6; } 14922 fi 14923 14924 if test "x$DEVKIT_EXTRA_PATH" != x; then 14925 14926 if test "x$DEVKIT_EXTRA_PATH" != x; then 14927 if test "x$EXTRA_PATH" = x; then 14928 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14929 else 14930 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14931 fi 14932 fi 14933 14934 fi 14935 14936 # Fallback default of just /bin if DEVKIT_PATH is not defined 14937 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14938 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14939 fi 14940 14941 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14942 if test "x$TOOLCHAIN_PATH" = x; then 14943 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14944 else 14945 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14946 fi 14947 fi 14948 14949 14950 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14951 # places for backwards compatiblity. 14952 if test "x$DEVKIT_SYSROOT" != x; then 14953 SYSROOT="$DEVKIT_SYSROOT" 14954 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14955 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14956 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14957 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14958 fi 14959 14960 14961 fi 14962 14963 14964 # You can force the sysroot if the sysroot encoded into the compiler tools 14965 # is not correct. 14966 14967 # Check whether --with-sys-root was given. 14968 if test "${with_sys_root+set}" = set; then : 14969 withval=$with_sys_root; SYSROOT=$with_sys_root 14970 14971 fi 14972 14973 14974 14975 # Check whether --with-sysroot was given. 14976 if test "${with_sysroot+set}" = set; then : 14977 withval=$with_sysroot; SYSROOT=$with_sysroot 14978 14979 fi 14980 14981 14982 14983 # Check whether --with-tools-dir was given. 14984 if test "${with_tools_dir+set}" = set; then : 14985 withval=$with_tools_dir; 14986 if test "x$with_tools_dir" != x; then 14987 if test "x$TOOLCHAIN_PATH" = x; then 14988 TOOLCHAIN_PATH="$with_tools_dir" 14989 else 14990 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14991 fi 14992 fi 14993 14994 14995 fi 14996 14997 14998 14999 # Check whether --with-toolchain-path was given. 15000 if test "${with_toolchain_path+set}" = set; then : 15001 withval=$with_toolchain_path; 15002 if test "x$with_toolchain_path" != x; then 15003 if test "x$TOOLCHAIN_PATH" = x; then 15004 TOOLCHAIN_PATH="$with_toolchain_path" 15005 else 15006 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 15007 fi 15008 fi 15009 15010 15011 fi 15012 15013 15014 15015 # Check whether --with-extra-path was given. 15016 if test "${with_extra_path+set}" = set; then : 15017 withval=$with_extra_path; 15018 if test "x$with_extra_path" != x; then 15019 if test "x$EXTRA_PATH" = x; then 15020 EXTRA_PATH="$with_extra_path" 15021 else 15022 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 15023 fi 15024 fi 15025 15026 15027 fi 15028 15029 15030 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 15031 # detect if Xcode is installed by running xcodebuild -version 15032 # if no Xcode installed, xcodebuild exits with 1 15033 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 15034 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 15035 # We need to use xcodebuild in the toolchain dir provided by the user, this will 15036 # fall back on the stub binary in /usr/bin/xcodebuild 15037 # Extract the first word of "xcodebuild", so it can be a program name with args. 15038 set dummy xcodebuild; ac_word=$2 15039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15040 $as_echo_n "checking for $ac_word... " >&6; } 15041 if ${ac_cv_path_XCODEBUILD+:} false; then : 15042 $as_echo_n "(cached) " >&6 15043 else 15044 case $XCODEBUILD in 15045 [\\/]* | ?:[\\/]*) 15046 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15047 ;; 15048 *) 15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15050 for as_dir in $TOOLCHAIN_PATH 15051 do 15052 IFS=$as_save_IFS 15053 test -z "$as_dir" && as_dir=. 15054 for ac_exec_ext in '' $ac_executable_extensions; do 15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15056 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15058 break 2 15059 fi 15060 done 15061 done 15062 IFS=$as_save_IFS 15063 15064 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15065 ;; 15066 esac 15067 fi 15068 XCODEBUILD=$ac_cv_path_XCODEBUILD 15069 if test -n "$XCODEBUILD"; then 15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15071 $as_echo "$XCODEBUILD" >&6; } 15072 else 15073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15074 $as_echo "no" >&6; } 15075 fi 15076 15077 15078 else 15079 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15080 # when only the command line tools are installed there are no SDKs, so headers 15081 # are copied into the system frameworks 15082 XCODEBUILD= 15083 15084 fi 15085 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15087 $as_echo_n "checking for sdk name... " >&6; } 15088 15089 # Check whether --with-sdk-name was given. 15090 if test "${with_sdk_name+set}" = set; then : 15091 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15092 15093 fi 15094 15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15096 $as_echo "$SDKNAME" >&6; } 15097 15098 # if toolchain path is specified then don't rely on system headers, they may not compile 15099 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15100 test -z "$TOOLCHAIN_PATH" && \ 15101 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15102 15103 if test -z "$SYSROOT"; then 15104 if test -n "$XCODEBUILD"; then 15105 # if we don't have system headers, use default SDK name (last resort) 15106 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15107 SDKNAME=${SDKNAME:-macosx} 15108 fi 15109 15110 if test -n "$SDKNAME"; then 15111 # Call xcodebuild to determine SYSROOT 15112 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15113 fi 15114 else 15115 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15116 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 15117 fi 15118 fi 15119 else 15120 # warn user if --with-sdk-name was also set 15121 if test -n "$with_sdk_name"; then 15122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15123 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15124 fi 15125 fi 15126 15127 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15128 # If no system framework headers, then SYSROOT must be set, or we won't build 15129 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 15130 fi 15131 15132 # Perform a basic sanity test 15133 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15134 if test -z "$SYSROOT"; then 15135 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 15136 else 15137 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15138 fi 15139 fi 15140 15141 # set SDKROOT too, Xcode tools will pick it up 15142 SDKROOT=$SYSROOT 15143 15144 fi 15145 15146 # Prepend the extra path to the global path 15147 15148 if test "x$EXTRA_PATH" != x; then 15149 if test "x$PATH" = x; then 15150 PATH="$EXTRA_PATH" 15151 else 15152 PATH="$EXTRA_PATH:$PATH" 15153 fi 15154 fi 15155 15156 15157 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15158 # Add extra search paths on solaris for utilities like ar and as etc... 15159 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15160 fi 15161 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15163 $as_echo_n "checking for sysroot... " >&6; } 15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15165 $as_echo "$SYSROOT" >&6; } 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15167 $as_echo_n "checking for toolchain path... " >&6; } 15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15169 $as_echo "$TOOLCHAIN_PATH" >&6; } 15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15171 $as_echo_n "checking for extra path... " >&6; } 15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15173 $as_echo "$EXTRA_PATH" >&6; } 15174 15175 15176 # To properly create a configuration name, we need to have the OpenJDK target 15177 # and options (variants and debug level) parsed. 15178 15179 15180 15181 # Check whether --with-conf-name was given. 15182 if test "${with_conf_name+set}" = set; then : 15183 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15184 fi 15185 15186 15187 # Test from where we are running configure, in or outside of src root. 15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15189 $as_echo_n "checking where to store configuration... " >&6; } 15190 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15191 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15192 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15193 # We are running configure from the src root. 15194 # Create a default ./build/target-variant-debuglevel output root. 15195 if test "x${CONF_NAME}" = x; then 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15197 $as_echo "in default location" >&6; } 15198 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15199 else 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15201 $as_echo "in build directory with custom name" >&6; } 15202 fi 15203 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15204 $MKDIR -p "$OUTPUT_ROOT" 15205 if test ! -d "$OUTPUT_ROOT"; then 15206 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15207 fi 15208 else 15209 # We are running configure from outside of the src dir. 15210 # Then use the current directory as output dir! 15211 # If configuration is situated in normal build directory, just use the build 15212 # directory name as configuration name, otherwise use the complete path. 15213 if test "x${CONF_NAME}" = x; then 15214 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15215 fi 15216 OUTPUT_ROOT="$CURDIR" 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15218 $as_echo "in current directory" >&6; } 15219 15220 # WARNING: This might be a bad thing to do. You need to be sure you want to 15221 # have a configuration in this directory. Do some sanity checks! 15222 15223 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15224 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15225 # other files 15226 files_present=`$LS $OUTPUT_ROOT` 15227 # Configure has already touched config.log and confdefs.h in the current dir when this check 15228 # is performed. 15229 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15230 | $TR -d '\n'` 15231 if test "x$filtered_files" != x; then 15232 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15233 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15234 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15235 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15236 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15237 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15238 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15239 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15240 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15241 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15242 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15243 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15244 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15245 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15246 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15247 fi 15248 fi 15249 fi 15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15251 $as_echo_n "checking what configuration name to use... " >&6; } 15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15253 $as_echo "$CONF_NAME" >&6; } 15254 15255 15256 # Only process if variable expands to non-empty 15257 15258 if test "x$OUTPUT_ROOT" != x; then 15259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15260 15261 # Input might be given as Windows format, start by converting to 15262 # unix format. 15263 path="$OUTPUT_ROOT" 15264 new_path=`$CYGPATH -u "$path"` 15265 15266 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15267 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15268 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15269 # "foo.exe" is OK but "foo" is an error. 15270 # 15271 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15272 # It is also a way to make sure we got the proper file name for the real test later on. 15273 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15274 if test "x$test_shortpath" = x; then 15275 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15276 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15277 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15278 fi 15279 15280 # Call helper function which possibly converts this using DOS-style short mode. 15281 # If so, the updated path is stored in $new_path. 15282 15283 input_path="$new_path" 15284 # Check if we need to convert this using DOS-style short mode. If the path 15285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15286 # take no chances and rewrite it. 15287 # Note: m4 eats our [], so we need to use [ and ] instead. 15288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15289 if test "x$has_forbidden_chars" != x; then 15290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15291 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15292 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15293 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15294 # Going to short mode and back again did indeed matter. Since short mode is 15295 # case insensitive, let's make it lowercase to improve readability. 15296 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15297 # Now convert it back to Unix-stile (cygpath) 15298 input_path=`$CYGPATH -u "$shortmode_path"` 15299 new_path="$input_path" 15300 fi 15301 fi 15302 15303 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15304 if test "x$test_cygdrive_prefix" = x; then 15305 # As a simple fix, exclude /usr/bin since it's not a real path. 15306 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15307 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15308 # a path prefixed by /cygdrive for fixpath to work. 15309 new_path="$CYGWIN_ROOT_PATH$input_path" 15310 fi 15311 fi 15312 15313 15314 if test "x$path" != "x$new_path"; then 15315 OUTPUT_ROOT="$new_path" 15316 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15317 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15318 fi 15319 15320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15321 15322 path="$OUTPUT_ROOT" 15323 has_colon=`$ECHO $path | $GREP ^.:` 15324 new_path="$path" 15325 if test "x$has_colon" = x; then 15326 # Not in mixed or Windows style, start by that. 15327 new_path=`cmd //c echo $path` 15328 fi 15329 15330 15331 input_path="$new_path" 15332 # Check if we need to convert this using DOS-style short mode. If the path 15333 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15334 # take no chances and rewrite it. 15335 # Note: m4 eats our [], so we need to use [ and ] instead. 15336 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15337 if test "x$has_forbidden_chars" != x; then 15338 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15339 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15340 fi 15341 15342 15343 windows_path="$new_path" 15344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15345 unix_path=`$CYGPATH -u "$windows_path"` 15346 new_path="$unix_path" 15347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15349 new_path="$unix_path" 15350 fi 15351 15352 if test "x$path" != "x$new_path"; then 15353 OUTPUT_ROOT="$new_path" 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15355 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15356 fi 15357 15358 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15359 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15360 15361 else 15362 # We're on a unix platform. Hooray! :) 15363 path="$OUTPUT_ROOT" 15364 has_space=`$ECHO "$path" | $GREP " "` 15365 if test "x$has_space" != x; then 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15367 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15368 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15369 fi 15370 15371 # Use eval to expand a potential ~ 15372 eval path="$path" 15373 if test ! -f "$path" && test ! -d "$path"; then 15374 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15375 fi 15376 15377 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15378 fi 15379 fi 15380 15381 15382 SPEC=$OUTPUT_ROOT/spec.gmk 15383 15384 CONF_NAME=$CONF_NAME 15385 15386 OUTPUT_ROOT=$OUTPUT_ROOT 15387 15388 15389 # The spec.gmk file contains all variables for the make system. 15390 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15391 15392 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15393 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15394 15395 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15396 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15397 15398 # The compare.sh is used to compare the build output to other builds. 15399 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15400 15401 # The generated Makefile knows where the spec.gmk is and where the source is. 15402 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15403 # which will look for generated configurations 15404 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15405 15406 15407 15408 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15409 15410 for ac_prog in apt-get yum port pkgutil pkgadd 15411 do 15412 # Extract the first word of "$ac_prog", so it can be a program name with args. 15413 set dummy $ac_prog; ac_word=$2 15414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15415 $as_echo_n "checking for $ac_word... " >&6; } 15416 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15417 $as_echo_n "(cached) " >&6 15418 else 15419 if test -n "$PKGHANDLER"; then 15420 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15421 else 15422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15423 for as_dir in $PATH 15424 do 15425 IFS=$as_save_IFS 15426 test -z "$as_dir" && as_dir=. 15427 for ac_exec_ext in '' $ac_executable_extensions; do 15428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15429 ac_cv_prog_PKGHANDLER="$ac_prog" 15430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15431 break 2 15432 fi 15433 done 15434 done 15435 IFS=$as_save_IFS 15436 15437 fi 15438 fi 15439 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15440 if test -n "$PKGHANDLER"; then 15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15442 $as_echo "$PKGHANDLER" >&6; } 15443 else 15444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15445 $as_echo "no" >&6; } 15446 fi 15447 15448 15449 test -n "$PKGHANDLER" && break 15450 done 15451 15452 15453 15454 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15455 15456 15457 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15458 if test "x$MAKE" != x; then 15459 # User has supplied a make, test it. 15460 if test ! -f "$MAKE"; then 15461 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15462 fi 15463 15464 MAKE_CANDIDATE=""$MAKE"" 15465 DESCRIPTION="user supplied MAKE=$MAKE" 15466 if test "x$MAKE_CANDIDATE" != x; then 15467 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15468 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15469 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15470 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15471 if test "x$IS_GNU_MAKE" = x; then 15472 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15473 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15474 else 15475 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15476 if test "x$IS_MODERN_MAKE" = x; then 15477 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15478 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15479 else 15480 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15481 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15482 MAKE_EXPECTED_ENV='cygwin' 15483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15484 MAKE_EXPECTED_ENV='msys' 15485 else 15486 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15487 fi 15488 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15489 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15490 else 15491 # Not relevant for non-Windows 15492 IS_MAKE_CORRECT_ENV=true 15493 fi 15494 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15495 { $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 15496 $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;} 15497 else 15498 FOUND_MAKE=$MAKE_CANDIDATE 15499 15500 # Only process if variable expands to non-empty 15501 15502 if test "x$FOUND_MAKE" != x; then 15503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15504 15505 # First separate the path from the arguments. This will split at the first 15506 # space. 15507 complete="$FOUND_MAKE" 15508 path="${complete%% *}" 15509 tmp="$complete EOL" 15510 arguments="${tmp#* }" 15511 15512 # Input might be given as Windows format, start by converting to 15513 # unix format. 15514 new_path=`$CYGPATH -u "$path"` 15515 15516 # Now try to locate executable using which 15517 new_path=`$WHICH "$new_path" 2> /dev/null` 15518 # bat and cmd files are not always considered executable in cygwin causing which 15519 # to not find them 15520 if test "x$new_path" = x \ 15521 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15522 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15523 new_path=`$CYGPATH -u "$path"` 15524 fi 15525 if test "x$new_path" = x; then 15526 # Oops. Which didn't find the executable. 15527 # The splitting of arguments from the executable at a space might have been incorrect, 15528 # since paths with space are more likely in Windows. Give it another try with the whole 15529 # argument. 15530 path="$complete" 15531 arguments="EOL" 15532 new_path=`$CYGPATH -u "$path"` 15533 new_path=`$WHICH "$new_path" 2> /dev/null` 15534 # bat and cmd files are not always considered executable in cygwin causing which 15535 # to not find them 15536 if test "x$new_path" = x \ 15537 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15538 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15539 new_path=`$CYGPATH -u "$path"` 15540 fi 15541 if test "x$new_path" = x; then 15542 # It's still not found. Now this is an unrecoverable error. 15543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15544 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15545 has_space=`$ECHO "$complete" | $GREP " "` 15546 if test "x$has_space" != x; then 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15549 fi 15550 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15551 fi 15552 fi 15553 15554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15557 # "foo.exe" is OK but "foo" is an error. 15558 # 15559 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15560 # It is also a way to make sure we got the proper file name for the real test later on. 15561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15562 if test "x$test_shortpath" = x; then 15563 # Short path failed, file does not exist as specified. 15564 # Try adding .exe or .cmd 15565 if test -f "${new_path}.exe"; then 15566 input_to_shortpath="${new_path}.exe" 15567 elif test -f "${new_path}.cmd"; then 15568 input_to_shortpath="${new_path}.cmd" 15569 else 15570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15571 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15572 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15573 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15574 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15575 fi 15576 else 15577 input_to_shortpath="$new_path" 15578 fi 15579 15580 # Call helper function which possibly converts this using DOS-style short mode. 15581 # If so, the updated path is stored in $new_path. 15582 new_path="$input_to_shortpath" 15583 15584 input_path="$input_to_shortpath" 15585 # Check if we need to convert this using DOS-style short mode. If the path 15586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15587 # take no chances and rewrite it. 15588 # Note: m4 eats our [], so we need to use [ and ] instead. 15589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15590 if test "x$has_forbidden_chars" != x; then 15591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15595 # Going to short mode and back again did indeed matter. Since short mode is 15596 # case insensitive, let's make it lowercase to improve readability. 15597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15598 # Now convert it back to Unix-stile (cygpath) 15599 input_path=`$CYGPATH -u "$shortmode_path"` 15600 new_path="$input_path" 15601 fi 15602 fi 15603 15604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15605 if test "x$test_cygdrive_prefix" = x; then 15606 # As a simple fix, exclude /usr/bin since it's not a real path. 15607 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15609 # a path prefixed by /cygdrive for fixpath to work. 15610 new_path="$CYGWIN_ROOT_PATH$input_path" 15611 fi 15612 fi 15613 15614 # remove trailing .exe if any 15615 new_path="${new_path/%.exe/}" 15616 15617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15618 15619 # First separate the path from the arguments. This will split at the first 15620 # space. 15621 complete="$FOUND_MAKE" 15622 path="${complete%% *}" 15623 tmp="$complete EOL" 15624 arguments="${tmp#* }" 15625 15626 # Input might be given as Windows format, start by converting to 15627 # unix format. 15628 new_path="$path" 15629 15630 windows_path="$new_path" 15631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15632 unix_path=`$CYGPATH -u "$windows_path"` 15633 new_path="$unix_path" 15634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15636 new_path="$unix_path" 15637 fi 15638 15639 15640 # Now try to locate executable using which 15641 new_path=`$WHICH "$new_path" 2> /dev/null` 15642 15643 if test "x$new_path" = x; then 15644 # Oops. Which didn't find the executable. 15645 # The splitting of arguments from the executable at a space might have been incorrect, 15646 # since paths with space are more likely in Windows. Give it another try with the whole 15647 # argument. 15648 path="$complete" 15649 arguments="EOL" 15650 new_path="$path" 15651 15652 windows_path="$new_path" 15653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15654 unix_path=`$CYGPATH -u "$windows_path"` 15655 new_path="$unix_path" 15656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15658 new_path="$unix_path" 15659 fi 15660 15661 15662 new_path=`$WHICH "$new_path" 2> /dev/null` 15663 # bat and cmd files are not always considered executable in MSYS causing which 15664 # to not find them 15665 if test "x$new_path" = x \ 15666 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15668 new_path="$path" 15669 15670 windows_path="$new_path" 15671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15672 unix_path=`$CYGPATH -u "$windows_path"` 15673 new_path="$unix_path" 15674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15675 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15676 new_path="$unix_path" 15677 fi 15678 15679 fi 15680 15681 if test "x$new_path" = x; then 15682 # It's still not found. Now this is an unrecoverable error. 15683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15684 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15685 has_space=`$ECHO "$complete" | $GREP " "` 15686 if test "x$has_space" != x; then 15687 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15688 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15689 fi 15690 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15691 fi 15692 fi 15693 15694 # Now new_path has a complete unix path to the binary 15695 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15696 # Keep paths in /bin as-is, but remove trailing .exe if any 15697 new_path="${new_path/%.exe/}" 15698 # Do not save /bin paths to all_fixpath_prefixes! 15699 else 15700 # Not in mixed or Windows style, start by that. 15701 new_path=`cmd //c echo $new_path` 15702 15703 input_path="$new_path" 15704 # Check if we need to convert this using DOS-style short mode. If the path 15705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15706 # take no chances and rewrite it. 15707 # Note: m4 eats our [], so we need to use [ and ] instead. 15708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15709 if test "x$has_forbidden_chars" != x; then 15710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15711 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15712 fi 15713 15714 # Output is in $new_path 15715 15716 windows_path="$new_path" 15717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15718 unix_path=`$CYGPATH -u "$windows_path"` 15719 new_path="$unix_path" 15720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15722 new_path="$unix_path" 15723 fi 15724 15725 # remove trailing .exe if any 15726 new_path="${new_path/%.exe/}" 15727 15728 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15729 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15730 fi 15731 15732 else 15733 # We're on a unix platform. Hooray! :) 15734 # First separate the path from the arguments. This will split at the first 15735 # space. 15736 complete="$FOUND_MAKE" 15737 path="${complete%% *}" 15738 tmp="$complete EOL" 15739 arguments="${tmp#* }" 15740 15741 # Cannot rely on the command "which" here since it doesn't always work. 15742 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15743 if test -z "$is_absolute_path"; then 15744 # Path to executable is not absolute. Find it. 15745 IFS_save="$IFS" 15746 IFS=: 15747 for p in $PATH; do 15748 if test -f "$p/$path" && test -x "$p/$path"; then 15749 new_path="$p/$path" 15750 break 15751 fi 15752 done 15753 IFS="$IFS_save" 15754 else 15755 # This is an absolute path, we can use it without further modifications. 15756 new_path="$path" 15757 fi 15758 15759 if test "x$new_path" = x; then 15760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15761 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15762 has_space=`$ECHO "$complete" | $GREP " "` 15763 if test "x$has_space" != x; then 15764 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15765 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15766 fi 15767 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15768 fi 15769 fi 15770 15771 # Now join together the path and the arguments once again 15772 if test "x$arguments" != xEOL; then 15773 new_complete="$new_path ${arguments% *}" 15774 else 15775 new_complete="$new_path" 15776 fi 15777 15778 if test "x$complete" != "x$new_complete"; then 15779 FOUND_MAKE="$new_complete" 15780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15781 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15782 fi 15783 fi 15784 15785 fi 15786 fi 15787 fi 15788 fi 15789 15790 if test "x$FOUND_MAKE" = x; then 15791 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15792 fi 15793 else 15794 # Try our hardest to locate a correct version of GNU make 15795 for ac_prog in gmake 15796 do 15797 # Extract the first word of "$ac_prog", so it can be a program name with args. 15798 set dummy $ac_prog; ac_word=$2 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15800 $as_echo_n "checking for $ac_word... " >&6; } 15801 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15802 $as_echo_n "(cached) " >&6 15803 else 15804 case $CHECK_GMAKE in 15805 [\\/]* | ?:[\\/]*) 15806 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15807 ;; 15808 *) 15809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15810 for as_dir in $PATH 15811 do 15812 IFS=$as_save_IFS 15813 test -z "$as_dir" && as_dir=. 15814 for ac_exec_ext in '' $ac_executable_extensions; do 15815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15816 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15818 break 2 15819 fi 15820 done 15821 done 15822 IFS=$as_save_IFS 15823 15824 ;; 15825 esac 15826 fi 15827 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15828 if test -n "$CHECK_GMAKE"; then 15829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15830 $as_echo "$CHECK_GMAKE" >&6; } 15831 else 15832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15833 $as_echo "no" >&6; } 15834 fi 15835 15836 15837 test -n "$CHECK_GMAKE" && break 15838 done 15839 15840 15841 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15842 DESCRIPTION="gmake in PATH" 15843 if test "x$MAKE_CANDIDATE" != x; then 15844 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15845 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15846 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15847 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15848 if test "x$IS_GNU_MAKE" = x; then 15849 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15850 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15851 else 15852 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15853 if test "x$IS_MODERN_MAKE" = x; then 15854 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 15855 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 15856 else 15857 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15858 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15859 MAKE_EXPECTED_ENV='cygwin' 15860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15861 MAKE_EXPECTED_ENV='msys' 15862 else 15863 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15864 fi 15865 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15866 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15867 else 15868 # Not relevant for non-Windows 15869 IS_MAKE_CORRECT_ENV=true 15870 fi 15871 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15872 { $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 15873 $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;} 15874 else 15875 FOUND_MAKE=$MAKE_CANDIDATE 15876 15877 # Only process if variable expands to non-empty 15878 15879 if test "x$FOUND_MAKE" != x; then 15880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15881 15882 # First separate the path from the arguments. This will split at the first 15883 # space. 15884 complete="$FOUND_MAKE" 15885 path="${complete%% *}" 15886 tmp="$complete EOL" 15887 arguments="${tmp#* }" 15888 15889 # Input might be given as Windows format, start by converting to 15890 # unix format. 15891 new_path=`$CYGPATH -u "$path"` 15892 15893 # Now try to locate executable using which 15894 new_path=`$WHICH "$new_path" 2> /dev/null` 15895 # bat and cmd files are not always considered executable in cygwin causing which 15896 # to not find them 15897 if test "x$new_path" = x \ 15898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15900 new_path=`$CYGPATH -u "$path"` 15901 fi 15902 if test "x$new_path" = x; then 15903 # Oops. Which didn't find the executable. 15904 # The splitting of arguments from the executable at a space might have been incorrect, 15905 # since paths with space are more likely in Windows. Give it another try with the whole 15906 # argument. 15907 path="$complete" 15908 arguments="EOL" 15909 new_path=`$CYGPATH -u "$path"` 15910 new_path=`$WHICH "$new_path" 2> /dev/null` 15911 # bat and cmd files are not always considered executable in cygwin causing which 15912 # to not find them 15913 if test "x$new_path" = x \ 15914 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15915 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15916 new_path=`$CYGPATH -u "$path"` 15917 fi 15918 if test "x$new_path" = x; then 15919 # It's still not found. Now this is an unrecoverable error. 15920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15921 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15922 has_space=`$ECHO "$complete" | $GREP " "` 15923 if test "x$has_space" != x; then 15924 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15925 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15926 fi 15927 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15928 fi 15929 fi 15930 15931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15934 # "foo.exe" is OK but "foo" is an error. 15935 # 15936 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15937 # It is also a way to make sure we got the proper file name for the real test later on. 15938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15939 if test "x$test_shortpath" = x; then 15940 # Short path failed, file does not exist as specified. 15941 # Try adding .exe or .cmd 15942 if test -f "${new_path}.exe"; then 15943 input_to_shortpath="${new_path}.exe" 15944 elif test -f "${new_path}.cmd"; then 15945 input_to_shortpath="${new_path}.cmd" 15946 else 15947 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15948 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15949 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15950 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15951 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15952 fi 15953 else 15954 input_to_shortpath="$new_path" 15955 fi 15956 15957 # Call helper function which possibly converts this using DOS-style short mode. 15958 # If so, the updated path is stored in $new_path. 15959 new_path="$input_to_shortpath" 15960 15961 input_path="$input_to_shortpath" 15962 # Check if we need to convert this using DOS-style short mode. If the path 15963 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15964 # take no chances and rewrite it. 15965 # Note: m4 eats our [], so we need to use [ and ] instead. 15966 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15967 if test "x$has_forbidden_chars" != x; then 15968 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15969 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15970 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15971 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15972 # Going to short mode and back again did indeed matter. Since short mode is 15973 # case insensitive, let's make it lowercase to improve readability. 15974 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15975 # Now convert it back to Unix-stile (cygpath) 15976 input_path=`$CYGPATH -u "$shortmode_path"` 15977 new_path="$input_path" 15978 fi 15979 fi 15980 15981 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15982 if test "x$test_cygdrive_prefix" = x; then 15983 # As a simple fix, exclude /usr/bin since it's not a real path. 15984 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15985 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15986 # a path prefixed by /cygdrive for fixpath to work. 15987 new_path="$CYGWIN_ROOT_PATH$input_path" 15988 fi 15989 fi 15990 15991 # remove trailing .exe if any 15992 new_path="${new_path/%.exe/}" 15993 15994 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15995 15996 # First separate the path from the arguments. This will split at the first 15997 # space. 15998 complete="$FOUND_MAKE" 15999 path="${complete%% *}" 16000 tmp="$complete EOL" 16001 arguments="${tmp#* }" 16002 16003 # Input might be given as Windows format, start by converting to 16004 # unix format. 16005 new_path="$path" 16006 16007 windows_path="$new_path" 16008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16009 unix_path=`$CYGPATH -u "$windows_path"` 16010 new_path="$unix_path" 16011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16013 new_path="$unix_path" 16014 fi 16015 16016 16017 # Now try to locate executable using which 16018 new_path=`$WHICH "$new_path" 2> /dev/null` 16019 16020 if test "x$new_path" = x; then 16021 # Oops. Which didn't find the executable. 16022 # The splitting of arguments from the executable at a space might have been incorrect, 16023 # since paths with space are more likely in Windows. Give it another try with the whole 16024 # argument. 16025 path="$complete" 16026 arguments="EOL" 16027 new_path="$path" 16028 16029 windows_path="$new_path" 16030 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16031 unix_path=`$CYGPATH -u "$windows_path"` 16032 new_path="$unix_path" 16033 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16034 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16035 new_path="$unix_path" 16036 fi 16037 16038 16039 new_path=`$WHICH "$new_path" 2> /dev/null` 16040 # bat and cmd files are not always considered executable in MSYS causing which 16041 # to not find them 16042 if test "x$new_path" = x \ 16043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16045 new_path="$path" 16046 16047 windows_path="$new_path" 16048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16049 unix_path=`$CYGPATH -u "$windows_path"` 16050 new_path="$unix_path" 16051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16052 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16053 new_path="$unix_path" 16054 fi 16055 16056 fi 16057 16058 if test "x$new_path" = x; then 16059 # It's still not found. Now this is an unrecoverable error. 16060 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16061 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16062 has_space=`$ECHO "$complete" | $GREP " "` 16063 if test "x$has_space" != x; then 16064 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16065 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16066 fi 16067 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16068 fi 16069 fi 16070 16071 # Now new_path has a complete unix path to the binary 16072 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16073 # Keep paths in /bin as-is, but remove trailing .exe if any 16074 new_path="${new_path/%.exe/}" 16075 # Do not save /bin paths to all_fixpath_prefixes! 16076 else 16077 # Not in mixed or Windows style, start by that. 16078 new_path=`cmd //c echo $new_path` 16079 16080 input_path="$new_path" 16081 # Check if we need to convert this using DOS-style short mode. If the path 16082 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16083 # take no chances and rewrite it. 16084 # Note: m4 eats our [], so we need to use [ and ] instead. 16085 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16086 if test "x$has_forbidden_chars" != x; then 16087 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16088 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16089 fi 16090 16091 # Output is in $new_path 16092 16093 windows_path="$new_path" 16094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16095 unix_path=`$CYGPATH -u "$windows_path"` 16096 new_path="$unix_path" 16097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16098 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16099 new_path="$unix_path" 16100 fi 16101 16102 # remove trailing .exe if any 16103 new_path="${new_path/%.exe/}" 16104 16105 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16106 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16107 fi 16108 16109 else 16110 # We're on a unix platform. Hooray! :) 16111 # First separate the path from the arguments. This will split at the first 16112 # space. 16113 complete="$FOUND_MAKE" 16114 path="${complete%% *}" 16115 tmp="$complete EOL" 16116 arguments="${tmp#* }" 16117 16118 # Cannot rely on the command "which" here since it doesn't always work. 16119 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16120 if test -z "$is_absolute_path"; then 16121 # Path to executable is not absolute. Find it. 16122 IFS_save="$IFS" 16123 IFS=: 16124 for p in $PATH; do 16125 if test -f "$p/$path" && test -x "$p/$path"; then 16126 new_path="$p/$path" 16127 break 16128 fi 16129 done 16130 IFS="$IFS_save" 16131 else 16132 # This is an absolute path, we can use it without further modifications. 16133 new_path="$path" 16134 fi 16135 16136 if test "x$new_path" = x; then 16137 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16138 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16139 has_space=`$ECHO "$complete" | $GREP " "` 16140 if test "x$has_space" != x; then 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16142 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16143 fi 16144 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16145 fi 16146 fi 16147 16148 # Now join together the path and the arguments once again 16149 if test "x$arguments" != xEOL; then 16150 new_complete="$new_path ${arguments% *}" 16151 else 16152 new_complete="$new_path" 16153 fi 16154 16155 if test "x$complete" != "x$new_complete"; then 16156 FOUND_MAKE="$new_complete" 16157 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16158 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16159 fi 16160 fi 16161 16162 fi 16163 fi 16164 fi 16165 fi 16166 16167 16168 if test "x$FOUND_MAKE" = x; then 16169 for ac_prog in make 16170 do 16171 # Extract the first word of "$ac_prog", so it can be a program name with args. 16172 set dummy $ac_prog; ac_word=$2 16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16174 $as_echo_n "checking for $ac_word... " >&6; } 16175 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16176 $as_echo_n "(cached) " >&6 16177 else 16178 case $CHECK_MAKE in 16179 [\\/]* | ?:[\\/]*) 16180 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16181 ;; 16182 *) 16183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16184 for as_dir in $PATH 16185 do 16186 IFS=$as_save_IFS 16187 test -z "$as_dir" && as_dir=. 16188 for ac_exec_ext in '' $ac_executable_extensions; do 16189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16190 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16192 break 2 16193 fi 16194 done 16195 done 16196 IFS=$as_save_IFS 16197 16198 ;; 16199 esac 16200 fi 16201 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16202 if test -n "$CHECK_MAKE"; then 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16204 $as_echo "$CHECK_MAKE" >&6; } 16205 else 16206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16207 $as_echo "no" >&6; } 16208 fi 16209 16210 16211 test -n "$CHECK_MAKE" && break 16212 done 16213 16214 16215 MAKE_CANDIDATE=""$CHECK_MAKE"" 16216 DESCRIPTION="make in PATH" 16217 if test "x$MAKE_CANDIDATE" != x; then 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16219 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16220 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16221 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16222 if test "x$IS_GNU_MAKE" = x; then 16223 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16224 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16225 else 16226 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16227 if test "x$IS_MODERN_MAKE" = x; then 16228 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16229 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16230 else 16231 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16232 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16233 MAKE_EXPECTED_ENV='cygwin' 16234 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16235 MAKE_EXPECTED_ENV='msys' 16236 else 16237 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16238 fi 16239 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16240 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16241 else 16242 # Not relevant for non-Windows 16243 IS_MAKE_CORRECT_ENV=true 16244 fi 16245 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16246 { $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 16247 $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;} 16248 else 16249 FOUND_MAKE=$MAKE_CANDIDATE 16250 16251 # Only process if variable expands to non-empty 16252 16253 if test "x$FOUND_MAKE" != x; then 16254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16255 16256 # First separate the path from the arguments. This will split at the first 16257 # space. 16258 complete="$FOUND_MAKE" 16259 path="${complete%% *}" 16260 tmp="$complete EOL" 16261 arguments="${tmp#* }" 16262 16263 # Input might be given as Windows format, start by converting to 16264 # unix format. 16265 new_path=`$CYGPATH -u "$path"` 16266 16267 # Now try to locate executable using which 16268 new_path=`$WHICH "$new_path" 2> /dev/null` 16269 # bat and cmd files are not always considered executable in cygwin causing which 16270 # to not find them 16271 if test "x$new_path" = x \ 16272 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16273 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16274 new_path=`$CYGPATH -u "$path"` 16275 fi 16276 if test "x$new_path" = x; then 16277 # Oops. Which didn't find the executable. 16278 # The splitting of arguments from the executable at a space might have been incorrect, 16279 # since paths with space are more likely in Windows. Give it another try with the whole 16280 # argument. 16281 path="$complete" 16282 arguments="EOL" 16283 new_path=`$CYGPATH -u "$path"` 16284 new_path=`$WHICH "$new_path" 2> /dev/null` 16285 # bat and cmd files are not always considered executable in cygwin causing which 16286 # to not find them 16287 if test "x$new_path" = x \ 16288 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16289 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16290 new_path=`$CYGPATH -u "$path"` 16291 fi 16292 if test "x$new_path" = x; then 16293 # It's still not found. Now this is an unrecoverable error. 16294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16295 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16296 has_space=`$ECHO "$complete" | $GREP " "` 16297 if test "x$has_space" != x; then 16298 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16299 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16300 fi 16301 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16302 fi 16303 fi 16304 16305 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16306 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16307 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16308 # "foo.exe" is OK but "foo" is an error. 16309 # 16310 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16311 # It is also a way to make sure we got the proper file name for the real test later on. 16312 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16313 if test "x$test_shortpath" = x; then 16314 # Short path failed, file does not exist as specified. 16315 # Try adding .exe or .cmd 16316 if test -f "${new_path}.exe"; then 16317 input_to_shortpath="${new_path}.exe" 16318 elif test -f "${new_path}.cmd"; then 16319 input_to_shortpath="${new_path}.cmd" 16320 else 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16322 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16324 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16325 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16326 fi 16327 else 16328 input_to_shortpath="$new_path" 16329 fi 16330 16331 # Call helper function which possibly converts this using DOS-style short mode. 16332 # If so, the updated path is stored in $new_path. 16333 new_path="$input_to_shortpath" 16334 16335 input_path="$input_to_shortpath" 16336 # Check if we need to convert this using DOS-style short mode. If the path 16337 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16338 # take no chances and rewrite it. 16339 # Note: m4 eats our [], so we need to use [ and ] instead. 16340 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16341 if test "x$has_forbidden_chars" != x; then 16342 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16343 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16344 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16345 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16346 # Going to short mode and back again did indeed matter. Since short mode is 16347 # case insensitive, let's make it lowercase to improve readability. 16348 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16349 # Now convert it back to Unix-stile (cygpath) 16350 input_path=`$CYGPATH -u "$shortmode_path"` 16351 new_path="$input_path" 16352 fi 16353 fi 16354 16355 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16356 if test "x$test_cygdrive_prefix" = x; then 16357 # As a simple fix, exclude /usr/bin since it's not a real path. 16358 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16359 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16360 # a path prefixed by /cygdrive for fixpath to work. 16361 new_path="$CYGWIN_ROOT_PATH$input_path" 16362 fi 16363 fi 16364 16365 # remove trailing .exe if any 16366 new_path="${new_path/%.exe/}" 16367 16368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16369 16370 # First separate the path from the arguments. This will split at the first 16371 # space. 16372 complete="$FOUND_MAKE" 16373 path="${complete%% *}" 16374 tmp="$complete EOL" 16375 arguments="${tmp#* }" 16376 16377 # Input might be given as Windows format, start by converting to 16378 # unix format. 16379 new_path="$path" 16380 16381 windows_path="$new_path" 16382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16383 unix_path=`$CYGPATH -u "$windows_path"` 16384 new_path="$unix_path" 16385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16386 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16387 new_path="$unix_path" 16388 fi 16389 16390 16391 # Now try to locate executable using which 16392 new_path=`$WHICH "$new_path" 2> /dev/null` 16393 16394 if test "x$new_path" = x; then 16395 # Oops. Which didn't find the executable. 16396 # The splitting of arguments from the executable at a space might have been incorrect, 16397 # since paths with space are more likely in Windows. Give it another try with the whole 16398 # argument. 16399 path="$complete" 16400 arguments="EOL" 16401 new_path="$path" 16402 16403 windows_path="$new_path" 16404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16405 unix_path=`$CYGPATH -u "$windows_path"` 16406 new_path="$unix_path" 16407 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16408 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16409 new_path="$unix_path" 16410 fi 16411 16412 16413 new_path=`$WHICH "$new_path" 2> /dev/null` 16414 # bat and cmd files are not always considered executable in MSYS causing which 16415 # to not find them 16416 if test "x$new_path" = x \ 16417 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16418 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16419 new_path="$path" 16420 16421 windows_path="$new_path" 16422 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16423 unix_path=`$CYGPATH -u "$windows_path"` 16424 new_path="$unix_path" 16425 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16426 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16427 new_path="$unix_path" 16428 fi 16429 16430 fi 16431 16432 if test "x$new_path" = x; then 16433 # It's still not found. Now this is an unrecoverable error. 16434 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16435 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16436 has_space=`$ECHO "$complete" | $GREP " "` 16437 if test "x$has_space" != x; then 16438 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16439 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16440 fi 16441 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16442 fi 16443 fi 16444 16445 # Now new_path has a complete unix path to the binary 16446 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16447 # Keep paths in /bin as-is, but remove trailing .exe if any 16448 new_path="${new_path/%.exe/}" 16449 # Do not save /bin paths to all_fixpath_prefixes! 16450 else 16451 # Not in mixed or Windows style, start by that. 16452 new_path=`cmd //c echo $new_path` 16453 16454 input_path="$new_path" 16455 # Check if we need to convert this using DOS-style short mode. If the path 16456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16457 # take no chances and rewrite it. 16458 # Note: m4 eats our [], so we need to use [ and ] instead. 16459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16460 if test "x$has_forbidden_chars" != x; then 16461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16462 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16463 fi 16464 16465 # Output is in $new_path 16466 16467 windows_path="$new_path" 16468 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16469 unix_path=`$CYGPATH -u "$windows_path"` 16470 new_path="$unix_path" 16471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16472 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16473 new_path="$unix_path" 16474 fi 16475 16476 # remove trailing .exe if any 16477 new_path="${new_path/%.exe/}" 16478 16479 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16480 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16481 fi 16482 16483 else 16484 # We're on a unix platform. Hooray! :) 16485 # First separate the path from the arguments. This will split at the first 16486 # space. 16487 complete="$FOUND_MAKE" 16488 path="${complete%% *}" 16489 tmp="$complete EOL" 16490 arguments="${tmp#* }" 16491 16492 # Cannot rely on the command "which" here since it doesn't always work. 16493 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16494 if test -z "$is_absolute_path"; then 16495 # Path to executable is not absolute. Find it. 16496 IFS_save="$IFS" 16497 IFS=: 16498 for p in $PATH; do 16499 if test -f "$p/$path" && test -x "$p/$path"; then 16500 new_path="$p/$path" 16501 break 16502 fi 16503 done 16504 IFS="$IFS_save" 16505 else 16506 # This is an absolute path, we can use it without further modifications. 16507 new_path="$path" 16508 fi 16509 16510 if test "x$new_path" = x; then 16511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16512 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16513 has_space=`$ECHO "$complete" | $GREP " "` 16514 if test "x$has_space" != x; then 16515 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16516 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16517 fi 16518 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16519 fi 16520 fi 16521 16522 # Now join together the path and the arguments once again 16523 if test "x$arguments" != xEOL; then 16524 new_complete="$new_path ${arguments% *}" 16525 else 16526 new_complete="$new_path" 16527 fi 16528 16529 if test "x$complete" != "x$new_complete"; then 16530 FOUND_MAKE="$new_complete" 16531 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16532 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16533 fi 16534 fi 16535 16536 fi 16537 fi 16538 fi 16539 fi 16540 16541 fi 16542 16543 if test "x$FOUND_MAKE" = x; then 16544 if test "x$TOOLCHAIN_PATH" != x; then 16545 # We have a toolchain path, check that as well before giving up. 16546 OLD_PATH=$PATH 16547 PATH=$TOOLCHAIN_PATH:$PATH 16548 for ac_prog in gmake 16549 do 16550 # Extract the first word of "$ac_prog", so it can be a program name with args. 16551 set dummy $ac_prog; ac_word=$2 16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16553 $as_echo_n "checking for $ac_word... " >&6; } 16554 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16555 $as_echo_n "(cached) " >&6 16556 else 16557 case $CHECK_TOOLSDIR_GMAKE in 16558 [\\/]* | ?:[\\/]*) 16559 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16560 ;; 16561 *) 16562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16563 for as_dir in $PATH 16564 do 16565 IFS=$as_save_IFS 16566 test -z "$as_dir" && as_dir=. 16567 for ac_exec_ext in '' $ac_executable_extensions; do 16568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16569 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16571 break 2 16572 fi 16573 done 16574 done 16575 IFS=$as_save_IFS 16576 16577 ;; 16578 esac 16579 fi 16580 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16581 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16583 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16584 else 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16586 $as_echo "no" >&6; } 16587 fi 16588 16589 16590 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16591 done 16592 16593 16594 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16595 DESCRIPTION="gmake in tools-dir" 16596 if test "x$MAKE_CANDIDATE" != x; then 16597 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16598 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16599 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16600 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16601 if test "x$IS_GNU_MAKE" = x; then 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16603 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16604 else 16605 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16606 if test "x$IS_MODERN_MAKE" = x; then 16607 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16608 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16609 else 16610 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16612 MAKE_EXPECTED_ENV='cygwin' 16613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16614 MAKE_EXPECTED_ENV='msys' 16615 else 16616 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16617 fi 16618 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16619 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16620 else 16621 # Not relevant for non-Windows 16622 IS_MAKE_CORRECT_ENV=true 16623 fi 16624 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16625 { $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 16626 $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;} 16627 else 16628 FOUND_MAKE=$MAKE_CANDIDATE 16629 16630 # Only process if variable expands to non-empty 16631 16632 if test "x$FOUND_MAKE" != x; then 16633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16634 16635 # First separate the path from the arguments. This will split at the first 16636 # space. 16637 complete="$FOUND_MAKE" 16638 path="${complete%% *}" 16639 tmp="$complete EOL" 16640 arguments="${tmp#* }" 16641 16642 # Input might be given as Windows format, start by converting to 16643 # unix format. 16644 new_path=`$CYGPATH -u "$path"` 16645 16646 # Now try to locate executable using which 16647 new_path=`$WHICH "$new_path" 2> /dev/null` 16648 # bat and cmd files are not always considered executable in cygwin causing which 16649 # to not find them 16650 if test "x$new_path" = x \ 16651 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16652 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16653 new_path=`$CYGPATH -u "$path"` 16654 fi 16655 if test "x$new_path" = x; then 16656 # Oops. Which didn't find the executable. 16657 # The splitting of arguments from the executable at a space might have been incorrect, 16658 # since paths with space are more likely in Windows. Give it another try with the whole 16659 # argument. 16660 path="$complete" 16661 arguments="EOL" 16662 new_path=`$CYGPATH -u "$path"` 16663 new_path=`$WHICH "$new_path" 2> /dev/null` 16664 # bat and cmd files are not always considered executable in cygwin causing which 16665 # to not find them 16666 if test "x$new_path" = x \ 16667 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16668 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16669 new_path=`$CYGPATH -u "$path"` 16670 fi 16671 if test "x$new_path" = x; then 16672 # It's still not found. Now this is an unrecoverable error. 16673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16674 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16675 has_space=`$ECHO "$complete" | $GREP " "` 16676 if test "x$has_space" != x; then 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16679 fi 16680 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16681 fi 16682 fi 16683 16684 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16685 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16686 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16687 # "foo.exe" is OK but "foo" is an error. 16688 # 16689 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16690 # It is also a way to make sure we got the proper file name for the real test later on. 16691 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16692 if test "x$test_shortpath" = x; then 16693 # Short path failed, file does not exist as specified. 16694 # Try adding .exe or .cmd 16695 if test -f "${new_path}.exe"; then 16696 input_to_shortpath="${new_path}.exe" 16697 elif test -f "${new_path}.cmd"; then 16698 input_to_shortpath="${new_path}.cmd" 16699 else 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16701 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16702 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16703 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16704 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16705 fi 16706 else 16707 input_to_shortpath="$new_path" 16708 fi 16709 16710 # Call helper function which possibly converts this using DOS-style short mode. 16711 # If so, the updated path is stored in $new_path. 16712 new_path="$input_to_shortpath" 16713 16714 input_path="$input_to_shortpath" 16715 # Check if we need to convert this using DOS-style short mode. If the path 16716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16717 # take no chances and rewrite it. 16718 # Note: m4 eats our [], so we need to use [ and ] instead. 16719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16720 if test "x$has_forbidden_chars" != x; then 16721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16722 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16723 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16724 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16725 # Going to short mode and back again did indeed matter. Since short mode is 16726 # case insensitive, let's make it lowercase to improve readability. 16727 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16728 # Now convert it back to Unix-stile (cygpath) 16729 input_path=`$CYGPATH -u "$shortmode_path"` 16730 new_path="$input_path" 16731 fi 16732 fi 16733 16734 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16735 if test "x$test_cygdrive_prefix" = x; then 16736 # As a simple fix, exclude /usr/bin since it's not a real path. 16737 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16738 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16739 # a path prefixed by /cygdrive for fixpath to work. 16740 new_path="$CYGWIN_ROOT_PATH$input_path" 16741 fi 16742 fi 16743 16744 # remove trailing .exe if any 16745 new_path="${new_path/%.exe/}" 16746 16747 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16748 16749 # First separate the path from the arguments. This will split at the first 16750 # space. 16751 complete="$FOUND_MAKE" 16752 path="${complete%% *}" 16753 tmp="$complete EOL" 16754 arguments="${tmp#* }" 16755 16756 # Input might be given as Windows format, start by converting to 16757 # unix format. 16758 new_path="$path" 16759 16760 windows_path="$new_path" 16761 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16762 unix_path=`$CYGPATH -u "$windows_path"` 16763 new_path="$unix_path" 16764 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16765 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16766 new_path="$unix_path" 16767 fi 16768 16769 16770 # Now try to locate executable using which 16771 new_path=`$WHICH "$new_path" 2> /dev/null` 16772 16773 if test "x$new_path" = x; then 16774 # Oops. Which didn't find the executable. 16775 # The splitting of arguments from the executable at a space might have been incorrect, 16776 # since paths with space are more likely in Windows. Give it another try with the whole 16777 # argument. 16778 path="$complete" 16779 arguments="EOL" 16780 new_path="$path" 16781 16782 windows_path="$new_path" 16783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16784 unix_path=`$CYGPATH -u "$windows_path"` 16785 new_path="$unix_path" 16786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16788 new_path="$unix_path" 16789 fi 16790 16791 16792 new_path=`$WHICH "$new_path" 2> /dev/null` 16793 # bat and cmd files are not always considered executable in MSYS causing which 16794 # to not find them 16795 if test "x$new_path" = x \ 16796 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16797 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16798 new_path="$path" 16799 16800 windows_path="$new_path" 16801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16802 unix_path=`$CYGPATH -u "$windows_path"` 16803 new_path="$unix_path" 16804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16805 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16806 new_path="$unix_path" 16807 fi 16808 16809 fi 16810 16811 if test "x$new_path" = x; then 16812 # It's still not found. Now this is an unrecoverable error. 16813 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16814 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16815 has_space=`$ECHO "$complete" | $GREP " "` 16816 if test "x$has_space" != x; then 16817 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16818 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16819 fi 16820 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16821 fi 16822 fi 16823 16824 # Now new_path has a complete unix path to the binary 16825 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16826 # Keep paths in /bin as-is, but remove trailing .exe if any 16827 new_path="${new_path/%.exe/}" 16828 # Do not save /bin paths to all_fixpath_prefixes! 16829 else 16830 # Not in mixed or Windows style, start by that. 16831 new_path=`cmd //c echo $new_path` 16832 16833 input_path="$new_path" 16834 # Check if we need to convert this using DOS-style short mode. If the path 16835 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16836 # take no chances and rewrite it. 16837 # Note: m4 eats our [], so we need to use [ and ] instead. 16838 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16839 if test "x$has_forbidden_chars" != x; then 16840 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16841 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16842 fi 16843 16844 # Output is in $new_path 16845 16846 windows_path="$new_path" 16847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16848 unix_path=`$CYGPATH -u "$windows_path"` 16849 new_path="$unix_path" 16850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16852 new_path="$unix_path" 16853 fi 16854 16855 # remove trailing .exe if any 16856 new_path="${new_path/%.exe/}" 16857 16858 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16859 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16860 fi 16861 16862 else 16863 # We're on a unix platform. Hooray! :) 16864 # First separate the path from the arguments. This will split at the first 16865 # space. 16866 complete="$FOUND_MAKE" 16867 path="${complete%% *}" 16868 tmp="$complete EOL" 16869 arguments="${tmp#* }" 16870 16871 # Cannot rely on the command "which" here since it doesn't always work. 16872 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16873 if test -z "$is_absolute_path"; then 16874 # Path to executable is not absolute. Find it. 16875 IFS_save="$IFS" 16876 IFS=: 16877 for p in $PATH; do 16878 if test -f "$p/$path" && test -x "$p/$path"; then 16879 new_path="$p/$path" 16880 break 16881 fi 16882 done 16883 IFS="$IFS_save" 16884 else 16885 # This is an absolute path, we can use it without further modifications. 16886 new_path="$path" 16887 fi 16888 16889 if test "x$new_path" = x; then 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16891 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16892 has_space=`$ECHO "$complete" | $GREP " "` 16893 if test "x$has_space" != x; then 16894 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16895 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16896 fi 16897 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16898 fi 16899 fi 16900 16901 # Now join together the path and the arguments once again 16902 if test "x$arguments" != xEOL; then 16903 new_complete="$new_path ${arguments% *}" 16904 else 16905 new_complete="$new_path" 16906 fi 16907 16908 if test "x$complete" != "x$new_complete"; then 16909 FOUND_MAKE="$new_complete" 16910 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16911 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16912 fi 16913 fi 16914 16915 fi 16916 fi 16917 fi 16918 fi 16919 16920 if test "x$FOUND_MAKE" = x; then 16921 for ac_prog in make 16922 do 16923 # Extract the first word of "$ac_prog", so it can be a program name with args. 16924 set dummy $ac_prog; ac_word=$2 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16926 $as_echo_n "checking for $ac_word... " >&6; } 16927 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16928 $as_echo_n "(cached) " >&6 16929 else 16930 case $CHECK_TOOLSDIR_MAKE in 16931 [\\/]* | ?:[\\/]*) 16932 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16933 ;; 16934 *) 16935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16936 for as_dir in $PATH 16937 do 16938 IFS=$as_save_IFS 16939 test -z "$as_dir" && as_dir=. 16940 for ac_exec_ext in '' $ac_executable_extensions; do 16941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16942 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16944 break 2 16945 fi 16946 done 16947 done 16948 IFS=$as_save_IFS 16949 16950 ;; 16951 esac 16952 fi 16953 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16954 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16956 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16957 else 16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16959 $as_echo "no" >&6; } 16960 fi 16961 16962 16963 test -n "$CHECK_TOOLSDIR_MAKE" && break 16964 done 16965 16966 16967 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16968 DESCRIPTION="make in tools-dir" 16969 if test "x$MAKE_CANDIDATE" != x; then 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16971 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16972 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16973 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16974 if test "x$IS_GNU_MAKE" = x; then 16975 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16976 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16977 else 16978 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16979 if test "x$IS_MODERN_MAKE" = x; then 16980 { $as_echo "$as_me:${as_lineno-$LINENO}: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&5 16981 $as_echo "$as_me: Found GNU make at $MAKE_CANDIDATE, however this is not version 3.81 or later. (it is: $MAKE_VERSION_STRING). Ignoring." >&6;} 16982 else 16983 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16984 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16985 MAKE_EXPECTED_ENV='cygwin' 16986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16987 MAKE_EXPECTED_ENV='msys' 16988 else 16989 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16990 fi 16991 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16992 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16993 else 16994 # Not relevant for non-Windows 16995 IS_MAKE_CORRECT_ENV=true 16996 fi 16997 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16998 { $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 16999 $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;} 17000 else 17001 FOUND_MAKE=$MAKE_CANDIDATE 17002 17003 # Only process if variable expands to non-empty 17004 17005 if test "x$FOUND_MAKE" != x; then 17006 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17007 17008 # First separate the path from the arguments. This will split at the first 17009 # space. 17010 complete="$FOUND_MAKE" 17011 path="${complete%% *}" 17012 tmp="$complete EOL" 17013 arguments="${tmp#* }" 17014 17015 # Input might be given as Windows format, start by converting to 17016 # unix format. 17017 new_path=`$CYGPATH -u "$path"` 17018 17019 # Now try to locate executable using which 17020 new_path=`$WHICH "$new_path" 2> /dev/null` 17021 # bat and cmd files are not always considered executable in cygwin causing which 17022 # to not find them 17023 if test "x$new_path" = x \ 17024 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17025 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17026 new_path=`$CYGPATH -u "$path"` 17027 fi 17028 if test "x$new_path" = x; then 17029 # Oops. Which didn't find the executable. 17030 # The splitting of arguments from the executable at a space might have been incorrect, 17031 # since paths with space are more likely in Windows. Give it another try with the whole 17032 # argument. 17033 path="$complete" 17034 arguments="EOL" 17035 new_path=`$CYGPATH -u "$path"` 17036 new_path=`$WHICH "$new_path" 2> /dev/null` 17037 # bat and cmd files are not always considered executable in cygwin causing which 17038 # to not find them 17039 if test "x$new_path" = x \ 17040 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17041 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17042 new_path=`$CYGPATH -u "$path"` 17043 fi 17044 if test "x$new_path" = x; then 17045 # It's still not found. Now this is an unrecoverable error. 17046 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17047 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17048 has_space=`$ECHO "$complete" | $GREP " "` 17049 if test "x$has_space" != x; then 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17051 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17052 fi 17053 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17054 fi 17055 fi 17056 17057 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 17058 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 17059 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 17060 # "foo.exe" is OK but "foo" is an error. 17061 # 17062 # This test is therefore slightly more accurate than "test -f" to check for file presence. 17063 # It is also a way to make sure we got the proper file name for the real test later on. 17064 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17065 if test "x$test_shortpath" = x; then 17066 # Short path failed, file does not exist as specified. 17067 # Try adding .exe or .cmd 17068 if test -f "${new_path}.exe"; then 17069 input_to_shortpath="${new_path}.exe" 17070 elif test -f "${new_path}.cmd"; then 17071 input_to_shortpath="${new_path}.cmd" 17072 else 17073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17074 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17075 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17076 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17077 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17078 fi 17079 else 17080 input_to_shortpath="$new_path" 17081 fi 17082 17083 # Call helper function which possibly converts this using DOS-style short mode. 17084 # If so, the updated path is stored in $new_path. 17085 new_path="$input_to_shortpath" 17086 17087 input_path="$input_to_shortpath" 17088 # Check if we need to convert this using DOS-style short mode. If the path 17089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17090 # take no chances and rewrite it. 17091 # Note: m4 eats our [], so we need to use [ and ] instead. 17092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17093 if test "x$has_forbidden_chars" != x; then 17094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17095 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17096 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17097 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17098 # Going to short mode and back again did indeed matter. Since short mode is 17099 # case insensitive, let's make it lowercase to improve readability. 17100 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17101 # Now convert it back to Unix-stile (cygpath) 17102 input_path=`$CYGPATH -u "$shortmode_path"` 17103 new_path="$input_path" 17104 fi 17105 fi 17106 17107 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17108 if test "x$test_cygdrive_prefix" = x; then 17109 # As a simple fix, exclude /usr/bin since it's not a real path. 17110 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17111 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17112 # a path prefixed by /cygdrive for fixpath to work. 17113 new_path="$CYGWIN_ROOT_PATH$input_path" 17114 fi 17115 fi 17116 17117 # remove trailing .exe if any 17118 new_path="${new_path/%.exe/}" 17119 17120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17121 17122 # First separate the path from the arguments. This will split at the first 17123 # space. 17124 complete="$FOUND_MAKE" 17125 path="${complete%% *}" 17126 tmp="$complete EOL" 17127 arguments="${tmp#* }" 17128 17129 # Input might be given as Windows format, start by converting to 17130 # unix format. 17131 new_path="$path" 17132 17133 windows_path="$new_path" 17134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17135 unix_path=`$CYGPATH -u "$windows_path"` 17136 new_path="$unix_path" 17137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17139 new_path="$unix_path" 17140 fi 17141 17142 17143 # Now try to locate executable using which 17144 new_path=`$WHICH "$new_path" 2> /dev/null` 17145 17146 if test "x$new_path" = x; then 17147 # Oops. Which didn't find the executable. 17148 # The splitting of arguments from the executable at a space might have been incorrect, 17149 # since paths with space are more likely in Windows. Give it another try with the whole 17150 # argument. 17151 path="$complete" 17152 arguments="EOL" 17153 new_path="$path" 17154 17155 windows_path="$new_path" 17156 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17157 unix_path=`$CYGPATH -u "$windows_path"` 17158 new_path="$unix_path" 17159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17160 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17161 new_path="$unix_path" 17162 fi 17163 17164 17165 new_path=`$WHICH "$new_path" 2> /dev/null` 17166 # bat and cmd files are not always considered executable in MSYS causing which 17167 # to not find them 17168 if test "x$new_path" = x \ 17169 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17170 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17171 new_path="$path" 17172 17173 windows_path="$new_path" 17174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17175 unix_path=`$CYGPATH -u "$windows_path"` 17176 new_path="$unix_path" 17177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17179 new_path="$unix_path" 17180 fi 17181 17182 fi 17183 17184 if test "x$new_path" = x; then 17185 # It's still not found. Now this is an unrecoverable error. 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17187 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17188 has_space=`$ECHO "$complete" | $GREP " "` 17189 if test "x$has_space" != x; then 17190 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17191 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17192 fi 17193 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17194 fi 17195 fi 17196 17197 # Now new_path has a complete unix path to the binary 17198 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17199 # Keep paths in /bin as-is, but remove trailing .exe if any 17200 new_path="${new_path/%.exe/}" 17201 # Do not save /bin paths to all_fixpath_prefixes! 17202 else 17203 # Not in mixed or Windows style, start by that. 17204 new_path=`cmd //c echo $new_path` 17205 17206 input_path="$new_path" 17207 # Check if we need to convert this using DOS-style short mode. If the path 17208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17209 # take no chances and rewrite it. 17210 # Note: m4 eats our [], so we need to use [ and ] instead. 17211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17212 if test "x$has_forbidden_chars" != x; then 17213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17214 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17215 fi 17216 17217 # Output is in $new_path 17218 17219 windows_path="$new_path" 17220 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17221 unix_path=`$CYGPATH -u "$windows_path"` 17222 new_path="$unix_path" 17223 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17224 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17225 new_path="$unix_path" 17226 fi 17227 17228 # remove trailing .exe if any 17229 new_path="${new_path/%.exe/}" 17230 17231 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17232 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17233 fi 17234 17235 else 17236 # We're on a unix platform. Hooray! :) 17237 # First separate the path from the arguments. This will split at the first 17238 # space. 17239 complete="$FOUND_MAKE" 17240 path="${complete%% *}" 17241 tmp="$complete EOL" 17242 arguments="${tmp#* }" 17243 17244 # Cannot rely on the command "which" here since it doesn't always work. 17245 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17246 if test -z "$is_absolute_path"; then 17247 # Path to executable is not absolute. Find it. 17248 IFS_save="$IFS" 17249 IFS=: 17250 for p in $PATH; do 17251 if test -f "$p/$path" && test -x "$p/$path"; then 17252 new_path="$p/$path" 17253 break 17254 fi 17255 done 17256 IFS="$IFS_save" 17257 else 17258 # This is an absolute path, we can use it without further modifications. 17259 new_path="$path" 17260 fi 17261 17262 if test "x$new_path" = x; then 17263 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17264 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17265 has_space=`$ECHO "$complete" | $GREP " "` 17266 if test "x$has_space" != x; then 17267 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17268 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17269 fi 17270 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17271 fi 17272 fi 17273 17274 # Now join together the path and the arguments once again 17275 if test "x$arguments" != xEOL; then 17276 new_complete="$new_path ${arguments% *}" 17277 else 17278 new_complete="$new_path" 17279 fi 17280 17281 if test "x$complete" != "x$new_complete"; then 17282 FOUND_MAKE="$new_complete" 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17284 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17285 fi 17286 fi 17287 17288 fi 17289 fi 17290 fi 17291 fi 17292 17293 fi 17294 PATH=$OLD_PATH 17295 fi 17296 fi 17297 17298 if test "x$FOUND_MAKE" = x; then 17299 as_fn_error $? "Cannot find GNU make 3.81 or newer! Please put it in the path, or add e.g. MAKE=/opt/gmake3.81/make as argument to configure." "$LINENO" 5 17300 fi 17301 fi 17302 17303 MAKE=$FOUND_MAKE 17304 17305 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17306 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17307 17308 17309 # Check if make supports the output sync option and if so, setup using it. 17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17311 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17312 if $MAKE --version -O > /dev/null 2>&1; then 17313 OUTPUT_SYNC_SUPPORTED=true 17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17315 $as_echo "yes" >&6; } 17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17317 $as_echo_n "checking for output-sync value... " >&6; } 17318 17319 # Check whether --with-output-sync was given. 17320 if test "${with_output_sync+set}" = set; then : 17321 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17322 fi 17323 17324 if test "x$OUTPUT_SYNC" = "x"; then 17325 OUTPUT_SYNC=none 17326 fi 17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17328 $as_echo "$OUTPUT_SYNC" >&6; } 17329 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17330 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17331 fi 17332 else 17333 OUTPUT_SYNC_SUPPORTED=false 17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17335 $as_echo "no" >&6; } 17336 fi 17337 17338 17339 17340 17341 17342 17343 # Test if find supports -delete 17344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17345 $as_echo_n "checking if find supports -delete... " >&6; } 17346 FIND_DELETE="-delete" 17347 17348 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17349 17350 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17351 17352 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17353 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17354 # No, it does not. 17355 rm $DELETEDIR/TestIfFindSupportsDelete 17356 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17357 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17358 FIND_DELETE="-print | xargs rm" 17359 else 17360 FIND_DELETE="-exec rm \{\} \+" 17361 fi 17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17363 $as_echo "no" >&6; } 17364 else 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17366 $as_echo "yes" >&6; } 17367 fi 17368 rmdir $DELETEDIR 17369 17370 17371 17372 # These tools might not be installed by default, 17373 # need hint on how to install them. 17374 17375 17376 17377 # Publish this variable in the help. 17378 17379 17380 if test "x$UNZIP" = x; then 17381 # The variable is not set by user, try to locate tool using the code snippet 17382 for ac_prog in unzip 17383 do 17384 # Extract the first word of "$ac_prog", so it can be a program name with args. 17385 set dummy $ac_prog; ac_word=$2 17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17387 $as_echo_n "checking for $ac_word... " >&6; } 17388 if ${ac_cv_path_UNZIP+:} false; then : 17389 $as_echo_n "(cached) " >&6 17390 else 17391 case $UNZIP in 17392 [\\/]* | ?:[\\/]*) 17393 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17394 ;; 17395 *) 17396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17397 for as_dir in $PATH 17398 do 17399 IFS=$as_save_IFS 17400 test -z "$as_dir" && as_dir=. 17401 for ac_exec_ext in '' $ac_executable_extensions; do 17402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17403 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17405 break 2 17406 fi 17407 done 17408 done 17409 IFS=$as_save_IFS 17410 17411 ;; 17412 esac 17413 fi 17414 UNZIP=$ac_cv_path_UNZIP 17415 if test -n "$UNZIP"; then 17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17417 $as_echo "$UNZIP" >&6; } 17418 else 17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17420 $as_echo "no" >&6; } 17421 fi 17422 17423 17424 test -n "$UNZIP" && break 17425 done 17426 17427 else 17428 # The variable is set, but is it from the command line or the environment? 17429 17430 # Try to remove the string !UNZIP! from our list. 17431 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17432 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17433 # If it failed, the variable was not from the command line. Ignore it, 17434 # but warn the user (except for BASH, which is always set by the calling BASH). 17435 if test "xUNZIP" != xBASH; then 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17437 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17438 fi 17439 # Try to locate tool using the code snippet 17440 for ac_prog in unzip 17441 do 17442 # Extract the first word of "$ac_prog", so it can be a program name with args. 17443 set dummy $ac_prog; ac_word=$2 17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17445 $as_echo_n "checking for $ac_word... " >&6; } 17446 if ${ac_cv_path_UNZIP+:} false; then : 17447 $as_echo_n "(cached) " >&6 17448 else 17449 case $UNZIP in 17450 [\\/]* | ?:[\\/]*) 17451 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17452 ;; 17453 *) 17454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17455 for as_dir in $PATH 17456 do 17457 IFS=$as_save_IFS 17458 test -z "$as_dir" && as_dir=. 17459 for ac_exec_ext in '' $ac_executable_extensions; do 17460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17461 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17463 break 2 17464 fi 17465 done 17466 done 17467 IFS=$as_save_IFS 17468 17469 ;; 17470 esac 17471 fi 17472 UNZIP=$ac_cv_path_UNZIP 17473 if test -n "$UNZIP"; then 17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17475 $as_echo "$UNZIP" >&6; } 17476 else 17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17478 $as_echo "no" >&6; } 17479 fi 17480 17481 17482 test -n "$UNZIP" && break 17483 done 17484 17485 else 17486 # If it succeeded, then it was overridden by the user. We will use it 17487 # for the tool. 17488 17489 # First remove it from the list of overridden variables, so we can test 17490 # for unknown variables in the end. 17491 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17492 17493 # Check if the provided tool contains a complete path. 17494 tool_specified="$UNZIP" 17495 tool_basename="${tool_specified##*/}" 17496 if test "x$tool_basename" = "x$tool_specified"; then 17497 # A command without a complete path is provided, search $PATH. 17498 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17499 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17500 # Extract the first word of "$tool_basename", so it can be a program name with args. 17501 set dummy $tool_basename; ac_word=$2 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17503 $as_echo_n "checking for $ac_word... " >&6; } 17504 if ${ac_cv_path_UNZIP+:} false; then : 17505 $as_echo_n "(cached) " >&6 17506 else 17507 case $UNZIP in 17508 [\\/]* | ?:[\\/]*) 17509 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17510 ;; 17511 *) 17512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17513 for as_dir in $PATH 17514 do 17515 IFS=$as_save_IFS 17516 test -z "$as_dir" && as_dir=. 17517 for ac_exec_ext in '' $ac_executable_extensions; do 17518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17519 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17521 break 2 17522 fi 17523 done 17524 done 17525 IFS=$as_save_IFS 17526 17527 ;; 17528 esac 17529 fi 17530 UNZIP=$ac_cv_path_UNZIP 17531 if test -n "$UNZIP"; then 17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17533 $as_echo "$UNZIP" >&6; } 17534 else 17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17536 $as_echo "no" >&6; } 17537 fi 17538 17539 17540 if test "x$UNZIP" = x; then 17541 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17542 fi 17543 else 17544 # Otherwise we believe it is a complete path. Use it as it is. 17545 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17546 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17548 $as_echo_n "checking for UNZIP... " >&6; } 17549 if test ! -x "$tool_specified"; then 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17551 $as_echo "not found" >&6; } 17552 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17553 fi 17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17555 $as_echo "$tool_specified" >&6; } 17556 fi 17557 fi 17558 fi 17559 17560 17561 17562 if test "x$UNZIP" = x; then 17563 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17564 fi 17565 17566 17567 17568 17569 17570 # Publish this variable in the help. 17571 17572 17573 if test "x$ZIP" = x; then 17574 # The variable is not set by user, try to locate tool using the code snippet 17575 for ac_prog in zip 17576 do 17577 # Extract the first word of "$ac_prog", so it can be a program name with args. 17578 set dummy $ac_prog; ac_word=$2 17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17580 $as_echo_n "checking for $ac_word... " >&6; } 17581 if ${ac_cv_path_ZIP+:} false; then : 17582 $as_echo_n "(cached) " >&6 17583 else 17584 case $ZIP in 17585 [\\/]* | ?:[\\/]*) 17586 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17587 ;; 17588 *) 17589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17590 for as_dir in $PATH 17591 do 17592 IFS=$as_save_IFS 17593 test -z "$as_dir" && as_dir=. 17594 for ac_exec_ext in '' $ac_executable_extensions; do 17595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17596 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17598 break 2 17599 fi 17600 done 17601 done 17602 IFS=$as_save_IFS 17603 17604 ;; 17605 esac 17606 fi 17607 ZIP=$ac_cv_path_ZIP 17608 if test -n "$ZIP"; then 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17610 $as_echo "$ZIP" >&6; } 17611 else 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17613 $as_echo "no" >&6; } 17614 fi 17615 17616 17617 test -n "$ZIP" && break 17618 done 17619 17620 else 17621 # The variable is set, but is it from the command line or the environment? 17622 17623 # Try to remove the string !ZIP! from our list. 17624 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17625 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17626 # If it failed, the variable was not from the command line. Ignore it, 17627 # but warn the user (except for BASH, which is always set by the calling BASH). 17628 if test "xZIP" != xBASH; then 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17630 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17631 fi 17632 # Try to locate tool using the code snippet 17633 for ac_prog in zip 17634 do 17635 # Extract the first word of "$ac_prog", so it can be a program name with args. 17636 set dummy $ac_prog; ac_word=$2 17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17638 $as_echo_n "checking for $ac_word... " >&6; } 17639 if ${ac_cv_path_ZIP+:} false; then : 17640 $as_echo_n "(cached) " >&6 17641 else 17642 case $ZIP in 17643 [\\/]* | ?:[\\/]*) 17644 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17645 ;; 17646 *) 17647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17648 for as_dir in $PATH 17649 do 17650 IFS=$as_save_IFS 17651 test -z "$as_dir" && as_dir=. 17652 for ac_exec_ext in '' $ac_executable_extensions; do 17653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17654 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17656 break 2 17657 fi 17658 done 17659 done 17660 IFS=$as_save_IFS 17661 17662 ;; 17663 esac 17664 fi 17665 ZIP=$ac_cv_path_ZIP 17666 if test -n "$ZIP"; then 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17668 $as_echo "$ZIP" >&6; } 17669 else 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17671 $as_echo "no" >&6; } 17672 fi 17673 17674 17675 test -n "$ZIP" && break 17676 done 17677 17678 else 17679 # If it succeeded, then it was overridden by the user. We will use it 17680 # for the tool. 17681 17682 # First remove it from the list of overridden variables, so we can test 17683 # for unknown variables in the end. 17684 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17685 17686 # Check if the provided tool contains a complete path. 17687 tool_specified="$ZIP" 17688 tool_basename="${tool_specified##*/}" 17689 if test "x$tool_basename" = "x$tool_specified"; then 17690 # A command without a complete path is provided, search $PATH. 17691 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17692 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17693 # Extract the first word of "$tool_basename", so it can be a program name with args. 17694 set dummy $tool_basename; ac_word=$2 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17696 $as_echo_n "checking for $ac_word... " >&6; } 17697 if ${ac_cv_path_ZIP+:} false; then : 17698 $as_echo_n "(cached) " >&6 17699 else 17700 case $ZIP in 17701 [\\/]* | ?:[\\/]*) 17702 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17703 ;; 17704 *) 17705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17706 for as_dir in $PATH 17707 do 17708 IFS=$as_save_IFS 17709 test -z "$as_dir" && as_dir=. 17710 for ac_exec_ext in '' $ac_executable_extensions; do 17711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17712 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17714 break 2 17715 fi 17716 done 17717 done 17718 IFS=$as_save_IFS 17719 17720 ;; 17721 esac 17722 fi 17723 ZIP=$ac_cv_path_ZIP 17724 if test -n "$ZIP"; then 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17726 $as_echo "$ZIP" >&6; } 17727 else 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17729 $as_echo "no" >&6; } 17730 fi 17731 17732 17733 if test "x$ZIP" = x; then 17734 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17735 fi 17736 else 17737 # Otherwise we believe it is a complete path. Use it as it is. 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17739 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17741 $as_echo_n "checking for ZIP... " >&6; } 17742 if test ! -x "$tool_specified"; then 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17744 $as_echo "not found" >&6; } 17745 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17746 fi 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17748 $as_echo "$tool_specified" >&6; } 17749 fi 17750 fi 17751 fi 17752 17753 17754 17755 if test "x$ZIP" = x; then 17756 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17757 fi 17758 17759 17760 17761 # Non-required basic tools 17762 17763 17764 17765 # Publish this variable in the help. 17766 17767 17768 if test "x$LDD" = x; then 17769 # The variable is not set by user, try to locate tool using the code snippet 17770 for ac_prog in ldd 17771 do 17772 # Extract the first word of "$ac_prog", so it can be a program name with args. 17773 set dummy $ac_prog; ac_word=$2 17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17775 $as_echo_n "checking for $ac_word... " >&6; } 17776 if ${ac_cv_path_LDD+:} false; then : 17777 $as_echo_n "(cached) " >&6 17778 else 17779 case $LDD in 17780 [\\/]* | ?:[\\/]*) 17781 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17782 ;; 17783 *) 17784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17785 for as_dir in $PATH 17786 do 17787 IFS=$as_save_IFS 17788 test -z "$as_dir" && as_dir=. 17789 for ac_exec_ext in '' $ac_executable_extensions; do 17790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17791 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17793 break 2 17794 fi 17795 done 17796 done 17797 IFS=$as_save_IFS 17798 17799 ;; 17800 esac 17801 fi 17802 LDD=$ac_cv_path_LDD 17803 if test -n "$LDD"; then 17804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17805 $as_echo "$LDD" >&6; } 17806 else 17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17808 $as_echo "no" >&6; } 17809 fi 17810 17811 17812 test -n "$LDD" && break 17813 done 17814 17815 else 17816 # The variable is set, but is it from the command line or the environment? 17817 17818 # Try to remove the string !LDD! from our list. 17819 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17820 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17821 # If it failed, the variable was not from the command line. Ignore it, 17822 # but warn the user (except for BASH, which is always set by the calling BASH). 17823 if test "xLDD" != xBASH; then 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17825 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17826 fi 17827 # Try to locate tool using the code snippet 17828 for ac_prog in ldd 17829 do 17830 # Extract the first word of "$ac_prog", so it can be a program name with args. 17831 set dummy $ac_prog; ac_word=$2 17832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17833 $as_echo_n "checking for $ac_word... " >&6; } 17834 if ${ac_cv_path_LDD+:} false; then : 17835 $as_echo_n "(cached) " >&6 17836 else 17837 case $LDD in 17838 [\\/]* | ?:[\\/]*) 17839 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17840 ;; 17841 *) 17842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17843 for as_dir in $PATH 17844 do 17845 IFS=$as_save_IFS 17846 test -z "$as_dir" && as_dir=. 17847 for ac_exec_ext in '' $ac_executable_extensions; do 17848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17849 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17851 break 2 17852 fi 17853 done 17854 done 17855 IFS=$as_save_IFS 17856 17857 ;; 17858 esac 17859 fi 17860 LDD=$ac_cv_path_LDD 17861 if test -n "$LDD"; then 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17863 $as_echo "$LDD" >&6; } 17864 else 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17866 $as_echo "no" >&6; } 17867 fi 17868 17869 17870 test -n "$LDD" && break 17871 done 17872 17873 else 17874 # If it succeeded, then it was overridden by the user. We will use it 17875 # for the tool. 17876 17877 # First remove it from the list of overridden variables, so we can test 17878 # for unknown variables in the end. 17879 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17880 17881 # Check if the provided tool contains a complete path. 17882 tool_specified="$LDD" 17883 tool_basename="${tool_specified##*/}" 17884 if test "x$tool_basename" = "x$tool_specified"; then 17885 # A command without a complete path is provided, search $PATH. 17886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17887 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17888 # Extract the first word of "$tool_basename", so it can be a program name with args. 17889 set dummy $tool_basename; ac_word=$2 17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17891 $as_echo_n "checking for $ac_word... " >&6; } 17892 if ${ac_cv_path_LDD+:} false; then : 17893 $as_echo_n "(cached) " >&6 17894 else 17895 case $LDD in 17896 [\\/]* | ?:[\\/]*) 17897 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17898 ;; 17899 *) 17900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17901 for as_dir in $PATH 17902 do 17903 IFS=$as_save_IFS 17904 test -z "$as_dir" && as_dir=. 17905 for ac_exec_ext in '' $ac_executable_extensions; do 17906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17907 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17909 break 2 17910 fi 17911 done 17912 done 17913 IFS=$as_save_IFS 17914 17915 ;; 17916 esac 17917 fi 17918 LDD=$ac_cv_path_LDD 17919 if test -n "$LDD"; then 17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17921 $as_echo "$LDD" >&6; } 17922 else 17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17924 $as_echo "no" >&6; } 17925 fi 17926 17927 17928 if test "x$LDD" = x; then 17929 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17930 fi 17931 else 17932 # Otherwise we believe it is a complete path. Use it as it is. 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17934 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17936 $as_echo_n "checking for LDD... " >&6; } 17937 if test ! -x "$tool_specified"; then 17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17939 $as_echo "not found" >&6; } 17940 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17941 fi 17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17943 $as_echo "$tool_specified" >&6; } 17944 fi 17945 fi 17946 fi 17947 17948 17949 if test "x$LDD" = "x"; then 17950 # List shared lib dependencies is used for 17951 # debug output and checking for forbidden dependencies. 17952 # We can build without it. 17953 LDD="true" 17954 fi 17955 17956 17957 # Publish this variable in the help. 17958 17959 17960 if test "x$OTOOL" = x; then 17961 # The variable is not set by user, try to locate tool using the code snippet 17962 for ac_prog in otool 17963 do 17964 # Extract the first word of "$ac_prog", so it can be a program name with args. 17965 set dummy $ac_prog; ac_word=$2 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17967 $as_echo_n "checking for $ac_word... " >&6; } 17968 if ${ac_cv_path_OTOOL+:} false; then : 17969 $as_echo_n "(cached) " >&6 17970 else 17971 case $OTOOL in 17972 [\\/]* | ?:[\\/]*) 17973 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17974 ;; 17975 *) 17976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17977 for as_dir in $PATH 17978 do 17979 IFS=$as_save_IFS 17980 test -z "$as_dir" && as_dir=. 17981 for ac_exec_ext in '' $ac_executable_extensions; do 17982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17983 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17985 break 2 17986 fi 17987 done 17988 done 17989 IFS=$as_save_IFS 17990 17991 ;; 17992 esac 17993 fi 17994 OTOOL=$ac_cv_path_OTOOL 17995 if test -n "$OTOOL"; then 17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17997 $as_echo "$OTOOL" >&6; } 17998 else 17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18000 $as_echo "no" >&6; } 18001 fi 18002 18003 18004 test -n "$OTOOL" && break 18005 done 18006 18007 else 18008 # The variable is set, but is it from the command line or the environment? 18009 18010 # Try to remove the string !OTOOL! from our list. 18011 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 18012 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18013 # If it failed, the variable was not from the command line. Ignore it, 18014 # but warn the user (except for BASH, which is always set by the calling BASH). 18015 if test "xOTOOL" != xBASH; then 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 18017 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 18018 fi 18019 # Try to locate tool using the code snippet 18020 for ac_prog in otool 18021 do 18022 # Extract the first word of "$ac_prog", so it can be a program name with args. 18023 set dummy $ac_prog; ac_word=$2 18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18025 $as_echo_n "checking for $ac_word... " >&6; } 18026 if ${ac_cv_path_OTOOL+:} false; then : 18027 $as_echo_n "(cached) " >&6 18028 else 18029 case $OTOOL in 18030 [\\/]* | ?:[\\/]*) 18031 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18032 ;; 18033 *) 18034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18035 for as_dir in $PATH 18036 do 18037 IFS=$as_save_IFS 18038 test -z "$as_dir" && as_dir=. 18039 for ac_exec_ext in '' $ac_executable_extensions; do 18040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18041 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18043 break 2 18044 fi 18045 done 18046 done 18047 IFS=$as_save_IFS 18048 18049 ;; 18050 esac 18051 fi 18052 OTOOL=$ac_cv_path_OTOOL 18053 if test -n "$OTOOL"; then 18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18055 $as_echo "$OTOOL" >&6; } 18056 else 18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18058 $as_echo "no" >&6; } 18059 fi 18060 18061 18062 test -n "$OTOOL" && break 18063 done 18064 18065 else 18066 # If it succeeded, then it was overridden by the user. We will use it 18067 # for the tool. 18068 18069 # First remove it from the list of overridden variables, so we can test 18070 # for unknown variables in the end. 18071 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18072 18073 # Check if the provided tool contains a complete path. 18074 tool_specified="$OTOOL" 18075 tool_basename="${tool_specified##*/}" 18076 if test "x$tool_basename" = "x$tool_specified"; then 18077 # A command without a complete path is provided, search $PATH. 18078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18079 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18080 # Extract the first word of "$tool_basename", so it can be a program name with args. 18081 set dummy $tool_basename; ac_word=$2 18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18083 $as_echo_n "checking for $ac_word... " >&6; } 18084 if ${ac_cv_path_OTOOL+:} false; then : 18085 $as_echo_n "(cached) " >&6 18086 else 18087 case $OTOOL in 18088 [\\/]* | ?:[\\/]*) 18089 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18090 ;; 18091 *) 18092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18093 for as_dir in $PATH 18094 do 18095 IFS=$as_save_IFS 18096 test -z "$as_dir" && as_dir=. 18097 for ac_exec_ext in '' $ac_executable_extensions; do 18098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18099 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18101 break 2 18102 fi 18103 done 18104 done 18105 IFS=$as_save_IFS 18106 18107 ;; 18108 esac 18109 fi 18110 OTOOL=$ac_cv_path_OTOOL 18111 if test -n "$OTOOL"; then 18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18113 $as_echo "$OTOOL" >&6; } 18114 else 18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18116 $as_echo "no" >&6; } 18117 fi 18118 18119 18120 if test "x$OTOOL" = x; then 18121 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18122 fi 18123 else 18124 # Otherwise we believe it is a complete path. Use it as it is. 18125 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18126 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18128 $as_echo_n "checking for OTOOL... " >&6; } 18129 if test ! -x "$tool_specified"; then 18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18131 $as_echo "not found" >&6; } 18132 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18133 fi 18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18135 $as_echo "$tool_specified" >&6; } 18136 fi 18137 fi 18138 fi 18139 18140 18141 if test "x$OTOOL" = "x"; then 18142 OTOOL="true" 18143 fi 18144 18145 18146 # Publish this variable in the help. 18147 18148 18149 if test "x$READELF" = x; then 18150 # The variable is not set by user, try to locate tool using the code snippet 18151 for ac_prog in greadelf readelf 18152 do 18153 # Extract the first word of "$ac_prog", so it can be a program name with args. 18154 set dummy $ac_prog; ac_word=$2 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18156 $as_echo_n "checking for $ac_word... " >&6; } 18157 if ${ac_cv_path_READELF+:} false; then : 18158 $as_echo_n "(cached) " >&6 18159 else 18160 case $READELF in 18161 [\\/]* | ?:[\\/]*) 18162 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18163 ;; 18164 *) 18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18166 for as_dir in $PATH 18167 do 18168 IFS=$as_save_IFS 18169 test -z "$as_dir" && as_dir=. 18170 for ac_exec_ext in '' $ac_executable_extensions; do 18171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18172 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18174 break 2 18175 fi 18176 done 18177 done 18178 IFS=$as_save_IFS 18179 18180 ;; 18181 esac 18182 fi 18183 READELF=$ac_cv_path_READELF 18184 if test -n "$READELF"; then 18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18186 $as_echo "$READELF" >&6; } 18187 else 18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18189 $as_echo "no" >&6; } 18190 fi 18191 18192 18193 test -n "$READELF" && break 18194 done 18195 18196 else 18197 # The variable is set, but is it from the command line or the environment? 18198 18199 # Try to remove the string !READELF! from our list. 18200 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18201 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18202 # If it failed, the variable was not from the command line. Ignore it, 18203 # but warn the user (except for BASH, which is always set by the calling BASH). 18204 if test "xREADELF" != xBASH; then 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18206 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18207 fi 18208 # Try to locate tool using the code snippet 18209 for ac_prog in greadelf readelf 18210 do 18211 # Extract the first word of "$ac_prog", so it can be a program name with args. 18212 set dummy $ac_prog; ac_word=$2 18213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18214 $as_echo_n "checking for $ac_word... " >&6; } 18215 if ${ac_cv_path_READELF+:} false; then : 18216 $as_echo_n "(cached) " >&6 18217 else 18218 case $READELF in 18219 [\\/]* | ?:[\\/]*) 18220 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18221 ;; 18222 *) 18223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18224 for as_dir in $PATH 18225 do 18226 IFS=$as_save_IFS 18227 test -z "$as_dir" && as_dir=. 18228 for ac_exec_ext in '' $ac_executable_extensions; do 18229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18230 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18232 break 2 18233 fi 18234 done 18235 done 18236 IFS=$as_save_IFS 18237 18238 ;; 18239 esac 18240 fi 18241 READELF=$ac_cv_path_READELF 18242 if test -n "$READELF"; then 18243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18244 $as_echo "$READELF" >&6; } 18245 else 18246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18247 $as_echo "no" >&6; } 18248 fi 18249 18250 18251 test -n "$READELF" && break 18252 done 18253 18254 else 18255 # If it succeeded, then it was overridden by the user. We will use it 18256 # for the tool. 18257 18258 # First remove it from the list of overridden variables, so we can test 18259 # for unknown variables in the end. 18260 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18261 18262 # Check if the provided tool contains a complete path. 18263 tool_specified="$READELF" 18264 tool_basename="${tool_specified##*/}" 18265 if test "x$tool_basename" = "x$tool_specified"; then 18266 # A command without a complete path is provided, search $PATH. 18267 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18268 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18269 # Extract the first word of "$tool_basename", so it can be a program name with args. 18270 set dummy $tool_basename; ac_word=$2 18271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18272 $as_echo_n "checking for $ac_word... " >&6; } 18273 if ${ac_cv_path_READELF+:} false; then : 18274 $as_echo_n "(cached) " >&6 18275 else 18276 case $READELF in 18277 [\\/]* | ?:[\\/]*) 18278 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18279 ;; 18280 *) 18281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18282 for as_dir in $PATH 18283 do 18284 IFS=$as_save_IFS 18285 test -z "$as_dir" && as_dir=. 18286 for ac_exec_ext in '' $ac_executable_extensions; do 18287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18288 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18290 break 2 18291 fi 18292 done 18293 done 18294 IFS=$as_save_IFS 18295 18296 ;; 18297 esac 18298 fi 18299 READELF=$ac_cv_path_READELF 18300 if test -n "$READELF"; then 18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18302 $as_echo "$READELF" >&6; } 18303 else 18304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18305 $as_echo "no" >&6; } 18306 fi 18307 18308 18309 if test "x$READELF" = x; then 18310 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18311 fi 18312 else 18313 # Otherwise we believe it is a complete path. Use it as it is. 18314 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18315 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18317 $as_echo_n "checking for READELF... " >&6; } 18318 if test ! -x "$tool_specified"; then 18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18320 $as_echo "not found" >&6; } 18321 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18322 fi 18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18324 $as_echo "$tool_specified" >&6; } 18325 fi 18326 fi 18327 fi 18328 18329 18330 18331 18332 # Publish this variable in the help. 18333 18334 18335 if test "x$HG" = x; then 18336 # The variable is not set by user, try to locate tool using the code snippet 18337 for ac_prog in hg 18338 do 18339 # Extract the first word of "$ac_prog", so it can be a program name with args. 18340 set dummy $ac_prog; ac_word=$2 18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18342 $as_echo_n "checking for $ac_word... " >&6; } 18343 if ${ac_cv_path_HG+:} false; then : 18344 $as_echo_n "(cached) " >&6 18345 else 18346 case $HG in 18347 [\\/]* | ?:[\\/]*) 18348 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18349 ;; 18350 *) 18351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18352 for as_dir in $PATH 18353 do 18354 IFS=$as_save_IFS 18355 test -z "$as_dir" && as_dir=. 18356 for ac_exec_ext in '' $ac_executable_extensions; do 18357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18358 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18360 break 2 18361 fi 18362 done 18363 done 18364 IFS=$as_save_IFS 18365 18366 ;; 18367 esac 18368 fi 18369 HG=$ac_cv_path_HG 18370 if test -n "$HG"; then 18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18372 $as_echo "$HG" >&6; } 18373 else 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18375 $as_echo "no" >&6; } 18376 fi 18377 18378 18379 test -n "$HG" && break 18380 done 18381 18382 else 18383 # The variable is set, but is it from the command line or the environment? 18384 18385 # Try to remove the string !HG! from our list. 18386 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18387 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18388 # If it failed, the variable was not from the command line. Ignore it, 18389 # but warn the user (except for BASH, which is always set by the calling BASH). 18390 if test "xHG" != xBASH; then 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18392 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18393 fi 18394 # Try to locate tool using the code snippet 18395 for ac_prog in hg 18396 do 18397 # Extract the first word of "$ac_prog", so it can be a program name with args. 18398 set dummy $ac_prog; ac_word=$2 18399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18400 $as_echo_n "checking for $ac_word... " >&6; } 18401 if ${ac_cv_path_HG+:} false; then : 18402 $as_echo_n "(cached) " >&6 18403 else 18404 case $HG in 18405 [\\/]* | ?:[\\/]*) 18406 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18407 ;; 18408 *) 18409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18410 for as_dir in $PATH 18411 do 18412 IFS=$as_save_IFS 18413 test -z "$as_dir" && as_dir=. 18414 for ac_exec_ext in '' $ac_executable_extensions; do 18415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18416 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18418 break 2 18419 fi 18420 done 18421 done 18422 IFS=$as_save_IFS 18423 18424 ;; 18425 esac 18426 fi 18427 HG=$ac_cv_path_HG 18428 if test -n "$HG"; then 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18430 $as_echo "$HG" >&6; } 18431 else 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18433 $as_echo "no" >&6; } 18434 fi 18435 18436 18437 test -n "$HG" && break 18438 done 18439 18440 else 18441 # If it succeeded, then it was overridden by the user. We will use it 18442 # for the tool. 18443 18444 # First remove it from the list of overridden variables, so we can test 18445 # for unknown variables in the end. 18446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18447 18448 # Check if the provided tool contains a complete path. 18449 tool_specified="$HG" 18450 tool_basename="${tool_specified##*/}" 18451 if test "x$tool_basename" = "x$tool_specified"; then 18452 # A command without a complete path is provided, search $PATH. 18453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18454 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18455 # Extract the first word of "$tool_basename", so it can be a program name with args. 18456 set dummy $tool_basename; ac_word=$2 18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18458 $as_echo_n "checking for $ac_word... " >&6; } 18459 if ${ac_cv_path_HG+:} false; then : 18460 $as_echo_n "(cached) " >&6 18461 else 18462 case $HG in 18463 [\\/]* | ?:[\\/]*) 18464 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18465 ;; 18466 *) 18467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18468 for as_dir in $PATH 18469 do 18470 IFS=$as_save_IFS 18471 test -z "$as_dir" && as_dir=. 18472 for ac_exec_ext in '' $ac_executable_extensions; do 18473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18474 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18476 break 2 18477 fi 18478 done 18479 done 18480 IFS=$as_save_IFS 18481 18482 ;; 18483 esac 18484 fi 18485 HG=$ac_cv_path_HG 18486 if test -n "$HG"; then 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18488 $as_echo "$HG" >&6; } 18489 else 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18491 $as_echo "no" >&6; } 18492 fi 18493 18494 18495 if test "x$HG" = x; then 18496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18497 fi 18498 else 18499 # Otherwise we believe it is a complete path. Use it as it is. 18500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18501 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18503 $as_echo_n "checking for HG... " >&6; } 18504 if test ! -x "$tool_specified"; then 18505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18506 $as_echo "not found" >&6; } 18507 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18508 fi 18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18510 $as_echo "$tool_specified" >&6; } 18511 fi 18512 fi 18513 fi 18514 18515 18516 18517 18518 # Publish this variable in the help. 18519 18520 18521 if test "x$STAT" = x; then 18522 # The variable is not set by user, try to locate tool using the code snippet 18523 for ac_prog in stat 18524 do 18525 # Extract the first word of "$ac_prog", so it can be a program name with args. 18526 set dummy $ac_prog; ac_word=$2 18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18528 $as_echo_n "checking for $ac_word... " >&6; } 18529 if ${ac_cv_path_STAT+:} false; then : 18530 $as_echo_n "(cached) " >&6 18531 else 18532 case $STAT in 18533 [\\/]* | ?:[\\/]*) 18534 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18535 ;; 18536 *) 18537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18538 for as_dir in $PATH 18539 do 18540 IFS=$as_save_IFS 18541 test -z "$as_dir" && as_dir=. 18542 for ac_exec_ext in '' $ac_executable_extensions; do 18543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18544 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18546 break 2 18547 fi 18548 done 18549 done 18550 IFS=$as_save_IFS 18551 18552 ;; 18553 esac 18554 fi 18555 STAT=$ac_cv_path_STAT 18556 if test -n "$STAT"; then 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18558 $as_echo "$STAT" >&6; } 18559 else 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18561 $as_echo "no" >&6; } 18562 fi 18563 18564 18565 test -n "$STAT" && break 18566 done 18567 18568 else 18569 # The variable is set, but is it from the command line or the environment? 18570 18571 # Try to remove the string !STAT! from our list. 18572 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18573 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18574 # If it failed, the variable was not from the command line. Ignore it, 18575 # but warn the user (except for BASH, which is always set by the calling BASH). 18576 if test "xSTAT" != xBASH; then 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18578 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18579 fi 18580 # Try to locate tool using the code snippet 18581 for ac_prog in stat 18582 do 18583 # Extract the first word of "$ac_prog", so it can be a program name with args. 18584 set dummy $ac_prog; ac_word=$2 18585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18586 $as_echo_n "checking for $ac_word... " >&6; } 18587 if ${ac_cv_path_STAT+:} false; then : 18588 $as_echo_n "(cached) " >&6 18589 else 18590 case $STAT in 18591 [\\/]* | ?:[\\/]*) 18592 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18593 ;; 18594 *) 18595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18596 for as_dir in $PATH 18597 do 18598 IFS=$as_save_IFS 18599 test -z "$as_dir" && as_dir=. 18600 for ac_exec_ext in '' $ac_executable_extensions; do 18601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18602 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18604 break 2 18605 fi 18606 done 18607 done 18608 IFS=$as_save_IFS 18609 18610 ;; 18611 esac 18612 fi 18613 STAT=$ac_cv_path_STAT 18614 if test -n "$STAT"; then 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18616 $as_echo "$STAT" >&6; } 18617 else 18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18619 $as_echo "no" >&6; } 18620 fi 18621 18622 18623 test -n "$STAT" && break 18624 done 18625 18626 else 18627 # If it succeeded, then it was overridden by the user. We will use it 18628 # for the tool. 18629 18630 # First remove it from the list of overridden variables, so we can test 18631 # for unknown variables in the end. 18632 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18633 18634 # Check if the provided tool contains a complete path. 18635 tool_specified="$STAT" 18636 tool_basename="${tool_specified##*/}" 18637 if test "x$tool_basename" = "x$tool_specified"; then 18638 # A command without a complete path is provided, search $PATH. 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18640 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18641 # Extract the first word of "$tool_basename", so it can be a program name with args. 18642 set dummy $tool_basename; ac_word=$2 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18644 $as_echo_n "checking for $ac_word... " >&6; } 18645 if ${ac_cv_path_STAT+:} false; then : 18646 $as_echo_n "(cached) " >&6 18647 else 18648 case $STAT in 18649 [\\/]* | ?:[\\/]*) 18650 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18651 ;; 18652 *) 18653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18654 for as_dir in $PATH 18655 do 18656 IFS=$as_save_IFS 18657 test -z "$as_dir" && as_dir=. 18658 for ac_exec_ext in '' $ac_executable_extensions; do 18659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18660 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18662 break 2 18663 fi 18664 done 18665 done 18666 IFS=$as_save_IFS 18667 18668 ;; 18669 esac 18670 fi 18671 STAT=$ac_cv_path_STAT 18672 if test -n "$STAT"; then 18673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18674 $as_echo "$STAT" >&6; } 18675 else 18676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18677 $as_echo "no" >&6; } 18678 fi 18679 18680 18681 if test "x$STAT" = x; then 18682 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18683 fi 18684 else 18685 # Otherwise we believe it is a complete path. Use it as it is. 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18687 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18689 $as_echo_n "checking for STAT... " >&6; } 18690 if test ! -x "$tool_specified"; then 18691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18692 $as_echo "not found" >&6; } 18693 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18694 fi 18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18696 $as_echo "$tool_specified" >&6; } 18697 fi 18698 fi 18699 fi 18700 18701 18702 18703 18704 # Publish this variable in the help. 18705 18706 18707 if test "x$TIME" = x; then 18708 # The variable is not set by user, try to locate tool using the code snippet 18709 for ac_prog in time 18710 do 18711 # Extract the first word of "$ac_prog", so it can be a program name with args. 18712 set dummy $ac_prog; ac_word=$2 18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18714 $as_echo_n "checking for $ac_word... " >&6; } 18715 if ${ac_cv_path_TIME+:} false; then : 18716 $as_echo_n "(cached) " >&6 18717 else 18718 case $TIME in 18719 [\\/]* | ?:[\\/]*) 18720 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18721 ;; 18722 *) 18723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18724 for as_dir in $PATH 18725 do 18726 IFS=$as_save_IFS 18727 test -z "$as_dir" && as_dir=. 18728 for ac_exec_ext in '' $ac_executable_extensions; do 18729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18730 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18732 break 2 18733 fi 18734 done 18735 done 18736 IFS=$as_save_IFS 18737 18738 ;; 18739 esac 18740 fi 18741 TIME=$ac_cv_path_TIME 18742 if test -n "$TIME"; then 18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18744 $as_echo "$TIME" >&6; } 18745 else 18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18747 $as_echo "no" >&6; } 18748 fi 18749 18750 18751 test -n "$TIME" && break 18752 done 18753 18754 else 18755 # The variable is set, but is it from the command line or the environment? 18756 18757 # Try to remove the string !TIME! from our list. 18758 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18759 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18760 # If it failed, the variable was not from the command line. Ignore it, 18761 # but warn the user (except for BASH, which is always set by the calling BASH). 18762 if test "xTIME" != xBASH; then 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18764 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18765 fi 18766 # Try to locate tool using the code snippet 18767 for ac_prog in time 18768 do 18769 # Extract the first word of "$ac_prog", so it can be a program name with args. 18770 set dummy $ac_prog; ac_word=$2 18771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18772 $as_echo_n "checking for $ac_word... " >&6; } 18773 if ${ac_cv_path_TIME+:} false; then : 18774 $as_echo_n "(cached) " >&6 18775 else 18776 case $TIME in 18777 [\\/]* | ?:[\\/]*) 18778 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18779 ;; 18780 *) 18781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18782 for as_dir in $PATH 18783 do 18784 IFS=$as_save_IFS 18785 test -z "$as_dir" && as_dir=. 18786 for ac_exec_ext in '' $ac_executable_extensions; do 18787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18788 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18790 break 2 18791 fi 18792 done 18793 done 18794 IFS=$as_save_IFS 18795 18796 ;; 18797 esac 18798 fi 18799 TIME=$ac_cv_path_TIME 18800 if test -n "$TIME"; then 18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18802 $as_echo "$TIME" >&6; } 18803 else 18804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18805 $as_echo "no" >&6; } 18806 fi 18807 18808 18809 test -n "$TIME" && break 18810 done 18811 18812 else 18813 # If it succeeded, then it was overridden by the user. We will use it 18814 # for the tool. 18815 18816 # First remove it from the list of overridden variables, so we can test 18817 # for unknown variables in the end. 18818 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18819 18820 # Check if the provided tool contains a complete path. 18821 tool_specified="$TIME" 18822 tool_basename="${tool_specified##*/}" 18823 if test "x$tool_basename" = "x$tool_specified"; then 18824 # A command without a complete path is provided, search $PATH. 18825 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18826 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18827 # Extract the first word of "$tool_basename", so it can be a program name with args. 18828 set dummy $tool_basename; ac_word=$2 18829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18830 $as_echo_n "checking for $ac_word... " >&6; } 18831 if ${ac_cv_path_TIME+:} false; then : 18832 $as_echo_n "(cached) " >&6 18833 else 18834 case $TIME in 18835 [\\/]* | ?:[\\/]*) 18836 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18837 ;; 18838 *) 18839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18840 for as_dir in $PATH 18841 do 18842 IFS=$as_save_IFS 18843 test -z "$as_dir" && as_dir=. 18844 for ac_exec_ext in '' $ac_executable_extensions; do 18845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18846 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18848 break 2 18849 fi 18850 done 18851 done 18852 IFS=$as_save_IFS 18853 18854 ;; 18855 esac 18856 fi 18857 TIME=$ac_cv_path_TIME 18858 if test -n "$TIME"; then 18859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18860 $as_echo "$TIME" >&6; } 18861 else 18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18863 $as_echo "no" >&6; } 18864 fi 18865 18866 18867 if test "x$TIME" = x; then 18868 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18869 fi 18870 else 18871 # Otherwise we believe it is a complete path. Use it as it is. 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18873 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18875 $as_echo_n "checking for TIME... " >&6; } 18876 if test ! -x "$tool_specified"; then 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18878 $as_echo "not found" >&6; } 18879 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18880 fi 18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18882 $as_echo "$tool_specified" >&6; } 18883 fi 18884 fi 18885 fi 18886 18887 18888 # Check if it's GNU time 18889 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18890 if test "x$IS_GNU_TIME" != x; then 18891 IS_GNU_TIME=yes 18892 else 18893 IS_GNU_TIME=no 18894 fi 18895 18896 18897 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18898 18899 18900 18901 # Publish this variable in the help. 18902 18903 18904 if test "x$DSYMUTIL" = x; then 18905 # The variable is not set by user, try to locate tool using the code snippet 18906 for ac_prog in dsymutil 18907 do 18908 # Extract the first word of "$ac_prog", so it can be a program name with args. 18909 set dummy $ac_prog; ac_word=$2 18910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18911 $as_echo_n "checking for $ac_word... " >&6; } 18912 if ${ac_cv_path_DSYMUTIL+:} false; then : 18913 $as_echo_n "(cached) " >&6 18914 else 18915 case $DSYMUTIL in 18916 [\\/]* | ?:[\\/]*) 18917 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18918 ;; 18919 *) 18920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18921 for as_dir in $PATH 18922 do 18923 IFS=$as_save_IFS 18924 test -z "$as_dir" && as_dir=. 18925 for ac_exec_ext in '' $ac_executable_extensions; do 18926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18927 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18929 break 2 18930 fi 18931 done 18932 done 18933 IFS=$as_save_IFS 18934 18935 ;; 18936 esac 18937 fi 18938 DSYMUTIL=$ac_cv_path_DSYMUTIL 18939 if test -n "$DSYMUTIL"; then 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18941 $as_echo "$DSYMUTIL" >&6; } 18942 else 18943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18944 $as_echo "no" >&6; } 18945 fi 18946 18947 18948 test -n "$DSYMUTIL" && break 18949 done 18950 18951 else 18952 # The variable is set, but is it from the command line or the environment? 18953 18954 # Try to remove the string !DSYMUTIL! from our list. 18955 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18956 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18957 # If it failed, the variable was not from the command line. Ignore it, 18958 # but warn the user (except for BASH, which is always set by the calling BASH). 18959 if test "xDSYMUTIL" != xBASH; then 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18961 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18962 fi 18963 # Try to locate tool using the code snippet 18964 for ac_prog in dsymutil 18965 do 18966 # Extract the first word of "$ac_prog", so it can be a program name with args. 18967 set dummy $ac_prog; ac_word=$2 18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18969 $as_echo_n "checking for $ac_word... " >&6; } 18970 if ${ac_cv_path_DSYMUTIL+:} false; then : 18971 $as_echo_n "(cached) " >&6 18972 else 18973 case $DSYMUTIL in 18974 [\\/]* | ?:[\\/]*) 18975 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18976 ;; 18977 *) 18978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18979 for as_dir in $PATH 18980 do 18981 IFS=$as_save_IFS 18982 test -z "$as_dir" && as_dir=. 18983 for ac_exec_ext in '' $ac_executable_extensions; do 18984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18985 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18987 break 2 18988 fi 18989 done 18990 done 18991 IFS=$as_save_IFS 18992 18993 ;; 18994 esac 18995 fi 18996 DSYMUTIL=$ac_cv_path_DSYMUTIL 18997 if test -n "$DSYMUTIL"; then 18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18999 $as_echo "$DSYMUTIL" >&6; } 19000 else 19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19002 $as_echo "no" >&6; } 19003 fi 19004 19005 19006 test -n "$DSYMUTIL" && break 19007 done 19008 19009 else 19010 # If it succeeded, then it was overridden by the user. We will use it 19011 # for the tool. 19012 19013 # First remove it from the list of overridden variables, so we can test 19014 # for unknown variables in the end. 19015 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19016 19017 # Check if the provided tool contains a complete path. 19018 tool_specified="$DSYMUTIL" 19019 tool_basename="${tool_specified##*/}" 19020 if test "x$tool_basename" = "x$tool_specified"; then 19021 # A command without a complete path is provided, search $PATH. 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 19023 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 19024 # Extract the first word of "$tool_basename", so it can be a program name with args. 19025 set dummy $tool_basename; ac_word=$2 19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19027 $as_echo_n "checking for $ac_word... " >&6; } 19028 if ${ac_cv_path_DSYMUTIL+:} false; then : 19029 $as_echo_n "(cached) " >&6 19030 else 19031 case $DSYMUTIL in 19032 [\\/]* | ?:[\\/]*) 19033 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 19034 ;; 19035 *) 19036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19037 for as_dir in $PATH 19038 do 19039 IFS=$as_save_IFS 19040 test -z "$as_dir" && as_dir=. 19041 for ac_exec_ext in '' $ac_executable_extensions; do 19042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19043 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 19044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19045 break 2 19046 fi 19047 done 19048 done 19049 IFS=$as_save_IFS 19050 19051 ;; 19052 esac 19053 fi 19054 DSYMUTIL=$ac_cv_path_DSYMUTIL 19055 if test -n "$DSYMUTIL"; then 19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 19057 $as_echo "$DSYMUTIL" >&6; } 19058 else 19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19060 $as_echo "no" >&6; } 19061 fi 19062 19063 19064 if test "x$DSYMUTIL" = x; then 19065 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19066 fi 19067 else 19068 # Otherwise we believe it is a complete path. Use it as it is. 19069 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19070 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19072 $as_echo_n "checking for DSYMUTIL... " >&6; } 19073 if test ! -x "$tool_specified"; then 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19075 $as_echo "not found" >&6; } 19076 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19077 fi 19078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19079 $as_echo "$tool_specified" >&6; } 19080 fi 19081 fi 19082 fi 19083 19084 19085 19086 if test "x$DSYMUTIL" = x; then 19087 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19088 fi 19089 19090 19091 19092 19093 19094 # Publish this variable in the help. 19095 19096 19097 if test "x$XATTR" = x; then 19098 # The variable is not set by user, try to locate tool using the code snippet 19099 for ac_prog in xattr 19100 do 19101 # Extract the first word of "$ac_prog", so it can be a program name with args. 19102 set dummy $ac_prog; ac_word=$2 19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19104 $as_echo_n "checking for $ac_word... " >&6; } 19105 if ${ac_cv_path_XATTR+:} false; then : 19106 $as_echo_n "(cached) " >&6 19107 else 19108 case $XATTR in 19109 [\\/]* | ?:[\\/]*) 19110 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19111 ;; 19112 *) 19113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19114 for as_dir in $PATH 19115 do 19116 IFS=$as_save_IFS 19117 test -z "$as_dir" && as_dir=. 19118 for ac_exec_ext in '' $ac_executable_extensions; do 19119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19120 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19122 break 2 19123 fi 19124 done 19125 done 19126 IFS=$as_save_IFS 19127 19128 ;; 19129 esac 19130 fi 19131 XATTR=$ac_cv_path_XATTR 19132 if test -n "$XATTR"; then 19133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19134 $as_echo "$XATTR" >&6; } 19135 else 19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19137 $as_echo "no" >&6; } 19138 fi 19139 19140 19141 test -n "$XATTR" && break 19142 done 19143 19144 else 19145 # The variable is set, but is it from the command line or the environment? 19146 19147 # Try to remove the string !XATTR! from our list. 19148 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19149 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19150 # If it failed, the variable was not from the command line. Ignore it, 19151 # but warn the user (except for BASH, which is always set by the calling BASH). 19152 if test "xXATTR" != xBASH; then 19153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19154 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19155 fi 19156 # Try to locate tool using the code snippet 19157 for ac_prog in xattr 19158 do 19159 # Extract the first word of "$ac_prog", so it can be a program name with args. 19160 set dummy $ac_prog; ac_word=$2 19161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19162 $as_echo_n "checking for $ac_word... " >&6; } 19163 if ${ac_cv_path_XATTR+:} false; then : 19164 $as_echo_n "(cached) " >&6 19165 else 19166 case $XATTR in 19167 [\\/]* | ?:[\\/]*) 19168 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19169 ;; 19170 *) 19171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19172 for as_dir in $PATH 19173 do 19174 IFS=$as_save_IFS 19175 test -z "$as_dir" && as_dir=. 19176 for ac_exec_ext in '' $ac_executable_extensions; do 19177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19178 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19180 break 2 19181 fi 19182 done 19183 done 19184 IFS=$as_save_IFS 19185 19186 ;; 19187 esac 19188 fi 19189 XATTR=$ac_cv_path_XATTR 19190 if test -n "$XATTR"; then 19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19192 $as_echo "$XATTR" >&6; } 19193 else 19194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19195 $as_echo "no" >&6; } 19196 fi 19197 19198 19199 test -n "$XATTR" && break 19200 done 19201 19202 else 19203 # If it succeeded, then it was overridden by the user. We will use it 19204 # for the tool. 19205 19206 # First remove it from the list of overridden variables, so we can test 19207 # for unknown variables in the end. 19208 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19209 19210 # Check if the provided tool contains a complete path. 19211 tool_specified="$XATTR" 19212 tool_basename="${tool_specified##*/}" 19213 if test "x$tool_basename" = "x$tool_specified"; then 19214 # A command without a complete path is provided, search $PATH. 19215 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19216 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19217 # Extract the first word of "$tool_basename", so it can be a program name with args. 19218 set dummy $tool_basename; ac_word=$2 19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19220 $as_echo_n "checking for $ac_word... " >&6; } 19221 if ${ac_cv_path_XATTR+:} false; then : 19222 $as_echo_n "(cached) " >&6 19223 else 19224 case $XATTR in 19225 [\\/]* | ?:[\\/]*) 19226 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19227 ;; 19228 *) 19229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19230 for as_dir in $PATH 19231 do 19232 IFS=$as_save_IFS 19233 test -z "$as_dir" && as_dir=. 19234 for ac_exec_ext in '' $ac_executable_extensions; do 19235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19236 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19238 break 2 19239 fi 19240 done 19241 done 19242 IFS=$as_save_IFS 19243 19244 ;; 19245 esac 19246 fi 19247 XATTR=$ac_cv_path_XATTR 19248 if test -n "$XATTR"; then 19249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19250 $as_echo "$XATTR" >&6; } 19251 else 19252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19253 $as_echo "no" >&6; } 19254 fi 19255 19256 19257 if test "x$XATTR" = x; then 19258 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19259 fi 19260 else 19261 # Otherwise we believe it is a complete path. Use it as it is. 19262 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19263 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19265 $as_echo_n "checking for XATTR... " >&6; } 19266 if test ! -x "$tool_specified"; then 19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19268 $as_echo "not found" >&6; } 19269 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19270 fi 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19272 $as_echo "$tool_specified" >&6; } 19273 fi 19274 fi 19275 fi 19276 19277 19278 19279 if test "x$XATTR" = x; then 19280 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19281 fi 19282 19283 19284 19285 19286 # Publish this variable in the help. 19287 19288 19289 if test "x$CODESIGN" = x; then 19290 # The variable is not set by user, try to locate tool using the code snippet 19291 for ac_prog in codesign 19292 do 19293 # Extract the first word of "$ac_prog", so it can be a program name with args. 19294 set dummy $ac_prog; ac_word=$2 19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19296 $as_echo_n "checking for $ac_word... " >&6; } 19297 if ${ac_cv_path_CODESIGN+:} false; then : 19298 $as_echo_n "(cached) " >&6 19299 else 19300 case $CODESIGN in 19301 [\\/]* | ?:[\\/]*) 19302 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19303 ;; 19304 *) 19305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19306 for as_dir in $PATH 19307 do 19308 IFS=$as_save_IFS 19309 test -z "$as_dir" && as_dir=. 19310 for ac_exec_ext in '' $ac_executable_extensions; do 19311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19312 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19314 break 2 19315 fi 19316 done 19317 done 19318 IFS=$as_save_IFS 19319 19320 ;; 19321 esac 19322 fi 19323 CODESIGN=$ac_cv_path_CODESIGN 19324 if test -n "$CODESIGN"; then 19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19326 $as_echo "$CODESIGN" >&6; } 19327 else 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19329 $as_echo "no" >&6; } 19330 fi 19331 19332 19333 test -n "$CODESIGN" && break 19334 done 19335 19336 else 19337 # The variable is set, but is it from the command line or the environment? 19338 19339 # Try to remove the string !CODESIGN! from our list. 19340 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19341 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19342 # If it failed, the variable was not from the command line. Ignore it, 19343 # but warn the user (except for BASH, which is always set by the calling BASH). 19344 if test "xCODESIGN" != xBASH; then 19345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19346 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19347 fi 19348 # Try to locate tool using the code snippet 19349 for ac_prog in codesign 19350 do 19351 # Extract the first word of "$ac_prog", so it can be a program name with args. 19352 set dummy $ac_prog; ac_word=$2 19353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19354 $as_echo_n "checking for $ac_word... " >&6; } 19355 if ${ac_cv_path_CODESIGN+:} false; then : 19356 $as_echo_n "(cached) " >&6 19357 else 19358 case $CODESIGN in 19359 [\\/]* | ?:[\\/]*) 19360 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19361 ;; 19362 *) 19363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19364 for as_dir in $PATH 19365 do 19366 IFS=$as_save_IFS 19367 test -z "$as_dir" && as_dir=. 19368 for ac_exec_ext in '' $ac_executable_extensions; do 19369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19370 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19372 break 2 19373 fi 19374 done 19375 done 19376 IFS=$as_save_IFS 19377 19378 ;; 19379 esac 19380 fi 19381 CODESIGN=$ac_cv_path_CODESIGN 19382 if test -n "$CODESIGN"; then 19383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19384 $as_echo "$CODESIGN" >&6; } 19385 else 19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19387 $as_echo "no" >&6; } 19388 fi 19389 19390 19391 test -n "$CODESIGN" && break 19392 done 19393 19394 else 19395 # If it succeeded, then it was overridden by the user. We will use it 19396 # for the tool. 19397 19398 # First remove it from the list of overridden variables, so we can test 19399 # for unknown variables in the end. 19400 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19401 19402 # Check if the provided tool contains a complete path. 19403 tool_specified="$CODESIGN" 19404 tool_basename="${tool_specified##*/}" 19405 if test "x$tool_basename" = "x$tool_specified"; then 19406 # A command without a complete path is provided, search $PATH. 19407 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19408 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19409 # Extract the first word of "$tool_basename", so it can be a program name with args. 19410 set dummy $tool_basename; 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_CODESIGN+:} false; then : 19414 $as_echo_n "(cached) " >&6 19415 else 19416 case $CODESIGN in 19417 [\\/]* | ?:[\\/]*) 19418 ac_cv_path_CODESIGN="$CODESIGN" # 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_CODESIGN="$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 CODESIGN=$ac_cv_path_CODESIGN 19440 if test -n "$CODESIGN"; then 19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19442 $as_echo "$CODESIGN" >&6; } 19443 else 19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19445 $as_echo "no" >&6; } 19446 fi 19447 19448 19449 if test "x$CODESIGN" = x; then 19450 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19451 fi 19452 else 19453 # Otherwise we believe it is a complete path. Use it as it is. 19454 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19455 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19457 $as_echo_n "checking for CODESIGN... " >&6; } 19458 if test ! -x "$tool_specified"; then 19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19460 $as_echo "not found" >&6; } 19461 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19462 fi 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19464 $as_echo "$tool_specified" >&6; } 19465 fi 19466 fi 19467 fi 19468 19469 19470 if test "x$CODESIGN" != "x"; then 19471 # Verify that the openjdk_codesign certificate is present 19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19473 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19474 rm -f codesign-testfile 19475 touch codesign-testfile 19476 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19477 rm -f codesign-testfile 19478 if test "x$CODESIGN" = x; then 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19480 $as_echo "no" >&6; } 19481 else 19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19483 $as_echo "yes" >&6; } 19484 fi 19485 fi 19486 fi 19487 19488 19489 # Test if bash supports pipefail. 19490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports pipefail" >&5 19491 $as_echo_n "checking if bash supports pipefail... " >&6; } 19492 if ${BASH} -c 'set -o pipefail'; then 19493 BASH_ARGS="$BASH_ARGS -o pipefail" 19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19495 $as_echo "yes" >&6; } 19496 else 19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19498 $as_echo "no" >&6; } 19499 fi 19500 19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bash supports errexit (-e)" >&5 19502 $as_echo_n "checking if bash supports errexit (-e)... " >&6; } 19503 if ${BASH} -e -c 'true'; then 19504 BASH_ARGS="$BASH_ARGS -e" 19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19506 $as_echo "yes" >&6; } 19507 else 19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19509 $as_echo "no" >&6; } 19510 fi 19511 19512 19513 19514 19515 # Check if pkg-config is available. 19516 19517 19518 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19519 if test -n "$ac_tool_prefix"; then 19520 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19521 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19523 $as_echo_n "checking for $ac_word... " >&6; } 19524 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19525 $as_echo_n "(cached) " >&6 19526 else 19527 case $PKG_CONFIG in 19528 [\\/]* | ?:[\\/]*) 19529 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19530 ;; 19531 *) 19532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19533 for as_dir in $PATH 19534 do 19535 IFS=$as_save_IFS 19536 test -z "$as_dir" && as_dir=. 19537 for ac_exec_ext in '' $ac_executable_extensions; do 19538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19539 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19541 break 2 19542 fi 19543 done 19544 done 19545 IFS=$as_save_IFS 19546 19547 ;; 19548 esac 19549 fi 19550 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19551 if test -n "$PKG_CONFIG"; then 19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19553 $as_echo "$PKG_CONFIG" >&6; } 19554 else 19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19556 $as_echo "no" >&6; } 19557 fi 19558 19559 19560 fi 19561 if test -z "$ac_cv_path_PKG_CONFIG"; then 19562 ac_pt_PKG_CONFIG=$PKG_CONFIG 19563 # Extract the first word of "pkg-config", so it can be a program name with args. 19564 set dummy pkg-config; ac_word=$2 19565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19566 $as_echo_n "checking for $ac_word... " >&6; } 19567 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19568 $as_echo_n "(cached) " >&6 19569 else 19570 case $ac_pt_PKG_CONFIG in 19571 [\\/]* | ?:[\\/]*) 19572 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19573 ;; 19574 *) 19575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19576 for as_dir in $PATH 19577 do 19578 IFS=$as_save_IFS 19579 test -z "$as_dir" && as_dir=. 19580 for ac_exec_ext in '' $ac_executable_extensions; do 19581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19582 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19584 break 2 19585 fi 19586 done 19587 done 19588 IFS=$as_save_IFS 19589 19590 ;; 19591 esac 19592 fi 19593 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19594 if test -n "$ac_pt_PKG_CONFIG"; then 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19596 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19597 else 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19599 $as_echo "no" >&6; } 19600 fi 19601 19602 if test "x$ac_pt_PKG_CONFIG" = x; then 19603 PKG_CONFIG="" 19604 else 19605 case $cross_compiling:$ac_tool_warned in 19606 yes:) 19607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19609 ac_tool_warned=yes ;; 19610 esac 19611 PKG_CONFIG=$ac_pt_PKG_CONFIG 19612 fi 19613 else 19614 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19615 fi 19616 19617 fi 19618 if test -n "$PKG_CONFIG"; then 19619 _pkg_min_version=0.9.0 19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19621 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19622 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19624 $as_echo "yes" >&6; } 19625 else 19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19627 $as_echo "no" >&6; } 19628 PKG_CONFIG="" 19629 fi 19630 19631 fi 19632 19633 # After basic tools have been setup, we can check build os specific details. 19634 19635 ############################################################################### 19636 19637 # Note that this is the build platform OS version! 19638 19639 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19640 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19641 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19642 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19643 19644 19645 19646 19647 19648 # Setup builddeps, for automatic downloading of tools we need. 19649 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19650 # boot-jdk setup, but we need to have basic tools setup first. 19651 19652 19653 # Check whether --with-builddeps-conf was given. 19654 if test "${with_builddeps_conf+set}" = set; then : 19655 withval=$with_builddeps_conf; 19656 fi 19657 19658 19659 19660 # Check whether --with-builddeps-server was given. 19661 if test "${with_builddeps_server+set}" = set; then : 19662 withval=$with_builddeps_server; 19663 fi 19664 19665 19666 19667 # Check whether --with-builddeps-dir was given. 19668 if test "${with_builddeps_dir+set}" = set; then : 19669 withval=$with_builddeps_dir; 19670 else 19671 with_builddeps_dir=/localhome/builddeps 19672 fi 19673 19674 19675 19676 # Check whether --with-builddeps-group was given. 19677 if test "${with_builddeps_group+set}" = set; then : 19678 withval=$with_builddeps_group; 19679 fi 19680 19681 19682 19683 19684 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19685 if test "x$with_builddeps_conf" != x; then 19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19687 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19688 builddepsfile=$with_builddeps_conf 19689 if test -s $builddepsfile; then 19690 . $builddepsfile 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19692 $as_echo "loaded!" >&6; } 19693 else 19694 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19695 fi 19696 else 19697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19698 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19699 builddepsfile=`mktemp` 19700 touch $builddepsfile 19701 # Put all found confs into a single file. 19702 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19703 # Source the file to acquire the variables 19704 if test -s $builddepsfile; then 19705 . $builddepsfile 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19707 $as_echo "found at least one!" >&6; } 19708 else 19709 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19710 fi 19711 fi 19712 # Create build and target names that use _ instead of "-" and ".". 19713 # This is necessary to use them in variable names. 19714 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19715 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19716 # Extract rewrite information for build and target 19717 eval rewritten_build=\${REWRITE_${build_var}} 19718 if test "x$rewritten_build" = x; then 19719 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19720 echo Build stays the same $rewritten_build 19721 else 19722 echo Rewriting build for builddeps into $rewritten_build 19723 fi 19724 eval rewritten_target=\${REWRITE_${target_var}} 19725 if test "x$rewritten_target" = x; then 19726 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19727 echo Target stays the same $rewritten_target 19728 else 19729 echo Rewriting target for builddeps into $rewritten_target 19730 fi 19731 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19732 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19733 fi 19734 for ac_prog in 7z unzip 19735 do 19736 # Extract the first word of "$ac_prog", so it can be a program name with args. 19737 set dummy $ac_prog; ac_word=$2 19738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19739 $as_echo_n "checking for $ac_word... " >&6; } 19740 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19741 $as_echo_n "(cached) " >&6 19742 else 19743 if test -n "$BDEPS_UNZIP"; then 19744 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19745 else 19746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19747 for as_dir in $PATH 19748 do 19749 IFS=$as_save_IFS 19750 test -z "$as_dir" && as_dir=. 19751 for ac_exec_ext in '' $ac_executable_extensions; do 19752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19753 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19755 break 2 19756 fi 19757 done 19758 done 19759 IFS=$as_save_IFS 19760 19761 fi 19762 fi 19763 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19764 if test -n "$BDEPS_UNZIP"; then 19765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19766 $as_echo "$BDEPS_UNZIP" >&6; } 19767 else 19768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19769 $as_echo "no" >&6; } 19770 fi 19771 19772 19773 test -n "$BDEPS_UNZIP" && break 19774 done 19775 19776 if test "x$BDEPS_UNZIP" = x7z; then 19777 BDEPS_UNZIP="7z x" 19778 fi 19779 19780 for ac_prog in wget lftp ftp 19781 do 19782 # Extract the first word of "$ac_prog", so it can be a program name with args. 19783 set dummy $ac_prog; ac_word=$2 19784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19785 $as_echo_n "checking for $ac_word... " >&6; } 19786 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19787 $as_echo_n "(cached) " >&6 19788 else 19789 if test -n "$BDEPS_FTP"; then 19790 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19791 else 19792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19793 for as_dir in $PATH 19794 do 19795 IFS=$as_save_IFS 19796 test -z "$as_dir" && as_dir=. 19797 for ac_exec_ext in '' $ac_executable_extensions; do 19798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19799 ac_cv_prog_BDEPS_FTP="$ac_prog" 19800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19801 break 2 19802 fi 19803 done 19804 done 19805 IFS=$as_save_IFS 19806 19807 fi 19808 fi 19809 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19810 if test -n "$BDEPS_FTP"; then 19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19812 $as_echo "$BDEPS_FTP" >&6; } 19813 else 19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19815 $as_echo "no" >&6; } 19816 fi 19817 19818 19819 test -n "$BDEPS_FTP" && break 19820 done 19821 19822 19823 19824 ############################################################################### 19825 # 19826 # Determine OpenJDK variants, options and version numbers. 19827 # 19828 ############################################################################### 19829 19830 # We need build & target for this. 19831 19832 19833 ############################################################################### 19834 # 19835 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19836 # We always build headless support. 19837 # 19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19839 $as_echo_n "checking headful support... " >&6; } 19840 # Check whether --enable-headful was given. 19841 if test "${enable_headful+set}" = set; then : 19842 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19843 else 19844 SUPPORT_HEADFUL=yes 19845 fi 19846 19847 19848 SUPPORT_HEADLESS=yes 19849 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19850 19851 if test "x$SUPPORT_HEADFUL" = xyes; then 19852 # We are building both headful and headless. 19853 headful_msg="include support for both headful and headless" 19854 fi 19855 19856 if test "x$SUPPORT_HEADFUL" = xno; then 19857 # Thus we are building headless only. 19858 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19859 headful_msg="headless only" 19860 fi 19861 19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19863 $as_echo "$headful_msg" >&6; } 19864 19865 19866 19867 19868 19869 # Control wether Hotspot runs Queens test after build. 19870 # Check whether --enable-hotspot-test-in-build was given. 19871 if test "${enable_hotspot_test_in_build+set}" = set; then : 19872 enableval=$enable_hotspot_test_in_build; 19873 else 19874 enable_hotspot_test_in_build=no 19875 fi 19876 19877 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19878 TEST_IN_BUILD=true 19879 else 19880 TEST_IN_BUILD=false 19881 fi 19882 19883 19884 ############################################################################### 19885 # 19886 # Choose cacerts source file 19887 # 19888 19889 # Check whether --with-cacerts-file was given. 19890 if test "${with_cacerts_file+set}" = set; then : 19891 withval=$with_cacerts_file; 19892 fi 19893 19894 if test "x$with_cacerts_file" != x; then 19895 CACERTS_FILE=$with_cacerts_file 19896 fi 19897 19898 19899 ############################################################################### 19900 # 19901 # Enable or disable unlimited crypto 19902 # 19903 # Check whether --enable-unlimited-crypto was given. 19904 if test "${enable_unlimited_crypto+set}" = set; then : 19905 enableval=$enable_unlimited_crypto; 19906 else 19907 enable_unlimited_crypto=no 19908 fi 19909 19910 if test "x$enable_unlimited_crypto" = "xyes"; then 19911 UNLIMITED_CRYPTO=true 19912 else 19913 UNLIMITED_CRYPTO=false 19914 fi 19915 19916 19917 ############################################################################### 19918 # 19919 # Enable or disable the elliptic curve crypto implementation 19920 # 19921 19922 19923 ############################################################################### 19924 # 19925 # --enable-rmiconnector-iiop 19926 # 19927 # Check whether --enable-rmiconnector-iiop was given. 19928 if test "${enable_rmiconnector_iiop+set}" = set; then : 19929 enableval=$enable_rmiconnector_iiop; 19930 fi 19931 19932 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19933 RMICONNECTOR_IIOP=true 19934 else 19935 RMICONNECTOR_IIOP=false 19936 fi 19937 19938 19939 ############################################################################### 19940 # 19941 # Compress jars 19942 # 19943 COMPRESS_JARS=false 19944 19945 19946 19947 19948 # Source the version numbers 19949 . $AUTOCONF_DIR/version-numbers 19950 19951 # Get the settings from parameters 19952 19953 # Check whether --with-milestone was given. 19954 if test "${with_milestone+set}" = set; then : 19955 withval=$with_milestone; 19956 fi 19957 19958 if test "x$with_milestone" = xyes; then 19959 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19960 elif test "x$with_milestone" != x; then 19961 MILESTONE="$with_milestone" 19962 fi 19963 if test "x$MILESTONE" = x; then 19964 MILESTONE=internal 19965 fi 19966 19967 19968 # Check whether --with-update-version was given. 19969 if test "${with_update_version+set}" = set; then : 19970 withval=$with_update_version; 19971 fi 19972 19973 if test "x$with_update_version" = xyes; then 19974 as_fn_error $? "Update version must have a value" "$LINENO" 5 19975 elif test "x$with_update_version" != x; then 19976 JDK_UPDATE_VERSION="$with_update_version" 19977 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19978 # to a bug in expr (which reduces it to just X). To work around this, we 19979 # always add a 0 to one digit update versions. 19980 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19981 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19982 fi 19983 fi 19984 19985 19986 # Check whether --with-user-release-suffix was given. 19987 if test "${with_user_release_suffix+set}" = set; then : 19988 withval=$with_user_release_suffix; 19989 fi 19990 19991 if test "x$with_user_release_suffix" = xyes; then 19992 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19993 elif test "x$with_user_release_suffix" != x; then 19994 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19995 fi 19996 19997 19998 # Check whether --with-build-number was given. 19999 if test "${with_build_number+set}" = set; then : 20000 withval=$with_build_number; 20001 fi 20002 20003 if test "x$with_build_number" = xyes; then 20004 as_fn_error $? "Build number must have a value" "$LINENO" 5 20005 elif test "x$with_build_number" != x; then 20006 JDK_BUILD_NUMBER="$with_build_number" 20007 fi 20008 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 20009 if test "x$JDK_BUILD_NUMBER" = x; then 20010 JDK_BUILD_NUMBER=b00 20011 if test "x$USER_RELEASE_SUFFIX" = x; then 20012 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 20013 # Avoid [:alnum:] since it depends on the locale. 20014 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 20015 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20016 fi 20017 fi 20018 20019 # Now set the JDK version, milestone, build number etc. 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 # Check whether --with-copyright-year was given. 20037 if test "${with_copyright_year+set}" = set; then : 20038 withval=$with_copyright_year; 20039 fi 20040 20041 if test "x$with_copyright_year" = xyes; then 20042 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 20043 elif test "x$with_copyright_year" != x; then 20044 COPYRIGHT_YEAR="$with_copyright_year" 20045 else 20046 COPYRIGHT_YEAR=`date +'%Y'` 20047 fi 20048 20049 20050 if test "x$JDK_UPDATE_VERSION" != x; then 20051 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 20052 else 20053 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 20054 fi 20055 20056 20057 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 20058 20059 20060 20061 ############################################################################### 20062 # 20063 # Setup BootJDK, used to bootstrap the build. 20064 # 20065 ############################################################################### 20066 20067 20068 BOOT_JDK_FOUND=no 20069 20070 # Check whether --with-boot-jdk was given. 20071 if test "${with_boot_jdk+set}" = set; then : 20072 withval=$with_boot_jdk; 20073 fi 20074 20075 20076 # We look for the Boot JDK through various means, going from more certain to 20077 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 20078 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 20079 # must check if this is indeed valid; otherwise we'll continue looking. 20080 20081 # Test: Is bootjdk explicitely set by command line arguments? 20082 20083 if test "x$BOOT_JDK_FOUND" = xno; then 20084 # Now execute the test 20085 20086 if test "x$with_boot_jdk" != x; then 20087 BOOT_JDK=$with_boot_jdk 20088 BOOT_JDK_FOUND=maybe 20089 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 20090 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 20091 fi 20092 20093 20094 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20095 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20096 # Do we have a bin/java? 20097 if test ! -x "$BOOT_JDK/bin/java"; then 20098 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20100 BOOT_JDK_FOUND=no 20101 else 20102 # Do we have a bin/javac? 20103 if test ! -x "$BOOT_JDK/bin/javac"; then 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20105 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20106 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20107 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20108 BOOT_JDK_FOUND=no 20109 else 20110 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20111 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20112 20113 # Extra M4 quote needed to protect [] in grep expression. 20114 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20115 if test "x$FOUND_CORRECT_VERSION" = x; then 20116 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20117 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20118 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20119 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20120 BOOT_JDK_FOUND=no 20121 else 20122 # We're done! :-) 20123 BOOT_JDK_FOUND=yes 20124 20125 # Only process if variable expands to non-empty 20126 20127 if test "x$BOOT_JDK" != x; then 20128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20129 20130 # Input might be given as Windows format, start by converting to 20131 # unix format. 20132 path="$BOOT_JDK" 20133 new_path=`$CYGPATH -u "$path"` 20134 20135 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20136 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20137 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20138 # "foo.exe" is OK but "foo" is an error. 20139 # 20140 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20141 # It is also a way to make sure we got the proper file name for the real test later on. 20142 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20143 if test "x$test_shortpath" = x; then 20144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20145 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20146 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20147 fi 20148 20149 # Call helper function which possibly converts this using DOS-style short mode. 20150 # If so, the updated path is stored in $new_path. 20151 20152 input_path="$new_path" 20153 # Check if we need to convert this using DOS-style short mode. If the path 20154 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20155 # take no chances and rewrite it. 20156 # Note: m4 eats our [], so we need to use [ and ] instead. 20157 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20158 if test "x$has_forbidden_chars" != x; then 20159 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20160 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20161 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20162 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20163 # Going to short mode and back again did indeed matter. Since short mode is 20164 # case insensitive, let's make it lowercase to improve readability. 20165 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20166 # Now convert it back to Unix-stile (cygpath) 20167 input_path=`$CYGPATH -u "$shortmode_path"` 20168 new_path="$input_path" 20169 fi 20170 fi 20171 20172 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20173 if test "x$test_cygdrive_prefix" = x; then 20174 # As a simple fix, exclude /usr/bin since it's not a real path. 20175 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20176 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20177 # a path prefixed by /cygdrive for fixpath to work. 20178 new_path="$CYGWIN_ROOT_PATH$input_path" 20179 fi 20180 fi 20181 20182 20183 if test "x$path" != "x$new_path"; then 20184 BOOT_JDK="$new_path" 20185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20186 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20187 fi 20188 20189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20190 20191 path="$BOOT_JDK" 20192 has_colon=`$ECHO $path | $GREP ^.:` 20193 new_path="$path" 20194 if test "x$has_colon" = x; then 20195 # Not in mixed or Windows style, start by that. 20196 new_path=`cmd //c echo $path` 20197 fi 20198 20199 20200 input_path="$new_path" 20201 # Check if we need to convert this using DOS-style short mode. If the path 20202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20203 # take no chances and rewrite it. 20204 # Note: m4 eats our [], so we need to use [ and ] instead. 20205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20206 if test "x$has_forbidden_chars" != x; then 20207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20208 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20209 fi 20210 20211 20212 windows_path="$new_path" 20213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20214 unix_path=`$CYGPATH -u "$windows_path"` 20215 new_path="$unix_path" 20216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20218 new_path="$unix_path" 20219 fi 20220 20221 if test "x$path" != "x$new_path"; then 20222 BOOT_JDK="$new_path" 20223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20224 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20225 fi 20226 20227 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20228 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20229 20230 else 20231 # We're on a unix platform. Hooray! :) 20232 path="$BOOT_JDK" 20233 has_space=`$ECHO "$path" | $GREP " "` 20234 if test "x$has_space" != x; then 20235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20236 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20237 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20238 fi 20239 20240 # Use eval to expand a potential ~ 20241 eval path="$path" 20242 if test ! -f "$path" && test ! -d "$path"; then 20243 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20244 fi 20245 20246 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20247 fi 20248 fi 20249 20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20251 $as_echo_n "checking for Boot JDK... " >&6; } 20252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20253 $as_echo "$BOOT_JDK" >&6; } 20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20255 $as_echo_n "checking Boot JDK version... " >&6; } 20256 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20258 $as_echo "$BOOT_JDK_VERSION" >&6; } 20259 fi # end check jdk version 20260 fi # end check javac 20261 fi # end check java 20262 fi # end check boot jdk found 20263 fi 20264 20265 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20266 # Having specified an argument which is incorrect will produce an instant failure; 20267 # we should not go on looking 20268 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20269 fi 20270 20271 # Test: Is bootjdk available from builddeps? 20272 20273 if test "x$BOOT_JDK_FOUND" = xno; then 20274 # Now execute the test 20275 20276 20277 20278 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20279 # Source the builddeps file again, to make sure it uses the latest variables! 20280 . $builddepsfile 20281 # Look for a target and build machine specific resource! 20282 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20283 if test "x$resource" = x; then 20284 # Ok, lets instead look for a target specific resource 20285 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20286 fi 20287 if test "x$resource" = x; then 20288 # Ok, lets instead look for a build specific resource 20289 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20290 fi 20291 if test "x$resource" = x; then 20292 # Ok, lets instead look for a generic resource 20293 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20294 resource=${builddep_bootjdk} 20295 fi 20296 if test "x$resource" != x; then 20297 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20298 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20299 # If the resource in the builddeps.conf file is an existing directory, 20300 # for example /java/linux/cups 20301 if test -d ${resource}; then 20302 depdir=${resource} 20303 else 20304 20305 # bootjdk is for example mymodule 20306 # $resource is for example libs/general/libmymod_1_2_3.zip 20307 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20308 # $with_builddeps_dir is for example /localhome/builddeps 20309 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20310 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20311 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20312 filename=`basename $resource` 20313 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20314 filebase=${filename%%.*} 20315 extension=${filename#*.} 20316 installdir=$with_builddeps_dir/$filebase 20317 if test ! -f $installdir/$filename.unpacked; then 20318 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20319 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20320 if test ! -d $installdir; then 20321 mkdir -p $installdir 20322 fi 20323 if test ! -d $installdir; then 20324 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20325 fi 20326 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20327 touch $tmpfile 20328 if test ! -f $tmpfile; then 20329 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20330 fi 20331 20332 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20333 # $tmpfile is the local file name for the downloaded file. 20334 VALID_TOOL=no 20335 if test "x$BDEPS_FTP" = xwget; then 20336 VALID_TOOL=yes 20337 wget -O $tmpfile $with_builddeps_server/$resource 20338 fi 20339 if test "x$BDEPS_FTP" = xlftp; then 20340 VALID_TOOL=yes 20341 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20342 fi 20343 if test "x$BDEPS_FTP" = xftp; then 20344 VALID_TOOL=yes 20345 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20346 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20347 FTPUSERPWD=${FTPSERVER%%@*} 20348 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20349 FTPUSER=${userpwd%%:*} 20350 FTPPWD=${userpwd#*@} 20351 FTPSERVER=${FTPSERVER#*@} 20352 else 20353 FTPUSER=ftp 20354 FTPPWD=ftp 20355 fi 20356 # the "pass" command does not work on some 20357 # ftp clients (read ftp.exe) but if it works, 20358 # passive mode is better! 20359 ( \ 20360 echo "user $FTPUSER $FTPPWD" ; \ 20361 echo "pass" ; \ 20362 echo "bin" ; \ 20363 echo "get $FTPPATH $tmpfile" ; \ 20364 ) | ftp -in $FTPSERVER 20365 fi 20366 if test "x$VALID_TOOL" != xyes; then 20367 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20368 fi 20369 20370 mv $tmpfile $installdir/$filename 20371 if test ! -s $installdir/$filename; then 20372 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20373 fi 20374 case "$extension" in 20375 zip) echo "Unzipping $installdir/$filename..." 20376 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20377 ;; 20378 tar.gz) echo "Untaring $installdir/$filename..." 20379 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20380 ;; 20381 tgz) echo "Untaring $installdir/$filename..." 20382 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20383 ;; 20384 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20385 ;; 20386 esac 20387 fi 20388 if test -f $installdir/$filename.unpacked; then 20389 depdir=$installdir 20390 fi 20391 20392 fi 20393 # Source the builddeps file again, because in the previous command, the depdir 20394 # was updated to point at the current build dependency install directory. 20395 . $builddepsfile 20396 # Now extract variables from the builddeps.conf files. 20397 theroot=${builddep_bootjdk_ROOT} 20398 thecflags=${builddep_bootjdk_CFLAGS} 20399 thelibs=${builddep_bootjdk_LIBS} 20400 if test "x$depdir" = x; then 20401 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20402 fi 20403 BOOT_JDK=$depdir 20404 if test "x$theroot" != x; then 20405 BOOT_JDK="$theroot" 20406 fi 20407 if test "x$thecflags" != x; then 20408 BOOT_JDK_CFLAGS="$thecflags" 20409 fi 20410 if test "x$thelibs" != x; then 20411 BOOT_JDK_LIBS="$thelibs" 20412 fi 20413 BOOT_JDK_FOUND=maybe 20414 else BOOT_JDK_FOUND=no 20415 20416 fi 20417 else BOOT_JDK_FOUND=no 20418 20419 fi 20420 20421 20422 20423 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20424 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20425 # Do we have a bin/java? 20426 if test ! -x "$BOOT_JDK/bin/java"; then 20427 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20428 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20429 BOOT_JDK_FOUND=no 20430 else 20431 # Do we have a bin/javac? 20432 if test ! -x "$BOOT_JDK/bin/javac"; then 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20434 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20435 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20436 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20437 BOOT_JDK_FOUND=no 20438 else 20439 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20440 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20441 20442 # Extra M4 quote needed to protect [] in grep expression. 20443 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20444 if test "x$FOUND_CORRECT_VERSION" = x; then 20445 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20447 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20448 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20449 BOOT_JDK_FOUND=no 20450 else 20451 # We're done! :-) 20452 BOOT_JDK_FOUND=yes 20453 20454 # Only process if variable expands to non-empty 20455 20456 if test "x$BOOT_JDK" != x; then 20457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20458 20459 # Input might be given as Windows format, start by converting to 20460 # unix format. 20461 path="$BOOT_JDK" 20462 new_path=`$CYGPATH -u "$path"` 20463 20464 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20465 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20466 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20467 # "foo.exe" is OK but "foo" is an error. 20468 # 20469 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20470 # It is also a way to make sure we got the proper file name for the real test later on. 20471 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20472 if test "x$test_shortpath" = x; then 20473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20474 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20475 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20476 fi 20477 20478 # Call helper function which possibly converts this using DOS-style short mode. 20479 # If so, the updated path is stored in $new_path. 20480 20481 input_path="$new_path" 20482 # Check if we need to convert this using DOS-style short mode. If the path 20483 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20484 # take no chances and rewrite it. 20485 # Note: m4 eats our [], so we need to use [ and ] instead. 20486 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20487 if test "x$has_forbidden_chars" != x; then 20488 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20489 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20490 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20491 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20492 # Going to short mode and back again did indeed matter. Since short mode is 20493 # case insensitive, let's make it lowercase to improve readability. 20494 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20495 # Now convert it back to Unix-stile (cygpath) 20496 input_path=`$CYGPATH -u "$shortmode_path"` 20497 new_path="$input_path" 20498 fi 20499 fi 20500 20501 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20502 if test "x$test_cygdrive_prefix" = x; then 20503 # As a simple fix, exclude /usr/bin since it's not a real path. 20504 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20505 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20506 # a path prefixed by /cygdrive for fixpath to work. 20507 new_path="$CYGWIN_ROOT_PATH$input_path" 20508 fi 20509 fi 20510 20511 20512 if test "x$path" != "x$new_path"; then 20513 BOOT_JDK="$new_path" 20514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20515 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20516 fi 20517 20518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20519 20520 path="$BOOT_JDK" 20521 has_colon=`$ECHO $path | $GREP ^.:` 20522 new_path="$path" 20523 if test "x$has_colon" = x; then 20524 # Not in mixed or Windows style, start by that. 20525 new_path=`cmd //c echo $path` 20526 fi 20527 20528 20529 input_path="$new_path" 20530 # Check if we need to convert this using DOS-style short mode. If the path 20531 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20532 # take no chances and rewrite it. 20533 # Note: m4 eats our [], so we need to use [ and ] instead. 20534 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20535 if test "x$has_forbidden_chars" != x; then 20536 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20537 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20538 fi 20539 20540 20541 windows_path="$new_path" 20542 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20543 unix_path=`$CYGPATH -u "$windows_path"` 20544 new_path="$unix_path" 20545 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20546 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20547 new_path="$unix_path" 20548 fi 20549 20550 if test "x$path" != "x$new_path"; then 20551 BOOT_JDK="$new_path" 20552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20553 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20554 fi 20555 20556 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20557 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20558 20559 else 20560 # We're on a unix platform. Hooray! :) 20561 path="$BOOT_JDK" 20562 has_space=`$ECHO "$path" | $GREP " "` 20563 if test "x$has_space" != x; then 20564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20565 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20566 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20567 fi 20568 20569 # Use eval to expand a potential ~ 20570 eval path="$path" 20571 if test ! -f "$path" && test ! -d "$path"; then 20572 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20573 fi 20574 20575 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20576 fi 20577 fi 20578 20579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20580 $as_echo_n "checking for Boot JDK... " >&6; } 20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20582 $as_echo "$BOOT_JDK" >&6; } 20583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20584 $as_echo_n "checking Boot JDK version... " >&6; } 20585 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20587 $as_echo "$BOOT_JDK_VERSION" >&6; } 20588 fi # end check jdk version 20589 fi # end check javac 20590 fi # end check java 20591 fi # end check boot jdk found 20592 fi 20593 20594 20595 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20596 20597 if test "x$BOOT_JDK_FOUND" = xno; then 20598 # Now execute the test 20599 20600 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20601 # First check at user selected default 20602 20603 if test "x$BOOT_JDK_FOUND" = xno; then 20604 # Now execute the test 20605 20606 if test -x /usr/libexec/java_home; then 20607 BOOT_JDK=`/usr/libexec/java_home ` 20608 BOOT_JDK_FOUND=maybe 20609 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20610 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20611 fi 20612 20613 20614 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20615 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20616 # Do we have a bin/java? 20617 if test ! -x "$BOOT_JDK/bin/java"; then 20618 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20619 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20620 BOOT_JDK_FOUND=no 20621 else 20622 # Do we have a bin/javac? 20623 if test ! -x "$BOOT_JDK/bin/javac"; then 20624 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20625 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20626 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20627 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20628 BOOT_JDK_FOUND=no 20629 else 20630 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20631 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20632 20633 # Extra M4 quote needed to protect [] in grep expression. 20634 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20635 if test "x$FOUND_CORRECT_VERSION" = x; then 20636 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20637 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20638 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20639 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20640 BOOT_JDK_FOUND=no 20641 else 20642 # We're done! :-) 20643 BOOT_JDK_FOUND=yes 20644 20645 # Only process if variable expands to non-empty 20646 20647 if test "x$BOOT_JDK" != x; then 20648 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20649 20650 # Input might be given as Windows format, start by converting to 20651 # unix format. 20652 path="$BOOT_JDK" 20653 new_path=`$CYGPATH -u "$path"` 20654 20655 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20656 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20657 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20658 # "foo.exe" is OK but "foo" is an error. 20659 # 20660 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20661 # It is also a way to make sure we got the proper file name for the real test later on. 20662 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20663 if test "x$test_shortpath" = x; then 20664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20665 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20666 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20667 fi 20668 20669 # Call helper function which possibly converts this using DOS-style short mode. 20670 # If so, the updated path is stored in $new_path. 20671 20672 input_path="$new_path" 20673 # Check if we need to convert this using DOS-style short mode. If the path 20674 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20675 # take no chances and rewrite it. 20676 # Note: m4 eats our [], so we need to use [ and ] instead. 20677 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20678 if test "x$has_forbidden_chars" != x; then 20679 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20680 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20681 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20682 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20683 # Going to short mode and back again did indeed matter. Since short mode is 20684 # case insensitive, let's make it lowercase to improve readability. 20685 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20686 # Now convert it back to Unix-stile (cygpath) 20687 input_path=`$CYGPATH -u "$shortmode_path"` 20688 new_path="$input_path" 20689 fi 20690 fi 20691 20692 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20693 if test "x$test_cygdrive_prefix" = x; then 20694 # As a simple fix, exclude /usr/bin since it's not a real path. 20695 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20696 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20697 # a path prefixed by /cygdrive for fixpath to work. 20698 new_path="$CYGWIN_ROOT_PATH$input_path" 20699 fi 20700 fi 20701 20702 20703 if test "x$path" != "x$new_path"; then 20704 BOOT_JDK="$new_path" 20705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20706 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20707 fi 20708 20709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20710 20711 path="$BOOT_JDK" 20712 has_colon=`$ECHO $path | $GREP ^.:` 20713 new_path="$path" 20714 if test "x$has_colon" = x; then 20715 # Not in mixed or Windows style, start by that. 20716 new_path=`cmd //c echo $path` 20717 fi 20718 20719 20720 input_path="$new_path" 20721 # Check if we need to convert this using DOS-style short mode. If the path 20722 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20723 # take no chances and rewrite it. 20724 # Note: m4 eats our [], so we need to use [ and ] instead. 20725 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20726 if test "x$has_forbidden_chars" != x; then 20727 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20728 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20729 fi 20730 20731 20732 windows_path="$new_path" 20733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20734 unix_path=`$CYGPATH -u "$windows_path"` 20735 new_path="$unix_path" 20736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20738 new_path="$unix_path" 20739 fi 20740 20741 if test "x$path" != "x$new_path"; then 20742 BOOT_JDK="$new_path" 20743 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20744 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20745 fi 20746 20747 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20748 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20749 20750 else 20751 # We're on a unix platform. Hooray! :) 20752 path="$BOOT_JDK" 20753 has_space=`$ECHO "$path" | $GREP " "` 20754 if test "x$has_space" != x; then 20755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20756 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20757 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20758 fi 20759 20760 # Use eval to expand a potential ~ 20761 eval path="$path" 20762 if test ! -f "$path" && test ! -d "$path"; then 20763 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20764 fi 20765 20766 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20767 fi 20768 fi 20769 20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20771 $as_echo_n "checking for Boot JDK... " >&6; } 20772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20773 $as_echo "$BOOT_JDK" >&6; } 20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20775 $as_echo_n "checking Boot JDK version... " >&6; } 20776 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20778 $as_echo "$BOOT_JDK_VERSION" >&6; } 20779 fi # end check jdk version 20780 fi # end check javac 20781 fi # end check java 20782 fi # end check boot jdk found 20783 fi 20784 20785 # If that did not work out (e.g. too old), try explicit versions instead 20786 20787 if test "x$BOOT_JDK_FOUND" = xno; then 20788 # Now execute the test 20789 20790 if test -x /usr/libexec/java_home; then 20791 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20792 BOOT_JDK_FOUND=maybe 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20794 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20795 fi 20796 20797 20798 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20799 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20800 # Do we have a bin/java? 20801 if test ! -x "$BOOT_JDK/bin/java"; then 20802 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20803 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20804 BOOT_JDK_FOUND=no 20805 else 20806 # Do we have a bin/javac? 20807 if test ! -x "$BOOT_JDK/bin/javac"; then 20808 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20810 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20811 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20812 BOOT_JDK_FOUND=no 20813 else 20814 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20815 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20816 20817 # Extra M4 quote needed to protect [] in grep expression. 20818 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20819 if test "x$FOUND_CORRECT_VERSION" = x; then 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20822 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20823 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20824 BOOT_JDK_FOUND=no 20825 else 20826 # We're done! :-) 20827 BOOT_JDK_FOUND=yes 20828 20829 # Only process if variable expands to non-empty 20830 20831 if test "x$BOOT_JDK" != x; then 20832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20833 20834 # Input might be given as Windows format, start by converting to 20835 # unix format. 20836 path="$BOOT_JDK" 20837 new_path=`$CYGPATH -u "$path"` 20838 20839 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20840 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20841 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20842 # "foo.exe" is OK but "foo" is an error. 20843 # 20844 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20845 # It is also a way to make sure we got the proper file name for the real test later on. 20846 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20847 if test "x$test_shortpath" = x; then 20848 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20849 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20850 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20851 fi 20852 20853 # Call helper function which possibly converts this using DOS-style short mode. 20854 # If so, the updated path is stored in $new_path. 20855 20856 input_path="$new_path" 20857 # Check if we need to convert this using DOS-style short mode. If the path 20858 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20859 # take no chances and rewrite it. 20860 # Note: m4 eats our [], so we need to use [ and ] instead. 20861 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20862 if test "x$has_forbidden_chars" != x; then 20863 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20864 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20865 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20866 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20867 # Going to short mode and back again did indeed matter. Since short mode is 20868 # case insensitive, let's make it lowercase to improve readability. 20869 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20870 # Now convert it back to Unix-stile (cygpath) 20871 input_path=`$CYGPATH -u "$shortmode_path"` 20872 new_path="$input_path" 20873 fi 20874 fi 20875 20876 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20877 if test "x$test_cygdrive_prefix" = x; then 20878 # As a simple fix, exclude /usr/bin since it's not a real path. 20879 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20880 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20881 # a path prefixed by /cygdrive for fixpath to work. 20882 new_path="$CYGWIN_ROOT_PATH$input_path" 20883 fi 20884 fi 20885 20886 20887 if test "x$path" != "x$new_path"; then 20888 BOOT_JDK="$new_path" 20889 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20890 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20891 fi 20892 20893 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20894 20895 path="$BOOT_JDK" 20896 has_colon=`$ECHO $path | $GREP ^.:` 20897 new_path="$path" 20898 if test "x$has_colon" = x; then 20899 # Not in mixed or Windows style, start by that. 20900 new_path=`cmd //c echo $path` 20901 fi 20902 20903 20904 input_path="$new_path" 20905 # Check if we need to convert this using DOS-style short mode. If the path 20906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20907 # take no chances and rewrite it. 20908 # Note: m4 eats our [], so we need to use [ and ] instead. 20909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20910 if test "x$has_forbidden_chars" != x; then 20911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20912 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20913 fi 20914 20915 20916 windows_path="$new_path" 20917 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20918 unix_path=`$CYGPATH -u "$windows_path"` 20919 new_path="$unix_path" 20920 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20921 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20922 new_path="$unix_path" 20923 fi 20924 20925 if test "x$path" != "x$new_path"; then 20926 BOOT_JDK="$new_path" 20927 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20928 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20929 fi 20930 20931 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20932 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20933 20934 else 20935 # We're on a unix platform. Hooray! :) 20936 path="$BOOT_JDK" 20937 has_space=`$ECHO "$path" | $GREP " "` 20938 if test "x$has_space" != x; then 20939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20940 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20941 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20942 fi 20943 20944 # Use eval to expand a potential ~ 20945 eval path="$path" 20946 if test ! -f "$path" && test ! -d "$path"; then 20947 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20948 fi 20949 20950 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20951 fi 20952 fi 20953 20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20955 $as_echo_n "checking for Boot JDK... " >&6; } 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20957 $as_echo "$BOOT_JDK" >&6; } 20958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20959 $as_echo_n "checking Boot JDK version... " >&6; } 20960 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20962 $as_echo "$BOOT_JDK_VERSION" >&6; } 20963 fi # end check jdk version 20964 fi # end check javac 20965 fi # end check java 20966 fi # end check boot jdk found 20967 fi 20968 20969 20970 if test "x$BOOT_JDK_FOUND" = xno; then 20971 # Now execute the test 20972 20973 if test -x /usr/libexec/java_home; then 20974 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20975 BOOT_JDK_FOUND=maybe 20976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20977 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20978 fi 20979 20980 20981 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20982 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20983 # Do we have a bin/java? 20984 if test ! -x "$BOOT_JDK/bin/java"; then 20985 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20986 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20987 BOOT_JDK_FOUND=no 20988 else 20989 # Do we have a bin/javac? 20990 if test ! -x "$BOOT_JDK/bin/javac"; then 20991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20993 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20994 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20995 BOOT_JDK_FOUND=no 20996 else 20997 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20998 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20999 21000 # Extra M4 quote needed to protect [] in grep expression. 21001 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21002 if test "x$FOUND_CORRECT_VERSION" = x; then 21003 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21004 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21006 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21007 BOOT_JDK_FOUND=no 21008 else 21009 # We're done! :-) 21010 BOOT_JDK_FOUND=yes 21011 21012 # Only process if variable expands to non-empty 21013 21014 if test "x$BOOT_JDK" != x; then 21015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21016 21017 # Input might be given as Windows format, start by converting to 21018 # unix format. 21019 path="$BOOT_JDK" 21020 new_path=`$CYGPATH -u "$path"` 21021 21022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21025 # "foo.exe" is OK but "foo" is an error. 21026 # 21027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21028 # It is also a way to make sure we got the proper file name for the real test later on. 21029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21030 if test "x$test_shortpath" = x; then 21031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21032 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21033 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21034 fi 21035 21036 # Call helper function which possibly converts this using DOS-style short mode. 21037 # If so, the updated path is stored in $new_path. 21038 21039 input_path="$new_path" 21040 # Check if we need to convert this using DOS-style short mode. If the path 21041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21042 # take no chances and rewrite it. 21043 # Note: m4 eats our [], so we need to use [ and ] instead. 21044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21045 if test "x$has_forbidden_chars" != x; then 21046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21050 # Going to short mode and back again did indeed matter. Since short mode is 21051 # case insensitive, let's make it lowercase to improve readability. 21052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21053 # Now convert it back to Unix-stile (cygpath) 21054 input_path=`$CYGPATH -u "$shortmode_path"` 21055 new_path="$input_path" 21056 fi 21057 fi 21058 21059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21060 if test "x$test_cygdrive_prefix" = x; then 21061 # As a simple fix, exclude /usr/bin since it's not a real path. 21062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21064 # a path prefixed by /cygdrive for fixpath to work. 21065 new_path="$CYGWIN_ROOT_PATH$input_path" 21066 fi 21067 fi 21068 21069 21070 if test "x$path" != "x$new_path"; then 21071 BOOT_JDK="$new_path" 21072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21073 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21074 fi 21075 21076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21077 21078 path="$BOOT_JDK" 21079 has_colon=`$ECHO $path | $GREP ^.:` 21080 new_path="$path" 21081 if test "x$has_colon" = x; then 21082 # Not in mixed or Windows style, start by that. 21083 new_path=`cmd //c echo $path` 21084 fi 21085 21086 21087 input_path="$new_path" 21088 # Check if we need to convert this using DOS-style short mode. If the path 21089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21090 # take no chances and rewrite it. 21091 # Note: m4 eats our [], so we need to use [ and ] instead. 21092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21093 if test "x$has_forbidden_chars" != x; then 21094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21096 fi 21097 21098 21099 windows_path="$new_path" 21100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21101 unix_path=`$CYGPATH -u "$windows_path"` 21102 new_path="$unix_path" 21103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21105 new_path="$unix_path" 21106 fi 21107 21108 if test "x$path" != "x$new_path"; then 21109 BOOT_JDK="$new_path" 21110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21111 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21112 fi 21113 21114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21116 21117 else 21118 # We're on a unix platform. Hooray! :) 21119 path="$BOOT_JDK" 21120 has_space=`$ECHO "$path" | $GREP " "` 21121 if test "x$has_space" != x; then 21122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21123 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21125 fi 21126 21127 # Use eval to expand a potential ~ 21128 eval path="$path" 21129 if test ! -f "$path" && test ! -d "$path"; then 21130 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21131 fi 21132 21133 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21134 fi 21135 fi 21136 21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21138 $as_echo_n "checking for Boot JDK... " >&6; } 21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21140 $as_echo "$BOOT_JDK" >&6; } 21141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21142 $as_echo_n "checking Boot JDK version... " >&6; } 21143 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21145 $as_echo "$BOOT_JDK_VERSION" >&6; } 21146 fi # end check jdk version 21147 fi # end check javac 21148 fi # end check java 21149 fi # end check boot jdk found 21150 fi 21151 21152 21153 if test "x$BOOT_JDK_FOUND" = xno; then 21154 # Now execute the test 21155 21156 if test -x /usr/libexec/java_home; then 21157 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21158 BOOT_JDK_FOUND=maybe 21159 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21160 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21161 fi 21162 21163 21164 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21165 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21166 # Do we have a bin/java? 21167 if test ! -x "$BOOT_JDK/bin/java"; then 21168 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21169 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21170 BOOT_JDK_FOUND=no 21171 else 21172 # Do we have a bin/javac? 21173 if test ! -x "$BOOT_JDK/bin/javac"; then 21174 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21175 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21176 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21177 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21178 BOOT_JDK_FOUND=no 21179 else 21180 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21181 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21182 21183 # Extra M4 quote needed to protect [] in grep expression. 21184 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21185 if test "x$FOUND_CORRECT_VERSION" = x; then 21186 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21187 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21188 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21189 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21190 BOOT_JDK_FOUND=no 21191 else 21192 # We're done! :-) 21193 BOOT_JDK_FOUND=yes 21194 21195 # Only process if variable expands to non-empty 21196 21197 if test "x$BOOT_JDK" != x; then 21198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21199 21200 # Input might be given as Windows format, start by converting to 21201 # unix format. 21202 path="$BOOT_JDK" 21203 new_path=`$CYGPATH -u "$path"` 21204 21205 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21206 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21207 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21208 # "foo.exe" is OK but "foo" is an error. 21209 # 21210 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21211 # It is also a way to make sure we got the proper file name for the real test later on. 21212 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21213 if test "x$test_shortpath" = x; then 21214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21216 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21217 fi 21218 21219 # Call helper function which possibly converts this using DOS-style short mode. 21220 # If so, the updated path is stored in $new_path. 21221 21222 input_path="$new_path" 21223 # Check if we need to convert this using DOS-style short mode. If the path 21224 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21225 # take no chances and rewrite it. 21226 # Note: m4 eats our [], so we need to use [ and ] instead. 21227 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21228 if test "x$has_forbidden_chars" != x; then 21229 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21230 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21231 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21232 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21233 # Going to short mode and back again did indeed matter. Since short mode is 21234 # case insensitive, let's make it lowercase to improve readability. 21235 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21236 # Now convert it back to Unix-stile (cygpath) 21237 input_path=`$CYGPATH -u "$shortmode_path"` 21238 new_path="$input_path" 21239 fi 21240 fi 21241 21242 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21243 if test "x$test_cygdrive_prefix" = x; then 21244 # As a simple fix, exclude /usr/bin since it's not a real path. 21245 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21246 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21247 # a path prefixed by /cygdrive for fixpath to work. 21248 new_path="$CYGWIN_ROOT_PATH$input_path" 21249 fi 21250 fi 21251 21252 21253 if test "x$path" != "x$new_path"; then 21254 BOOT_JDK="$new_path" 21255 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21256 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21257 fi 21258 21259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21260 21261 path="$BOOT_JDK" 21262 has_colon=`$ECHO $path | $GREP ^.:` 21263 new_path="$path" 21264 if test "x$has_colon" = x; then 21265 # Not in mixed or Windows style, start by that. 21266 new_path=`cmd //c echo $path` 21267 fi 21268 21269 21270 input_path="$new_path" 21271 # Check if we need to convert this using DOS-style short mode. If the path 21272 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21273 # take no chances and rewrite it. 21274 # Note: m4 eats our [], so we need to use [ and ] instead. 21275 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21276 if test "x$has_forbidden_chars" != x; then 21277 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21278 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21279 fi 21280 21281 21282 windows_path="$new_path" 21283 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21284 unix_path=`$CYGPATH -u "$windows_path"` 21285 new_path="$unix_path" 21286 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21287 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21288 new_path="$unix_path" 21289 fi 21290 21291 if test "x$path" != "x$new_path"; then 21292 BOOT_JDK="$new_path" 21293 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21294 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21295 fi 21296 21297 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21298 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21299 21300 else 21301 # We're on a unix platform. Hooray! :) 21302 path="$BOOT_JDK" 21303 has_space=`$ECHO "$path" | $GREP " "` 21304 if test "x$has_space" != x; then 21305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21306 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21307 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21308 fi 21309 21310 # Use eval to expand a potential ~ 21311 eval path="$path" 21312 if test ! -f "$path" && test ! -d "$path"; then 21313 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21314 fi 21315 21316 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21317 fi 21318 fi 21319 21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21321 $as_echo_n "checking for Boot JDK... " >&6; } 21322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21323 $as_echo "$BOOT_JDK" >&6; } 21324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21325 $as_echo_n "checking Boot JDK version... " >&6; } 21326 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21328 $as_echo "$BOOT_JDK_VERSION" >&6; } 21329 fi # end check jdk version 21330 fi # end check javac 21331 fi # end check java 21332 fi # end check boot jdk found 21333 fi 21334 21335 fi 21336 21337 21338 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21339 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21340 # Do we have a bin/java? 21341 if test ! -x "$BOOT_JDK/bin/java"; then 21342 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21343 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21344 BOOT_JDK_FOUND=no 21345 else 21346 # Do we have a bin/javac? 21347 if test ! -x "$BOOT_JDK/bin/javac"; then 21348 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21349 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21350 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21351 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21352 BOOT_JDK_FOUND=no 21353 else 21354 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21355 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21356 21357 # Extra M4 quote needed to protect [] in grep expression. 21358 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21359 if test "x$FOUND_CORRECT_VERSION" = x; then 21360 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21361 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21362 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21363 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21364 BOOT_JDK_FOUND=no 21365 else 21366 # We're done! :-) 21367 BOOT_JDK_FOUND=yes 21368 21369 # Only process if variable expands to non-empty 21370 21371 if test "x$BOOT_JDK" != x; then 21372 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21373 21374 # Input might be given as Windows format, start by converting to 21375 # unix format. 21376 path="$BOOT_JDK" 21377 new_path=`$CYGPATH -u "$path"` 21378 21379 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21380 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21381 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21382 # "foo.exe" is OK but "foo" is an error. 21383 # 21384 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21385 # It is also a way to make sure we got the proper file name for the real test later on. 21386 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21387 if test "x$test_shortpath" = x; then 21388 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21389 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21390 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21391 fi 21392 21393 # Call helper function which possibly converts this using DOS-style short mode. 21394 # If so, the updated path is stored in $new_path. 21395 21396 input_path="$new_path" 21397 # Check if we need to convert this using DOS-style short mode. If the path 21398 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21399 # take no chances and rewrite it. 21400 # Note: m4 eats our [], so we need to use [ and ] instead. 21401 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21402 if test "x$has_forbidden_chars" != x; then 21403 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21404 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21405 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21406 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21407 # Going to short mode and back again did indeed matter. Since short mode is 21408 # case insensitive, let's make it lowercase to improve readability. 21409 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21410 # Now convert it back to Unix-stile (cygpath) 21411 input_path=`$CYGPATH -u "$shortmode_path"` 21412 new_path="$input_path" 21413 fi 21414 fi 21415 21416 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21417 if test "x$test_cygdrive_prefix" = x; then 21418 # As a simple fix, exclude /usr/bin since it's not a real path. 21419 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21420 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21421 # a path prefixed by /cygdrive for fixpath to work. 21422 new_path="$CYGWIN_ROOT_PATH$input_path" 21423 fi 21424 fi 21425 21426 21427 if test "x$path" != "x$new_path"; then 21428 BOOT_JDK="$new_path" 21429 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21430 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21431 fi 21432 21433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21434 21435 path="$BOOT_JDK" 21436 has_colon=`$ECHO $path | $GREP ^.:` 21437 new_path="$path" 21438 if test "x$has_colon" = x; then 21439 # Not in mixed or Windows style, start by that. 21440 new_path=`cmd //c echo $path` 21441 fi 21442 21443 21444 input_path="$new_path" 21445 # Check if we need to convert this using DOS-style short mode. If the path 21446 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21447 # take no chances and rewrite it. 21448 # Note: m4 eats our [], so we need to use [ and ] instead. 21449 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21450 if test "x$has_forbidden_chars" != x; then 21451 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21452 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21453 fi 21454 21455 21456 windows_path="$new_path" 21457 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21458 unix_path=`$CYGPATH -u "$windows_path"` 21459 new_path="$unix_path" 21460 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21461 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21462 new_path="$unix_path" 21463 fi 21464 21465 if test "x$path" != "x$new_path"; then 21466 BOOT_JDK="$new_path" 21467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21468 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21469 fi 21470 21471 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21472 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21473 21474 else 21475 # We're on a unix platform. Hooray! :) 21476 path="$BOOT_JDK" 21477 has_space=`$ECHO "$path" | $GREP " "` 21478 if test "x$has_space" != x; then 21479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21480 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21481 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21482 fi 21483 21484 # Use eval to expand a potential ~ 21485 eval path="$path" 21486 if test ! -f "$path" && test ! -d "$path"; then 21487 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21488 fi 21489 21490 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21491 fi 21492 fi 21493 21494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21495 $as_echo_n "checking for Boot JDK... " >&6; } 21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21497 $as_echo "$BOOT_JDK" >&6; } 21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21499 $as_echo_n "checking Boot JDK version... " >&6; } 21500 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21502 $as_echo "$BOOT_JDK_VERSION" >&6; } 21503 fi # end check jdk version 21504 fi # end check javac 21505 fi # end check java 21506 fi # end check boot jdk found 21507 fi 21508 21509 21510 # Test: Is $JAVA_HOME set? 21511 21512 if test "x$BOOT_JDK_FOUND" = xno; then 21513 # Now execute the test 21514 21515 if test "x$JAVA_HOME" != x; then 21516 JAVA_HOME_PROCESSED="$JAVA_HOME" 21517 21518 # Only process if variable expands to non-empty 21519 21520 if test "x$JAVA_HOME_PROCESSED" != x; then 21521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21522 21523 # Input might be given as Windows format, start by converting to 21524 # unix format. 21525 path="$JAVA_HOME_PROCESSED" 21526 new_path=`$CYGPATH -u "$path"` 21527 21528 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21529 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21530 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21531 # "foo.exe" is OK but "foo" is an error. 21532 # 21533 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21534 # It is also a way to make sure we got the proper file name for the real test later on. 21535 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21536 if test "x$test_shortpath" = x; then 21537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21538 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21539 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21540 fi 21541 21542 # Call helper function which possibly converts this using DOS-style short mode. 21543 # If so, the updated path is stored in $new_path. 21544 21545 input_path="$new_path" 21546 # Check if we need to convert this using DOS-style short mode. If the path 21547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21548 # take no chances and rewrite it. 21549 # Note: m4 eats our [], so we need to use [ and ] instead. 21550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21551 if test "x$has_forbidden_chars" != x; then 21552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21553 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21554 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21555 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21556 # Going to short mode and back again did indeed matter. Since short mode is 21557 # case insensitive, let's make it lowercase to improve readability. 21558 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21559 # Now convert it back to Unix-stile (cygpath) 21560 input_path=`$CYGPATH -u "$shortmode_path"` 21561 new_path="$input_path" 21562 fi 21563 fi 21564 21565 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21566 if test "x$test_cygdrive_prefix" = x; then 21567 # As a simple fix, exclude /usr/bin since it's not a real path. 21568 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21569 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21570 # a path prefixed by /cygdrive for fixpath to work. 21571 new_path="$CYGWIN_ROOT_PATH$input_path" 21572 fi 21573 fi 21574 21575 21576 if test "x$path" != "x$new_path"; then 21577 JAVA_HOME_PROCESSED="$new_path" 21578 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21579 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21580 fi 21581 21582 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21583 21584 path="$JAVA_HOME_PROCESSED" 21585 has_colon=`$ECHO $path | $GREP ^.:` 21586 new_path="$path" 21587 if test "x$has_colon" = x; then 21588 # Not in mixed or Windows style, start by that. 21589 new_path=`cmd //c echo $path` 21590 fi 21591 21592 21593 input_path="$new_path" 21594 # Check if we need to convert this using DOS-style short mode. If the path 21595 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21596 # take no chances and rewrite it. 21597 # Note: m4 eats our [], so we need to use [ and ] instead. 21598 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21599 if test "x$has_forbidden_chars" != x; then 21600 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21601 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21602 fi 21603 21604 21605 windows_path="$new_path" 21606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21607 unix_path=`$CYGPATH -u "$windows_path"` 21608 new_path="$unix_path" 21609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21611 new_path="$unix_path" 21612 fi 21613 21614 if test "x$path" != "x$new_path"; then 21615 JAVA_HOME_PROCESSED="$new_path" 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21617 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21618 fi 21619 21620 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21621 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21622 21623 else 21624 # We're on a unix platform. Hooray! :) 21625 path="$JAVA_HOME_PROCESSED" 21626 has_space=`$ECHO "$path" | $GREP " "` 21627 if test "x$has_space" != x; then 21628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21629 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21630 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21631 fi 21632 21633 # Use eval to expand a potential ~ 21634 eval path="$path" 21635 if test ! -f "$path" && test ! -d "$path"; then 21636 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21637 fi 21638 21639 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21640 fi 21641 fi 21642 21643 if test ! -d "$JAVA_HOME_PROCESSED"; then 21644 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21645 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21646 else 21647 # Aha, the user has set a JAVA_HOME 21648 # let us use that as the Boot JDK. 21649 BOOT_JDK="$JAVA_HOME_PROCESSED" 21650 BOOT_JDK_FOUND=maybe 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21652 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21653 fi 21654 fi 21655 21656 21657 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21658 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21659 # Do we have a bin/java? 21660 if test ! -x "$BOOT_JDK/bin/java"; then 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21663 BOOT_JDK_FOUND=no 21664 else 21665 # Do we have a bin/javac? 21666 if test ! -x "$BOOT_JDK/bin/javac"; then 21667 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21668 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21669 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21670 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21671 BOOT_JDK_FOUND=no 21672 else 21673 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21674 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21675 21676 # Extra M4 quote needed to protect [] in grep expression. 21677 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21678 if test "x$FOUND_CORRECT_VERSION" = x; then 21679 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21680 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21681 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21682 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21683 BOOT_JDK_FOUND=no 21684 else 21685 # We're done! :-) 21686 BOOT_JDK_FOUND=yes 21687 21688 # Only process if variable expands to non-empty 21689 21690 if test "x$BOOT_JDK" != x; then 21691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21692 21693 # Input might be given as Windows format, start by converting to 21694 # unix format. 21695 path="$BOOT_JDK" 21696 new_path=`$CYGPATH -u "$path"` 21697 21698 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21699 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21700 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21701 # "foo.exe" is OK but "foo" is an error. 21702 # 21703 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21704 # It is also a way to make sure we got the proper file name for the real test later on. 21705 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21706 if test "x$test_shortpath" = x; then 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21708 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21709 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21710 fi 21711 21712 # Call helper function which possibly converts this using DOS-style short mode. 21713 # If so, the updated path is stored in $new_path. 21714 21715 input_path="$new_path" 21716 # Check if we need to convert this using DOS-style short mode. If the path 21717 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21718 # take no chances and rewrite it. 21719 # Note: m4 eats our [], so we need to use [ and ] instead. 21720 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21721 if test "x$has_forbidden_chars" != x; then 21722 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21723 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21724 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21725 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21726 # Going to short mode and back again did indeed matter. Since short mode is 21727 # case insensitive, let's make it lowercase to improve readability. 21728 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21729 # Now convert it back to Unix-stile (cygpath) 21730 input_path=`$CYGPATH -u "$shortmode_path"` 21731 new_path="$input_path" 21732 fi 21733 fi 21734 21735 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21736 if test "x$test_cygdrive_prefix" = x; then 21737 # As a simple fix, exclude /usr/bin since it's not a real path. 21738 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21739 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21740 # a path prefixed by /cygdrive for fixpath to work. 21741 new_path="$CYGWIN_ROOT_PATH$input_path" 21742 fi 21743 fi 21744 21745 21746 if test "x$path" != "x$new_path"; then 21747 BOOT_JDK="$new_path" 21748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21749 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21750 fi 21751 21752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21753 21754 path="$BOOT_JDK" 21755 has_colon=`$ECHO $path | $GREP ^.:` 21756 new_path="$path" 21757 if test "x$has_colon" = x; then 21758 # Not in mixed or Windows style, start by that. 21759 new_path=`cmd //c echo $path` 21760 fi 21761 21762 21763 input_path="$new_path" 21764 # Check if we need to convert this using DOS-style short mode. If the path 21765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21766 # take no chances and rewrite it. 21767 # Note: m4 eats our [], so we need to use [ and ] instead. 21768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21769 if test "x$has_forbidden_chars" != x; then 21770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21771 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21772 fi 21773 21774 21775 windows_path="$new_path" 21776 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21777 unix_path=`$CYGPATH -u "$windows_path"` 21778 new_path="$unix_path" 21779 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21780 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21781 new_path="$unix_path" 21782 fi 21783 21784 if test "x$path" != "x$new_path"; then 21785 BOOT_JDK="$new_path" 21786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21787 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21788 fi 21789 21790 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21791 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21792 21793 else 21794 # We're on a unix platform. Hooray! :) 21795 path="$BOOT_JDK" 21796 has_space=`$ECHO "$path" | $GREP " "` 21797 if test "x$has_space" != x; then 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21799 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21800 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21801 fi 21802 21803 # Use eval to expand a potential ~ 21804 eval path="$path" 21805 if test ! -f "$path" && test ! -d "$path"; then 21806 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21807 fi 21808 21809 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21810 fi 21811 fi 21812 21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21814 $as_echo_n "checking for Boot JDK... " >&6; } 21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21816 $as_echo "$BOOT_JDK" >&6; } 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21818 $as_echo_n "checking Boot JDK version... " >&6; } 21819 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21821 $as_echo "$BOOT_JDK_VERSION" >&6; } 21822 fi # end check jdk version 21823 fi # end check javac 21824 fi # end check java 21825 fi # end check boot jdk found 21826 fi 21827 21828 21829 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21830 21831 if test "x$BOOT_JDK_FOUND" = xno; then 21832 # Now execute the test 21833 21834 # Extract the first word of "javac", so it can be a program name with args. 21835 set dummy javac; ac_word=$2 21836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21837 $as_echo_n "checking for $ac_word... " >&6; } 21838 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21839 $as_echo_n "(cached) " >&6 21840 else 21841 case $JAVAC_CHECK in 21842 [\\/]* | ?:[\\/]*) 21843 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21844 ;; 21845 *) 21846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21847 for as_dir in $PATH 21848 do 21849 IFS=$as_save_IFS 21850 test -z "$as_dir" && as_dir=. 21851 for ac_exec_ext in '' $ac_executable_extensions; do 21852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21853 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21855 break 2 21856 fi 21857 done 21858 done 21859 IFS=$as_save_IFS 21860 21861 ;; 21862 esac 21863 fi 21864 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21865 if test -n "$JAVAC_CHECK"; then 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21867 $as_echo "$JAVAC_CHECK" >&6; } 21868 else 21869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21870 $as_echo "no" >&6; } 21871 fi 21872 21873 21874 # Extract the first word of "java", so it can be a program name with args. 21875 set dummy java; ac_word=$2 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21877 $as_echo_n "checking for $ac_word... " >&6; } 21878 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21879 $as_echo_n "(cached) " >&6 21880 else 21881 case $JAVA_CHECK in 21882 [\\/]* | ?:[\\/]*) 21883 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21884 ;; 21885 *) 21886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21887 for as_dir in $PATH 21888 do 21889 IFS=$as_save_IFS 21890 test -z "$as_dir" && as_dir=. 21891 for ac_exec_ext in '' $ac_executable_extensions; do 21892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21893 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21895 break 2 21896 fi 21897 done 21898 done 21899 IFS=$as_save_IFS 21900 21901 ;; 21902 esac 21903 fi 21904 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21905 if test -n "$JAVA_CHECK"; then 21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21907 $as_echo "$JAVA_CHECK" >&6; } 21908 else 21909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21910 $as_echo "no" >&6; } 21911 fi 21912 21913 21914 BINARY="$JAVAC_CHECK" 21915 if test "x$JAVAC_CHECK" = x; then 21916 BINARY="$JAVA_CHECK" 21917 fi 21918 if test "x$BINARY" != x; then 21919 # So there is a java(c) binary, it might be part of a JDK. 21920 # Lets find the JDK/JRE directory by following symbolic links. 21921 # Linux/GNU systems often have links from /usr/bin/java to 21922 # /etc/alternatives/java to the real JDK binary. 21923 21924 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21925 # Follow a chain of symbolic links. Use readlink 21926 # where it exists, else fall back to horribly 21927 # complicated shell code. 21928 if test "x$READLINK_TESTED" != yes; then 21929 # On MacOSX there is a readlink tool with a different 21930 # purpose than the GNU readlink tool. Check the found readlink. 21931 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21932 if test "x$ISGNU" = x; then 21933 # A readlink that we do not know how to use. 21934 # Are there other non-GNU readlinks out there? 21935 READLINK_TESTED=yes 21936 READLINK= 21937 fi 21938 fi 21939 21940 if test "x$READLINK" != x; then 21941 BINARY=`$READLINK -f $BINARY` 21942 else 21943 # Save the current directory for restoring afterwards 21944 STARTDIR=$PWD 21945 COUNTER=0 21946 sym_link_dir=`$DIRNAME $BINARY` 21947 sym_link_file=`$BASENAME $BINARY` 21948 cd $sym_link_dir 21949 # Use -P flag to resolve symlinks in directories. 21950 cd `$THEPWDCMD -P` 21951 sym_link_dir=`$THEPWDCMD -P` 21952 # Resolve file symlinks 21953 while test $COUNTER -lt 20; do 21954 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21955 if test "x$ISLINK" == x; then 21956 # This is not a symbolic link! We are done! 21957 break 21958 fi 21959 # Again resolve directory symlinks since the target of the just found 21960 # link could be in a different directory 21961 cd `$DIRNAME $ISLINK` 21962 sym_link_dir=`$THEPWDCMD -P` 21963 sym_link_file=`$BASENAME $ISLINK` 21964 let COUNTER=COUNTER+1 21965 done 21966 cd $STARTDIR 21967 BINARY=$sym_link_dir/$sym_link_file 21968 fi 21969 fi 21970 21971 BOOT_JDK=`dirname "$BINARY"` 21972 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21973 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21974 # Looks like we found ourselves an JDK 21975 BOOT_JDK_FOUND=maybe 21976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21977 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21978 fi 21979 fi 21980 21981 21982 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21983 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21984 # Do we have a bin/java? 21985 if test ! -x "$BOOT_JDK/bin/java"; then 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21987 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21988 BOOT_JDK_FOUND=no 21989 else 21990 # Do we have a bin/javac? 21991 if test ! -x "$BOOT_JDK/bin/javac"; then 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21993 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21994 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21995 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21996 BOOT_JDK_FOUND=no 21997 else 21998 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21999 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22000 22001 # Extra M4 quote needed to protect [] in grep expression. 22002 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22003 if test "x$FOUND_CORRECT_VERSION" = x; then 22004 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22005 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22007 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22008 BOOT_JDK_FOUND=no 22009 else 22010 # We're done! :-) 22011 BOOT_JDK_FOUND=yes 22012 22013 # Only process if variable expands to non-empty 22014 22015 if test "x$BOOT_JDK" != x; then 22016 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22017 22018 # Input might be given as Windows format, start by converting to 22019 # unix format. 22020 path="$BOOT_JDK" 22021 new_path=`$CYGPATH -u "$path"` 22022 22023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22026 # "foo.exe" is OK but "foo" is an error. 22027 # 22028 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22029 # It is also a way to make sure we got the proper file name for the real test later on. 22030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22031 if test "x$test_shortpath" = x; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22033 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22034 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22035 fi 22036 22037 # Call helper function which possibly converts this using DOS-style short mode. 22038 # If so, the updated path is stored in $new_path. 22039 22040 input_path="$new_path" 22041 # Check if we need to convert this using DOS-style short mode. If the path 22042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22043 # take no chances and rewrite it. 22044 # Note: m4 eats our [], so we need to use [ and ] instead. 22045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22046 if test "x$has_forbidden_chars" != x; then 22047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22048 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22049 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22050 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22051 # Going to short mode and back again did indeed matter. Since short mode is 22052 # case insensitive, let's make it lowercase to improve readability. 22053 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22054 # Now convert it back to Unix-stile (cygpath) 22055 input_path=`$CYGPATH -u "$shortmode_path"` 22056 new_path="$input_path" 22057 fi 22058 fi 22059 22060 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22061 if test "x$test_cygdrive_prefix" = x; then 22062 # As a simple fix, exclude /usr/bin since it's not a real path. 22063 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22064 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22065 # a path prefixed by /cygdrive for fixpath to work. 22066 new_path="$CYGWIN_ROOT_PATH$input_path" 22067 fi 22068 fi 22069 22070 22071 if test "x$path" != "x$new_path"; then 22072 BOOT_JDK="$new_path" 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22074 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22075 fi 22076 22077 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22078 22079 path="$BOOT_JDK" 22080 has_colon=`$ECHO $path | $GREP ^.:` 22081 new_path="$path" 22082 if test "x$has_colon" = x; then 22083 # Not in mixed or Windows style, start by that. 22084 new_path=`cmd //c echo $path` 22085 fi 22086 22087 22088 input_path="$new_path" 22089 # Check if we need to convert this using DOS-style short mode. If the path 22090 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22091 # take no chances and rewrite it. 22092 # Note: m4 eats our [], so we need to use [ and ] instead. 22093 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22094 if test "x$has_forbidden_chars" != x; then 22095 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22096 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22097 fi 22098 22099 22100 windows_path="$new_path" 22101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22102 unix_path=`$CYGPATH -u "$windows_path"` 22103 new_path="$unix_path" 22104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22106 new_path="$unix_path" 22107 fi 22108 22109 if test "x$path" != "x$new_path"; then 22110 BOOT_JDK="$new_path" 22111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22113 fi 22114 22115 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22116 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22117 22118 else 22119 # We're on a unix platform. Hooray! :) 22120 path="$BOOT_JDK" 22121 has_space=`$ECHO "$path" | $GREP " "` 22122 if test "x$has_space" != x; then 22123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22125 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22126 fi 22127 22128 # Use eval to expand a potential ~ 22129 eval path="$path" 22130 if test ! -f "$path" && test ! -d "$path"; then 22131 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22132 fi 22133 22134 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22135 fi 22136 fi 22137 22138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22139 $as_echo_n "checking for Boot JDK... " >&6; } 22140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22141 $as_echo "$BOOT_JDK" >&6; } 22142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22143 $as_echo_n "checking Boot JDK version... " >&6; } 22144 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22146 $as_echo "$BOOT_JDK_VERSION" >&6; } 22147 fi # end check jdk version 22148 fi # end check javac 22149 fi # end check java 22150 fi # end check boot jdk found 22151 fi 22152 22153 22154 # Test: Is there a JDK installed in default, well-known locations? 22155 22156 if test "x$BOOT_JDK_FOUND" = xno; then 22157 # Now execute the test 22158 22159 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22160 22161 if test "x$BOOT_JDK_FOUND" = xno; then 22162 # Now execute the test 22163 22164 if test "x$ProgramW6432" != x; then 22165 VIRTUAL_DIR="$ProgramW6432/Java" 22166 22167 windows_path="$VIRTUAL_DIR" 22168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22169 unix_path=`$CYGPATH -u "$windows_path"` 22170 VIRTUAL_DIR="$unix_path" 22171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22173 VIRTUAL_DIR="$unix_path" 22174 fi 22175 22176 22177 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22178 BOOT_JDK_SUFFIX="" 22179 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22180 if test "x$ALL_JDKS_FOUND" != x; then 22181 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22182 22183 if test "x$BOOT_JDK_FOUND" = xno; then 22184 # Now execute the test 22185 22186 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22187 if test -d "$BOOT_JDK"; then 22188 BOOT_JDK_FOUND=maybe 22189 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22190 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22191 fi 22192 22193 22194 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22195 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22196 # Do we have a bin/java? 22197 if test ! -x "$BOOT_JDK/bin/java"; then 22198 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22199 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22200 BOOT_JDK_FOUND=no 22201 else 22202 # Do we have a bin/javac? 22203 if test ! -x "$BOOT_JDK/bin/javac"; then 22204 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22205 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22206 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22207 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22208 BOOT_JDK_FOUND=no 22209 else 22210 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22211 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22212 22213 # Extra M4 quote needed to protect [] in grep expression. 22214 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22215 if test "x$FOUND_CORRECT_VERSION" = x; then 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22218 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22219 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22220 BOOT_JDK_FOUND=no 22221 else 22222 # We're done! :-) 22223 BOOT_JDK_FOUND=yes 22224 22225 # Only process if variable expands to non-empty 22226 22227 if test "x$BOOT_JDK" != x; then 22228 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22229 22230 # Input might be given as Windows format, start by converting to 22231 # unix format. 22232 path="$BOOT_JDK" 22233 new_path=`$CYGPATH -u "$path"` 22234 22235 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22236 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22237 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22238 # "foo.exe" is OK but "foo" is an error. 22239 # 22240 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22241 # It is also a way to make sure we got the proper file name for the real test later on. 22242 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22243 if test "x$test_shortpath" = x; then 22244 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22245 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22246 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22247 fi 22248 22249 # Call helper function which possibly converts this using DOS-style short mode. 22250 # If so, the updated path is stored in $new_path. 22251 22252 input_path="$new_path" 22253 # Check if we need to convert this using DOS-style short mode. If the path 22254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22255 # take no chances and rewrite it. 22256 # Note: m4 eats our [], so we need to use [ and ] instead. 22257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22258 if test "x$has_forbidden_chars" != x; then 22259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22260 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22261 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22262 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22263 # Going to short mode and back again did indeed matter. Since short mode is 22264 # case insensitive, let's make it lowercase to improve readability. 22265 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22266 # Now convert it back to Unix-stile (cygpath) 22267 input_path=`$CYGPATH -u "$shortmode_path"` 22268 new_path="$input_path" 22269 fi 22270 fi 22271 22272 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22273 if test "x$test_cygdrive_prefix" = x; then 22274 # As a simple fix, exclude /usr/bin since it's not a real path. 22275 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22276 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22277 # a path prefixed by /cygdrive for fixpath to work. 22278 new_path="$CYGWIN_ROOT_PATH$input_path" 22279 fi 22280 fi 22281 22282 22283 if test "x$path" != "x$new_path"; then 22284 BOOT_JDK="$new_path" 22285 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22286 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22287 fi 22288 22289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22290 22291 path="$BOOT_JDK" 22292 has_colon=`$ECHO $path | $GREP ^.:` 22293 new_path="$path" 22294 if test "x$has_colon" = x; then 22295 # Not in mixed or Windows style, start by that. 22296 new_path=`cmd //c echo $path` 22297 fi 22298 22299 22300 input_path="$new_path" 22301 # Check if we need to convert this using DOS-style short mode. If the path 22302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22303 # take no chances and rewrite it. 22304 # Note: m4 eats our [], so we need to use [ and ] instead. 22305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22306 if test "x$has_forbidden_chars" != x; then 22307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22308 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22309 fi 22310 22311 22312 windows_path="$new_path" 22313 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22314 unix_path=`$CYGPATH -u "$windows_path"` 22315 new_path="$unix_path" 22316 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22317 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22318 new_path="$unix_path" 22319 fi 22320 22321 if test "x$path" != "x$new_path"; then 22322 BOOT_JDK="$new_path" 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22324 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22325 fi 22326 22327 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22328 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22329 22330 else 22331 # We're on a unix platform. Hooray! :) 22332 path="$BOOT_JDK" 22333 has_space=`$ECHO "$path" | $GREP " "` 22334 if test "x$has_space" != x; then 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22336 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22337 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22338 fi 22339 22340 # Use eval to expand a potential ~ 22341 eval path="$path" 22342 if test ! -f "$path" && test ! -d "$path"; then 22343 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22344 fi 22345 22346 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22347 fi 22348 fi 22349 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22351 $as_echo_n "checking for Boot JDK... " >&6; } 22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22353 $as_echo "$BOOT_JDK" >&6; } 22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22355 $as_echo_n "checking Boot JDK version... " >&6; } 22356 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22358 $as_echo "$BOOT_JDK_VERSION" >&6; } 22359 fi # end check jdk version 22360 fi # end check javac 22361 fi # end check java 22362 fi # end check boot jdk found 22363 fi 22364 22365 done 22366 fi 22367 22368 fi 22369 22370 22371 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22372 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22373 # Do we have a bin/java? 22374 if test ! -x "$BOOT_JDK/bin/java"; then 22375 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22376 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22377 BOOT_JDK_FOUND=no 22378 else 22379 # Do we have a bin/javac? 22380 if test ! -x "$BOOT_JDK/bin/javac"; then 22381 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22382 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22383 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22384 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22385 BOOT_JDK_FOUND=no 22386 else 22387 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22388 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22389 22390 # Extra M4 quote needed to protect [] in grep expression. 22391 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22392 if test "x$FOUND_CORRECT_VERSION" = x; then 22393 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22394 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22395 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22396 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22397 BOOT_JDK_FOUND=no 22398 else 22399 # We're done! :-) 22400 BOOT_JDK_FOUND=yes 22401 22402 # Only process if variable expands to non-empty 22403 22404 if test "x$BOOT_JDK" != x; then 22405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22406 22407 # Input might be given as Windows format, start by converting to 22408 # unix format. 22409 path="$BOOT_JDK" 22410 new_path=`$CYGPATH -u "$path"` 22411 22412 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22413 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22414 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22415 # "foo.exe" is OK but "foo" is an error. 22416 # 22417 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22418 # It is also a way to make sure we got the proper file name for the real test later on. 22419 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22420 if test "x$test_shortpath" = x; then 22421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22422 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22423 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22424 fi 22425 22426 # Call helper function which possibly converts this using DOS-style short mode. 22427 # If so, the updated path is stored in $new_path. 22428 22429 input_path="$new_path" 22430 # Check if we need to convert this using DOS-style short mode. If the path 22431 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22432 # take no chances and rewrite it. 22433 # Note: m4 eats our [], so we need to use [ and ] instead. 22434 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22435 if test "x$has_forbidden_chars" != x; then 22436 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22437 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22438 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22439 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22440 # Going to short mode and back again did indeed matter. Since short mode is 22441 # case insensitive, let's make it lowercase to improve readability. 22442 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22443 # Now convert it back to Unix-stile (cygpath) 22444 input_path=`$CYGPATH -u "$shortmode_path"` 22445 new_path="$input_path" 22446 fi 22447 fi 22448 22449 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22450 if test "x$test_cygdrive_prefix" = x; then 22451 # As a simple fix, exclude /usr/bin since it's not a real path. 22452 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22453 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22454 # a path prefixed by /cygdrive for fixpath to work. 22455 new_path="$CYGWIN_ROOT_PATH$input_path" 22456 fi 22457 fi 22458 22459 22460 if test "x$path" != "x$new_path"; then 22461 BOOT_JDK="$new_path" 22462 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22463 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22464 fi 22465 22466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22467 22468 path="$BOOT_JDK" 22469 has_colon=`$ECHO $path | $GREP ^.:` 22470 new_path="$path" 22471 if test "x$has_colon" = x; then 22472 # Not in mixed or Windows style, start by that. 22473 new_path=`cmd //c echo $path` 22474 fi 22475 22476 22477 input_path="$new_path" 22478 # Check if we need to convert this using DOS-style short mode. If the path 22479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22480 # take no chances and rewrite it. 22481 # Note: m4 eats our [], so we need to use [ and ] instead. 22482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22483 if test "x$has_forbidden_chars" != x; then 22484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22485 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22486 fi 22487 22488 22489 windows_path="$new_path" 22490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22491 unix_path=`$CYGPATH -u "$windows_path"` 22492 new_path="$unix_path" 22493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22494 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22495 new_path="$unix_path" 22496 fi 22497 22498 if test "x$path" != "x$new_path"; then 22499 BOOT_JDK="$new_path" 22500 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22501 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22502 fi 22503 22504 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22505 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22506 22507 else 22508 # We're on a unix platform. Hooray! :) 22509 path="$BOOT_JDK" 22510 has_space=`$ECHO "$path" | $GREP " "` 22511 if test "x$has_space" != x; then 22512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22513 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22514 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22515 fi 22516 22517 # Use eval to expand a potential ~ 22518 eval path="$path" 22519 if test ! -f "$path" && test ! -d "$path"; then 22520 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22521 fi 22522 22523 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22524 fi 22525 fi 22526 22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22528 $as_echo_n "checking for Boot JDK... " >&6; } 22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22530 $as_echo "$BOOT_JDK" >&6; } 22531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22532 $as_echo_n "checking Boot JDK version... " >&6; } 22533 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22535 $as_echo "$BOOT_JDK_VERSION" >&6; } 22536 fi # end check jdk version 22537 fi # end check javac 22538 fi # end check java 22539 fi # end check boot jdk found 22540 fi 22541 22542 22543 if test "x$BOOT_JDK_FOUND" = xno; then 22544 # Now execute the test 22545 22546 if test "x$PROGRAMW6432" != x; then 22547 VIRTUAL_DIR="$PROGRAMW6432/Java" 22548 22549 windows_path="$VIRTUAL_DIR" 22550 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22551 unix_path=`$CYGPATH -u "$windows_path"` 22552 VIRTUAL_DIR="$unix_path" 22553 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22554 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22555 VIRTUAL_DIR="$unix_path" 22556 fi 22557 22558 22559 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22560 BOOT_JDK_SUFFIX="" 22561 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22562 if test "x$ALL_JDKS_FOUND" != x; then 22563 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22564 22565 if test "x$BOOT_JDK_FOUND" = xno; then 22566 # Now execute the test 22567 22568 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22569 if test -d "$BOOT_JDK"; then 22570 BOOT_JDK_FOUND=maybe 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22572 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22573 fi 22574 22575 22576 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22577 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22578 # Do we have a bin/java? 22579 if test ! -x "$BOOT_JDK/bin/java"; then 22580 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22581 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22582 BOOT_JDK_FOUND=no 22583 else 22584 # Do we have a bin/javac? 22585 if test ! -x "$BOOT_JDK/bin/javac"; then 22586 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22587 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22588 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22589 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22590 BOOT_JDK_FOUND=no 22591 else 22592 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22593 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22594 22595 # Extra M4 quote needed to protect [] in grep expression. 22596 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22597 if test "x$FOUND_CORRECT_VERSION" = x; then 22598 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22599 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22600 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22601 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22602 BOOT_JDK_FOUND=no 22603 else 22604 # We're done! :-) 22605 BOOT_JDK_FOUND=yes 22606 22607 # Only process if variable expands to non-empty 22608 22609 if test "x$BOOT_JDK" != x; then 22610 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22611 22612 # Input might be given as Windows format, start by converting to 22613 # unix format. 22614 path="$BOOT_JDK" 22615 new_path=`$CYGPATH -u "$path"` 22616 22617 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22618 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22619 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22620 # "foo.exe" is OK but "foo" is an error. 22621 # 22622 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22623 # It is also a way to make sure we got the proper file name for the real test later on. 22624 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22625 if test "x$test_shortpath" = x; then 22626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22627 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22628 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22629 fi 22630 22631 # Call helper function which possibly converts this using DOS-style short mode. 22632 # If so, the updated path is stored in $new_path. 22633 22634 input_path="$new_path" 22635 # Check if we need to convert this using DOS-style short mode. If the path 22636 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22637 # take no chances and rewrite it. 22638 # Note: m4 eats our [], so we need to use [ and ] instead. 22639 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22640 if test "x$has_forbidden_chars" != x; then 22641 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22642 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22643 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22644 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22645 # Going to short mode and back again did indeed matter. Since short mode is 22646 # case insensitive, let's make it lowercase to improve readability. 22647 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22648 # Now convert it back to Unix-stile (cygpath) 22649 input_path=`$CYGPATH -u "$shortmode_path"` 22650 new_path="$input_path" 22651 fi 22652 fi 22653 22654 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22655 if test "x$test_cygdrive_prefix" = x; then 22656 # As a simple fix, exclude /usr/bin since it's not a real path. 22657 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22658 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22659 # a path prefixed by /cygdrive for fixpath to work. 22660 new_path="$CYGWIN_ROOT_PATH$input_path" 22661 fi 22662 fi 22663 22664 22665 if test "x$path" != "x$new_path"; then 22666 BOOT_JDK="$new_path" 22667 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22668 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22669 fi 22670 22671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22672 22673 path="$BOOT_JDK" 22674 has_colon=`$ECHO $path | $GREP ^.:` 22675 new_path="$path" 22676 if test "x$has_colon" = x; then 22677 # Not in mixed or Windows style, start by that. 22678 new_path=`cmd //c echo $path` 22679 fi 22680 22681 22682 input_path="$new_path" 22683 # Check if we need to convert this using DOS-style short mode. If the path 22684 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22685 # take no chances and rewrite it. 22686 # Note: m4 eats our [], so we need to use [ and ] instead. 22687 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22688 if test "x$has_forbidden_chars" != x; then 22689 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22690 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22691 fi 22692 22693 22694 windows_path="$new_path" 22695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22696 unix_path=`$CYGPATH -u "$windows_path"` 22697 new_path="$unix_path" 22698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22699 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22700 new_path="$unix_path" 22701 fi 22702 22703 if test "x$path" != "x$new_path"; then 22704 BOOT_JDK="$new_path" 22705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22706 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22707 fi 22708 22709 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22710 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22711 22712 else 22713 # We're on a unix platform. Hooray! :) 22714 path="$BOOT_JDK" 22715 has_space=`$ECHO "$path" | $GREP " "` 22716 if test "x$has_space" != x; then 22717 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22718 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22719 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22720 fi 22721 22722 # Use eval to expand a potential ~ 22723 eval path="$path" 22724 if test ! -f "$path" && test ! -d "$path"; then 22725 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22726 fi 22727 22728 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22729 fi 22730 fi 22731 22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22733 $as_echo_n "checking for Boot JDK... " >&6; } 22734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22735 $as_echo "$BOOT_JDK" >&6; } 22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22737 $as_echo_n "checking Boot JDK version... " >&6; } 22738 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22740 $as_echo "$BOOT_JDK_VERSION" >&6; } 22741 fi # end check jdk version 22742 fi # end check javac 22743 fi # end check java 22744 fi # end check boot jdk found 22745 fi 22746 22747 done 22748 fi 22749 22750 fi 22751 22752 22753 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22754 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22755 # Do we have a bin/java? 22756 if test ! -x "$BOOT_JDK/bin/java"; then 22757 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22758 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22759 BOOT_JDK_FOUND=no 22760 else 22761 # Do we have a bin/javac? 22762 if test ! -x "$BOOT_JDK/bin/javac"; then 22763 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22764 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22766 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22767 BOOT_JDK_FOUND=no 22768 else 22769 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22770 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22771 22772 # Extra M4 quote needed to protect [] in grep expression. 22773 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22774 if test "x$FOUND_CORRECT_VERSION" = x; then 22775 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22776 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22777 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22778 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22779 BOOT_JDK_FOUND=no 22780 else 22781 # We're done! :-) 22782 BOOT_JDK_FOUND=yes 22783 22784 # Only process if variable expands to non-empty 22785 22786 if test "x$BOOT_JDK" != x; then 22787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22788 22789 # Input might be given as Windows format, start by converting to 22790 # unix format. 22791 path="$BOOT_JDK" 22792 new_path=`$CYGPATH -u "$path"` 22793 22794 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22795 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22796 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22797 # "foo.exe" is OK but "foo" is an error. 22798 # 22799 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22800 # It is also a way to make sure we got the proper file name for the real test later on. 22801 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22802 if test "x$test_shortpath" = x; then 22803 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22804 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22805 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22806 fi 22807 22808 # Call helper function which possibly converts this using DOS-style short mode. 22809 # If so, the updated path is stored in $new_path. 22810 22811 input_path="$new_path" 22812 # Check if we need to convert this using DOS-style short mode. If the path 22813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22814 # take no chances and rewrite it. 22815 # Note: m4 eats our [], so we need to use [ and ] instead. 22816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22817 if test "x$has_forbidden_chars" != x; then 22818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22819 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22820 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22821 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22822 # Going to short mode and back again did indeed matter. Since short mode is 22823 # case insensitive, let's make it lowercase to improve readability. 22824 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22825 # Now convert it back to Unix-stile (cygpath) 22826 input_path=`$CYGPATH -u "$shortmode_path"` 22827 new_path="$input_path" 22828 fi 22829 fi 22830 22831 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22832 if test "x$test_cygdrive_prefix" = x; then 22833 # As a simple fix, exclude /usr/bin since it's not a real path. 22834 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22835 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22836 # a path prefixed by /cygdrive for fixpath to work. 22837 new_path="$CYGWIN_ROOT_PATH$input_path" 22838 fi 22839 fi 22840 22841 22842 if test "x$path" != "x$new_path"; then 22843 BOOT_JDK="$new_path" 22844 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22845 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22846 fi 22847 22848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22849 22850 path="$BOOT_JDK" 22851 has_colon=`$ECHO $path | $GREP ^.:` 22852 new_path="$path" 22853 if test "x$has_colon" = x; then 22854 # Not in mixed or Windows style, start by that. 22855 new_path=`cmd //c echo $path` 22856 fi 22857 22858 22859 input_path="$new_path" 22860 # Check if we need to convert this using DOS-style short mode. If the path 22861 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22862 # take no chances and rewrite it. 22863 # Note: m4 eats our [], so we need to use [ and ] instead. 22864 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22865 if test "x$has_forbidden_chars" != x; then 22866 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22867 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22868 fi 22869 22870 22871 windows_path="$new_path" 22872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22873 unix_path=`$CYGPATH -u "$windows_path"` 22874 new_path="$unix_path" 22875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22877 new_path="$unix_path" 22878 fi 22879 22880 if test "x$path" != "x$new_path"; then 22881 BOOT_JDK="$new_path" 22882 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22883 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22884 fi 22885 22886 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22887 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22888 22889 else 22890 # We're on a unix platform. Hooray! :) 22891 path="$BOOT_JDK" 22892 has_space=`$ECHO "$path" | $GREP " "` 22893 if test "x$has_space" != x; then 22894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22895 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22896 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22897 fi 22898 22899 # Use eval to expand a potential ~ 22900 eval path="$path" 22901 if test ! -f "$path" && test ! -d "$path"; then 22902 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22903 fi 22904 22905 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22906 fi 22907 fi 22908 22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22910 $as_echo_n "checking for Boot JDK... " >&6; } 22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22912 $as_echo "$BOOT_JDK" >&6; } 22913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22914 $as_echo_n "checking Boot JDK version... " >&6; } 22915 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22917 $as_echo "$BOOT_JDK_VERSION" >&6; } 22918 fi # end check jdk version 22919 fi # end check javac 22920 fi # end check java 22921 fi # end check boot jdk found 22922 fi 22923 22924 22925 if test "x$BOOT_JDK_FOUND" = xno; then 22926 # Now execute the test 22927 22928 if test "x$PROGRAMFILES" != x; then 22929 VIRTUAL_DIR="$PROGRAMFILES/Java" 22930 22931 windows_path="$VIRTUAL_DIR" 22932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22933 unix_path=`$CYGPATH -u "$windows_path"` 22934 VIRTUAL_DIR="$unix_path" 22935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22937 VIRTUAL_DIR="$unix_path" 22938 fi 22939 22940 22941 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22942 BOOT_JDK_SUFFIX="" 22943 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22944 if test "x$ALL_JDKS_FOUND" != x; then 22945 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22946 22947 if test "x$BOOT_JDK_FOUND" = xno; then 22948 # Now execute the test 22949 22950 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22951 if test -d "$BOOT_JDK"; then 22952 BOOT_JDK_FOUND=maybe 22953 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22954 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22955 fi 22956 22957 22958 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22959 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22960 # Do we have a bin/java? 22961 if test ! -x "$BOOT_JDK/bin/java"; then 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22963 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22964 BOOT_JDK_FOUND=no 22965 else 22966 # Do we have a bin/javac? 22967 if test ! -x "$BOOT_JDK/bin/javac"; then 22968 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22969 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22970 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22971 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22972 BOOT_JDK_FOUND=no 22973 else 22974 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22975 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22976 22977 # Extra M4 quote needed to protect [] in grep expression. 22978 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22979 if test "x$FOUND_CORRECT_VERSION" = x; then 22980 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22981 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22982 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22983 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22984 BOOT_JDK_FOUND=no 22985 else 22986 # We're done! :-) 22987 BOOT_JDK_FOUND=yes 22988 22989 # Only process if variable expands to non-empty 22990 22991 if test "x$BOOT_JDK" != x; then 22992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22993 22994 # Input might be given as Windows format, start by converting to 22995 # unix format. 22996 path="$BOOT_JDK" 22997 new_path=`$CYGPATH -u "$path"` 22998 22999 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23000 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23001 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23002 # "foo.exe" is OK but "foo" is an error. 23003 # 23004 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23005 # It is also a way to make sure we got the proper file name for the real test later on. 23006 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23007 if test "x$test_shortpath" = x; then 23008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23009 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23010 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23011 fi 23012 23013 # Call helper function which possibly converts this using DOS-style short mode. 23014 # If so, the updated path is stored in $new_path. 23015 23016 input_path="$new_path" 23017 # Check if we need to convert this using DOS-style short mode. If the path 23018 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23019 # take no chances and rewrite it. 23020 # Note: m4 eats our [], so we need to use [ and ] instead. 23021 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23022 if test "x$has_forbidden_chars" != x; then 23023 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23024 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23025 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23026 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23027 # Going to short mode and back again did indeed matter. Since short mode is 23028 # case insensitive, let's make it lowercase to improve readability. 23029 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23030 # Now convert it back to Unix-stile (cygpath) 23031 input_path=`$CYGPATH -u "$shortmode_path"` 23032 new_path="$input_path" 23033 fi 23034 fi 23035 23036 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23037 if test "x$test_cygdrive_prefix" = x; then 23038 # As a simple fix, exclude /usr/bin since it's not a real path. 23039 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23040 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23041 # a path prefixed by /cygdrive for fixpath to work. 23042 new_path="$CYGWIN_ROOT_PATH$input_path" 23043 fi 23044 fi 23045 23046 23047 if test "x$path" != "x$new_path"; then 23048 BOOT_JDK="$new_path" 23049 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23050 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23051 fi 23052 23053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23054 23055 path="$BOOT_JDK" 23056 has_colon=`$ECHO $path | $GREP ^.:` 23057 new_path="$path" 23058 if test "x$has_colon" = x; then 23059 # Not in mixed or Windows style, start by that. 23060 new_path=`cmd //c echo $path` 23061 fi 23062 23063 23064 input_path="$new_path" 23065 # Check if we need to convert this using DOS-style short mode. If the path 23066 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23067 # take no chances and rewrite it. 23068 # Note: m4 eats our [], so we need to use [ and ] instead. 23069 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23070 if test "x$has_forbidden_chars" != x; then 23071 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23072 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23073 fi 23074 23075 23076 windows_path="$new_path" 23077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23078 unix_path=`$CYGPATH -u "$windows_path"` 23079 new_path="$unix_path" 23080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23082 new_path="$unix_path" 23083 fi 23084 23085 if test "x$path" != "x$new_path"; then 23086 BOOT_JDK="$new_path" 23087 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23088 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23089 fi 23090 23091 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23092 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23093 23094 else 23095 # We're on a unix platform. Hooray! :) 23096 path="$BOOT_JDK" 23097 has_space=`$ECHO "$path" | $GREP " "` 23098 if test "x$has_space" != x; then 23099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23100 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23101 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23102 fi 23103 23104 # Use eval to expand a potential ~ 23105 eval path="$path" 23106 if test ! -f "$path" && test ! -d "$path"; then 23107 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23108 fi 23109 23110 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23111 fi 23112 fi 23113 23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23115 $as_echo_n "checking for Boot JDK... " >&6; } 23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23117 $as_echo "$BOOT_JDK" >&6; } 23118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23119 $as_echo_n "checking Boot JDK version... " >&6; } 23120 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23122 $as_echo "$BOOT_JDK_VERSION" >&6; } 23123 fi # end check jdk version 23124 fi # end check javac 23125 fi # end check java 23126 fi # end check boot jdk found 23127 fi 23128 23129 done 23130 fi 23131 23132 fi 23133 23134 23135 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23136 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23137 # Do we have a bin/java? 23138 if test ! -x "$BOOT_JDK/bin/java"; then 23139 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23140 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23141 BOOT_JDK_FOUND=no 23142 else 23143 # Do we have a bin/javac? 23144 if test ! -x "$BOOT_JDK/bin/javac"; then 23145 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23146 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23147 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23148 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23149 BOOT_JDK_FOUND=no 23150 else 23151 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23152 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23153 23154 # Extra M4 quote needed to protect [] in grep expression. 23155 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23156 if test "x$FOUND_CORRECT_VERSION" = x; then 23157 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23158 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23159 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23160 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23161 BOOT_JDK_FOUND=no 23162 else 23163 # We're done! :-) 23164 BOOT_JDK_FOUND=yes 23165 23166 # Only process if variable expands to non-empty 23167 23168 if test "x$BOOT_JDK" != x; then 23169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23170 23171 # Input might be given as Windows format, start by converting to 23172 # unix format. 23173 path="$BOOT_JDK" 23174 new_path=`$CYGPATH -u "$path"` 23175 23176 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23177 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23178 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23179 # "foo.exe" is OK but "foo" is an error. 23180 # 23181 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23182 # It is also a way to make sure we got the proper file name for the real test later on. 23183 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23184 if test "x$test_shortpath" = x; then 23185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23186 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23187 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23188 fi 23189 23190 # Call helper function which possibly converts this using DOS-style short mode. 23191 # If so, the updated path is stored in $new_path. 23192 23193 input_path="$new_path" 23194 # Check if we need to convert this using DOS-style short mode. If the path 23195 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23196 # take no chances and rewrite it. 23197 # Note: m4 eats our [], so we need to use [ and ] instead. 23198 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23199 if test "x$has_forbidden_chars" != x; then 23200 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23201 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23202 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23203 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23204 # Going to short mode and back again did indeed matter. Since short mode is 23205 # case insensitive, let's make it lowercase to improve readability. 23206 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23207 # Now convert it back to Unix-stile (cygpath) 23208 input_path=`$CYGPATH -u "$shortmode_path"` 23209 new_path="$input_path" 23210 fi 23211 fi 23212 23213 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23214 if test "x$test_cygdrive_prefix" = x; then 23215 # As a simple fix, exclude /usr/bin since it's not a real path. 23216 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23217 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23218 # a path prefixed by /cygdrive for fixpath to work. 23219 new_path="$CYGWIN_ROOT_PATH$input_path" 23220 fi 23221 fi 23222 23223 23224 if test "x$path" != "x$new_path"; then 23225 BOOT_JDK="$new_path" 23226 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23227 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23228 fi 23229 23230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23231 23232 path="$BOOT_JDK" 23233 has_colon=`$ECHO $path | $GREP ^.:` 23234 new_path="$path" 23235 if test "x$has_colon" = x; then 23236 # Not in mixed or Windows style, start by that. 23237 new_path=`cmd //c echo $path` 23238 fi 23239 23240 23241 input_path="$new_path" 23242 # Check if we need to convert this using DOS-style short mode. If the path 23243 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23244 # take no chances and rewrite it. 23245 # Note: m4 eats our [], so we need to use [ and ] instead. 23246 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23247 if test "x$has_forbidden_chars" != x; then 23248 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23249 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23250 fi 23251 23252 23253 windows_path="$new_path" 23254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23255 unix_path=`$CYGPATH -u "$windows_path"` 23256 new_path="$unix_path" 23257 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23258 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23259 new_path="$unix_path" 23260 fi 23261 23262 if test "x$path" != "x$new_path"; then 23263 BOOT_JDK="$new_path" 23264 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23265 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23266 fi 23267 23268 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23269 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23270 23271 else 23272 # We're on a unix platform. Hooray! :) 23273 path="$BOOT_JDK" 23274 has_space=`$ECHO "$path" | $GREP " "` 23275 if test "x$has_space" != x; then 23276 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23277 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23278 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23279 fi 23280 23281 # Use eval to expand a potential ~ 23282 eval path="$path" 23283 if test ! -f "$path" && test ! -d "$path"; then 23284 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23285 fi 23286 23287 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23288 fi 23289 fi 23290 23291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23292 $as_echo_n "checking for Boot JDK... " >&6; } 23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23294 $as_echo "$BOOT_JDK" >&6; } 23295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23296 $as_echo_n "checking Boot JDK version... " >&6; } 23297 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23299 $as_echo "$BOOT_JDK_VERSION" >&6; } 23300 fi # end check jdk version 23301 fi # end check javac 23302 fi # end check java 23303 fi # end check boot jdk found 23304 fi 23305 23306 23307 if test "x$BOOT_JDK_FOUND" = xno; then 23308 # Now execute the test 23309 23310 if test "x$ProgramFiles" != x; then 23311 VIRTUAL_DIR="$ProgramFiles/Java" 23312 23313 windows_path="$VIRTUAL_DIR" 23314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23315 unix_path=`$CYGPATH -u "$windows_path"` 23316 VIRTUAL_DIR="$unix_path" 23317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23318 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23319 VIRTUAL_DIR="$unix_path" 23320 fi 23321 23322 23323 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23324 BOOT_JDK_SUFFIX="" 23325 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23326 if test "x$ALL_JDKS_FOUND" != x; then 23327 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23328 23329 if test "x$BOOT_JDK_FOUND" = xno; then 23330 # Now execute the test 23331 23332 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23333 if test -d "$BOOT_JDK"; then 23334 BOOT_JDK_FOUND=maybe 23335 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23336 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23337 fi 23338 23339 23340 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23341 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23342 # Do we have a bin/java? 23343 if test ! -x "$BOOT_JDK/bin/java"; then 23344 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23345 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23346 BOOT_JDK_FOUND=no 23347 else 23348 # Do we have a bin/javac? 23349 if test ! -x "$BOOT_JDK/bin/javac"; then 23350 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23351 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23352 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23353 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23354 BOOT_JDK_FOUND=no 23355 else 23356 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23357 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23358 23359 # Extra M4 quote needed to protect [] in grep expression. 23360 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23361 if test "x$FOUND_CORRECT_VERSION" = x; then 23362 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23363 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23364 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23365 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23366 BOOT_JDK_FOUND=no 23367 else 23368 # We're done! :-) 23369 BOOT_JDK_FOUND=yes 23370 23371 # Only process if variable expands to non-empty 23372 23373 if test "x$BOOT_JDK" != x; then 23374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23375 23376 # Input might be given as Windows format, start by converting to 23377 # unix format. 23378 path="$BOOT_JDK" 23379 new_path=`$CYGPATH -u "$path"` 23380 23381 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23382 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23383 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23384 # "foo.exe" is OK but "foo" is an error. 23385 # 23386 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23387 # It is also a way to make sure we got the proper file name for the real test later on. 23388 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23389 if test "x$test_shortpath" = x; then 23390 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23391 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23392 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23393 fi 23394 23395 # Call helper function which possibly converts this using DOS-style short mode. 23396 # If so, the updated path is stored in $new_path. 23397 23398 input_path="$new_path" 23399 # Check if we need to convert this using DOS-style short mode. If the path 23400 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23401 # take no chances and rewrite it. 23402 # Note: m4 eats our [], so we need to use [ and ] instead. 23403 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23404 if test "x$has_forbidden_chars" != x; then 23405 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23406 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23407 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23408 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23409 # Going to short mode and back again did indeed matter. Since short mode is 23410 # case insensitive, let's make it lowercase to improve readability. 23411 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23412 # Now convert it back to Unix-stile (cygpath) 23413 input_path=`$CYGPATH -u "$shortmode_path"` 23414 new_path="$input_path" 23415 fi 23416 fi 23417 23418 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23419 if test "x$test_cygdrive_prefix" = x; then 23420 # As a simple fix, exclude /usr/bin since it's not a real path. 23421 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23422 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23423 # a path prefixed by /cygdrive for fixpath to work. 23424 new_path="$CYGWIN_ROOT_PATH$input_path" 23425 fi 23426 fi 23427 23428 23429 if test "x$path" != "x$new_path"; then 23430 BOOT_JDK="$new_path" 23431 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23432 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23433 fi 23434 23435 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23436 23437 path="$BOOT_JDK" 23438 has_colon=`$ECHO $path | $GREP ^.:` 23439 new_path="$path" 23440 if test "x$has_colon" = x; then 23441 # Not in mixed or Windows style, start by that. 23442 new_path=`cmd //c echo $path` 23443 fi 23444 23445 23446 input_path="$new_path" 23447 # Check if we need to convert this using DOS-style short mode. If the path 23448 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23449 # take no chances and rewrite it. 23450 # Note: m4 eats our [], so we need to use [ and ] instead. 23451 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23452 if test "x$has_forbidden_chars" != x; then 23453 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23454 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23455 fi 23456 23457 23458 windows_path="$new_path" 23459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23460 unix_path=`$CYGPATH -u "$windows_path"` 23461 new_path="$unix_path" 23462 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23463 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23464 new_path="$unix_path" 23465 fi 23466 23467 if test "x$path" != "x$new_path"; then 23468 BOOT_JDK="$new_path" 23469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23470 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23471 fi 23472 23473 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23474 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23475 23476 else 23477 # We're on a unix platform. Hooray! :) 23478 path="$BOOT_JDK" 23479 has_space=`$ECHO "$path" | $GREP " "` 23480 if test "x$has_space" != x; then 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23482 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23483 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23484 fi 23485 23486 # Use eval to expand a potential ~ 23487 eval path="$path" 23488 if test ! -f "$path" && test ! -d "$path"; then 23489 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23490 fi 23491 23492 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23493 fi 23494 fi 23495 23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23497 $as_echo_n "checking for Boot JDK... " >&6; } 23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23499 $as_echo "$BOOT_JDK" >&6; } 23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23501 $as_echo_n "checking Boot JDK version... " >&6; } 23502 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23504 $as_echo "$BOOT_JDK_VERSION" >&6; } 23505 fi # end check jdk version 23506 fi # end check javac 23507 fi # end check java 23508 fi # end check boot jdk found 23509 fi 23510 23511 done 23512 fi 23513 23514 fi 23515 23516 23517 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23518 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23519 # Do we have a bin/java? 23520 if test ! -x "$BOOT_JDK/bin/java"; then 23521 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23522 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23523 BOOT_JDK_FOUND=no 23524 else 23525 # Do we have a bin/javac? 23526 if test ! -x "$BOOT_JDK/bin/javac"; then 23527 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23528 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23529 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23530 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23531 BOOT_JDK_FOUND=no 23532 else 23533 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23534 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23535 23536 # Extra M4 quote needed to protect [] in grep expression. 23537 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23538 if test "x$FOUND_CORRECT_VERSION" = x; then 23539 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23541 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23542 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23543 BOOT_JDK_FOUND=no 23544 else 23545 # We're done! :-) 23546 BOOT_JDK_FOUND=yes 23547 23548 # Only process if variable expands to non-empty 23549 23550 if test "x$BOOT_JDK" != x; then 23551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23552 23553 # Input might be given as Windows format, start by converting to 23554 # unix format. 23555 path="$BOOT_JDK" 23556 new_path=`$CYGPATH -u "$path"` 23557 23558 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23559 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23560 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23561 # "foo.exe" is OK but "foo" is an error. 23562 # 23563 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23564 # It is also a way to make sure we got the proper file name for the real test later on. 23565 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23566 if test "x$test_shortpath" = x; then 23567 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23568 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23569 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23570 fi 23571 23572 # Call helper function which possibly converts this using DOS-style short mode. 23573 # If so, the updated path is stored in $new_path. 23574 23575 input_path="$new_path" 23576 # Check if we need to convert this using DOS-style short mode. If the path 23577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23578 # take no chances and rewrite it. 23579 # Note: m4 eats our [], so we need to use [ and ] instead. 23580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23581 if test "x$has_forbidden_chars" != x; then 23582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23583 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23584 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23585 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23586 # Going to short mode and back again did indeed matter. Since short mode is 23587 # case insensitive, let's make it lowercase to improve readability. 23588 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23589 # Now convert it back to Unix-stile (cygpath) 23590 input_path=`$CYGPATH -u "$shortmode_path"` 23591 new_path="$input_path" 23592 fi 23593 fi 23594 23595 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23596 if test "x$test_cygdrive_prefix" = x; then 23597 # As a simple fix, exclude /usr/bin since it's not a real path. 23598 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23599 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23600 # a path prefixed by /cygdrive for fixpath to work. 23601 new_path="$CYGWIN_ROOT_PATH$input_path" 23602 fi 23603 fi 23604 23605 23606 if test "x$path" != "x$new_path"; then 23607 BOOT_JDK="$new_path" 23608 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23609 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23610 fi 23611 23612 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23613 23614 path="$BOOT_JDK" 23615 has_colon=`$ECHO $path | $GREP ^.:` 23616 new_path="$path" 23617 if test "x$has_colon" = x; then 23618 # Not in mixed or Windows style, start by that. 23619 new_path=`cmd //c echo $path` 23620 fi 23621 23622 23623 input_path="$new_path" 23624 # Check if we need to convert this using DOS-style short mode. If the path 23625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23626 # take no chances and rewrite it. 23627 # Note: m4 eats our [], so we need to use [ and ] instead. 23628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23629 if test "x$has_forbidden_chars" != x; then 23630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23631 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23632 fi 23633 23634 23635 windows_path="$new_path" 23636 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23637 unix_path=`$CYGPATH -u "$windows_path"` 23638 new_path="$unix_path" 23639 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23640 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23641 new_path="$unix_path" 23642 fi 23643 23644 if test "x$path" != "x$new_path"; then 23645 BOOT_JDK="$new_path" 23646 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23647 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23648 fi 23649 23650 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23651 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23652 23653 else 23654 # We're on a unix platform. Hooray! :) 23655 path="$BOOT_JDK" 23656 has_space=`$ECHO "$path" | $GREP " "` 23657 if test "x$has_space" != x; then 23658 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23659 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23660 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23661 fi 23662 23663 # Use eval to expand a potential ~ 23664 eval path="$path" 23665 if test ! -f "$path" && test ! -d "$path"; then 23666 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23667 fi 23668 23669 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23670 fi 23671 fi 23672 23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23674 $as_echo_n "checking for Boot JDK... " >&6; } 23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23676 $as_echo "$BOOT_JDK" >&6; } 23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23678 $as_echo_n "checking Boot JDK version... " >&6; } 23679 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23681 $as_echo "$BOOT_JDK_VERSION" >&6; } 23682 fi # end check jdk version 23683 fi # end check javac 23684 fi # end check java 23685 fi # end check boot jdk found 23686 fi 23687 23688 23689 if test "x$BOOT_JDK_FOUND" = xno; then 23690 # Now execute the test 23691 23692 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23693 BOOT_JDK_SUFFIX="" 23694 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23695 if test "x$ALL_JDKS_FOUND" != x; then 23696 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23697 23698 if test "x$BOOT_JDK_FOUND" = xno; then 23699 # Now execute the test 23700 23701 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23702 if test -d "$BOOT_JDK"; then 23703 BOOT_JDK_FOUND=maybe 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23705 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23706 fi 23707 23708 23709 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23710 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23711 # Do we have a bin/java? 23712 if test ! -x "$BOOT_JDK/bin/java"; then 23713 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23714 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23715 BOOT_JDK_FOUND=no 23716 else 23717 # Do we have a bin/javac? 23718 if test ! -x "$BOOT_JDK/bin/javac"; then 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23720 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23721 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23722 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23723 BOOT_JDK_FOUND=no 23724 else 23725 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23726 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23727 23728 # Extra M4 quote needed to protect [] in grep expression. 23729 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23730 if test "x$FOUND_CORRECT_VERSION" = x; then 23731 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23732 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23733 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23734 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23735 BOOT_JDK_FOUND=no 23736 else 23737 # We're done! :-) 23738 BOOT_JDK_FOUND=yes 23739 23740 # Only process if variable expands to non-empty 23741 23742 if test "x$BOOT_JDK" != x; then 23743 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23744 23745 # Input might be given as Windows format, start by converting to 23746 # unix format. 23747 path="$BOOT_JDK" 23748 new_path=`$CYGPATH -u "$path"` 23749 23750 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23751 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23752 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23753 # "foo.exe" is OK but "foo" is an error. 23754 # 23755 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23756 # It is also a way to make sure we got the proper file name for the real test later on. 23757 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23758 if test "x$test_shortpath" = x; then 23759 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23760 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23761 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23762 fi 23763 23764 # Call helper function which possibly converts this using DOS-style short mode. 23765 # If so, the updated path is stored in $new_path. 23766 23767 input_path="$new_path" 23768 # Check if we need to convert this using DOS-style short mode. If the path 23769 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23770 # take no chances and rewrite it. 23771 # Note: m4 eats our [], so we need to use [ and ] instead. 23772 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23773 if test "x$has_forbidden_chars" != x; then 23774 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23775 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23776 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23777 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23778 # Going to short mode and back again did indeed matter. Since short mode is 23779 # case insensitive, let's make it lowercase to improve readability. 23780 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23781 # Now convert it back to Unix-stile (cygpath) 23782 input_path=`$CYGPATH -u "$shortmode_path"` 23783 new_path="$input_path" 23784 fi 23785 fi 23786 23787 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23788 if test "x$test_cygdrive_prefix" = x; then 23789 # As a simple fix, exclude /usr/bin since it's not a real path. 23790 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23791 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23792 # a path prefixed by /cygdrive for fixpath to work. 23793 new_path="$CYGWIN_ROOT_PATH$input_path" 23794 fi 23795 fi 23796 23797 23798 if test "x$path" != "x$new_path"; then 23799 BOOT_JDK="$new_path" 23800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23801 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23802 fi 23803 23804 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23805 23806 path="$BOOT_JDK" 23807 has_colon=`$ECHO $path | $GREP ^.:` 23808 new_path="$path" 23809 if test "x$has_colon" = x; then 23810 # Not in mixed or Windows style, start by that. 23811 new_path=`cmd //c echo $path` 23812 fi 23813 23814 23815 input_path="$new_path" 23816 # Check if we need to convert this using DOS-style short mode. If the path 23817 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23818 # take no chances and rewrite it. 23819 # Note: m4 eats our [], so we need to use [ and ] instead. 23820 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23821 if test "x$has_forbidden_chars" != x; then 23822 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23823 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23824 fi 23825 23826 23827 windows_path="$new_path" 23828 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23829 unix_path=`$CYGPATH -u "$windows_path"` 23830 new_path="$unix_path" 23831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23832 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23833 new_path="$unix_path" 23834 fi 23835 23836 if test "x$path" != "x$new_path"; then 23837 BOOT_JDK="$new_path" 23838 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23839 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23840 fi 23841 23842 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23843 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23844 23845 else 23846 # We're on a unix platform. Hooray! :) 23847 path="$BOOT_JDK" 23848 has_space=`$ECHO "$path" | $GREP " "` 23849 if test "x$has_space" != x; then 23850 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23851 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23852 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23853 fi 23854 23855 # Use eval to expand a potential ~ 23856 eval path="$path" 23857 if test ! -f "$path" && test ! -d "$path"; then 23858 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23859 fi 23860 23861 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23862 fi 23863 fi 23864 23865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23866 $as_echo_n "checking for Boot JDK... " >&6; } 23867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23868 $as_echo "$BOOT_JDK" >&6; } 23869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23870 $as_echo_n "checking Boot JDK version... " >&6; } 23871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23873 $as_echo "$BOOT_JDK_VERSION" >&6; } 23874 fi # end check jdk version 23875 fi # end check javac 23876 fi # end check java 23877 fi # end check boot jdk found 23878 fi 23879 23880 done 23881 fi 23882 23883 23884 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23885 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23886 # Do we have a bin/java? 23887 if test ! -x "$BOOT_JDK/bin/java"; then 23888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23890 BOOT_JDK_FOUND=no 23891 else 23892 # Do we have a bin/javac? 23893 if test ! -x "$BOOT_JDK/bin/javac"; then 23894 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23895 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23897 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23898 BOOT_JDK_FOUND=no 23899 else 23900 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23901 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23902 23903 # Extra M4 quote needed to protect [] in grep expression. 23904 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23905 if test "x$FOUND_CORRECT_VERSION" = x; then 23906 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23907 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23909 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23910 BOOT_JDK_FOUND=no 23911 else 23912 # We're done! :-) 23913 BOOT_JDK_FOUND=yes 23914 23915 # Only process if variable expands to non-empty 23916 23917 if test "x$BOOT_JDK" != x; then 23918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23919 23920 # Input might be given as Windows format, start by converting to 23921 # unix format. 23922 path="$BOOT_JDK" 23923 new_path=`$CYGPATH -u "$path"` 23924 23925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23928 # "foo.exe" is OK but "foo" is an error. 23929 # 23930 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23931 # It is also a way to make sure we got the proper file name for the real test later on. 23932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23933 if test "x$test_shortpath" = x; then 23934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23935 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23936 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23937 fi 23938 23939 # Call helper function which possibly converts this using DOS-style short mode. 23940 # If so, the updated path is stored in $new_path. 23941 23942 input_path="$new_path" 23943 # Check if we need to convert this using DOS-style short mode. If the path 23944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23945 # take no chances and rewrite it. 23946 # Note: m4 eats our [], so we need to use [ and ] instead. 23947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23948 if test "x$has_forbidden_chars" != x; then 23949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23953 # Going to short mode and back again did indeed matter. Since short mode is 23954 # case insensitive, let's make it lowercase to improve readability. 23955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23956 # Now convert it back to Unix-stile (cygpath) 23957 input_path=`$CYGPATH -u "$shortmode_path"` 23958 new_path="$input_path" 23959 fi 23960 fi 23961 23962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23963 if test "x$test_cygdrive_prefix" = x; then 23964 # As a simple fix, exclude /usr/bin since it's not a real path. 23965 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23967 # a path prefixed by /cygdrive for fixpath to work. 23968 new_path="$CYGWIN_ROOT_PATH$input_path" 23969 fi 23970 fi 23971 23972 23973 if test "x$path" != "x$new_path"; then 23974 BOOT_JDK="$new_path" 23975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23976 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23977 fi 23978 23979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23980 23981 path="$BOOT_JDK" 23982 has_colon=`$ECHO $path | $GREP ^.:` 23983 new_path="$path" 23984 if test "x$has_colon" = x; then 23985 # Not in mixed or Windows style, start by that. 23986 new_path=`cmd //c echo $path` 23987 fi 23988 23989 23990 input_path="$new_path" 23991 # Check if we need to convert this using DOS-style short mode. If the path 23992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23993 # take no chances and rewrite it. 23994 # Note: m4 eats our [], so we need to use [ and ] instead. 23995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23996 if test "x$has_forbidden_chars" != x; then 23997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23998 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23999 fi 24000 24001 24002 windows_path="$new_path" 24003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24004 unix_path=`$CYGPATH -u "$windows_path"` 24005 new_path="$unix_path" 24006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24008 new_path="$unix_path" 24009 fi 24010 24011 if test "x$path" != "x$new_path"; then 24012 BOOT_JDK="$new_path" 24013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24014 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24015 fi 24016 24017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24019 24020 else 24021 # We're on a unix platform. Hooray! :) 24022 path="$BOOT_JDK" 24023 has_space=`$ECHO "$path" | $GREP " "` 24024 if test "x$has_space" != x; then 24025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24026 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24027 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24028 fi 24029 24030 # Use eval to expand a potential ~ 24031 eval path="$path" 24032 if test ! -f "$path" && test ! -d "$path"; then 24033 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24034 fi 24035 24036 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24037 fi 24038 fi 24039 24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24041 $as_echo_n "checking for Boot JDK... " >&6; } 24042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24043 $as_echo "$BOOT_JDK" >&6; } 24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24045 $as_echo_n "checking Boot JDK version... " >&6; } 24046 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24048 $as_echo "$BOOT_JDK_VERSION" >&6; } 24049 fi # end check jdk version 24050 fi # end check javac 24051 fi # end check java 24052 fi # end check boot jdk found 24053 fi 24054 24055 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 24056 24057 if test "x$BOOT_JDK_FOUND" = xno; then 24058 # Now execute the test 24059 24060 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 24061 BOOT_JDK_SUFFIX="/Contents/Home" 24062 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24063 if test "x$ALL_JDKS_FOUND" != x; then 24064 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24065 24066 if test "x$BOOT_JDK_FOUND" = xno; then 24067 # Now execute the test 24068 24069 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24070 if test -d "$BOOT_JDK"; then 24071 BOOT_JDK_FOUND=maybe 24072 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24073 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24074 fi 24075 24076 24077 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24078 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24079 # Do we have a bin/java? 24080 if test ! -x "$BOOT_JDK/bin/java"; then 24081 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24082 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24083 BOOT_JDK_FOUND=no 24084 else 24085 # Do we have a bin/javac? 24086 if test ! -x "$BOOT_JDK/bin/javac"; then 24087 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24088 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24089 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24090 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24091 BOOT_JDK_FOUND=no 24092 else 24093 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24094 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24095 24096 # Extra M4 quote needed to protect [] in grep expression. 24097 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24098 if test "x$FOUND_CORRECT_VERSION" = x; then 24099 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24100 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24102 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24103 BOOT_JDK_FOUND=no 24104 else 24105 # We're done! :-) 24106 BOOT_JDK_FOUND=yes 24107 24108 # Only process if variable expands to non-empty 24109 24110 if test "x$BOOT_JDK" != x; then 24111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24112 24113 # Input might be given as Windows format, start by converting to 24114 # unix format. 24115 path="$BOOT_JDK" 24116 new_path=`$CYGPATH -u "$path"` 24117 24118 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24119 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24120 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24121 # "foo.exe" is OK but "foo" is an error. 24122 # 24123 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24124 # It is also a way to make sure we got the proper file name for the real test later on. 24125 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24126 if test "x$test_shortpath" = x; then 24127 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24128 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24129 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24130 fi 24131 24132 # Call helper function which possibly converts this using DOS-style short mode. 24133 # If so, the updated path is stored in $new_path. 24134 24135 input_path="$new_path" 24136 # Check if we need to convert this using DOS-style short mode. If the path 24137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24138 # take no chances and rewrite it. 24139 # Note: m4 eats our [], so we need to use [ and ] instead. 24140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24141 if test "x$has_forbidden_chars" != x; then 24142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24143 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24144 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24145 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24146 # Going to short mode and back again did indeed matter. Since short mode is 24147 # case insensitive, let's make it lowercase to improve readability. 24148 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24149 # Now convert it back to Unix-stile (cygpath) 24150 input_path=`$CYGPATH -u "$shortmode_path"` 24151 new_path="$input_path" 24152 fi 24153 fi 24154 24155 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24156 if test "x$test_cygdrive_prefix" = x; then 24157 # As a simple fix, exclude /usr/bin since it's not a real path. 24158 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24159 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24160 # a path prefixed by /cygdrive for fixpath to work. 24161 new_path="$CYGWIN_ROOT_PATH$input_path" 24162 fi 24163 fi 24164 24165 24166 if test "x$path" != "x$new_path"; then 24167 BOOT_JDK="$new_path" 24168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24169 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24170 fi 24171 24172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24173 24174 path="$BOOT_JDK" 24175 has_colon=`$ECHO $path | $GREP ^.:` 24176 new_path="$path" 24177 if test "x$has_colon" = x; then 24178 # Not in mixed or Windows style, start by that. 24179 new_path=`cmd //c echo $path` 24180 fi 24181 24182 24183 input_path="$new_path" 24184 # Check if we need to convert this using DOS-style short mode. If the path 24185 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24186 # take no chances and rewrite it. 24187 # Note: m4 eats our [], so we need to use [ and ] instead. 24188 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24189 if test "x$has_forbidden_chars" != x; then 24190 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24191 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24192 fi 24193 24194 24195 windows_path="$new_path" 24196 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24197 unix_path=`$CYGPATH -u "$windows_path"` 24198 new_path="$unix_path" 24199 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24200 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24201 new_path="$unix_path" 24202 fi 24203 24204 if test "x$path" != "x$new_path"; then 24205 BOOT_JDK="$new_path" 24206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24207 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24208 fi 24209 24210 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24211 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24212 24213 else 24214 # We're on a unix platform. Hooray! :) 24215 path="$BOOT_JDK" 24216 has_space=`$ECHO "$path" | $GREP " "` 24217 if test "x$has_space" != x; then 24218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24219 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24220 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24221 fi 24222 24223 # Use eval to expand a potential ~ 24224 eval path="$path" 24225 if test ! -f "$path" && test ! -d "$path"; then 24226 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24227 fi 24228 24229 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24230 fi 24231 fi 24232 24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24234 $as_echo_n "checking for Boot JDK... " >&6; } 24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24236 $as_echo "$BOOT_JDK" >&6; } 24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24238 $as_echo_n "checking Boot JDK version... " >&6; } 24239 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24241 $as_echo "$BOOT_JDK_VERSION" >&6; } 24242 fi # end check jdk version 24243 fi # end check javac 24244 fi # end check java 24245 fi # end check boot jdk found 24246 fi 24247 24248 done 24249 fi 24250 24251 24252 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24253 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24254 # Do we have a bin/java? 24255 if test ! -x "$BOOT_JDK/bin/java"; then 24256 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24257 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24258 BOOT_JDK_FOUND=no 24259 else 24260 # Do we have a bin/javac? 24261 if test ! -x "$BOOT_JDK/bin/javac"; then 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24263 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24264 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24265 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24266 BOOT_JDK_FOUND=no 24267 else 24268 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24269 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24270 24271 # Extra M4 quote needed to protect [] in grep expression. 24272 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24273 if test "x$FOUND_CORRECT_VERSION" = x; then 24274 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24276 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24277 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24278 BOOT_JDK_FOUND=no 24279 else 24280 # We're done! :-) 24281 BOOT_JDK_FOUND=yes 24282 24283 # Only process if variable expands to non-empty 24284 24285 if test "x$BOOT_JDK" != x; then 24286 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24287 24288 # Input might be given as Windows format, start by converting to 24289 # unix format. 24290 path="$BOOT_JDK" 24291 new_path=`$CYGPATH -u "$path"` 24292 24293 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24294 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24295 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24296 # "foo.exe" is OK but "foo" is an error. 24297 # 24298 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24299 # It is also a way to make sure we got the proper file name for the real test later on. 24300 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24301 if test "x$test_shortpath" = x; then 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24303 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24304 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24305 fi 24306 24307 # Call helper function which possibly converts this using DOS-style short mode. 24308 # If so, the updated path is stored in $new_path. 24309 24310 input_path="$new_path" 24311 # Check if we need to convert this using DOS-style short mode. If the path 24312 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24313 # take no chances and rewrite it. 24314 # Note: m4 eats our [], so we need to use [ and ] instead. 24315 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24316 if test "x$has_forbidden_chars" != x; then 24317 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24318 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24319 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24320 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24321 # Going to short mode and back again did indeed matter. Since short mode is 24322 # case insensitive, let's make it lowercase to improve readability. 24323 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24324 # Now convert it back to Unix-stile (cygpath) 24325 input_path=`$CYGPATH -u "$shortmode_path"` 24326 new_path="$input_path" 24327 fi 24328 fi 24329 24330 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24331 if test "x$test_cygdrive_prefix" = x; then 24332 # As a simple fix, exclude /usr/bin since it's not a real path. 24333 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24334 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24335 # a path prefixed by /cygdrive for fixpath to work. 24336 new_path="$CYGWIN_ROOT_PATH$input_path" 24337 fi 24338 fi 24339 24340 24341 if test "x$path" != "x$new_path"; then 24342 BOOT_JDK="$new_path" 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24344 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24345 fi 24346 24347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24348 24349 path="$BOOT_JDK" 24350 has_colon=`$ECHO $path | $GREP ^.:` 24351 new_path="$path" 24352 if test "x$has_colon" = x; then 24353 # Not in mixed or Windows style, start by that. 24354 new_path=`cmd //c echo $path` 24355 fi 24356 24357 24358 input_path="$new_path" 24359 # Check if we need to convert this using DOS-style short mode. If the path 24360 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24361 # take no chances and rewrite it. 24362 # Note: m4 eats our [], so we need to use [ and ] instead. 24363 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24364 if test "x$has_forbidden_chars" != x; then 24365 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24366 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24367 fi 24368 24369 24370 windows_path="$new_path" 24371 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24372 unix_path=`$CYGPATH -u "$windows_path"` 24373 new_path="$unix_path" 24374 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24375 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24376 new_path="$unix_path" 24377 fi 24378 24379 if test "x$path" != "x$new_path"; then 24380 BOOT_JDK="$new_path" 24381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24382 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24383 fi 24384 24385 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24386 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24387 24388 else 24389 # We're on a unix platform. Hooray! :) 24390 path="$BOOT_JDK" 24391 has_space=`$ECHO "$path" | $GREP " "` 24392 if test "x$has_space" != x; then 24393 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24394 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24395 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24396 fi 24397 24398 # Use eval to expand a potential ~ 24399 eval path="$path" 24400 if test ! -f "$path" && test ! -d "$path"; then 24401 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24402 fi 24403 24404 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24405 fi 24406 fi 24407 24408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24409 $as_echo_n "checking for Boot JDK... " >&6; } 24410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24411 $as_echo "$BOOT_JDK" >&6; } 24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24413 $as_echo_n "checking Boot JDK version... " >&6; } 24414 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24416 $as_echo "$BOOT_JDK_VERSION" >&6; } 24417 fi # end check jdk version 24418 fi # end check javac 24419 fi # end check java 24420 fi # end check boot jdk found 24421 fi 24422 24423 24424 if test "x$BOOT_JDK_FOUND" = xno; then 24425 # Now execute the test 24426 24427 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24428 BOOT_JDK_SUFFIX="/Contents/Home" 24429 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24430 if test "x$ALL_JDKS_FOUND" != x; then 24431 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24432 24433 if test "x$BOOT_JDK_FOUND" = xno; then 24434 # Now execute the test 24435 24436 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24437 if test -d "$BOOT_JDK"; then 24438 BOOT_JDK_FOUND=maybe 24439 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24440 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24441 fi 24442 24443 24444 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24445 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24446 # Do we have a bin/java? 24447 if test ! -x "$BOOT_JDK/bin/java"; then 24448 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24449 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24450 BOOT_JDK_FOUND=no 24451 else 24452 # Do we have a bin/javac? 24453 if test ! -x "$BOOT_JDK/bin/javac"; then 24454 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24455 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24457 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24458 BOOT_JDK_FOUND=no 24459 else 24460 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24461 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24462 24463 # Extra M4 quote needed to protect [] in grep expression. 24464 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24465 if test "x$FOUND_CORRECT_VERSION" = x; then 24466 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24467 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24468 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24469 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24470 BOOT_JDK_FOUND=no 24471 else 24472 # We're done! :-) 24473 BOOT_JDK_FOUND=yes 24474 24475 # Only process if variable expands to non-empty 24476 24477 if test "x$BOOT_JDK" != x; then 24478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24479 24480 # Input might be given as Windows format, start by converting to 24481 # unix format. 24482 path="$BOOT_JDK" 24483 new_path=`$CYGPATH -u "$path"` 24484 24485 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24486 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24487 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24488 # "foo.exe" is OK but "foo" is an error. 24489 # 24490 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24491 # It is also a way to make sure we got the proper file name for the real test later on. 24492 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24493 if test "x$test_shortpath" = x; then 24494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24495 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24496 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24497 fi 24498 24499 # Call helper function which possibly converts this using DOS-style short mode. 24500 # If so, the updated path is stored in $new_path. 24501 24502 input_path="$new_path" 24503 # Check if we need to convert this using DOS-style short mode. If the path 24504 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24505 # take no chances and rewrite it. 24506 # Note: m4 eats our [], so we need to use [ and ] instead. 24507 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24508 if test "x$has_forbidden_chars" != x; then 24509 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24510 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24511 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24512 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24513 # Going to short mode and back again did indeed matter. Since short mode is 24514 # case insensitive, let's make it lowercase to improve readability. 24515 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24516 # Now convert it back to Unix-stile (cygpath) 24517 input_path=`$CYGPATH -u "$shortmode_path"` 24518 new_path="$input_path" 24519 fi 24520 fi 24521 24522 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24523 if test "x$test_cygdrive_prefix" = x; then 24524 # As a simple fix, exclude /usr/bin since it's not a real path. 24525 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24526 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24527 # a path prefixed by /cygdrive for fixpath to work. 24528 new_path="$CYGWIN_ROOT_PATH$input_path" 24529 fi 24530 fi 24531 24532 24533 if test "x$path" != "x$new_path"; then 24534 BOOT_JDK="$new_path" 24535 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24536 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24537 fi 24538 24539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24540 24541 path="$BOOT_JDK" 24542 has_colon=`$ECHO $path | $GREP ^.:` 24543 new_path="$path" 24544 if test "x$has_colon" = x; then 24545 # Not in mixed or Windows style, start by that. 24546 new_path=`cmd //c echo $path` 24547 fi 24548 24549 24550 input_path="$new_path" 24551 # Check if we need to convert this using DOS-style short mode. If the path 24552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24553 # take no chances and rewrite it. 24554 # Note: m4 eats our [], so we need to use [ and ] instead. 24555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24556 if test "x$has_forbidden_chars" != x; then 24557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24558 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24559 fi 24560 24561 24562 windows_path="$new_path" 24563 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24564 unix_path=`$CYGPATH -u "$windows_path"` 24565 new_path="$unix_path" 24566 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24567 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24568 new_path="$unix_path" 24569 fi 24570 24571 if test "x$path" != "x$new_path"; then 24572 BOOT_JDK="$new_path" 24573 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24574 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24575 fi 24576 24577 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24578 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24579 24580 else 24581 # We're on a unix platform. Hooray! :) 24582 path="$BOOT_JDK" 24583 has_space=`$ECHO "$path" | $GREP " "` 24584 if test "x$has_space" != x; then 24585 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24586 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24587 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24588 fi 24589 24590 # Use eval to expand a potential ~ 24591 eval path="$path" 24592 if test ! -f "$path" && test ! -d "$path"; then 24593 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24594 fi 24595 24596 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24597 fi 24598 fi 24599 24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24601 $as_echo_n "checking for Boot JDK... " >&6; } 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24603 $as_echo "$BOOT_JDK" >&6; } 24604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24605 $as_echo_n "checking Boot JDK version... " >&6; } 24606 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24608 $as_echo "$BOOT_JDK_VERSION" >&6; } 24609 fi # end check jdk version 24610 fi # end check javac 24611 fi # end check java 24612 fi # end check boot jdk found 24613 fi 24614 24615 done 24616 fi 24617 24618 24619 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24620 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24621 # Do we have a bin/java? 24622 if test ! -x "$BOOT_JDK/bin/java"; then 24623 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24624 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24625 BOOT_JDK_FOUND=no 24626 else 24627 # Do we have a bin/javac? 24628 if test ! -x "$BOOT_JDK/bin/javac"; then 24629 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24630 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24631 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24632 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24633 BOOT_JDK_FOUND=no 24634 else 24635 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24636 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24637 24638 # Extra M4 quote needed to protect [] in grep expression. 24639 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24640 if test "x$FOUND_CORRECT_VERSION" = x; then 24641 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24642 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24643 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24644 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24645 BOOT_JDK_FOUND=no 24646 else 24647 # We're done! :-) 24648 BOOT_JDK_FOUND=yes 24649 24650 # Only process if variable expands to non-empty 24651 24652 if test "x$BOOT_JDK" != x; then 24653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24654 24655 # Input might be given as Windows format, start by converting to 24656 # unix format. 24657 path="$BOOT_JDK" 24658 new_path=`$CYGPATH -u "$path"` 24659 24660 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24661 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24662 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24663 # "foo.exe" is OK but "foo" is an error. 24664 # 24665 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24666 # It is also a way to make sure we got the proper file name for the real test later on. 24667 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24668 if test "x$test_shortpath" = x; then 24669 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24670 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24671 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24672 fi 24673 24674 # Call helper function which possibly converts this using DOS-style short mode. 24675 # If so, the updated path is stored in $new_path. 24676 24677 input_path="$new_path" 24678 # Check if we need to convert this using DOS-style short mode. If the path 24679 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24680 # take no chances and rewrite it. 24681 # Note: m4 eats our [], so we need to use [ and ] instead. 24682 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24683 if test "x$has_forbidden_chars" != x; then 24684 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24685 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24686 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24687 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24688 # Going to short mode and back again did indeed matter. Since short mode is 24689 # case insensitive, let's make it lowercase to improve readability. 24690 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24691 # Now convert it back to Unix-stile (cygpath) 24692 input_path=`$CYGPATH -u "$shortmode_path"` 24693 new_path="$input_path" 24694 fi 24695 fi 24696 24697 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24698 if test "x$test_cygdrive_prefix" = x; then 24699 # As a simple fix, exclude /usr/bin since it's not a real path. 24700 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24701 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24702 # a path prefixed by /cygdrive for fixpath to work. 24703 new_path="$CYGWIN_ROOT_PATH$input_path" 24704 fi 24705 fi 24706 24707 24708 if test "x$path" != "x$new_path"; then 24709 BOOT_JDK="$new_path" 24710 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24711 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24712 fi 24713 24714 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24715 24716 path="$BOOT_JDK" 24717 has_colon=`$ECHO $path | $GREP ^.:` 24718 new_path="$path" 24719 if test "x$has_colon" = x; then 24720 # Not in mixed or Windows style, start by that. 24721 new_path=`cmd //c echo $path` 24722 fi 24723 24724 24725 input_path="$new_path" 24726 # Check if we need to convert this using DOS-style short mode. If the path 24727 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24728 # take no chances and rewrite it. 24729 # Note: m4 eats our [], so we need to use [ and ] instead. 24730 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24731 if test "x$has_forbidden_chars" != x; then 24732 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24733 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24734 fi 24735 24736 24737 windows_path="$new_path" 24738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24739 unix_path=`$CYGPATH -u "$windows_path"` 24740 new_path="$unix_path" 24741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24743 new_path="$unix_path" 24744 fi 24745 24746 if test "x$path" != "x$new_path"; then 24747 BOOT_JDK="$new_path" 24748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24749 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24750 fi 24751 24752 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24753 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24754 24755 else 24756 # We're on a unix platform. Hooray! :) 24757 path="$BOOT_JDK" 24758 has_space=`$ECHO "$path" | $GREP " "` 24759 if test "x$has_space" != x; then 24760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24761 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24762 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24763 fi 24764 24765 # Use eval to expand a potential ~ 24766 eval path="$path" 24767 if test ! -f "$path" && test ! -d "$path"; then 24768 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24769 fi 24770 24771 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24772 fi 24773 fi 24774 24775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24776 $as_echo_n "checking for Boot JDK... " >&6; } 24777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24778 $as_echo "$BOOT_JDK" >&6; } 24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24780 $as_echo_n "checking Boot JDK version... " >&6; } 24781 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24783 $as_echo "$BOOT_JDK_VERSION" >&6; } 24784 fi # end check jdk version 24785 fi # end check javac 24786 fi # end check java 24787 fi # end check boot jdk found 24788 fi 24789 24790 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24791 24792 if test "x$BOOT_JDK_FOUND" = xno; then 24793 # Now execute the test 24794 24795 BOOT_JDK_PREFIX="/usr/lib/jvm" 24796 BOOT_JDK_SUFFIX="" 24797 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24798 if test "x$ALL_JDKS_FOUND" != x; then 24799 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24800 24801 if test "x$BOOT_JDK_FOUND" = xno; then 24802 # Now execute the test 24803 24804 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24805 if test -d "$BOOT_JDK"; then 24806 BOOT_JDK_FOUND=maybe 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24808 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24809 fi 24810 24811 24812 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24813 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24814 # Do we have a bin/java? 24815 if test ! -x "$BOOT_JDK/bin/java"; then 24816 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24818 BOOT_JDK_FOUND=no 24819 else 24820 # Do we have a bin/javac? 24821 if test ! -x "$BOOT_JDK/bin/javac"; then 24822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24824 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24825 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24826 BOOT_JDK_FOUND=no 24827 else 24828 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24829 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24830 24831 # Extra M4 quote needed to protect [] in grep expression. 24832 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24833 if test "x$FOUND_CORRECT_VERSION" = x; then 24834 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24835 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24836 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24837 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24838 BOOT_JDK_FOUND=no 24839 else 24840 # We're done! :-) 24841 BOOT_JDK_FOUND=yes 24842 24843 # Only process if variable expands to non-empty 24844 24845 if test "x$BOOT_JDK" != x; then 24846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24847 24848 # Input might be given as Windows format, start by converting to 24849 # unix format. 24850 path="$BOOT_JDK" 24851 new_path=`$CYGPATH -u "$path"` 24852 24853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24856 # "foo.exe" is OK but "foo" is an error. 24857 # 24858 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24859 # It is also a way to make sure we got the proper file name for the real test later on. 24860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24861 if test "x$test_shortpath" = x; then 24862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24863 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24864 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24865 fi 24866 24867 # Call helper function which possibly converts this using DOS-style short mode. 24868 # If so, the updated path is stored in $new_path. 24869 24870 input_path="$new_path" 24871 # Check if we need to convert this using DOS-style short mode. If the path 24872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24873 # take no chances and rewrite it. 24874 # Note: m4 eats our [], so we need to use [ and ] instead. 24875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24876 if test "x$has_forbidden_chars" != x; then 24877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24878 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24879 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24880 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24881 # Going to short mode and back again did indeed matter. Since short mode is 24882 # case insensitive, let's make it lowercase to improve readability. 24883 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24884 # Now convert it back to Unix-stile (cygpath) 24885 input_path=`$CYGPATH -u "$shortmode_path"` 24886 new_path="$input_path" 24887 fi 24888 fi 24889 24890 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24891 if test "x$test_cygdrive_prefix" = x; then 24892 # As a simple fix, exclude /usr/bin since it's not a real path. 24893 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24894 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24895 # a path prefixed by /cygdrive for fixpath to work. 24896 new_path="$CYGWIN_ROOT_PATH$input_path" 24897 fi 24898 fi 24899 24900 24901 if test "x$path" != "x$new_path"; then 24902 BOOT_JDK="$new_path" 24903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24904 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24905 fi 24906 24907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24908 24909 path="$BOOT_JDK" 24910 has_colon=`$ECHO $path | $GREP ^.:` 24911 new_path="$path" 24912 if test "x$has_colon" = x; then 24913 # Not in mixed or Windows style, start by that. 24914 new_path=`cmd //c echo $path` 24915 fi 24916 24917 24918 input_path="$new_path" 24919 # Check if we need to convert this using DOS-style short mode. If the path 24920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24921 # take no chances and rewrite it. 24922 # Note: m4 eats our [], so we need to use [ and ] instead. 24923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24924 if test "x$has_forbidden_chars" != x; then 24925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24927 fi 24928 24929 24930 windows_path="$new_path" 24931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24932 unix_path=`$CYGPATH -u "$windows_path"` 24933 new_path="$unix_path" 24934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24936 new_path="$unix_path" 24937 fi 24938 24939 if test "x$path" != "x$new_path"; then 24940 BOOT_JDK="$new_path" 24941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24942 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24943 fi 24944 24945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24947 24948 else 24949 # We're on a unix platform. Hooray! :) 24950 path="$BOOT_JDK" 24951 has_space=`$ECHO "$path" | $GREP " "` 24952 if test "x$has_space" != x; then 24953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24954 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24955 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24956 fi 24957 24958 # Use eval to expand a potential ~ 24959 eval path="$path" 24960 if test ! -f "$path" && test ! -d "$path"; then 24961 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24962 fi 24963 24964 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24965 fi 24966 fi 24967 24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24969 $as_echo_n "checking for Boot JDK... " >&6; } 24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24971 $as_echo "$BOOT_JDK" >&6; } 24972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24973 $as_echo_n "checking Boot JDK version... " >&6; } 24974 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24976 $as_echo "$BOOT_JDK_VERSION" >&6; } 24977 fi # end check jdk version 24978 fi # end check javac 24979 fi # end check java 24980 fi # end check boot jdk found 24981 fi 24982 24983 done 24984 fi 24985 24986 24987 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24988 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24989 # Do we have a bin/java? 24990 if test ! -x "$BOOT_JDK/bin/java"; then 24991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24993 BOOT_JDK_FOUND=no 24994 else 24995 # Do we have a bin/javac? 24996 if test ! -x "$BOOT_JDK/bin/javac"; then 24997 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24999 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25000 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25001 BOOT_JDK_FOUND=no 25002 else 25003 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25004 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25005 25006 # Extra M4 quote needed to protect [] in grep expression. 25007 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25008 if test "x$FOUND_CORRECT_VERSION" = x; then 25009 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25010 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25011 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25012 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25013 BOOT_JDK_FOUND=no 25014 else 25015 # We're done! :-) 25016 BOOT_JDK_FOUND=yes 25017 25018 # Only process if variable expands to non-empty 25019 25020 if test "x$BOOT_JDK" != x; then 25021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25022 25023 # Input might be given as Windows format, start by converting to 25024 # unix format. 25025 path="$BOOT_JDK" 25026 new_path=`$CYGPATH -u "$path"` 25027 25028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25031 # "foo.exe" is OK but "foo" is an error. 25032 # 25033 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25034 # It is also a way to make sure we got the proper file name for the real test later on. 25035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25036 if test "x$test_shortpath" = x; then 25037 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25038 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25039 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25040 fi 25041 25042 # Call helper function which possibly converts this using DOS-style short mode. 25043 # If so, the updated path is stored in $new_path. 25044 25045 input_path="$new_path" 25046 # Check if we need to convert this using DOS-style short mode. If the path 25047 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25048 # take no chances and rewrite it. 25049 # Note: m4 eats our [], so we need to use [ and ] instead. 25050 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25051 if test "x$has_forbidden_chars" != x; then 25052 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25053 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25054 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25055 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25056 # Going to short mode and back again did indeed matter. Since short mode is 25057 # case insensitive, let's make it lowercase to improve readability. 25058 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25059 # Now convert it back to Unix-stile (cygpath) 25060 input_path=`$CYGPATH -u "$shortmode_path"` 25061 new_path="$input_path" 25062 fi 25063 fi 25064 25065 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25066 if test "x$test_cygdrive_prefix" = x; then 25067 # As a simple fix, exclude /usr/bin since it's not a real path. 25068 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25069 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25070 # a path prefixed by /cygdrive for fixpath to work. 25071 new_path="$CYGWIN_ROOT_PATH$input_path" 25072 fi 25073 fi 25074 25075 25076 if test "x$path" != "x$new_path"; then 25077 BOOT_JDK="$new_path" 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25079 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25080 fi 25081 25082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25083 25084 path="$BOOT_JDK" 25085 has_colon=`$ECHO $path | $GREP ^.:` 25086 new_path="$path" 25087 if test "x$has_colon" = x; then 25088 # Not in mixed or Windows style, start by that. 25089 new_path=`cmd //c echo $path` 25090 fi 25091 25092 25093 input_path="$new_path" 25094 # Check if we need to convert this using DOS-style short mode. If the path 25095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25096 # take no chances and rewrite it. 25097 # Note: m4 eats our [], so we need to use [ and ] instead. 25098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25099 if test "x$has_forbidden_chars" != x; then 25100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25101 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25102 fi 25103 25104 25105 windows_path="$new_path" 25106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25107 unix_path=`$CYGPATH -u "$windows_path"` 25108 new_path="$unix_path" 25109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25111 new_path="$unix_path" 25112 fi 25113 25114 if test "x$path" != "x$new_path"; then 25115 BOOT_JDK="$new_path" 25116 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25117 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25118 fi 25119 25120 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25121 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25122 25123 else 25124 # We're on a unix platform. Hooray! :) 25125 path="$BOOT_JDK" 25126 has_space=`$ECHO "$path" | $GREP " "` 25127 if test "x$has_space" != x; then 25128 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25129 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25130 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25131 fi 25132 25133 # Use eval to expand a potential ~ 25134 eval path="$path" 25135 if test ! -f "$path" && test ! -d "$path"; then 25136 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25137 fi 25138 25139 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25140 fi 25141 fi 25142 25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25144 $as_echo_n "checking for Boot JDK... " >&6; } 25145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25146 $as_echo "$BOOT_JDK" >&6; } 25147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25148 $as_echo_n "checking Boot JDK version... " >&6; } 25149 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25151 $as_echo "$BOOT_JDK_VERSION" >&6; } 25152 fi # end check jdk version 25153 fi # end check javac 25154 fi # end check java 25155 fi # end check boot jdk found 25156 fi 25157 25158 fi 25159 25160 25161 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 25162 if test "x$BOOT_JDK_FOUND" = xmaybe; then 25163 # Do we have a bin/java? 25164 if test ! -x "$BOOT_JDK/bin/java"; then 25165 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 25166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 25167 BOOT_JDK_FOUND=no 25168 else 25169 # Do we have a bin/javac? 25170 if test ! -x "$BOOT_JDK/bin/javac"; then 25171 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 25172 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 25173 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 25174 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 25175 BOOT_JDK_FOUND=no 25176 else 25177 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 25178 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 25179 25180 # Extra M4 quote needed to protect [] in grep expression. 25181 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 25182 if test "x$FOUND_CORRECT_VERSION" = x; then 25183 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 25184 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 25185 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 25186 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 25187 BOOT_JDK_FOUND=no 25188 else 25189 # We're done! :-) 25190 BOOT_JDK_FOUND=yes 25191 25192 # Only process if variable expands to non-empty 25193 25194 if test "x$BOOT_JDK" != x; then 25195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25196 25197 # Input might be given as Windows format, start by converting to 25198 # unix format. 25199 path="$BOOT_JDK" 25200 new_path=`$CYGPATH -u "$path"` 25201 25202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25205 # "foo.exe" is OK but "foo" is an error. 25206 # 25207 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25208 # It is also a way to make sure we got the proper file name for the real test later on. 25209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25210 if test "x$test_shortpath" = x; then 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25212 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25213 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25214 fi 25215 25216 # Call helper function which possibly converts this using DOS-style short mode. 25217 # If so, the updated path is stored in $new_path. 25218 25219 input_path="$new_path" 25220 # Check if we need to convert this using DOS-style short mode. If the path 25221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25222 # take no chances and rewrite it. 25223 # Note: m4 eats our [], so we need to use [ and ] instead. 25224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25225 if test "x$has_forbidden_chars" != x; then 25226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25227 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25228 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25229 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25230 # Going to short mode and back again did indeed matter. Since short mode is 25231 # case insensitive, let's make it lowercase to improve readability. 25232 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25233 # Now convert it back to Unix-stile (cygpath) 25234 input_path=`$CYGPATH -u "$shortmode_path"` 25235 new_path="$input_path" 25236 fi 25237 fi 25238 25239 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25240 if test "x$test_cygdrive_prefix" = x; then 25241 # As a simple fix, exclude /usr/bin since it's not a real path. 25242 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25243 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25244 # a path prefixed by /cygdrive for fixpath to work. 25245 new_path="$CYGWIN_ROOT_PATH$input_path" 25246 fi 25247 fi 25248 25249 25250 if test "x$path" != "x$new_path"; then 25251 BOOT_JDK="$new_path" 25252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25253 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25254 fi 25255 25256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25257 25258 path="$BOOT_JDK" 25259 has_colon=`$ECHO $path | $GREP ^.:` 25260 new_path="$path" 25261 if test "x$has_colon" = x; then 25262 # Not in mixed or Windows style, start by that. 25263 new_path=`cmd //c echo $path` 25264 fi 25265 25266 25267 input_path="$new_path" 25268 # Check if we need to convert this using DOS-style short mode. If the path 25269 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25270 # take no chances and rewrite it. 25271 # Note: m4 eats our [], so we need to use [ and ] instead. 25272 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25273 if test "x$has_forbidden_chars" != x; then 25274 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25275 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25276 fi 25277 25278 25279 windows_path="$new_path" 25280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25281 unix_path=`$CYGPATH -u "$windows_path"` 25282 new_path="$unix_path" 25283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25285 new_path="$unix_path" 25286 fi 25287 25288 if test "x$path" != "x$new_path"; then 25289 BOOT_JDK="$new_path" 25290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25291 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25292 fi 25293 25294 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25295 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25296 25297 else 25298 # We're on a unix platform. Hooray! :) 25299 path="$BOOT_JDK" 25300 has_space=`$ECHO "$path" | $GREP " "` 25301 if test "x$has_space" != x; then 25302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25303 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25304 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25305 fi 25306 25307 # Use eval to expand a potential ~ 25308 eval path="$path" 25309 if test ! -f "$path" && test ! -d "$path"; then 25310 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25311 fi 25312 25313 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25314 fi 25315 fi 25316 25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25318 $as_echo_n "checking for Boot JDK... " >&6; } 25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25320 $as_echo "$BOOT_JDK" >&6; } 25321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25322 $as_echo_n "checking Boot JDK version... " >&6; } 25323 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25325 $as_echo "$BOOT_JDK_VERSION" >&6; } 25326 fi # end check jdk version 25327 fi # end check javac 25328 fi # end check java 25329 fi # end check boot jdk found 25330 fi 25331 25332 25333 # If we haven't found anything yet, we've truly lost. Give up. 25334 if test "x$BOOT_JDK_FOUND" = xno; then 25335 25336 # Print a helpful message on how to acquire the necessary build dependency. 25337 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25338 MISSING_DEPENDENCY=openjdk 25339 25340 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25341 cygwin_help $MISSING_DEPENDENCY 25342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25343 msys_help $MISSING_DEPENDENCY 25344 else 25345 PKGHANDLER_COMMAND= 25346 25347 case $PKGHANDLER in 25348 apt-get) 25349 apt_help $MISSING_DEPENDENCY ;; 25350 yum) 25351 yum_help $MISSING_DEPENDENCY ;; 25352 port) 25353 port_help $MISSING_DEPENDENCY ;; 25354 pkgutil) 25355 pkgutil_help $MISSING_DEPENDENCY ;; 25356 pkgadd) 25357 pkgadd_help $MISSING_DEPENDENCY ;; 25358 esac 25359 25360 if test "x$PKGHANDLER_COMMAND" != x; then 25361 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25362 fi 25363 fi 25364 25365 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25366 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25367 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25368 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25369 as_fn_error $? "Cannot continue" "$LINENO" 5 25370 fi 25371 25372 25373 25374 # Setup tools from the Boot JDK. 25375 25376 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25377 25378 # Publish this variable in the help. 25379 25380 25381 if test "x$JAVA" = x; then 25382 # The variable is not set by user, try to locate tool using the code snippet 25383 25384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25385 $as_echo_n "checking for java in Boot JDK... " >&6; } 25386 JAVA=$BOOT_JDK/bin/java 25387 if test ! -x $JAVA; then 25388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25389 $as_echo "not found" >&6; } 25390 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25391 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25392 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25393 fi 25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25395 $as_echo "ok" >&6; } 25396 25397 25398 else 25399 # The variable is set, but is it from the command line or the environment? 25400 25401 # Try to remove the string !JAVA! from our list. 25402 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25403 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25404 # If it failed, the variable was not from the command line. Ignore it, 25405 # but warn the user (except for BASH, which is always set by the calling BASH). 25406 if test "xJAVA" != xBASH; then 25407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25408 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25409 fi 25410 # Try to locate tool using the code snippet 25411 25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25413 $as_echo_n "checking for java in Boot JDK... " >&6; } 25414 JAVA=$BOOT_JDK/bin/java 25415 if test ! -x $JAVA; then 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25417 $as_echo "not found" >&6; } 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25419 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25420 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25421 fi 25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25423 $as_echo "ok" >&6; } 25424 25425 25426 else 25427 # If it succeeded, then it was overridden by the user. We will use it 25428 # for the tool. 25429 25430 # First remove it from the list of overridden variables, so we can test 25431 # for unknown variables in the end. 25432 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25433 25434 # Check if the provided tool contains a complete path. 25435 tool_specified="$JAVA" 25436 tool_basename="${tool_specified##*/}" 25437 if test "x$tool_basename" = "x$tool_specified"; then 25438 # A command without a complete path is provided, search $PATH. 25439 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25440 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25441 # Extract the first word of "$tool_basename", so it can be a program name with args. 25442 set dummy $tool_basename; ac_word=$2 25443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25444 $as_echo_n "checking for $ac_word... " >&6; } 25445 if ${ac_cv_path_JAVA+:} false; then : 25446 $as_echo_n "(cached) " >&6 25447 else 25448 case $JAVA in 25449 [\\/]* | ?:[\\/]*) 25450 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25451 ;; 25452 *) 25453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25454 for as_dir in $PATH 25455 do 25456 IFS=$as_save_IFS 25457 test -z "$as_dir" && as_dir=. 25458 for ac_exec_ext in '' $ac_executable_extensions; do 25459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25460 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25462 break 2 25463 fi 25464 done 25465 done 25466 IFS=$as_save_IFS 25467 25468 ;; 25469 esac 25470 fi 25471 JAVA=$ac_cv_path_JAVA 25472 if test -n "$JAVA"; then 25473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25474 $as_echo "$JAVA" >&6; } 25475 else 25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25477 $as_echo "no" >&6; } 25478 fi 25479 25480 25481 if test "x$JAVA" = x; then 25482 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25483 fi 25484 else 25485 # Otherwise we believe it is a complete path. Use it as it is. 25486 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25487 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25489 $as_echo_n "checking for JAVA... " >&6; } 25490 if test ! -x "$tool_specified"; then 25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25492 $as_echo "not found" >&6; } 25493 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25494 fi 25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25496 $as_echo "$tool_specified" >&6; } 25497 fi 25498 fi 25499 fi 25500 25501 25502 25503 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25504 25505 # Publish this variable in the help. 25506 25507 25508 if test "x$JAVAC" = x; then 25509 # The variable is not set by user, try to locate tool using the code snippet 25510 25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25512 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25513 JAVAC=$BOOT_JDK/bin/javac 25514 if test ! -x $JAVAC; then 25515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25516 $as_echo "not found" >&6; } 25517 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25518 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25519 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25520 fi 25521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25522 $as_echo "ok" >&6; } 25523 25524 25525 else 25526 # The variable is set, but is it from the command line or the environment? 25527 25528 # Try to remove the string !JAVAC! from our list. 25529 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25530 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25531 # If it failed, the variable was not from the command line. Ignore it, 25532 # but warn the user (except for BASH, which is always set by the calling BASH). 25533 if test "xJAVAC" != xBASH; then 25534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25535 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25536 fi 25537 # Try to locate tool using the code snippet 25538 25539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25540 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25541 JAVAC=$BOOT_JDK/bin/javac 25542 if test ! -x $JAVAC; then 25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25544 $as_echo "not found" >&6; } 25545 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25546 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25547 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25548 fi 25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25550 $as_echo "ok" >&6; } 25551 25552 25553 else 25554 # If it succeeded, then it was overridden by the user. We will use it 25555 # for the tool. 25556 25557 # First remove it from the list of overridden variables, so we can test 25558 # for unknown variables in the end. 25559 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25560 25561 # Check if the provided tool contains a complete path. 25562 tool_specified="$JAVAC" 25563 tool_basename="${tool_specified##*/}" 25564 if test "x$tool_basename" = "x$tool_specified"; then 25565 # A command without a complete path is provided, search $PATH. 25566 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25567 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25568 # Extract the first word of "$tool_basename", so it can be a program name with args. 25569 set dummy $tool_basename; ac_word=$2 25570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25571 $as_echo_n "checking for $ac_word... " >&6; } 25572 if ${ac_cv_path_JAVAC+:} false; then : 25573 $as_echo_n "(cached) " >&6 25574 else 25575 case $JAVAC in 25576 [\\/]* | ?:[\\/]*) 25577 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25578 ;; 25579 *) 25580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25581 for as_dir in $PATH 25582 do 25583 IFS=$as_save_IFS 25584 test -z "$as_dir" && as_dir=. 25585 for ac_exec_ext in '' $ac_executable_extensions; do 25586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25587 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25589 break 2 25590 fi 25591 done 25592 done 25593 IFS=$as_save_IFS 25594 25595 ;; 25596 esac 25597 fi 25598 JAVAC=$ac_cv_path_JAVAC 25599 if test -n "$JAVAC"; then 25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25601 $as_echo "$JAVAC" >&6; } 25602 else 25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25604 $as_echo "no" >&6; } 25605 fi 25606 25607 25608 if test "x$JAVAC" = x; then 25609 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25610 fi 25611 else 25612 # Otherwise we believe it is a complete path. Use it as it is. 25613 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25614 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25616 $as_echo_n "checking for JAVAC... " >&6; } 25617 if test ! -x "$tool_specified"; then 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25619 $as_echo "not found" >&6; } 25620 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25621 fi 25622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25623 $as_echo "$tool_specified" >&6; } 25624 fi 25625 fi 25626 fi 25627 25628 25629 25630 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25631 25632 # Publish this variable in the help. 25633 25634 25635 if test "x$JAVAH" = x; then 25636 # The variable is not set by user, try to locate tool using the code snippet 25637 25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25639 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25640 JAVAH=$BOOT_JDK/bin/javah 25641 if test ! -x $JAVAH; then 25642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25643 $as_echo "not found" >&6; } 25644 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25645 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25646 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25647 fi 25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25649 $as_echo "ok" >&6; } 25650 25651 25652 else 25653 # The variable is set, but is it from the command line or the environment? 25654 25655 # Try to remove the string !JAVAH! from our list. 25656 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25657 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25658 # If it failed, the variable was not from the command line. Ignore it, 25659 # but warn the user (except for BASH, which is always set by the calling BASH). 25660 if test "xJAVAH" != xBASH; then 25661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25662 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25663 fi 25664 # Try to locate tool using the code snippet 25665 25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25667 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25668 JAVAH=$BOOT_JDK/bin/javah 25669 if test ! -x $JAVAH; then 25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25671 $as_echo "not found" >&6; } 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25673 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25674 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25675 fi 25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25677 $as_echo "ok" >&6; } 25678 25679 25680 else 25681 # If it succeeded, then it was overridden by the user. We will use it 25682 # for the tool. 25683 25684 # First remove it from the list of overridden variables, so we can test 25685 # for unknown variables in the end. 25686 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25687 25688 # Check if the provided tool contains a complete path. 25689 tool_specified="$JAVAH" 25690 tool_basename="${tool_specified##*/}" 25691 if test "x$tool_basename" = "x$tool_specified"; then 25692 # A command without a complete path is provided, search $PATH. 25693 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25694 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25695 # Extract the first word of "$tool_basename", so it can be a program name with args. 25696 set dummy $tool_basename; ac_word=$2 25697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25698 $as_echo_n "checking for $ac_word... " >&6; } 25699 if ${ac_cv_path_JAVAH+:} false; then : 25700 $as_echo_n "(cached) " >&6 25701 else 25702 case $JAVAH in 25703 [\\/]* | ?:[\\/]*) 25704 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25705 ;; 25706 *) 25707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25708 for as_dir in $PATH 25709 do 25710 IFS=$as_save_IFS 25711 test -z "$as_dir" && as_dir=. 25712 for ac_exec_ext in '' $ac_executable_extensions; do 25713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25714 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25716 break 2 25717 fi 25718 done 25719 done 25720 IFS=$as_save_IFS 25721 25722 ;; 25723 esac 25724 fi 25725 JAVAH=$ac_cv_path_JAVAH 25726 if test -n "$JAVAH"; then 25727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25728 $as_echo "$JAVAH" >&6; } 25729 else 25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25731 $as_echo "no" >&6; } 25732 fi 25733 25734 25735 if test "x$JAVAH" = x; then 25736 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25737 fi 25738 else 25739 # Otherwise we believe it is a complete path. Use it as it is. 25740 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25741 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25743 $as_echo_n "checking for JAVAH... " >&6; } 25744 if test ! -x "$tool_specified"; then 25745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25746 $as_echo "not found" >&6; } 25747 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25748 fi 25749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25750 $as_echo "$tool_specified" >&6; } 25751 fi 25752 fi 25753 fi 25754 25755 25756 25757 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25758 25759 # Publish this variable in the help. 25760 25761 25762 if test "x$JAR" = x; then 25763 # The variable is not set by user, try to locate tool using the code snippet 25764 25765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25766 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25767 JAR=$BOOT_JDK/bin/jar 25768 if test ! -x $JAR; then 25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25770 $as_echo "not found" >&6; } 25771 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25772 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25773 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25774 fi 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25776 $as_echo "ok" >&6; } 25777 25778 25779 else 25780 # The variable is set, but is it from the command line or the environment? 25781 25782 # Try to remove the string !JAR! from our list. 25783 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25784 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25785 # If it failed, the variable was not from the command line. Ignore it, 25786 # but warn the user (except for BASH, which is always set by the calling BASH). 25787 if test "xJAR" != xBASH; then 25788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25789 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25790 fi 25791 # Try to locate tool using the code snippet 25792 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25794 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25795 JAR=$BOOT_JDK/bin/jar 25796 if test ! -x $JAR; then 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25798 $as_echo "not found" >&6; } 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25800 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25801 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25802 fi 25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25804 $as_echo "ok" >&6; } 25805 25806 25807 else 25808 # If it succeeded, then it was overridden by the user. We will use it 25809 # for the tool. 25810 25811 # First remove it from the list of overridden variables, so we can test 25812 # for unknown variables in the end. 25813 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25814 25815 # Check if the provided tool contains a complete path. 25816 tool_specified="$JAR" 25817 tool_basename="${tool_specified##*/}" 25818 if test "x$tool_basename" = "x$tool_specified"; then 25819 # A command without a complete path is provided, search $PATH. 25820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25821 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25822 # Extract the first word of "$tool_basename", so it can be a program name with args. 25823 set dummy $tool_basename; ac_word=$2 25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25825 $as_echo_n "checking for $ac_word... " >&6; } 25826 if ${ac_cv_path_JAR+:} false; then : 25827 $as_echo_n "(cached) " >&6 25828 else 25829 case $JAR in 25830 [\\/]* | ?:[\\/]*) 25831 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25832 ;; 25833 *) 25834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25835 for as_dir in $PATH 25836 do 25837 IFS=$as_save_IFS 25838 test -z "$as_dir" && as_dir=. 25839 for ac_exec_ext in '' $ac_executable_extensions; do 25840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25841 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25843 break 2 25844 fi 25845 done 25846 done 25847 IFS=$as_save_IFS 25848 25849 ;; 25850 esac 25851 fi 25852 JAR=$ac_cv_path_JAR 25853 if test -n "$JAR"; then 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25855 $as_echo "$JAR" >&6; } 25856 else 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25858 $as_echo "no" >&6; } 25859 fi 25860 25861 25862 if test "x$JAR" = x; then 25863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25864 fi 25865 else 25866 # Otherwise we believe it is a complete path. Use it as it is. 25867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25868 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25870 $as_echo_n "checking for JAR... " >&6; } 25871 if test ! -x "$tool_specified"; then 25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25873 $as_echo "not found" >&6; } 25874 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25875 fi 25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25877 $as_echo "$tool_specified" >&6; } 25878 fi 25879 fi 25880 fi 25881 25882 25883 25884 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25885 25886 # Publish this variable in the help. 25887 25888 25889 if test "x$NATIVE2ASCII" = x; then 25890 # The variable is not set by user, try to locate tool using the code snippet 25891 25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25893 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25894 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25895 if test ! -x $NATIVE2ASCII; then 25896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25897 $as_echo "not found" >&6; } 25898 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25899 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25900 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25901 fi 25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25903 $as_echo "ok" >&6; } 25904 25905 25906 else 25907 # The variable is set, but is it from the command line or the environment? 25908 25909 # Try to remove the string !NATIVE2ASCII! from our list. 25910 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25911 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25912 # If it failed, the variable was not from the command line. Ignore it, 25913 # but warn the user (except for BASH, which is always set by the calling BASH). 25914 if test "xNATIVE2ASCII" != xBASH; then 25915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25916 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25917 fi 25918 # Try to locate tool using the code snippet 25919 25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25921 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25922 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25923 if test ! -x $NATIVE2ASCII; then 25924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25925 $as_echo "not found" >&6; } 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25927 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25928 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25929 fi 25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25931 $as_echo "ok" >&6; } 25932 25933 25934 else 25935 # If it succeeded, then it was overridden by the user. We will use it 25936 # for the tool. 25937 25938 # First remove it from the list of overridden variables, so we can test 25939 # for unknown variables in the end. 25940 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25941 25942 # Check if the provided tool contains a complete path. 25943 tool_specified="$NATIVE2ASCII" 25944 tool_basename="${tool_specified##*/}" 25945 if test "x$tool_basename" = "x$tool_specified"; then 25946 # A command without a complete path is provided, search $PATH. 25947 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25948 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25949 # Extract the first word of "$tool_basename", so it can be a program name with args. 25950 set dummy $tool_basename; ac_word=$2 25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25952 $as_echo_n "checking for $ac_word... " >&6; } 25953 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25954 $as_echo_n "(cached) " >&6 25955 else 25956 case $NATIVE2ASCII in 25957 [\\/]* | ?:[\\/]*) 25958 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25959 ;; 25960 *) 25961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25962 for as_dir in $PATH 25963 do 25964 IFS=$as_save_IFS 25965 test -z "$as_dir" && as_dir=. 25966 for ac_exec_ext in '' $ac_executable_extensions; do 25967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25968 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25970 break 2 25971 fi 25972 done 25973 done 25974 IFS=$as_save_IFS 25975 25976 ;; 25977 esac 25978 fi 25979 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25980 if test -n "$NATIVE2ASCII"; then 25981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25982 $as_echo "$NATIVE2ASCII" >&6; } 25983 else 25984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25985 $as_echo "no" >&6; } 25986 fi 25987 25988 25989 if test "x$NATIVE2ASCII" = x; then 25990 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25991 fi 25992 else 25993 # Otherwise we believe it is a complete path. Use it as it is. 25994 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25995 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25997 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25998 if test ! -x "$tool_specified"; then 25999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26000 $as_echo "not found" >&6; } 26001 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 26002 fi 26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26004 $as_echo "$tool_specified" >&6; } 26005 fi 26006 fi 26007 fi 26008 26009 26010 26011 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 26012 26013 # Publish this variable in the help. 26014 26015 26016 if test "x$JARSIGNER" = x; then 26017 # The variable is not set by user, try to locate tool using the code snippet 26018 26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26020 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26021 JARSIGNER=$BOOT_JDK/bin/jarsigner 26022 if test ! -x $JARSIGNER; then 26023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26024 $as_echo "not found" >&6; } 26025 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26026 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26027 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26028 fi 26029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26030 $as_echo "ok" >&6; } 26031 26032 26033 else 26034 # The variable is set, but is it from the command line or the environment? 26035 26036 # Try to remove the string !JARSIGNER! from our list. 26037 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 26038 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26039 # If it failed, the variable was not from the command line. Ignore it, 26040 # but warn the user (except for BASH, which is always set by the calling BASH). 26041 if test "xJARSIGNER" != xBASH; then 26042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 26043 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 26044 fi 26045 # Try to locate tool using the code snippet 26046 26047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 26048 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 26049 JARSIGNER=$BOOT_JDK/bin/jarsigner 26050 if test ! -x $JARSIGNER; then 26051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26052 $as_echo "not found" >&6; } 26053 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 26054 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 26055 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 26056 fi 26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 26058 $as_echo "ok" >&6; } 26059 26060 26061 else 26062 # If it succeeded, then it was overridden by the user. We will use it 26063 # for the tool. 26064 26065 # First remove it from the list of overridden variables, so we can test 26066 # for unknown variables in the end. 26067 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26068 26069 # Check if the provided tool contains a complete path. 26070 tool_specified="$JARSIGNER" 26071 tool_basename="${tool_specified##*/}" 26072 if test "x$tool_basename" = "x$tool_specified"; then 26073 # A command without a complete path is provided, search $PATH. 26074 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 26075 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 26076 # Extract the first word of "$tool_basename", so it can be a program name with args. 26077 set dummy $tool_basename; ac_word=$2 26078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26079 $as_echo_n "checking for $ac_word... " >&6; } 26080 if ${ac_cv_path_JARSIGNER+:} false; then : 26081 $as_echo_n "(cached) " >&6 26082 else 26083 case $JARSIGNER in 26084 [\\/]* | ?:[\\/]*) 26085 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 26086 ;; 26087 *) 26088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26089 for as_dir in $PATH 26090 do 26091 IFS=$as_save_IFS 26092 test -z "$as_dir" && as_dir=. 26093 for ac_exec_ext in '' $ac_executable_extensions; do 26094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26095 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 26096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26097 break 2 26098 fi 26099 done 26100 done 26101 IFS=$as_save_IFS 26102 26103 ;; 26104 esac 26105 fi 26106 JARSIGNER=$ac_cv_path_JARSIGNER 26107 if test -n "$JARSIGNER"; then 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 26109 $as_echo "$JARSIGNER" >&6; } 26110 else 26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26112 $as_echo "no" >&6; } 26113 fi 26114 26115 26116 if test "x$JARSIGNER" = x; then 26117 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26118 fi 26119 else 26120 # Otherwise we believe it is a complete path. Use it as it is. 26121 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 26122 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 26123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 26124 $as_echo_n "checking for JARSIGNER... " >&6; } 26125 if test ! -x "$tool_specified"; then 26126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26127 $as_echo "not found" >&6; } 26128 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 26129 fi 26130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26131 $as_echo "$tool_specified" >&6; } 26132 fi 26133 fi 26134 fi 26135 26136 26137 26138 # Finally, set some other options... 26139 26140 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 26141 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 26142 26143 26144 26145 26146 ############################################################################### 26147 # 26148 # Configure the sources to use. We can add or override individual directories. 26149 # 26150 ############################################################################### 26151 26152 26153 # Where are the sources. Any of these can be overridden 26154 # using --with-override-corba and the likes. 26155 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26156 CORBA_TOPDIR="$SRC_ROOT/corba" 26157 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26158 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26159 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26160 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26161 JDK_TOPDIR="$SRC_ROOT/jdk" 26162 26163 26164 26165 26166 26167 26168 26169 26170 26171 26172 ############################################################################### 26173 # 26174 # Pickup additional source for a component from outside of the source root 26175 # or override source for a component. 26176 # 26177 26178 # Check whether --with-add-source-root was given. 26179 if test "${with_add_source_root+set}" = set; then : 26180 withval=$with_add_source_root; 26181 fi 26182 26183 26184 26185 # Check whether --with-override-source-root was given. 26186 if test "${with_override_source_root+set}" = set; then : 26187 withval=$with_override_source_root; 26188 fi 26189 26190 26191 26192 # Check whether --with-adds-and-overrides was given. 26193 if test "${with_adds_and_overrides+set}" = set; then : 26194 withval=$with_adds_and_overrides; 26195 fi 26196 26197 26198 if test "x$with_adds_and_overrides" != x; then 26199 with_add_source_root="$with_adds_and_overrides/adds" 26200 with_override_source_root="$with_adds_and_overrides/overrides" 26201 fi 26202 26203 if test "x$with_add_source_root" != x; then 26204 if ! test -d $with_add_source_root; then 26205 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26206 fi 26207 CURDIR="$PWD" 26208 cd "$with_add_source_root" 26209 ADD_SRC_ROOT="`pwd`" 26210 cd "$CURDIR" 26211 # Verify that the addon source root does not have any root makefiles. 26212 # If it does, then it is usually an error, prevent this. 26213 if test -f $with_add_source_root/langtools/make/Makefile; then 26214 as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5 26215 fi 26216 if test -f $with_add_source_root/corba/make/Makefile; then 26217 as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5 26218 fi 26219 if test -f $with_add_source_root/jaxp/make/Makefile; then 26220 as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5 26221 fi 26222 if test -f $with_add_source_root/jaxws/make/Makefile; then 26223 as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5 26224 fi 26225 if test -f $with_add_source_root/hotspot/make/Makefile; then 26226 as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5 26227 fi 26228 if test -f $with_add_source_root/nashorn/make/Makefile; then 26229 as_fn_error $? "Your add source root seems to contain a full nashorn repo! An add source root should only contain additional sources." "$LINENO" 5 26230 fi 26231 if test -f $with_add_source_root/jdk/make/Makefile; then 26232 as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5 26233 fi 26234 fi 26235 26236 26237 if test "x$with_override_source_root" != x; then 26238 if ! test -d $with_override_source_root; then 26239 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26240 fi 26241 CURDIR="$PWD" 26242 cd "$with_override_source_root" 26243 OVERRIDE_SRC_ROOT="`pwd`" 26244 cd "$CURDIR" 26245 if test -f $with_override_source_root/langtools/make/Makefile; then 26246 as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5 26247 fi 26248 if test -f $with_override_source_root/corba/make/Makefile; then 26249 as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5 26250 fi 26251 if test -f $with_override_source_root/jaxp/make/Makefile; then 26252 as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5 26253 fi 26254 if test -f $with_override_source_root/jaxws/make/Makefile; then 26255 as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5 26256 fi 26257 if test -f $with_override_source_root/hotspot/make/Makefile; then 26258 as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5 26259 fi 26260 if test -f $with_override_source_root/nashorn/make/Makefile; then 26261 as_fn_error $? "Your override source root seems to contain a full nashorn repo! An override source root should only contain sources that override." "$LINENO" 5 26262 fi 26263 if test -f $with_override_source_root/jdk/make/Makefile; then 26264 as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5 26265 fi 26266 fi 26267 26268 26269 ############################################################################### 26270 # 26271 # Override a repo completely, this is used for example when you have 3 small 26272 # development sandboxes of the langtools sources and want to avoid having 3 full 26273 # OpenJDK sources checked out on disk. 26274 # 26275 # Assuming that the 3 langtools sandboxes are located here: 26276 # /home/fredrik/sandbox1/langtools 26277 # /home/fredrik/sandbox2/langtools 26278 # /home/fredrik/sandbox3/langtools 26279 # 26280 # From the source root you create build subdirs manually: 26281 # mkdir -p build1 build2 build3 26282 # in each build directory run: 26283 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26284 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26285 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26286 # 26287 26288 26289 # Check whether --with-override-langtools was given. 26290 if test "${with_override_langtools+set}" = set; then : 26291 withval=$with_override_langtools; 26292 fi 26293 26294 26295 26296 # Check whether --with-override-corba was given. 26297 if test "${with_override_corba+set}" = set; then : 26298 withval=$with_override_corba; 26299 fi 26300 26301 26302 26303 # Check whether --with-override-jaxp was given. 26304 if test "${with_override_jaxp+set}" = set; then : 26305 withval=$with_override_jaxp; 26306 fi 26307 26308 26309 26310 # Check whether --with-override-jaxws was given. 26311 if test "${with_override_jaxws+set}" = set; then : 26312 withval=$with_override_jaxws; 26313 fi 26314 26315 26316 26317 # Check whether --with-override-hotspot was given. 26318 if test "${with_override_hotspot+set}" = set; then : 26319 withval=$with_override_hotspot; 26320 fi 26321 26322 26323 26324 # Check whether --with-override-nashorn was given. 26325 if test "${with_override_nashorn+set}" = set; then : 26326 withval=$with_override_nashorn; 26327 fi 26328 26329 26330 26331 # Check whether --with-override-jdk was given. 26332 if test "${with_override_jdk+set}" = set; then : 26333 withval=$with_override_jdk; 26334 fi 26335 26336 26337 if test "x$with_override_langtools" != x; then 26338 CURDIR="$PWD" 26339 cd "$with_override_langtools" 26340 LANGTOOLS_TOPDIR="`pwd`" 26341 cd "$CURDIR" 26342 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26343 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26344 fi 26345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26346 $as_echo_n "checking if langtools should be overridden... " >&6; } 26347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26348 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26349 fi 26350 if test "x$with_override_corba" != x; then 26351 CURDIR="$PWD" 26352 cd "$with_override_corba" 26353 CORBA_TOPDIR="`pwd`" 26354 cd "$CURDIR" 26355 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26356 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26357 fi 26358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26359 $as_echo_n "checking if corba should be overridden... " >&6; } 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26361 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26362 fi 26363 if test "x$with_override_jaxp" != x; then 26364 CURDIR="$PWD" 26365 cd "$with_override_jaxp" 26366 JAXP_TOPDIR="`pwd`" 26367 cd "$CURDIR" 26368 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26369 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26370 fi 26371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26372 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26374 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26375 fi 26376 if test "x$with_override_jaxws" != x; then 26377 CURDIR="$PWD" 26378 cd "$with_override_jaxws" 26379 JAXWS_TOPDIR="`pwd`" 26380 cd "$CURDIR" 26381 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26382 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26383 fi 26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26385 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26387 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26388 fi 26389 if test "x$with_override_hotspot" != x; then 26390 CURDIR="$PWD" 26391 cd "$with_override_hotspot" 26392 HOTSPOT_TOPDIR="`pwd`" 26393 cd "$CURDIR" 26394 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26395 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26396 fi 26397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26398 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26400 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26401 fi 26402 if test "x$with_override_nashorn" != x; then 26403 CURDIR="$PWD" 26404 cd "$with_override_nashorn" 26405 NASHORN_TOPDIR="`pwd`" 26406 cd "$CURDIR" 26407 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26408 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26409 fi 26410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26411 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26413 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26414 fi 26415 if test "x$with_override_jdk" != x; then 26416 CURDIR="$PWD" 26417 cd "$with_override_jdk" 26418 JDK_TOPDIR="`pwd`" 26419 cd "$CURDIR" 26420 if ! test -f $JDK_TOPDIR/make/Makefile; then 26421 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26422 fi 26423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26424 $as_echo_n "checking if JDK should be overridden... " >&6; } 26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26426 $as_echo "yes with $JDK_TOPDIR" >&6; } 26427 fi 26428 26429 26430 BUILD_OUTPUT="$OUTPUT_ROOT" 26431 26432 26433 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26434 BUILD_HOTSPOT=true 26435 26436 26437 26438 # Check whether --with-import-hotspot was given. 26439 if test "${with_import_hotspot+set}" = set; then : 26440 withval=$with_import_hotspot; 26441 fi 26442 26443 if test "x$with_import_hotspot" != x; then 26444 CURDIR="$PWD" 26445 cd "$with_import_hotspot" 26446 HOTSPOT_DIST="`pwd`" 26447 cd "$CURDIR" 26448 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26449 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26450 fi 26451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26452 $as_echo_n "checking if hotspot should be imported... " >&6; } 26453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26454 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26455 BUILD_HOTSPOT=false 26456 fi 26457 26458 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26459 26460 26461 ############################################################################### 26462 # 26463 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26464 # native code. 26465 # 26466 ############################################################################### 26467 26468 # First determine the toolchain type (compiler family) 26469 26470 26471 # Check whether --with-toolchain-type was given. 26472 if test "${with_toolchain_type+set}" = set; then : 26473 withval=$with_toolchain_type; 26474 fi 26475 26476 26477 # Use indirect variable referencing 26478 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26479 VALID_TOOLCHAINS=${!toolchain_var_name} 26480 26481 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26482 if test -n "$XCODEBUILD"; then 26483 # On Mac OS X, default toolchain to clang after Xcode 5 26484 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26485 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26486 if test $? -ne 0; then 26487 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26488 fi 26489 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26490 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26491 $CUT -f 1 -d .` 26492 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26493 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26494 if test $XCODE_MAJOR_VERSION -ge 5; then 26495 DEFAULT_TOOLCHAIN="clang" 26496 else 26497 DEFAULT_TOOLCHAIN="gcc" 26498 fi 26499 else 26500 # If Xcode is not installed, but the command line tools are 26501 # then we can't run xcodebuild. On these systems we should 26502 # default to clang 26503 DEFAULT_TOOLCHAIN="clang" 26504 fi 26505 else 26506 # First toolchain type in the list is the default 26507 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26508 fi 26509 26510 if test "x$with_toolchain_type" = xlist; then 26511 # List all toolchains 26512 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26513 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26514 for toolchain in $VALID_TOOLCHAINS; do 26515 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26516 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26517 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26518 done 26519 26520 exit 0 26521 elif test "x$with_toolchain_type" != x; then 26522 # User override; check that it is valid 26523 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26524 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26525 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26526 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26527 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26528 as_fn_error $? "Cannot continue." "$LINENO" 5 26529 fi 26530 TOOLCHAIN_TYPE=$with_toolchain_type 26531 else 26532 # No flag given, use default 26533 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26534 fi 26535 26536 26537 TOOLCHAIN_CC_BINARY_clang="clang" 26538 TOOLCHAIN_CC_BINARY_gcc="gcc" 26539 TOOLCHAIN_CC_BINARY_microsoft="cl" 26540 TOOLCHAIN_CC_BINARY_solstudio="cc" 26541 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26542 26543 TOOLCHAIN_CXX_BINARY_clang="clang++" 26544 TOOLCHAIN_CXX_BINARY_gcc="g++" 26545 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26546 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26547 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26548 26549 # Use indirect variable referencing 26550 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26551 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26552 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26553 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26554 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26555 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26556 26557 26558 # Define filename patterns 26559 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26560 LIBRARY_PREFIX= 26561 SHARED_LIBRARY_SUFFIX='.dll' 26562 STATIC_LIBRARY_SUFFIX='.lib' 26563 SHARED_LIBRARY='$1.dll' 26564 STATIC_LIBRARY='$1.lib' 26565 OBJ_SUFFIX='.obj' 26566 EXE_SUFFIX='.exe' 26567 else 26568 LIBRARY_PREFIX=lib 26569 SHARED_LIBRARY_SUFFIX='.so' 26570 STATIC_LIBRARY_SUFFIX='.a' 26571 SHARED_LIBRARY='lib$1.so' 26572 STATIC_LIBRARY='lib$1.a' 26573 OBJ_SUFFIX='.o' 26574 EXE_SUFFIX='' 26575 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26576 SHARED_LIBRARY='lib$1.dylib' 26577 SHARED_LIBRARY_SUFFIX='.dylib' 26578 fi 26579 fi 26580 26581 26582 26583 26584 26585 26586 26587 26588 26589 26590 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26591 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26592 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26593 else 26594 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26595 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26596 fi 26597 26598 26599 # Then detect the actual binaries needed 26600 26601 # FIXME: Is this needed? 26602 ac_ext=cpp 26603 ac_cpp='$CXXCPP $CPPFLAGS' 26604 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26605 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26606 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26607 26608 26609 # Store the CFLAGS etc passed to the configure script. 26610 ORG_CFLAGS="$CFLAGS" 26611 ORG_CXXFLAGS="$CXXFLAGS" 26612 26613 # On Windows, we need to detect the visual studio installation first. 26614 # This will change the PATH, but we need to keep that new PATH even 26615 # after toolchain detection is done, since the compiler (on x86) uses 26616 # it for DLL resolution in runtime. 26617 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26618 26619 # Store path to cygwin link.exe to help excluding it when searching for 26620 # VS linker. This must be done before changing the PATH when looking for VS. 26621 # Extract the first word of "link", so it can be a program name with args. 26622 set dummy link; ac_word=$2 26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26624 $as_echo_n "checking for $ac_word... " >&6; } 26625 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26626 $as_echo_n "(cached) " >&6 26627 else 26628 case $CYGWIN_LINK in 26629 [\\/]* | ?:[\\/]*) 26630 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26631 ;; 26632 *) 26633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26634 for as_dir in $PATH 26635 do 26636 IFS=$as_save_IFS 26637 test -z "$as_dir" && as_dir=. 26638 for ac_exec_ext in '' $ac_executable_extensions; do 26639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26640 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26642 break 2 26643 fi 26644 done 26645 done 26646 IFS=$as_save_IFS 26647 26648 ;; 26649 esac 26650 fi 26651 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26652 if test -n "$CYGWIN_LINK"; then 26653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26654 $as_echo "$CYGWIN_LINK" >&6; } 26655 else 26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26657 $as_echo "no" >&6; } 26658 fi 26659 26660 26661 if test "x$CYGWIN_LINK" != x; then 26662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26663 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26664 "$CYGWIN_LINK" --version > /dev/null 26665 if test $? -eq 0 ; then 26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26667 $as_echo "yes" >&6; } 26668 else 26669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26670 $as_echo "no" >&6; } 26671 # This might be the VS linker. Don't exclude it later on. 26672 CYGWIN_LINK="" 26673 fi 26674 fi 26675 26676 # First-hand choice is to locate and run the vsvars bat file. 26677 26678 26679 # Check whether --with-toolchain-version was given. 26680 if test "${with_toolchain_version+set}" = set; then : 26681 withval=$with_toolchain_version; 26682 fi 26683 26684 26685 if test "x$with_toolchain_version" = xlist; then 26686 # List all toolchains 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchain versions are valid on this platform:" >&5 26688 $as_echo "$as_me: The following toolchain versions are valid on this platform:" >&6;} 26689 for version in $VALID_VS_VERSIONS; do 26690 eval VS_DESCRIPTION=\${VS_DESCRIPTION_$version} 26691 $PRINTF " %-10s %s\n" $version "$VS_DESCRIPTION" 26692 done 26693 26694 exit 0 26695 elif test "x$with_toolchain_version" != x; then 26696 # User override; check that it is valid 26697 if test "x${VALID_VS_VERSIONS/$with_toolchain_version/}" = "x${VALID_VS_VERSIONS}"; then 26698 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio version $with_toolchain_version is not valid." >&5 26699 $as_echo "$as_me: Visual Studio version $with_toolchain_version is not valid." >&6;} 26700 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&5 26701 $as_echo "$as_me: Valid Visual Studio versions: $VALID_VS_VERSIONS." >&6;} 26702 as_fn_error $? "Cannot continue." "$LINENO" 5 26703 fi 26704 VS_VERSIONS_PROBE_LIST="$with_toolchain_version" 26705 else 26706 # No flag given, use default 26707 VS_VERSIONS_PROBE_LIST="$VALID_VS_VERSIONS" 26708 fi 26709 26710 for VS_VERSION in $VS_VERSIONS_PROBE_LIST; do 26711 26712 VS_VERSION="$VS_VERSION" 26713 eval VS_COMNTOOLS_VAR="\${VS_ENVVAR_${VS_VERSION}}" 26714 eval VS_COMNTOOLS="\$${VS_COMNTOOLS_VAR}" 26715 eval VS_INSTALL_DIR="\${VS_VS_INSTALLDIR_${VS_VERSION}}" 26716 eval SDK_INSTALL_DIR="\${VS_SDK_INSTALLDIR_${VS_VERSION}}" 26717 26718 # When using --with-tools-dir, assume it points to the correct and default 26719 # version of Visual Studio or that --with-toolchain-version was also set. 26720 if test "x$with_tools_dir" != x; then 26721 26722 if test "x$VS_ENV_CMD" = x; then 26723 VS_VERSION="${VS_VERSION}" 26724 VS_BASE="$with_tools_dir/../.." 26725 METHOD="--with-tools-dir" 26726 26727 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26728 VCVARSFILE="vc/bin/vcvars32.bat" 26729 else 26730 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26731 fi 26732 26733 26734 windows_path="$VS_BASE" 26735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26736 unix_path=`$CYGPATH -u "$windows_path"` 26737 VS_BASE="$unix_path" 26738 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26739 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26740 VS_BASE="$unix_path" 26741 fi 26742 26743 if test -d "$VS_BASE"; then 26744 if test -f "$VS_BASE/$VCVARSFILE"; then 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26746 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26747 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26748 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26749 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26750 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26751 else 26752 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26753 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26754 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26755 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26756 fi 26757 fi 26758 fi 26759 26760 26761 if test "x$VS_ENV_CMD" = x; then 26762 VS_VERSION="${VS_VERSION}" 26763 VS_BASE="$with_tools_dir/../../.." 26764 METHOD="--with-tools-dir" 26765 26766 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26767 VCVARSFILE="vc/bin/vcvars32.bat" 26768 else 26769 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26770 fi 26771 26772 26773 windows_path="$VS_BASE" 26774 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26775 unix_path=`$CYGPATH -u "$windows_path"` 26776 VS_BASE="$unix_path" 26777 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26778 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26779 VS_BASE="$unix_path" 26780 fi 26781 26782 if test -d "$VS_BASE"; then 26783 if test -f "$VS_BASE/$VCVARSFILE"; then 26784 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26785 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26786 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26787 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26788 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26789 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26790 else 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26792 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26793 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26794 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26795 fi 26796 fi 26797 fi 26798 26799 if test "x$VS_ENV_CMD" = x; then 26800 # Having specified an argument which is incorrect will produce an instant failure; 26801 # we should not go on looking 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid" >&5 26803 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid" >&6;} 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&5 26805 $as_echo "$as_me: Visual Studio installation. Please point to the VC/bin or VC/bin/amd64" >&6;} 26806 { $as_echo "$as_me:${as_lineno-$LINENO}: directory within the Visual Studio installation" >&5 26807 $as_echo "$as_me: directory within the Visual Studio installation" >&6;} 26808 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26809 fi 26810 fi 26811 26812 VS_ENV_CMD="" 26813 VS_ENV_ARGS="" 26814 26815 if test "x$VS_COMNTOOLS" != x; then 26816 26817 if test "x$VS_ENV_CMD" = x; then 26818 VS_VERSION="${VS_VERSION}" 26819 VS_BASE="$VS_COMNTOOLS/../.." 26820 METHOD="$VS_COMNTOOLS_VAR variable" 26821 26822 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26823 VCVARSFILE="vc/bin/vcvars32.bat" 26824 else 26825 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26826 fi 26827 26828 26829 windows_path="$VS_BASE" 26830 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26831 unix_path=`$CYGPATH -u "$windows_path"` 26832 VS_BASE="$unix_path" 26833 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26834 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26835 VS_BASE="$unix_path" 26836 fi 26837 26838 if test -d "$VS_BASE"; then 26839 if test -f "$VS_BASE/$VCVARSFILE"; then 26840 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26841 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26842 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26843 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26844 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26845 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26846 else 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26848 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26850 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26851 fi 26852 fi 26853 fi 26854 26855 fi 26856 if test "x$PROGRAMFILES" != x; then 26857 26858 if test "x$VS_ENV_CMD" = x; then 26859 VS_VERSION="${VS_VERSION}" 26860 VS_BASE="$PROGRAMFILES/$VS_INSTALL_DIR" 26861 METHOD="well-known name" 26862 26863 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26864 VCVARSFILE="vc/bin/vcvars32.bat" 26865 else 26866 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26867 fi 26868 26869 26870 windows_path="$VS_BASE" 26871 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26872 unix_path=`$CYGPATH -u "$windows_path"` 26873 VS_BASE="$unix_path" 26874 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26875 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26876 VS_BASE="$unix_path" 26877 fi 26878 26879 if test -d "$VS_BASE"; then 26880 if test -f "$VS_BASE/$VCVARSFILE"; then 26881 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26882 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26883 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26884 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26885 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26886 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26887 else 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26889 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26891 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26892 fi 26893 fi 26894 fi 26895 26896 fi 26897 # Work around the insanely named ProgramFiles(x86) env variable 26898 PROGRAMFILES_X86="`env | $SED -n 's/^ProgramFiles(x86)=//p'`" 26899 if test "x$PROGRAMFILES_X86" != x; then 26900 26901 if test "x$VS_ENV_CMD" = x; then 26902 VS_VERSION="${VS_VERSION}" 26903 VS_BASE="$PROGRAMFILES_X86/$VS_INSTALL_DIR" 26904 METHOD="well-known name" 26905 26906 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26907 VCVARSFILE="vc/bin/vcvars32.bat" 26908 else 26909 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26910 fi 26911 26912 26913 windows_path="$VS_BASE" 26914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26915 unix_path=`$CYGPATH -u "$windows_path"` 26916 VS_BASE="$unix_path" 26917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26919 VS_BASE="$unix_path" 26920 fi 26921 26922 if test -d "$VS_BASE"; then 26923 if test -f "$VS_BASE/$VCVARSFILE"; then 26924 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26925 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26926 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26927 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26928 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26929 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26930 else 26931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26932 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26933 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26934 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26935 fi 26936 fi 26937 fi 26938 26939 fi 26940 26941 if test "x$VS_ENV_CMD" = x; then 26942 VS_VERSION="${VS_VERSION}" 26943 VS_BASE="C:/Program Files/$VS_INSTALL_DIR" 26944 METHOD="well-known name" 26945 26946 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26947 VCVARSFILE="vc/bin/vcvars32.bat" 26948 else 26949 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26950 fi 26951 26952 26953 windows_path="$VS_BASE" 26954 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26955 unix_path=`$CYGPATH -u "$windows_path"` 26956 VS_BASE="$unix_path" 26957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26958 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26959 VS_BASE="$unix_path" 26960 fi 26961 26962 if test -d "$VS_BASE"; then 26963 if test -f "$VS_BASE/$VCVARSFILE"; then 26964 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26965 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26966 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 26967 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26968 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26969 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 26970 else 26971 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 26972 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 26973 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26974 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26975 fi 26976 fi 26977 fi 26978 26979 26980 if test "x$VS_ENV_CMD" = x; then 26981 VS_VERSION="${VS_VERSION}" 26982 VS_BASE="C:/Program Files (x86)/$VS_INSTALL_DIR" 26983 METHOD="well-known name" 26984 26985 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26986 VCVARSFILE="vc/bin/vcvars32.bat" 26987 else 26988 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26989 fi 26990 26991 26992 windows_path="$VS_BASE" 26993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26994 unix_path=`$CYGPATH -u "$windows_path"` 26995 VS_BASE="$unix_path" 26996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26997 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26998 VS_BASE="$unix_path" 26999 fi 27000 27001 if test -d "$VS_BASE"; then 27002 if test -f "$VS_BASE/$VCVARSFILE"; then 27003 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27004 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27005 VS_ENV_CMD="$VS_BASE/$VCVARSFILE" 27006 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27007 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 27008 eval PLATFORM_TOOLSET="\${VS_VS_PLATFORM_NAME_${VS_VERSION}}" 27009 else 27010 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS_BASE using $METHOD" >&5 27011 $as_echo "$as_me: Found Visual Studio installation at $VS_BASE using $METHOD" >&6;} 27012 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 27013 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 27014 fi 27015 fi 27016 fi 27017 27018 27019 if test "x$SDK_INSTALL_DIR" != x; then 27020 if test "x$ProgramW6432" != x; then 27021 27022 if test "x$VS_ENV_CMD" = x; then 27023 VS_VERSION="${VS_VERSION}" 27024 WIN_SDK_BASE="$ProgramW6432/$SDK_INSTALL_DIR" 27025 METHOD="well-known name" 27026 27027 windows_path="$WIN_SDK_BASE" 27028 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27029 unix_path=`$CYGPATH -u "$windows_path"` 27030 WIN_SDK_BASE="$unix_path" 27031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27032 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27033 WIN_SDK_BASE="$unix_path" 27034 fi 27035 27036 if test -d "$WIN_SDK_BASE"; then 27037 # There have been cases of partial or broken SDK installations. A missing 27038 # lib dir is not going to work. 27039 if test ! -d "$WIN_SDK_BASE/lib"; then 27040 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27041 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27042 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27043 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27044 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27045 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27046 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27047 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27048 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27049 VS_ENV_ARGS="/x86" 27050 else 27051 VS_ENV_ARGS="/x64" 27052 fi 27053 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27054 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27055 # TODO: improve detection for other versions of SDK 27056 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27057 else 27058 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27059 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27060 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27061 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27062 fi 27063 fi 27064 fi 27065 27066 fi 27067 if test "x$PROGRAMW6432" != x; then 27068 27069 if test "x$VS_ENV_CMD" = x; then 27070 VS_VERSION="${VS_VERSION}" 27071 WIN_SDK_BASE="$PROGRAMW6432/$SDK_INSTALL_DIR" 27072 METHOD="well-known name" 27073 27074 windows_path="$WIN_SDK_BASE" 27075 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27076 unix_path=`$CYGPATH -u "$windows_path"` 27077 WIN_SDK_BASE="$unix_path" 27078 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27079 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27080 WIN_SDK_BASE="$unix_path" 27081 fi 27082 27083 if test -d "$WIN_SDK_BASE"; then 27084 # There have been cases of partial or broken SDK installations. A missing 27085 # lib dir is not going to work. 27086 if test ! -d "$WIN_SDK_BASE/lib"; then 27087 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27088 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27089 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27090 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27091 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27092 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27093 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27094 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27095 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27096 VS_ENV_ARGS="/x86" 27097 else 27098 VS_ENV_ARGS="/x64" 27099 fi 27100 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27101 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27102 # TODO: improve detection for other versions of SDK 27103 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27104 else 27105 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27106 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27107 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27108 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27109 fi 27110 fi 27111 fi 27112 27113 fi 27114 if test "x$PROGRAMFILES" != x; then 27115 27116 if test "x$VS_ENV_CMD" = x; then 27117 VS_VERSION="${VS_VERSION}" 27118 WIN_SDK_BASE="$PROGRAMFILES/$SDK_INSTALL_DIR" 27119 METHOD="well-known name" 27120 27121 windows_path="$WIN_SDK_BASE" 27122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27123 unix_path=`$CYGPATH -u "$windows_path"` 27124 WIN_SDK_BASE="$unix_path" 27125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27127 WIN_SDK_BASE="$unix_path" 27128 fi 27129 27130 if test -d "$WIN_SDK_BASE"; then 27131 # There have been cases of partial or broken SDK installations. A missing 27132 # lib dir is not going to work. 27133 if test ! -d "$WIN_SDK_BASE/lib"; then 27134 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27135 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27136 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27137 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27138 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27139 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27140 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27141 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27142 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27143 VS_ENV_ARGS="/x86" 27144 else 27145 VS_ENV_ARGS="/x64" 27146 fi 27147 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27148 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27149 # TODO: improve detection for other versions of SDK 27150 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27151 else 27152 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27153 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27154 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27155 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27156 fi 27157 fi 27158 fi 27159 27160 fi 27161 27162 if test "x$VS_ENV_CMD" = x; then 27163 VS_VERSION="${VS_VERSION}" 27164 WIN_SDK_BASE="C:/Program Files/$SDK_INSTALL_DIR" 27165 METHOD="well-known name" 27166 27167 windows_path="$WIN_SDK_BASE" 27168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27169 unix_path=`$CYGPATH -u "$windows_path"` 27170 WIN_SDK_BASE="$unix_path" 27171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27173 WIN_SDK_BASE="$unix_path" 27174 fi 27175 27176 if test -d "$WIN_SDK_BASE"; then 27177 # There have been cases of partial or broken SDK installations. A missing 27178 # lib dir is not going to work. 27179 if test ! -d "$WIN_SDK_BASE/lib"; then 27180 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27181 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27182 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27183 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27184 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27185 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27186 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27187 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27188 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27189 VS_ENV_ARGS="/x86" 27190 else 27191 VS_ENV_ARGS="/x64" 27192 fi 27193 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27194 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27195 # TODO: improve detection for other versions of SDK 27196 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27197 else 27198 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27199 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27200 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27201 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27202 fi 27203 fi 27204 fi 27205 27206 27207 if test "x$VS_ENV_CMD" = x; then 27208 VS_VERSION="${VS_VERSION}" 27209 WIN_SDK_BASE="C:/Program Files (x86)/$SDK_INSTALL_DIR" 27210 METHOD="well-known name" 27211 27212 windows_path="$WIN_SDK_BASE" 27213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27214 unix_path=`$CYGPATH -u "$windows_path"` 27215 WIN_SDK_BASE="$unix_path" 27216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27218 WIN_SDK_BASE="$unix_path" 27219 fi 27220 27221 if test -d "$WIN_SDK_BASE"; then 27222 # There have been cases of partial or broken SDK installations. A missing 27223 # lib dir is not going to work. 27224 if test ! -d "$WIN_SDK_BASE/lib"; then 27225 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27226 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27227 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 27228 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 27229 elif test -f "$WIN_SDK_BASE/Bin/SetEnv.Cmd"; then 27230 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27231 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27232 VS_ENV_CMD="$WIN_SDK_BASE/Bin/SetEnv.Cmd" 27233 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27234 VS_ENV_ARGS="/x86" 27235 else 27236 VS_ENV_ARGS="/x64" 27237 fi 27238 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 27239 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 27240 # TODO: improve detection for other versions of SDK 27241 eval PLATFORM_TOOLSET="\${VS_SDK_PLATFORM_NAME_${VS_VERSION}}" 27242 else 27243 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 27244 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 27245 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 27246 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 27247 fi 27248 fi 27249 fi 27250 27251 fi 27252 27253 if test "x$VS_ENV_CMD" != x; then 27254 TOOLCHAIN_VERSION=$VS_VERSION 27255 eval VS_DESCRIPTION="\${VS_DESCRIPTION_${VS_VERSION}}" 27256 eval VS_VERSION_INTERNAL="\${VS_VERSION_INTERNAL_${VS_VERSION}}" 27257 eval MSVCR_NAME="\${VS_MSVCR_${VS_VERSION}}" 27258 eval MSVCP_NAME="\${VS_MSVCP_${VS_VERSION}}" 27259 # The rest of the variables are already evaled while probing 27260 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $VS_DESCRIPTION" >&5 27261 $as_echo "$as_me: Found $VS_DESCRIPTION" >&6;} 27262 break 27263 fi 27264 done 27265 27266 27267 if test "x$VS_ENV_CMD" != x; then 27268 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 27269 27270 # Only process if variable expands to non-empty 27271 27272 if test "x$VS_ENV_CMD" != x; then 27273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27274 27275 # First separate the path from the arguments. This will split at the first 27276 # space. 27277 complete="$VS_ENV_CMD" 27278 path="${complete%% *}" 27279 tmp="$complete EOL" 27280 arguments="${tmp#* }" 27281 27282 # Input might be given as Windows format, start by converting to 27283 # unix format. 27284 new_path=`$CYGPATH -u "$path"` 27285 27286 # Now try to locate executable using which 27287 new_path=`$WHICH "$new_path" 2> /dev/null` 27288 # bat and cmd files are not always considered executable in cygwin causing which 27289 # to not find them 27290 if test "x$new_path" = x \ 27291 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27292 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27293 new_path=`$CYGPATH -u "$path"` 27294 fi 27295 if test "x$new_path" = x; then 27296 # Oops. Which didn't find the executable. 27297 # The splitting of arguments from the executable at a space might have been incorrect, 27298 # since paths with space are more likely in Windows. Give it another try with the whole 27299 # argument. 27300 path="$complete" 27301 arguments="EOL" 27302 new_path=`$CYGPATH -u "$path"` 27303 new_path=`$WHICH "$new_path" 2> /dev/null` 27304 # bat and cmd files are not always considered executable in cygwin causing which 27305 # to not find them 27306 if test "x$new_path" = x \ 27307 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27308 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27309 new_path=`$CYGPATH -u "$path"` 27310 fi 27311 if test "x$new_path" = x; then 27312 # It's still not found. Now this is an unrecoverable error. 27313 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27314 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27315 has_space=`$ECHO "$complete" | $GREP " "` 27316 if test "x$has_space" != x; then 27317 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27318 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27319 fi 27320 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27321 fi 27322 fi 27323 27324 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27325 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27326 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27327 # "foo.exe" is OK but "foo" is an error. 27328 # 27329 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27330 # It is also a way to make sure we got the proper file name for the real test later on. 27331 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27332 if test "x$test_shortpath" = x; then 27333 # Short path failed, file does not exist as specified. 27334 # Try adding .exe or .cmd 27335 if test -f "${new_path}.exe"; then 27336 input_to_shortpath="${new_path}.exe" 27337 elif test -f "${new_path}.cmd"; then 27338 input_to_shortpath="${new_path}.cmd" 27339 else 27340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27341 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27342 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27343 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27344 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27345 fi 27346 else 27347 input_to_shortpath="$new_path" 27348 fi 27349 27350 # Call helper function which possibly converts this using DOS-style short mode. 27351 # If so, the updated path is stored in $new_path. 27352 new_path="$input_to_shortpath" 27353 27354 input_path="$input_to_shortpath" 27355 # Check if we need to convert this using DOS-style short mode. If the path 27356 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27357 # take no chances and rewrite it. 27358 # Note: m4 eats our [], so we need to use [ and ] instead. 27359 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27360 if test "x$has_forbidden_chars" != x; then 27361 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27362 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27363 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27364 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27365 # Going to short mode and back again did indeed matter. Since short mode is 27366 # case insensitive, let's make it lowercase to improve readability. 27367 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27368 # Now convert it back to Unix-stile (cygpath) 27369 input_path=`$CYGPATH -u "$shortmode_path"` 27370 new_path="$input_path" 27371 fi 27372 fi 27373 27374 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27375 if test "x$test_cygdrive_prefix" = x; then 27376 # As a simple fix, exclude /usr/bin since it's not a real path. 27377 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27378 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27379 # a path prefixed by /cygdrive for fixpath to work. 27380 new_path="$CYGWIN_ROOT_PATH$input_path" 27381 fi 27382 fi 27383 27384 # remove trailing .exe if any 27385 new_path="${new_path/%.exe/}" 27386 27387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27388 27389 # First separate the path from the arguments. This will split at the first 27390 # space. 27391 complete="$VS_ENV_CMD" 27392 path="${complete%% *}" 27393 tmp="$complete EOL" 27394 arguments="${tmp#* }" 27395 27396 # Input might be given as Windows format, start by converting to 27397 # unix format. 27398 new_path="$path" 27399 27400 windows_path="$new_path" 27401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27402 unix_path=`$CYGPATH -u "$windows_path"` 27403 new_path="$unix_path" 27404 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27405 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27406 new_path="$unix_path" 27407 fi 27408 27409 27410 # Now try to locate executable using which 27411 new_path=`$WHICH "$new_path" 2> /dev/null` 27412 27413 if test "x$new_path" = x; then 27414 # Oops. Which didn't find the executable. 27415 # The splitting of arguments from the executable at a space might have been incorrect, 27416 # since paths with space are more likely in Windows. Give it another try with the whole 27417 # argument. 27418 path="$complete" 27419 arguments="EOL" 27420 new_path="$path" 27421 27422 windows_path="$new_path" 27423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27424 unix_path=`$CYGPATH -u "$windows_path"` 27425 new_path="$unix_path" 27426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27428 new_path="$unix_path" 27429 fi 27430 27431 27432 new_path=`$WHICH "$new_path" 2> /dev/null` 27433 # bat and cmd files are not always considered executable in MSYS causing which 27434 # to not find them 27435 if test "x$new_path" = x \ 27436 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27437 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27438 new_path="$path" 27439 27440 windows_path="$new_path" 27441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27442 unix_path=`$CYGPATH -u "$windows_path"` 27443 new_path="$unix_path" 27444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27446 new_path="$unix_path" 27447 fi 27448 27449 fi 27450 27451 if test "x$new_path" = x; then 27452 # It's still not found. Now this is an unrecoverable error. 27453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27454 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27455 has_space=`$ECHO "$complete" | $GREP " "` 27456 if test "x$has_space" != x; then 27457 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27458 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27459 fi 27460 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27461 fi 27462 fi 27463 27464 # Now new_path has a complete unix path to the binary 27465 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27466 # Keep paths in /bin as-is, but remove trailing .exe if any 27467 new_path="${new_path/%.exe/}" 27468 # Do not save /bin paths to all_fixpath_prefixes! 27469 else 27470 # Not in mixed or Windows style, start by that. 27471 new_path=`cmd //c echo $new_path` 27472 27473 input_path="$new_path" 27474 # Check if we need to convert this using DOS-style short mode. If the path 27475 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27476 # take no chances and rewrite it. 27477 # Note: m4 eats our [], so we need to use [ and ] instead. 27478 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27479 if test "x$has_forbidden_chars" != x; then 27480 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27481 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27482 fi 27483 27484 # Output is in $new_path 27485 27486 windows_path="$new_path" 27487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27488 unix_path=`$CYGPATH -u "$windows_path"` 27489 new_path="$unix_path" 27490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27492 new_path="$unix_path" 27493 fi 27494 27495 # remove trailing .exe if any 27496 new_path="${new_path/%.exe/}" 27497 27498 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27499 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27500 fi 27501 27502 else 27503 # We're on a unix platform. Hooray! :) 27504 # First separate the path from the arguments. This will split at the first 27505 # space. 27506 complete="$VS_ENV_CMD" 27507 path="${complete%% *}" 27508 tmp="$complete EOL" 27509 arguments="${tmp#* }" 27510 27511 # Cannot rely on the command "which" here since it doesn't always work. 27512 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27513 if test -z "$is_absolute_path"; then 27514 # Path to executable is not absolute. Find it. 27515 IFS_save="$IFS" 27516 IFS=: 27517 for p in $PATH; do 27518 if test -f "$p/$path" && test -x "$p/$path"; then 27519 new_path="$p/$path" 27520 break 27521 fi 27522 done 27523 IFS="$IFS_save" 27524 else 27525 # This is an absolute path, we can use it without further modifications. 27526 new_path="$path" 27527 fi 27528 27529 if test "x$new_path" = x; then 27530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27531 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27532 has_space=`$ECHO "$complete" | $GREP " "` 27533 if test "x$has_space" != x; then 27534 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27535 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27536 fi 27537 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27538 fi 27539 fi 27540 27541 # Now join together the path and the arguments once again 27542 if test "x$arguments" != xEOL; then 27543 new_complete="$new_path ${arguments% *}" 27544 else 27545 new_complete="$new_path" 27546 fi 27547 27548 if test "x$complete" != "x$new_complete"; then 27549 VS_ENV_CMD="$new_complete" 27550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27551 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27552 fi 27553 fi 27554 27555 27556 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27557 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27558 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27559 27560 # We need to create a couple of temporary files. 27561 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27562 $MKDIR -p $VS_ENV_TMP_DIR 27563 27564 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27565 # Instead create a shell script which will set the relevant variables when run. 27566 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27567 27568 unix_path="$WINPATH_VS_ENV_CMD" 27569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27570 windows_path=`$CYGPATH -m "$unix_path"` 27571 WINPATH_VS_ENV_CMD="$windows_path" 27572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27573 windows_path=`cmd //c echo $unix_path` 27574 WINPATH_VS_ENV_CMD="$windows_path" 27575 fi 27576 27577 WINPATH_BASH="$BASH" 27578 27579 unix_path="$WINPATH_BASH" 27580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27581 windows_path=`$CYGPATH -m "$unix_path"` 27582 WINPATH_BASH="$windows_path" 27583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27584 windows_path=`cmd //c echo $unix_path` 27585 WINPATH_BASH="$windows_path" 27586 fi 27587 27588 27589 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27590 # script (executable by bash) that will setup the important variables. 27591 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27592 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27593 # This will end up something like: 27594 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27595 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27596 # These will end up something like: 27597 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27598 # The trailing space for everyone except PATH is no typo, but is needed due 27599 # to trailing \ in the Windows paths. These will be stripped later. 27600 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27601 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE\;$include \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27602 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB\;$lib \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27603 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27604 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27605 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27606 27607 # Now execute the newly created bat file. 27608 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27609 # Change directory so we don't need to mess with Windows paths in redirects. 27610 cd $VS_ENV_TMP_DIR 27611 cmd /c extract-vs-env.bat | $CAT 27612 cd $CURDIR 27613 27614 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27615 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27616 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27617 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27618 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27619 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27620 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27621 as_fn_error $? "Cannot continue" "$LINENO" 5 27622 fi 27623 27624 # Now set all paths and other env variables. This will allow the rest of 27625 # the configure script to find and run the compiler in the proper way. 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27627 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27628 . $VS_ENV_TMP_DIR/set-vs-env.sh 27629 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27630 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27631 else 27632 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27633 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27634 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27635 fi 27636 27637 # At this point, we should have correct variables in the environment, or we can't continue. 27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27639 $as_echo_n "checking for Visual Studio variables... " >&6; } 27640 27641 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27642 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27644 $as_echo "present but broken" >&6; } 27645 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27646 else 27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27648 $as_echo "ok" >&6; } 27649 # Remove any trailing "\" ";" and " " from the variables. 27650 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED -e 's/\\\\*;* *$//'` 27651 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\*;* *$//'` 27652 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27653 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27654 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27655 # Remove any paths containing # (typically F#) as that messes up make. This 27656 # is needed if visual studio was installed with F# support. 27657 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27658 27659 27660 27661 27662 27663 # Convert VS_INCLUDE into SYSROOT_CFLAGS 27664 OLDIFS="$IFS" 27665 IFS=";" 27666 for i in $VS_INCLUDE; do 27667 ipath=$i 27668 # Only process non-empty elements 27669 if test "x$ipath" != x; then 27670 IFS="$OLDIFS" 27671 # Check that directory exists before calling fixup_path 27672 testpath=$ipath 27673 27674 windows_path="$testpath" 27675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27676 unix_path=`$CYGPATH -u "$windows_path"` 27677 testpath="$unix_path" 27678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27680 testpath="$unix_path" 27681 fi 27682 27683 if test -d "$testpath"; then 27684 27685 # Only process if variable expands to non-empty 27686 27687 if test "x$ipath" != x; then 27688 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27689 27690 # Input might be given as Windows format, start by converting to 27691 # unix format. 27692 path="$ipath" 27693 new_path=`$CYGPATH -u "$path"` 27694 27695 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27696 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27697 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27698 # "foo.exe" is OK but "foo" is an error. 27699 # 27700 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27701 # It is also a way to make sure we got the proper file name for the real test later on. 27702 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27703 if test "x$test_shortpath" = x; then 27704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27705 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27706 as_fn_error $? "Cannot locate the the path of ipath" "$LINENO" 5 27707 fi 27708 27709 # Call helper function which possibly converts this using DOS-style short mode. 27710 # If so, the updated path is stored in $new_path. 27711 27712 input_path="$new_path" 27713 # Check if we need to convert this using DOS-style short mode. If the path 27714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27715 # take no chances and rewrite it. 27716 # Note: m4 eats our [], so we need to use [ and ] instead. 27717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27718 if test "x$has_forbidden_chars" != x; then 27719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27720 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27721 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27722 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27723 # Going to short mode and back again did indeed matter. Since short mode is 27724 # case insensitive, let's make it lowercase to improve readability. 27725 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27726 # Now convert it back to Unix-stile (cygpath) 27727 input_path=`$CYGPATH -u "$shortmode_path"` 27728 new_path="$input_path" 27729 fi 27730 fi 27731 27732 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27733 if test "x$test_cygdrive_prefix" = x; then 27734 # As a simple fix, exclude /usr/bin since it's not a real path. 27735 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27736 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27737 # a path prefixed by /cygdrive for fixpath to work. 27738 new_path="$CYGWIN_ROOT_PATH$input_path" 27739 fi 27740 fi 27741 27742 27743 if test "x$path" != "x$new_path"; then 27744 ipath="$new_path" 27745 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27746 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27747 fi 27748 27749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27750 27751 path="$ipath" 27752 has_colon=`$ECHO $path | $GREP ^.:` 27753 new_path="$path" 27754 if test "x$has_colon" = x; then 27755 # Not in mixed or Windows style, start by that. 27756 new_path=`cmd //c echo $path` 27757 fi 27758 27759 27760 input_path="$new_path" 27761 # Check if we need to convert this using DOS-style short mode. If the path 27762 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27763 # take no chances and rewrite it. 27764 # Note: m4 eats our [], so we need to use [ and ] instead. 27765 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27766 if test "x$has_forbidden_chars" != x; then 27767 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27768 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27769 fi 27770 27771 27772 windows_path="$new_path" 27773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27774 unix_path=`$CYGPATH -u "$windows_path"` 27775 new_path="$unix_path" 27776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27778 new_path="$unix_path" 27779 fi 27780 27781 if test "x$path" != "x$new_path"; then 27782 ipath="$new_path" 27783 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting ipath to \"$new_path\"" >&5 27784 $as_echo "$as_me: Rewriting ipath to \"$new_path\"" >&6;} 27785 fi 27786 27787 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27788 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27789 27790 else 27791 # We're on a unix platform. Hooray! :) 27792 path="$ipath" 27793 has_space=`$ECHO "$path" | $GREP " "` 27794 if test "x$has_space" != x; then 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of ipath, which resolves as \"$path\", is invalid." >&5 27796 $as_echo "$as_me: The path of ipath, which resolves as \"$path\", is invalid." >&6;} 27797 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27798 fi 27799 27800 # Use eval to expand a potential ~ 27801 eval path="$path" 27802 if test ! -f "$path" && test ! -d "$path"; then 27803 as_fn_error $? "The path of ipath, which resolves as \"$path\", is not found." "$LINENO" 5 27804 fi 27805 27806 ipath="`cd "$path"; $THEPWDCMD -L`" 27807 fi 27808 fi 27809 27810 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -I$ipath" 27811 fi 27812 IFS=";" 27813 fi 27814 done 27815 # Convert VS_LIB into SYSROOT_LDFLAGS 27816 for i in $VS_LIB; do 27817 libpath=$i 27818 # Only process non-empty elements 27819 if test "x$libpath" != x; then 27820 IFS="$OLDIFS" 27821 # Check that directory exists before calling fixup_path 27822 testpath=$libpath 27823 27824 windows_path="$testpath" 27825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27826 unix_path=`$CYGPATH -u "$windows_path"` 27827 testpath="$unix_path" 27828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27830 testpath="$unix_path" 27831 fi 27832 27833 if test -d "$testpath"; then 27834 27835 # Only process if variable expands to non-empty 27836 27837 if test "x$libpath" != x; then 27838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27839 27840 # Input might be given as Windows format, start by converting to 27841 # unix format. 27842 path="$libpath" 27843 new_path=`$CYGPATH -u "$path"` 27844 27845 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27846 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27847 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27848 # "foo.exe" is OK but "foo" is an error. 27849 # 27850 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27851 # It is also a way to make sure we got the proper file name for the real test later on. 27852 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27853 if test "x$test_shortpath" = x; then 27854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27855 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27856 as_fn_error $? "Cannot locate the the path of libpath" "$LINENO" 5 27857 fi 27858 27859 # Call helper function which possibly converts this using DOS-style short mode. 27860 # If so, the updated path is stored in $new_path. 27861 27862 input_path="$new_path" 27863 # Check if we need to convert this using DOS-style short mode. If the path 27864 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27865 # take no chances and rewrite it. 27866 # Note: m4 eats our [], so we need to use [ and ] instead. 27867 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27868 if test "x$has_forbidden_chars" != x; then 27869 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27870 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27871 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27872 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27873 # Going to short mode and back again did indeed matter. Since short mode is 27874 # case insensitive, let's make it lowercase to improve readability. 27875 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27876 # Now convert it back to Unix-stile (cygpath) 27877 input_path=`$CYGPATH -u "$shortmode_path"` 27878 new_path="$input_path" 27879 fi 27880 fi 27881 27882 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27883 if test "x$test_cygdrive_prefix" = x; then 27884 # As a simple fix, exclude /usr/bin since it's not a real path. 27885 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27886 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27887 # a path prefixed by /cygdrive for fixpath to work. 27888 new_path="$CYGWIN_ROOT_PATH$input_path" 27889 fi 27890 fi 27891 27892 27893 if test "x$path" != "x$new_path"; then 27894 libpath="$new_path" 27895 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 27896 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 27897 fi 27898 27899 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27900 27901 path="$libpath" 27902 has_colon=`$ECHO $path | $GREP ^.:` 27903 new_path="$path" 27904 if test "x$has_colon" = x; then 27905 # Not in mixed or Windows style, start by that. 27906 new_path=`cmd //c echo $path` 27907 fi 27908 27909 27910 input_path="$new_path" 27911 # Check if we need to convert this using DOS-style short mode. If the path 27912 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27913 # take no chances and rewrite it. 27914 # Note: m4 eats our [], so we need to use [ and ] instead. 27915 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27916 if test "x$has_forbidden_chars" != x; then 27917 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27918 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27919 fi 27920 27921 27922 windows_path="$new_path" 27923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27924 unix_path=`$CYGPATH -u "$windows_path"` 27925 new_path="$unix_path" 27926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27928 new_path="$unix_path" 27929 fi 27930 27931 if test "x$path" != "x$new_path"; then 27932 libpath="$new_path" 27933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting libpath to \"$new_path\"" >&5 27934 $as_echo "$as_me: Rewriting libpath to \"$new_path\"" >&6;} 27935 fi 27936 27937 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27938 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27939 27940 else 27941 # We're on a unix platform. Hooray! :) 27942 path="$libpath" 27943 has_space=`$ECHO "$path" | $GREP " "` 27944 if test "x$has_space" != x; then 27945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of libpath, which resolves as \"$path\", is invalid." >&5 27946 $as_echo "$as_me: The path of libpath, which resolves as \"$path\", is invalid." >&6;} 27947 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27948 fi 27949 27950 # Use eval to expand a potential ~ 27951 eval path="$path" 27952 if test ! -f "$path" && test ! -d "$path"; then 27953 as_fn_error $? "The path of libpath, which resolves as \"$path\", is not found." "$LINENO" 5 27954 fi 27955 27956 libpath="`cd "$path"; $THEPWDCMD -L`" 27957 fi 27958 fi 27959 27960 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -libpath:$libpath" 27961 fi 27962 IFS=";" 27963 fi 27964 done 27965 IFS="$OLDIFS" 27966 fi 27967 else 27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27969 $as_echo "not found" >&6; } 27970 27971 if test "x$VS_ENV_CMD" = x; then 27972 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27973 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27974 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27975 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27976 else 27977 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27978 $as_echo "$as_me: Running the extraction script failed." >&6;} 27979 fi 27980 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27981 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27982 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27983 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27984 as_fn_error $? "Cannot continue" "$LINENO" 5 27985 fi 27986 27987 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27988 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27989 PATH="$VS_PATH" 27990 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27991 export INCLUDE="$VS_INCLUDE" 27992 export LIB="$VS_LIB" 27993 fi 27994 27995 # autoconf magic only relies on PATH, so update it if tools dir is specified 27996 OLD_PATH="$PATH" 27997 27998 # For solaris we really need solaris tools, and not the GNU equivalent. 27999 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 28000 # so add that to path before starting to probe. 28001 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 28002 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 28003 PATH="/usr/ccs/bin:$PATH" 28004 fi 28005 28006 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 28007 # override all other locations. 28008 if test "x$TOOLCHAIN_PATH" != x; then 28009 PATH=$TOOLCHAIN_PATH:$PATH 28010 fi 28011 28012 28013 # 28014 # Setup the compilers (CC and CXX) 28015 # 28016 28017 COMPILER_NAME=C 28018 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 28019 28020 if test "x$CC" != x; then 28021 # User has supplied compiler name already, always let that override. 28022 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 28023 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 28024 if test "x`basename $CC`" = "x$CC"; then 28025 # A command without a complete path is provided, search $PATH. 28026 28027 for ac_prog in $CC 28028 do 28029 # Extract the first word of "$ac_prog", so it can be a program name with args. 28030 set dummy $ac_prog; ac_word=$2 28031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28032 $as_echo_n "checking for $ac_word... " >&6; } 28033 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28034 $as_echo_n "(cached) " >&6 28035 else 28036 case $POTENTIAL_CC in 28037 [\\/]* | ?:[\\/]*) 28038 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28039 ;; 28040 *) 28041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28042 for as_dir in $PATH 28043 do 28044 IFS=$as_save_IFS 28045 test -z "$as_dir" && as_dir=. 28046 for ac_exec_ext in '' $ac_executable_extensions; do 28047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28048 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28050 break 2 28051 fi 28052 done 28053 done 28054 IFS=$as_save_IFS 28055 28056 ;; 28057 esac 28058 fi 28059 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28060 if test -n "$POTENTIAL_CC"; then 28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28062 $as_echo "$POTENTIAL_CC" >&6; } 28063 else 28064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28065 $as_echo "no" >&6; } 28066 fi 28067 28068 28069 test -n "$POTENTIAL_CC" && break 28070 done 28071 28072 if test "x$POTENTIAL_CC" != x; then 28073 CC=$POTENTIAL_CC 28074 else 28075 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 28076 fi 28077 else 28078 # Otherwise it might already be a complete path 28079 if test ! -x "$CC"; then 28080 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 28081 fi 28082 fi 28083 else 28084 # No user supplied value. Locate compiler ourselves. 28085 28086 # If we are cross compiling, assume cross compilation tools follows the 28087 # cross compilation standard where they are prefixed with the autoconf 28088 # standard name for the target. For example the binary 28089 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 28090 # If we are not cross compiling, then the default compiler name will be 28091 # used. 28092 28093 CC= 28094 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 28095 # before checking the rest of the PATH. 28096 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 28097 # step, this should not be necessary. 28098 if test -n "$TOOLCHAIN_PATH"; then 28099 PATH_save="$PATH" 28100 PATH="$TOOLCHAIN_PATH" 28101 for ac_prog in $SEARCH_LIST 28102 do 28103 # Extract the first word of "$ac_prog", so it can be a program name with args. 28104 set dummy $ac_prog; ac_word=$2 28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28106 $as_echo_n "checking for $ac_word... " >&6; } 28107 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 28108 $as_echo_n "(cached) " >&6 28109 else 28110 case $TOOLCHAIN_PATH_CC in 28111 [\\/]* | ?:[\\/]*) 28112 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 28113 ;; 28114 *) 28115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28116 for as_dir in $PATH 28117 do 28118 IFS=$as_save_IFS 28119 test -z "$as_dir" && as_dir=. 28120 for ac_exec_ext in '' $ac_executable_extensions; do 28121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28122 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 28123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28124 break 2 28125 fi 28126 done 28127 done 28128 IFS=$as_save_IFS 28129 28130 ;; 28131 esac 28132 fi 28133 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 28134 if test -n "$TOOLCHAIN_PATH_CC"; then 28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 28136 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 28137 else 28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28139 $as_echo "no" >&6; } 28140 fi 28141 28142 28143 test -n "$TOOLCHAIN_PATH_CC" && break 28144 done 28145 28146 CC=$TOOLCHAIN_PATH_CC 28147 PATH="$PATH_save" 28148 fi 28149 28150 # AC_PATH_PROGS can't be run multiple times with the same variable, 28151 # so create a new name for this run. 28152 if test "x$CC" = x; then 28153 for ac_prog in $SEARCH_LIST 28154 do 28155 # Extract the first word of "$ac_prog", so it can be a program name with args. 28156 set dummy $ac_prog; ac_word=$2 28157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28158 $as_echo_n "checking for $ac_word... " >&6; } 28159 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 28160 $as_echo_n "(cached) " >&6 28161 else 28162 case $POTENTIAL_CC in 28163 [\\/]* | ?:[\\/]*) 28164 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 28165 ;; 28166 *) 28167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28168 for as_dir in $PATH 28169 do 28170 IFS=$as_save_IFS 28171 test -z "$as_dir" && as_dir=. 28172 for ac_exec_ext in '' $ac_executable_extensions; do 28173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28174 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 28175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28176 break 2 28177 fi 28178 done 28179 done 28180 IFS=$as_save_IFS 28181 28182 ;; 28183 esac 28184 fi 28185 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 28186 if test -n "$POTENTIAL_CC"; then 28187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 28188 $as_echo "$POTENTIAL_CC" >&6; } 28189 else 28190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28191 $as_echo "no" >&6; } 28192 fi 28193 28194 28195 test -n "$POTENTIAL_CC" && break 28196 done 28197 28198 CC=$POTENTIAL_CC 28199 fi 28200 28201 if test "x$CC" = x; then 28202 28203 # Print a helpful message on how to acquire the necessary build dependency. 28204 # devkit is the help tag: freetype, cups, pulse, alsa etc 28205 MISSING_DEPENDENCY=devkit 28206 28207 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28208 cygwin_help $MISSING_DEPENDENCY 28209 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28210 msys_help $MISSING_DEPENDENCY 28211 else 28212 PKGHANDLER_COMMAND= 28213 28214 case $PKGHANDLER in 28215 apt-get) 28216 apt_help $MISSING_DEPENDENCY ;; 28217 yum) 28218 yum_help $MISSING_DEPENDENCY ;; 28219 port) 28220 port_help $MISSING_DEPENDENCY ;; 28221 pkgutil) 28222 pkgutil_help $MISSING_DEPENDENCY ;; 28223 pkgadd) 28224 pkgadd_help $MISSING_DEPENDENCY ;; 28225 esac 28226 28227 if test "x$PKGHANDLER_COMMAND" != x; then 28228 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28229 fi 28230 fi 28231 28232 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28233 fi 28234 fi 28235 28236 # Now we have a compiler binary in CC. Make sure it's okay. 28237 28238 # Only process if variable expands to non-empty 28239 28240 if test "x$CC" != x; then 28241 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28242 28243 # First separate the path from the arguments. This will split at the first 28244 # space. 28245 complete="$CC" 28246 path="${complete%% *}" 28247 tmp="$complete EOL" 28248 arguments="${tmp#* }" 28249 28250 # Input might be given as Windows format, start by converting to 28251 # unix format. 28252 new_path=`$CYGPATH -u "$path"` 28253 28254 # Now try to locate executable using which 28255 new_path=`$WHICH "$new_path" 2> /dev/null` 28256 # bat and cmd files are not always considered executable in cygwin causing which 28257 # to not find them 28258 if test "x$new_path" = x \ 28259 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28260 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28261 new_path=`$CYGPATH -u "$path"` 28262 fi 28263 if test "x$new_path" = x; then 28264 # Oops. Which didn't find the executable. 28265 # The splitting of arguments from the executable at a space might have been incorrect, 28266 # since paths with space are more likely in Windows. Give it another try with the whole 28267 # argument. 28268 path="$complete" 28269 arguments="EOL" 28270 new_path=`$CYGPATH -u "$path"` 28271 new_path=`$WHICH "$new_path" 2> /dev/null` 28272 # bat and cmd files are not always considered executable in cygwin causing which 28273 # to not find them 28274 if test "x$new_path" = x \ 28275 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28276 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28277 new_path=`$CYGPATH -u "$path"` 28278 fi 28279 if test "x$new_path" = x; then 28280 # It's still not found. Now this is an unrecoverable error. 28281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28282 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28283 has_space=`$ECHO "$complete" | $GREP " "` 28284 if test "x$has_space" != x; then 28285 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28286 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28287 fi 28288 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28289 fi 28290 fi 28291 28292 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28293 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28294 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28295 # "foo.exe" is OK but "foo" is an error. 28296 # 28297 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28298 # It is also a way to make sure we got the proper file name for the real test later on. 28299 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28300 if test "x$test_shortpath" = x; then 28301 # Short path failed, file does not exist as specified. 28302 # Try adding .exe or .cmd 28303 if test -f "${new_path}.exe"; then 28304 input_to_shortpath="${new_path}.exe" 28305 elif test -f "${new_path}.cmd"; then 28306 input_to_shortpath="${new_path}.cmd" 28307 else 28308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 28309 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 28310 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28311 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28312 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28313 fi 28314 else 28315 input_to_shortpath="$new_path" 28316 fi 28317 28318 # Call helper function which possibly converts this using DOS-style short mode. 28319 # If so, the updated path is stored in $new_path. 28320 new_path="$input_to_shortpath" 28321 28322 input_path="$input_to_shortpath" 28323 # Check if we need to convert this using DOS-style short mode. If the path 28324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28325 # take no chances and rewrite it. 28326 # Note: m4 eats our [], so we need to use [ and ] instead. 28327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28328 if test "x$has_forbidden_chars" != x; then 28329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28330 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28331 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28332 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28333 # Going to short mode and back again did indeed matter. Since short mode is 28334 # case insensitive, let's make it lowercase to improve readability. 28335 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28336 # Now convert it back to Unix-stile (cygpath) 28337 input_path=`$CYGPATH -u "$shortmode_path"` 28338 new_path="$input_path" 28339 fi 28340 fi 28341 28342 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28343 if test "x$test_cygdrive_prefix" = x; then 28344 # As a simple fix, exclude /usr/bin since it's not a real path. 28345 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28346 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28347 # a path prefixed by /cygdrive for fixpath to work. 28348 new_path="$CYGWIN_ROOT_PATH$input_path" 28349 fi 28350 fi 28351 28352 # remove trailing .exe if any 28353 new_path="${new_path/%.exe/}" 28354 28355 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28356 28357 # First separate the path from the arguments. This will split at the first 28358 # space. 28359 complete="$CC" 28360 path="${complete%% *}" 28361 tmp="$complete EOL" 28362 arguments="${tmp#* }" 28363 28364 # Input might be given as Windows format, start by converting to 28365 # unix format. 28366 new_path="$path" 28367 28368 windows_path="$new_path" 28369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28370 unix_path=`$CYGPATH -u "$windows_path"` 28371 new_path="$unix_path" 28372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28374 new_path="$unix_path" 28375 fi 28376 28377 28378 # Now try to locate executable using which 28379 new_path=`$WHICH "$new_path" 2> /dev/null` 28380 28381 if test "x$new_path" = x; then 28382 # Oops. Which didn't find the executable. 28383 # The splitting of arguments from the executable at a space might have been incorrect, 28384 # since paths with space are more likely in Windows. Give it another try with the whole 28385 # argument. 28386 path="$complete" 28387 arguments="EOL" 28388 new_path="$path" 28389 28390 windows_path="$new_path" 28391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28392 unix_path=`$CYGPATH -u "$windows_path"` 28393 new_path="$unix_path" 28394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28396 new_path="$unix_path" 28397 fi 28398 28399 28400 new_path=`$WHICH "$new_path" 2> /dev/null` 28401 # bat and cmd files are not always considered executable in MSYS causing which 28402 # to not find them 28403 if test "x$new_path" = x \ 28404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28406 new_path="$path" 28407 28408 windows_path="$new_path" 28409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28410 unix_path=`$CYGPATH -u "$windows_path"` 28411 new_path="$unix_path" 28412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28414 new_path="$unix_path" 28415 fi 28416 28417 fi 28418 28419 if test "x$new_path" = x; then 28420 # It's still not found. Now this is an unrecoverable error. 28421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28422 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28423 has_space=`$ECHO "$complete" | $GREP " "` 28424 if test "x$has_space" != x; then 28425 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28426 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28427 fi 28428 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28429 fi 28430 fi 28431 28432 # Now new_path has a complete unix path to the binary 28433 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28434 # Keep paths in /bin as-is, but remove trailing .exe if any 28435 new_path="${new_path/%.exe/}" 28436 # Do not save /bin paths to all_fixpath_prefixes! 28437 else 28438 # Not in mixed or Windows style, start by that. 28439 new_path=`cmd //c echo $new_path` 28440 28441 input_path="$new_path" 28442 # Check if we need to convert this using DOS-style short mode. If the path 28443 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28444 # take no chances and rewrite it. 28445 # Note: m4 eats our [], so we need to use [ and ] instead. 28446 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28447 if test "x$has_forbidden_chars" != x; then 28448 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28449 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28450 fi 28451 28452 # Output is in $new_path 28453 28454 windows_path="$new_path" 28455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28456 unix_path=`$CYGPATH -u "$windows_path"` 28457 new_path="$unix_path" 28458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28460 new_path="$unix_path" 28461 fi 28462 28463 # remove trailing .exe if any 28464 new_path="${new_path/%.exe/}" 28465 28466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28468 fi 28469 28470 else 28471 # We're on a unix platform. Hooray! :) 28472 # First separate the path from the arguments. This will split at the first 28473 # space. 28474 complete="$CC" 28475 path="${complete%% *}" 28476 tmp="$complete EOL" 28477 arguments="${tmp#* }" 28478 28479 # Cannot rely on the command "which" here since it doesn't always work. 28480 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28481 if test -z "$is_absolute_path"; then 28482 # Path to executable is not absolute. Find it. 28483 IFS_save="$IFS" 28484 IFS=: 28485 for p in $PATH; do 28486 if test -f "$p/$path" && test -x "$p/$path"; then 28487 new_path="$p/$path" 28488 break 28489 fi 28490 done 28491 IFS="$IFS_save" 28492 else 28493 # This is an absolute path, we can use it without further modifications. 28494 new_path="$path" 28495 fi 28496 28497 if test "x$new_path" = x; then 28498 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 28499 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 28500 has_space=`$ECHO "$complete" | $GREP " "` 28501 if test "x$has_space" != x; then 28502 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28503 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28504 fi 28505 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 28506 fi 28507 fi 28508 28509 # Now join together the path and the arguments once again 28510 if test "x$arguments" != xEOL; then 28511 new_complete="$new_path ${arguments% *}" 28512 else 28513 new_complete="$new_path" 28514 fi 28515 28516 if test "x$complete" != "x$new_complete"; then 28517 CC="$new_complete" 28518 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 28519 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 28520 fi 28521 fi 28522 28523 TEST_COMPILER="$CC" 28524 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28525 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28526 if test "x$OPENJDK_BUILD_OS" != xaix; then 28527 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 28529 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 28530 28531 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28532 # Follow a chain of symbolic links. Use readlink 28533 # where it exists, else fall back to horribly 28534 # complicated shell code. 28535 if test "x$READLINK_TESTED" != yes; then 28536 # On MacOSX there is a readlink tool with a different 28537 # purpose than the GNU readlink tool. Check the found readlink. 28538 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28539 if test "x$ISGNU" = x; then 28540 # A readlink that we do not know how to use. 28541 # Are there other non-GNU readlinks out there? 28542 READLINK_TESTED=yes 28543 READLINK= 28544 fi 28545 fi 28546 28547 if test "x$READLINK" != x; then 28548 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28549 else 28550 # Save the current directory for restoring afterwards 28551 STARTDIR=$PWD 28552 COUNTER=0 28553 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28554 sym_link_file=`$BASENAME $TEST_COMPILER` 28555 cd $sym_link_dir 28556 # Use -P flag to resolve symlinks in directories. 28557 cd `$THEPWDCMD -P` 28558 sym_link_dir=`$THEPWDCMD -P` 28559 # Resolve file symlinks 28560 while test $COUNTER -lt 20; do 28561 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28562 if test "x$ISLINK" == x; then 28563 # This is not a symbolic link! We are done! 28564 break 28565 fi 28566 # Again resolve directory symlinks since the target of the just found 28567 # link could be in a different directory 28568 cd `$DIRNAME $ISLINK` 28569 sym_link_dir=`$THEPWDCMD -P` 28570 sym_link_file=`$BASENAME $ISLINK` 28571 let COUNTER=COUNTER+1 28572 done 28573 cd $STARTDIR 28574 TEST_COMPILER=$sym_link_dir/$sym_link_file 28575 fi 28576 fi 28577 28578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28579 $as_echo "$TEST_COMPILER" >&6; } 28580 fi 28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28582 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28583 28584 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28585 if test "x$COMPILER_BASENAME" = "xccache"; then 28586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28587 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28588 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28589 # We want to control ccache invocation ourselves, so ignore this cc and try 28590 # searching again. 28591 28592 # Remove the path to the fake ccache cc from the PATH 28593 RETRY_COMPILER_SAVED_PATH="$PATH" 28594 COMPILER_DIRNAME=`$DIRNAME $CC` 28595 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28596 28597 # Try again looking for our compiler 28598 if test -n "$ac_tool_prefix"; then 28599 for ac_prog in $TOOLCHAIN_CC_BINARY 28600 do 28601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28604 $as_echo_n "checking for $ac_word... " >&6; } 28605 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28606 $as_echo_n "(cached) " >&6 28607 else 28608 if test -n "$PROPER_COMPILER_CC"; then 28609 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28610 else 28611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28612 for as_dir in $PATH 28613 do 28614 IFS=$as_save_IFS 28615 test -z "$as_dir" && as_dir=. 28616 for ac_exec_ext in '' $ac_executable_extensions; do 28617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28618 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28620 break 2 28621 fi 28622 done 28623 done 28624 IFS=$as_save_IFS 28625 28626 fi 28627 fi 28628 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28629 if test -n "$PROPER_COMPILER_CC"; then 28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28631 $as_echo "$PROPER_COMPILER_CC" >&6; } 28632 else 28633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28634 $as_echo "no" >&6; } 28635 fi 28636 28637 28638 test -n "$PROPER_COMPILER_CC" && break 28639 done 28640 fi 28641 if test -z "$PROPER_COMPILER_CC"; then 28642 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28643 for ac_prog in $TOOLCHAIN_CC_BINARY 28644 do 28645 # Extract the first word of "$ac_prog", so it can be a program name with args. 28646 set dummy $ac_prog; ac_word=$2 28647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28648 $as_echo_n "checking for $ac_word... " >&6; } 28649 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28650 $as_echo_n "(cached) " >&6 28651 else 28652 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28653 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28654 else 28655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28656 for as_dir in $PATH 28657 do 28658 IFS=$as_save_IFS 28659 test -z "$as_dir" && as_dir=. 28660 for ac_exec_ext in '' $ac_executable_extensions; do 28661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28662 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28664 break 2 28665 fi 28666 done 28667 done 28668 IFS=$as_save_IFS 28669 28670 fi 28671 fi 28672 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28673 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28675 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28676 else 28677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28678 $as_echo "no" >&6; } 28679 fi 28680 28681 28682 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28683 done 28684 28685 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28686 PROPER_COMPILER_CC="" 28687 else 28688 case $cross_compiling:$ac_tool_warned in 28689 yes:) 28690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28692 ac_tool_warned=yes ;; 28693 esac 28694 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28695 fi 28696 fi 28697 28698 28699 # Only process if variable expands to non-empty 28700 28701 if test "x$PROPER_COMPILER_CC" != x; then 28702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28703 28704 # First separate the path from the arguments. This will split at the first 28705 # space. 28706 complete="$PROPER_COMPILER_CC" 28707 path="${complete%% *}" 28708 tmp="$complete EOL" 28709 arguments="${tmp#* }" 28710 28711 # Input might be given as Windows format, start by converting to 28712 # unix format. 28713 new_path=`$CYGPATH -u "$path"` 28714 28715 # Now try to locate executable using which 28716 new_path=`$WHICH "$new_path" 2> /dev/null` 28717 # bat and cmd files are not always considered executable in cygwin causing which 28718 # to not find them 28719 if test "x$new_path" = x \ 28720 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28721 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28722 new_path=`$CYGPATH -u "$path"` 28723 fi 28724 if test "x$new_path" = x; then 28725 # Oops. Which didn't find the executable. 28726 # The splitting of arguments from the executable at a space might have been incorrect, 28727 # since paths with space are more likely in Windows. Give it another try with the whole 28728 # argument. 28729 path="$complete" 28730 arguments="EOL" 28731 new_path=`$CYGPATH -u "$path"` 28732 new_path=`$WHICH "$new_path" 2> /dev/null` 28733 # bat and cmd files are not always considered executable in cygwin causing which 28734 # to not find them 28735 if test "x$new_path" = x \ 28736 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28737 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28738 new_path=`$CYGPATH -u "$path"` 28739 fi 28740 if test "x$new_path" = x; then 28741 # It's still not found. Now this is an unrecoverable error. 28742 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28743 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28744 has_space=`$ECHO "$complete" | $GREP " "` 28745 if test "x$has_space" != x; then 28746 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28747 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28748 fi 28749 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28750 fi 28751 fi 28752 28753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28756 # "foo.exe" is OK but "foo" is an error. 28757 # 28758 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28759 # It is also a way to make sure we got the proper file name for the real test later on. 28760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28761 if test "x$test_shortpath" = x; then 28762 # Short path failed, file does not exist as specified. 28763 # Try adding .exe or .cmd 28764 if test -f "${new_path}.exe"; then 28765 input_to_shortpath="${new_path}.exe" 28766 elif test -f "${new_path}.cmd"; then 28767 input_to_shortpath="${new_path}.cmd" 28768 else 28769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28770 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28771 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28772 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28773 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28774 fi 28775 else 28776 input_to_shortpath="$new_path" 28777 fi 28778 28779 # Call helper function which possibly converts this using DOS-style short mode. 28780 # If so, the updated path is stored in $new_path. 28781 new_path="$input_to_shortpath" 28782 28783 input_path="$input_to_shortpath" 28784 # Check if we need to convert this using DOS-style short mode. If the path 28785 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28786 # take no chances and rewrite it. 28787 # Note: m4 eats our [], so we need to use [ and ] instead. 28788 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28789 if test "x$has_forbidden_chars" != x; then 28790 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28791 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28792 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28793 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28794 # Going to short mode and back again did indeed matter. Since short mode is 28795 # case insensitive, let's make it lowercase to improve readability. 28796 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28797 # Now convert it back to Unix-stile (cygpath) 28798 input_path=`$CYGPATH -u "$shortmode_path"` 28799 new_path="$input_path" 28800 fi 28801 fi 28802 28803 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28804 if test "x$test_cygdrive_prefix" = x; then 28805 # As a simple fix, exclude /usr/bin since it's not a real path. 28806 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28807 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28808 # a path prefixed by /cygdrive for fixpath to work. 28809 new_path="$CYGWIN_ROOT_PATH$input_path" 28810 fi 28811 fi 28812 28813 # remove trailing .exe if any 28814 new_path="${new_path/%.exe/}" 28815 28816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28817 28818 # First separate the path from the arguments. This will split at the first 28819 # space. 28820 complete="$PROPER_COMPILER_CC" 28821 path="${complete%% *}" 28822 tmp="$complete EOL" 28823 arguments="${tmp#* }" 28824 28825 # Input might be given as Windows format, start by converting to 28826 # unix format. 28827 new_path="$path" 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 28839 # Now try to locate executable using which 28840 new_path=`$WHICH "$new_path" 2> /dev/null` 28841 28842 if test "x$new_path" = x; then 28843 # Oops. Which didn't find the executable. 28844 # The splitting of arguments from the executable at a space might have been incorrect, 28845 # since paths with space are more likely in Windows. Give it another try with the whole 28846 # argument. 28847 path="$complete" 28848 arguments="EOL" 28849 new_path="$path" 28850 28851 windows_path="$new_path" 28852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28853 unix_path=`$CYGPATH -u "$windows_path"` 28854 new_path="$unix_path" 28855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28856 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28857 new_path="$unix_path" 28858 fi 28859 28860 28861 new_path=`$WHICH "$new_path" 2> /dev/null` 28862 # bat and cmd files are not always considered executable in MSYS causing which 28863 # to not find them 28864 if test "x$new_path" = x \ 28865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28867 new_path="$path" 28868 28869 windows_path="$new_path" 28870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28871 unix_path=`$CYGPATH -u "$windows_path"` 28872 new_path="$unix_path" 28873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28875 new_path="$unix_path" 28876 fi 28877 28878 fi 28879 28880 if test "x$new_path" = x; then 28881 # It's still not found. Now this is an unrecoverable error. 28882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28883 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28884 has_space=`$ECHO "$complete" | $GREP " "` 28885 if test "x$has_space" != x; then 28886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28888 fi 28889 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28890 fi 28891 fi 28892 28893 # Now new_path has a complete unix path to the binary 28894 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28895 # Keep paths in /bin as-is, but remove trailing .exe if any 28896 new_path="${new_path/%.exe/}" 28897 # Do not save /bin paths to all_fixpath_prefixes! 28898 else 28899 # Not in mixed or Windows style, start by that. 28900 new_path=`cmd //c echo $new_path` 28901 28902 input_path="$new_path" 28903 # Check if we need to convert this using DOS-style short mode. If the path 28904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28905 # take no chances and rewrite it. 28906 # Note: m4 eats our [], so we need to use [ and ] instead. 28907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28908 if test "x$has_forbidden_chars" != x; then 28909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28910 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28911 fi 28912 28913 # Output is in $new_path 28914 28915 windows_path="$new_path" 28916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28917 unix_path=`$CYGPATH -u "$windows_path"` 28918 new_path="$unix_path" 28919 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28920 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28921 new_path="$unix_path" 28922 fi 28923 28924 # remove trailing .exe if any 28925 new_path="${new_path/%.exe/}" 28926 28927 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28928 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28929 fi 28930 28931 else 28932 # We're on a unix platform. Hooray! :) 28933 # First separate the path from the arguments. This will split at the first 28934 # space. 28935 complete="$PROPER_COMPILER_CC" 28936 path="${complete%% *}" 28937 tmp="$complete EOL" 28938 arguments="${tmp#* }" 28939 28940 # Cannot rely on the command "which" here since it doesn't always work. 28941 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28942 if test -z "$is_absolute_path"; then 28943 # Path to executable is not absolute. Find it. 28944 IFS_save="$IFS" 28945 IFS=: 28946 for p in $PATH; do 28947 if test -f "$p/$path" && test -x "$p/$path"; then 28948 new_path="$p/$path" 28949 break 28950 fi 28951 done 28952 IFS="$IFS_save" 28953 else 28954 # This is an absolute path, we can use it without further modifications. 28955 new_path="$path" 28956 fi 28957 28958 if test "x$new_path" = x; then 28959 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28960 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28961 has_space=`$ECHO "$complete" | $GREP " "` 28962 if test "x$has_space" != x; then 28963 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28964 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28965 fi 28966 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28967 fi 28968 fi 28969 28970 # Now join together the path and the arguments once again 28971 if test "x$arguments" != xEOL; then 28972 new_complete="$new_path ${arguments% *}" 28973 else 28974 new_complete="$new_path" 28975 fi 28976 28977 if test "x$complete" != "x$new_complete"; then 28978 PROPER_COMPILER_CC="$new_complete" 28979 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28980 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28981 fi 28982 fi 28983 28984 PATH="$RETRY_COMPILER_SAVED_PATH" 28985 28986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28987 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28988 28989 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28990 # Follow a chain of symbolic links. Use readlink 28991 # where it exists, else fall back to horribly 28992 # complicated shell code. 28993 if test "x$READLINK_TESTED" != yes; then 28994 # On MacOSX there is a readlink tool with a different 28995 # purpose than the GNU readlink tool. Check the found readlink. 28996 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28997 if test "x$ISGNU" = x; then 28998 # A readlink that we do not know how to use. 28999 # Are there other non-GNU readlinks out there? 29000 READLINK_TESTED=yes 29001 READLINK= 29002 fi 29003 fi 29004 29005 if test "x$READLINK" != x; then 29006 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 29007 else 29008 # Save the current directory for restoring afterwards 29009 STARTDIR=$PWD 29010 COUNTER=0 29011 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 29012 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 29013 cd $sym_link_dir 29014 # Use -P flag to resolve symlinks in directories. 29015 cd `$THEPWDCMD -P` 29016 sym_link_dir=`$THEPWDCMD -P` 29017 # Resolve file symlinks 29018 while test $COUNTER -lt 20; do 29019 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29020 if test "x$ISLINK" == x; then 29021 # This is not a symbolic link! We are done! 29022 break 29023 fi 29024 # Again resolve directory symlinks since the target of the just found 29025 # link could be in a different directory 29026 cd `$DIRNAME $ISLINK` 29027 sym_link_dir=`$THEPWDCMD -P` 29028 sym_link_file=`$BASENAME $ISLINK` 29029 let COUNTER=COUNTER+1 29030 done 29031 cd $STARTDIR 29032 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 29033 fi 29034 fi 29035 29036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29037 $as_echo "$PROPER_COMPILER_CC" >&6; } 29038 CC="$PROPER_COMPILER_CC" 29039 else 29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 29041 $as_echo "no, keeping CC" >&6; } 29042 fi 29043 29044 29045 COMPILER=$CC 29046 COMPILER_NAME=$COMPILER_NAME 29047 29048 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 29049 # cc -V output typically looks like 29050 # cc: Sun C 5.12 Linux_i386 2011/11/16 29051 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 29052 # Check that this is likely to be the Solaris Studio cc. 29053 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 29054 if test $? -ne 0; then 29055 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29056 { $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 29057 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29058 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29059 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29060 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29061 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29062 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29063 fi 29064 # Remove usage instructions (if present), and 29065 # collapse compiler output into a single line 29066 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29067 $SED -e 's/ *[Uu]sage:.*//'` 29068 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29069 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 29070 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 29071 # xlc -qversion output typically looks like 29072 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 29073 # Version: 11.01.0000.0015 29074 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 29075 # Check that this is likely to be the IBM XL C compiler. 29076 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 29077 if test $? -ne 0; then 29078 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29079 { $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 29080 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29081 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29082 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29083 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 29084 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 29085 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29086 fi 29087 # Collapse compiler output into a single line 29088 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29089 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29090 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 29091 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 29092 # There is no specific version flag, but all output starts with a version string. 29093 # First line typically looks something like: 29094 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 29095 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 29096 # Check that this is likely to be Microsoft CL.EXE. 29097 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 29098 if test $? -ne 0; then 29099 { $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 29100 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29101 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29102 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29103 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29104 fi 29105 # Collapse compiler output into a single line 29106 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29107 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29108 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 29109 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 29110 # gcc --version output typically looks like 29111 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 29112 # Copyright (C) 2013 Free Software Foundation, Inc. 29113 # This is free software; see the source for copying conditions. There is NO 29114 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 29115 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29116 # Check that this is likely to be GCC. 29117 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 29118 if test $? -ne 0; then 29119 { $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 29120 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29121 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 29122 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 29123 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29124 fi 29125 # Remove Copyright and legalese from version string, and 29126 # collapse into a single line 29127 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29128 $SED -e 's/ *Copyright .*//'` 29129 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29130 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 29131 elif test "x$TOOLCHAIN_TYPE" = xclang; then 29132 # clang --version output typically looks like 29133 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 29134 # clang version 3.3 (tags/RELEASE_33/final) 29135 # or 29136 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 29137 # Target: x86_64-pc-linux-gnu 29138 # Thread model: posix 29139 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 29140 # Check that this is likely to be clang 29141 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 29142 if test $? -ne 0; then 29143 { $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 29144 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 29145 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 29146 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 29147 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 29148 fi 29149 # Collapse compiler output into a single line 29150 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 29151 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 29152 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 29153 else 29154 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 29155 fi 29156 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 29157 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 29158 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 29159 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 29160 29161 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 29162 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 29163 29164 29165 # Now that we have resolved CC ourself, let autoconf have its go at it 29166 ac_ext=c 29167 ac_cpp='$CPP $CPPFLAGS' 29168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29170 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29171 if test -n "$ac_tool_prefix"; then 29172 for ac_prog in $CC 29173 do 29174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29177 $as_echo_n "checking for $ac_word... " >&6; } 29178 if ${ac_cv_prog_CC+:} false; then : 29179 $as_echo_n "(cached) " >&6 29180 else 29181 if test -n "$CC"; then 29182 ac_cv_prog_CC="$CC" # Let the user override the test. 29183 else 29184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29185 for as_dir in $PATH 29186 do 29187 IFS=$as_save_IFS 29188 test -z "$as_dir" && as_dir=. 29189 for ac_exec_ext in '' $ac_executable_extensions; do 29190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 29192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29193 break 2 29194 fi 29195 done 29196 done 29197 IFS=$as_save_IFS 29198 29199 fi 29200 fi 29201 CC=$ac_cv_prog_CC 29202 if test -n "$CC"; then 29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 29204 $as_echo "$CC" >&6; } 29205 else 29206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29207 $as_echo "no" >&6; } 29208 fi 29209 29210 29211 test -n "$CC" && break 29212 done 29213 fi 29214 if test -z "$CC"; then 29215 ac_ct_CC=$CC 29216 for ac_prog in $CC 29217 do 29218 # Extract the first word of "$ac_prog", so it can be a program name with args. 29219 set dummy $ac_prog; ac_word=$2 29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29221 $as_echo_n "checking for $ac_word... " >&6; } 29222 if ${ac_cv_prog_ac_ct_CC+:} false; then : 29223 $as_echo_n "(cached) " >&6 29224 else 29225 if test -n "$ac_ct_CC"; then 29226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 29227 else 29228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29229 for as_dir in $PATH 29230 do 29231 IFS=$as_save_IFS 29232 test -z "$as_dir" && as_dir=. 29233 for ac_exec_ext in '' $ac_executable_extensions; do 29234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29235 ac_cv_prog_ac_ct_CC="$ac_prog" 29236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29237 break 2 29238 fi 29239 done 29240 done 29241 IFS=$as_save_IFS 29242 29243 fi 29244 fi 29245 ac_ct_CC=$ac_cv_prog_ac_ct_CC 29246 if test -n "$ac_ct_CC"; then 29247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 29248 $as_echo "$ac_ct_CC" >&6; } 29249 else 29250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29251 $as_echo "no" >&6; } 29252 fi 29253 29254 29255 test -n "$ac_ct_CC" && break 29256 done 29257 29258 if test "x$ac_ct_CC" = x; then 29259 CC="" 29260 else 29261 case $cross_compiling:$ac_tool_warned in 29262 yes:) 29263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29265 ac_tool_warned=yes ;; 29266 esac 29267 CC=$ac_ct_CC 29268 fi 29269 fi 29270 29271 29272 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29274 as_fn_error $? "no acceptable C compiler found in \$PATH 29275 See \`config.log' for more details" "$LINENO" 5; } 29276 29277 # Provide some information about the compiler. 29278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 29279 set X $ac_compile 29280 ac_compiler=$2 29281 for ac_option in --version -v -V -qversion; do 29282 { { ac_try="$ac_compiler $ac_option >&5" 29283 case "(($ac_try" in 29284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29285 *) ac_try_echo=$ac_try;; 29286 esac 29287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29288 $as_echo "$ac_try_echo"; } >&5 29289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29290 ac_status=$? 29291 if test -s conftest.err; then 29292 sed '10a\ 29293 ... rest of stderr output deleted ... 29294 10q' conftest.err >conftest.er1 29295 cat conftest.er1 >&5 29296 fi 29297 rm -f conftest.er1 conftest.err 29298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29299 test $ac_status = 0; } 29300 done 29301 29302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29303 /* end confdefs.h. */ 29304 29305 int 29306 main () 29307 { 29308 29309 ; 29310 return 0; 29311 } 29312 _ACEOF 29313 ac_clean_files_save=$ac_clean_files 29314 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 29315 # Try to create an executable without -o first, disregard a.out. 29316 # It will help us diagnose broken compilers, and finding out an intuition 29317 # of exeext. 29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 29319 $as_echo_n "checking whether the C compiler works... " >&6; } 29320 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 29321 29322 # The possible output files: 29323 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 29324 29325 ac_rmfiles= 29326 for ac_file in $ac_files 29327 do 29328 case $ac_file in 29329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29330 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 29331 esac 29332 done 29333 rm -f $ac_rmfiles 29334 29335 if { { ac_try="$ac_link_default" 29336 case "(($ac_try" in 29337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29338 *) ac_try_echo=$ac_try;; 29339 esac 29340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29341 $as_echo "$ac_try_echo"; } >&5 29342 (eval "$ac_link_default") 2>&5 29343 ac_status=$? 29344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29345 test $ac_status = 0; }; then : 29346 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 29347 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 29348 # in a Makefile. We should not override ac_cv_exeext if it was cached, 29349 # so that the user can short-circuit this test for compilers unknown to 29350 # Autoconf. 29351 for ac_file in $ac_files '' 29352 do 29353 test -f "$ac_file" || continue 29354 case $ac_file in 29355 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 29356 ;; 29357 [ab].out ) 29358 # We found the default executable, but exeext='' is most 29359 # certainly right. 29360 break;; 29361 *.* ) 29362 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 29363 then :; else 29364 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29365 fi 29366 # We set ac_cv_exeext here because the later test for it is not 29367 # safe: cross compilers may not add the suffix if given an `-o' 29368 # argument, so we may need to know it at that point already. 29369 # Even if this section looks crufty: it has the advantage of 29370 # actually working. 29371 break;; 29372 * ) 29373 break;; 29374 esac 29375 done 29376 test "$ac_cv_exeext" = no && ac_cv_exeext= 29377 29378 else 29379 ac_file='' 29380 fi 29381 if test -z "$ac_file"; then : 29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29383 $as_echo "no" >&6; } 29384 $as_echo "$as_me: failed program was:" >&5 29385 sed 's/^/| /' conftest.$ac_ext >&5 29386 29387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29389 as_fn_error 77 "C compiler cannot create executables 29390 See \`config.log' for more details" "$LINENO" 5; } 29391 else 29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 29393 $as_echo "yes" >&6; } 29394 fi 29395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 29396 $as_echo_n "checking for C compiler default output file name... " >&6; } 29397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 29398 $as_echo "$ac_file" >&6; } 29399 ac_exeext=$ac_cv_exeext 29400 29401 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 29402 ac_clean_files=$ac_clean_files_save 29403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 29404 $as_echo_n "checking for suffix of executables... " >&6; } 29405 if { { ac_try="$ac_link" 29406 case "(($ac_try" in 29407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29408 *) ac_try_echo=$ac_try;; 29409 esac 29410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29411 $as_echo "$ac_try_echo"; } >&5 29412 (eval "$ac_link") 2>&5 29413 ac_status=$? 29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29415 test $ac_status = 0; }; then : 29416 # If both `conftest.exe' and `conftest' are `present' (well, observable) 29417 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 29418 # work properly (i.e., refer to `conftest.exe'), while it won't with 29419 # `rm'. 29420 for ac_file in conftest.exe conftest conftest.*; do 29421 test -f "$ac_file" || continue 29422 case $ac_file in 29423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 29424 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 29425 break;; 29426 * ) break;; 29427 esac 29428 done 29429 else 29430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29432 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 29433 See \`config.log' for more details" "$LINENO" 5; } 29434 fi 29435 rm -f conftest conftest$ac_cv_exeext 29436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 29437 $as_echo "$ac_cv_exeext" >&6; } 29438 29439 rm -f conftest.$ac_ext 29440 EXEEXT=$ac_cv_exeext 29441 ac_exeext=$EXEEXT 29442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29443 /* end confdefs.h. */ 29444 #include <stdio.h> 29445 int 29446 main () 29447 { 29448 FILE *f = fopen ("conftest.out", "w"); 29449 return ferror (f) || fclose (f) != 0; 29450 29451 ; 29452 return 0; 29453 } 29454 _ACEOF 29455 ac_clean_files="$ac_clean_files conftest.out" 29456 # Check that the compiler produces executables we can run. If not, either 29457 # the compiler is broken, or we cross compile. 29458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 29459 $as_echo_n "checking whether we are cross compiling... " >&6; } 29460 if test "$cross_compiling" != yes; then 29461 { { ac_try="$ac_link" 29462 case "(($ac_try" in 29463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29464 *) ac_try_echo=$ac_try;; 29465 esac 29466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29467 $as_echo "$ac_try_echo"; } >&5 29468 (eval "$ac_link") 2>&5 29469 ac_status=$? 29470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29471 test $ac_status = 0; } 29472 if { ac_try='./conftest$ac_cv_exeext' 29473 { { case "(($ac_try" in 29474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29475 *) ac_try_echo=$ac_try;; 29476 esac 29477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29478 $as_echo "$ac_try_echo"; } >&5 29479 (eval "$ac_try") 2>&5 29480 ac_status=$? 29481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29482 test $ac_status = 0; }; }; then 29483 cross_compiling=no 29484 else 29485 if test "$cross_compiling" = maybe; then 29486 cross_compiling=yes 29487 else 29488 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29490 as_fn_error $? "cannot run C compiled programs. 29491 If you meant to cross compile, use \`--host'. 29492 See \`config.log' for more details" "$LINENO" 5; } 29493 fi 29494 fi 29495 fi 29496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 29497 $as_echo "$cross_compiling" >&6; } 29498 29499 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 29500 ac_clean_files=$ac_clean_files_save 29501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 29502 $as_echo_n "checking for suffix of object files... " >&6; } 29503 if ${ac_cv_objext+:} false; then : 29504 $as_echo_n "(cached) " >&6 29505 else 29506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29507 /* end confdefs.h. */ 29508 29509 int 29510 main () 29511 { 29512 29513 ; 29514 return 0; 29515 } 29516 _ACEOF 29517 rm -f conftest.o conftest.obj 29518 if { { ac_try="$ac_compile" 29519 case "(($ac_try" in 29520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29521 *) ac_try_echo=$ac_try;; 29522 esac 29523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29524 $as_echo "$ac_try_echo"; } >&5 29525 (eval "$ac_compile") 2>&5 29526 ac_status=$? 29527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29528 test $ac_status = 0; }; then : 29529 for ac_file in conftest.o conftest.obj conftest.*; do 29530 test -f "$ac_file" || continue; 29531 case $ac_file in 29532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 29533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 29534 break;; 29535 esac 29536 done 29537 else 29538 $as_echo "$as_me: failed program was:" >&5 29539 sed 's/^/| /' conftest.$ac_ext >&5 29540 29541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29543 as_fn_error $? "cannot compute suffix of object files: cannot compile 29544 See \`config.log' for more details" "$LINENO" 5; } 29545 fi 29546 rm -f conftest.$ac_cv_objext conftest.$ac_ext 29547 fi 29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 29549 $as_echo "$ac_cv_objext" >&6; } 29550 OBJEXT=$ac_cv_objext 29551 ac_objext=$OBJEXT 29552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 29553 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29554 if ${ac_cv_c_compiler_gnu+:} false; then : 29555 $as_echo_n "(cached) " >&6 29556 else 29557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29558 /* end confdefs.h. */ 29559 29560 int 29561 main () 29562 { 29563 #ifndef __GNUC__ 29564 choke me 29565 #endif 29566 29567 ; 29568 return 0; 29569 } 29570 _ACEOF 29571 if ac_fn_c_try_compile "$LINENO"; then : 29572 ac_compiler_gnu=yes 29573 else 29574 ac_compiler_gnu=no 29575 fi 29576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29577 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29578 29579 fi 29580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29581 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29582 if test $ac_compiler_gnu = yes; then 29583 GCC=yes 29584 else 29585 GCC= 29586 fi 29587 ac_test_CFLAGS=${CFLAGS+set} 29588 ac_save_CFLAGS=$CFLAGS 29589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29590 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29591 if ${ac_cv_prog_cc_g+:} false; then : 29592 $as_echo_n "(cached) " >&6 29593 else 29594 ac_save_c_werror_flag=$ac_c_werror_flag 29595 ac_c_werror_flag=yes 29596 ac_cv_prog_cc_g=no 29597 CFLAGS="-g" 29598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29599 /* end confdefs.h. */ 29600 29601 int 29602 main () 29603 { 29604 29605 ; 29606 return 0; 29607 } 29608 _ACEOF 29609 if ac_fn_c_try_compile "$LINENO"; then : 29610 ac_cv_prog_cc_g=yes 29611 else 29612 CFLAGS="" 29613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29614 /* end confdefs.h. */ 29615 29616 int 29617 main () 29618 { 29619 29620 ; 29621 return 0; 29622 } 29623 _ACEOF 29624 if ac_fn_c_try_compile "$LINENO"; then : 29625 29626 else 29627 ac_c_werror_flag=$ac_save_c_werror_flag 29628 CFLAGS="-g" 29629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29630 /* end confdefs.h. */ 29631 29632 int 29633 main () 29634 { 29635 29636 ; 29637 return 0; 29638 } 29639 _ACEOF 29640 if ac_fn_c_try_compile "$LINENO"; then : 29641 ac_cv_prog_cc_g=yes 29642 fi 29643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29644 fi 29645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29646 fi 29647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29648 ac_c_werror_flag=$ac_save_c_werror_flag 29649 fi 29650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29651 $as_echo "$ac_cv_prog_cc_g" >&6; } 29652 if test "$ac_test_CFLAGS" = set; then 29653 CFLAGS=$ac_save_CFLAGS 29654 elif test $ac_cv_prog_cc_g = yes; then 29655 if test "$GCC" = yes; then 29656 CFLAGS="-g -O2" 29657 else 29658 CFLAGS="-g" 29659 fi 29660 else 29661 if test "$GCC" = yes; then 29662 CFLAGS="-O2" 29663 else 29664 CFLAGS= 29665 fi 29666 fi 29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29669 if ${ac_cv_prog_cc_c89+:} false; then : 29670 $as_echo_n "(cached) " >&6 29671 else 29672 ac_cv_prog_cc_c89=no 29673 ac_save_CC=$CC 29674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29675 /* end confdefs.h. */ 29676 #include <stdarg.h> 29677 #include <stdio.h> 29678 struct stat; 29679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29680 struct buf { int x; }; 29681 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29682 static char *e (p, i) 29683 char **p; 29684 int i; 29685 { 29686 return p[i]; 29687 } 29688 static char *f (char * (*g) (char **, int), char **p, ...) 29689 { 29690 char *s; 29691 va_list v; 29692 va_start (v,p); 29693 s = g (p, va_arg (v,int)); 29694 va_end (v); 29695 return s; 29696 } 29697 29698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29699 function prototypes and stuff, but not '\xHH' hex character constants. 29700 These don't provoke an error unfortunately, instead are silently treated 29701 as 'x'. The following induces an error, until -std is added to get 29702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29703 array size at least. It's necessary to write '\x00'==0 to get something 29704 that's true only with -std. */ 29705 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29706 29707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29708 inside strings and character constants. */ 29709 #define FOO(x) 'x' 29710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29711 29712 int test (int i, double x); 29713 struct s1 {int (*f) (int a);}; 29714 struct s2 {int (*f) (double a);}; 29715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29716 int argc; 29717 char **argv; 29718 int 29719 main () 29720 { 29721 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29722 ; 29723 return 0; 29724 } 29725 _ACEOF 29726 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29727 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29728 do 29729 CC="$ac_save_CC $ac_arg" 29730 if ac_fn_c_try_compile "$LINENO"; then : 29731 ac_cv_prog_cc_c89=$ac_arg 29732 fi 29733 rm -f core conftest.err conftest.$ac_objext 29734 test "x$ac_cv_prog_cc_c89" != "xno" && break 29735 done 29736 rm -f conftest.$ac_ext 29737 CC=$ac_save_CC 29738 29739 fi 29740 # AC_CACHE_VAL 29741 case "x$ac_cv_prog_cc_c89" in 29742 x) 29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29744 $as_echo "none needed" >&6; } ;; 29745 xno) 29746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29747 $as_echo "unsupported" >&6; } ;; 29748 *) 29749 CC="$CC $ac_cv_prog_cc_c89" 29750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29751 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29752 esac 29753 if test "x$ac_cv_prog_cc_c89" != xno; then : 29754 29755 fi 29756 29757 ac_ext=cpp 29758 ac_cpp='$CXXCPP $CPPFLAGS' 29759 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29760 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29761 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29762 29763 29764 29765 COMPILER_NAME=C++ 29766 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29767 29768 if test "x$CXX" != x; then 29769 # User has supplied compiler name already, always let that override. 29770 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29771 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29772 if test "x`basename $CXX`" = "x$CXX"; then 29773 # A command without a complete path is provided, search $PATH. 29774 29775 for ac_prog in $CXX 29776 do 29777 # Extract the first word of "$ac_prog", so it can be a program name with args. 29778 set dummy $ac_prog; ac_word=$2 29779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29780 $as_echo_n "checking for $ac_word... " >&6; } 29781 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29782 $as_echo_n "(cached) " >&6 29783 else 29784 case $POTENTIAL_CXX in 29785 [\\/]* | ?:[\\/]*) 29786 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29787 ;; 29788 *) 29789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29790 for as_dir in $PATH 29791 do 29792 IFS=$as_save_IFS 29793 test -z "$as_dir" && as_dir=. 29794 for ac_exec_ext in '' $ac_executable_extensions; do 29795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29796 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29798 break 2 29799 fi 29800 done 29801 done 29802 IFS=$as_save_IFS 29803 29804 ;; 29805 esac 29806 fi 29807 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29808 if test -n "$POTENTIAL_CXX"; then 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29810 $as_echo "$POTENTIAL_CXX" >&6; } 29811 else 29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29813 $as_echo "no" >&6; } 29814 fi 29815 29816 29817 test -n "$POTENTIAL_CXX" && break 29818 done 29819 29820 if test "x$POTENTIAL_CXX" != x; then 29821 CXX=$POTENTIAL_CXX 29822 else 29823 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29824 fi 29825 else 29826 # Otherwise it might already be a complete path 29827 if test ! -x "$CXX"; then 29828 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29829 fi 29830 fi 29831 else 29832 # No user supplied value. Locate compiler ourselves. 29833 29834 # If we are cross compiling, assume cross compilation tools follows the 29835 # cross compilation standard where they are prefixed with the autoconf 29836 # standard name for the target. For example the binary 29837 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29838 # If we are not cross compiling, then the default compiler name will be 29839 # used. 29840 29841 CXX= 29842 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29843 # before checking the rest of the PATH. 29844 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29845 # step, this should not be necessary. 29846 if test -n "$TOOLCHAIN_PATH"; then 29847 PATH_save="$PATH" 29848 PATH="$TOOLCHAIN_PATH" 29849 for ac_prog in $SEARCH_LIST 29850 do 29851 # Extract the first word of "$ac_prog", so it can be a program name with args. 29852 set dummy $ac_prog; ac_word=$2 29853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29854 $as_echo_n "checking for $ac_word... " >&6; } 29855 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29856 $as_echo_n "(cached) " >&6 29857 else 29858 case $TOOLCHAIN_PATH_CXX in 29859 [\\/]* | ?:[\\/]*) 29860 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29861 ;; 29862 *) 29863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29864 for as_dir in $PATH 29865 do 29866 IFS=$as_save_IFS 29867 test -z "$as_dir" && as_dir=. 29868 for ac_exec_ext in '' $ac_executable_extensions; do 29869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29870 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29872 break 2 29873 fi 29874 done 29875 done 29876 IFS=$as_save_IFS 29877 29878 ;; 29879 esac 29880 fi 29881 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29882 if test -n "$TOOLCHAIN_PATH_CXX"; then 29883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29884 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29885 else 29886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29887 $as_echo "no" >&6; } 29888 fi 29889 29890 29891 test -n "$TOOLCHAIN_PATH_CXX" && break 29892 done 29893 29894 CXX=$TOOLCHAIN_PATH_CXX 29895 PATH="$PATH_save" 29896 fi 29897 29898 # AC_PATH_PROGS can't be run multiple times with the same variable, 29899 # so create a new name for this run. 29900 if test "x$CXX" = x; then 29901 for ac_prog in $SEARCH_LIST 29902 do 29903 # Extract the first word of "$ac_prog", so it can be a program name with args. 29904 set dummy $ac_prog; ac_word=$2 29905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29906 $as_echo_n "checking for $ac_word... " >&6; } 29907 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29908 $as_echo_n "(cached) " >&6 29909 else 29910 case $POTENTIAL_CXX in 29911 [\\/]* | ?:[\\/]*) 29912 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29913 ;; 29914 *) 29915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29916 for as_dir in $PATH 29917 do 29918 IFS=$as_save_IFS 29919 test -z "$as_dir" && as_dir=. 29920 for ac_exec_ext in '' $ac_executable_extensions; do 29921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29922 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29924 break 2 29925 fi 29926 done 29927 done 29928 IFS=$as_save_IFS 29929 29930 ;; 29931 esac 29932 fi 29933 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29934 if test -n "$POTENTIAL_CXX"; then 29935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29936 $as_echo "$POTENTIAL_CXX" >&6; } 29937 else 29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29939 $as_echo "no" >&6; } 29940 fi 29941 29942 29943 test -n "$POTENTIAL_CXX" && break 29944 done 29945 29946 CXX=$POTENTIAL_CXX 29947 fi 29948 29949 if test "x$CXX" = x; then 29950 29951 # Print a helpful message on how to acquire the necessary build dependency. 29952 # devkit is the help tag: freetype, cups, pulse, alsa etc 29953 MISSING_DEPENDENCY=devkit 29954 29955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29956 cygwin_help $MISSING_DEPENDENCY 29957 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29958 msys_help $MISSING_DEPENDENCY 29959 else 29960 PKGHANDLER_COMMAND= 29961 29962 case $PKGHANDLER in 29963 apt-get) 29964 apt_help $MISSING_DEPENDENCY ;; 29965 yum) 29966 yum_help $MISSING_DEPENDENCY ;; 29967 port) 29968 port_help $MISSING_DEPENDENCY ;; 29969 pkgutil) 29970 pkgutil_help $MISSING_DEPENDENCY ;; 29971 pkgadd) 29972 pkgadd_help $MISSING_DEPENDENCY ;; 29973 esac 29974 29975 if test "x$PKGHANDLER_COMMAND" != x; then 29976 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29977 fi 29978 fi 29979 29980 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29981 fi 29982 fi 29983 29984 # Now we have a compiler binary in CXX. Make sure it's okay. 29985 29986 # Only process if variable expands to non-empty 29987 29988 if test "x$CXX" != x; then 29989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29990 29991 # First separate the path from the arguments. This will split at the first 29992 # space. 29993 complete="$CXX" 29994 path="${complete%% *}" 29995 tmp="$complete EOL" 29996 arguments="${tmp#* }" 29997 29998 # Input might be given as Windows format, start by converting to 29999 # unix format. 30000 new_path=`$CYGPATH -u "$path"` 30001 30002 # Now try to locate executable using which 30003 new_path=`$WHICH "$new_path" 2> /dev/null` 30004 # bat and cmd files are not always considered executable in cygwin causing which 30005 # to not find them 30006 if test "x$new_path" = x \ 30007 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30008 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30009 new_path=`$CYGPATH -u "$path"` 30010 fi 30011 if test "x$new_path" = x; then 30012 # Oops. Which didn't find the executable. 30013 # The splitting of arguments from the executable at a space might have been incorrect, 30014 # since paths with space are more likely in Windows. Give it another try with the whole 30015 # argument. 30016 path="$complete" 30017 arguments="EOL" 30018 new_path=`$CYGPATH -u "$path"` 30019 new_path=`$WHICH "$new_path" 2> /dev/null` 30020 # bat and cmd files are not always considered executable in cygwin causing which 30021 # to not find them 30022 if test "x$new_path" = x \ 30023 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30024 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30025 new_path=`$CYGPATH -u "$path"` 30026 fi 30027 if test "x$new_path" = x; then 30028 # It's still not found. Now this is an unrecoverable error. 30029 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30030 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30031 has_space=`$ECHO "$complete" | $GREP " "` 30032 if test "x$has_space" != x; then 30033 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30034 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30035 fi 30036 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30037 fi 30038 fi 30039 30040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30043 # "foo.exe" is OK but "foo" is an error. 30044 # 30045 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30046 # It is also a way to make sure we got the proper file name for the real test later on. 30047 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30048 if test "x$test_shortpath" = x; then 30049 # Short path failed, file does not exist as specified. 30050 # Try adding .exe or .cmd 30051 if test -f "${new_path}.exe"; then 30052 input_to_shortpath="${new_path}.exe" 30053 elif test -f "${new_path}.cmd"; then 30054 input_to_shortpath="${new_path}.cmd" 30055 else 30056 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 30057 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 30058 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30059 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30060 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30061 fi 30062 else 30063 input_to_shortpath="$new_path" 30064 fi 30065 30066 # Call helper function which possibly converts this using DOS-style short mode. 30067 # If so, the updated path is stored in $new_path. 30068 new_path="$input_to_shortpath" 30069 30070 input_path="$input_to_shortpath" 30071 # Check if we need to convert this using DOS-style short mode. If the path 30072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30073 # take no chances and rewrite it. 30074 # Note: m4 eats our [], so we need to use [ and ] instead. 30075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30076 if test "x$has_forbidden_chars" != x; then 30077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30078 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30079 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30080 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30081 # Going to short mode and back again did indeed matter. Since short mode is 30082 # case insensitive, let's make it lowercase to improve readability. 30083 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30084 # Now convert it back to Unix-stile (cygpath) 30085 input_path=`$CYGPATH -u "$shortmode_path"` 30086 new_path="$input_path" 30087 fi 30088 fi 30089 30090 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30091 if test "x$test_cygdrive_prefix" = x; then 30092 # As a simple fix, exclude /usr/bin since it's not a real path. 30093 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30094 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30095 # a path prefixed by /cygdrive for fixpath to work. 30096 new_path="$CYGWIN_ROOT_PATH$input_path" 30097 fi 30098 fi 30099 30100 # remove trailing .exe if any 30101 new_path="${new_path/%.exe/}" 30102 30103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30104 30105 # First separate the path from the arguments. This will split at the first 30106 # space. 30107 complete="$CXX" 30108 path="${complete%% *}" 30109 tmp="$complete EOL" 30110 arguments="${tmp#* }" 30111 30112 # Input might be given as Windows format, start by converting to 30113 # unix format. 30114 new_path="$path" 30115 30116 windows_path="$new_path" 30117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30118 unix_path=`$CYGPATH -u "$windows_path"` 30119 new_path="$unix_path" 30120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30122 new_path="$unix_path" 30123 fi 30124 30125 30126 # Now try to locate executable using which 30127 new_path=`$WHICH "$new_path" 2> /dev/null` 30128 30129 if test "x$new_path" = x; then 30130 # Oops. Which didn't find the executable. 30131 # The splitting of arguments from the executable at a space might have been incorrect, 30132 # since paths with space are more likely in Windows. Give it another try with the whole 30133 # argument. 30134 path="$complete" 30135 arguments="EOL" 30136 new_path="$path" 30137 30138 windows_path="$new_path" 30139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30140 unix_path=`$CYGPATH -u "$windows_path"` 30141 new_path="$unix_path" 30142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30144 new_path="$unix_path" 30145 fi 30146 30147 30148 new_path=`$WHICH "$new_path" 2> /dev/null` 30149 # bat and cmd files are not always considered executable in MSYS causing which 30150 # to not find them 30151 if test "x$new_path" = x \ 30152 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30153 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30154 new_path="$path" 30155 30156 windows_path="$new_path" 30157 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30158 unix_path=`$CYGPATH -u "$windows_path"` 30159 new_path="$unix_path" 30160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30161 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30162 new_path="$unix_path" 30163 fi 30164 30165 fi 30166 30167 if test "x$new_path" = x; then 30168 # It's still not found. Now this is an unrecoverable error. 30169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30170 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30171 has_space=`$ECHO "$complete" | $GREP " "` 30172 if test "x$has_space" != x; then 30173 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30174 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30175 fi 30176 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30177 fi 30178 fi 30179 30180 # Now new_path has a complete unix path to the binary 30181 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30182 # Keep paths in /bin as-is, but remove trailing .exe if any 30183 new_path="${new_path/%.exe/}" 30184 # Do not save /bin paths to all_fixpath_prefixes! 30185 else 30186 # Not in mixed or Windows style, start by that. 30187 new_path=`cmd //c echo $new_path` 30188 30189 input_path="$new_path" 30190 # Check if we need to convert this using DOS-style short mode. If the path 30191 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30192 # take no chances and rewrite it. 30193 # Note: m4 eats our [], so we need to use [ and ] instead. 30194 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30195 if test "x$has_forbidden_chars" != x; then 30196 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30197 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30198 fi 30199 30200 # Output is in $new_path 30201 30202 windows_path="$new_path" 30203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30204 unix_path=`$CYGPATH -u "$windows_path"` 30205 new_path="$unix_path" 30206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30207 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30208 new_path="$unix_path" 30209 fi 30210 30211 # remove trailing .exe if any 30212 new_path="${new_path/%.exe/}" 30213 30214 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30215 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30216 fi 30217 30218 else 30219 # We're on a unix platform. Hooray! :) 30220 # First separate the path from the arguments. This will split at the first 30221 # space. 30222 complete="$CXX" 30223 path="${complete%% *}" 30224 tmp="$complete EOL" 30225 arguments="${tmp#* }" 30226 30227 # Cannot rely on the command "which" here since it doesn't always work. 30228 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30229 if test -z "$is_absolute_path"; then 30230 # Path to executable is not absolute. Find it. 30231 IFS_save="$IFS" 30232 IFS=: 30233 for p in $PATH; do 30234 if test -f "$p/$path" && test -x "$p/$path"; then 30235 new_path="$p/$path" 30236 break 30237 fi 30238 done 30239 IFS="$IFS_save" 30240 else 30241 # This is an absolute path, we can use it without further modifications. 30242 new_path="$path" 30243 fi 30244 30245 if test "x$new_path" = x; then 30246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 30247 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 30248 has_space=`$ECHO "$complete" | $GREP " "` 30249 if test "x$has_space" != x; then 30250 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30251 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30252 fi 30253 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 30254 fi 30255 fi 30256 30257 # Now join together the path and the arguments once again 30258 if test "x$arguments" != xEOL; then 30259 new_complete="$new_path ${arguments% *}" 30260 else 30261 new_complete="$new_path" 30262 fi 30263 30264 if test "x$complete" != "x$new_complete"; then 30265 CXX="$new_complete" 30266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 30267 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 30268 fi 30269 fi 30270 30271 TEST_COMPILER="$CXX" 30272 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 30273 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 30274 if test "x$OPENJDK_BUILD_OS" != xaix; then 30275 # FIXME: This test should not be needed anymore; we don't do that for any platform. 30276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 30277 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 30278 30279 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30280 # Follow a chain of symbolic links. Use readlink 30281 # where it exists, else fall back to horribly 30282 # complicated shell code. 30283 if test "x$READLINK_TESTED" != yes; then 30284 # On MacOSX there is a readlink tool with a different 30285 # purpose than the GNU readlink tool. Check the found readlink. 30286 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30287 if test "x$ISGNU" = x; then 30288 # A readlink that we do not know how to use. 30289 # Are there other non-GNU readlinks out there? 30290 READLINK_TESTED=yes 30291 READLINK= 30292 fi 30293 fi 30294 30295 if test "x$READLINK" != x; then 30296 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 30297 else 30298 # Save the current directory for restoring afterwards 30299 STARTDIR=$PWD 30300 COUNTER=0 30301 sym_link_dir=`$DIRNAME $TEST_COMPILER` 30302 sym_link_file=`$BASENAME $TEST_COMPILER` 30303 cd $sym_link_dir 30304 # Use -P flag to resolve symlinks in directories. 30305 cd `$THEPWDCMD -P` 30306 sym_link_dir=`$THEPWDCMD -P` 30307 # Resolve file symlinks 30308 while test $COUNTER -lt 20; do 30309 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30310 if test "x$ISLINK" == x; then 30311 # This is not a symbolic link! We are done! 30312 break 30313 fi 30314 # Again resolve directory symlinks since the target of the just found 30315 # link could be in a different directory 30316 cd `$DIRNAME $ISLINK` 30317 sym_link_dir=`$THEPWDCMD -P` 30318 sym_link_file=`$BASENAME $ISLINK` 30319 let COUNTER=COUNTER+1 30320 done 30321 cd $STARTDIR 30322 TEST_COMPILER=$sym_link_dir/$sym_link_file 30323 fi 30324 fi 30325 30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 30327 $as_echo "$TEST_COMPILER" >&6; } 30328 fi 30329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 30330 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 30331 30332 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 30333 if test "x$COMPILER_BASENAME" = "xccache"; then 30334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 30335 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 30336 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 30337 # We want to control ccache invocation ourselves, so ignore this cc and try 30338 # searching again. 30339 30340 # Remove the path to the fake ccache cc from the PATH 30341 RETRY_COMPILER_SAVED_PATH="$PATH" 30342 COMPILER_DIRNAME=`$DIRNAME $CXX` 30343 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 30344 30345 # Try again looking for our compiler 30346 if test -n "$ac_tool_prefix"; then 30347 for ac_prog in $TOOLCHAIN_CXX_BINARY 30348 do 30349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30352 $as_echo_n "checking for $ac_word... " >&6; } 30353 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 30354 $as_echo_n "(cached) " >&6 30355 else 30356 if test -n "$PROPER_COMPILER_CXX"; then 30357 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 30358 else 30359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30360 for as_dir in $PATH 30361 do 30362 IFS=$as_save_IFS 30363 test -z "$as_dir" && as_dir=. 30364 for ac_exec_ext in '' $ac_executable_extensions; do 30365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30366 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 30367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30368 break 2 30369 fi 30370 done 30371 done 30372 IFS=$as_save_IFS 30373 30374 fi 30375 fi 30376 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 30377 if test -n "$PROPER_COMPILER_CXX"; then 30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30379 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30380 else 30381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30382 $as_echo "no" >&6; } 30383 fi 30384 30385 30386 test -n "$PROPER_COMPILER_CXX" && break 30387 done 30388 fi 30389 if test -z "$PROPER_COMPILER_CXX"; then 30390 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 30391 for ac_prog in $TOOLCHAIN_CXX_BINARY 30392 do 30393 # Extract the first word of "$ac_prog", so it can be a program name with args. 30394 set dummy $ac_prog; ac_word=$2 30395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30396 $as_echo_n "checking for $ac_word... " >&6; } 30397 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 30398 $as_echo_n "(cached) " >&6 30399 else 30400 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30401 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 30402 else 30403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30404 for as_dir in $PATH 30405 do 30406 IFS=$as_save_IFS 30407 test -z "$as_dir" && as_dir=. 30408 for ac_exec_ext in '' $ac_executable_extensions; do 30409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30410 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 30411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30412 break 2 30413 fi 30414 done 30415 done 30416 IFS=$as_save_IFS 30417 30418 fi 30419 fi 30420 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 30421 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 30423 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 30424 else 30425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30426 $as_echo "no" >&6; } 30427 fi 30428 30429 30430 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 30431 done 30432 30433 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 30434 PROPER_COMPILER_CXX="" 30435 else 30436 case $cross_compiling:$ac_tool_warned in 30437 yes:) 30438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30440 ac_tool_warned=yes ;; 30441 esac 30442 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 30443 fi 30444 fi 30445 30446 30447 # Only process if variable expands to non-empty 30448 30449 if test "x$PROPER_COMPILER_CXX" != x; then 30450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30451 30452 # First separate the path from the arguments. This will split at the first 30453 # space. 30454 complete="$PROPER_COMPILER_CXX" 30455 path="${complete%% *}" 30456 tmp="$complete EOL" 30457 arguments="${tmp#* }" 30458 30459 # Input might be given as Windows format, start by converting to 30460 # unix format. 30461 new_path=`$CYGPATH -u "$path"` 30462 30463 # Now try to locate executable using which 30464 new_path=`$WHICH "$new_path" 2> /dev/null` 30465 # bat and cmd files are not always considered executable in cygwin causing which 30466 # to not find them 30467 if test "x$new_path" = x \ 30468 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30469 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30470 new_path=`$CYGPATH -u "$path"` 30471 fi 30472 if test "x$new_path" = x; then 30473 # Oops. Which didn't find the executable. 30474 # The splitting of arguments from the executable at a space might have been incorrect, 30475 # since paths with space are more likely in Windows. Give it another try with the whole 30476 # argument. 30477 path="$complete" 30478 arguments="EOL" 30479 new_path=`$CYGPATH -u "$path"` 30480 new_path=`$WHICH "$new_path" 2> /dev/null` 30481 # bat and cmd files are not always considered executable in cygwin causing which 30482 # to not find them 30483 if test "x$new_path" = x \ 30484 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30485 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30486 new_path=`$CYGPATH -u "$path"` 30487 fi 30488 if test "x$new_path" = x; then 30489 # It's still not found. Now this is an unrecoverable error. 30490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30491 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30492 has_space=`$ECHO "$complete" | $GREP " "` 30493 if test "x$has_space" != x; then 30494 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30495 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30496 fi 30497 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30498 fi 30499 fi 30500 30501 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30502 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30503 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30504 # "foo.exe" is OK but "foo" is an error. 30505 # 30506 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30507 # It is also a way to make sure we got the proper file name for the real test later on. 30508 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30509 if test "x$test_shortpath" = x; then 30510 # Short path failed, file does not exist as specified. 30511 # Try adding .exe or .cmd 30512 if test -f "${new_path}.exe"; then 30513 input_to_shortpath="${new_path}.exe" 30514 elif test -f "${new_path}.cmd"; then 30515 input_to_shortpath="${new_path}.cmd" 30516 else 30517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 30518 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 30519 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30520 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30521 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30522 fi 30523 else 30524 input_to_shortpath="$new_path" 30525 fi 30526 30527 # Call helper function which possibly converts this using DOS-style short mode. 30528 # If so, the updated path is stored in $new_path. 30529 new_path="$input_to_shortpath" 30530 30531 input_path="$input_to_shortpath" 30532 # Check if we need to convert this using DOS-style short mode. If the path 30533 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30534 # take no chances and rewrite it. 30535 # Note: m4 eats our [], so we need to use [ and ] instead. 30536 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30537 if test "x$has_forbidden_chars" != x; then 30538 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30539 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30540 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30541 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30542 # Going to short mode and back again did indeed matter. Since short mode is 30543 # case insensitive, let's make it lowercase to improve readability. 30544 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30545 # Now convert it back to Unix-stile (cygpath) 30546 input_path=`$CYGPATH -u "$shortmode_path"` 30547 new_path="$input_path" 30548 fi 30549 fi 30550 30551 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30552 if test "x$test_cygdrive_prefix" = x; then 30553 # As a simple fix, exclude /usr/bin since it's not a real path. 30554 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30555 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30556 # a path prefixed by /cygdrive for fixpath to work. 30557 new_path="$CYGWIN_ROOT_PATH$input_path" 30558 fi 30559 fi 30560 30561 # remove trailing .exe if any 30562 new_path="${new_path/%.exe/}" 30563 30564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30565 30566 # First separate the path from the arguments. This will split at the first 30567 # space. 30568 complete="$PROPER_COMPILER_CXX" 30569 path="${complete%% *}" 30570 tmp="$complete EOL" 30571 arguments="${tmp#* }" 30572 30573 # Input might be given as Windows format, start by converting to 30574 # unix format. 30575 new_path="$path" 30576 30577 windows_path="$new_path" 30578 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30579 unix_path=`$CYGPATH -u "$windows_path"` 30580 new_path="$unix_path" 30581 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30582 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30583 new_path="$unix_path" 30584 fi 30585 30586 30587 # Now try to locate executable using which 30588 new_path=`$WHICH "$new_path" 2> /dev/null` 30589 30590 if test "x$new_path" = x; then 30591 # Oops. Which didn't find the executable. 30592 # The splitting of arguments from the executable at a space might have been incorrect, 30593 # since paths with space are more likely in Windows. Give it another try with the whole 30594 # argument. 30595 path="$complete" 30596 arguments="EOL" 30597 new_path="$path" 30598 30599 windows_path="$new_path" 30600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30601 unix_path=`$CYGPATH -u "$windows_path"` 30602 new_path="$unix_path" 30603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30605 new_path="$unix_path" 30606 fi 30607 30608 30609 new_path=`$WHICH "$new_path" 2> /dev/null` 30610 # bat and cmd files are not always considered executable in MSYS causing which 30611 # to not find them 30612 if test "x$new_path" = x \ 30613 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30614 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30615 new_path="$path" 30616 30617 windows_path="$new_path" 30618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30619 unix_path=`$CYGPATH -u "$windows_path"` 30620 new_path="$unix_path" 30621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30622 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30623 new_path="$unix_path" 30624 fi 30625 30626 fi 30627 30628 if test "x$new_path" = x; then 30629 # It's still not found. Now this is an unrecoverable error. 30630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30631 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30632 has_space=`$ECHO "$complete" | $GREP " "` 30633 if test "x$has_space" != x; then 30634 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30635 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30636 fi 30637 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30638 fi 30639 fi 30640 30641 # Now new_path has a complete unix path to the binary 30642 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30643 # Keep paths in /bin as-is, but remove trailing .exe if any 30644 new_path="${new_path/%.exe/}" 30645 # Do not save /bin paths to all_fixpath_prefixes! 30646 else 30647 # Not in mixed or Windows style, start by that. 30648 new_path=`cmd //c echo $new_path` 30649 30650 input_path="$new_path" 30651 # Check if we need to convert this using DOS-style short mode. If the path 30652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30653 # take no chances and rewrite it. 30654 # Note: m4 eats our [], so we need to use [ and ] instead. 30655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30656 if test "x$has_forbidden_chars" != x; then 30657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30658 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30659 fi 30660 30661 # Output is in $new_path 30662 30663 windows_path="$new_path" 30664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30665 unix_path=`$CYGPATH -u "$windows_path"` 30666 new_path="$unix_path" 30667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30669 new_path="$unix_path" 30670 fi 30671 30672 # remove trailing .exe if any 30673 new_path="${new_path/%.exe/}" 30674 30675 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30676 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30677 fi 30678 30679 else 30680 # We're on a unix platform. Hooray! :) 30681 # First separate the path from the arguments. This will split at the first 30682 # space. 30683 complete="$PROPER_COMPILER_CXX" 30684 path="${complete%% *}" 30685 tmp="$complete EOL" 30686 arguments="${tmp#* }" 30687 30688 # Cannot rely on the command "which" here since it doesn't always work. 30689 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30690 if test -z "$is_absolute_path"; then 30691 # Path to executable is not absolute. Find it. 30692 IFS_save="$IFS" 30693 IFS=: 30694 for p in $PATH; do 30695 if test -f "$p/$path" && test -x "$p/$path"; then 30696 new_path="$p/$path" 30697 break 30698 fi 30699 done 30700 IFS="$IFS_save" 30701 else 30702 # This is an absolute path, we can use it without further modifications. 30703 new_path="$path" 30704 fi 30705 30706 if test "x$new_path" = x; then 30707 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30708 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30709 has_space=`$ECHO "$complete" | $GREP " "` 30710 if test "x$has_space" != x; then 30711 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30712 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30713 fi 30714 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30715 fi 30716 fi 30717 30718 # Now join together the path and the arguments once again 30719 if test "x$arguments" != xEOL; then 30720 new_complete="$new_path ${arguments% *}" 30721 else 30722 new_complete="$new_path" 30723 fi 30724 30725 if test "x$complete" != "x$new_complete"; then 30726 PROPER_COMPILER_CXX="$new_complete" 30727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30728 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30729 fi 30730 fi 30731 30732 PATH="$RETRY_COMPILER_SAVED_PATH" 30733 30734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30735 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30736 30737 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30738 # Follow a chain of symbolic links. Use readlink 30739 # where it exists, else fall back to horribly 30740 # complicated shell code. 30741 if test "x$READLINK_TESTED" != yes; then 30742 # On MacOSX there is a readlink tool with a different 30743 # purpose than the GNU readlink tool. Check the found readlink. 30744 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30745 if test "x$ISGNU" = x; then 30746 # A readlink that we do not know how to use. 30747 # Are there other non-GNU readlinks out there? 30748 READLINK_TESTED=yes 30749 READLINK= 30750 fi 30751 fi 30752 30753 if test "x$READLINK" != x; then 30754 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30755 else 30756 # Save the current directory for restoring afterwards 30757 STARTDIR=$PWD 30758 COUNTER=0 30759 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30760 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30761 cd $sym_link_dir 30762 # Use -P flag to resolve symlinks in directories. 30763 cd `$THEPWDCMD -P` 30764 sym_link_dir=`$THEPWDCMD -P` 30765 # Resolve file symlinks 30766 while test $COUNTER -lt 20; do 30767 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30768 if test "x$ISLINK" == x; then 30769 # This is not a symbolic link! We are done! 30770 break 30771 fi 30772 # Again resolve directory symlinks since the target of the just found 30773 # link could be in a different directory 30774 cd `$DIRNAME $ISLINK` 30775 sym_link_dir=`$THEPWDCMD -P` 30776 sym_link_file=`$BASENAME $ISLINK` 30777 let COUNTER=COUNTER+1 30778 done 30779 cd $STARTDIR 30780 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30781 fi 30782 fi 30783 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30785 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30786 CXX="$PROPER_COMPILER_CXX" 30787 else 30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30789 $as_echo "no, keeping CXX" >&6; } 30790 fi 30791 30792 30793 COMPILER=$CXX 30794 COMPILER_NAME=$COMPILER_NAME 30795 30796 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30797 # cc -V output typically looks like 30798 # cc: Sun C 5.12 Linux_i386 2011/11/16 30799 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30800 # Check that this is likely to be the Solaris Studio cc. 30801 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30802 if test $? -ne 0; then 30803 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30804 { $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 30805 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30806 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30807 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30808 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30809 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30810 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30811 fi 30812 # Remove usage instructions (if present), and 30813 # collapse compiler output into a single line 30814 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30815 $SED -e 's/ *[Uu]sage:.*//'` 30816 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30817 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30818 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30819 # xlc -qversion output typically looks like 30820 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30821 # Version: 11.01.0000.0015 30822 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30823 # Check that this is likely to be the IBM XL C compiler. 30824 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30825 if test $? -ne 0; then 30826 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30827 { $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 30828 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30829 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30830 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30831 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30832 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30833 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30834 fi 30835 # Collapse compiler output into a single line 30836 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30837 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30838 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30839 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30840 # There is no specific version flag, but all output starts with a version string. 30841 # First line typically looks something like: 30842 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30843 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30844 # Check that this is likely to be Microsoft CL.EXE. 30845 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30846 if test $? -ne 0; then 30847 { $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 30848 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30849 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30850 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30851 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30852 fi 30853 # Collapse compiler output into a single line 30854 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30855 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30856 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30857 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30858 # gcc --version output typically looks like 30859 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30860 # Copyright (C) 2013 Free Software Foundation, Inc. 30861 # This is free software; see the source for copying conditions. There is NO 30862 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30863 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30864 # Check that this is likely to be GCC. 30865 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30866 if test $? -ne 0; then 30867 { $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 30868 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30869 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30870 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30871 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30872 fi 30873 # Remove Copyright and legalese from version string, and 30874 # collapse into a single line 30875 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30876 $SED -e 's/ *Copyright .*//'` 30877 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30878 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30879 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30880 # clang --version output typically looks like 30881 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30882 # clang version 3.3 (tags/RELEASE_33/final) 30883 # or 30884 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30885 # Target: x86_64-pc-linux-gnu 30886 # Thread model: posix 30887 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30888 # Check that this is likely to be clang 30889 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30890 if test $? -ne 0; then 30891 { $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 30892 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30893 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30894 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30895 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30896 fi 30897 # Collapse compiler output into a single line 30898 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30899 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30900 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30901 else 30902 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30903 fi 30904 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30905 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30906 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30907 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30908 30909 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30910 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30911 30912 30913 # Now that we have resolved CXX ourself, let autoconf have its go at it 30914 ac_ext=cpp 30915 ac_cpp='$CXXCPP $CPPFLAGS' 30916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30919 if test -z "$CXX"; then 30920 if test -n "$CCC"; then 30921 CXX=$CCC 30922 else 30923 if test -n "$ac_tool_prefix"; then 30924 for ac_prog in $CXX 30925 do 30926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30929 $as_echo_n "checking for $ac_word... " >&6; } 30930 if ${ac_cv_prog_CXX+:} false; then : 30931 $as_echo_n "(cached) " >&6 30932 else 30933 if test -n "$CXX"; then 30934 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30935 else 30936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30937 for as_dir in $PATH 30938 do 30939 IFS=$as_save_IFS 30940 test -z "$as_dir" && as_dir=. 30941 for ac_exec_ext in '' $ac_executable_extensions; do 30942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30943 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30945 break 2 30946 fi 30947 done 30948 done 30949 IFS=$as_save_IFS 30950 30951 fi 30952 fi 30953 CXX=$ac_cv_prog_CXX 30954 if test -n "$CXX"; then 30955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30956 $as_echo "$CXX" >&6; } 30957 else 30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30959 $as_echo "no" >&6; } 30960 fi 30961 30962 30963 test -n "$CXX" && break 30964 done 30965 fi 30966 if test -z "$CXX"; then 30967 ac_ct_CXX=$CXX 30968 for ac_prog in $CXX 30969 do 30970 # Extract the first word of "$ac_prog", so it can be a program name with args. 30971 set dummy $ac_prog; ac_word=$2 30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30973 $as_echo_n "checking for $ac_word... " >&6; } 30974 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30975 $as_echo_n "(cached) " >&6 30976 else 30977 if test -n "$ac_ct_CXX"; then 30978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30979 else 30980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30981 for as_dir in $PATH 30982 do 30983 IFS=$as_save_IFS 30984 test -z "$as_dir" && as_dir=. 30985 for ac_exec_ext in '' $ac_executable_extensions; do 30986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30987 ac_cv_prog_ac_ct_CXX="$ac_prog" 30988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30989 break 2 30990 fi 30991 done 30992 done 30993 IFS=$as_save_IFS 30994 30995 fi 30996 fi 30997 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30998 if test -n "$ac_ct_CXX"; then 30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 31000 $as_echo "$ac_ct_CXX" >&6; } 31001 else 31002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31003 $as_echo "no" >&6; } 31004 fi 31005 31006 31007 test -n "$ac_ct_CXX" && break 31008 done 31009 31010 if test "x$ac_ct_CXX" = x; then 31011 CXX="g++" 31012 else 31013 case $cross_compiling:$ac_tool_warned in 31014 yes:) 31015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31017 ac_tool_warned=yes ;; 31018 esac 31019 CXX=$ac_ct_CXX 31020 fi 31021 fi 31022 31023 fi 31024 fi 31025 # Provide some information about the compiler. 31026 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 31027 set X $ac_compile 31028 ac_compiler=$2 31029 for ac_option in --version -v -V -qversion; do 31030 { { ac_try="$ac_compiler $ac_option >&5" 31031 case "(($ac_try" in 31032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31033 *) ac_try_echo=$ac_try;; 31034 esac 31035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31036 $as_echo "$ac_try_echo"; } >&5 31037 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31038 ac_status=$? 31039 if test -s conftest.err; then 31040 sed '10a\ 31041 ... rest of stderr output deleted ... 31042 10q' conftest.err >conftest.er1 31043 cat conftest.er1 >&5 31044 fi 31045 rm -f conftest.er1 conftest.err 31046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31047 test $ac_status = 0; } 31048 done 31049 31050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 31051 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 31052 if ${ac_cv_cxx_compiler_gnu+:} false; then : 31053 $as_echo_n "(cached) " >&6 31054 else 31055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31056 /* end confdefs.h. */ 31057 31058 int 31059 main () 31060 { 31061 #ifndef __GNUC__ 31062 choke me 31063 #endif 31064 31065 ; 31066 return 0; 31067 } 31068 _ACEOF 31069 if ac_fn_cxx_try_compile "$LINENO"; then : 31070 ac_compiler_gnu=yes 31071 else 31072 ac_compiler_gnu=no 31073 fi 31074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31075 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 31076 31077 fi 31078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 31079 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 31080 if test $ac_compiler_gnu = yes; then 31081 GXX=yes 31082 else 31083 GXX= 31084 fi 31085 ac_test_CXXFLAGS=${CXXFLAGS+set} 31086 ac_save_CXXFLAGS=$CXXFLAGS 31087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 31088 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 31089 if ${ac_cv_prog_cxx_g+:} false; then : 31090 $as_echo_n "(cached) " >&6 31091 else 31092 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 31093 ac_cxx_werror_flag=yes 31094 ac_cv_prog_cxx_g=no 31095 CXXFLAGS="-g" 31096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31097 /* end confdefs.h. */ 31098 31099 int 31100 main () 31101 { 31102 31103 ; 31104 return 0; 31105 } 31106 _ACEOF 31107 if ac_fn_cxx_try_compile "$LINENO"; then : 31108 ac_cv_prog_cxx_g=yes 31109 else 31110 CXXFLAGS="" 31111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31112 /* end confdefs.h. */ 31113 31114 int 31115 main () 31116 { 31117 31118 ; 31119 return 0; 31120 } 31121 _ACEOF 31122 if ac_fn_cxx_try_compile "$LINENO"; then : 31123 31124 else 31125 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31126 CXXFLAGS="-g" 31127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31128 /* end confdefs.h. */ 31129 31130 int 31131 main () 31132 { 31133 31134 ; 31135 return 0; 31136 } 31137 _ACEOF 31138 if ac_fn_cxx_try_compile "$LINENO"; then : 31139 ac_cv_prog_cxx_g=yes 31140 fi 31141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31142 fi 31143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31144 fi 31145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31146 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 31147 fi 31148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 31149 $as_echo "$ac_cv_prog_cxx_g" >&6; } 31150 if test "$ac_test_CXXFLAGS" = set; then 31151 CXXFLAGS=$ac_save_CXXFLAGS 31152 elif test $ac_cv_prog_cxx_g = yes; then 31153 if test "$GXX" = yes; then 31154 CXXFLAGS="-g -O2" 31155 else 31156 CXXFLAGS="-g" 31157 fi 31158 else 31159 if test "$GXX" = yes; then 31160 CXXFLAGS="-O2" 31161 else 31162 CXXFLAGS= 31163 fi 31164 fi 31165 ac_ext=cpp 31166 ac_cpp='$CXXCPP $CPPFLAGS' 31167 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31168 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31169 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31170 31171 31172 # 31173 # Setup the preprocessor (CPP and CXXCPP) 31174 # 31175 ac_ext=c 31176 ac_cpp='$CPP $CPPFLAGS' 31177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31179 ac_compiler_gnu=$ac_cv_c_compiler_gnu 31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 31181 $as_echo_n "checking how to run the C preprocessor... " >&6; } 31182 # On Suns, sometimes $CPP names a directory. 31183 if test -n "$CPP" && test -d "$CPP"; then 31184 CPP= 31185 fi 31186 if test -z "$CPP"; then 31187 if ${ac_cv_prog_CPP+:} false; then : 31188 $as_echo_n "(cached) " >&6 31189 else 31190 # Double quotes because CPP needs to be expanded 31191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 31192 do 31193 ac_preproc_ok=false 31194 for ac_c_preproc_warn_flag in '' yes 31195 do 31196 # Use a header file that comes with gcc, so configuring glibc 31197 # with a fresh cross-compiler works. 31198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31199 # <limits.h> exists even on freestanding compilers. 31200 # On the NeXT, cc -E runs the code through the compiler's parser, 31201 # not just through cpp. "Syntax error" is here to catch this case. 31202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31203 /* end confdefs.h. */ 31204 #ifdef __STDC__ 31205 # include <limits.h> 31206 #else 31207 # include <assert.h> 31208 #endif 31209 Syntax error 31210 _ACEOF 31211 if ac_fn_c_try_cpp "$LINENO"; then : 31212 31213 else 31214 # Broken: fails on valid input. 31215 continue 31216 fi 31217 rm -f conftest.err conftest.i conftest.$ac_ext 31218 31219 # OK, works on sane cases. Now check whether nonexistent headers 31220 # can be detected and how. 31221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31222 /* end confdefs.h. */ 31223 #include <ac_nonexistent.h> 31224 _ACEOF 31225 if ac_fn_c_try_cpp "$LINENO"; then : 31226 # Broken: success on invalid input. 31227 continue 31228 else 31229 # Passes both tests. 31230 ac_preproc_ok=: 31231 break 31232 fi 31233 rm -f conftest.err conftest.i conftest.$ac_ext 31234 31235 done 31236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31237 rm -f conftest.i conftest.err conftest.$ac_ext 31238 if $ac_preproc_ok; then : 31239 break 31240 fi 31241 31242 done 31243 ac_cv_prog_CPP=$CPP 31244 31245 fi 31246 CPP=$ac_cv_prog_CPP 31247 else 31248 ac_cv_prog_CPP=$CPP 31249 fi 31250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 31251 $as_echo "$CPP" >&6; } 31252 ac_preproc_ok=false 31253 for ac_c_preproc_warn_flag in '' yes 31254 do 31255 # Use a header file that comes with gcc, so configuring glibc 31256 # with a fresh cross-compiler works. 31257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31258 # <limits.h> exists even on freestanding compilers. 31259 # On the NeXT, cc -E runs the code through the compiler's parser, 31260 # not just through cpp. "Syntax error" is here to catch this case. 31261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31262 /* end confdefs.h. */ 31263 #ifdef __STDC__ 31264 # include <limits.h> 31265 #else 31266 # include <assert.h> 31267 #endif 31268 Syntax error 31269 _ACEOF 31270 if ac_fn_c_try_cpp "$LINENO"; then : 31271 31272 else 31273 # Broken: fails on valid input. 31274 continue 31275 fi 31276 rm -f conftest.err conftest.i conftest.$ac_ext 31277 31278 # OK, works on sane cases. Now check whether nonexistent headers 31279 # can be detected and how. 31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31281 /* end confdefs.h. */ 31282 #include <ac_nonexistent.h> 31283 _ACEOF 31284 if ac_fn_c_try_cpp "$LINENO"; then : 31285 # Broken: success on invalid input. 31286 continue 31287 else 31288 # Passes both tests. 31289 ac_preproc_ok=: 31290 break 31291 fi 31292 rm -f conftest.err conftest.i conftest.$ac_ext 31293 31294 done 31295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31296 rm -f conftest.i conftest.err conftest.$ac_ext 31297 if $ac_preproc_ok; then : 31298 31299 else 31300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31302 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 31303 See \`config.log' for more details" "$LINENO" 5; } 31304 fi 31305 31306 ac_ext=cpp 31307 ac_cpp='$CXXCPP $CPPFLAGS' 31308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31311 31312 31313 # Only process if variable expands to non-empty 31314 31315 if test "x$CPP" != x; then 31316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31317 31318 # First separate the path from the arguments. This will split at the first 31319 # space. 31320 complete="$CPP" 31321 path="${complete%% *}" 31322 tmp="$complete EOL" 31323 arguments="${tmp#* }" 31324 31325 # Input might be given as Windows format, start by converting to 31326 # unix format. 31327 new_path=`$CYGPATH -u "$path"` 31328 31329 # Now try to locate executable using which 31330 new_path=`$WHICH "$new_path" 2> /dev/null` 31331 # bat and cmd files are not always considered executable in cygwin causing which 31332 # to not find them 31333 if test "x$new_path" = x \ 31334 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31335 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31336 new_path=`$CYGPATH -u "$path"` 31337 fi 31338 if test "x$new_path" = x; then 31339 # Oops. Which didn't find the executable. 31340 # The splitting of arguments from the executable at a space might have been incorrect, 31341 # since paths with space are more likely in Windows. Give it another try with the whole 31342 # argument. 31343 path="$complete" 31344 arguments="EOL" 31345 new_path=`$CYGPATH -u "$path"` 31346 new_path=`$WHICH "$new_path" 2> /dev/null` 31347 # bat and cmd files are not always considered executable in cygwin causing which 31348 # to not find them 31349 if test "x$new_path" = x \ 31350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31352 new_path=`$CYGPATH -u "$path"` 31353 fi 31354 if test "x$new_path" = x; then 31355 # It's still not found. Now this is an unrecoverable error. 31356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31357 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31358 has_space=`$ECHO "$complete" | $GREP " "` 31359 if test "x$has_space" != x; then 31360 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31362 fi 31363 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31364 fi 31365 fi 31366 31367 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31368 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31369 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31370 # "foo.exe" is OK but "foo" is an error. 31371 # 31372 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31373 # It is also a way to make sure we got the proper file name for the real test later on. 31374 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31375 if test "x$test_shortpath" = x; then 31376 # Short path failed, file does not exist as specified. 31377 # Try adding .exe or .cmd 31378 if test -f "${new_path}.exe"; then 31379 input_to_shortpath="${new_path}.exe" 31380 elif test -f "${new_path}.cmd"; then 31381 input_to_shortpath="${new_path}.cmd" 31382 else 31383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 31384 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 31385 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31386 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31387 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31388 fi 31389 else 31390 input_to_shortpath="$new_path" 31391 fi 31392 31393 # Call helper function which possibly converts this using DOS-style short mode. 31394 # If so, the updated path is stored in $new_path. 31395 new_path="$input_to_shortpath" 31396 31397 input_path="$input_to_shortpath" 31398 # Check if we need to convert this using DOS-style short mode. If the path 31399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31400 # take no chances and rewrite it. 31401 # Note: m4 eats our [], so we need to use [ and ] instead. 31402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31403 if test "x$has_forbidden_chars" != x; then 31404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31405 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31406 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31407 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31408 # Going to short mode and back again did indeed matter. Since short mode is 31409 # case insensitive, let's make it lowercase to improve readability. 31410 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31411 # Now convert it back to Unix-stile (cygpath) 31412 input_path=`$CYGPATH -u "$shortmode_path"` 31413 new_path="$input_path" 31414 fi 31415 fi 31416 31417 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31418 if test "x$test_cygdrive_prefix" = x; then 31419 # As a simple fix, exclude /usr/bin since it's not a real path. 31420 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31421 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31422 # a path prefixed by /cygdrive for fixpath to work. 31423 new_path="$CYGWIN_ROOT_PATH$input_path" 31424 fi 31425 fi 31426 31427 # remove trailing .exe if any 31428 new_path="${new_path/%.exe/}" 31429 31430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31431 31432 # First separate the path from the arguments. This will split at the first 31433 # space. 31434 complete="$CPP" 31435 path="${complete%% *}" 31436 tmp="$complete EOL" 31437 arguments="${tmp#* }" 31438 31439 # Input might be given as Windows format, start by converting to 31440 # unix format. 31441 new_path="$path" 31442 31443 windows_path="$new_path" 31444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31445 unix_path=`$CYGPATH -u "$windows_path"` 31446 new_path="$unix_path" 31447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31449 new_path="$unix_path" 31450 fi 31451 31452 31453 # Now try to locate executable using which 31454 new_path=`$WHICH "$new_path" 2> /dev/null` 31455 31456 if test "x$new_path" = x; then 31457 # Oops. Which didn't find the executable. 31458 # The splitting of arguments from the executable at a space might have been incorrect, 31459 # since paths with space are more likely in Windows. Give it another try with the whole 31460 # argument. 31461 path="$complete" 31462 arguments="EOL" 31463 new_path="$path" 31464 31465 windows_path="$new_path" 31466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31467 unix_path=`$CYGPATH -u "$windows_path"` 31468 new_path="$unix_path" 31469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31471 new_path="$unix_path" 31472 fi 31473 31474 31475 new_path=`$WHICH "$new_path" 2> /dev/null` 31476 # bat and cmd files are not always considered executable in MSYS causing which 31477 # to not find them 31478 if test "x$new_path" = x \ 31479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31481 new_path="$path" 31482 31483 windows_path="$new_path" 31484 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31485 unix_path=`$CYGPATH -u "$windows_path"` 31486 new_path="$unix_path" 31487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31488 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31489 new_path="$unix_path" 31490 fi 31491 31492 fi 31493 31494 if test "x$new_path" = x; then 31495 # It's still not found. Now this is an unrecoverable error. 31496 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31497 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31498 has_space=`$ECHO "$complete" | $GREP " "` 31499 if test "x$has_space" != x; then 31500 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31501 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31502 fi 31503 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31504 fi 31505 fi 31506 31507 # Now new_path has a complete unix path to the binary 31508 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31509 # Keep paths in /bin as-is, but remove trailing .exe if any 31510 new_path="${new_path/%.exe/}" 31511 # Do not save /bin paths to all_fixpath_prefixes! 31512 else 31513 # Not in mixed or Windows style, start by that. 31514 new_path=`cmd //c echo $new_path` 31515 31516 input_path="$new_path" 31517 # Check if we need to convert this using DOS-style short mode. If the path 31518 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31519 # take no chances and rewrite it. 31520 # Note: m4 eats our [], so we need to use [ and ] instead. 31521 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31522 if test "x$has_forbidden_chars" != x; then 31523 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31524 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31525 fi 31526 31527 # Output is in $new_path 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 # remove trailing .exe if any 31539 new_path="${new_path/%.exe/}" 31540 31541 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31542 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31543 fi 31544 31545 else 31546 # We're on a unix platform. Hooray! :) 31547 # First separate the path from the arguments. This will split at the first 31548 # space. 31549 complete="$CPP" 31550 path="${complete%% *}" 31551 tmp="$complete EOL" 31552 arguments="${tmp#* }" 31553 31554 # Cannot rely on the command "which" here since it doesn't always work. 31555 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31556 if test -z "$is_absolute_path"; then 31557 # Path to executable is not absolute. Find it. 31558 IFS_save="$IFS" 31559 IFS=: 31560 for p in $PATH; do 31561 if test -f "$p/$path" && test -x "$p/$path"; then 31562 new_path="$p/$path" 31563 break 31564 fi 31565 done 31566 IFS="$IFS_save" 31567 else 31568 # This is an absolute path, we can use it without further modifications. 31569 new_path="$path" 31570 fi 31571 31572 if test "x$new_path" = x; then 31573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 31574 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 31575 has_space=`$ECHO "$complete" | $GREP " "` 31576 if test "x$has_space" != x; then 31577 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31578 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31579 fi 31580 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 31581 fi 31582 fi 31583 31584 # Now join together the path and the arguments once again 31585 if test "x$arguments" != xEOL; then 31586 new_complete="$new_path ${arguments% *}" 31587 else 31588 new_complete="$new_path" 31589 fi 31590 31591 if test "x$complete" != "x$new_complete"; then 31592 CPP="$new_complete" 31593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 31594 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 31595 fi 31596 fi 31597 31598 ac_ext=cpp 31599 ac_cpp='$CXXCPP $CPPFLAGS' 31600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 31604 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 31605 if test -z "$CXXCPP"; then 31606 if ${ac_cv_prog_CXXCPP+:} false; then : 31607 $as_echo_n "(cached) " >&6 31608 else 31609 # Double quotes because CXXCPP needs to be expanded 31610 for CXXCPP in "$CXX -E" "/lib/cpp" 31611 do 31612 ac_preproc_ok=false 31613 for ac_cxx_preproc_warn_flag in '' yes 31614 do 31615 # Use a header file that comes with gcc, so configuring glibc 31616 # with a fresh cross-compiler works. 31617 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31618 # <limits.h> exists even on freestanding compilers. 31619 # On the NeXT, cc -E runs the code through the compiler's parser, 31620 # not just through cpp. "Syntax error" is here to catch this case. 31621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31622 /* end confdefs.h. */ 31623 #ifdef __STDC__ 31624 # include <limits.h> 31625 #else 31626 # include <assert.h> 31627 #endif 31628 Syntax error 31629 _ACEOF 31630 if ac_fn_cxx_try_cpp "$LINENO"; then : 31631 31632 else 31633 # Broken: fails on valid input. 31634 continue 31635 fi 31636 rm -f conftest.err conftest.i conftest.$ac_ext 31637 31638 # OK, works on sane cases. Now check whether nonexistent headers 31639 # can be detected and how. 31640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31641 /* end confdefs.h. */ 31642 #include <ac_nonexistent.h> 31643 _ACEOF 31644 if ac_fn_cxx_try_cpp "$LINENO"; then : 31645 # Broken: success on invalid input. 31646 continue 31647 else 31648 # Passes both tests. 31649 ac_preproc_ok=: 31650 break 31651 fi 31652 rm -f conftest.err conftest.i conftest.$ac_ext 31653 31654 done 31655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31656 rm -f conftest.i conftest.err conftest.$ac_ext 31657 if $ac_preproc_ok; then : 31658 break 31659 fi 31660 31661 done 31662 ac_cv_prog_CXXCPP=$CXXCPP 31663 31664 fi 31665 CXXCPP=$ac_cv_prog_CXXCPP 31666 else 31667 ac_cv_prog_CXXCPP=$CXXCPP 31668 fi 31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31670 $as_echo "$CXXCPP" >&6; } 31671 ac_preproc_ok=false 31672 for ac_cxx_preproc_warn_flag in '' yes 31673 do 31674 # Use a header file that comes with gcc, so configuring glibc 31675 # with a fresh cross-compiler works. 31676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31677 # <limits.h> exists even on freestanding compilers. 31678 # On the NeXT, cc -E runs the code through the compiler's parser, 31679 # not just through cpp. "Syntax error" is here to catch this case. 31680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31681 /* end confdefs.h. */ 31682 #ifdef __STDC__ 31683 # include <limits.h> 31684 #else 31685 # include <assert.h> 31686 #endif 31687 Syntax error 31688 _ACEOF 31689 if ac_fn_cxx_try_cpp "$LINENO"; then : 31690 31691 else 31692 # Broken: fails on valid input. 31693 continue 31694 fi 31695 rm -f conftest.err conftest.i conftest.$ac_ext 31696 31697 # OK, works on sane cases. Now check whether nonexistent headers 31698 # can be detected and how. 31699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31700 /* end confdefs.h. */ 31701 #include <ac_nonexistent.h> 31702 _ACEOF 31703 if ac_fn_cxx_try_cpp "$LINENO"; then : 31704 # Broken: success on invalid input. 31705 continue 31706 else 31707 # Passes both tests. 31708 ac_preproc_ok=: 31709 break 31710 fi 31711 rm -f conftest.err conftest.i conftest.$ac_ext 31712 31713 done 31714 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31715 rm -f conftest.i conftest.err conftest.$ac_ext 31716 if $ac_preproc_ok; then : 31717 31718 else 31719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31721 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31722 See \`config.log' for more details" "$LINENO" 5; } 31723 fi 31724 31725 ac_ext=cpp 31726 ac_cpp='$CXXCPP $CPPFLAGS' 31727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31730 31731 31732 # Only process if variable expands to non-empty 31733 31734 if test "x$CXXCPP" != x; then 31735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31736 31737 # First separate the path from the arguments. This will split at the first 31738 # space. 31739 complete="$CXXCPP" 31740 path="${complete%% *}" 31741 tmp="$complete EOL" 31742 arguments="${tmp#* }" 31743 31744 # Input might be given as Windows format, start by converting to 31745 # unix format. 31746 new_path=`$CYGPATH -u "$path"` 31747 31748 # Now try to locate executable using which 31749 new_path=`$WHICH "$new_path" 2> /dev/null` 31750 # bat and cmd files are not always considered executable in cygwin causing which 31751 # to not find them 31752 if test "x$new_path" = x \ 31753 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31754 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31755 new_path=`$CYGPATH -u "$path"` 31756 fi 31757 if test "x$new_path" = x; then 31758 # Oops. Which didn't find the executable. 31759 # The splitting of arguments from the executable at a space might have been incorrect, 31760 # since paths with space are more likely in Windows. Give it another try with the whole 31761 # argument. 31762 path="$complete" 31763 arguments="EOL" 31764 new_path=`$CYGPATH -u "$path"` 31765 new_path=`$WHICH "$new_path" 2> /dev/null` 31766 # bat and cmd files are not always considered executable in cygwin causing which 31767 # to not find them 31768 if test "x$new_path" = x \ 31769 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31770 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31771 new_path=`$CYGPATH -u "$path"` 31772 fi 31773 if test "x$new_path" = x; then 31774 # It's still not found. Now this is an unrecoverable error. 31775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31776 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31777 has_space=`$ECHO "$complete" | $GREP " "` 31778 if test "x$has_space" != x; then 31779 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31780 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31781 fi 31782 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31783 fi 31784 fi 31785 31786 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31787 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31788 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31789 # "foo.exe" is OK but "foo" is an error. 31790 # 31791 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31792 # It is also a way to make sure we got the proper file name for the real test later on. 31793 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31794 if test "x$test_shortpath" = x; then 31795 # Short path failed, file does not exist as specified. 31796 # Try adding .exe or .cmd 31797 if test -f "${new_path}.exe"; then 31798 input_to_shortpath="${new_path}.exe" 31799 elif test -f "${new_path}.cmd"; then 31800 input_to_shortpath="${new_path}.cmd" 31801 else 31802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31803 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31804 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31805 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31806 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31807 fi 31808 else 31809 input_to_shortpath="$new_path" 31810 fi 31811 31812 # Call helper function which possibly converts this using DOS-style short mode. 31813 # If so, the updated path is stored in $new_path. 31814 new_path="$input_to_shortpath" 31815 31816 input_path="$input_to_shortpath" 31817 # Check if we need to convert this using DOS-style short mode. If the path 31818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31819 # take no chances and rewrite it. 31820 # Note: m4 eats our [], so we need to use [ and ] instead. 31821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31822 if test "x$has_forbidden_chars" != x; then 31823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31827 # Going to short mode and back again did indeed matter. Since short mode is 31828 # case insensitive, let's make it lowercase to improve readability. 31829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31830 # Now convert it back to Unix-stile (cygpath) 31831 input_path=`$CYGPATH -u "$shortmode_path"` 31832 new_path="$input_path" 31833 fi 31834 fi 31835 31836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31837 if test "x$test_cygdrive_prefix" = x; then 31838 # As a simple fix, exclude /usr/bin since it's not a real path. 31839 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31841 # a path prefixed by /cygdrive for fixpath to work. 31842 new_path="$CYGWIN_ROOT_PATH$input_path" 31843 fi 31844 fi 31845 31846 # remove trailing .exe if any 31847 new_path="${new_path/%.exe/}" 31848 31849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31850 31851 # First separate the path from the arguments. This will split at the first 31852 # space. 31853 complete="$CXXCPP" 31854 path="${complete%% *}" 31855 tmp="$complete EOL" 31856 arguments="${tmp#* }" 31857 31858 # Input might be given as Windows format, start by converting to 31859 # unix format. 31860 new_path="$path" 31861 31862 windows_path="$new_path" 31863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31864 unix_path=`$CYGPATH -u "$windows_path"` 31865 new_path="$unix_path" 31866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31868 new_path="$unix_path" 31869 fi 31870 31871 31872 # Now try to locate executable using which 31873 new_path=`$WHICH "$new_path" 2> /dev/null` 31874 31875 if test "x$new_path" = x; then 31876 # Oops. Which didn't find the executable. 31877 # The splitting of arguments from the executable at a space might have been incorrect, 31878 # since paths with space are more likely in Windows. Give it another try with the whole 31879 # argument. 31880 path="$complete" 31881 arguments="EOL" 31882 new_path="$path" 31883 31884 windows_path="$new_path" 31885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31886 unix_path=`$CYGPATH -u "$windows_path"` 31887 new_path="$unix_path" 31888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31890 new_path="$unix_path" 31891 fi 31892 31893 31894 new_path=`$WHICH "$new_path" 2> /dev/null` 31895 # bat and cmd files are not always considered executable in MSYS causing which 31896 # to not find them 31897 if test "x$new_path" = x \ 31898 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31899 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31900 new_path="$path" 31901 31902 windows_path="$new_path" 31903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31904 unix_path=`$CYGPATH -u "$windows_path"` 31905 new_path="$unix_path" 31906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31908 new_path="$unix_path" 31909 fi 31910 31911 fi 31912 31913 if test "x$new_path" = x; then 31914 # It's still not found. Now this is an unrecoverable error. 31915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31916 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31917 has_space=`$ECHO "$complete" | $GREP " "` 31918 if test "x$has_space" != x; then 31919 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31920 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31921 fi 31922 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31923 fi 31924 fi 31925 31926 # Now new_path has a complete unix path to the binary 31927 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31928 # Keep paths in /bin as-is, but remove trailing .exe if any 31929 new_path="${new_path/%.exe/}" 31930 # Do not save /bin paths to all_fixpath_prefixes! 31931 else 31932 # Not in mixed or Windows style, start by that. 31933 new_path=`cmd //c echo $new_path` 31934 31935 input_path="$new_path" 31936 # Check if we need to convert this using DOS-style short mode. If the path 31937 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31938 # take no chances and rewrite it. 31939 # Note: m4 eats our [], so we need to use [ and ] instead. 31940 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31941 if test "x$has_forbidden_chars" != x; then 31942 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31943 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31944 fi 31945 31946 # Output is in $new_path 31947 31948 windows_path="$new_path" 31949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31950 unix_path=`$CYGPATH -u "$windows_path"` 31951 new_path="$unix_path" 31952 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31953 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31954 new_path="$unix_path" 31955 fi 31956 31957 # remove trailing .exe if any 31958 new_path="${new_path/%.exe/}" 31959 31960 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31961 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31962 fi 31963 31964 else 31965 # We're on a unix platform. Hooray! :) 31966 # First separate the path from the arguments. This will split at the first 31967 # space. 31968 complete="$CXXCPP" 31969 path="${complete%% *}" 31970 tmp="$complete EOL" 31971 arguments="${tmp#* }" 31972 31973 # Cannot rely on the command "which" here since it doesn't always work. 31974 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31975 if test -z "$is_absolute_path"; then 31976 # Path to executable is not absolute. Find it. 31977 IFS_save="$IFS" 31978 IFS=: 31979 for p in $PATH; do 31980 if test -f "$p/$path" && test -x "$p/$path"; then 31981 new_path="$p/$path" 31982 break 31983 fi 31984 done 31985 IFS="$IFS_save" 31986 else 31987 # This is an absolute path, we can use it without further modifications. 31988 new_path="$path" 31989 fi 31990 31991 if test "x$new_path" = x; then 31992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31993 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31994 has_space=`$ECHO "$complete" | $GREP " "` 31995 if test "x$has_space" != x; then 31996 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31997 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31998 fi 31999 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 32000 fi 32001 fi 32002 32003 # Now join together the path and the arguments once again 32004 if test "x$arguments" != xEOL; then 32005 new_complete="$new_path ${arguments% *}" 32006 else 32007 new_complete="$new_path" 32008 fi 32009 32010 if test "x$complete" != "x$new_complete"; then 32011 CXXCPP="$new_complete" 32012 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 32013 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 32014 fi 32015 fi 32016 32017 32018 # 32019 # Setup the linker (LD) 32020 # 32021 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32022 # In the Microsoft toolchain we have a separate LD command "link". 32023 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 32024 # a cygwin program for something completely different. 32025 # Extract the first word of "link", so it can be a program name with args. 32026 set dummy link; ac_word=$2 32027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32028 $as_echo_n "checking for $ac_word... " >&6; } 32029 if ${ac_cv_prog_LD+:} false; then : 32030 $as_echo_n "(cached) " >&6 32031 else 32032 if test -n "$LD"; then 32033 ac_cv_prog_LD="$LD" # Let the user override the test. 32034 else 32035 ac_prog_rejected=no 32036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32037 for as_dir in $PATH 32038 do 32039 IFS=$as_save_IFS 32040 test -z "$as_dir" && as_dir=. 32041 for ac_exec_ext in '' $ac_executable_extensions; do 32042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32043 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 32044 ac_prog_rejected=yes 32045 continue 32046 fi 32047 ac_cv_prog_LD="link" 32048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32049 break 2 32050 fi 32051 done 32052 done 32053 IFS=$as_save_IFS 32054 32055 if test $ac_prog_rejected = yes; then 32056 # We found a bogon in the path, so make sure we never use it. 32057 set dummy $ac_cv_prog_LD 32058 shift 32059 if test $# != 0; then 32060 # We chose a different compiler from the bogus one. 32061 # However, it has the same basename, so the bogon will be chosen 32062 # first if we set LD to just the basename; use the full file name. 32063 shift 32064 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 32065 fi 32066 fi 32067 fi 32068 fi 32069 LD=$ac_cv_prog_LD 32070 if test -n "$LD"; then 32071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 32072 $as_echo "$LD" >&6; } 32073 else 32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32075 $as_echo "no" >&6; } 32076 fi 32077 32078 32079 32080 # Only process if variable expands to non-empty 32081 32082 if test "x$LD" != x; then 32083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32084 32085 # First separate the path from the arguments. This will split at the first 32086 # space. 32087 complete="$LD" 32088 path="${complete%% *}" 32089 tmp="$complete EOL" 32090 arguments="${tmp#* }" 32091 32092 # Input might be given as Windows format, start by converting to 32093 # unix format. 32094 new_path=`$CYGPATH -u "$path"` 32095 32096 # Now try to locate executable using which 32097 new_path=`$WHICH "$new_path" 2> /dev/null` 32098 # bat and cmd files are not always considered executable in cygwin causing which 32099 # to not find them 32100 if test "x$new_path" = x \ 32101 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32102 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32103 new_path=`$CYGPATH -u "$path"` 32104 fi 32105 if test "x$new_path" = x; then 32106 # Oops. Which didn't find the executable. 32107 # The splitting of arguments from the executable at a space might have been incorrect, 32108 # since paths with space are more likely in Windows. Give it another try with the whole 32109 # argument. 32110 path="$complete" 32111 arguments="EOL" 32112 new_path=`$CYGPATH -u "$path"` 32113 new_path=`$WHICH "$new_path" 2> /dev/null` 32114 # bat and cmd files are not always considered executable in cygwin causing which 32115 # to not find them 32116 if test "x$new_path" = x \ 32117 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32118 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32119 new_path=`$CYGPATH -u "$path"` 32120 fi 32121 if test "x$new_path" = x; then 32122 # It's still not found. Now this is an unrecoverable error. 32123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32124 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32125 has_space=`$ECHO "$complete" | $GREP " "` 32126 if test "x$has_space" != x; then 32127 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32128 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32129 fi 32130 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32131 fi 32132 fi 32133 32134 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32135 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32136 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32137 # "foo.exe" is OK but "foo" is an error. 32138 # 32139 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32140 # It is also a way to make sure we got the proper file name for the real test later on. 32141 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32142 if test "x$test_shortpath" = x; then 32143 # Short path failed, file does not exist as specified. 32144 # Try adding .exe or .cmd 32145 if test -f "${new_path}.exe"; then 32146 input_to_shortpath="${new_path}.exe" 32147 elif test -f "${new_path}.cmd"; then 32148 input_to_shortpath="${new_path}.cmd" 32149 else 32150 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 32151 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 32152 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32153 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32154 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32155 fi 32156 else 32157 input_to_shortpath="$new_path" 32158 fi 32159 32160 # Call helper function which possibly converts this using DOS-style short mode. 32161 # If so, the updated path is stored in $new_path. 32162 new_path="$input_to_shortpath" 32163 32164 input_path="$input_to_shortpath" 32165 # Check if we need to convert this using DOS-style short mode. If the path 32166 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32167 # take no chances and rewrite it. 32168 # Note: m4 eats our [], so we need to use [ and ] instead. 32169 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32170 if test "x$has_forbidden_chars" != x; then 32171 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32172 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32173 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32174 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32175 # Going to short mode and back again did indeed matter. Since short mode is 32176 # case insensitive, let's make it lowercase to improve readability. 32177 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32178 # Now convert it back to Unix-stile (cygpath) 32179 input_path=`$CYGPATH -u "$shortmode_path"` 32180 new_path="$input_path" 32181 fi 32182 fi 32183 32184 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32185 if test "x$test_cygdrive_prefix" = x; then 32186 # As a simple fix, exclude /usr/bin since it's not a real path. 32187 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32188 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32189 # a path prefixed by /cygdrive for fixpath to work. 32190 new_path="$CYGWIN_ROOT_PATH$input_path" 32191 fi 32192 fi 32193 32194 # remove trailing .exe if any 32195 new_path="${new_path/%.exe/}" 32196 32197 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32198 32199 # First separate the path from the arguments. This will split at the first 32200 # space. 32201 complete="$LD" 32202 path="${complete%% *}" 32203 tmp="$complete EOL" 32204 arguments="${tmp#* }" 32205 32206 # Input might be given as Windows format, start by converting to 32207 # unix format. 32208 new_path="$path" 32209 32210 windows_path="$new_path" 32211 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32212 unix_path=`$CYGPATH -u "$windows_path"` 32213 new_path="$unix_path" 32214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32215 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32216 new_path="$unix_path" 32217 fi 32218 32219 32220 # Now try to locate executable using which 32221 new_path=`$WHICH "$new_path" 2> /dev/null` 32222 32223 if test "x$new_path" = x; then 32224 # Oops. Which didn't find the executable. 32225 # The splitting of arguments from the executable at a space might have been incorrect, 32226 # since paths with space are more likely in Windows. Give it another try with the whole 32227 # argument. 32228 path="$complete" 32229 arguments="EOL" 32230 new_path="$path" 32231 32232 windows_path="$new_path" 32233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32234 unix_path=`$CYGPATH -u "$windows_path"` 32235 new_path="$unix_path" 32236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32237 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32238 new_path="$unix_path" 32239 fi 32240 32241 32242 new_path=`$WHICH "$new_path" 2> /dev/null` 32243 # bat and cmd files are not always considered executable in MSYS causing which 32244 # to not find them 32245 if test "x$new_path" = x \ 32246 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32247 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32248 new_path="$path" 32249 32250 windows_path="$new_path" 32251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32252 unix_path=`$CYGPATH -u "$windows_path"` 32253 new_path="$unix_path" 32254 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32255 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32256 new_path="$unix_path" 32257 fi 32258 32259 fi 32260 32261 if test "x$new_path" = x; then 32262 # It's still not found. Now this is an unrecoverable error. 32263 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32264 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32265 has_space=`$ECHO "$complete" | $GREP " "` 32266 if test "x$has_space" != x; then 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32268 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32269 fi 32270 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32271 fi 32272 fi 32273 32274 # Now new_path has a complete unix path to the binary 32275 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32276 # Keep paths in /bin as-is, but remove trailing .exe if any 32277 new_path="${new_path/%.exe/}" 32278 # Do not save /bin paths to all_fixpath_prefixes! 32279 else 32280 # Not in mixed or Windows style, start by that. 32281 new_path=`cmd //c echo $new_path` 32282 32283 input_path="$new_path" 32284 # Check if we need to convert this using DOS-style short mode. If the path 32285 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32286 # take no chances and rewrite it. 32287 # Note: m4 eats our [], so we need to use [ and ] instead. 32288 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32289 if test "x$has_forbidden_chars" != x; then 32290 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32291 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32292 fi 32293 32294 # Output is in $new_path 32295 32296 windows_path="$new_path" 32297 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32298 unix_path=`$CYGPATH -u "$windows_path"` 32299 new_path="$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 new_path="$unix_path" 32303 fi 32304 32305 # remove trailing .exe if any 32306 new_path="${new_path/%.exe/}" 32307 32308 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32309 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32310 fi 32311 32312 else 32313 # We're on a unix platform. Hooray! :) 32314 # First separate the path from the arguments. This will split at the first 32315 # space. 32316 complete="$LD" 32317 path="${complete%% *}" 32318 tmp="$complete EOL" 32319 arguments="${tmp#* }" 32320 32321 # Cannot rely on the command "which" here since it doesn't always work. 32322 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32323 if test -z "$is_absolute_path"; then 32324 # Path to executable is not absolute. Find it. 32325 IFS_save="$IFS" 32326 IFS=: 32327 for p in $PATH; do 32328 if test -f "$p/$path" && test -x "$p/$path"; then 32329 new_path="$p/$path" 32330 break 32331 fi 32332 done 32333 IFS="$IFS_save" 32334 else 32335 # This is an absolute path, we can use it without further modifications. 32336 new_path="$path" 32337 fi 32338 32339 if test "x$new_path" = x; then 32340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 32341 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 32342 has_space=`$ECHO "$complete" | $GREP " "` 32343 if test "x$has_space" != x; then 32344 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32345 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32346 fi 32347 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 32348 fi 32349 fi 32350 32351 # Now join together the path and the arguments once again 32352 if test "x$arguments" != xEOL; then 32353 new_complete="$new_path ${arguments% *}" 32354 else 32355 new_complete="$new_path" 32356 fi 32357 32358 if test "x$complete" != "x$new_complete"; then 32359 LD="$new_complete" 32360 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 32361 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 32362 fi 32363 fi 32364 32365 # Verify that we indeed succeeded with this trick. 32366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 32367 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 32368 "$LD" --version > /dev/null 32369 if test $? -eq 0 ; then 32370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32371 $as_echo "no" >&6; } 32372 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 32373 else 32374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 32375 $as_echo "yes" >&6; } 32376 fi 32377 LDCXX="$LD" 32378 else 32379 # All other toolchains use the compiler to link. 32380 LD="$CC" 32381 LDCXX="$CXX" 32382 fi 32383 32384 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 32385 32386 32387 # 32388 # Setup the assembler (AS) 32389 # 32390 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 32391 # FIXME: should this really be solaris, or solstudio? 32392 32393 32394 # Publish this variable in the help. 32395 32396 32397 if test "x$AS" = x; then 32398 # The variable is not set by user, try to locate tool using the code snippet 32399 for ac_prog in as 32400 do 32401 # Extract the first word of "$ac_prog", so it can be a program name with args. 32402 set dummy $ac_prog; ac_word=$2 32403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32404 $as_echo_n "checking for $ac_word... " >&6; } 32405 if ${ac_cv_path_AS+:} false; then : 32406 $as_echo_n "(cached) " >&6 32407 else 32408 case $AS in 32409 [\\/]* | ?:[\\/]*) 32410 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32411 ;; 32412 *) 32413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32414 for as_dir in $PATH 32415 do 32416 IFS=$as_save_IFS 32417 test -z "$as_dir" && as_dir=. 32418 for ac_exec_ext in '' $ac_executable_extensions; do 32419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32420 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32422 break 2 32423 fi 32424 done 32425 done 32426 IFS=$as_save_IFS 32427 32428 ;; 32429 esac 32430 fi 32431 AS=$ac_cv_path_AS 32432 if test -n "$AS"; then 32433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32434 $as_echo "$AS" >&6; } 32435 else 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32437 $as_echo "no" >&6; } 32438 fi 32439 32440 32441 test -n "$AS" && break 32442 done 32443 32444 else 32445 # The variable is set, but is it from the command line or the environment? 32446 32447 # Try to remove the string !AS! from our list. 32448 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 32449 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32450 # If it failed, the variable was not from the command line. Ignore it, 32451 # but warn the user (except for BASH, which is always set by the calling BASH). 32452 if test "xAS" != xBASH; then 32453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 32454 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 32455 fi 32456 # Try to locate tool using the code snippet 32457 for ac_prog in as 32458 do 32459 # Extract the first word of "$ac_prog", so it can be a program name with args. 32460 set dummy $ac_prog; ac_word=$2 32461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32462 $as_echo_n "checking for $ac_word... " >&6; } 32463 if ${ac_cv_path_AS+:} false; then : 32464 $as_echo_n "(cached) " >&6 32465 else 32466 case $AS in 32467 [\\/]* | ?:[\\/]*) 32468 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32469 ;; 32470 *) 32471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32472 for as_dir in $PATH 32473 do 32474 IFS=$as_save_IFS 32475 test -z "$as_dir" && as_dir=. 32476 for ac_exec_ext in '' $ac_executable_extensions; do 32477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32478 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32480 break 2 32481 fi 32482 done 32483 done 32484 IFS=$as_save_IFS 32485 32486 ;; 32487 esac 32488 fi 32489 AS=$ac_cv_path_AS 32490 if test -n "$AS"; then 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32492 $as_echo "$AS" >&6; } 32493 else 32494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32495 $as_echo "no" >&6; } 32496 fi 32497 32498 32499 test -n "$AS" && break 32500 done 32501 32502 else 32503 # If it succeeded, then it was overridden by the user. We will use it 32504 # for the tool. 32505 32506 # First remove it from the list of overridden variables, so we can test 32507 # for unknown variables in the end. 32508 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32509 32510 # Check if the provided tool contains a complete path. 32511 tool_specified="$AS" 32512 tool_basename="${tool_specified##*/}" 32513 if test "x$tool_basename" = "x$tool_specified"; then 32514 # A command without a complete path is provided, search $PATH. 32515 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 32516 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 32517 # Extract the first word of "$tool_basename", so it can be a program name with args. 32518 set dummy $tool_basename; ac_word=$2 32519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32520 $as_echo_n "checking for $ac_word... " >&6; } 32521 if ${ac_cv_path_AS+:} false; then : 32522 $as_echo_n "(cached) " >&6 32523 else 32524 case $AS in 32525 [\\/]* | ?:[\\/]*) 32526 ac_cv_path_AS="$AS" # Let the user override the test with a path. 32527 ;; 32528 *) 32529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32530 for as_dir in $PATH 32531 do 32532 IFS=$as_save_IFS 32533 test -z "$as_dir" && as_dir=. 32534 for ac_exec_ext in '' $ac_executable_extensions; do 32535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32536 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 32537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32538 break 2 32539 fi 32540 done 32541 done 32542 IFS=$as_save_IFS 32543 32544 ;; 32545 esac 32546 fi 32547 AS=$ac_cv_path_AS 32548 if test -n "$AS"; then 32549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 32550 $as_echo "$AS" >&6; } 32551 else 32552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32553 $as_echo "no" >&6; } 32554 fi 32555 32556 32557 if test "x$AS" = x; then 32558 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32559 fi 32560 else 32561 # Otherwise we believe it is a complete path. Use it as it is. 32562 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 32563 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 32564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 32565 $as_echo_n "checking for AS... " >&6; } 32566 if test ! -x "$tool_specified"; then 32567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32568 $as_echo "not found" >&6; } 32569 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 32570 fi 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32572 $as_echo "$tool_specified" >&6; } 32573 fi 32574 fi 32575 fi 32576 32577 32578 32579 # Only process if variable expands to non-empty 32580 32581 if test "x$AS" != x; then 32582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32583 32584 # First separate the path from the arguments. This will split at the first 32585 # space. 32586 complete="$AS" 32587 path="${complete%% *}" 32588 tmp="$complete EOL" 32589 arguments="${tmp#* }" 32590 32591 # Input might be given as Windows format, start by converting to 32592 # unix format. 32593 new_path=`$CYGPATH -u "$path"` 32594 32595 # Now try to locate executable using which 32596 new_path=`$WHICH "$new_path" 2> /dev/null` 32597 # bat and cmd files are not always considered executable in cygwin causing which 32598 # to not find them 32599 if test "x$new_path" = x \ 32600 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32601 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32602 new_path=`$CYGPATH -u "$path"` 32603 fi 32604 if test "x$new_path" = x; then 32605 # Oops. Which didn't find the executable. 32606 # The splitting of arguments from the executable at a space might have been incorrect, 32607 # since paths with space are more likely in Windows. Give it another try with the whole 32608 # argument. 32609 path="$complete" 32610 arguments="EOL" 32611 new_path=`$CYGPATH -u "$path"` 32612 new_path=`$WHICH "$new_path" 2> /dev/null` 32613 # bat and cmd files are not always considered executable in cygwin causing which 32614 # to not find them 32615 if test "x$new_path" = x \ 32616 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32617 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32618 new_path=`$CYGPATH -u "$path"` 32619 fi 32620 if test "x$new_path" = x; then 32621 # It's still not found. Now this is an unrecoverable error. 32622 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32623 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32624 has_space=`$ECHO "$complete" | $GREP " "` 32625 if test "x$has_space" != x; then 32626 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32627 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32628 fi 32629 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32630 fi 32631 fi 32632 32633 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32634 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32635 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32636 # "foo.exe" is OK but "foo" is an error. 32637 # 32638 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32639 # It is also a way to make sure we got the proper file name for the real test later on. 32640 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32641 if test "x$test_shortpath" = x; then 32642 # Short path failed, file does not exist as specified. 32643 # Try adding .exe or .cmd 32644 if test -f "${new_path}.exe"; then 32645 input_to_shortpath="${new_path}.exe" 32646 elif test -f "${new_path}.cmd"; then 32647 input_to_shortpath="${new_path}.cmd" 32648 else 32649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 32650 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 32651 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32652 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32653 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32654 fi 32655 else 32656 input_to_shortpath="$new_path" 32657 fi 32658 32659 # Call helper function which possibly converts this using DOS-style short mode. 32660 # If so, the updated path is stored in $new_path. 32661 new_path="$input_to_shortpath" 32662 32663 input_path="$input_to_shortpath" 32664 # Check if we need to convert this using DOS-style short mode. If the path 32665 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32666 # take no chances and rewrite it. 32667 # Note: m4 eats our [], so we need to use [ and ] instead. 32668 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32669 if test "x$has_forbidden_chars" != x; then 32670 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32671 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32672 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32673 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32674 # Going to short mode and back again did indeed matter. Since short mode is 32675 # case insensitive, let's make it lowercase to improve readability. 32676 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32677 # Now convert it back to Unix-stile (cygpath) 32678 input_path=`$CYGPATH -u "$shortmode_path"` 32679 new_path="$input_path" 32680 fi 32681 fi 32682 32683 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32684 if test "x$test_cygdrive_prefix" = x; then 32685 # As a simple fix, exclude /usr/bin since it's not a real path. 32686 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32687 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32688 # a path prefixed by /cygdrive for fixpath to work. 32689 new_path="$CYGWIN_ROOT_PATH$input_path" 32690 fi 32691 fi 32692 32693 # remove trailing .exe if any 32694 new_path="${new_path/%.exe/}" 32695 32696 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32697 32698 # First separate the path from the arguments. This will split at the first 32699 # space. 32700 complete="$AS" 32701 path="${complete%% *}" 32702 tmp="$complete EOL" 32703 arguments="${tmp#* }" 32704 32705 # Input might be given as Windows format, start by converting to 32706 # unix format. 32707 new_path="$path" 32708 32709 windows_path="$new_path" 32710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32711 unix_path=`$CYGPATH -u "$windows_path"` 32712 new_path="$unix_path" 32713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32715 new_path="$unix_path" 32716 fi 32717 32718 32719 # Now try to locate executable using which 32720 new_path=`$WHICH "$new_path" 2> /dev/null` 32721 32722 if test "x$new_path" = x; then 32723 # Oops. Which didn't find the executable. 32724 # The splitting of arguments from the executable at a space might have been incorrect, 32725 # since paths with space are more likely in Windows. Give it another try with the whole 32726 # argument. 32727 path="$complete" 32728 arguments="EOL" 32729 new_path="$path" 32730 32731 windows_path="$new_path" 32732 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32733 unix_path=`$CYGPATH -u "$windows_path"` 32734 new_path="$unix_path" 32735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32736 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32737 new_path="$unix_path" 32738 fi 32739 32740 32741 new_path=`$WHICH "$new_path" 2> /dev/null` 32742 # bat and cmd files are not always considered executable in MSYS causing which 32743 # to not find them 32744 if test "x$new_path" = x \ 32745 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32746 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32747 new_path="$path" 32748 32749 windows_path="$new_path" 32750 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32751 unix_path=`$CYGPATH -u "$windows_path"` 32752 new_path="$unix_path" 32753 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32754 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32755 new_path="$unix_path" 32756 fi 32757 32758 fi 32759 32760 if test "x$new_path" = x; then 32761 # It's still not found. Now this is an unrecoverable error. 32762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32763 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32764 has_space=`$ECHO "$complete" | $GREP " "` 32765 if test "x$has_space" != x; then 32766 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32767 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32768 fi 32769 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32770 fi 32771 fi 32772 32773 # Now new_path has a complete unix path to the binary 32774 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32775 # Keep paths in /bin as-is, but remove trailing .exe if any 32776 new_path="${new_path/%.exe/}" 32777 # Do not save /bin paths to all_fixpath_prefixes! 32778 else 32779 # Not in mixed or Windows style, start by that. 32780 new_path=`cmd //c echo $new_path` 32781 32782 input_path="$new_path" 32783 # Check if we need to convert this using DOS-style short mode. If the path 32784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32785 # take no chances and rewrite it. 32786 # Note: m4 eats our [], so we need to use [ and ] instead. 32787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32788 if test "x$has_forbidden_chars" != x; then 32789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32790 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32791 fi 32792 32793 # Output is in $new_path 32794 32795 windows_path="$new_path" 32796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32797 unix_path=`$CYGPATH -u "$windows_path"` 32798 new_path="$unix_path" 32799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32800 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32801 new_path="$unix_path" 32802 fi 32803 32804 # remove trailing .exe if any 32805 new_path="${new_path/%.exe/}" 32806 32807 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32808 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32809 fi 32810 32811 else 32812 # We're on a unix platform. Hooray! :) 32813 # First separate the path from the arguments. This will split at the first 32814 # space. 32815 complete="$AS" 32816 path="${complete%% *}" 32817 tmp="$complete EOL" 32818 arguments="${tmp#* }" 32819 32820 # Cannot rely on the command "which" here since it doesn't always work. 32821 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32822 if test -z "$is_absolute_path"; then 32823 # Path to executable is not absolute. Find it. 32824 IFS_save="$IFS" 32825 IFS=: 32826 for p in $PATH; do 32827 if test -f "$p/$path" && test -x "$p/$path"; then 32828 new_path="$p/$path" 32829 break 32830 fi 32831 done 32832 IFS="$IFS_save" 32833 else 32834 # This is an absolute path, we can use it without further modifications. 32835 new_path="$path" 32836 fi 32837 32838 if test "x$new_path" = x; then 32839 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32840 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32841 has_space=`$ECHO "$complete" | $GREP " "` 32842 if test "x$has_space" != x; then 32843 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32844 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32845 fi 32846 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32847 fi 32848 fi 32849 32850 # Now join together the path and the arguments once again 32851 if test "x$arguments" != xEOL; then 32852 new_complete="$new_path ${arguments% *}" 32853 else 32854 new_complete="$new_path" 32855 fi 32856 32857 if test "x$complete" != "x$new_complete"; then 32858 AS="$new_complete" 32859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32860 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32861 fi 32862 fi 32863 32864 else 32865 # FIXME: is this correct for microsoft? 32866 AS="$CC -c" 32867 fi 32868 32869 32870 # 32871 # Setup the archiver (AR) 32872 # 32873 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32874 # The corresponding ar tool is lib.exe (used to create static libraries) 32875 # Extract the first word of "lib", so it can be a program name with args. 32876 set dummy lib; ac_word=$2 32877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32878 $as_echo_n "checking for $ac_word... " >&6; } 32879 if ${ac_cv_prog_AR+:} false; then : 32880 $as_echo_n "(cached) " >&6 32881 else 32882 if test -n "$AR"; then 32883 ac_cv_prog_AR="$AR" # Let the user override the test. 32884 else 32885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32886 for as_dir in $PATH 32887 do 32888 IFS=$as_save_IFS 32889 test -z "$as_dir" && as_dir=. 32890 for ac_exec_ext in '' $ac_executable_extensions; do 32891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32892 ac_cv_prog_AR="lib" 32893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32894 break 2 32895 fi 32896 done 32897 done 32898 IFS=$as_save_IFS 32899 32900 fi 32901 fi 32902 AR=$ac_cv_prog_AR 32903 if test -n "$AR"; then 32904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32905 $as_echo "$AR" >&6; } 32906 else 32907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32908 $as_echo "no" >&6; } 32909 fi 32910 32911 32912 else 32913 32914 32915 # Publish this variable in the help. 32916 32917 32918 if test "x$AR" = x; then 32919 # The variable is not set by user, try to locate tool using the code snippet 32920 if test -n "$ac_tool_prefix"; then 32921 for ac_prog in ar 32922 do 32923 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32924 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32926 $as_echo_n "checking for $ac_word... " >&6; } 32927 if ${ac_cv_prog_AR+:} false; then : 32928 $as_echo_n "(cached) " >&6 32929 else 32930 if test -n "$AR"; then 32931 ac_cv_prog_AR="$AR" # Let the user override the test. 32932 else 32933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32934 for as_dir in $PATH 32935 do 32936 IFS=$as_save_IFS 32937 test -z "$as_dir" && as_dir=. 32938 for ac_exec_ext in '' $ac_executable_extensions; do 32939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32940 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32942 break 2 32943 fi 32944 done 32945 done 32946 IFS=$as_save_IFS 32947 32948 fi 32949 fi 32950 AR=$ac_cv_prog_AR 32951 if test -n "$AR"; then 32952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32953 $as_echo "$AR" >&6; } 32954 else 32955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32956 $as_echo "no" >&6; } 32957 fi 32958 32959 32960 test -n "$AR" && break 32961 done 32962 fi 32963 if test -z "$AR"; then 32964 ac_ct_AR=$AR 32965 for ac_prog in ar 32966 do 32967 # Extract the first word of "$ac_prog", so it can be a program name with args. 32968 set dummy $ac_prog; ac_word=$2 32969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32970 $as_echo_n "checking for $ac_word... " >&6; } 32971 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32972 $as_echo_n "(cached) " >&6 32973 else 32974 if test -n "$ac_ct_AR"; then 32975 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32976 else 32977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32978 for as_dir in $PATH 32979 do 32980 IFS=$as_save_IFS 32981 test -z "$as_dir" && as_dir=. 32982 for ac_exec_ext in '' $ac_executable_extensions; do 32983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32984 ac_cv_prog_ac_ct_AR="$ac_prog" 32985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32986 break 2 32987 fi 32988 done 32989 done 32990 IFS=$as_save_IFS 32991 32992 fi 32993 fi 32994 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32995 if test -n "$ac_ct_AR"; then 32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32997 $as_echo "$ac_ct_AR" >&6; } 32998 else 32999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33000 $as_echo "no" >&6; } 33001 fi 33002 33003 33004 test -n "$ac_ct_AR" && break 33005 done 33006 33007 if test "x$ac_ct_AR" = x; then 33008 AR="" 33009 else 33010 case $cross_compiling:$ac_tool_warned in 33011 yes:) 33012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33014 ac_tool_warned=yes ;; 33015 esac 33016 AR=$ac_ct_AR 33017 fi 33018 fi 33019 33020 else 33021 # The variable is set, but is it from the command line or the environment? 33022 33023 # Try to remove the string !AR! from our list. 33024 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 33025 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33026 # If it failed, the variable was not from the command line. Ignore it, 33027 # but warn the user (except for BASH, which is always set by the calling BASH). 33028 if test "xAR" != xBASH; then 33029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 33030 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 33031 fi 33032 # Try to locate tool using the code snippet 33033 if test -n "$ac_tool_prefix"; then 33034 for ac_prog in ar 33035 do 33036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 33037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 33038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33039 $as_echo_n "checking for $ac_word... " >&6; } 33040 if ${ac_cv_prog_AR+:} false; then : 33041 $as_echo_n "(cached) " >&6 33042 else 33043 if test -n "$AR"; then 33044 ac_cv_prog_AR="$AR" # Let the user override the test. 33045 else 33046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33047 for as_dir in $PATH 33048 do 33049 IFS=$as_save_IFS 33050 test -z "$as_dir" && as_dir=. 33051 for ac_exec_ext in '' $ac_executable_extensions; do 33052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33053 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 33054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33055 break 2 33056 fi 33057 done 33058 done 33059 IFS=$as_save_IFS 33060 33061 fi 33062 fi 33063 AR=$ac_cv_prog_AR 33064 if test -n "$AR"; then 33065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33066 $as_echo "$AR" >&6; } 33067 else 33068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33069 $as_echo "no" >&6; } 33070 fi 33071 33072 33073 test -n "$AR" && break 33074 done 33075 fi 33076 if test -z "$AR"; then 33077 ac_ct_AR=$AR 33078 for ac_prog in ar 33079 do 33080 # Extract the first word of "$ac_prog", so it can be a program name with args. 33081 set dummy $ac_prog; ac_word=$2 33082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33083 $as_echo_n "checking for $ac_word... " >&6; } 33084 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33085 $as_echo_n "(cached) " >&6 33086 else 33087 if test -n "$ac_ct_AR"; then 33088 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33089 else 33090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33091 for as_dir in $PATH 33092 do 33093 IFS=$as_save_IFS 33094 test -z "$as_dir" && as_dir=. 33095 for ac_exec_ext in '' $ac_executable_extensions; do 33096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33097 ac_cv_prog_ac_ct_AR="$ac_prog" 33098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33099 break 2 33100 fi 33101 done 33102 done 33103 IFS=$as_save_IFS 33104 33105 fi 33106 fi 33107 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33108 if test -n "$ac_ct_AR"; then 33109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33110 $as_echo "$ac_ct_AR" >&6; } 33111 else 33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33113 $as_echo "no" >&6; } 33114 fi 33115 33116 33117 test -n "$ac_ct_AR" && break 33118 done 33119 33120 if test "x$ac_ct_AR" = x; then 33121 AR="" 33122 else 33123 case $cross_compiling:$ac_tool_warned in 33124 yes:) 33125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33127 ac_tool_warned=yes ;; 33128 esac 33129 AR=$ac_ct_AR 33130 fi 33131 fi 33132 33133 else 33134 # If it succeeded, then it was overridden by the user. We will use it 33135 # for the tool. 33136 33137 # First remove it from the list of overridden variables, so we can test 33138 # for unknown variables in the end. 33139 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33140 33141 # Check if the provided tool contains a complete path. 33142 tool_specified="$AR" 33143 tool_basename="${tool_specified##*/}" 33144 if test "x$tool_basename" = "x$tool_specified"; then 33145 # A command without a complete path is provided, search $PATH. 33146 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 33147 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 33148 # Extract the first word of "$tool_basename", so it can be a program name with args. 33149 set dummy $tool_basename; ac_word=$2 33150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33151 $as_echo_n "checking for $ac_word... " >&6; } 33152 if ${ac_cv_path_AR+:} false; then : 33153 $as_echo_n "(cached) " >&6 33154 else 33155 case $AR in 33156 [\\/]* | ?:[\\/]*) 33157 ac_cv_path_AR="$AR" # Let the user override the test with a path. 33158 ;; 33159 *) 33160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33161 for as_dir in $PATH 33162 do 33163 IFS=$as_save_IFS 33164 test -z "$as_dir" && as_dir=. 33165 for ac_exec_ext in '' $ac_executable_extensions; do 33166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33167 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 33168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33169 break 2 33170 fi 33171 done 33172 done 33173 IFS=$as_save_IFS 33174 33175 ;; 33176 esac 33177 fi 33178 AR=$ac_cv_path_AR 33179 if test -n "$AR"; then 33180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33181 $as_echo "$AR" >&6; } 33182 else 33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33184 $as_echo "no" >&6; } 33185 fi 33186 33187 33188 if test "x$AR" = x; then 33189 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33190 fi 33191 else 33192 # Otherwise we believe it is a complete path. Use it as it is. 33193 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 33194 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 33195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 33196 $as_echo_n "checking for AR... " >&6; } 33197 if test ! -x "$tool_specified"; then 33198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33199 $as_echo "not found" >&6; } 33200 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 33201 fi 33202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33203 $as_echo "$tool_specified" >&6; } 33204 fi 33205 fi 33206 fi 33207 33208 33209 fi 33210 33211 # Only process if variable expands to non-empty 33212 33213 if test "x$AR" != x; then 33214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33215 33216 # First separate the path from the arguments. This will split at the first 33217 # space. 33218 complete="$AR" 33219 path="${complete%% *}" 33220 tmp="$complete EOL" 33221 arguments="${tmp#* }" 33222 33223 # Input might be given as Windows format, start by converting to 33224 # unix format. 33225 new_path=`$CYGPATH -u "$path"` 33226 33227 # Now try to locate executable using which 33228 new_path=`$WHICH "$new_path" 2> /dev/null` 33229 # bat and cmd files are not always considered executable in cygwin causing which 33230 # to not find them 33231 if test "x$new_path" = x \ 33232 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33233 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33234 new_path=`$CYGPATH -u "$path"` 33235 fi 33236 if test "x$new_path" = x; then 33237 # Oops. Which didn't find the executable. 33238 # The splitting of arguments from the executable at a space might have been incorrect, 33239 # since paths with space are more likely in Windows. Give it another try with the whole 33240 # argument. 33241 path="$complete" 33242 arguments="EOL" 33243 new_path=`$CYGPATH -u "$path"` 33244 new_path=`$WHICH "$new_path" 2> /dev/null` 33245 # bat and cmd files are not always considered executable in cygwin causing which 33246 # to not find them 33247 if test "x$new_path" = x \ 33248 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33249 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33250 new_path=`$CYGPATH -u "$path"` 33251 fi 33252 if test "x$new_path" = x; then 33253 # It's still not found. Now this is an unrecoverable error. 33254 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33255 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33256 has_space=`$ECHO "$complete" | $GREP " "` 33257 if test "x$has_space" != x; then 33258 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33259 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33260 fi 33261 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33262 fi 33263 fi 33264 33265 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33266 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33267 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33268 # "foo.exe" is OK but "foo" is an error. 33269 # 33270 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33271 # It is also a way to make sure we got the proper file name for the real test later on. 33272 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33273 if test "x$test_shortpath" = x; then 33274 # Short path failed, file does not exist as specified. 33275 # Try adding .exe or .cmd 33276 if test -f "${new_path}.exe"; then 33277 input_to_shortpath="${new_path}.exe" 33278 elif test -f "${new_path}.cmd"; then 33279 input_to_shortpath="${new_path}.cmd" 33280 else 33281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33282 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33283 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33284 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33285 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33286 fi 33287 else 33288 input_to_shortpath="$new_path" 33289 fi 33290 33291 # Call helper function which possibly converts this using DOS-style short mode. 33292 # If so, the updated path is stored in $new_path. 33293 new_path="$input_to_shortpath" 33294 33295 input_path="$input_to_shortpath" 33296 # Check if we need to convert this using DOS-style short mode. If the path 33297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33298 # take no chances and rewrite it. 33299 # Note: m4 eats our [], so we need to use [ and ] instead. 33300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33301 if test "x$has_forbidden_chars" != x; then 33302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33303 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33304 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33305 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33306 # Going to short mode and back again did indeed matter. Since short mode is 33307 # case insensitive, let's make it lowercase to improve readability. 33308 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33309 # Now convert it back to Unix-stile (cygpath) 33310 input_path=`$CYGPATH -u "$shortmode_path"` 33311 new_path="$input_path" 33312 fi 33313 fi 33314 33315 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33316 if test "x$test_cygdrive_prefix" = x; then 33317 # As a simple fix, exclude /usr/bin since it's not a real path. 33318 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33319 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33320 # a path prefixed by /cygdrive for fixpath to work. 33321 new_path="$CYGWIN_ROOT_PATH$input_path" 33322 fi 33323 fi 33324 33325 # remove trailing .exe if any 33326 new_path="${new_path/%.exe/}" 33327 33328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33329 33330 # First separate the path from the arguments. This will split at the first 33331 # space. 33332 complete="$AR" 33333 path="${complete%% *}" 33334 tmp="$complete EOL" 33335 arguments="${tmp#* }" 33336 33337 # Input might be given as Windows format, start by converting to 33338 # unix format. 33339 new_path="$path" 33340 33341 windows_path="$new_path" 33342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33343 unix_path=`$CYGPATH -u "$windows_path"` 33344 new_path="$unix_path" 33345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33347 new_path="$unix_path" 33348 fi 33349 33350 33351 # Now try to locate executable using which 33352 new_path=`$WHICH "$new_path" 2> /dev/null` 33353 33354 if test "x$new_path" = x; then 33355 # Oops. Which didn't find the executable. 33356 # The splitting of arguments from the executable at a space might have been incorrect, 33357 # since paths with space are more likely in Windows. Give it another try with the whole 33358 # argument. 33359 path="$complete" 33360 arguments="EOL" 33361 new_path="$path" 33362 33363 windows_path="$new_path" 33364 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33365 unix_path=`$CYGPATH -u "$windows_path"` 33366 new_path="$unix_path" 33367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33368 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33369 new_path="$unix_path" 33370 fi 33371 33372 33373 new_path=`$WHICH "$new_path" 2> /dev/null` 33374 # bat and cmd files are not always considered executable in MSYS causing which 33375 # to not find them 33376 if test "x$new_path" = x \ 33377 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33378 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33379 new_path="$path" 33380 33381 windows_path="$new_path" 33382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33383 unix_path=`$CYGPATH -u "$windows_path"` 33384 new_path="$unix_path" 33385 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33386 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33387 new_path="$unix_path" 33388 fi 33389 33390 fi 33391 33392 if test "x$new_path" = x; then 33393 # It's still not found. Now this is an unrecoverable error. 33394 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33395 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33396 has_space=`$ECHO "$complete" | $GREP " "` 33397 if test "x$has_space" != x; then 33398 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33399 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33400 fi 33401 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33402 fi 33403 fi 33404 33405 # Now new_path has a complete unix path to the binary 33406 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33407 # Keep paths in /bin as-is, but remove trailing .exe if any 33408 new_path="${new_path/%.exe/}" 33409 # Do not save /bin paths to all_fixpath_prefixes! 33410 else 33411 # Not in mixed or Windows style, start by that. 33412 new_path=`cmd //c echo $new_path` 33413 33414 input_path="$new_path" 33415 # Check if we need to convert this using DOS-style short mode. If the path 33416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33417 # take no chances and rewrite it. 33418 # Note: m4 eats our [], so we need to use [ and ] instead. 33419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33420 if test "x$has_forbidden_chars" != x; then 33421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33422 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33423 fi 33424 33425 # Output is in $new_path 33426 33427 windows_path="$new_path" 33428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33429 unix_path=`$CYGPATH -u "$windows_path"` 33430 new_path="$unix_path" 33431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33432 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33433 new_path="$unix_path" 33434 fi 33435 33436 # remove trailing .exe if any 33437 new_path="${new_path/%.exe/}" 33438 33439 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33440 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33441 fi 33442 33443 else 33444 # We're on a unix platform. Hooray! :) 33445 # First separate the path from the arguments. This will split at the first 33446 # space. 33447 complete="$AR" 33448 path="${complete%% *}" 33449 tmp="$complete EOL" 33450 arguments="${tmp#* }" 33451 33452 # Cannot rely on the command "which" here since it doesn't always work. 33453 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33454 if test -z "$is_absolute_path"; then 33455 # Path to executable is not absolute. Find it. 33456 IFS_save="$IFS" 33457 IFS=: 33458 for p in $PATH; do 33459 if test -f "$p/$path" && test -x "$p/$path"; then 33460 new_path="$p/$path" 33461 break 33462 fi 33463 done 33464 IFS="$IFS_save" 33465 else 33466 # This is an absolute path, we can use it without further modifications. 33467 new_path="$path" 33468 fi 33469 33470 if test "x$new_path" = x; then 33471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33472 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33473 has_space=`$ECHO "$complete" | $GREP " "` 33474 if test "x$has_space" != x; then 33475 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33476 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33477 fi 33478 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33479 fi 33480 fi 33481 33482 # Now join together the path and the arguments once again 33483 if test "x$arguments" != xEOL; then 33484 new_complete="$new_path ${arguments% *}" 33485 else 33486 new_complete="$new_path" 33487 fi 33488 33489 if test "x$complete" != "x$new_complete"; then 33490 AR="$new_complete" 33491 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33492 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33493 fi 33494 fi 33495 33496 33497 33498 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 33499 33500 33501 # Publish this variable in the help. 33502 33503 33504 if test "x$LIPO" = x; then 33505 # The variable is not set by user, try to locate tool using the code snippet 33506 for ac_prog in lipo 33507 do 33508 # Extract the first word of "$ac_prog", so it can be a program name with args. 33509 set dummy $ac_prog; ac_word=$2 33510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33511 $as_echo_n "checking for $ac_word... " >&6; } 33512 if ${ac_cv_path_LIPO+:} false; then : 33513 $as_echo_n "(cached) " >&6 33514 else 33515 case $LIPO in 33516 [\\/]* | ?:[\\/]*) 33517 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33518 ;; 33519 *) 33520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33521 for as_dir in $PATH 33522 do 33523 IFS=$as_save_IFS 33524 test -z "$as_dir" && as_dir=. 33525 for ac_exec_ext in '' $ac_executable_extensions; do 33526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33527 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33529 break 2 33530 fi 33531 done 33532 done 33533 IFS=$as_save_IFS 33534 33535 ;; 33536 esac 33537 fi 33538 LIPO=$ac_cv_path_LIPO 33539 if test -n "$LIPO"; then 33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33541 $as_echo "$LIPO" >&6; } 33542 else 33543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33544 $as_echo "no" >&6; } 33545 fi 33546 33547 33548 test -n "$LIPO" && break 33549 done 33550 33551 else 33552 # The variable is set, but is it from the command line or the environment? 33553 33554 # Try to remove the string !LIPO! from our list. 33555 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33556 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33557 # If it failed, the variable was not from the command line. Ignore it, 33558 # but warn the user (except for BASH, which is always set by the calling BASH). 33559 if test "xLIPO" != xBASH; then 33560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33561 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33562 fi 33563 # Try to locate tool using the code snippet 33564 for ac_prog in lipo 33565 do 33566 # Extract the first word of "$ac_prog", so it can be a program name with args. 33567 set dummy $ac_prog; ac_word=$2 33568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33569 $as_echo_n "checking for $ac_word... " >&6; } 33570 if ${ac_cv_path_LIPO+:} false; then : 33571 $as_echo_n "(cached) " >&6 33572 else 33573 case $LIPO in 33574 [\\/]* | ?:[\\/]*) 33575 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33576 ;; 33577 *) 33578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33579 for as_dir in $PATH 33580 do 33581 IFS=$as_save_IFS 33582 test -z "$as_dir" && as_dir=. 33583 for ac_exec_ext in '' $ac_executable_extensions; do 33584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33585 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33587 break 2 33588 fi 33589 done 33590 done 33591 IFS=$as_save_IFS 33592 33593 ;; 33594 esac 33595 fi 33596 LIPO=$ac_cv_path_LIPO 33597 if test -n "$LIPO"; then 33598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33599 $as_echo "$LIPO" >&6; } 33600 else 33601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33602 $as_echo "no" >&6; } 33603 fi 33604 33605 33606 test -n "$LIPO" && break 33607 done 33608 33609 else 33610 # If it succeeded, then it was overridden by the user. We will use it 33611 # for the tool. 33612 33613 # First remove it from the list of overridden variables, so we can test 33614 # for unknown variables in the end. 33615 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33616 33617 # Check if the provided tool contains a complete path. 33618 tool_specified="$LIPO" 33619 tool_basename="${tool_specified##*/}" 33620 if test "x$tool_basename" = "x$tool_specified"; then 33621 # A command without a complete path is provided, search $PATH. 33622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33623 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33624 # Extract the first word of "$tool_basename", so it can be a program name with args. 33625 set dummy $tool_basename; ac_word=$2 33626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33627 $as_echo_n "checking for $ac_word... " >&6; } 33628 if ${ac_cv_path_LIPO+:} false; then : 33629 $as_echo_n "(cached) " >&6 33630 else 33631 case $LIPO in 33632 [\\/]* | ?:[\\/]*) 33633 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33634 ;; 33635 *) 33636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33637 for as_dir in $PATH 33638 do 33639 IFS=$as_save_IFS 33640 test -z "$as_dir" && as_dir=. 33641 for ac_exec_ext in '' $ac_executable_extensions; do 33642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33643 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33645 break 2 33646 fi 33647 done 33648 done 33649 IFS=$as_save_IFS 33650 33651 ;; 33652 esac 33653 fi 33654 LIPO=$ac_cv_path_LIPO 33655 if test -n "$LIPO"; then 33656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33657 $as_echo "$LIPO" >&6; } 33658 else 33659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33660 $as_echo "no" >&6; } 33661 fi 33662 33663 33664 if test "x$LIPO" = x; then 33665 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33666 fi 33667 else 33668 # Otherwise we believe it is a complete path. Use it as it is. 33669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33670 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33672 $as_echo_n "checking for LIPO... " >&6; } 33673 if test ! -x "$tool_specified"; then 33674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33675 $as_echo "not found" >&6; } 33676 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33677 fi 33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33679 $as_echo "$tool_specified" >&6; } 33680 fi 33681 fi 33682 fi 33683 33684 33685 33686 # Only process if variable expands to non-empty 33687 33688 if test "x$LIPO" != x; then 33689 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33690 33691 # First separate the path from the arguments. This will split at the first 33692 # space. 33693 complete="$LIPO" 33694 path="${complete%% *}" 33695 tmp="$complete EOL" 33696 arguments="${tmp#* }" 33697 33698 # Input might be given as Windows format, start by converting to 33699 # unix format. 33700 new_path=`$CYGPATH -u "$path"` 33701 33702 # Now try to locate executable using which 33703 new_path=`$WHICH "$new_path" 2> /dev/null` 33704 # bat and cmd files are not always considered executable in cygwin causing which 33705 # to not find them 33706 if test "x$new_path" = x \ 33707 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33708 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33709 new_path=`$CYGPATH -u "$path"` 33710 fi 33711 if test "x$new_path" = x; then 33712 # Oops. Which didn't find the executable. 33713 # The splitting of arguments from the executable at a space might have been incorrect, 33714 # since paths with space are more likely in Windows. Give it another try with the whole 33715 # argument. 33716 path="$complete" 33717 arguments="EOL" 33718 new_path=`$CYGPATH -u "$path"` 33719 new_path=`$WHICH "$new_path" 2> /dev/null` 33720 # bat and cmd files are not always considered executable in cygwin causing which 33721 # to not find them 33722 if test "x$new_path" = x \ 33723 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33724 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33725 new_path=`$CYGPATH -u "$path"` 33726 fi 33727 if test "x$new_path" = x; then 33728 # It's still not found. Now this is an unrecoverable error. 33729 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33730 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33731 has_space=`$ECHO "$complete" | $GREP " "` 33732 if test "x$has_space" != x; then 33733 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33734 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33735 fi 33736 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33737 fi 33738 fi 33739 33740 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33741 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33742 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33743 # "foo.exe" is OK but "foo" is an error. 33744 # 33745 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33746 # It is also a way to make sure we got the proper file name for the real test later on. 33747 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33748 if test "x$test_shortpath" = x; then 33749 # Short path failed, file does not exist as specified. 33750 # Try adding .exe or .cmd 33751 if test -f "${new_path}.exe"; then 33752 input_to_shortpath="${new_path}.exe" 33753 elif test -f "${new_path}.cmd"; then 33754 input_to_shortpath="${new_path}.cmd" 33755 else 33756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33757 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33758 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33759 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33760 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33761 fi 33762 else 33763 input_to_shortpath="$new_path" 33764 fi 33765 33766 # Call helper function which possibly converts this using DOS-style short mode. 33767 # If so, the updated path is stored in $new_path. 33768 new_path="$input_to_shortpath" 33769 33770 input_path="$input_to_shortpath" 33771 # Check if we need to convert this using DOS-style short mode. If the path 33772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33773 # take no chances and rewrite it. 33774 # Note: m4 eats our [], so we need to use [ and ] instead. 33775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33776 if test "x$has_forbidden_chars" != x; then 33777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33781 # Going to short mode and back again did indeed matter. Since short mode is 33782 # case insensitive, let's make it lowercase to improve readability. 33783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33784 # Now convert it back to Unix-stile (cygpath) 33785 input_path=`$CYGPATH -u "$shortmode_path"` 33786 new_path="$input_path" 33787 fi 33788 fi 33789 33790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33791 if test "x$test_cygdrive_prefix" = x; then 33792 # As a simple fix, exclude /usr/bin since it's not a real path. 33793 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33795 # a path prefixed by /cygdrive for fixpath to work. 33796 new_path="$CYGWIN_ROOT_PATH$input_path" 33797 fi 33798 fi 33799 33800 # remove trailing .exe if any 33801 new_path="${new_path/%.exe/}" 33802 33803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33804 33805 # First separate the path from the arguments. This will split at the first 33806 # space. 33807 complete="$LIPO" 33808 path="${complete%% *}" 33809 tmp="$complete EOL" 33810 arguments="${tmp#* }" 33811 33812 # Input might be given as Windows format, start by converting to 33813 # unix format. 33814 new_path="$path" 33815 33816 windows_path="$new_path" 33817 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33818 unix_path=`$CYGPATH -u "$windows_path"` 33819 new_path="$unix_path" 33820 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33821 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33822 new_path="$unix_path" 33823 fi 33824 33825 33826 # Now try to locate executable using which 33827 new_path=`$WHICH "$new_path" 2> /dev/null` 33828 33829 if test "x$new_path" = x; then 33830 # Oops. Which didn't find the executable. 33831 # The splitting of arguments from the executable at a space might have been incorrect, 33832 # since paths with space are more likely in Windows. Give it another try with the whole 33833 # argument. 33834 path="$complete" 33835 arguments="EOL" 33836 new_path="$path" 33837 33838 windows_path="$new_path" 33839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33840 unix_path=`$CYGPATH -u "$windows_path"` 33841 new_path="$unix_path" 33842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33843 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33844 new_path="$unix_path" 33845 fi 33846 33847 33848 new_path=`$WHICH "$new_path" 2> /dev/null` 33849 # bat and cmd files are not always considered executable in MSYS causing which 33850 # to not find them 33851 if test "x$new_path" = x \ 33852 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33853 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33854 new_path="$path" 33855 33856 windows_path="$new_path" 33857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33858 unix_path=`$CYGPATH -u "$windows_path"` 33859 new_path="$unix_path" 33860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33862 new_path="$unix_path" 33863 fi 33864 33865 fi 33866 33867 if test "x$new_path" = x; then 33868 # It's still not found. Now this is an unrecoverable error. 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33870 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33871 has_space=`$ECHO "$complete" | $GREP " "` 33872 if test "x$has_space" != x; then 33873 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33874 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33875 fi 33876 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33877 fi 33878 fi 33879 33880 # Now new_path has a complete unix path to the binary 33881 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33882 # Keep paths in /bin as-is, but remove trailing .exe if any 33883 new_path="${new_path/%.exe/}" 33884 # Do not save /bin paths to all_fixpath_prefixes! 33885 else 33886 # Not in mixed or Windows style, start by that. 33887 new_path=`cmd //c echo $new_path` 33888 33889 input_path="$new_path" 33890 # Check if we need to convert this using DOS-style short mode. If the path 33891 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33892 # take no chances and rewrite it. 33893 # Note: m4 eats our [], so we need to use [ and ] instead. 33894 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33895 if test "x$has_forbidden_chars" != x; then 33896 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33897 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33898 fi 33899 33900 # Output is in $new_path 33901 33902 windows_path="$new_path" 33903 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33904 unix_path=`$CYGPATH -u "$windows_path"` 33905 new_path="$unix_path" 33906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33907 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33908 new_path="$unix_path" 33909 fi 33910 33911 # remove trailing .exe if any 33912 new_path="${new_path/%.exe/}" 33913 33914 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33915 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33916 fi 33917 33918 else 33919 # We're on a unix platform. Hooray! :) 33920 # First separate the path from the arguments. This will split at the first 33921 # space. 33922 complete="$LIPO" 33923 path="${complete%% *}" 33924 tmp="$complete EOL" 33925 arguments="${tmp#* }" 33926 33927 # Cannot rely on the command "which" here since it doesn't always work. 33928 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33929 if test -z "$is_absolute_path"; then 33930 # Path to executable is not absolute. Find it. 33931 IFS_save="$IFS" 33932 IFS=: 33933 for p in $PATH; do 33934 if test -f "$p/$path" && test -x "$p/$path"; then 33935 new_path="$p/$path" 33936 break 33937 fi 33938 done 33939 IFS="$IFS_save" 33940 else 33941 # This is an absolute path, we can use it without further modifications. 33942 new_path="$path" 33943 fi 33944 33945 if test "x$new_path" = x; then 33946 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33947 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33948 has_space=`$ECHO "$complete" | $GREP " "` 33949 if test "x$has_space" != x; then 33950 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33951 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33952 fi 33953 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33954 fi 33955 fi 33956 33957 # Now join together the path and the arguments once again 33958 if test "x$arguments" != xEOL; then 33959 new_complete="$new_path ${arguments% *}" 33960 else 33961 new_complete="$new_path" 33962 fi 33963 33964 if test "x$complete" != "x$new_complete"; then 33965 LIPO="$new_complete" 33966 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33967 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33968 fi 33969 fi 33970 33971 fi 33972 33973 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33974 # Extract the first word of "mt", so it can be a program name with args. 33975 set dummy mt; ac_word=$2 33976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33977 $as_echo_n "checking for $ac_word... " >&6; } 33978 if ${ac_cv_prog_MT+:} false; then : 33979 $as_echo_n "(cached) " >&6 33980 else 33981 if test -n "$MT"; then 33982 ac_cv_prog_MT="$MT" # Let the user override the test. 33983 else 33984 ac_prog_rejected=no 33985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33986 for as_dir in $PATH 33987 do 33988 IFS=$as_save_IFS 33989 test -z "$as_dir" && as_dir=. 33990 for ac_exec_ext in '' $ac_executable_extensions; do 33991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33993 ac_prog_rejected=yes 33994 continue 33995 fi 33996 ac_cv_prog_MT="mt" 33997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33998 break 2 33999 fi 34000 done 34001 done 34002 IFS=$as_save_IFS 34003 34004 if test $ac_prog_rejected = yes; then 34005 # We found a bogon in the path, so make sure we never use it. 34006 set dummy $ac_cv_prog_MT 34007 shift 34008 if test $# != 0; then 34009 # We chose a different compiler from the bogus one. 34010 # However, it has the same basename, so the bogon will be chosen 34011 # first if we set MT to just the basename; use the full file name. 34012 shift 34013 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 34014 fi 34015 fi 34016 fi 34017 fi 34018 MT=$ac_cv_prog_MT 34019 if test -n "$MT"; then 34020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 34021 $as_echo "$MT" >&6; } 34022 else 34023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34024 $as_echo "no" >&6; } 34025 fi 34026 34027 34028 34029 # Only process if variable expands to non-empty 34030 34031 if test "x$MT" != x; then 34032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34033 34034 # First separate the path from the arguments. This will split at the first 34035 # space. 34036 complete="$MT" 34037 path="${complete%% *}" 34038 tmp="$complete EOL" 34039 arguments="${tmp#* }" 34040 34041 # Input might be given as Windows format, start by converting to 34042 # unix format. 34043 new_path=`$CYGPATH -u "$path"` 34044 34045 # Now try to locate executable using which 34046 new_path=`$WHICH "$new_path" 2> /dev/null` 34047 # bat and cmd files are not always considered executable in cygwin causing which 34048 # to not find them 34049 if test "x$new_path" = x \ 34050 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34051 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34052 new_path=`$CYGPATH -u "$path"` 34053 fi 34054 if test "x$new_path" = x; then 34055 # Oops. Which didn't find the executable. 34056 # The splitting of arguments from the executable at a space might have been incorrect, 34057 # since paths with space are more likely in Windows. Give it another try with the whole 34058 # argument. 34059 path="$complete" 34060 arguments="EOL" 34061 new_path=`$CYGPATH -u "$path"` 34062 new_path=`$WHICH "$new_path" 2> /dev/null` 34063 # bat and cmd files are not always considered executable in cygwin causing which 34064 # to not find them 34065 if test "x$new_path" = x \ 34066 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34067 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34068 new_path=`$CYGPATH -u "$path"` 34069 fi 34070 if test "x$new_path" = x; then 34071 # It's still not found. Now this is an unrecoverable error. 34072 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34073 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34074 has_space=`$ECHO "$complete" | $GREP " "` 34075 if test "x$has_space" != x; then 34076 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34077 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34078 fi 34079 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34080 fi 34081 fi 34082 34083 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34084 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34085 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34086 # "foo.exe" is OK but "foo" is an error. 34087 # 34088 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34089 # It is also a way to make sure we got the proper file name for the real test later on. 34090 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34091 if test "x$test_shortpath" = x; then 34092 # Short path failed, file does not exist as specified. 34093 # Try adding .exe or .cmd 34094 if test -f "${new_path}.exe"; then 34095 input_to_shortpath="${new_path}.exe" 34096 elif test -f "${new_path}.cmd"; then 34097 input_to_shortpath="${new_path}.cmd" 34098 else 34099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 34100 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 34101 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34102 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34103 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34104 fi 34105 else 34106 input_to_shortpath="$new_path" 34107 fi 34108 34109 # Call helper function which possibly converts this using DOS-style short mode. 34110 # If so, the updated path is stored in $new_path. 34111 new_path="$input_to_shortpath" 34112 34113 input_path="$input_to_shortpath" 34114 # Check if we need to convert this using DOS-style short mode. If the path 34115 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34116 # take no chances and rewrite it. 34117 # Note: m4 eats our [], so we need to use [ and ] instead. 34118 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34119 if test "x$has_forbidden_chars" != x; then 34120 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34121 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34122 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34123 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34124 # Going to short mode and back again did indeed matter. Since short mode is 34125 # case insensitive, let's make it lowercase to improve readability. 34126 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34127 # Now convert it back to Unix-stile (cygpath) 34128 input_path=`$CYGPATH -u "$shortmode_path"` 34129 new_path="$input_path" 34130 fi 34131 fi 34132 34133 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34134 if test "x$test_cygdrive_prefix" = x; then 34135 # As a simple fix, exclude /usr/bin since it's not a real path. 34136 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34137 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34138 # a path prefixed by /cygdrive for fixpath to work. 34139 new_path="$CYGWIN_ROOT_PATH$input_path" 34140 fi 34141 fi 34142 34143 # remove trailing .exe if any 34144 new_path="${new_path/%.exe/}" 34145 34146 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34147 34148 # First separate the path from the arguments. This will split at the first 34149 # space. 34150 complete="$MT" 34151 path="${complete%% *}" 34152 tmp="$complete EOL" 34153 arguments="${tmp#* }" 34154 34155 # Input might be given as Windows format, start by converting to 34156 # unix format. 34157 new_path="$path" 34158 34159 windows_path="$new_path" 34160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34161 unix_path=`$CYGPATH -u "$windows_path"` 34162 new_path="$unix_path" 34163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34165 new_path="$unix_path" 34166 fi 34167 34168 34169 # Now try to locate executable using which 34170 new_path=`$WHICH "$new_path" 2> /dev/null` 34171 34172 if test "x$new_path" = x; then 34173 # Oops. Which didn't find the executable. 34174 # The splitting of arguments from the executable at a space might have been incorrect, 34175 # since paths with space are more likely in Windows. Give it another try with the whole 34176 # argument. 34177 path="$complete" 34178 arguments="EOL" 34179 new_path="$path" 34180 34181 windows_path="$new_path" 34182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34183 unix_path=`$CYGPATH -u "$windows_path"` 34184 new_path="$unix_path" 34185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34187 new_path="$unix_path" 34188 fi 34189 34190 34191 new_path=`$WHICH "$new_path" 2> /dev/null` 34192 # bat and cmd files are not always considered executable in MSYS causing which 34193 # to not find them 34194 if test "x$new_path" = x \ 34195 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34196 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34197 new_path="$path" 34198 34199 windows_path="$new_path" 34200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34201 unix_path=`$CYGPATH -u "$windows_path"` 34202 new_path="$unix_path" 34203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34205 new_path="$unix_path" 34206 fi 34207 34208 fi 34209 34210 if test "x$new_path" = x; then 34211 # It's still not found. Now this is an unrecoverable error. 34212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34213 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34214 has_space=`$ECHO "$complete" | $GREP " "` 34215 if test "x$has_space" != x; then 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34217 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34218 fi 34219 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34220 fi 34221 fi 34222 34223 # Now new_path has a complete unix path to the binary 34224 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34225 # Keep paths in /bin as-is, but remove trailing .exe if any 34226 new_path="${new_path/%.exe/}" 34227 # Do not save /bin paths to all_fixpath_prefixes! 34228 else 34229 # Not in mixed or Windows style, start by that. 34230 new_path=`cmd //c echo $new_path` 34231 34232 input_path="$new_path" 34233 # Check if we need to convert this using DOS-style short mode. If the path 34234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34235 # take no chances and rewrite it. 34236 # Note: m4 eats our [], so we need to use [ and ] instead. 34237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34238 if test "x$has_forbidden_chars" != x; then 34239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34240 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34241 fi 34242 34243 # Output is in $new_path 34244 34245 windows_path="$new_path" 34246 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34247 unix_path=`$CYGPATH -u "$windows_path"` 34248 new_path="$unix_path" 34249 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34250 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34251 new_path="$unix_path" 34252 fi 34253 34254 # remove trailing .exe if any 34255 new_path="${new_path/%.exe/}" 34256 34257 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34258 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34259 fi 34260 34261 else 34262 # We're on a unix platform. Hooray! :) 34263 # First separate the path from the arguments. This will split at the first 34264 # space. 34265 complete="$MT" 34266 path="${complete%% *}" 34267 tmp="$complete EOL" 34268 arguments="${tmp#* }" 34269 34270 # Cannot rely on the command "which" here since it doesn't always work. 34271 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34272 if test -z "$is_absolute_path"; then 34273 # Path to executable is not absolute. Find it. 34274 IFS_save="$IFS" 34275 IFS=: 34276 for p in $PATH; do 34277 if test -f "$p/$path" && test -x "$p/$path"; then 34278 new_path="$p/$path" 34279 break 34280 fi 34281 done 34282 IFS="$IFS_save" 34283 else 34284 # This is an absolute path, we can use it without further modifications. 34285 new_path="$path" 34286 fi 34287 34288 if test "x$new_path" = x; then 34289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34290 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34291 has_space=`$ECHO "$complete" | $GREP " "` 34292 if test "x$has_space" != x; then 34293 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34294 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34295 fi 34296 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34297 fi 34298 fi 34299 34300 # Now join together the path and the arguments once again 34301 if test "x$arguments" != xEOL; then 34302 new_complete="$new_path ${arguments% *}" 34303 else 34304 new_complete="$new_path" 34305 fi 34306 34307 if test "x$complete" != "x$new_complete"; then 34308 MT="$new_complete" 34309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34310 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34311 fi 34312 fi 34313 34314 # Setup the resource compiler (RC) 34315 # Extract the first word of "rc", so it can be a program name with args. 34316 set dummy rc; ac_word=$2 34317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34318 $as_echo_n "checking for $ac_word... " >&6; } 34319 if ${ac_cv_prog_RC+:} false; then : 34320 $as_echo_n "(cached) " >&6 34321 else 34322 if test -n "$RC"; then 34323 ac_cv_prog_RC="$RC" # Let the user override the test. 34324 else 34325 ac_prog_rejected=no 34326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34327 for as_dir in $PATH 34328 do 34329 IFS=$as_save_IFS 34330 test -z "$as_dir" && as_dir=. 34331 for ac_exec_ext in '' $ac_executable_extensions; do 34332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34334 ac_prog_rejected=yes 34335 continue 34336 fi 34337 ac_cv_prog_RC="rc" 34338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34339 break 2 34340 fi 34341 done 34342 done 34343 IFS=$as_save_IFS 34344 34345 if test $ac_prog_rejected = yes; then 34346 # We found a bogon in the path, so make sure we never use it. 34347 set dummy $ac_cv_prog_RC 34348 shift 34349 if test $# != 0; then 34350 # We chose a different compiler from the bogus one. 34351 # However, it has the same basename, so the bogon will be chosen 34352 # first if we set RC to just the basename; use the full file name. 34353 shift 34354 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34355 fi 34356 fi 34357 fi 34358 fi 34359 RC=$ac_cv_prog_RC 34360 if test -n "$RC"; then 34361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34362 $as_echo "$RC" >&6; } 34363 else 34364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34365 $as_echo "no" >&6; } 34366 fi 34367 34368 34369 34370 # Only process if variable expands to non-empty 34371 34372 if test "x$RC" != x; then 34373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34374 34375 # First separate the path from the arguments. This will split at the first 34376 # space. 34377 complete="$RC" 34378 path="${complete%% *}" 34379 tmp="$complete EOL" 34380 arguments="${tmp#* }" 34381 34382 # Input might be given as Windows format, start by converting to 34383 # unix format. 34384 new_path=`$CYGPATH -u "$path"` 34385 34386 # Now try to locate executable using which 34387 new_path=`$WHICH "$new_path" 2> /dev/null` 34388 # bat and cmd files are not always considered executable in cygwin causing which 34389 # to not find them 34390 if test "x$new_path" = x \ 34391 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34392 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34393 new_path=`$CYGPATH -u "$path"` 34394 fi 34395 if test "x$new_path" = x; then 34396 # Oops. Which didn't find the executable. 34397 # The splitting of arguments from the executable at a space might have been incorrect, 34398 # since paths with space are more likely in Windows. Give it another try with the whole 34399 # argument. 34400 path="$complete" 34401 arguments="EOL" 34402 new_path=`$CYGPATH -u "$path"` 34403 new_path=`$WHICH "$new_path" 2> /dev/null` 34404 # bat and cmd files are not always considered executable in cygwin causing which 34405 # to not find them 34406 if test "x$new_path" = x \ 34407 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34408 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34409 new_path=`$CYGPATH -u "$path"` 34410 fi 34411 if test "x$new_path" = x; then 34412 # It's still not found. Now this is an unrecoverable error. 34413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34414 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34415 has_space=`$ECHO "$complete" | $GREP " "` 34416 if test "x$has_space" != x; then 34417 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34418 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34419 fi 34420 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34421 fi 34422 fi 34423 34424 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34425 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34426 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34427 # "foo.exe" is OK but "foo" is an error. 34428 # 34429 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34430 # It is also a way to make sure we got the proper file name for the real test later on. 34431 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34432 if test "x$test_shortpath" = x; then 34433 # Short path failed, file does not exist as specified. 34434 # Try adding .exe or .cmd 34435 if test -f "${new_path}.exe"; then 34436 input_to_shortpath="${new_path}.exe" 34437 elif test -f "${new_path}.cmd"; then 34438 input_to_shortpath="${new_path}.cmd" 34439 else 34440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34441 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34442 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34443 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34444 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34445 fi 34446 else 34447 input_to_shortpath="$new_path" 34448 fi 34449 34450 # Call helper function which possibly converts this using DOS-style short mode. 34451 # If so, the updated path is stored in $new_path. 34452 new_path="$input_to_shortpath" 34453 34454 input_path="$input_to_shortpath" 34455 # Check if we need to convert this using DOS-style short mode. If the path 34456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34457 # take no chances and rewrite it. 34458 # Note: m4 eats our [], so we need to use [ and ] instead. 34459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34460 if test "x$has_forbidden_chars" != x; then 34461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34462 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34463 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34464 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34465 # Going to short mode and back again did indeed matter. Since short mode is 34466 # case insensitive, let's make it lowercase to improve readability. 34467 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34468 # Now convert it back to Unix-stile (cygpath) 34469 input_path=`$CYGPATH -u "$shortmode_path"` 34470 new_path="$input_path" 34471 fi 34472 fi 34473 34474 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34475 if test "x$test_cygdrive_prefix" = x; then 34476 # As a simple fix, exclude /usr/bin since it's not a real path. 34477 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34478 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34479 # a path prefixed by /cygdrive for fixpath to work. 34480 new_path="$CYGWIN_ROOT_PATH$input_path" 34481 fi 34482 fi 34483 34484 # remove trailing .exe if any 34485 new_path="${new_path/%.exe/}" 34486 34487 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34488 34489 # First separate the path from the arguments. This will split at the first 34490 # space. 34491 complete="$RC" 34492 path="${complete%% *}" 34493 tmp="$complete EOL" 34494 arguments="${tmp#* }" 34495 34496 # Input might be given as Windows format, start by converting to 34497 # unix format. 34498 new_path="$path" 34499 34500 windows_path="$new_path" 34501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34502 unix_path=`$CYGPATH -u "$windows_path"` 34503 new_path="$unix_path" 34504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34505 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34506 new_path="$unix_path" 34507 fi 34508 34509 34510 # Now try to locate executable using which 34511 new_path=`$WHICH "$new_path" 2> /dev/null` 34512 34513 if test "x$new_path" = x; then 34514 # Oops. Which didn't find the executable. 34515 # The splitting of arguments from the executable at a space might have been incorrect, 34516 # since paths with space are more likely in Windows. Give it another try with the whole 34517 # argument. 34518 path="$complete" 34519 arguments="EOL" 34520 new_path="$path" 34521 34522 windows_path="$new_path" 34523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34524 unix_path=`$CYGPATH -u "$windows_path"` 34525 new_path="$unix_path" 34526 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34527 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34528 new_path="$unix_path" 34529 fi 34530 34531 34532 new_path=`$WHICH "$new_path" 2> /dev/null` 34533 # bat and cmd files are not always considered executable in MSYS causing which 34534 # to not find them 34535 if test "x$new_path" = x \ 34536 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34537 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34538 new_path="$path" 34539 34540 windows_path="$new_path" 34541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34542 unix_path=`$CYGPATH -u "$windows_path"` 34543 new_path="$unix_path" 34544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34545 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34546 new_path="$unix_path" 34547 fi 34548 34549 fi 34550 34551 if test "x$new_path" = x; then 34552 # It's still not found. Now this is an unrecoverable error. 34553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34554 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34555 has_space=`$ECHO "$complete" | $GREP " "` 34556 if test "x$has_space" != x; then 34557 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34558 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34559 fi 34560 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34561 fi 34562 fi 34563 34564 # Now new_path has a complete unix path to the binary 34565 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34566 # Keep paths in /bin as-is, but remove trailing .exe if any 34567 new_path="${new_path/%.exe/}" 34568 # Do not save /bin paths to all_fixpath_prefixes! 34569 else 34570 # Not in mixed or Windows style, start by that. 34571 new_path=`cmd //c echo $new_path` 34572 34573 input_path="$new_path" 34574 # Check if we need to convert this using DOS-style short mode. If the path 34575 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34576 # take no chances and rewrite it. 34577 # Note: m4 eats our [], so we need to use [ and ] instead. 34578 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34579 if test "x$has_forbidden_chars" != x; then 34580 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34581 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34582 fi 34583 34584 # Output is in $new_path 34585 34586 windows_path="$new_path" 34587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34588 unix_path=`$CYGPATH -u "$windows_path"` 34589 new_path="$unix_path" 34590 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34591 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34592 new_path="$unix_path" 34593 fi 34594 34595 # remove trailing .exe if any 34596 new_path="${new_path/%.exe/}" 34597 34598 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34599 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34600 fi 34601 34602 else 34603 # We're on a unix platform. Hooray! :) 34604 # First separate the path from the arguments. This will split at the first 34605 # space. 34606 complete="$RC" 34607 path="${complete%% *}" 34608 tmp="$complete EOL" 34609 arguments="${tmp#* }" 34610 34611 # Cannot rely on the command "which" here since it doesn't always work. 34612 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34613 if test -z "$is_absolute_path"; then 34614 # Path to executable is not absolute. Find it. 34615 IFS_save="$IFS" 34616 IFS=: 34617 for p in $PATH; do 34618 if test -f "$p/$path" && test -x "$p/$path"; then 34619 new_path="$p/$path" 34620 break 34621 fi 34622 done 34623 IFS="$IFS_save" 34624 else 34625 # This is an absolute path, we can use it without further modifications. 34626 new_path="$path" 34627 fi 34628 34629 if test "x$new_path" = x; then 34630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34631 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34632 has_space=`$ECHO "$complete" | $GREP " "` 34633 if test "x$has_space" != x; then 34634 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34635 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34636 fi 34637 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34638 fi 34639 fi 34640 34641 # Now join together the path and the arguments once again 34642 if test "x$arguments" != xEOL; then 34643 new_complete="$new_path ${arguments% *}" 34644 else 34645 new_complete="$new_path" 34646 fi 34647 34648 if test "x$complete" != "x$new_complete"; then 34649 RC="$new_complete" 34650 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34651 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34652 fi 34653 fi 34654 34655 # Extract the first word of "dumpbin", so it can be a program name with args. 34656 set dummy dumpbin; ac_word=$2 34657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34658 $as_echo_n "checking for $ac_word... " >&6; } 34659 if ${ac_cv_prog_DUMPBIN+:} false; then : 34660 $as_echo_n "(cached) " >&6 34661 else 34662 if test -n "$DUMPBIN"; then 34663 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34664 else 34665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34666 for as_dir in $PATH 34667 do 34668 IFS=$as_save_IFS 34669 test -z "$as_dir" && as_dir=. 34670 for ac_exec_ext in '' $ac_executable_extensions; do 34671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34672 ac_cv_prog_DUMPBIN="dumpbin" 34673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34674 break 2 34675 fi 34676 done 34677 done 34678 IFS=$as_save_IFS 34679 34680 fi 34681 fi 34682 DUMPBIN=$ac_cv_prog_DUMPBIN 34683 if test -n "$DUMPBIN"; then 34684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34685 $as_echo "$DUMPBIN" >&6; } 34686 else 34687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34688 $as_echo "no" >&6; } 34689 fi 34690 34691 34692 34693 # Only process if variable expands to non-empty 34694 34695 if test "x$DUMPBIN" != x; then 34696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34697 34698 # First separate the path from the arguments. This will split at the first 34699 # space. 34700 complete="$DUMPBIN" 34701 path="${complete%% *}" 34702 tmp="$complete EOL" 34703 arguments="${tmp#* }" 34704 34705 # Input might be given as Windows format, start by converting to 34706 # unix format. 34707 new_path=`$CYGPATH -u "$path"` 34708 34709 # Now try to locate executable using which 34710 new_path=`$WHICH "$new_path" 2> /dev/null` 34711 # bat and cmd files are not always considered executable in cygwin causing which 34712 # to not find them 34713 if test "x$new_path" = x \ 34714 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34715 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34716 new_path=`$CYGPATH -u "$path"` 34717 fi 34718 if test "x$new_path" = x; then 34719 # Oops. Which didn't find the executable. 34720 # The splitting of arguments from the executable at a space might have been incorrect, 34721 # since paths with space are more likely in Windows. Give it another try with the whole 34722 # argument. 34723 path="$complete" 34724 arguments="EOL" 34725 new_path=`$CYGPATH -u "$path"` 34726 new_path=`$WHICH "$new_path" 2> /dev/null` 34727 # bat and cmd files are not always considered executable in cygwin causing which 34728 # to not find them 34729 if test "x$new_path" = x \ 34730 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34731 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34732 new_path=`$CYGPATH -u "$path"` 34733 fi 34734 if test "x$new_path" = x; then 34735 # It's still not found. Now this is an unrecoverable error. 34736 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34737 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34738 has_space=`$ECHO "$complete" | $GREP " "` 34739 if test "x$has_space" != x; then 34740 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34741 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34742 fi 34743 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34744 fi 34745 fi 34746 34747 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34748 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34749 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34750 # "foo.exe" is OK but "foo" is an error. 34751 # 34752 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34753 # It is also a way to make sure we got the proper file name for the real test later on. 34754 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34755 if test "x$test_shortpath" = x; then 34756 # Short path failed, file does not exist as specified. 34757 # Try adding .exe or .cmd 34758 if test -f "${new_path}.exe"; then 34759 input_to_shortpath="${new_path}.exe" 34760 elif test -f "${new_path}.cmd"; then 34761 input_to_shortpath="${new_path}.cmd" 34762 else 34763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34764 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34765 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34766 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34767 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34768 fi 34769 else 34770 input_to_shortpath="$new_path" 34771 fi 34772 34773 # Call helper function which possibly converts this using DOS-style short mode. 34774 # If so, the updated path is stored in $new_path. 34775 new_path="$input_to_shortpath" 34776 34777 input_path="$input_to_shortpath" 34778 # Check if we need to convert this using DOS-style short mode. If the path 34779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34780 # take no chances and rewrite it. 34781 # Note: m4 eats our [], so we need to use [ and ] instead. 34782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34783 if test "x$has_forbidden_chars" != x; then 34784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34788 # Going to short mode and back again did indeed matter. Since short mode is 34789 # case insensitive, let's make it lowercase to improve readability. 34790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34791 # Now convert it back to Unix-stile (cygpath) 34792 input_path=`$CYGPATH -u "$shortmode_path"` 34793 new_path="$input_path" 34794 fi 34795 fi 34796 34797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34798 if test "x$test_cygdrive_prefix" = x; then 34799 # As a simple fix, exclude /usr/bin since it's not a real path. 34800 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34802 # a path prefixed by /cygdrive for fixpath to work. 34803 new_path="$CYGWIN_ROOT_PATH$input_path" 34804 fi 34805 fi 34806 34807 # remove trailing .exe if any 34808 new_path="${new_path/%.exe/}" 34809 34810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34811 34812 # First separate the path from the arguments. This will split at the first 34813 # space. 34814 complete="$DUMPBIN" 34815 path="${complete%% *}" 34816 tmp="$complete EOL" 34817 arguments="${tmp#* }" 34818 34819 # Input might be given as Windows format, start by converting to 34820 # unix format. 34821 new_path="$path" 34822 34823 windows_path="$new_path" 34824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34825 unix_path=`$CYGPATH -u "$windows_path"` 34826 new_path="$unix_path" 34827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34829 new_path="$unix_path" 34830 fi 34831 34832 34833 # Now try to locate executable using which 34834 new_path=`$WHICH "$new_path" 2> /dev/null` 34835 34836 if test "x$new_path" = x; then 34837 # Oops. Which didn't find the executable. 34838 # The splitting of arguments from the executable at a space might have been incorrect, 34839 # since paths with space are more likely in Windows. Give it another try with the whole 34840 # argument. 34841 path="$complete" 34842 arguments="EOL" 34843 new_path="$path" 34844 34845 windows_path="$new_path" 34846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34847 unix_path=`$CYGPATH -u "$windows_path"` 34848 new_path="$unix_path" 34849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34851 new_path="$unix_path" 34852 fi 34853 34854 34855 new_path=`$WHICH "$new_path" 2> /dev/null` 34856 # bat and cmd files are not always considered executable in MSYS causing which 34857 # to not find them 34858 if test "x$new_path" = x \ 34859 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34860 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34861 new_path="$path" 34862 34863 windows_path="$new_path" 34864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34865 unix_path=`$CYGPATH -u "$windows_path"` 34866 new_path="$unix_path" 34867 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34868 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34869 new_path="$unix_path" 34870 fi 34871 34872 fi 34873 34874 if test "x$new_path" = x; then 34875 # It's still not found. Now this is an unrecoverable error. 34876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34877 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34878 has_space=`$ECHO "$complete" | $GREP " "` 34879 if test "x$has_space" != x; then 34880 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34881 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34882 fi 34883 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34884 fi 34885 fi 34886 34887 # Now new_path has a complete unix path to the binary 34888 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34889 # Keep paths in /bin as-is, but remove trailing .exe if any 34890 new_path="${new_path/%.exe/}" 34891 # Do not save /bin paths to all_fixpath_prefixes! 34892 else 34893 # Not in mixed or Windows style, start by that. 34894 new_path=`cmd //c echo $new_path` 34895 34896 input_path="$new_path" 34897 # Check if we need to convert this using DOS-style short mode. If the path 34898 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34899 # take no chances and rewrite it. 34900 # Note: m4 eats our [], so we need to use [ and ] instead. 34901 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34902 if test "x$has_forbidden_chars" != x; then 34903 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34904 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34905 fi 34906 34907 # Output is in $new_path 34908 34909 windows_path="$new_path" 34910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34911 unix_path=`$CYGPATH -u "$windows_path"` 34912 new_path="$unix_path" 34913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34915 new_path="$unix_path" 34916 fi 34917 34918 # remove trailing .exe if any 34919 new_path="${new_path/%.exe/}" 34920 34921 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34922 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34923 fi 34924 34925 else 34926 # We're on a unix platform. Hooray! :) 34927 # First separate the path from the arguments. This will split at the first 34928 # space. 34929 complete="$DUMPBIN" 34930 path="${complete%% *}" 34931 tmp="$complete EOL" 34932 arguments="${tmp#* }" 34933 34934 # Cannot rely on the command "which" here since it doesn't always work. 34935 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34936 if test -z "$is_absolute_path"; then 34937 # Path to executable is not absolute. Find it. 34938 IFS_save="$IFS" 34939 IFS=: 34940 for p in $PATH; do 34941 if test -f "$p/$path" && test -x "$p/$path"; then 34942 new_path="$p/$path" 34943 break 34944 fi 34945 done 34946 IFS="$IFS_save" 34947 else 34948 # This is an absolute path, we can use it without further modifications. 34949 new_path="$path" 34950 fi 34951 34952 if test "x$new_path" = x; then 34953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34954 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34955 has_space=`$ECHO "$complete" | $GREP " "` 34956 if test "x$has_space" != x; then 34957 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34958 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34959 fi 34960 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34961 fi 34962 fi 34963 34964 # Now join together the path and the arguments once again 34965 if test "x$arguments" != xEOL; then 34966 new_complete="$new_path ${arguments% *}" 34967 else 34968 new_complete="$new_path" 34969 fi 34970 34971 if test "x$complete" != "x$new_complete"; then 34972 DUMPBIN="$new_complete" 34973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34974 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34975 fi 34976 fi 34977 34978 # We need to check for 'msbuild.exe' because at the place where we expect to 34979 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 34980 # won't find the 'msbuild.exe' executable in that case (and the 34981 # 'ac_executable_extensions' is unusable due to performance reasons). 34982 # Notice that we intentionally don't fix up the path to MSBUILD because we 34983 # will call it in a DOS shell during freetype detection on Windows (see 34984 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 34985 # Extract the first word of "msbuild.exe", so it can be a program name with args. 34986 set dummy msbuild.exe; ac_word=$2 34987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34988 $as_echo_n "checking for $ac_word... " >&6; } 34989 if ${ac_cv_prog_MSBUILD+:} false; then : 34990 $as_echo_n "(cached) " >&6 34991 else 34992 if test -n "$MSBUILD"; then 34993 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 34994 else 34995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34996 for as_dir in $PATH 34997 do 34998 IFS=$as_save_IFS 34999 test -z "$as_dir" && as_dir=. 35000 for ac_exec_ext in '' $ac_executable_extensions; do 35001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35002 ac_cv_prog_MSBUILD="msbuild.exe" 35003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35004 break 2 35005 fi 35006 done 35007 done 35008 IFS=$as_save_IFS 35009 35010 fi 35011 fi 35012 MSBUILD=$ac_cv_prog_MSBUILD 35013 if test -n "$MSBUILD"; then 35014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 35015 $as_echo "$MSBUILD" >&6; } 35016 else 35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35018 $as_echo "no" >&6; } 35019 fi 35020 35021 35022 fi 35023 35024 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35025 35026 35027 # Publish this variable in the help. 35028 35029 35030 if test "x$STRIP" = x; then 35031 # The variable is not set by user, try to locate tool using the code snippet 35032 for ac_prog in strip 35033 do 35034 # Extract the first word of "$ac_prog", so it can be a program name with args. 35035 set dummy $ac_prog; ac_word=$2 35036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35037 $as_echo_n "checking for $ac_word... " >&6; } 35038 if ${ac_cv_path_STRIP+:} false; then : 35039 $as_echo_n "(cached) " >&6 35040 else 35041 case $STRIP in 35042 [\\/]* | ?:[\\/]*) 35043 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35044 ;; 35045 *) 35046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35047 for as_dir in $PATH 35048 do 35049 IFS=$as_save_IFS 35050 test -z "$as_dir" && as_dir=. 35051 for ac_exec_ext in '' $ac_executable_extensions; do 35052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35053 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35055 break 2 35056 fi 35057 done 35058 done 35059 IFS=$as_save_IFS 35060 35061 ;; 35062 esac 35063 fi 35064 STRIP=$ac_cv_path_STRIP 35065 if test -n "$STRIP"; then 35066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35067 $as_echo "$STRIP" >&6; } 35068 else 35069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35070 $as_echo "no" >&6; } 35071 fi 35072 35073 35074 test -n "$STRIP" && break 35075 done 35076 35077 else 35078 # The variable is set, but is it from the command line or the environment? 35079 35080 # Try to remove the string !STRIP! from our list. 35081 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35082 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35083 # If it failed, the variable was not from the command line. Ignore it, 35084 # but warn the user (except for BASH, which is always set by the calling BASH). 35085 if test "xSTRIP" != xBASH; then 35086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35087 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35088 fi 35089 # Try to locate tool using the code snippet 35090 for ac_prog in strip 35091 do 35092 # Extract the first word of "$ac_prog", so it can be a program name with args. 35093 set dummy $ac_prog; 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_STRIP+:} false; then : 35097 $as_echo_n "(cached) " >&6 35098 else 35099 case $STRIP in 35100 [\\/]* | ?:[\\/]*) 35101 ac_cv_path_STRIP="$STRIP" # 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_STRIP="$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 STRIP=$ac_cv_path_STRIP 35123 if test -n "$STRIP"; then 35124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35125 $as_echo "$STRIP" >&6; } 35126 else 35127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35128 $as_echo "no" >&6; } 35129 fi 35130 35131 35132 test -n "$STRIP" && break 35133 done 35134 35135 else 35136 # If it succeeded, then it was overridden by the user. We will use it 35137 # for the tool. 35138 35139 # First remove it from the list of overridden variables, so we can test 35140 # for unknown variables in the end. 35141 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35142 35143 # Check if the provided tool contains a complete path. 35144 tool_specified="$STRIP" 35145 tool_basename="${tool_specified##*/}" 35146 if test "x$tool_basename" = "x$tool_specified"; then 35147 # A command without a complete path is provided, search $PATH. 35148 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35149 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35150 # Extract the first word of "$tool_basename", so it can be a program name with args. 35151 set dummy $tool_basename; ac_word=$2 35152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35153 $as_echo_n "checking for $ac_word... " >&6; } 35154 if ${ac_cv_path_STRIP+:} false; then : 35155 $as_echo_n "(cached) " >&6 35156 else 35157 case $STRIP in 35158 [\\/]* | ?:[\\/]*) 35159 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35160 ;; 35161 *) 35162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35163 for as_dir in $PATH 35164 do 35165 IFS=$as_save_IFS 35166 test -z "$as_dir" && as_dir=. 35167 for ac_exec_ext in '' $ac_executable_extensions; do 35168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35169 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35171 break 2 35172 fi 35173 done 35174 done 35175 IFS=$as_save_IFS 35176 35177 ;; 35178 esac 35179 fi 35180 STRIP=$ac_cv_path_STRIP 35181 if test -n "$STRIP"; then 35182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35183 $as_echo "$STRIP" >&6; } 35184 else 35185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35186 $as_echo "no" >&6; } 35187 fi 35188 35189 35190 if test "x$STRIP" = x; then 35191 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35192 fi 35193 else 35194 # Otherwise we believe it is a complete path. Use it as it is. 35195 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35196 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35198 $as_echo_n "checking for STRIP... " >&6; } 35199 if test ! -x "$tool_specified"; then 35200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35201 $as_echo "not found" >&6; } 35202 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35203 fi 35204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35205 $as_echo "$tool_specified" >&6; } 35206 fi 35207 fi 35208 fi 35209 35210 35211 35212 # Only process if variable expands to non-empty 35213 35214 if test "x$STRIP" != x; then 35215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35216 35217 # First separate the path from the arguments. This will split at the first 35218 # space. 35219 complete="$STRIP" 35220 path="${complete%% *}" 35221 tmp="$complete EOL" 35222 arguments="${tmp#* }" 35223 35224 # Input might be given as Windows format, start by converting to 35225 # unix format. 35226 new_path=`$CYGPATH -u "$path"` 35227 35228 # Now try to locate executable using which 35229 new_path=`$WHICH "$new_path" 2> /dev/null` 35230 # bat and cmd files are not always considered executable in cygwin causing which 35231 # to not find them 35232 if test "x$new_path" = x \ 35233 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35234 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35235 new_path=`$CYGPATH -u "$path"` 35236 fi 35237 if test "x$new_path" = x; then 35238 # Oops. Which didn't find the executable. 35239 # The splitting of arguments from the executable at a space might have been incorrect, 35240 # since paths with space are more likely in Windows. Give it another try with the whole 35241 # argument. 35242 path="$complete" 35243 arguments="EOL" 35244 new_path=`$CYGPATH -u "$path"` 35245 new_path=`$WHICH "$new_path" 2> /dev/null` 35246 # bat and cmd files are not always considered executable in cygwin causing which 35247 # to not find them 35248 if test "x$new_path" = x \ 35249 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35250 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35251 new_path=`$CYGPATH -u "$path"` 35252 fi 35253 if test "x$new_path" = x; then 35254 # It's still not found. Now this is an unrecoverable error. 35255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35256 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35257 has_space=`$ECHO "$complete" | $GREP " "` 35258 if test "x$has_space" != x; then 35259 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35260 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35261 fi 35262 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35263 fi 35264 fi 35265 35266 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35267 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35268 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35269 # "foo.exe" is OK but "foo" is an error. 35270 # 35271 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35272 # It is also a way to make sure we got the proper file name for the real test later on. 35273 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35274 if test "x$test_shortpath" = x; then 35275 # Short path failed, file does not exist as specified. 35276 # Try adding .exe or .cmd 35277 if test -f "${new_path}.exe"; then 35278 input_to_shortpath="${new_path}.exe" 35279 elif test -f "${new_path}.cmd"; then 35280 input_to_shortpath="${new_path}.cmd" 35281 else 35282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35283 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35284 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35285 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35286 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35287 fi 35288 else 35289 input_to_shortpath="$new_path" 35290 fi 35291 35292 # Call helper function which possibly converts this using DOS-style short mode. 35293 # If so, the updated path is stored in $new_path. 35294 new_path="$input_to_shortpath" 35295 35296 input_path="$input_to_shortpath" 35297 # Check if we need to convert this using DOS-style short mode. If the path 35298 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35299 # take no chances and rewrite it. 35300 # Note: m4 eats our [], so we need to use [ and ] instead. 35301 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35302 if test "x$has_forbidden_chars" != x; then 35303 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35304 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35305 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35306 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35307 # Going to short mode and back again did indeed matter. Since short mode is 35308 # case insensitive, let's make it lowercase to improve readability. 35309 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35310 # Now convert it back to Unix-stile (cygpath) 35311 input_path=`$CYGPATH -u "$shortmode_path"` 35312 new_path="$input_path" 35313 fi 35314 fi 35315 35316 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35317 if test "x$test_cygdrive_prefix" = x; then 35318 # As a simple fix, exclude /usr/bin since it's not a real path. 35319 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35320 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35321 # a path prefixed by /cygdrive for fixpath to work. 35322 new_path="$CYGWIN_ROOT_PATH$input_path" 35323 fi 35324 fi 35325 35326 # remove trailing .exe if any 35327 new_path="${new_path/%.exe/}" 35328 35329 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35330 35331 # First separate the path from the arguments. This will split at the first 35332 # space. 35333 complete="$STRIP" 35334 path="${complete%% *}" 35335 tmp="$complete EOL" 35336 arguments="${tmp#* }" 35337 35338 # Input might be given as Windows format, start by converting to 35339 # unix format. 35340 new_path="$path" 35341 35342 windows_path="$new_path" 35343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35344 unix_path=`$CYGPATH -u "$windows_path"` 35345 new_path="$unix_path" 35346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35348 new_path="$unix_path" 35349 fi 35350 35351 35352 # Now try to locate executable using which 35353 new_path=`$WHICH "$new_path" 2> /dev/null` 35354 35355 if test "x$new_path" = x; then 35356 # Oops. Which didn't find the executable. 35357 # The splitting of arguments from the executable at a space might have been incorrect, 35358 # since paths with space are more likely in Windows. Give it another try with the whole 35359 # argument. 35360 path="$complete" 35361 arguments="EOL" 35362 new_path="$path" 35363 35364 windows_path="$new_path" 35365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35366 unix_path=`$CYGPATH -u "$windows_path"` 35367 new_path="$unix_path" 35368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35370 new_path="$unix_path" 35371 fi 35372 35373 35374 new_path=`$WHICH "$new_path" 2> /dev/null` 35375 # bat and cmd files are not always considered executable in MSYS causing which 35376 # to not find them 35377 if test "x$new_path" = x \ 35378 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35379 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35380 new_path="$path" 35381 35382 windows_path="$new_path" 35383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35384 unix_path=`$CYGPATH -u "$windows_path"` 35385 new_path="$unix_path" 35386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35388 new_path="$unix_path" 35389 fi 35390 35391 fi 35392 35393 if test "x$new_path" = x; then 35394 # It's still not found. Now this is an unrecoverable error. 35395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35396 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35397 has_space=`$ECHO "$complete" | $GREP " "` 35398 if test "x$has_space" != x; then 35399 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35400 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35401 fi 35402 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35403 fi 35404 fi 35405 35406 # Now new_path has a complete unix path to the binary 35407 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35408 # Keep paths in /bin as-is, but remove trailing .exe if any 35409 new_path="${new_path/%.exe/}" 35410 # Do not save /bin paths to all_fixpath_prefixes! 35411 else 35412 # Not in mixed or Windows style, start by that. 35413 new_path=`cmd //c echo $new_path` 35414 35415 input_path="$new_path" 35416 # Check if we need to convert this using DOS-style short mode. If the path 35417 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35418 # take no chances and rewrite it. 35419 # Note: m4 eats our [], so we need to use [ and ] instead. 35420 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35421 if test "x$has_forbidden_chars" != x; then 35422 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35423 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35424 fi 35425 35426 # Output is in $new_path 35427 35428 windows_path="$new_path" 35429 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35430 unix_path=`$CYGPATH -u "$windows_path"` 35431 new_path="$unix_path" 35432 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35433 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35434 new_path="$unix_path" 35435 fi 35436 35437 # remove trailing .exe if any 35438 new_path="${new_path/%.exe/}" 35439 35440 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35441 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35442 fi 35443 35444 else 35445 # We're on a unix platform. Hooray! :) 35446 # First separate the path from the arguments. This will split at the first 35447 # space. 35448 complete="$STRIP" 35449 path="${complete%% *}" 35450 tmp="$complete EOL" 35451 arguments="${tmp#* }" 35452 35453 # Cannot rely on the command "which" here since it doesn't always work. 35454 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35455 if test -z "$is_absolute_path"; then 35456 # Path to executable is not absolute. Find it. 35457 IFS_save="$IFS" 35458 IFS=: 35459 for p in $PATH; do 35460 if test -f "$p/$path" && test -x "$p/$path"; then 35461 new_path="$p/$path" 35462 break 35463 fi 35464 done 35465 IFS="$IFS_save" 35466 else 35467 # This is an absolute path, we can use it without further modifications. 35468 new_path="$path" 35469 fi 35470 35471 if test "x$new_path" = x; then 35472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35473 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35474 has_space=`$ECHO "$complete" | $GREP " "` 35475 if test "x$has_space" != x; then 35476 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35477 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35478 fi 35479 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35480 fi 35481 fi 35482 35483 # Now join together the path and the arguments once again 35484 if test "x$arguments" != xEOL; then 35485 new_complete="$new_path ${arguments% *}" 35486 else 35487 new_complete="$new_path" 35488 fi 35489 35490 if test "x$complete" != "x$new_complete"; then 35491 STRIP="$new_complete" 35492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35493 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35494 fi 35495 fi 35496 35497 35498 35499 # Publish this variable in the help. 35500 35501 35502 if test "x$NM" = x; then 35503 # The variable is not set by user, try to locate tool using the code snippet 35504 for ac_prog in nm 35505 do 35506 # Extract the first word of "$ac_prog", so it can be a program name with args. 35507 set dummy $ac_prog; ac_word=$2 35508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35509 $as_echo_n "checking for $ac_word... " >&6; } 35510 if ${ac_cv_path_NM+:} false; then : 35511 $as_echo_n "(cached) " >&6 35512 else 35513 case $NM in 35514 [\\/]* | ?:[\\/]*) 35515 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35516 ;; 35517 *) 35518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35519 for as_dir in $PATH 35520 do 35521 IFS=$as_save_IFS 35522 test -z "$as_dir" && as_dir=. 35523 for ac_exec_ext in '' $ac_executable_extensions; do 35524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35525 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35527 break 2 35528 fi 35529 done 35530 done 35531 IFS=$as_save_IFS 35532 35533 ;; 35534 esac 35535 fi 35536 NM=$ac_cv_path_NM 35537 if test -n "$NM"; then 35538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35539 $as_echo "$NM" >&6; } 35540 else 35541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35542 $as_echo "no" >&6; } 35543 fi 35544 35545 35546 test -n "$NM" && break 35547 done 35548 35549 else 35550 # The variable is set, but is it from the command line or the environment? 35551 35552 # Try to remove the string !NM! from our list. 35553 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35554 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35555 # If it failed, the variable was not from the command line. Ignore it, 35556 # but warn the user (except for BASH, which is always set by the calling BASH). 35557 if test "xNM" != xBASH; then 35558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35559 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35560 fi 35561 # Try to locate tool using the code snippet 35562 for ac_prog in nm 35563 do 35564 # Extract the first word of "$ac_prog", so it can be a program name with args. 35565 set dummy $ac_prog; ac_word=$2 35566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35567 $as_echo_n "checking for $ac_word... " >&6; } 35568 if ${ac_cv_path_NM+:} false; then : 35569 $as_echo_n "(cached) " >&6 35570 else 35571 case $NM in 35572 [\\/]* | ?:[\\/]*) 35573 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35574 ;; 35575 *) 35576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35577 for as_dir in $PATH 35578 do 35579 IFS=$as_save_IFS 35580 test -z "$as_dir" && as_dir=. 35581 for ac_exec_ext in '' $ac_executable_extensions; do 35582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35583 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35585 break 2 35586 fi 35587 done 35588 done 35589 IFS=$as_save_IFS 35590 35591 ;; 35592 esac 35593 fi 35594 NM=$ac_cv_path_NM 35595 if test -n "$NM"; then 35596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35597 $as_echo "$NM" >&6; } 35598 else 35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35600 $as_echo "no" >&6; } 35601 fi 35602 35603 35604 test -n "$NM" && break 35605 done 35606 35607 else 35608 # If it succeeded, then it was overridden by the user. We will use it 35609 # for the tool. 35610 35611 # First remove it from the list of overridden variables, so we can test 35612 # for unknown variables in the end. 35613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35614 35615 # Check if the provided tool contains a complete path. 35616 tool_specified="$NM" 35617 tool_basename="${tool_specified##*/}" 35618 if test "x$tool_basename" = "x$tool_specified"; then 35619 # A command without a complete path is provided, search $PATH. 35620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35621 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35622 # Extract the first word of "$tool_basename", so it can be a program name with args. 35623 set dummy $tool_basename; ac_word=$2 35624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35625 $as_echo_n "checking for $ac_word... " >&6; } 35626 if ${ac_cv_path_NM+:} false; then : 35627 $as_echo_n "(cached) " >&6 35628 else 35629 case $NM in 35630 [\\/]* | ?:[\\/]*) 35631 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35632 ;; 35633 *) 35634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35635 for as_dir in $PATH 35636 do 35637 IFS=$as_save_IFS 35638 test -z "$as_dir" && as_dir=. 35639 for ac_exec_ext in '' $ac_executable_extensions; do 35640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35641 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35643 break 2 35644 fi 35645 done 35646 done 35647 IFS=$as_save_IFS 35648 35649 ;; 35650 esac 35651 fi 35652 NM=$ac_cv_path_NM 35653 if test -n "$NM"; then 35654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35655 $as_echo "$NM" >&6; } 35656 else 35657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35658 $as_echo "no" >&6; } 35659 fi 35660 35661 35662 if test "x$NM" = x; then 35663 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35664 fi 35665 else 35666 # Otherwise we believe it is a complete path. Use it as it is. 35667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35668 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35670 $as_echo_n "checking for NM... " >&6; } 35671 if test ! -x "$tool_specified"; then 35672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35673 $as_echo "not found" >&6; } 35674 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35675 fi 35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35677 $as_echo "$tool_specified" >&6; } 35678 fi 35679 fi 35680 fi 35681 35682 35683 35684 # Only process if variable expands to non-empty 35685 35686 if test "x$NM" != x; then 35687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35688 35689 # First separate the path from the arguments. This will split at the first 35690 # space. 35691 complete="$NM" 35692 path="${complete%% *}" 35693 tmp="$complete EOL" 35694 arguments="${tmp#* }" 35695 35696 # Input might be given as Windows format, start by converting to 35697 # unix format. 35698 new_path=`$CYGPATH -u "$path"` 35699 35700 # Now try to locate executable using which 35701 new_path=`$WHICH "$new_path" 2> /dev/null` 35702 # bat and cmd files are not always considered executable in cygwin causing which 35703 # to not find them 35704 if test "x$new_path" = x \ 35705 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35706 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35707 new_path=`$CYGPATH -u "$path"` 35708 fi 35709 if test "x$new_path" = x; then 35710 # Oops. Which didn't find the executable. 35711 # The splitting of arguments from the executable at a space might have been incorrect, 35712 # since paths with space are more likely in Windows. Give it another try with the whole 35713 # argument. 35714 path="$complete" 35715 arguments="EOL" 35716 new_path=`$CYGPATH -u "$path"` 35717 new_path=`$WHICH "$new_path" 2> /dev/null` 35718 # bat and cmd files are not always considered executable in cygwin causing which 35719 # to not find them 35720 if test "x$new_path" = x \ 35721 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35722 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35723 new_path=`$CYGPATH -u "$path"` 35724 fi 35725 if test "x$new_path" = x; then 35726 # It's still not found. Now this is an unrecoverable error. 35727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35728 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35729 has_space=`$ECHO "$complete" | $GREP " "` 35730 if test "x$has_space" != x; then 35731 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35732 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35733 fi 35734 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35735 fi 35736 fi 35737 35738 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35739 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35740 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35741 # "foo.exe" is OK but "foo" is an error. 35742 # 35743 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35744 # It is also a way to make sure we got the proper file name for the real test later on. 35745 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35746 if test "x$test_shortpath" = x; then 35747 # Short path failed, file does not exist as specified. 35748 # Try adding .exe or .cmd 35749 if test -f "${new_path}.exe"; then 35750 input_to_shortpath="${new_path}.exe" 35751 elif test -f "${new_path}.cmd"; then 35752 input_to_shortpath="${new_path}.cmd" 35753 else 35754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35755 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35756 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35757 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35758 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35759 fi 35760 else 35761 input_to_shortpath="$new_path" 35762 fi 35763 35764 # Call helper function which possibly converts this using DOS-style short mode. 35765 # If so, the updated path is stored in $new_path. 35766 new_path="$input_to_shortpath" 35767 35768 input_path="$input_to_shortpath" 35769 # Check if we need to convert this using DOS-style short mode. If the path 35770 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35771 # take no chances and rewrite it. 35772 # Note: m4 eats our [], so we need to use [ and ] instead. 35773 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35774 if test "x$has_forbidden_chars" != x; then 35775 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35776 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35777 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35778 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35779 # Going to short mode and back again did indeed matter. Since short mode is 35780 # case insensitive, let's make it lowercase to improve readability. 35781 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35782 # Now convert it back to Unix-stile (cygpath) 35783 input_path=`$CYGPATH -u "$shortmode_path"` 35784 new_path="$input_path" 35785 fi 35786 fi 35787 35788 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35789 if test "x$test_cygdrive_prefix" = x; then 35790 # As a simple fix, exclude /usr/bin since it's not a real path. 35791 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35792 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35793 # a path prefixed by /cygdrive for fixpath to work. 35794 new_path="$CYGWIN_ROOT_PATH$input_path" 35795 fi 35796 fi 35797 35798 # remove trailing .exe if any 35799 new_path="${new_path/%.exe/}" 35800 35801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35802 35803 # First separate the path from the arguments. This will split at the first 35804 # space. 35805 complete="$NM" 35806 path="${complete%% *}" 35807 tmp="$complete EOL" 35808 arguments="${tmp#* }" 35809 35810 # Input might be given as Windows format, start by converting to 35811 # unix format. 35812 new_path="$path" 35813 35814 windows_path="$new_path" 35815 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35816 unix_path=`$CYGPATH -u "$windows_path"` 35817 new_path="$unix_path" 35818 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35819 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35820 new_path="$unix_path" 35821 fi 35822 35823 35824 # Now try to locate executable using which 35825 new_path=`$WHICH "$new_path" 2> /dev/null` 35826 35827 if test "x$new_path" = x; then 35828 # Oops. Which didn't find the executable. 35829 # The splitting of arguments from the executable at a space might have been incorrect, 35830 # since paths with space are more likely in Windows. Give it another try with the whole 35831 # argument. 35832 path="$complete" 35833 arguments="EOL" 35834 new_path="$path" 35835 35836 windows_path="$new_path" 35837 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35838 unix_path=`$CYGPATH -u "$windows_path"` 35839 new_path="$unix_path" 35840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35841 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35842 new_path="$unix_path" 35843 fi 35844 35845 35846 new_path=`$WHICH "$new_path" 2> /dev/null` 35847 # bat and cmd files are not always considered executable in MSYS causing which 35848 # to not find them 35849 if test "x$new_path" = x \ 35850 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35851 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35852 new_path="$path" 35853 35854 windows_path="$new_path" 35855 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35856 unix_path=`$CYGPATH -u "$windows_path"` 35857 new_path="$unix_path" 35858 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35859 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35860 new_path="$unix_path" 35861 fi 35862 35863 fi 35864 35865 if test "x$new_path" = x; then 35866 # It's still not found. Now this is an unrecoverable error. 35867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35868 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35869 has_space=`$ECHO "$complete" | $GREP " "` 35870 if test "x$has_space" != x; then 35871 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35872 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35873 fi 35874 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35875 fi 35876 fi 35877 35878 # Now new_path has a complete unix path to the binary 35879 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35880 # Keep paths in /bin as-is, but remove trailing .exe if any 35881 new_path="${new_path/%.exe/}" 35882 # Do not save /bin paths to all_fixpath_prefixes! 35883 else 35884 # Not in mixed or Windows style, start by that. 35885 new_path=`cmd //c echo $new_path` 35886 35887 input_path="$new_path" 35888 # Check if we need to convert this using DOS-style short mode. If the path 35889 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35890 # take no chances and rewrite it. 35891 # Note: m4 eats our [], so we need to use [ and ] instead. 35892 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35893 if test "x$has_forbidden_chars" != x; then 35894 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35895 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35896 fi 35897 35898 # Output is in $new_path 35899 35900 windows_path="$new_path" 35901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35902 unix_path=`$CYGPATH -u "$windows_path"` 35903 new_path="$unix_path" 35904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35906 new_path="$unix_path" 35907 fi 35908 35909 # remove trailing .exe if any 35910 new_path="${new_path/%.exe/}" 35911 35912 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35913 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35914 fi 35915 35916 else 35917 # We're on a unix platform. Hooray! :) 35918 # First separate the path from the arguments. This will split at the first 35919 # space. 35920 complete="$NM" 35921 path="${complete%% *}" 35922 tmp="$complete EOL" 35923 arguments="${tmp#* }" 35924 35925 # Cannot rely on the command "which" here since it doesn't always work. 35926 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35927 if test -z "$is_absolute_path"; then 35928 # Path to executable is not absolute. Find it. 35929 IFS_save="$IFS" 35930 IFS=: 35931 for p in $PATH; do 35932 if test -f "$p/$path" && test -x "$p/$path"; then 35933 new_path="$p/$path" 35934 break 35935 fi 35936 done 35937 IFS="$IFS_save" 35938 else 35939 # This is an absolute path, we can use it without further modifications. 35940 new_path="$path" 35941 fi 35942 35943 if test "x$new_path" = x; then 35944 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35945 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35946 has_space=`$ECHO "$complete" | $GREP " "` 35947 if test "x$has_space" != x; then 35948 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35949 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35950 fi 35951 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35952 fi 35953 fi 35954 35955 # Now join together the path and the arguments once again 35956 if test "x$arguments" != xEOL; then 35957 new_complete="$new_path ${arguments% *}" 35958 else 35959 new_complete="$new_path" 35960 fi 35961 35962 if test "x$complete" != "x$new_complete"; then 35963 NM="$new_complete" 35964 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35965 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35966 fi 35967 fi 35968 35969 35970 35971 # Publish this variable in the help. 35972 35973 35974 if test "x$GNM" = x; then 35975 # The variable is not set by user, try to locate tool using the code snippet 35976 for ac_prog in gnm 35977 do 35978 # Extract the first word of "$ac_prog", so it can be a program name with args. 35979 set dummy $ac_prog; ac_word=$2 35980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35981 $as_echo_n "checking for $ac_word... " >&6; } 35982 if ${ac_cv_path_GNM+:} false; then : 35983 $as_echo_n "(cached) " >&6 35984 else 35985 case $GNM in 35986 [\\/]* | ?:[\\/]*) 35987 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35988 ;; 35989 *) 35990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35991 for as_dir in $PATH 35992 do 35993 IFS=$as_save_IFS 35994 test -z "$as_dir" && as_dir=. 35995 for ac_exec_ext in '' $ac_executable_extensions; do 35996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35997 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35999 break 2 36000 fi 36001 done 36002 done 36003 IFS=$as_save_IFS 36004 36005 ;; 36006 esac 36007 fi 36008 GNM=$ac_cv_path_GNM 36009 if test -n "$GNM"; then 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36011 $as_echo "$GNM" >&6; } 36012 else 36013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36014 $as_echo "no" >&6; } 36015 fi 36016 36017 36018 test -n "$GNM" && break 36019 done 36020 36021 else 36022 # The variable is set, but is it from the command line or the environment? 36023 36024 # Try to remove the string !GNM! from our list. 36025 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36026 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36027 # If it failed, the variable was not from the command line. Ignore it, 36028 # but warn the user (except for BASH, which is always set by the calling BASH). 36029 if test "xGNM" != xBASH; then 36030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36031 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36032 fi 36033 # Try to locate tool using the code snippet 36034 for ac_prog in gnm 36035 do 36036 # Extract the first word of "$ac_prog", so it can be a program name with args. 36037 set dummy $ac_prog; ac_word=$2 36038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36039 $as_echo_n "checking for $ac_word... " >&6; } 36040 if ${ac_cv_path_GNM+:} false; then : 36041 $as_echo_n "(cached) " >&6 36042 else 36043 case $GNM in 36044 [\\/]* | ?:[\\/]*) 36045 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36046 ;; 36047 *) 36048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36049 for as_dir in $PATH 36050 do 36051 IFS=$as_save_IFS 36052 test -z "$as_dir" && as_dir=. 36053 for ac_exec_ext in '' $ac_executable_extensions; do 36054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36055 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36057 break 2 36058 fi 36059 done 36060 done 36061 IFS=$as_save_IFS 36062 36063 ;; 36064 esac 36065 fi 36066 GNM=$ac_cv_path_GNM 36067 if test -n "$GNM"; then 36068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36069 $as_echo "$GNM" >&6; } 36070 else 36071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36072 $as_echo "no" >&6; } 36073 fi 36074 36075 36076 test -n "$GNM" && break 36077 done 36078 36079 else 36080 # If it succeeded, then it was overridden by the user. We will use it 36081 # for the tool. 36082 36083 # First remove it from the list of overridden variables, so we can test 36084 # for unknown variables in the end. 36085 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36086 36087 # Check if the provided tool contains a complete path. 36088 tool_specified="$GNM" 36089 tool_basename="${tool_specified##*/}" 36090 if test "x$tool_basename" = "x$tool_specified"; then 36091 # A command without a complete path is provided, search $PATH. 36092 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36093 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36094 # Extract the first word of "$tool_basename", so it can be a program name with args. 36095 set dummy $tool_basename; ac_word=$2 36096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36097 $as_echo_n "checking for $ac_word... " >&6; } 36098 if ${ac_cv_path_GNM+:} false; then : 36099 $as_echo_n "(cached) " >&6 36100 else 36101 case $GNM in 36102 [\\/]* | ?:[\\/]*) 36103 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36104 ;; 36105 *) 36106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36107 for as_dir in $PATH 36108 do 36109 IFS=$as_save_IFS 36110 test -z "$as_dir" && as_dir=. 36111 for ac_exec_ext in '' $ac_executable_extensions; do 36112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36113 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36115 break 2 36116 fi 36117 done 36118 done 36119 IFS=$as_save_IFS 36120 36121 ;; 36122 esac 36123 fi 36124 GNM=$ac_cv_path_GNM 36125 if test -n "$GNM"; then 36126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36127 $as_echo "$GNM" >&6; } 36128 else 36129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36130 $as_echo "no" >&6; } 36131 fi 36132 36133 36134 if test "x$GNM" = x; then 36135 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36136 fi 36137 else 36138 # Otherwise we believe it is a complete path. Use it as it is. 36139 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 36140 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 36141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 36142 $as_echo_n "checking for GNM... " >&6; } 36143 if test ! -x "$tool_specified"; then 36144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36145 $as_echo "not found" >&6; } 36146 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 36147 fi 36148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36149 $as_echo "$tool_specified" >&6; } 36150 fi 36151 fi 36152 fi 36153 36154 36155 36156 # Only process if variable expands to non-empty 36157 36158 if test "x$GNM" != x; then 36159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36160 36161 # First separate the path from the arguments. This will split at the first 36162 # space. 36163 complete="$GNM" 36164 path="${complete%% *}" 36165 tmp="$complete EOL" 36166 arguments="${tmp#* }" 36167 36168 # Input might be given as Windows format, start by converting to 36169 # unix format. 36170 new_path=`$CYGPATH -u "$path"` 36171 36172 # Now try to locate executable using which 36173 new_path=`$WHICH "$new_path" 2> /dev/null` 36174 # bat and cmd files are not always considered executable in cygwin causing which 36175 # to not find them 36176 if test "x$new_path" = x \ 36177 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36178 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36179 new_path=`$CYGPATH -u "$path"` 36180 fi 36181 if test "x$new_path" = x; then 36182 # Oops. Which didn't find the executable. 36183 # The splitting of arguments from the executable at a space might have been incorrect, 36184 # since paths with space are more likely in Windows. Give it another try with the whole 36185 # argument. 36186 path="$complete" 36187 arguments="EOL" 36188 new_path=`$CYGPATH -u "$path"` 36189 new_path=`$WHICH "$new_path" 2> /dev/null` 36190 # bat and cmd files are not always considered executable in cygwin causing which 36191 # to not find them 36192 if test "x$new_path" = x \ 36193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36195 new_path=`$CYGPATH -u "$path"` 36196 fi 36197 if test "x$new_path" = x; then 36198 # It's still not found. Now this is an unrecoverable error. 36199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36200 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36201 has_space=`$ECHO "$complete" | $GREP " "` 36202 if test "x$has_space" != x; then 36203 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36204 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36205 fi 36206 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36207 fi 36208 fi 36209 36210 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36211 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36212 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36213 # "foo.exe" is OK but "foo" is an error. 36214 # 36215 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36216 # It is also a way to make sure we got the proper file name for the real test later on. 36217 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36218 if test "x$test_shortpath" = x; then 36219 # Short path failed, file does not exist as specified. 36220 # Try adding .exe or .cmd 36221 if test -f "${new_path}.exe"; then 36222 input_to_shortpath="${new_path}.exe" 36223 elif test -f "${new_path}.cmd"; then 36224 input_to_shortpath="${new_path}.cmd" 36225 else 36226 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36227 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36228 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36229 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36230 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36231 fi 36232 else 36233 input_to_shortpath="$new_path" 36234 fi 36235 36236 # Call helper function which possibly converts this using DOS-style short mode. 36237 # If so, the updated path is stored in $new_path. 36238 new_path="$input_to_shortpath" 36239 36240 input_path="$input_to_shortpath" 36241 # Check if we need to convert this using DOS-style short mode. If the path 36242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36243 # take no chances and rewrite it. 36244 # Note: m4 eats our [], so we need to use [ and ] instead. 36245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36246 if test "x$has_forbidden_chars" != x; then 36247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36251 # Going to short mode and back again did indeed matter. Since short mode is 36252 # case insensitive, let's make it lowercase to improve readability. 36253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36254 # Now convert it back to Unix-stile (cygpath) 36255 input_path=`$CYGPATH -u "$shortmode_path"` 36256 new_path="$input_path" 36257 fi 36258 fi 36259 36260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36261 if test "x$test_cygdrive_prefix" = x; then 36262 # As a simple fix, exclude /usr/bin since it's not a real path. 36263 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36265 # a path prefixed by /cygdrive for fixpath to work. 36266 new_path="$CYGWIN_ROOT_PATH$input_path" 36267 fi 36268 fi 36269 36270 # remove trailing .exe if any 36271 new_path="${new_path/%.exe/}" 36272 36273 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36274 36275 # First separate the path from the arguments. This will split at the first 36276 # space. 36277 complete="$GNM" 36278 path="${complete%% *}" 36279 tmp="$complete EOL" 36280 arguments="${tmp#* }" 36281 36282 # Input might be given as Windows format, start by converting to 36283 # unix format. 36284 new_path="$path" 36285 36286 windows_path="$new_path" 36287 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36288 unix_path=`$CYGPATH -u "$windows_path"` 36289 new_path="$unix_path" 36290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36291 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36292 new_path="$unix_path" 36293 fi 36294 36295 36296 # Now try to locate executable using which 36297 new_path=`$WHICH "$new_path" 2> /dev/null` 36298 36299 if test "x$new_path" = x; then 36300 # Oops. Which didn't find the executable. 36301 # The splitting of arguments from the executable at a space might have been incorrect, 36302 # since paths with space are more likely in Windows. Give it another try with the whole 36303 # argument. 36304 path="$complete" 36305 arguments="EOL" 36306 new_path="$path" 36307 36308 windows_path="$new_path" 36309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36310 unix_path=`$CYGPATH -u "$windows_path"` 36311 new_path="$unix_path" 36312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36313 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36314 new_path="$unix_path" 36315 fi 36316 36317 36318 new_path=`$WHICH "$new_path" 2> /dev/null` 36319 # bat and cmd files are not always considered executable in MSYS causing which 36320 # to not find them 36321 if test "x$new_path" = x \ 36322 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36323 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36324 new_path="$path" 36325 36326 windows_path="$new_path" 36327 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36328 unix_path=`$CYGPATH -u "$windows_path"` 36329 new_path="$unix_path" 36330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36331 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36332 new_path="$unix_path" 36333 fi 36334 36335 fi 36336 36337 if test "x$new_path" = x; then 36338 # It's still not found. Now this is an unrecoverable error. 36339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36340 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36341 has_space=`$ECHO "$complete" | $GREP " "` 36342 if test "x$has_space" != x; then 36343 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36344 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36345 fi 36346 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36347 fi 36348 fi 36349 36350 # Now new_path has a complete unix path to the binary 36351 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36352 # Keep paths in /bin as-is, but remove trailing .exe if any 36353 new_path="${new_path/%.exe/}" 36354 # Do not save /bin paths to all_fixpath_prefixes! 36355 else 36356 # Not in mixed or Windows style, start by that. 36357 new_path=`cmd //c echo $new_path` 36358 36359 input_path="$new_path" 36360 # Check if we need to convert this using DOS-style short mode. If the path 36361 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36362 # take no chances and rewrite it. 36363 # Note: m4 eats our [], so we need to use [ and ] instead. 36364 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36365 if test "x$has_forbidden_chars" != x; then 36366 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36367 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36368 fi 36369 36370 # Output is in $new_path 36371 36372 windows_path="$new_path" 36373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36374 unix_path=`$CYGPATH -u "$windows_path"` 36375 new_path="$unix_path" 36376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36378 new_path="$unix_path" 36379 fi 36380 36381 # remove trailing .exe if any 36382 new_path="${new_path/%.exe/}" 36383 36384 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36385 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36386 fi 36387 36388 else 36389 # We're on a unix platform. Hooray! :) 36390 # First separate the path from the arguments. This will split at the first 36391 # space. 36392 complete="$GNM" 36393 path="${complete%% *}" 36394 tmp="$complete EOL" 36395 arguments="${tmp#* }" 36396 36397 # Cannot rely on the command "which" here since it doesn't always work. 36398 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36399 if test -z "$is_absolute_path"; then 36400 # Path to executable is not absolute. Find it. 36401 IFS_save="$IFS" 36402 IFS=: 36403 for p in $PATH; do 36404 if test -f "$p/$path" && test -x "$p/$path"; then 36405 new_path="$p/$path" 36406 break 36407 fi 36408 done 36409 IFS="$IFS_save" 36410 else 36411 # This is an absolute path, we can use it without further modifications. 36412 new_path="$path" 36413 fi 36414 36415 if test "x$new_path" = x; then 36416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36417 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36418 has_space=`$ECHO "$complete" | $GREP " "` 36419 if test "x$has_space" != x; then 36420 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36421 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36422 fi 36423 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36424 fi 36425 fi 36426 36427 # Now join together the path and the arguments once again 36428 if test "x$arguments" != xEOL; then 36429 new_complete="$new_path ${arguments% *}" 36430 else 36431 new_complete="$new_path" 36432 fi 36433 36434 if test "x$complete" != "x$new_complete"; then 36435 GNM="$new_complete" 36436 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36437 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36438 fi 36439 fi 36440 36441 36442 36443 36444 # Publish this variable in the help. 36445 36446 36447 if test "x$MCS" = x; then 36448 # The variable is not set by user, try to locate tool using the code snippet 36449 for ac_prog in mcs 36450 do 36451 # Extract the first word of "$ac_prog", so it can be a program name with args. 36452 set dummy $ac_prog; ac_word=$2 36453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36454 $as_echo_n "checking for $ac_word... " >&6; } 36455 if ${ac_cv_path_MCS+:} false; then : 36456 $as_echo_n "(cached) " >&6 36457 else 36458 case $MCS in 36459 [\\/]* | ?:[\\/]*) 36460 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36461 ;; 36462 *) 36463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36464 for as_dir in $PATH 36465 do 36466 IFS=$as_save_IFS 36467 test -z "$as_dir" && as_dir=. 36468 for ac_exec_ext in '' $ac_executable_extensions; do 36469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36470 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36472 break 2 36473 fi 36474 done 36475 done 36476 IFS=$as_save_IFS 36477 36478 ;; 36479 esac 36480 fi 36481 MCS=$ac_cv_path_MCS 36482 if test -n "$MCS"; then 36483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36484 $as_echo "$MCS" >&6; } 36485 else 36486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36487 $as_echo "no" >&6; } 36488 fi 36489 36490 36491 test -n "$MCS" && break 36492 done 36493 36494 else 36495 # The variable is set, but is it from the command line or the environment? 36496 36497 # Try to remove the string !MCS! from our list. 36498 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36499 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36500 # If it failed, the variable was not from the command line. Ignore it, 36501 # but warn the user (except for BASH, which is always set by the calling BASH). 36502 if test "xMCS" != xBASH; then 36503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36504 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36505 fi 36506 # Try to locate tool using the code snippet 36507 for ac_prog in mcs 36508 do 36509 # Extract the first word of "$ac_prog", so it can be a program name with args. 36510 set dummy $ac_prog; ac_word=$2 36511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36512 $as_echo_n "checking for $ac_word... " >&6; } 36513 if ${ac_cv_path_MCS+:} false; then : 36514 $as_echo_n "(cached) " >&6 36515 else 36516 case $MCS in 36517 [\\/]* | ?:[\\/]*) 36518 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36519 ;; 36520 *) 36521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36522 for as_dir in $PATH 36523 do 36524 IFS=$as_save_IFS 36525 test -z "$as_dir" && as_dir=. 36526 for ac_exec_ext in '' $ac_executable_extensions; do 36527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36528 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36530 break 2 36531 fi 36532 done 36533 done 36534 IFS=$as_save_IFS 36535 36536 ;; 36537 esac 36538 fi 36539 MCS=$ac_cv_path_MCS 36540 if test -n "$MCS"; then 36541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36542 $as_echo "$MCS" >&6; } 36543 else 36544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36545 $as_echo "no" >&6; } 36546 fi 36547 36548 36549 test -n "$MCS" && break 36550 done 36551 36552 else 36553 # If it succeeded, then it was overridden by the user. We will use it 36554 # for the tool. 36555 36556 # First remove it from the list of overridden variables, so we can test 36557 # for unknown variables in the end. 36558 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36559 36560 # Check if the provided tool contains a complete path. 36561 tool_specified="$MCS" 36562 tool_basename="${tool_specified##*/}" 36563 if test "x$tool_basename" = "x$tool_specified"; then 36564 # A command without a complete path is provided, search $PATH. 36565 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36566 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36567 # Extract the first word of "$tool_basename", so it can be a program name with args. 36568 set dummy $tool_basename; ac_word=$2 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36570 $as_echo_n "checking for $ac_word... " >&6; } 36571 if ${ac_cv_path_MCS+:} false; then : 36572 $as_echo_n "(cached) " >&6 36573 else 36574 case $MCS in 36575 [\\/]* | ?:[\\/]*) 36576 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36577 ;; 36578 *) 36579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36580 for as_dir in $PATH 36581 do 36582 IFS=$as_save_IFS 36583 test -z "$as_dir" && as_dir=. 36584 for ac_exec_ext in '' $ac_executable_extensions; do 36585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36586 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36588 break 2 36589 fi 36590 done 36591 done 36592 IFS=$as_save_IFS 36593 36594 ;; 36595 esac 36596 fi 36597 MCS=$ac_cv_path_MCS 36598 if test -n "$MCS"; then 36599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36600 $as_echo "$MCS" >&6; } 36601 else 36602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36603 $as_echo "no" >&6; } 36604 fi 36605 36606 36607 if test "x$MCS" = x; then 36608 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36609 fi 36610 else 36611 # Otherwise we believe it is a complete path. Use it as it is. 36612 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36613 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36615 $as_echo_n "checking for MCS... " >&6; } 36616 if test ! -x "$tool_specified"; then 36617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36618 $as_echo "not found" >&6; } 36619 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36620 fi 36621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36622 $as_echo "$tool_specified" >&6; } 36623 fi 36624 fi 36625 fi 36626 36627 36628 36629 # Only process if variable expands to non-empty 36630 36631 if test "x$MCS" != x; then 36632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36633 36634 # First separate the path from the arguments. This will split at the first 36635 # space. 36636 complete="$MCS" 36637 path="${complete%% *}" 36638 tmp="$complete EOL" 36639 arguments="${tmp#* }" 36640 36641 # Input might be given as Windows format, start by converting to 36642 # unix format. 36643 new_path=`$CYGPATH -u "$path"` 36644 36645 # Now try to locate executable using which 36646 new_path=`$WHICH "$new_path" 2> /dev/null` 36647 # bat and cmd files are not always considered executable in cygwin causing which 36648 # to not find them 36649 if test "x$new_path" = x \ 36650 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36651 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36652 new_path=`$CYGPATH -u "$path"` 36653 fi 36654 if test "x$new_path" = x; then 36655 # Oops. Which didn't find the executable. 36656 # The splitting of arguments from the executable at a space might have been incorrect, 36657 # since paths with space are more likely in Windows. Give it another try with the whole 36658 # argument. 36659 path="$complete" 36660 arguments="EOL" 36661 new_path=`$CYGPATH -u "$path"` 36662 new_path=`$WHICH "$new_path" 2> /dev/null` 36663 # bat and cmd files are not always considered executable in cygwin causing which 36664 # to not find them 36665 if test "x$new_path" = x \ 36666 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36667 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36668 new_path=`$CYGPATH -u "$path"` 36669 fi 36670 if test "x$new_path" = x; then 36671 # It's still not found. Now this is an unrecoverable error. 36672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36673 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36674 has_space=`$ECHO "$complete" | $GREP " "` 36675 if test "x$has_space" != x; then 36676 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36677 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36678 fi 36679 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36680 fi 36681 fi 36682 36683 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36684 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36685 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36686 # "foo.exe" is OK but "foo" is an error. 36687 # 36688 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36689 # It is also a way to make sure we got the proper file name for the real test later on. 36690 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36691 if test "x$test_shortpath" = x; then 36692 # Short path failed, file does not exist as specified. 36693 # Try adding .exe or .cmd 36694 if test -f "${new_path}.exe"; then 36695 input_to_shortpath="${new_path}.exe" 36696 elif test -f "${new_path}.cmd"; then 36697 input_to_shortpath="${new_path}.cmd" 36698 else 36699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36700 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36701 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36702 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36703 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36704 fi 36705 else 36706 input_to_shortpath="$new_path" 36707 fi 36708 36709 # Call helper function which possibly converts this using DOS-style short mode. 36710 # If so, the updated path is stored in $new_path. 36711 new_path="$input_to_shortpath" 36712 36713 input_path="$input_to_shortpath" 36714 # Check if we need to convert this using DOS-style short mode. If the path 36715 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36716 # take no chances and rewrite it. 36717 # Note: m4 eats our [], so we need to use [ and ] instead. 36718 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36719 if test "x$has_forbidden_chars" != x; then 36720 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36721 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36722 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36723 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36724 # Going to short mode and back again did indeed matter. Since short mode is 36725 # case insensitive, let's make it lowercase to improve readability. 36726 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36727 # Now convert it back to Unix-stile (cygpath) 36728 input_path=`$CYGPATH -u "$shortmode_path"` 36729 new_path="$input_path" 36730 fi 36731 fi 36732 36733 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36734 if test "x$test_cygdrive_prefix" = x; then 36735 # As a simple fix, exclude /usr/bin since it's not a real path. 36736 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36737 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36738 # a path prefixed by /cygdrive for fixpath to work. 36739 new_path="$CYGWIN_ROOT_PATH$input_path" 36740 fi 36741 fi 36742 36743 # remove trailing .exe if any 36744 new_path="${new_path/%.exe/}" 36745 36746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36747 36748 # First separate the path from the arguments. This will split at the first 36749 # space. 36750 complete="$MCS" 36751 path="${complete%% *}" 36752 tmp="$complete EOL" 36753 arguments="${tmp#* }" 36754 36755 # Input might be given as Windows format, start by converting to 36756 # unix format. 36757 new_path="$path" 36758 36759 windows_path="$new_path" 36760 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36761 unix_path=`$CYGPATH -u "$windows_path"` 36762 new_path="$unix_path" 36763 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36764 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36765 new_path="$unix_path" 36766 fi 36767 36768 36769 # Now try to locate executable using which 36770 new_path=`$WHICH "$new_path" 2> /dev/null` 36771 36772 if test "x$new_path" = x; then 36773 # Oops. Which didn't find the executable. 36774 # The splitting of arguments from the executable at a space might have been incorrect, 36775 # since paths with space are more likely in Windows. Give it another try with the whole 36776 # argument. 36777 path="$complete" 36778 arguments="EOL" 36779 new_path="$path" 36780 36781 windows_path="$new_path" 36782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36783 unix_path=`$CYGPATH -u "$windows_path"` 36784 new_path="$unix_path" 36785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36787 new_path="$unix_path" 36788 fi 36789 36790 36791 new_path=`$WHICH "$new_path" 2> /dev/null` 36792 # bat and cmd files are not always considered executable in MSYS causing which 36793 # to not find them 36794 if test "x$new_path" = x \ 36795 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36796 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36797 new_path="$path" 36798 36799 windows_path="$new_path" 36800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36801 unix_path=`$CYGPATH -u "$windows_path"` 36802 new_path="$unix_path" 36803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36804 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36805 new_path="$unix_path" 36806 fi 36807 36808 fi 36809 36810 if test "x$new_path" = x; then 36811 # It's still not found. Now this is an unrecoverable error. 36812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36813 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36814 has_space=`$ECHO "$complete" | $GREP " "` 36815 if test "x$has_space" != x; then 36816 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36817 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36818 fi 36819 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36820 fi 36821 fi 36822 36823 # Now new_path has a complete unix path to the binary 36824 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36825 # Keep paths in /bin as-is, but remove trailing .exe if any 36826 new_path="${new_path/%.exe/}" 36827 # Do not save /bin paths to all_fixpath_prefixes! 36828 else 36829 # Not in mixed or Windows style, start by that. 36830 new_path=`cmd //c echo $new_path` 36831 36832 input_path="$new_path" 36833 # Check if we need to convert this using DOS-style short mode. If the path 36834 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36835 # take no chances and rewrite it. 36836 # Note: m4 eats our [], so we need to use [ and ] instead. 36837 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36838 if test "x$has_forbidden_chars" != x; then 36839 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36840 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36841 fi 36842 36843 # Output is in $new_path 36844 36845 windows_path="$new_path" 36846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36847 unix_path=`$CYGPATH -u "$windows_path"` 36848 new_path="$unix_path" 36849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36850 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36851 new_path="$unix_path" 36852 fi 36853 36854 # remove trailing .exe if any 36855 new_path="${new_path/%.exe/}" 36856 36857 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36858 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36859 fi 36860 36861 else 36862 # We're on a unix platform. Hooray! :) 36863 # First separate the path from the arguments. This will split at the first 36864 # space. 36865 complete="$MCS" 36866 path="${complete%% *}" 36867 tmp="$complete EOL" 36868 arguments="${tmp#* }" 36869 36870 # Cannot rely on the command "which" here since it doesn't always work. 36871 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36872 if test -z "$is_absolute_path"; then 36873 # Path to executable is not absolute. Find it. 36874 IFS_save="$IFS" 36875 IFS=: 36876 for p in $PATH; do 36877 if test -f "$p/$path" && test -x "$p/$path"; then 36878 new_path="$p/$path" 36879 break 36880 fi 36881 done 36882 IFS="$IFS_save" 36883 else 36884 # This is an absolute path, we can use it without further modifications. 36885 new_path="$path" 36886 fi 36887 36888 if test "x$new_path" = x; then 36889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36890 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36891 has_space=`$ECHO "$complete" | $GREP " "` 36892 if test "x$has_space" != x; then 36893 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36894 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36895 fi 36896 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36897 fi 36898 fi 36899 36900 # Now join together the path and the arguments once again 36901 if test "x$arguments" != xEOL; then 36902 new_complete="$new_path ${arguments% *}" 36903 else 36904 new_complete="$new_path" 36905 fi 36906 36907 if test "x$complete" != "x$new_complete"; then 36908 MCS="$new_complete" 36909 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36910 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36911 fi 36912 fi 36913 36914 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36915 # FIXME: we should unify this with the solaris case above. 36916 36917 36918 # Publish this variable in the help. 36919 36920 36921 if test "x$STRIP" = x; then 36922 # The variable is not set by user, try to locate tool using the code snippet 36923 if test -n "$ac_tool_prefix"; then 36924 for ac_prog in strip 36925 do 36926 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36927 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36929 $as_echo_n "checking for $ac_word... " >&6; } 36930 if ${ac_cv_prog_STRIP+:} false; then : 36931 $as_echo_n "(cached) " >&6 36932 else 36933 if test -n "$STRIP"; then 36934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36935 else 36936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36937 for as_dir in $PATH 36938 do 36939 IFS=$as_save_IFS 36940 test -z "$as_dir" && as_dir=. 36941 for ac_exec_ext in '' $ac_executable_extensions; do 36942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36943 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36945 break 2 36946 fi 36947 done 36948 done 36949 IFS=$as_save_IFS 36950 36951 fi 36952 fi 36953 STRIP=$ac_cv_prog_STRIP 36954 if test -n "$STRIP"; then 36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36956 $as_echo "$STRIP" >&6; } 36957 else 36958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36959 $as_echo "no" >&6; } 36960 fi 36961 36962 36963 test -n "$STRIP" && break 36964 done 36965 fi 36966 if test -z "$STRIP"; then 36967 ac_ct_STRIP=$STRIP 36968 for ac_prog in strip 36969 do 36970 # Extract the first word of "$ac_prog", so it can be a program name with args. 36971 set dummy $ac_prog; ac_word=$2 36972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36973 $as_echo_n "checking for $ac_word... " >&6; } 36974 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36975 $as_echo_n "(cached) " >&6 36976 else 36977 if test -n "$ac_ct_STRIP"; then 36978 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36979 else 36980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36981 for as_dir in $PATH 36982 do 36983 IFS=$as_save_IFS 36984 test -z "$as_dir" && as_dir=. 36985 for ac_exec_ext in '' $ac_executable_extensions; do 36986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36987 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36989 break 2 36990 fi 36991 done 36992 done 36993 IFS=$as_save_IFS 36994 36995 fi 36996 fi 36997 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36998 if test -n "$ac_ct_STRIP"; then 36999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37000 $as_echo "$ac_ct_STRIP" >&6; } 37001 else 37002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37003 $as_echo "no" >&6; } 37004 fi 37005 37006 37007 test -n "$ac_ct_STRIP" && break 37008 done 37009 37010 if test "x$ac_ct_STRIP" = x; then 37011 STRIP="" 37012 else 37013 case $cross_compiling:$ac_tool_warned in 37014 yes:) 37015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37017 ac_tool_warned=yes ;; 37018 esac 37019 STRIP=$ac_ct_STRIP 37020 fi 37021 fi 37022 37023 else 37024 # The variable is set, but is it from the command line or the environment? 37025 37026 # Try to remove the string !STRIP! from our list. 37027 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37028 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37029 # If it failed, the variable was not from the command line. Ignore it, 37030 # but warn the user (except for BASH, which is always set by the calling BASH). 37031 if test "xSTRIP" != xBASH; then 37032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37033 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37034 fi 37035 # Try to locate tool using the code snippet 37036 if test -n "$ac_tool_prefix"; then 37037 for ac_prog in strip 37038 do 37039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37042 $as_echo_n "checking for $ac_word... " >&6; } 37043 if ${ac_cv_prog_STRIP+:} false; then : 37044 $as_echo_n "(cached) " >&6 37045 else 37046 if test -n "$STRIP"; then 37047 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 37048 else 37049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37050 for as_dir in $PATH 37051 do 37052 IFS=$as_save_IFS 37053 test -z "$as_dir" && as_dir=. 37054 for ac_exec_ext in '' $ac_executable_extensions; do 37055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37056 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 37057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37058 break 2 37059 fi 37060 done 37061 done 37062 IFS=$as_save_IFS 37063 37064 fi 37065 fi 37066 STRIP=$ac_cv_prog_STRIP 37067 if test -n "$STRIP"; then 37068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37069 $as_echo "$STRIP" >&6; } 37070 else 37071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37072 $as_echo "no" >&6; } 37073 fi 37074 37075 37076 test -n "$STRIP" && break 37077 done 37078 fi 37079 if test -z "$STRIP"; then 37080 ac_ct_STRIP=$STRIP 37081 for ac_prog in strip 37082 do 37083 # Extract the first word of "$ac_prog", so it can be a program name with args. 37084 set dummy $ac_prog; ac_word=$2 37085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37086 $as_echo_n "checking for $ac_word... " >&6; } 37087 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 37088 $as_echo_n "(cached) " >&6 37089 else 37090 if test -n "$ac_ct_STRIP"; then 37091 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 37092 else 37093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37094 for as_dir in $PATH 37095 do 37096 IFS=$as_save_IFS 37097 test -z "$as_dir" && as_dir=. 37098 for ac_exec_ext in '' $ac_executable_extensions; do 37099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37100 ac_cv_prog_ac_ct_STRIP="$ac_prog" 37101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37102 break 2 37103 fi 37104 done 37105 done 37106 IFS=$as_save_IFS 37107 37108 fi 37109 fi 37110 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 37111 if test -n "$ac_ct_STRIP"; then 37112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 37113 $as_echo "$ac_ct_STRIP" >&6; } 37114 else 37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37116 $as_echo "no" >&6; } 37117 fi 37118 37119 37120 test -n "$ac_ct_STRIP" && break 37121 done 37122 37123 if test "x$ac_ct_STRIP" = x; then 37124 STRIP="" 37125 else 37126 case $cross_compiling:$ac_tool_warned in 37127 yes:) 37128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37130 ac_tool_warned=yes ;; 37131 esac 37132 STRIP=$ac_ct_STRIP 37133 fi 37134 fi 37135 37136 else 37137 # If it succeeded, then it was overridden by the user. We will use it 37138 # for the tool. 37139 37140 # First remove it from the list of overridden variables, so we can test 37141 # for unknown variables in the end. 37142 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37143 37144 # Check if the provided tool contains a complete path. 37145 tool_specified="$STRIP" 37146 tool_basename="${tool_specified##*/}" 37147 if test "x$tool_basename" = "x$tool_specified"; then 37148 # A command without a complete path is provided, search $PATH. 37149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37150 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37151 # Extract the first word of "$tool_basename", so it can be a program name with args. 37152 set dummy $tool_basename; ac_word=$2 37153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37154 $as_echo_n "checking for $ac_word... " >&6; } 37155 if ${ac_cv_path_STRIP+:} false; then : 37156 $as_echo_n "(cached) " >&6 37157 else 37158 case $STRIP in 37159 [\\/]* | ?:[\\/]*) 37160 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37161 ;; 37162 *) 37163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37164 for as_dir in $PATH 37165 do 37166 IFS=$as_save_IFS 37167 test -z "$as_dir" && as_dir=. 37168 for ac_exec_ext in '' $ac_executable_extensions; do 37169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37170 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37172 break 2 37173 fi 37174 done 37175 done 37176 IFS=$as_save_IFS 37177 37178 ;; 37179 esac 37180 fi 37181 STRIP=$ac_cv_path_STRIP 37182 if test -n "$STRIP"; then 37183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37184 $as_echo "$STRIP" >&6; } 37185 else 37186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37187 $as_echo "no" >&6; } 37188 fi 37189 37190 37191 if test "x$STRIP" = x; then 37192 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37193 fi 37194 else 37195 # Otherwise we believe it is a complete path. Use it as it is. 37196 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37197 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37199 $as_echo_n "checking for STRIP... " >&6; } 37200 if test ! -x "$tool_specified"; then 37201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37202 $as_echo "not found" >&6; } 37203 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37204 fi 37205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37206 $as_echo "$tool_specified" >&6; } 37207 fi 37208 fi 37209 fi 37210 37211 37212 37213 # Only process if variable expands to non-empty 37214 37215 if test "x$STRIP" != x; then 37216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37217 37218 # First separate the path from the arguments. This will split at the first 37219 # space. 37220 complete="$STRIP" 37221 path="${complete%% *}" 37222 tmp="$complete EOL" 37223 arguments="${tmp#* }" 37224 37225 # Input might be given as Windows format, start by converting to 37226 # unix format. 37227 new_path=`$CYGPATH -u "$path"` 37228 37229 # Now try to locate executable using which 37230 new_path=`$WHICH "$new_path" 2> /dev/null` 37231 # bat and cmd files are not always considered executable in cygwin causing which 37232 # to not find them 37233 if test "x$new_path" = x \ 37234 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37235 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37236 new_path=`$CYGPATH -u "$path"` 37237 fi 37238 if test "x$new_path" = x; then 37239 # Oops. Which didn't find the executable. 37240 # The splitting of arguments from the executable at a space might have been incorrect, 37241 # since paths with space are more likely in Windows. Give it another try with the whole 37242 # argument. 37243 path="$complete" 37244 arguments="EOL" 37245 new_path=`$CYGPATH -u "$path"` 37246 new_path=`$WHICH "$new_path" 2> /dev/null` 37247 # bat and cmd files are not always considered executable in cygwin causing which 37248 # to not find them 37249 if test "x$new_path" = x \ 37250 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37251 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37252 new_path=`$CYGPATH -u "$path"` 37253 fi 37254 if test "x$new_path" = x; then 37255 # It's still not found. Now this is an unrecoverable error. 37256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37257 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37258 has_space=`$ECHO "$complete" | $GREP " "` 37259 if test "x$has_space" != x; then 37260 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37261 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37262 fi 37263 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37264 fi 37265 fi 37266 37267 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37268 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37269 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37270 # "foo.exe" is OK but "foo" is an error. 37271 # 37272 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37273 # It is also a way to make sure we got the proper file name for the real test later on. 37274 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37275 if test "x$test_shortpath" = x; then 37276 # Short path failed, file does not exist as specified. 37277 # Try adding .exe or .cmd 37278 if test -f "${new_path}.exe"; then 37279 input_to_shortpath="${new_path}.exe" 37280 elif test -f "${new_path}.cmd"; then 37281 input_to_shortpath="${new_path}.cmd" 37282 else 37283 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37284 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37285 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37286 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37287 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37288 fi 37289 else 37290 input_to_shortpath="$new_path" 37291 fi 37292 37293 # Call helper function which possibly converts this using DOS-style short mode. 37294 # If so, the updated path is stored in $new_path. 37295 new_path="$input_to_shortpath" 37296 37297 input_path="$input_to_shortpath" 37298 # Check if we need to convert this using DOS-style short mode. If the path 37299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37300 # take no chances and rewrite it. 37301 # Note: m4 eats our [], so we need to use [ and ] instead. 37302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37303 if test "x$has_forbidden_chars" != x; then 37304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37308 # Going to short mode and back again did indeed matter. Since short mode is 37309 # case insensitive, let's make it lowercase to improve readability. 37310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37311 # Now convert it back to Unix-stile (cygpath) 37312 input_path=`$CYGPATH -u "$shortmode_path"` 37313 new_path="$input_path" 37314 fi 37315 fi 37316 37317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37318 if test "x$test_cygdrive_prefix" = x; then 37319 # As a simple fix, exclude /usr/bin since it's not a real path. 37320 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37322 # a path prefixed by /cygdrive for fixpath to work. 37323 new_path="$CYGWIN_ROOT_PATH$input_path" 37324 fi 37325 fi 37326 37327 # remove trailing .exe if any 37328 new_path="${new_path/%.exe/}" 37329 37330 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37331 37332 # First separate the path from the arguments. This will split at the first 37333 # space. 37334 complete="$STRIP" 37335 path="${complete%% *}" 37336 tmp="$complete EOL" 37337 arguments="${tmp#* }" 37338 37339 # Input might be given as Windows format, start by converting to 37340 # unix format. 37341 new_path="$path" 37342 37343 windows_path="$new_path" 37344 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37345 unix_path=`$CYGPATH -u "$windows_path"` 37346 new_path="$unix_path" 37347 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37348 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37349 new_path="$unix_path" 37350 fi 37351 37352 37353 # Now try to locate executable using which 37354 new_path=`$WHICH "$new_path" 2> /dev/null` 37355 37356 if test "x$new_path" = x; then 37357 # Oops. Which didn't find the executable. 37358 # The splitting of arguments from the executable at a space might have been incorrect, 37359 # since paths with space are more likely in Windows. Give it another try with the whole 37360 # argument. 37361 path="$complete" 37362 arguments="EOL" 37363 new_path="$path" 37364 37365 windows_path="$new_path" 37366 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37367 unix_path=`$CYGPATH -u "$windows_path"` 37368 new_path="$unix_path" 37369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37370 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37371 new_path="$unix_path" 37372 fi 37373 37374 37375 new_path=`$WHICH "$new_path" 2> /dev/null` 37376 # bat and cmd files are not always considered executable in MSYS causing which 37377 # to not find them 37378 if test "x$new_path" = x \ 37379 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37380 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37381 new_path="$path" 37382 37383 windows_path="$new_path" 37384 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37385 unix_path=`$CYGPATH -u "$windows_path"` 37386 new_path="$unix_path" 37387 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37388 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37389 new_path="$unix_path" 37390 fi 37391 37392 fi 37393 37394 if test "x$new_path" = x; then 37395 # It's still not found. Now this is an unrecoverable error. 37396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37397 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37398 has_space=`$ECHO "$complete" | $GREP " "` 37399 if test "x$has_space" != x; then 37400 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37401 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37402 fi 37403 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37404 fi 37405 fi 37406 37407 # Now new_path has a complete unix path to the binary 37408 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37409 # Keep paths in /bin as-is, but remove trailing .exe if any 37410 new_path="${new_path/%.exe/}" 37411 # Do not save /bin paths to all_fixpath_prefixes! 37412 else 37413 # Not in mixed or Windows style, start by that. 37414 new_path=`cmd //c echo $new_path` 37415 37416 input_path="$new_path" 37417 # Check if we need to convert this using DOS-style short mode. If the path 37418 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37419 # take no chances and rewrite it. 37420 # Note: m4 eats our [], so we need to use [ and ] instead. 37421 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37422 if test "x$has_forbidden_chars" != x; then 37423 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37424 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37425 fi 37426 37427 # Output is in $new_path 37428 37429 windows_path="$new_path" 37430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37431 unix_path=`$CYGPATH -u "$windows_path"` 37432 new_path="$unix_path" 37433 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37434 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37435 new_path="$unix_path" 37436 fi 37437 37438 # remove trailing .exe if any 37439 new_path="${new_path/%.exe/}" 37440 37441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37443 fi 37444 37445 else 37446 # We're on a unix platform. Hooray! :) 37447 # First separate the path from the arguments. This will split at the first 37448 # space. 37449 complete="$STRIP" 37450 path="${complete%% *}" 37451 tmp="$complete EOL" 37452 arguments="${tmp#* }" 37453 37454 # Cannot rely on the command "which" here since it doesn't always work. 37455 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37456 if test -z "$is_absolute_path"; then 37457 # Path to executable is not absolute. Find it. 37458 IFS_save="$IFS" 37459 IFS=: 37460 for p in $PATH; do 37461 if test -f "$p/$path" && test -x "$p/$path"; then 37462 new_path="$p/$path" 37463 break 37464 fi 37465 done 37466 IFS="$IFS_save" 37467 else 37468 # This is an absolute path, we can use it without further modifications. 37469 new_path="$path" 37470 fi 37471 37472 if test "x$new_path" = x; then 37473 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37474 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37475 has_space=`$ECHO "$complete" | $GREP " "` 37476 if test "x$has_space" != x; then 37477 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37478 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37479 fi 37480 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37481 fi 37482 fi 37483 37484 # Now join together the path and the arguments once again 37485 if test "x$arguments" != xEOL; then 37486 new_complete="$new_path ${arguments% *}" 37487 else 37488 new_complete="$new_path" 37489 fi 37490 37491 if test "x$complete" != "x$new_complete"; then 37492 STRIP="$new_complete" 37493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37494 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37495 fi 37496 fi 37497 37498 37499 37500 # Publish this variable in the help. 37501 37502 37503 if test "x$NM" = x; then 37504 # The variable is not set by user, try to locate tool using the code snippet 37505 if test -n "$ac_tool_prefix"; then 37506 for ac_prog in nm 37507 do 37508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37511 $as_echo_n "checking for $ac_word... " >&6; } 37512 if ${ac_cv_prog_NM+:} false; then : 37513 $as_echo_n "(cached) " >&6 37514 else 37515 if test -n "$NM"; then 37516 ac_cv_prog_NM="$NM" # Let the user override the test. 37517 else 37518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37519 for as_dir in $PATH 37520 do 37521 IFS=$as_save_IFS 37522 test -z "$as_dir" && as_dir=. 37523 for ac_exec_ext in '' $ac_executable_extensions; do 37524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37525 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37527 break 2 37528 fi 37529 done 37530 done 37531 IFS=$as_save_IFS 37532 37533 fi 37534 fi 37535 NM=$ac_cv_prog_NM 37536 if test -n "$NM"; then 37537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37538 $as_echo "$NM" >&6; } 37539 else 37540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37541 $as_echo "no" >&6; } 37542 fi 37543 37544 37545 test -n "$NM" && break 37546 done 37547 fi 37548 if test -z "$NM"; then 37549 ac_ct_NM=$NM 37550 for ac_prog in nm 37551 do 37552 # Extract the first word of "$ac_prog", so it can be a program name with args. 37553 set dummy $ac_prog; ac_word=$2 37554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37555 $as_echo_n "checking for $ac_word... " >&6; } 37556 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37557 $as_echo_n "(cached) " >&6 37558 else 37559 if test -n "$ac_ct_NM"; then 37560 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37561 else 37562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37563 for as_dir in $PATH 37564 do 37565 IFS=$as_save_IFS 37566 test -z "$as_dir" && as_dir=. 37567 for ac_exec_ext in '' $ac_executable_extensions; do 37568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37569 ac_cv_prog_ac_ct_NM="$ac_prog" 37570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37571 break 2 37572 fi 37573 done 37574 done 37575 IFS=$as_save_IFS 37576 37577 fi 37578 fi 37579 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37580 if test -n "$ac_ct_NM"; then 37581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37582 $as_echo "$ac_ct_NM" >&6; } 37583 else 37584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37585 $as_echo "no" >&6; } 37586 fi 37587 37588 37589 test -n "$ac_ct_NM" && break 37590 done 37591 37592 if test "x$ac_ct_NM" = x; then 37593 NM="" 37594 else 37595 case $cross_compiling:$ac_tool_warned in 37596 yes:) 37597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37599 ac_tool_warned=yes ;; 37600 esac 37601 NM=$ac_ct_NM 37602 fi 37603 fi 37604 37605 else 37606 # The variable is set, but is it from the command line or the environment? 37607 37608 # Try to remove the string !NM! from our list. 37609 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37610 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37611 # If it failed, the variable was not from the command line. Ignore it, 37612 # but warn the user (except for BASH, which is always set by the calling BASH). 37613 if test "xNM" != xBASH; then 37614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37615 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37616 fi 37617 # Try to locate tool using the code snippet 37618 if test -n "$ac_tool_prefix"; then 37619 for ac_prog in nm 37620 do 37621 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37622 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37624 $as_echo_n "checking for $ac_word... " >&6; } 37625 if ${ac_cv_prog_NM+:} false; then : 37626 $as_echo_n "(cached) " >&6 37627 else 37628 if test -n "$NM"; then 37629 ac_cv_prog_NM="$NM" # Let the user override the test. 37630 else 37631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37632 for as_dir in $PATH 37633 do 37634 IFS=$as_save_IFS 37635 test -z "$as_dir" && as_dir=. 37636 for ac_exec_ext in '' $ac_executable_extensions; do 37637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37638 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37640 break 2 37641 fi 37642 done 37643 done 37644 IFS=$as_save_IFS 37645 37646 fi 37647 fi 37648 NM=$ac_cv_prog_NM 37649 if test -n "$NM"; then 37650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37651 $as_echo "$NM" >&6; } 37652 else 37653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37654 $as_echo "no" >&6; } 37655 fi 37656 37657 37658 test -n "$NM" && break 37659 done 37660 fi 37661 if test -z "$NM"; then 37662 ac_ct_NM=$NM 37663 for ac_prog in nm 37664 do 37665 # Extract the first word of "$ac_prog", so it can be a program name with args. 37666 set dummy $ac_prog; ac_word=$2 37667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37668 $as_echo_n "checking for $ac_word... " >&6; } 37669 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37670 $as_echo_n "(cached) " >&6 37671 else 37672 if test -n "$ac_ct_NM"; then 37673 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37674 else 37675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37676 for as_dir in $PATH 37677 do 37678 IFS=$as_save_IFS 37679 test -z "$as_dir" && as_dir=. 37680 for ac_exec_ext in '' $ac_executable_extensions; do 37681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37682 ac_cv_prog_ac_ct_NM="$ac_prog" 37683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37684 break 2 37685 fi 37686 done 37687 done 37688 IFS=$as_save_IFS 37689 37690 fi 37691 fi 37692 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37693 if test -n "$ac_ct_NM"; then 37694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37695 $as_echo "$ac_ct_NM" >&6; } 37696 else 37697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37698 $as_echo "no" >&6; } 37699 fi 37700 37701 37702 test -n "$ac_ct_NM" && break 37703 done 37704 37705 if test "x$ac_ct_NM" = x; then 37706 NM="" 37707 else 37708 case $cross_compiling:$ac_tool_warned in 37709 yes:) 37710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37712 ac_tool_warned=yes ;; 37713 esac 37714 NM=$ac_ct_NM 37715 fi 37716 fi 37717 37718 else 37719 # If it succeeded, then it was overridden by the user. We will use it 37720 # for the tool. 37721 37722 # First remove it from the list of overridden variables, so we can test 37723 # for unknown variables in the end. 37724 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37725 37726 # Check if the provided tool contains a complete path. 37727 tool_specified="$NM" 37728 tool_basename="${tool_specified##*/}" 37729 if test "x$tool_basename" = "x$tool_specified"; then 37730 # A command without a complete path is provided, search $PATH. 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37732 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37733 # Extract the first word of "$tool_basename", so it can be a program name with args. 37734 set dummy $tool_basename; ac_word=$2 37735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37736 $as_echo_n "checking for $ac_word... " >&6; } 37737 if ${ac_cv_path_NM+:} false; then : 37738 $as_echo_n "(cached) " >&6 37739 else 37740 case $NM in 37741 [\\/]* | ?:[\\/]*) 37742 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37743 ;; 37744 *) 37745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37746 for as_dir in $PATH 37747 do 37748 IFS=$as_save_IFS 37749 test -z "$as_dir" && as_dir=. 37750 for ac_exec_ext in '' $ac_executable_extensions; do 37751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37752 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37754 break 2 37755 fi 37756 done 37757 done 37758 IFS=$as_save_IFS 37759 37760 ;; 37761 esac 37762 fi 37763 NM=$ac_cv_path_NM 37764 if test -n "$NM"; then 37765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37766 $as_echo "$NM" >&6; } 37767 else 37768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37769 $as_echo "no" >&6; } 37770 fi 37771 37772 37773 if test "x$NM" = x; then 37774 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37775 fi 37776 else 37777 # Otherwise we believe it is a complete path. Use it as it is. 37778 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37779 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37781 $as_echo_n "checking for NM... " >&6; } 37782 if test ! -x "$tool_specified"; then 37783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37784 $as_echo "not found" >&6; } 37785 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37786 fi 37787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37788 $as_echo "$tool_specified" >&6; } 37789 fi 37790 fi 37791 fi 37792 37793 37794 37795 # Only process if variable expands to non-empty 37796 37797 if test "x$NM" != x; then 37798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37799 37800 # First separate the path from the arguments. This will split at the first 37801 # space. 37802 complete="$NM" 37803 path="${complete%% *}" 37804 tmp="$complete EOL" 37805 arguments="${tmp#* }" 37806 37807 # Input might be given as Windows format, start by converting to 37808 # unix format. 37809 new_path=`$CYGPATH -u "$path"` 37810 37811 # Now try to locate executable using which 37812 new_path=`$WHICH "$new_path" 2> /dev/null` 37813 # bat and cmd files are not always considered executable in cygwin causing which 37814 # to not find them 37815 if test "x$new_path" = x \ 37816 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37817 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37818 new_path=`$CYGPATH -u "$path"` 37819 fi 37820 if test "x$new_path" = x; then 37821 # Oops. Which didn't find the executable. 37822 # The splitting of arguments from the executable at a space might have been incorrect, 37823 # since paths with space are more likely in Windows. Give it another try with the whole 37824 # argument. 37825 path="$complete" 37826 arguments="EOL" 37827 new_path=`$CYGPATH -u "$path"` 37828 new_path=`$WHICH "$new_path" 2> /dev/null` 37829 # bat and cmd files are not always considered executable in cygwin causing which 37830 # to not find them 37831 if test "x$new_path" = x \ 37832 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37833 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37834 new_path=`$CYGPATH -u "$path"` 37835 fi 37836 if test "x$new_path" = x; then 37837 # It's still not found. Now this is an unrecoverable error. 37838 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37839 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37840 has_space=`$ECHO "$complete" | $GREP " "` 37841 if test "x$has_space" != x; then 37842 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37843 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37844 fi 37845 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37846 fi 37847 fi 37848 37849 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37850 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37851 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37852 # "foo.exe" is OK but "foo" is an error. 37853 # 37854 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37855 # It is also a way to make sure we got the proper file name for the real test later on. 37856 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37857 if test "x$test_shortpath" = x; then 37858 # Short path failed, file does not exist as specified. 37859 # Try adding .exe or .cmd 37860 if test -f "${new_path}.exe"; then 37861 input_to_shortpath="${new_path}.exe" 37862 elif test -f "${new_path}.cmd"; then 37863 input_to_shortpath="${new_path}.cmd" 37864 else 37865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37866 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37867 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37868 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37869 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37870 fi 37871 else 37872 input_to_shortpath="$new_path" 37873 fi 37874 37875 # Call helper function which possibly converts this using DOS-style short mode. 37876 # If so, the updated path is stored in $new_path. 37877 new_path="$input_to_shortpath" 37878 37879 input_path="$input_to_shortpath" 37880 # Check if we need to convert this using DOS-style short mode. If the path 37881 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37882 # take no chances and rewrite it. 37883 # Note: m4 eats our [], so we need to use [ and ] instead. 37884 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37885 if test "x$has_forbidden_chars" != x; then 37886 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37887 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37888 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37889 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37890 # Going to short mode and back again did indeed matter. Since short mode is 37891 # case insensitive, let's make it lowercase to improve readability. 37892 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37893 # Now convert it back to Unix-stile (cygpath) 37894 input_path=`$CYGPATH -u "$shortmode_path"` 37895 new_path="$input_path" 37896 fi 37897 fi 37898 37899 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37900 if test "x$test_cygdrive_prefix" = x; then 37901 # As a simple fix, exclude /usr/bin since it's not a real path. 37902 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37903 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37904 # a path prefixed by /cygdrive for fixpath to work. 37905 new_path="$CYGWIN_ROOT_PATH$input_path" 37906 fi 37907 fi 37908 37909 # remove trailing .exe if any 37910 new_path="${new_path/%.exe/}" 37911 37912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37913 37914 # First separate the path from the arguments. This will split at the first 37915 # space. 37916 complete="$NM" 37917 path="${complete%% *}" 37918 tmp="$complete EOL" 37919 arguments="${tmp#* }" 37920 37921 # Input might be given as Windows format, start by converting to 37922 # unix format. 37923 new_path="$path" 37924 37925 windows_path="$new_path" 37926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37927 unix_path=`$CYGPATH -u "$windows_path"` 37928 new_path="$unix_path" 37929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37931 new_path="$unix_path" 37932 fi 37933 37934 37935 # Now try to locate executable using which 37936 new_path=`$WHICH "$new_path" 2> /dev/null` 37937 37938 if test "x$new_path" = x; then 37939 # Oops. Which didn't find the executable. 37940 # The splitting of arguments from the executable at a space might have been incorrect, 37941 # since paths with space are more likely in Windows. Give it another try with the whole 37942 # argument. 37943 path="$complete" 37944 arguments="EOL" 37945 new_path="$path" 37946 37947 windows_path="$new_path" 37948 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37949 unix_path=`$CYGPATH -u "$windows_path"` 37950 new_path="$unix_path" 37951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37952 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37953 new_path="$unix_path" 37954 fi 37955 37956 37957 new_path=`$WHICH "$new_path" 2> /dev/null` 37958 # bat and cmd files are not always considered executable in MSYS causing which 37959 # to not find them 37960 if test "x$new_path" = x \ 37961 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37962 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37963 new_path="$path" 37964 37965 windows_path="$new_path" 37966 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37967 unix_path=`$CYGPATH -u "$windows_path"` 37968 new_path="$unix_path" 37969 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37970 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37971 new_path="$unix_path" 37972 fi 37973 37974 fi 37975 37976 if test "x$new_path" = x; then 37977 # It's still not found. Now this is an unrecoverable error. 37978 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37979 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37980 has_space=`$ECHO "$complete" | $GREP " "` 37981 if test "x$has_space" != x; then 37982 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37983 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37984 fi 37985 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37986 fi 37987 fi 37988 37989 # Now new_path has a complete unix path to the binary 37990 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37991 # Keep paths in /bin as-is, but remove trailing .exe if any 37992 new_path="${new_path/%.exe/}" 37993 # Do not save /bin paths to all_fixpath_prefixes! 37994 else 37995 # Not in mixed or Windows style, start by that. 37996 new_path=`cmd //c echo $new_path` 37997 37998 input_path="$new_path" 37999 # Check if we need to convert this using DOS-style short mode. If the path 38000 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38001 # take no chances and rewrite it. 38002 # Note: m4 eats our [], so we need to use [ and ] instead. 38003 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38004 if test "x$has_forbidden_chars" != x; then 38005 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38006 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38007 fi 38008 38009 # Output is in $new_path 38010 38011 windows_path="$new_path" 38012 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38013 unix_path=`$CYGPATH -u "$windows_path"` 38014 new_path="$unix_path" 38015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38016 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38017 new_path="$unix_path" 38018 fi 38019 38020 # remove trailing .exe if any 38021 new_path="${new_path/%.exe/}" 38022 38023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38025 fi 38026 38027 else 38028 # We're on a unix platform. Hooray! :) 38029 # First separate the path from the arguments. This will split at the first 38030 # space. 38031 complete="$NM" 38032 path="${complete%% *}" 38033 tmp="$complete EOL" 38034 arguments="${tmp#* }" 38035 38036 # Cannot rely on the command "which" here since it doesn't always work. 38037 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38038 if test -z "$is_absolute_path"; then 38039 # Path to executable is not absolute. Find it. 38040 IFS_save="$IFS" 38041 IFS=: 38042 for p in $PATH; do 38043 if test -f "$p/$path" && test -x "$p/$path"; then 38044 new_path="$p/$path" 38045 break 38046 fi 38047 done 38048 IFS="$IFS_save" 38049 else 38050 # This is an absolute path, we can use it without further modifications. 38051 new_path="$path" 38052 fi 38053 38054 if test "x$new_path" = x; then 38055 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38056 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38057 has_space=`$ECHO "$complete" | $GREP " "` 38058 if test "x$has_space" != x; then 38059 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38060 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38061 fi 38062 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38063 fi 38064 fi 38065 38066 # Now join together the path and the arguments once again 38067 if test "x$arguments" != xEOL; then 38068 new_complete="$new_path ${arguments% *}" 38069 else 38070 new_complete="$new_path" 38071 fi 38072 38073 if test "x$complete" != "x$new_complete"; then 38074 NM="$new_complete" 38075 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38076 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38077 fi 38078 fi 38079 38080 GNM="$NM" 38081 38082 fi 38083 38084 # objcopy is used for moving debug symbols to separate files when 38085 # full debug symbols are enabled. 38086 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 38087 38088 38089 # Publish this variable in the help. 38090 38091 38092 if test "x$OBJCOPY" = x; then 38093 # The variable is not set by user, try to locate tool using the code snippet 38094 if test -n "$ac_tool_prefix"; then 38095 for ac_prog in gobjcopy objcopy 38096 do 38097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38100 $as_echo_n "checking for $ac_word... " >&6; } 38101 if ${ac_cv_prog_OBJCOPY+:} false; then : 38102 $as_echo_n "(cached) " >&6 38103 else 38104 if test -n "$OBJCOPY"; then 38105 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38106 else 38107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38108 for as_dir in $PATH 38109 do 38110 IFS=$as_save_IFS 38111 test -z "$as_dir" && as_dir=. 38112 for ac_exec_ext in '' $ac_executable_extensions; do 38113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38114 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38116 break 2 38117 fi 38118 done 38119 done 38120 IFS=$as_save_IFS 38121 38122 fi 38123 fi 38124 OBJCOPY=$ac_cv_prog_OBJCOPY 38125 if test -n "$OBJCOPY"; then 38126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38127 $as_echo "$OBJCOPY" >&6; } 38128 else 38129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38130 $as_echo "no" >&6; } 38131 fi 38132 38133 38134 test -n "$OBJCOPY" && break 38135 done 38136 fi 38137 if test -z "$OBJCOPY"; then 38138 ac_ct_OBJCOPY=$OBJCOPY 38139 for ac_prog in gobjcopy objcopy 38140 do 38141 # Extract the first word of "$ac_prog", so it can be a program name with args. 38142 set dummy $ac_prog; ac_word=$2 38143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38144 $as_echo_n "checking for $ac_word... " >&6; } 38145 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38146 $as_echo_n "(cached) " >&6 38147 else 38148 if test -n "$ac_ct_OBJCOPY"; then 38149 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38150 else 38151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38152 for as_dir in $PATH 38153 do 38154 IFS=$as_save_IFS 38155 test -z "$as_dir" && as_dir=. 38156 for ac_exec_ext in '' $ac_executable_extensions; do 38157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38158 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38160 break 2 38161 fi 38162 done 38163 done 38164 IFS=$as_save_IFS 38165 38166 fi 38167 fi 38168 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38169 if test -n "$ac_ct_OBJCOPY"; then 38170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38171 $as_echo "$ac_ct_OBJCOPY" >&6; } 38172 else 38173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38174 $as_echo "no" >&6; } 38175 fi 38176 38177 38178 test -n "$ac_ct_OBJCOPY" && break 38179 done 38180 38181 if test "x$ac_ct_OBJCOPY" = x; then 38182 OBJCOPY="" 38183 else 38184 case $cross_compiling:$ac_tool_warned in 38185 yes:) 38186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38188 ac_tool_warned=yes ;; 38189 esac 38190 OBJCOPY=$ac_ct_OBJCOPY 38191 fi 38192 fi 38193 38194 else 38195 # The variable is set, but is it from the command line or the environment? 38196 38197 # Try to remove the string !OBJCOPY! from our list. 38198 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 38199 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38200 # If it failed, the variable was not from the command line. Ignore it, 38201 # but warn the user (except for BASH, which is always set by the calling BASH). 38202 if test "xOBJCOPY" != xBASH; then 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 38204 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 38205 fi 38206 # Try to locate tool using the code snippet 38207 if test -n "$ac_tool_prefix"; then 38208 for ac_prog in gobjcopy objcopy 38209 do 38210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38213 $as_echo_n "checking for $ac_word... " >&6; } 38214 if ${ac_cv_prog_OBJCOPY+:} false; then : 38215 $as_echo_n "(cached) " >&6 38216 else 38217 if test -n "$OBJCOPY"; then 38218 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38219 else 38220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38221 for as_dir in $PATH 38222 do 38223 IFS=$as_save_IFS 38224 test -z "$as_dir" && as_dir=. 38225 for ac_exec_ext in '' $ac_executable_extensions; do 38226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38227 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38229 break 2 38230 fi 38231 done 38232 done 38233 IFS=$as_save_IFS 38234 38235 fi 38236 fi 38237 OBJCOPY=$ac_cv_prog_OBJCOPY 38238 if test -n "$OBJCOPY"; then 38239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38240 $as_echo "$OBJCOPY" >&6; } 38241 else 38242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38243 $as_echo "no" >&6; } 38244 fi 38245 38246 38247 test -n "$OBJCOPY" && break 38248 done 38249 fi 38250 if test -z "$OBJCOPY"; then 38251 ac_ct_OBJCOPY=$OBJCOPY 38252 for ac_prog in gobjcopy objcopy 38253 do 38254 # Extract the first word of "$ac_prog", so it can be a program name with args. 38255 set dummy $ac_prog; ac_word=$2 38256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38257 $as_echo_n "checking for $ac_word... " >&6; } 38258 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38259 $as_echo_n "(cached) " >&6 38260 else 38261 if test -n "$ac_ct_OBJCOPY"; then 38262 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38263 else 38264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38265 for as_dir in $PATH 38266 do 38267 IFS=$as_save_IFS 38268 test -z "$as_dir" && as_dir=. 38269 for ac_exec_ext in '' $ac_executable_extensions; do 38270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38271 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38273 break 2 38274 fi 38275 done 38276 done 38277 IFS=$as_save_IFS 38278 38279 fi 38280 fi 38281 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38282 if test -n "$ac_ct_OBJCOPY"; then 38283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38284 $as_echo "$ac_ct_OBJCOPY" >&6; } 38285 else 38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38287 $as_echo "no" >&6; } 38288 fi 38289 38290 38291 test -n "$ac_ct_OBJCOPY" && break 38292 done 38293 38294 if test "x$ac_ct_OBJCOPY" = x; then 38295 OBJCOPY="" 38296 else 38297 case $cross_compiling:$ac_tool_warned in 38298 yes:) 38299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38300 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38301 ac_tool_warned=yes ;; 38302 esac 38303 OBJCOPY=$ac_ct_OBJCOPY 38304 fi 38305 fi 38306 38307 else 38308 # If it succeeded, then it was overridden by the user. We will use it 38309 # for the tool. 38310 38311 # First remove it from the list of overridden variables, so we can test 38312 # for unknown variables in the end. 38313 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38314 38315 # Check if the provided tool contains a complete path. 38316 tool_specified="$OBJCOPY" 38317 tool_basename="${tool_specified##*/}" 38318 if test "x$tool_basename" = "x$tool_specified"; then 38319 # A command without a complete path is provided, search $PATH. 38320 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38321 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38322 # Extract the first word of "$tool_basename", so it can be a program name with args. 38323 set dummy $tool_basename; ac_word=$2 38324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38325 $as_echo_n "checking for $ac_word... " >&6; } 38326 if ${ac_cv_path_OBJCOPY+:} false; then : 38327 $as_echo_n "(cached) " >&6 38328 else 38329 case $OBJCOPY in 38330 [\\/]* | ?:[\\/]*) 38331 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38332 ;; 38333 *) 38334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38335 for as_dir in $PATH 38336 do 38337 IFS=$as_save_IFS 38338 test -z "$as_dir" && as_dir=. 38339 for ac_exec_ext in '' $ac_executable_extensions; do 38340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38341 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38343 break 2 38344 fi 38345 done 38346 done 38347 IFS=$as_save_IFS 38348 38349 ;; 38350 esac 38351 fi 38352 OBJCOPY=$ac_cv_path_OBJCOPY 38353 if test -n "$OBJCOPY"; then 38354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38355 $as_echo "$OBJCOPY" >&6; } 38356 else 38357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38358 $as_echo "no" >&6; } 38359 fi 38360 38361 38362 if test "x$OBJCOPY" = x; then 38363 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38364 fi 38365 else 38366 # Otherwise we believe it is a complete path. Use it as it is. 38367 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38368 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38370 $as_echo_n "checking for OBJCOPY... " >&6; } 38371 if test ! -x "$tool_specified"; then 38372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38373 $as_echo "not found" >&6; } 38374 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38375 fi 38376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38377 $as_echo "$tool_specified" >&6; } 38378 fi 38379 fi 38380 fi 38381 38382 38383 # Only call fixup if objcopy was found. 38384 if test -n "$OBJCOPY"; then 38385 38386 # Only process if variable expands to non-empty 38387 38388 if test "x$OBJCOPY" != x; then 38389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38390 38391 # First separate the path from the arguments. This will split at the first 38392 # space. 38393 complete="$OBJCOPY" 38394 path="${complete%% *}" 38395 tmp="$complete EOL" 38396 arguments="${tmp#* }" 38397 38398 # Input might be given as Windows format, start by converting to 38399 # unix format. 38400 new_path=`$CYGPATH -u "$path"` 38401 38402 # Now try to locate executable using which 38403 new_path=`$WHICH "$new_path" 2> /dev/null` 38404 # bat and cmd files are not always considered executable in cygwin causing which 38405 # to not find them 38406 if test "x$new_path" = x \ 38407 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38408 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38409 new_path=`$CYGPATH -u "$path"` 38410 fi 38411 if test "x$new_path" = x; then 38412 # Oops. Which didn't find the executable. 38413 # The splitting of arguments from the executable at a space might have been incorrect, 38414 # since paths with space are more likely in Windows. Give it another try with the whole 38415 # argument. 38416 path="$complete" 38417 arguments="EOL" 38418 new_path=`$CYGPATH -u "$path"` 38419 new_path=`$WHICH "$new_path" 2> /dev/null` 38420 # bat and cmd files are not always considered executable in cygwin causing which 38421 # to not find them 38422 if test "x$new_path" = x \ 38423 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38424 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38425 new_path=`$CYGPATH -u "$path"` 38426 fi 38427 if test "x$new_path" = x; then 38428 # It's still not found. Now this is an unrecoverable error. 38429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38430 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38431 has_space=`$ECHO "$complete" | $GREP " "` 38432 if test "x$has_space" != x; then 38433 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38434 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38435 fi 38436 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38437 fi 38438 fi 38439 38440 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38441 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38442 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38443 # "foo.exe" is OK but "foo" is an error. 38444 # 38445 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38446 # It is also a way to make sure we got the proper file name for the real test later on. 38447 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38448 if test "x$test_shortpath" = x; then 38449 # Short path failed, file does not exist as specified. 38450 # Try adding .exe or .cmd 38451 if test -f "${new_path}.exe"; then 38452 input_to_shortpath="${new_path}.exe" 38453 elif test -f "${new_path}.cmd"; then 38454 input_to_shortpath="${new_path}.cmd" 38455 else 38456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38457 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38458 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38459 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38460 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38461 fi 38462 else 38463 input_to_shortpath="$new_path" 38464 fi 38465 38466 # Call helper function which possibly converts this using DOS-style short mode. 38467 # If so, the updated path is stored in $new_path. 38468 new_path="$input_to_shortpath" 38469 38470 input_path="$input_to_shortpath" 38471 # Check if we need to convert this using DOS-style short mode. If the path 38472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38473 # take no chances and rewrite it. 38474 # Note: m4 eats our [], so we need to use [ and ] instead. 38475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38476 if test "x$has_forbidden_chars" != x; then 38477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38478 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38479 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38480 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38481 # Going to short mode and back again did indeed matter. Since short mode is 38482 # case insensitive, let's make it lowercase to improve readability. 38483 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38484 # Now convert it back to Unix-stile (cygpath) 38485 input_path=`$CYGPATH -u "$shortmode_path"` 38486 new_path="$input_path" 38487 fi 38488 fi 38489 38490 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38491 if test "x$test_cygdrive_prefix" = x; then 38492 # As a simple fix, exclude /usr/bin since it's not a real path. 38493 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38494 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38495 # a path prefixed by /cygdrive for fixpath to work. 38496 new_path="$CYGWIN_ROOT_PATH$input_path" 38497 fi 38498 fi 38499 38500 # remove trailing .exe if any 38501 new_path="${new_path/%.exe/}" 38502 38503 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38504 38505 # First separate the path from the arguments. This will split at the first 38506 # space. 38507 complete="$OBJCOPY" 38508 path="${complete%% *}" 38509 tmp="$complete EOL" 38510 arguments="${tmp#* }" 38511 38512 # Input might be given as Windows format, start by converting to 38513 # unix format. 38514 new_path="$path" 38515 38516 windows_path="$new_path" 38517 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38518 unix_path=`$CYGPATH -u "$windows_path"` 38519 new_path="$unix_path" 38520 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38521 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38522 new_path="$unix_path" 38523 fi 38524 38525 38526 # Now try to locate executable using which 38527 new_path=`$WHICH "$new_path" 2> /dev/null` 38528 38529 if test "x$new_path" = x; then 38530 # Oops. Which didn't find the executable. 38531 # The splitting of arguments from the executable at a space might have been incorrect, 38532 # since paths with space are more likely in Windows. Give it another try with the whole 38533 # argument. 38534 path="$complete" 38535 arguments="EOL" 38536 new_path="$path" 38537 38538 windows_path="$new_path" 38539 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38540 unix_path=`$CYGPATH -u "$windows_path"` 38541 new_path="$unix_path" 38542 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38543 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38544 new_path="$unix_path" 38545 fi 38546 38547 38548 new_path=`$WHICH "$new_path" 2> /dev/null` 38549 # bat and cmd files are not always considered executable in MSYS causing which 38550 # to not find them 38551 if test "x$new_path" = x \ 38552 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38553 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38554 new_path="$path" 38555 38556 windows_path="$new_path" 38557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38558 unix_path=`$CYGPATH -u "$windows_path"` 38559 new_path="$unix_path" 38560 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38561 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38562 new_path="$unix_path" 38563 fi 38564 38565 fi 38566 38567 if test "x$new_path" = x; then 38568 # It's still not found. Now this is an unrecoverable error. 38569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38570 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38571 has_space=`$ECHO "$complete" | $GREP " "` 38572 if test "x$has_space" != x; then 38573 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38574 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38575 fi 38576 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38577 fi 38578 fi 38579 38580 # Now new_path has a complete unix path to the binary 38581 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38582 # Keep paths in /bin as-is, but remove trailing .exe if any 38583 new_path="${new_path/%.exe/}" 38584 # Do not save /bin paths to all_fixpath_prefixes! 38585 else 38586 # Not in mixed or Windows style, start by that. 38587 new_path=`cmd //c echo $new_path` 38588 38589 input_path="$new_path" 38590 # Check if we need to convert this using DOS-style short mode. If the path 38591 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38592 # take no chances and rewrite it. 38593 # Note: m4 eats our [], so we need to use [ and ] instead. 38594 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38595 if test "x$has_forbidden_chars" != x; then 38596 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38597 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38598 fi 38599 38600 # Output is in $new_path 38601 38602 windows_path="$new_path" 38603 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38604 unix_path=`$CYGPATH -u "$windows_path"` 38605 new_path="$unix_path" 38606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38607 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38608 new_path="$unix_path" 38609 fi 38610 38611 # remove trailing .exe if any 38612 new_path="${new_path/%.exe/}" 38613 38614 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38615 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38616 fi 38617 38618 else 38619 # We're on a unix platform. Hooray! :) 38620 # First separate the path from the arguments. This will split at the first 38621 # space. 38622 complete="$OBJCOPY" 38623 path="${complete%% *}" 38624 tmp="$complete EOL" 38625 arguments="${tmp#* }" 38626 38627 # Cannot rely on the command "which" here since it doesn't always work. 38628 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38629 if test -z "$is_absolute_path"; then 38630 # Path to executable is not absolute. Find it. 38631 IFS_save="$IFS" 38632 IFS=: 38633 for p in $PATH; do 38634 if test -f "$p/$path" && test -x "$p/$path"; then 38635 new_path="$p/$path" 38636 break 38637 fi 38638 done 38639 IFS="$IFS_save" 38640 else 38641 # This is an absolute path, we can use it without further modifications. 38642 new_path="$path" 38643 fi 38644 38645 if test "x$new_path" = x; then 38646 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38647 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38648 has_space=`$ECHO "$complete" | $GREP " "` 38649 if test "x$has_space" != x; then 38650 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38651 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38652 fi 38653 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38654 fi 38655 fi 38656 38657 # Now join together the path and the arguments once again 38658 if test "x$arguments" != xEOL; then 38659 new_complete="$new_path ${arguments% *}" 38660 else 38661 new_complete="$new_path" 38662 fi 38663 38664 if test "x$complete" != "x$new_complete"; then 38665 OBJCOPY="$new_complete" 38666 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38667 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38668 fi 38669 fi 38670 38671 fi 38672 fi 38673 38674 38675 38676 # Publish this variable in the help. 38677 38678 38679 if test "x$OBJDUMP" = x; then 38680 # The variable is not set by user, try to locate tool using the code snippet 38681 if test -n "$ac_tool_prefix"; then 38682 for ac_prog in gobjdump objdump 38683 do 38684 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38685 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38687 $as_echo_n "checking for $ac_word... " >&6; } 38688 if ${ac_cv_prog_OBJDUMP+:} false; then : 38689 $as_echo_n "(cached) " >&6 38690 else 38691 if test -n "$OBJDUMP"; then 38692 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38693 else 38694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38695 for as_dir in $PATH 38696 do 38697 IFS=$as_save_IFS 38698 test -z "$as_dir" && as_dir=. 38699 for ac_exec_ext in '' $ac_executable_extensions; do 38700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38701 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38703 break 2 38704 fi 38705 done 38706 done 38707 IFS=$as_save_IFS 38708 38709 fi 38710 fi 38711 OBJDUMP=$ac_cv_prog_OBJDUMP 38712 if test -n "$OBJDUMP"; then 38713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38714 $as_echo "$OBJDUMP" >&6; } 38715 else 38716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38717 $as_echo "no" >&6; } 38718 fi 38719 38720 38721 test -n "$OBJDUMP" && break 38722 done 38723 fi 38724 if test -z "$OBJDUMP"; then 38725 ac_ct_OBJDUMP=$OBJDUMP 38726 for ac_prog in gobjdump objdump 38727 do 38728 # Extract the first word of "$ac_prog", so it can be a program name with args. 38729 set dummy $ac_prog; ac_word=$2 38730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38731 $as_echo_n "checking for $ac_word... " >&6; } 38732 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38733 $as_echo_n "(cached) " >&6 38734 else 38735 if test -n "$ac_ct_OBJDUMP"; then 38736 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38737 else 38738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38739 for as_dir in $PATH 38740 do 38741 IFS=$as_save_IFS 38742 test -z "$as_dir" && as_dir=. 38743 for ac_exec_ext in '' $ac_executable_extensions; do 38744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38745 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38747 break 2 38748 fi 38749 done 38750 done 38751 IFS=$as_save_IFS 38752 38753 fi 38754 fi 38755 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38756 if test -n "$ac_ct_OBJDUMP"; then 38757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38758 $as_echo "$ac_ct_OBJDUMP" >&6; } 38759 else 38760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38761 $as_echo "no" >&6; } 38762 fi 38763 38764 38765 test -n "$ac_ct_OBJDUMP" && break 38766 done 38767 38768 if test "x$ac_ct_OBJDUMP" = x; then 38769 OBJDUMP="" 38770 else 38771 case $cross_compiling:$ac_tool_warned in 38772 yes:) 38773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38775 ac_tool_warned=yes ;; 38776 esac 38777 OBJDUMP=$ac_ct_OBJDUMP 38778 fi 38779 fi 38780 38781 else 38782 # The variable is set, but is it from the command line or the environment? 38783 38784 # Try to remove the string !OBJDUMP! from our list. 38785 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38786 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38787 # If it failed, the variable was not from the command line. Ignore it, 38788 # but warn the user (except for BASH, which is always set by the calling BASH). 38789 if test "xOBJDUMP" != xBASH; then 38790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38791 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38792 fi 38793 # Try to locate tool using the code snippet 38794 if test -n "$ac_tool_prefix"; then 38795 for ac_prog in gobjdump objdump 38796 do 38797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38800 $as_echo_n "checking for $ac_word... " >&6; } 38801 if ${ac_cv_prog_OBJDUMP+:} false; then : 38802 $as_echo_n "(cached) " >&6 38803 else 38804 if test -n "$OBJDUMP"; then 38805 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38806 else 38807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38808 for as_dir in $PATH 38809 do 38810 IFS=$as_save_IFS 38811 test -z "$as_dir" && as_dir=. 38812 for ac_exec_ext in '' $ac_executable_extensions; do 38813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38814 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38816 break 2 38817 fi 38818 done 38819 done 38820 IFS=$as_save_IFS 38821 38822 fi 38823 fi 38824 OBJDUMP=$ac_cv_prog_OBJDUMP 38825 if test -n "$OBJDUMP"; then 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38827 $as_echo "$OBJDUMP" >&6; } 38828 else 38829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38830 $as_echo "no" >&6; } 38831 fi 38832 38833 38834 test -n "$OBJDUMP" && break 38835 done 38836 fi 38837 if test -z "$OBJDUMP"; then 38838 ac_ct_OBJDUMP=$OBJDUMP 38839 for ac_prog in gobjdump objdump 38840 do 38841 # Extract the first word of "$ac_prog", so it can be a program name with args. 38842 set dummy $ac_prog; ac_word=$2 38843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38844 $as_echo_n "checking for $ac_word... " >&6; } 38845 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38846 $as_echo_n "(cached) " >&6 38847 else 38848 if test -n "$ac_ct_OBJDUMP"; then 38849 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38850 else 38851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38852 for as_dir in $PATH 38853 do 38854 IFS=$as_save_IFS 38855 test -z "$as_dir" && as_dir=. 38856 for ac_exec_ext in '' $ac_executable_extensions; do 38857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38858 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38860 break 2 38861 fi 38862 done 38863 done 38864 IFS=$as_save_IFS 38865 38866 fi 38867 fi 38868 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38869 if test -n "$ac_ct_OBJDUMP"; then 38870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38871 $as_echo "$ac_ct_OBJDUMP" >&6; } 38872 else 38873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38874 $as_echo "no" >&6; } 38875 fi 38876 38877 38878 test -n "$ac_ct_OBJDUMP" && break 38879 done 38880 38881 if test "x$ac_ct_OBJDUMP" = x; then 38882 OBJDUMP="" 38883 else 38884 case $cross_compiling:$ac_tool_warned in 38885 yes:) 38886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38888 ac_tool_warned=yes ;; 38889 esac 38890 OBJDUMP=$ac_ct_OBJDUMP 38891 fi 38892 fi 38893 38894 else 38895 # If it succeeded, then it was overridden by the user. We will use it 38896 # for the tool. 38897 38898 # First remove it from the list of overridden variables, so we can test 38899 # for unknown variables in the end. 38900 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38901 38902 # Check if the provided tool contains a complete path. 38903 tool_specified="$OBJDUMP" 38904 tool_basename="${tool_specified##*/}" 38905 if test "x$tool_basename" = "x$tool_specified"; then 38906 # A command without a complete path is provided, search $PATH. 38907 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38908 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38909 # Extract the first word of "$tool_basename", so it can be a program name with args. 38910 set dummy $tool_basename; ac_word=$2 38911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38912 $as_echo_n "checking for $ac_word... " >&6; } 38913 if ${ac_cv_path_OBJDUMP+:} false; then : 38914 $as_echo_n "(cached) " >&6 38915 else 38916 case $OBJDUMP in 38917 [\\/]* | ?:[\\/]*) 38918 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38919 ;; 38920 *) 38921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38922 for as_dir in $PATH 38923 do 38924 IFS=$as_save_IFS 38925 test -z "$as_dir" && as_dir=. 38926 for ac_exec_ext in '' $ac_executable_extensions; do 38927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38928 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38930 break 2 38931 fi 38932 done 38933 done 38934 IFS=$as_save_IFS 38935 38936 ;; 38937 esac 38938 fi 38939 OBJDUMP=$ac_cv_path_OBJDUMP 38940 if test -n "$OBJDUMP"; then 38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38942 $as_echo "$OBJDUMP" >&6; } 38943 else 38944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38945 $as_echo "no" >&6; } 38946 fi 38947 38948 38949 if test "x$OBJDUMP" = x; then 38950 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38951 fi 38952 else 38953 # Otherwise we believe it is a complete path. Use it as it is. 38954 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38955 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38957 $as_echo_n "checking for OBJDUMP... " >&6; } 38958 if test ! -x "$tool_specified"; then 38959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38960 $as_echo "not found" >&6; } 38961 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38962 fi 38963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38964 $as_echo "$tool_specified" >&6; } 38965 fi 38966 fi 38967 fi 38968 38969 38970 if test "x$OBJDUMP" != x; then 38971 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38972 # bails if argument is missing. 38973 38974 # Only process if variable expands to non-empty 38975 38976 if test "x$OBJDUMP" != x; then 38977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38978 38979 # First separate the path from the arguments. This will split at the first 38980 # space. 38981 complete="$OBJDUMP" 38982 path="${complete%% *}" 38983 tmp="$complete EOL" 38984 arguments="${tmp#* }" 38985 38986 # Input might be given as Windows format, start by converting to 38987 # unix format. 38988 new_path=`$CYGPATH -u "$path"` 38989 38990 # Now try to locate executable using which 38991 new_path=`$WHICH "$new_path" 2> /dev/null` 38992 # bat and cmd files are not always considered executable in cygwin causing which 38993 # to not find them 38994 if test "x$new_path" = x \ 38995 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38996 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38997 new_path=`$CYGPATH -u "$path"` 38998 fi 38999 if test "x$new_path" = x; then 39000 # Oops. Which didn't find the executable. 39001 # The splitting of arguments from the executable at a space might have been incorrect, 39002 # since paths with space are more likely in Windows. Give it another try with the whole 39003 # argument. 39004 path="$complete" 39005 arguments="EOL" 39006 new_path=`$CYGPATH -u "$path"` 39007 new_path=`$WHICH "$new_path" 2> /dev/null` 39008 # bat and cmd files are not always considered executable in cygwin causing which 39009 # to not find them 39010 if test "x$new_path" = x \ 39011 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39012 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39013 new_path=`$CYGPATH -u "$path"` 39014 fi 39015 if test "x$new_path" = x; then 39016 # It's still not found. Now this is an unrecoverable error. 39017 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39018 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39019 has_space=`$ECHO "$complete" | $GREP " "` 39020 if test "x$has_space" != x; then 39021 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39022 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39023 fi 39024 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39025 fi 39026 fi 39027 39028 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39029 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39030 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39031 # "foo.exe" is OK but "foo" is an error. 39032 # 39033 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39034 # It is also a way to make sure we got the proper file name for the real test later on. 39035 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39036 if test "x$test_shortpath" = x; then 39037 # Short path failed, file does not exist as specified. 39038 # Try adding .exe or .cmd 39039 if test -f "${new_path}.exe"; then 39040 input_to_shortpath="${new_path}.exe" 39041 elif test -f "${new_path}.cmd"; then 39042 input_to_shortpath="${new_path}.cmd" 39043 else 39044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 39045 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 39046 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39047 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39048 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39049 fi 39050 else 39051 input_to_shortpath="$new_path" 39052 fi 39053 39054 # Call helper function which possibly converts this using DOS-style short mode. 39055 # If so, the updated path is stored in $new_path. 39056 new_path="$input_to_shortpath" 39057 39058 input_path="$input_to_shortpath" 39059 # Check if we need to convert this using DOS-style short mode. If the path 39060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39061 # take no chances and rewrite it. 39062 # Note: m4 eats our [], so we need to use [ and ] instead. 39063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39064 if test "x$has_forbidden_chars" != x; then 39065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39066 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39067 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39068 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39069 # Going to short mode and back again did indeed matter. Since short mode is 39070 # case insensitive, let's make it lowercase to improve readability. 39071 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39072 # Now convert it back to Unix-stile (cygpath) 39073 input_path=`$CYGPATH -u "$shortmode_path"` 39074 new_path="$input_path" 39075 fi 39076 fi 39077 39078 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39079 if test "x$test_cygdrive_prefix" = x; then 39080 # As a simple fix, exclude /usr/bin since it's not a real path. 39081 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39082 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39083 # a path prefixed by /cygdrive for fixpath to work. 39084 new_path="$CYGWIN_ROOT_PATH$input_path" 39085 fi 39086 fi 39087 39088 # remove trailing .exe if any 39089 new_path="${new_path/%.exe/}" 39090 39091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39092 39093 # First separate the path from the arguments. This will split at the first 39094 # space. 39095 complete="$OBJDUMP" 39096 path="${complete%% *}" 39097 tmp="$complete EOL" 39098 arguments="${tmp#* }" 39099 39100 # Input might be given as Windows format, start by converting to 39101 # unix format. 39102 new_path="$path" 39103 39104 windows_path="$new_path" 39105 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39106 unix_path=`$CYGPATH -u "$windows_path"` 39107 new_path="$unix_path" 39108 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39109 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39110 new_path="$unix_path" 39111 fi 39112 39113 39114 # Now try to locate executable using which 39115 new_path=`$WHICH "$new_path" 2> /dev/null` 39116 39117 if test "x$new_path" = x; then 39118 # Oops. Which didn't find the executable. 39119 # The splitting of arguments from the executable at a space might have been incorrect, 39120 # since paths with space are more likely in Windows. Give it another try with the whole 39121 # argument. 39122 path="$complete" 39123 arguments="EOL" 39124 new_path="$path" 39125 39126 windows_path="$new_path" 39127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39128 unix_path=`$CYGPATH -u "$windows_path"` 39129 new_path="$unix_path" 39130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39132 new_path="$unix_path" 39133 fi 39134 39135 39136 new_path=`$WHICH "$new_path" 2> /dev/null` 39137 # bat and cmd files are not always considered executable in MSYS causing which 39138 # to not find them 39139 if test "x$new_path" = x \ 39140 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39141 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39142 new_path="$path" 39143 39144 windows_path="$new_path" 39145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39146 unix_path=`$CYGPATH -u "$windows_path"` 39147 new_path="$unix_path" 39148 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39149 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39150 new_path="$unix_path" 39151 fi 39152 39153 fi 39154 39155 if test "x$new_path" = x; then 39156 # It's still not found. Now this is an unrecoverable error. 39157 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39158 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39159 has_space=`$ECHO "$complete" | $GREP " "` 39160 if test "x$has_space" != x; then 39161 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39162 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39163 fi 39164 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39165 fi 39166 fi 39167 39168 # Now new_path has a complete unix path to the binary 39169 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39170 # Keep paths in /bin as-is, but remove trailing .exe if any 39171 new_path="${new_path/%.exe/}" 39172 # Do not save /bin paths to all_fixpath_prefixes! 39173 else 39174 # Not in mixed or Windows style, start by that. 39175 new_path=`cmd //c echo $new_path` 39176 39177 input_path="$new_path" 39178 # Check if we need to convert this using DOS-style short mode. If the path 39179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39180 # take no chances and rewrite it. 39181 # Note: m4 eats our [], so we need to use [ and ] instead. 39182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39183 if test "x$has_forbidden_chars" != x; then 39184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39185 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39186 fi 39187 39188 # Output is in $new_path 39189 39190 windows_path="$new_path" 39191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39192 unix_path=`$CYGPATH -u "$windows_path"` 39193 new_path="$unix_path" 39194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39195 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39196 new_path="$unix_path" 39197 fi 39198 39199 # remove trailing .exe if any 39200 new_path="${new_path/%.exe/}" 39201 39202 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39203 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39204 fi 39205 39206 else 39207 # We're on a unix platform. Hooray! :) 39208 # First separate the path from the arguments. This will split at the first 39209 # space. 39210 complete="$OBJDUMP" 39211 path="${complete%% *}" 39212 tmp="$complete EOL" 39213 arguments="${tmp#* }" 39214 39215 # Cannot rely on the command "which" here since it doesn't always work. 39216 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39217 if test -z "$is_absolute_path"; then 39218 # Path to executable is not absolute. Find it. 39219 IFS_save="$IFS" 39220 IFS=: 39221 for p in $PATH; do 39222 if test -f "$p/$path" && test -x "$p/$path"; then 39223 new_path="$p/$path" 39224 break 39225 fi 39226 done 39227 IFS="$IFS_save" 39228 else 39229 # This is an absolute path, we can use it without further modifications. 39230 new_path="$path" 39231 fi 39232 39233 if test "x$new_path" = x; then 39234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39235 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39236 has_space=`$ECHO "$complete" | $GREP " "` 39237 if test "x$has_space" != x; then 39238 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39239 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39240 fi 39241 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39242 fi 39243 fi 39244 39245 # Now join together the path and the arguments once again 39246 if test "x$arguments" != xEOL; then 39247 new_complete="$new_path ${arguments% *}" 39248 else 39249 new_complete="$new_path" 39250 fi 39251 39252 if test "x$complete" != "x$new_complete"; then 39253 OBJDUMP="$new_complete" 39254 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39255 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39256 fi 39257 fi 39258 39259 fi 39260 39261 39262 # Restore old path. 39263 PATH="$OLD_PATH" 39264 39265 # Restore the flags to the user specified values. 39266 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39267 CFLAGS="$ORG_CFLAGS" 39268 CXXFLAGS="$ORG_CXXFLAGS" 39269 39270 39271 # Finally do some processing after the detection phase 39272 39273 if test "x$COMPILE_TYPE" = "xcross"; then 39274 # Now we need to find a C/C++ compiler that can build executables for the 39275 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39276 # used once. Also, we need to do this without adding a tools dir to the 39277 # path, otherwise we might pick up cross-compilers which don't use standard 39278 # naming. 39279 39280 # FIXME: we should list the discovered compilers as an exclude pattern! 39281 # If we do that, we can do this detection before POST_DETECTION, and still 39282 # find the build compilers in the tools dir, if needed. 39283 39284 39285 # Publish this variable in the help. 39286 39287 39288 if test "x$BUILD_CC" = x; then 39289 # The variable is not set by user, try to locate tool using the code snippet 39290 for ac_prog in cl cc gcc 39291 do 39292 # Extract the first word of "$ac_prog", so it can be a program name with args. 39293 set dummy $ac_prog; ac_word=$2 39294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39295 $as_echo_n "checking for $ac_word... " >&6; } 39296 if ${ac_cv_path_BUILD_CC+:} false; then : 39297 $as_echo_n "(cached) " >&6 39298 else 39299 case $BUILD_CC in 39300 [\\/]* | ?:[\\/]*) 39301 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39302 ;; 39303 *) 39304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39305 for as_dir in $PATH 39306 do 39307 IFS=$as_save_IFS 39308 test -z "$as_dir" && as_dir=. 39309 for ac_exec_ext in '' $ac_executable_extensions; do 39310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39311 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39313 break 2 39314 fi 39315 done 39316 done 39317 IFS=$as_save_IFS 39318 39319 ;; 39320 esac 39321 fi 39322 BUILD_CC=$ac_cv_path_BUILD_CC 39323 if test -n "$BUILD_CC"; then 39324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39325 $as_echo "$BUILD_CC" >&6; } 39326 else 39327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39328 $as_echo "no" >&6; } 39329 fi 39330 39331 39332 test -n "$BUILD_CC" && break 39333 done 39334 39335 else 39336 # The variable is set, but is it from the command line or the environment? 39337 39338 # Try to remove the string !BUILD_CC! from our list. 39339 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39340 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39341 # If it failed, the variable was not from the command line. Ignore it, 39342 # but warn the user (except for BASH, which is always set by the calling BASH). 39343 if test "xBUILD_CC" != xBASH; then 39344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39345 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39346 fi 39347 # Try to locate tool using the code snippet 39348 for ac_prog in cl cc gcc 39349 do 39350 # Extract the first word of "$ac_prog", so it can be a program name with args. 39351 set dummy $ac_prog; ac_word=$2 39352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39353 $as_echo_n "checking for $ac_word... " >&6; } 39354 if ${ac_cv_path_BUILD_CC+:} false; then : 39355 $as_echo_n "(cached) " >&6 39356 else 39357 case $BUILD_CC in 39358 [\\/]* | ?:[\\/]*) 39359 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39360 ;; 39361 *) 39362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39363 for as_dir in $PATH 39364 do 39365 IFS=$as_save_IFS 39366 test -z "$as_dir" && as_dir=. 39367 for ac_exec_ext in '' $ac_executable_extensions; do 39368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39369 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39371 break 2 39372 fi 39373 done 39374 done 39375 IFS=$as_save_IFS 39376 39377 ;; 39378 esac 39379 fi 39380 BUILD_CC=$ac_cv_path_BUILD_CC 39381 if test -n "$BUILD_CC"; then 39382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39383 $as_echo "$BUILD_CC" >&6; } 39384 else 39385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39386 $as_echo "no" >&6; } 39387 fi 39388 39389 39390 test -n "$BUILD_CC" && break 39391 done 39392 39393 else 39394 # If it succeeded, then it was overridden by the user. We will use it 39395 # for the tool. 39396 39397 # First remove it from the list of overridden variables, so we can test 39398 # for unknown variables in the end. 39399 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39400 39401 # Check if the provided tool contains a complete path. 39402 tool_specified="$BUILD_CC" 39403 tool_basename="${tool_specified##*/}" 39404 if test "x$tool_basename" = "x$tool_specified"; then 39405 # A command without a complete path is provided, search $PATH. 39406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39407 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39408 # Extract the first word of "$tool_basename", so it can be a program name with args. 39409 set dummy $tool_basename; ac_word=$2 39410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39411 $as_echo_n "checking for $ac_word... " >&6; } 39412 if ${ac_cv_path_BUILD_CC+:} false; then : 39413 $as_echo_n "(cached) " >&6 39414 else 39415 case $BUILD_CC in 39416 [\\/]* | ?:[\\/]*) 39417 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39418 ;; 39419 *) 39420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39421 for as_dir in $PATH 39422 do 39423 IFS=$as_save_IFS 39424 test -z "$as_dir" && as_dir=. 39425 for ac_exec_ext in '' $ac_executable_extensions; do 39426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39427 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39429 break 2 39430 fi 39431 done 39432 done 39433 IFS=$as_save_IFS 39434 39435 ;; 39436 esac 39437 fi 39438 BUILD_CC=$ac_cv_path_BUILD_CC 39439 if test -n "$BUILD_CC"; then 39440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39441 $as_echo "$BUILD_CC" >&6; } 39442 else 39443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39444 $as_echo "no" >&6; } 39445 fi 39446 39447 39448 if test "x$BUILD_CC" = x; then 39449 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39450 fi 39451 else 39452 # Otherwise we believe it is a complete path. Use it as it is. 39453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39454 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39456 $as_echo_n "checking for BUILD_CC... " >&6; } 39457 if test ! -x "$tool_specified"; then 39458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39459 $as_echo "not found" >&6; } 39460 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39461 fi 39462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39463 $as_echo "$tool_specified" >&6; } 39464 fi 39465 fi 39466 fi 39467 39468 39469 39470 # Only process if variable expands to non-empty 39471 39472 if test "x$BUILD_CC" != x; then 39473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39474 39475 # First separate the path from the arguments. This will split at the first 39476 # space. 39477 complete="$BUILD_CC" 39478 path="${complete%% *}" 39479 tmp="$complete EOL" 39480 arguments="${tmp#* }" 39481 39482 # Input might be given as Windows format, start by converting to 39483 # unix format. 39484 new_path=`$CYGPATH -u "$path"` 39485 39486 # Now try to locate executable using which 39487 new_path=`$WHICH "$new_path" 2> /dev/null` 39488 # bat and cmd files are not always considered executable in cygwin causing which 39489 # to not find them 39490 if test "x$new_path" = x \ 39491 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39492 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39493 new_path=`$CYGPATH -u "$path"` 39494 fi 39495 if test "x$new_path" = x; then 39496 # Oops. Which didn't find the executable. 39497 # The splitting of arguments from the executable at a space might have been incorrect, 39498 # since paths with space are more likely in Windows. Give it another try with the whole 39499 # argument. 39500 path="$complete" 39501 arguments="EOL" 39502 new_path=`$CYGPATH -u "$path"` 39503 new_path=`$WHICH "$new_path" 2> /dev/null` 39504 # bat and cmd files are not always considered executable in cygwin causing which 39505 # to not find them 39506 if test "x$new_path" = x \ 39507 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39508 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39509 new_path=`$CYGPATH -u "$path"` 39510 fi 39511 if test "x$new_path" = x; then 39512 # It's still not found. Now this is an unrecoverable error. 39513 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39514 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39515 has_space=`$ECHO "$complete" | $GREP " "` 39516 if test "x$has_space" != x; then 39517 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39518 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39519 fi 39520 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39521 fi 39522 fi 39523 39524 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39525 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39526 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39527 # "foo.exe" is OK but "foo" is an error. 39528 # 39529 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39530 # It is also a way to make sure we got the proper file name for the real test later on. 39531 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39532 if test "x$test_shortpath" = x; then 39533 # Short path failed, file does not exist as specified. 39534 # Try adding .exe or .cmd 39535 if test -f "${new_path}.exe"; then 39536 input_to_shortpath="${new_path}.exe" 39537 elif test -f "${new_path}.cmd"; then 39538 input_to_shortpath="${new_path}.cmd" 39539 else 39540 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39541 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39542 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39543 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39544 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39545 fi 39546 else 39547 input_to_shortpath="$new_path" 39548 fi 39549 39550 # Call helper function which possibly converts this using DOS-style short mode. 39551 # If so, the updated path is stored in $new_path. 39552 new_path="$input_to_shortpath" 39553 39554 input_path="$input_to_shortpath" 39555 # Check if we need to convert this using DOS-style short mode. If the path 39556 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39557 # take no chances and rewrite it. 39558 # Note: m4 eats our [], so we need to use [ and ] instead. 39559 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39560 if test "x$has_forbidden_chars" != x; then 39561 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39562 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39563 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39564 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39565 # Going to short mode and back again did indeed matter. Since short mode is 39566 # case insensitive, let's make it lowercase to improve readability. 39567 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39568 # Now convert it back to Unix-stile (cygpath) 39569 input_path=`$CYGPATH -u "$shortmode_path"` 39570 new_path="$input_path" 39571 fi 39572 fi 39573 39574 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39575 if test "x$test_cygdrive_prefix" = x; then 39576 # As a simple fix, exclude /usr/bin since it's not a real path. 39577 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39578 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39579 # a path prefixed by /cygdrive for fixpath to work. 39580 new_path="$CYGWIN_ROOT_PATH$input_path" 39581 fi 39582 fi 39583 39584 # remove trailing .exe if any 39585 new_path="${new_path/%.exe/}" 39586 39587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39588 39589 # First separate the path from the arguments. This will split at the first 39590 # space. 39591 complete="$BUILD_CC" 39592 path="${complete%% *}" 39593 tmp="$complete EOL" 39594 arguments="${tmp#* }" 39595 39596 # Input might be given as Windows format, start by converting to 39597 # unix format. 39598 new_path="$path" 39599 39600 windows_path="$new_path" 39601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39602 unix_path=`$CYGPATH -u "$windows_path"` 39603 new_path="$unix_path" 39604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39605 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39606 new_path="$unix_path" 39607 fi 39608 39609 39610 # Now try to locate executable using which 39611 new_path=`$WHICH "$new_path" 2> /dev/null` 39612 39613 if test "x$new_path" = x; then 39614 # Oops. Which didn't find the executable. 39615 # The splitting of arguments from the executable at a space might have been incorrect, 39616 # since paths with space are more likely in Windows. Give it another try with the whole 39617 # argument. 39618 path="$complete" 39619 arguments="EOL" 39620 new_path="$path" 39621 39622 windows_path="$new_path" 39623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39624 unix_path=`$CYGPATH -u "$windows_path"` 39625 new_path="$unix_path" 39626 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39627 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39628 new_path="$unix_path" 39629 fi 39630 39631 39632 new_path=`$WHICH "$new_path" 2> /dev/null` 39633 # bat and cmd files are not always considered executable in MSYS causing which 39634 # to not find them 39635 if test "x$new_path" = x \ 39636 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39637 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39638 new_path="$path" 39639 39640 windows_path="$new_path" 39641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39642 unix_path=`$CYGPATH -u "$windows_path"` 39643 new_path="$unix_path" 39644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39646 new_path="$unix_path" 39647 fi 39648 39649 fi 39650 39651 if test "x$new_path" = x; then 39652 # It's still not found. Now this is an unrecoverable error. 39653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39654 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39655 has_space=`$ECHO "$complete" | $GREP " "` 39656 if test "x$has_space" != x; then 39657 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39658 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39659 fi 39660 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39661 fi 39662 fi 39663 39664 # Now new_path has a complete unix path to the binary 39665 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39666 # Keep paths in /bin as-is, but remove trailing .exe if any 39667 new_path="${new_path/%.exe/}" 39668 # Do not save /bin paths to all_fixpath_prefixes! 39669 else 39670 # Not in mixed or Windows style, start by that. 39671 new_path=`cmd //c echo $new_path` 39672 39673 input_path="$new_path" 39674 # Check if we need to convert this using DOS-style short mode. If the path 39675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39676 # take no chances and rewrite it. 39677 # Note: m4 eats our [], so we need to use [ and ] instead. 39678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39679 if test "x$has_forbidden_chars" != x; then 39680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39681 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39682 fi 39683 39684 # Output is in $new_path 39685 39686 windows_path="$new_path" 39687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39688 unix_path=`$CYGPATH -u "$windows_path"` 39689 new_path="$unix_path" 39690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39692 new_path="$unix_path" 39693 fi 39694 39695 # remove trailing .exe if any 39696 new_path="${new_path/%.exe/}" 39697 39698 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39699 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39700 fi 39701 39702 else 39703 # We're on a unix platform. Hooray! :) 39704 # First separate the path from the arguments. This will split at the first 39705 # space. 39706 complete="$BUILD_CC" 39707 path="${complete%% *}" 39708 tmp="$complete EOL" 39709 arguments="${tmp#* }" 39710 39711 # Cannot rely on the command "which" here since it doesn't always work. 39712 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39713 if test -z "$is_absolute_path"; then 39714 # Path to executable is not absolute. Find it. 39715 IFS_save="$IFS" 39716 IFS=: 39717 for p in $PATH; do 39718 if test -f "$p/$path" && test -x "$p/$path"; then 39719 new_path="$p/$path" 39720 break 39721 fi 39722 done 39723 IFS="$IFS_save" 39724 else 39725 # This is an absolute path, we can use it without further modifications. 39726 new_path="$path" 39727 fi 39728 39729 if test "x$new_path" = x; then 39730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39731 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39732 has_space=`$ECHO "$complete" | $GREP " "` 39733 if test "x$has_space" != x; then 39734 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39735 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39736 fi 39737 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39738 fi 39739 fi 39740 39741 # Now join together the path and the arguments once again 39742 if test "x$arguments" != xEOL; then 39743 new_complete="$new_path ${arguments% *}" 39744 else 39745 new_complete="$new_path" 39746 fi 39747 39748 if test "x$complete" != "x$new_complete"; then 39749 BUILD_CC="$new_complete" 39750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39751 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39752 fi 39753 fi 39754 39755 39756 39757 # Publish this variable in the help. 39758 39759 39760 if test "x$BUILD_CXX" = x; then 39761 # The variable is not set by user, try to locate tool using the code snippet 39762 for ac_prog in cl CC g++ 39763 do 39764 # Extract the first word of "$ac_prog", so it can be a program name with args. 39765 set dummy $ac_prog; ac_word=$2 39766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39767 $as_echo_n "checking for $ac_word... " >&6; } 39768 if ${ac_cv_path_BUILD_CXX+:} false; then : 39769 $as_echo_n "(cached) " >&6 39770 else 39771 case $BUILD_CXX in 39772 [\\/]* | ?:[\\/]*) 39773 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39774 ;; 39775 *) 39776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39777 for as_dir in $PATH 39778 do 39779 IFS=$as_save_IFS 39780 test -z "$as_dir" && as_dir=. 39781 for ac_exec_ext in '' $ac_executable_extensions; do 39782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39783 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39785 break 2 39786 fi 39787 done 39788 done 39789 IFS=$as_save_IFS 39790 39791 ;; 39792 esac 39793 fi 39794 BUILD_CXX=$ac_cv_path_BUILD_CXX 39795 if test -n "$BUILD_CXX"; then 39796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39797 $as_echo "$BUILD_CXX" >&6; } 39798 else 39799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39800 $as_echo "no" >&6; } 39801 fi 39802 39803 39804 test -n "$BUILD_CXX" && break 39805 done 39806 39807 else 39808 # The variable is set, but is it from the command line or the environment? 39809 39810 # Try to remove the string !BUILD_CXX! from our list. 39811 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39812 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39813 # If it failed, the variable was not from the command line. Ignore it, 39814 # but warn the user (except for BASH, which is always set by the calling BASH). 39815 if test "xBUILD_CXX" != xBASH; then 39816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39817 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39818 fi 39819 # Try to locate tool using the code snippet 39820 for ac_prog in cl CC g++ 39821 do 39822 # Extract the first word of "$ac_prog", so it can be a program name with args. 39823 set dummy $ac_prog; ac_word=$2 39824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39825 $as_echo_n "checking for $ac_word... " >&6; } 39826 if ${ac_cv_path_BUILD_CXX+:} false; then : 39827 $as_echo_n "(cached) " >&6 39828 else 39829 case $BUILD_CXX in 39830 [\\/]* | ?:[\\/]*) 39831 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39832 ;; 39833 *) 39834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39835 for as_dir in $PATH 39836 do 39837 IFS=$as_save_IFS 39838 test -z "$as_dir" && as_dir=. 39839 for ac_exec_ext in '' $ac_executable_extensions; do 39840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39841 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39843 break 2 39844 fi 39845 done 39846 done 39847 IFS=$as_save_IFS 39848 39849 ;; 39850 esac 39851 fi 39852 BUILD_CXX=$ac_cv_path_BUILD_CXX 39853 if test -n "$BUILD_CXX"; then 39854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39855 $as_echo "$BUILD_CXX" >&6; } 39856 else 39857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39858 $as_echo "no" >&6; } 39859 fi 39860 39861 39862 test -n "$BUILD_CXX" && break 39863 done 39864 39865 else 39866 # If it succeeded, then it was overridden by the user. We will use it 39867 # for the tool. 39868 39869 # First remove it from the list of overridden variables, so we can test 39870 # for unknown variables in the end. 39871 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39872 39873 # Check if the provided tool contains a complete path. 39874 tool_specified="$BUILD_CXX" 39875 tool_basename="${tool_specified##*/}" 39876 if test "x$tool_basename" = "x$tool_specified"; then 39877 # A command without a complete path is provided, search $PATH. 39878 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39879 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39880 # Extract the first word of "$tool_basename", so it can be a program name with args. 39881 set dummy $tool_basename; ac_word=$2 39882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39883 $as_echo_n "checking for $ac_word... " >&6; } 39884 if ${ac_cv_path_BUILD_CXX+:} false; then : 39885 $as_echo_n "(cached) " >&6 39886 else 39887 case $BUILD_CXX in 39888 [\\/]* | ?:[\\/]*) 39889 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39890 ;; 39891 *) 39892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39893 for as_dir in $PATH 39894 do 39895 IFS=$as_save_IFS 39896 test -z "$as_dir" && as_dir=. 39897 for ac_exec_ext in '' $ac_executable_extensions; do 39898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39899 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39901 break 2 39902 fi 39903 done 39904 done 39905 IFS=$as_save_IFS 39906 39907 ;; 39908 esac 39909 fi 39910 BUILD_CXX=$ac_cv_path_BUILD_CXX 39911 if test -n "$BUILD_CXX"; then 39912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39913 $as_echo "$BUILD_CXX" >&6; } 39914 else 39915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39916 $as_echo "no" >&6; } 39917 fi 39918 39919 39920 if test "x$BUILD_CXX" = x; then 39921 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39922 fi 39923 else 39924 # Otherwise we believe it is a complete path. Use it as it is. 39925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39926 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39928 $as_echo_n "checking for BUILD_CXX... " >&6; } 39929 if test ! -x "$tool_specified"; then 39930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39931 $as_echo "not found" >&6; } 39932 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39933 fi 39934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39935 $as_echo "$tool_specified" >&6; } 39936 fi 39937 fi 39938 fi 39939 39940 39941 39942 # Only process if variable expands to non-empty 39943 39944 if test "x$BUILD_CXX" != x; then 39945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39946 39947 # First separate the path from the arguments. This will split at the first 39948 # space. 39949 complete="$BUILD_CXX" 39950 path="${complete%% *}" 39951 tmp="$complete EOL" 39952 arguments="${tmp#* }" 39953 39954 # Input might be given as Windows format, start by converting to 39955 # unix format. 39956 new_path=`$CYGPATH -u "$path"` 39957 39958 # Now try to locate executable using which 39959 new_path=`$WHICH "$new_path" 2> /dev/null` 39960 # bat and cmd files are not always considered executable in cygwin causing which 39961 # to not find them 39962 if test "x$new_path" = x \ 39963 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39964 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39965 new_path=`$CYGPATH -u "$path"` 39966 fi 39967 if test "x$new_path" = x; then 39968 # Oops. Which didn't find the executable. 39969 # The splitting of arguments from the executable at a space might have been incorrect, 39970 # since paths with space are more likely in Windows. Give it another try with the whole 39971 # argument. 39972 path="$complete" 39973 arguments="EOL" 39974 new_path=`$CYGPATH -u "$path"` 39975 new_path=`$WHICH "$new_path" 2> /dev/null` 39976 # bat and cmd files are not always considered executable in cygwin causing which 39977 # to not find them 39978 if test "x$new_path" = x \ 39979 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39980 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39981 new_path=`$CYGPATH -u "$path"` 39982 fi 39983 if test "x$new_path" = x; then 39984 # It's still not found. Now this is an unrecoverable error. 39985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39986 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39987 has_space=`$ECHO "$complete" | $GREP " "` 39988 if test "x$has_space" != x; then 39989 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39990 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39991 fi 39992 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39993 fi 39994 fi 39995 39996 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39997 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39998 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39999 # "foo.exe" is OK but "foo" is an error. 40000 # 40001 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40002 # It is also a way to make sure we got the proper file name for the real test later on. 40003 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40004 if test "x$test_shortpath" = x; then 40005 # Short path failed, file does not exist as specified. 40006 # Try adding .exe or .cmd 40007 if test -f "${new_path}.exe"; then 40008 input_to_shortpath="${new_path}.exe" 40009 elif test -f "${new_path}.cmd"; then 40010 input_to_shortpath="${new_path}.cmd" 40011 else 40012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 40013 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 40014 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40015 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40016 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40017 fi 40018 else 40019 input_to_shortpath="$new_path" 40020 fi 40021 40022 # Call helper function which possibly converts this using DOS-style short mode. 40023 # If so, the updated path is stored in $new_path. 40024 new_path="$input_to_shortpath" 40025 40026 input_path="$input_to_shortpath" 40027 # Check if we need to convert this using DOS-style short mode. If the path 40028 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40029 # take no chances and rewrite it. 40030 # Note: m4 eats our [], so we need to use [ and ] instead. 40031 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40032 if test "x$has_forbidden_chars" != x; then 40033 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40034 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40035 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40036 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40037 # Going to short mode and back again did indeed matter. Since short mode is 40038 # case insensitive, let's make it lowercase to improve readability. 40039 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40040 # Now convert it back to Unix-stile (cygpath) 40041 input_path=`$CYGPATH -u "$shortmode_path"` 40042 new_path="$input_path" 40043 fi 40044 fi 40045 40046 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40047 if test "x$test_cygdrive_prefix" = x; then 40048 # As a simple fix, exclude /usr/bin since it's not a real path. 40049 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40050 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40051 # a path prefixed by /cygdrive for fixpath to work. 40052 new_path="$CYGWIN_ROOT_PATH$input_path" 40053 fi 40054 fi 40055 40056 # remove trailing .exe if any 40057 new_path="${new_path/%.exe/}" 40058 40059 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40060 40061 # First separate the path from the arguments. This will split at the first 40062 # space. 40063 complete="$BUILD_CXX" 40064 path="${complete%% *}" 40065 tmp="$complete EOL" 40066 arguments="${tmp#* }" 40067 40068 # Input might be given as Windows format, start by converting to 40069 # unix format. 40070 new_path="$path" 40071 40072 windows_path="$new_path" 40073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40074 unix_path=`$CYGPATH -u "$windows_path"` 40075 new_path="$unix_path" 40076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40077 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40078 new_path="$unix_path" 40079 fi 40080 40081 40082 # Now try to locate executable using which 40083 new_path=`$WHICH "$new_path" 2> /dev/null` 40084 40085 if test "x$new_path" = x; then 40086 # Oops. Which didn't find the executable. 40087 # The splitting of arguments from the executable at a space might have been incorrect, 40088 # since paths with space are more likely in Windows. Give it another try with the whole 40089 # argument. 40090 path="$complete" 40091 arguments="EOL" 40092 new_path="$path" 40093 40094 windows_path="$new_path" 40095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40096 unix_path=`$CYGPATH -u "$windows_path"` 40097 new_path="$unix_path" 40098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40100 new_path="$unix_path" 40101 fi 40102 40103 40104 new_path=`$WHICH "$new_path" 2> /dev/null` 40105 # bat and cmd files are not always considered executable in MSYS causing which 40106 # to not find them 40107 if test "x$new_path" = x \ 40108 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40109 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40110 new_path="$path" 40111 40112 windows_path="$new_path" 40113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40114 unix_path=`$CYGPATH -u "$windows_path"` 40115 new_path="$unix_path" 40116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40117 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40118 new_path="$unix_path" 40119 fi 40120 40121 fi 40122 40123 if test "x$new_path" = x; then 40124 # It's still not found. Now this is an unrecoverable error. 40125 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40126 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40127 has_space=`$ECHO "$complete" | $GREP " "` 40128 if test "x$has_space" != x; then 40129 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40130 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40131 fi 40132 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40133 fi 40134 fi 40135 40136 # Now new_path has a complete unix path to the binary 40137 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40138 # Keep paths in /bin as-is, but remove trailing .exe if any 40139 new_path="${new_path/%.exe/}" 40140 # Do not save /bin paths to all_fixpath_prefixes! 40141 else 40142 # Not in mixed or Windows style, start by that. 40143 new_path=`cmd //c echo $new_path` 40144 40145 input_path="$new_path" 40146 # Check if we need to convert this using DOS-style short mode. If the path 40147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40148 # take no chances and rewrite it. 40149 # Note: m4 eats our [], so we need to use [ and ] instead. 40150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40151 if test "x$has_forbidden_chars" != x; then 40152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40153 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40154 fi 40155 40156 # Output is in $new_path 40157 40158 windows_path="$new_path" 40159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40160 unix_path=`$CYGPATH -u "$windows_path"` 40161 new_path="$unix_path" 40162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40164 new_path="$unix_path" 40165 fi 40166 40167 # remove trailing .exe if any 40168 new_path="${new_path/%.exe/}" 40169 40170 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40171 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40172 fi 40173 40174 else 40175 # We're on a unix platform. Hooray! :) 40176 # First separate the path from the arguments. This will split at the first 40177 # space. 40178 complete="$BUILD_CXX" 40179 path="${complete%% *}" 40180 tmp="$complete EOL" 40181 arguments="${tmp#* }" 40182 40183 # Cannot rely on the command "which" here since it doesn't always work. 40184 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40185 if test -z "$is_absolute_path"; then 40186 # Path to executable is not absolute. Find it. 40187 IFS_save="$IFS" 40188 IFS=: 40189 for p in $PATH; do 40190 if test -f "$p/$path" && test -x "$p/$path"; then 40191 new_path="$p/$path" 40192 break 40193 fi 40194 done 40195 IFS="$IFS_save" 40196 else 40197 # This is an absolute path, we can use it without further modifications. 40198 new_path="$path" 40199 fi 40200 40201 if test "x$new_path" = x; then 40202 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 40203 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 40204 has_space=`$ECHO "$complete" | $GREP " "` 40205 if test "x$has_space" != x; then 40206 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40207 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40208 fi 40209 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 40210 fi 40211 fi 40212 40213 # Now join together the path and the arguments once again 40214 if test "x$arguments" != xEOL; then 40215 new_complete="$new_path ${arguments% *}" 40216 else 40217 new_complete="$new_path" 40218 fi 40219 40220 if test "x$complete" != "x$new_complete"; then 40221 BUILD_CXX="$new_complete" 40222 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 40223 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 40224 fi 40225 fi 40226 40227 40228 40229 # Publish this variable in the help. 40230 40231 40232 if test "x$BUILD_LD" = x; then 40233 # The variable is not set by user, try to locate tool using the code snippet 40234 for ac_prog in ld 40235 do 40236 # Extract the first word of "$ac_prog", so it can be a program name with args. 40237 set dummy $ac_prog; ac_word=$2 40238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40239 $as_echo_n "checking for $ac_word... " >&6; } 40240 if ${ac_cv_path_BUILD_LD+:} false; then : 40241 $as_echo_n "(cached) " >&6 40242 else 40243 case $BUILD_LD in 40244 [\\/]* | ?:[\\/]*) 40245 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40246 ;; 40247 *) 40248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40249 for as_dir in $PATH 40250 do 40251 IFS=$as_save_IFS 40252 test -z "$as_dir" && as_dir=. 40253 for ac_exec_ext in '' $ac_executable_extensions; do 40254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40255 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40257 break 2 40258 fi 40259 done 40260 done 40261 IFS=$as_save_IFS 40262 40263 ;; 40264 esac 40265 fi 40266 BUILD_LD=$ac_cv_path_BUILD_LD 40267 if test -n "$BUILD_LD"; then 40268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40269 $as_echo "$BUILD_LD" >&6; } 40270 else 40271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40272 $as_echo "no" >&6; } 40273 fi 40274 40275 40276 test -n "$BUILD_LD" && break 40277 done 40278 40279 else 40280 # The variable is set, but is it from the command line or the environment? 40281 40282 # Try to remove the string !BUILD_LD! from our list. 40283 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40284 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40285 # If it failed, the variable was not from the command line. Ignore it, 40286 # but warn the user (except for BASH, which is always set by the calling BASH). 40287 if test "xBUILD_LD" != xBASH; then 40288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40289 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40290 fi 40291 # Try to locate tool using the code snippet 40292 for ac_prog in ld 40293 do 40294 # Extract the first word of "$ac_prog", so it can be a program name with args. 40295 set dummy $ac_prog; ac_word=$2 40296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40297 $as_echo_n "checking for $ac_word... " >&6; } 40298 if ${ac_cv_path_BUILD_LD+:} false; then : 40299 $as_echo_n "(cached) " >&6 40300 else 40301 case $BUILD_LD in 40302 [\\/]* | ?:[\\/]*) 40303 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40304 ;; 40305 *) 40306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40307 for as_dir in $PATH 40308 do 40309 IFS=$as_save_IFS 40310 test -z "$as_dir" && as_dir=. 40311 for ac_exec_ext in '' $ac_executable_extensions; do 40312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40313 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40315 break 2 40316 fi 40317 done 40318 done 40319 IFS=$as_save_IFS 40320 40321 ;; 40322 esac 40323 fi 40324 BUILD_LD=$ac_cv_path_BUILD_LD 40325 if test -n "$BUILD_LD"; then 40326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40327 $as_echo "$BUILD_LD" >&6; } 40328 else 40329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40330 $as_echo "no" >&6; } 40331 fi 40332 40333 40334 test -n "$BUILD_LD" && break 40335 done 40336 40337 else 40338 # If it succeeded, then it was overridden by the user. We will use it 40339 # for the tool. 40340 40341 # First remove it from the list of overridden variables, so we can test 40342 # for unknown variables in the end. 40343 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40344 40345 # Check if the provided tool contains a complete path. 40346 tool_specified="$BUILD_LD" 40347 tool_basename="${tool_specified##*/}" 40348 if test "x$tool_basename" = "x$tool_specified"; then 40349 # A command without a complete path is provided, search $PATH. 40350 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40351 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40352 # Extract the first word of "$tool_basename", so it can be a program name with args. 40353 set dummy $tool_basename; ac_word=$2 40354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40355 $as_echo_n "checking for $ac_word... " >&6; } 40356 if ${ac_cv_path_BUILD_LD+:} false; then : 40357 $as_echo_n "(cached) " >&6 40358 else 40359 case $BUILD_LD in 40360 [\\/]* | ?:[\\/]*) 40361 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40362 ;; 40363 *) 40364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40365 for as_dir in $PATH 40366 do 40367 IFS=$as_save_IFS 40368 test -z "$as_dir" && as_dir=. 40369 for ac_exec_ext in '' $ac_executable_extensions; do 40370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40371 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40373 break 2 40374 fi 40375 done 40376 done 40377 IFS=$as_save_IFS 40378 40379 ;; 40380 esac 40381 fi 40382 BUILD_LD=$ac_cv_path_BUILD_LD 40383 if test -n "$BUILD_LD"; then 40384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40385 $as_echo "$BUILD_LD" >&6; } 40386 else 40387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40388 $as_echo "no" >&6; } 40389 fi 40390 40391 40392 if test "x$BUILD_LD" = x; then 40393 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40394 fi 40395 else 40396 # Otherwise we believe it is a complete path. Use it as it is. 40397 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40398 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40400 $as_echo_n "checking for BUILD_LD... " >&6; } 40401 if test ! -x "$tool_specified"; then 40402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40403 $as_echo "not found" >&6; } 40404 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40405 fi 40406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40407 $as_echo "$tool_specified" >&6; } 40408 fi 40409 fi 40410 fi 40411 40412 40413 40414 # Only process if variable expands to non-empty 40415 40416 if test "x$BUILD_LD" != x; then 40417 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40418 40419 # First separate the path from the arguments. This will split at the first 40420 # space. 40421 complete="$BUILD_LD" 40422 path="${complete%% *}" 40423 tmp="$complete EOL" 40424 arguments="${tmp#* }" 40425 40426 # Input might be given as Windows format, start by converting to 40427 # unix format. 40428 new_path=`$CYGPATH -u "$path"` 40429 40430 # Now try to locate executable using which 40431 new_path=`$WHICH "$new_path" 2> /dev/null` 40432 # bat and cmd files are not always considered executable in cygwin causing which 40433 # to not find them 40434 if test "x$new_path" = x \ 40435 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40436 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40437 new_path=`$CYGPATH -u "$path"` 40438 fi 40439 if test "x$new_path" = x; then 40440 # Oops. Which didn't find the executable. 40441 # The splitting of arguments from the executable at a space might have been incorrect, 40442 # since paths with space are more likely in Windows. Give it another try with the whole 40443 # argument. 40444 path="$complete" 40445 arguments="EOL" 40446 new_path=`$CYGPATH -u "$path"` 40447 new_path=`$WHICH "$new_path" 2> /dev/null` 40448 # bat and cmd files are not always considered executable in cygwin causing which 40449 # to not find them 40450 if test "x$new_path" = x \ 40451 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40452 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40453 new_path=`$CYGPATH -u "$path"` 40454 fi 40455 if test "x$new_path" = x; then 40456 # It's still not found. Now this is an unrecoverable error. 40457 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40458 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40459 has_space=`$ECHO "$complete" | $GREP " "` 40460 if test "x$has_space" != x; then 40461 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40462 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40463 fi 40464 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40465 fi 40466 fi 40467 40468 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40469 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40470 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40471 # "foo.exe" is OK but "foo" is an error. 40472 # 40473 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40474 # It is also a way to make sure we got the proper file name for the real test later on. 40475 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40476 if test "x$test_shortpath" = x; then 40477 # Short path failed, file does not exist as specified. 40478 # Try adding .exe or .cmd 40479 if test -f "${new_path}.exe"; then 40480 input_to_shortpath="${new_path}.exe" 40481 elif test -f "${new_path}.cmd"; then 40482 input_to_shortpath="${new_path}.cmd" 40483 else 40484 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40485 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40486 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40487 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40488 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40489 fi 40490 else 40491 input_to_shortpath="$new_path" 40492 fi 40493 40494 # Call helper function which possibly converts this using DOS-style short mode. 40495 # If so, the updated path is stored in $new_path. 40496 new_path="$input_to_shortpath" 40497 40498 input_path="$input_to_shortpath" 40499 # Check if we need to convert this using DOS-style short mode. If the path 40500 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40501 # take no chances and rewrite it. 40502 # Note: m4 eats our [], so we need to use [ and ] instead. 40503 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40504 if test "x$has_forbidden_chars" != x; then 40505 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40506 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40507 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40508 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40509 # Going to short mode and back again did indeed matter. Since short mode is 40510 # case insensitive, let's make it lowercase to improve readability. 40511 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40512 # Now convert it back to Unix-stile (cygpath) 40513 input_path=`$CYGPATH -u "$shortmode_path"` 40514 new_path="$input_path" 40515 fi 40516 fi 40517 40518 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40519 if test "x$test_cygdrive_prefix" = x; then 40520 # As a simple fix, exclude /usr/bin since it's not a real path. 40521 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40522 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40523 # a path prefixed by /cygdrive for fixpath to work. 40524 new_path="$CYGWIN_ROOT_PATH$input_path" 40525 fi 40526 fi 40527 40528 # remove trailing .exe if any 40529 new_path="${new_path/%.exe/}" 40530 40531 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40532 40533 # First separate the path from the arguments. This will split at the first 40534 # space. 40535 complete="$BUILD_LD" 40536 path="${complete%% *}" 40537 tmp="$complete EOL" 40538 arguments="${tmp#* }" 40539 40540 # Input might be given as Windows format, start by converting to 40541 # unix format. 40542 new_path="$path" 40543 40544 windows_path="$new_path" 40545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40546 unix_path=`$CYGPATH -u "$windows_path"` 40547 new_path="$unix_path" 40548 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40549 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40550 new_path="$unix_path" 40551 fi 40552 40553 40554 # Now try to locate executable using which 40555 new_path=`$WHICH "$new_path" 2> /dev/null` 40556 40557 if test "x$new_path" = x; then 40558 # Oops. Which didn't find the executable. 40559 # The splitting of arguments from the executable at a space might have been incorrect, 40560 # since paths with space are more likely in Windows. Give it another try with the whole 40561 # argument. 40562 path="$complete" 40563 arguments="EOL" 40564 new_path="$path" 40565 40566 windows_path="$new_path" 40567 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40568 unix_path=`$CYGPATH -u "$windows_path"` 40569 new_path="$unix_path" 40570 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40571 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40572 new_path="$unix_path" 40573 fi 40574 40575 40576 new_path=`$WHICH "$new_path" 2> /dev/null` 40577 # bat and cmd files are not always considered executable in MSYS causing which 40578 # to not find them 40579 if test "x$new_path" = x \ 40580 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40581 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40582 new_path="$path" 40583 40584 windows_path="$new_path" 40585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40586 unix_path=`$CYGPATH -u "$windows_path"` 40587 new_path="$unix_path" 40588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40590 new_path="$unix_path" 40591 fi 40592 40593 fi 40594 40595 if test "x$new_path" = x; then 40596 # It's still not found. Now this is an unrecoverable error. 40597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40598 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40599 has_space=`$ECHO "$complete" | $GREP " "` 40600 if test "x$has_space" != x; then 40601 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40602 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40603 fi 40604 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40605 fi 40606 fi 40607 40608 # Now new_path has a complete unix path to the binary 40609 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40610 # Keep paths in /bin as-is, but remove trailing .exe if any 40611 new_path="${new_path/%.exe/}" 40612 # Do not save /bin paths to all_fixpath_prefixes! 40613 else 40614 # Not in mixed or Windows style, start by that. 40615 new_path=`cmd //c echo $new_path` 40616 40617 input_path="$new_path" 40618 # Check if we need to convert this using DOS-style short mode. If the path 40619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40620 # take no chances and rewrite it. 40621 # Note: m4 eats our [], so we need to use [ and ] instead. 40622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40623 if test "x$has_forbidden_chars" != x; then 40624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40626 fi 40627 40628 # Output is in $new_path 40629 40630 windows_path="$new_path" 40631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40632 unix_path=`$CYGPATH -u "$windows_path"` 40633 new_path="$unix_path" 40634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40636 new_path="$unix_path" 40637 fi 40638 40639 # remove trailing .exe if any 40640 new_path="${new_path/%.exe/}" 40641 40642 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40643 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40644 fi 40645 40646 else 40647 # We're on a unix platform. Hooray! :) 40648 # First separate the path from the arguments. This will split at the first 40649 # space. 40650 complete="$BUILD_LD" 40651 path="${complete%% *}" 40652 tmp="$complete EOL" 40653 arguments="${tmp#* }" 40654 40655 # Cannot rely on the command "which" here since it doesn't always work. 40656 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40657 if test -z "$is_absolute_path"; then 40658 # Path to executable is not absolute. Find it. 40659 IFS_save="$IFS" 40660 IFS=: 40661 for p in $PATH; do 40662 if test -f "$p/$path" && test -x "$p/$path"; then 40663 new_path="$p/$path" 40664 break 40665 fi 40666 done 40667 IFS="$IFS_save" 40668 else 40669 # This is an absolute path, we can use it without further modifications. 40670 new_path="$path" 40671 fi 40672 40673 if test "x$new_path" = x; then 40674 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40675 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40676 has_space=`$ECHO "$complete" | $GREP " "` 40677 if test "x$has_space" != x; then 40678 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40679 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40680 fi 40681 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40682 fi 40683 fi 40684 40685 # Now join together the path and the arguments once again 40686 if test "x$arguments" != xEOL; then 40687 new_complete="$new_path ${arguments% *}" 40688 else 40689 new_complete="$new_path" 40690 fi 40691 40692 if test "x$complete" != "x$new_complete"; then 40693 BUILD_LD="$new_complete" 40694 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40695 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40696 fi 40697 fi 40698 40699 else 40700 # If we are not cross compiling, use the normal target compilers for 40701 # building the build platform executables. 40702 BUILD_CC="$CC" 40703 BUILD_CXX="$CXX" 40704 BUILD_LD="$LD" 40705 fi 40706 40707 40708 40709 40710 40711 40712 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40713 # For hotspot, we need these in Windows mixed path, 40714 # so rewrite them all. Need added .exe suffix. 40715 HOTSPOT_CXX="$CXX.exe" 40716 HOTSPOT_LD="$LD.exe" 40717 HOTSPOT_MT="$MT.exe" 40718 HOTSPOT_RC="$RC.exe" 40719 40720 unix_path="$HOTSPOT_CXX" 40721 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40722 windows_path=`$CYGPATH -m "$unix_path"` 40723 HOTSPOT_CXX="$windows_path" 40724 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40725 windows_path=`cmd //c echo $unix_path` 40726 HOTSPOT_CXX="$windows_path" 40727 fi 40728 40729 40730 unix_path="$HOTSPOT_LD" 40731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40732 windows_path=`$CYGPATH -m "$unix_path"` 40733 HOTSPOT_LD="$windows_path" 40734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40735 windows_path=`cmd //c echo $unix_path` 40736 HOTSPOT_LD="$windows_path" 40737 fi 40738 40739 40740 unix_path="$HOTSPOT_MT" 40741 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40742 windows_path=`$CYGPATH -m "$unix_path"` 40743 HOTSPOT_MT="$windows_path" 40744 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40745 windows_path=`cmd //c echo $unix_path` 40746 HOTSPOT_MT="$windows_path" 40747 fi 40748 40749 40750 unix_path="$HOTSPOT_RC" 40751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40752 windows_path=`$CYGPATH -m "$unix_path"` 40753 HOTSPOT_RC="$windows_path" 40754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40755 windows_path=`cmd //c echo $unix_path` 40756 HOTSPOT_RC="$windows_path" 40757 fi 40758 40759 40760 40761 else 40762 HOTSPOT_CXX="$CXX" 40763 HOTSPOT_LD="$LD" 40764 fi 40765 40766 40767 40768 if test "x$TOOLCHAIN_TYPE" = xclang; then 40769 USE_CLANG=true 40770 fi 40771 40772 40773 # LDEXE is the linker to use, when creating executables. Not really used. 40774 # FIXME: These should just be removed! 40775 LDEXE="$LD" 40776 LDEXECXX="$LDCXX" 40777 40778 40779 40780 40781 40782 40783 # The package path is used only on macosx? 40784 # FIXME: clean this up, and/or move it elsewhere. 40785 PACKAGE_PATH=/opt/local 40786 40787 40788 # Check for extra potential brokenness. 40789 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40790 # On Windows, double-check that we got the right compiler. 40791 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40792 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40793 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40794 if test "x$COMPILER_CPU_TEST" != "x80x86" -a "x$COMPILER_CPU_TEST" != "xx86"; then 40795 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 40796 fi 40797 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40798 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40799 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40800 fi 40801 fi 40802 fi 40803 40804 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40805 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40806 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40807 # This is later checked when setting flags. 40808 40809 # "-Og" suppported for GCC 4.8 and later 40810 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40811 40812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40813 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40814 supports=yes 40815 40816 saved_cflags="$CFLAGS" 40817 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40818 ac_ext=c 40819 ac_cpp='$CPP $CPPFLAGS' 40820 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40821 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40822 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40823 40824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40825 /* end confdefs.h. */ 40826 int i; 40827 _ACEOF 40828 if ac_fn_c_try_compile "$LINENO"; then : 40829 40830 else 40831 supports=no 40832 fi 40833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40834 ac_ext=cpp 40835 ac_cpp='$CXXCPP $CPPFLAGS' 40836 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40837 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40838 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40839 40840 CFLAGS="$saved_cflags" 40841 40842 saved_cxxflags="$CXXFLAGS" 40843 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40844 ac_ext=cpp 40845 ac_cpp='$CXXCPP $CPPFLAGS' 40846 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40847 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40848 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40849 40850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40851 /* end confdefs.h. */ 40852 int i; 40853 _ACEOF 40854 if ac_fn_cxx_try_compile "$LINENO"; then : 40855 40856 else 40857 supports=no 40858 fi 40859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40860 ac_ext=cpp 40861 ac_cpp='$CXXCPP $CPPFLAGS' 40862 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40863 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40864 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40865 40866 CXXFLAGS="$saved_cxxflags" 40867 40868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40869 $as_echo "$supports" >&6; } 40870 if test "x$supports" = "xyes" ; then 40871 HAS_CFLAG_OPTIMIZE_DEBUG=true 40872 else 40873 HAS_CFLAG_OPTIMIZE_DEBUG=false 40874 fi 40875 40876 40877 # "-z relro" supported in GNU binutils 2.17 and later 40878 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 40879 40880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 40881 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 40882 supports=yes 40883 40884 saved_ldflags="$LDFLAGS" 40885 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 40886 ac_ext=c 40887 ac_cpp='$CPP $CPPFLAGS' 40888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40890 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40891 40892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40893 /* end confdefs.h. */ 40894 40895 int 40896 main () 40897 { 40898 40899 ; 40900 return 0; 40901 } 40902 _ACEOF 40903 if ac_fn_c_try_link "$LINENO"; then : 40904 40905 else 40906 supports=no 40907 fi 40908 rm -f core conftest.err conftest.$ac_objext \ 40909 conftest$ac_exeext conftest.$ac_ext 40910 ac_ext=cpp 40911 ac_cpp='$CXXCPP $CPPFLAGS' 40912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40915 40916 LDFLAGS="$saved_ldflags" 40917 40918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40919 $as_echo "$supports" >&6; } 40920 if test "x$supports" = "xyes" ; then 40921 HAS_LINKER_RELRO=true 40922 else 40923 HAS_LINKER_RELRO=false 40924 fi 40925 40926 40927 # "-z now" supported in GNU binutils 2.11 and later 40928 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 40929 40930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 40931 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 40932 supports=yes 40933 40934 saved_ldflags="$LDFLAGS" 40935 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 40936 ac_ext=c 40937 ac_cpp='$CPP $CPPFLAGS' 40938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40940 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40941 40942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40943 /* end confdefs.h. */ 40944 40945 int 40946 main () 40947 { 40948 40949 ; 40950 return 0; 40951 } 40952 _ACEOF 40953 if ac_fn_c_try_link "$LINENO"; then : 40954 40955 else 40956 supports=no 40957 fi 40958 rm -f core conftest.err conftest.$ac_objext \ 40959 conftest$ac_exeext conftest.$ac_ext 40960 ac_ext=cpp 40961 ac_cpp='$CXXCPP $CPPFLAGS' 40962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40965 40966 LDFLAGS="$saved_ldflags" 40967 40968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40969 $as_echo "$supports" >&6; } 40970 if test "x$supports" = "xyes" ; then 40971 HAS_LINKER_NOW=true 40972 else 40973 HAS_LINKER_NOW=false 40974 fi 40975 40976 fi 40977 40978 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40979 # in executable.' 40980 USING_BROKEN_SUSE_LD=no 40981 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40983 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40984 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 40985 $ECHO "int main() { }" > main.c 40986 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40988 $as_echo "no" >&6; } 40989 USING_BROKEN_SUSE_LD=no 40990 else 40991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40992 $as_echo "yes" >&6; } 40993 USING_BROKEN_SUSE_LD=yes 40994 fi 40995 rm -rf version-script.map main.c a.out 40996 fi 40997 40998 40999 41000 # Setup the JTReg Regression Test Harness. 41001 41002 41003 # Check whether --with-jtreg was given. 41004 if test "${with_jtreg+set}" = set; then : 41005 withval=$with_jtreg; 41006 else 41007 with_jtreg=no 41008 fi 41009 41010 41011 if test "x$with_jtreg" = xno; then 41012 # jtreg disabled 41013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41014 $as_echo_n "checking for jtreg... " >&6; } 41015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41016 $as_echo "no" >&6; } 41017 else 41018 if test "x$with_jtreg" != xyes; then 41019 # with path specified. 41020 JT_HOME="$with_jtreg" 41021 fi 41022 41023 if test "x$JT_HOME" != x; then 41024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 41025 $as_echo_n "checking for jtreg... " >&6; } 41026 41027 # use JT_HOME enviroment var. 41028 41029 # Only process if variable expands to non-empty 41030 41031 if test "x$JT_HOME" != x; then 41032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41033 41034 # Input might be given as Windows format, start by converting to 41035 # unix format. 41036 path="$JT_HOME" 41037 new_path=`$CYGPATH -u "$path"` 41038 41039 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 41040 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 41041 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 41042 # "foo.exe" is OK but "foo" is an error. 41043 # 41044 # This test is therefore slightly more accurate than "test -f" to check for file precense. 41045 # It is also a way to make sure we got the proper file name for the real test later on. 41046 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 41047 if test "x$test_shortpath" = x; then 41048 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41049 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41050 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 41051 fi 41052 41053 # Call helper function which possibly converts this using DOS-style short mode. 41054 # If so, the updated path is stored in $new_path. 41055 41056 input_path="$new_path" 41057 # Check if we need to convert this using DOS-style short mode. If the path 41058 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41059 # take no chances and rewrite it. 41060 # Note: m4 eats our [], so we need to use [ and ] instead. 41061 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 41062 if test "x$has_forbidden_chars" != x; then 41063 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41064 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 41065 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 41066 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 41067 # Going to short mode and back again did indeed matter. Since short mode is 41068 # case insensitive, let's make it lowercase to improve readability. 41069 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41070 # Now convert it back to Unix-stile (cygpath) 41071 input_path=`$CYGPATH -u "$shortmode_path"` 41072 new_path="$input_path" 41073 fi 41074 fi 41075 41076 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 41077 if test "x$test_cygdrive_prefix" = x; then 41078 # As a simple fix, exclude /usr/bin since it's not a real path. 41079 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 41080 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 41081 # a path prefixed by /cygdrive for fixpath to work. 41082 new_path="$CYGWIN_ROOT_PATH$input_path" 41083 fi 41084 fi 41085 41086 41087 if test "x$path" != "x$new_path"; then 41088 JT_HOME="$new_path" 41089 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41090 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41091 fi 41092 41093 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41094 41095 path="$JT_HOME" 41096 has_colon=`$ECHO $path | $GREP ^.:` 41097 new_path="$path" 41098 if test "x$has_colon" = x; then 41099 # Not in mixed or Windows style, start by that. 41100 new_path=`cmd //c echo $path` 41101 fi 41102 41103 41104 input_path="$new_path" 41105 # Check if we need to convert this using DOS-style short mode. If the path 41106 # contains just simple characters, use it. Otherwise (spaces, weird characters), 41107 # take no chances and rewrite it. 41108 # Note: m4 eats our [], so we need to use [ and ] instead. 41109 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 41110 if test "x$has_forbidden_chars" != x; then 41111 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 41112 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 41113 fi 41114 41115 41116 windows_path="$new_path" 41117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41118 unix_path=`$CYGPATH -u "$windows_path"` 41119 new_path="$unix_path" 41120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 41122 new_path="$unix_path" 41123 fi 41124 41125 if test "x$path" != "x$new_path"; then 41126 JT_HOME="$new_path" 41127 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 41128 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 41129 fi 41130 41131 # Save the first 10 bytes of this path to the storage, so fixpath can work. 41132 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 41133 41134 else 41135 # We're on a unix platform. Hooray! :) 41136 path="$JT_HOME" 41137 has_space=`$ECHO "$path" | $GREP " "` 41138 if test "x$has_space" != x; then 41139 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 41140 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 41141 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 41142 fi 41143 41144 # Use eval to expand a potential ~ 41145 eval path="$path" 41146 if test ! -f "$path" && test ! -d "$path"; then 41147 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 41148 fi 41149 41150 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 41151 fi 41152 fi 41153 41154 41155 # jtreg win32 script works for everybody 41156 JTREGEXE="$JT_HOME/win32/bin/jtreg" 41157 41158 if test ! -f "$JTREGEXE"; then 41159 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 41160 fi 41161 41162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41163 $as_echo "$JTREGEXE" >&6; } 41164 else 41165 # try to find jtreg on path 41166 41167 41168 41169 # Publish this variable in the help. 41170 41171 41172 if test "x$JTREGEXE" = x; then 41173 # The variable is not set by user, try to locate tool using the code snippet 41174 for ac_prog in jtreg 41175 do 41176 # Extract the first word of "$ac_prog", so it can be a program name with args. 41177 set dummy $ac_prog; ac_word=$2 41178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41179 $as_echo_n "checking for $ac_word... " >&6; } 41180 if ${ac_cv_path_JTREGEXE+:} false; then : 41181 $as_echo_n "(cached) " >&6 41182 else 41183 case $JTREGEXE in 41184 [\\/]* | ?:[\\/]*) 41185 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41186 ;; 41187 *) 41188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41189 for as_dir in $PATH 41190 do 41191 IFS=$as_save_IFS 41192 test -z "$as_dir" && as_dir=. 41193 for ac_exec_ext in '' $ac_executable_extensions; do 41194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41195 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41197 break 2 41198 fi 41199 done 41200 done 41201 IFS=$as_save_IFS 41202 41203 ;; 41204 esac 41205 fi 41206 JTREGEXE=$ac_cv_path_JTREGEXE 41207 if test -n "$JTREGEXE"; then 41208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41209 $as_echo "$JTREGEXE" >&6; } 41210 else 41211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41212 $as_echo "no" >&6; } 41213 fi 41214 41215 41216 test -n "$JTREGEXE" && break 41217 done 41218 41219 else 41220 # The variable is set, but is it from the command line or the environment? 41221 41222 # Try to remove the string !JTREGEXE! from our list. 41223 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 41224 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 41225 # If it failed, the variable was not from the command line. Ignore it, 41226 # but warn the user (except for BASH, which is always set by the calling BASH). 41227 if test "xJTREGEXE" != xBASH; then 41228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 41229 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 41230 fi 41231 # Try to locate tool using the code snippet 41232 for ac_prog in jtreg 41233 do 41234 # Extract the first word of "$ac_prog", so it can be a program name with args. 41235 set dummy $ac_prog; ac_word=$2 41236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41237 $as_echo_n "checking for $ac_word... " >&6; } 41238 if ${ac_cv_path_JTREGEXE+:} false; then : 41239 $as_echo_n "(cached) " >&6 41240 else 41241 case $JTREGEXE in 41242 [\\/]* | ?:[\\/]*) 41243 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41244 ;; 41245 *) 41246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41247 for as_dir in $PATH 41248 do 41249 IFS=$as_save_IFS 41250 test -z "$as_dir" && as_dir=. 41251 for ac_exec_ext in '' $ac_executable_extensions; do 41252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41253 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41255 break 2 41256 fi 41257 done 41258 done 41259 IFS=$as_save_IFS 41260 41261 ;; 41262 esac 41263 fi 41264 JTREGEXE=$ac_cv_path_JTREGEXE 41265 if test -n "$JTREGEXE"; then 41266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41267 $as_echo "$JTREGEXE" >&6; } 41268 else 41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41270 $as_echo "no" >&6; } 41271 fi 41272 41273 41274 test -n "$JTREGEXE" && break 41275 done 41276 41277 else 41278 # If it succeeded, then it was overridden by the user. We will use it 41279 # for the tool. 41280 41281 # First remove it from the list of overridden variables, so we can test 41282 # for unknown variables in the end. 41283 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41284 41285 # Check if the provided tool contains a complete path. 41286 tool_specified="$JTREGEXE" 41287 tool_basename="${tool_specified##*/}" 41288 if test "x$tool_basename" = "x$tool_specified"; then 41289 # A command without a complete path is provided, search $PATH. 41290 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41291 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41292 # Extract the first word of "$tool_basename", so it can be a program name with args. 41293 set dummy $tool_basename; ac_word=$2 41294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41295 $as_echo_n "checking for $ac_word... " >&6; } 41296 if ${ac_cv_path_JTREGEXE+:} false; then : 41297 $as_echo_n "(cached) " >&6 41298 else 41299 case $JTREGEXE in 41300 [\\/]* | ?:[\\/]*) 41301 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41302 ;; 41303 *) 41304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41305 for as_dir in $PATH 41306 do 41307 IFS=$as_save_IFS 41308 test -z "$as_dir" && as_dir=. 41309 for ac_exec_ext in '' $ac_executable_extensions; do 41310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41311 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41313 break 2 41314 fi 41315 done 41316 done 41317 IFS=$as_save_IFS 41318 41319 ;; 41320 esac 41321 fi 41322 JTREGEXE=$ac_cv_path_JTREGEXE 41323 if test -n "$JTREGEXE"; then 41324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41325 $as_echo "$JTREGEXE" >&6; } 41326 else 41327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41328 $as_echo "no" >&6; } 41329 fi 41330 41331 41332 if test "x$JTREGEXE" = x; then 41333 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41334 fi 41335 else 41336 # Otherwise we believe it is a complete path. Use it as it is. 41337 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41338 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41340 $as_echo_n "checking for JTREGEXE... " >&6; } 41341 if test ! -x "$tool_specified"; then 41342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41343 $as_echo "not found" >&6; } 41344 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41345 fi 41346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41347 $as_echo "$tool_specified" >&6; } 41348 fi 41349 fi 41350 fi 41351 41352 41353 41354 if test "x$JTREGEXE" = x; then 41355 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41356 fi 41357 41358 41359 JT_HOME="`$DIRNAME $JTREGEXE`" 41360 fi 41361 fi 41362 41363 41364 41365 41366 41367 41368 # Option used to tell the compiler whether to create 32- or 64-bit executables 41369 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41370 COMPILER_TARGET_BITS_FLAG="-q" 41371 else 41372 COMPILER_TARGET_BITS_FLAG="-m" 41373 fi 41374 41375 41376 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41377 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41378 ARFLAGS="-r" 41379 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41380 ARFLAGS="-X64" 41381 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41382 # lib.exe is used as AR to create static libraries. 41383 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41384 else 41385 ARFLAGS="" 41386 fi 41387 41388 41389 ## Setup strip. 41390 # FIXME: should this really be per platform, or should it be per toolchain type? 41391 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41392 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41393 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41394 STRIPFLAGS="-g" 41395 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41396 STRIPFLAGS="-x" 41397 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41398 STRIPFLAGS="-S" 41399 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41400 STRIPFLAGS="-X32_64" 41401 fi 41402 41403 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41404 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41405 fi 41406 41407 41408 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41409 # FIXME: break out into MCSFLAGS 41410 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41411 fi 41412 41413 41414 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41415 CC_OUT_OPTION=-Fo 41416 EXE_OUT_OPTION=-out: 41417 LD_OUT_OPTION=-out: 41418 AR_OUT_OPTION=-out: 41419 else 41420 # The option used to specify the target .o,.a or .so file. 41421 # When compiling, how to specify the to be created object file. 41422 CC_OUT_OPTION='-o$(SPACE)' 41423 # When linking, how to specify the to be created executable. 41424 EXE_OUT_OPTION='-o$(SPACE)' 41425 # When linking, how to specify the to be created dynamically linkable library. 41426 LD_OUT_OPTION='-o$(SPACE)' 41427 # When archiving, how to specify the to be create static archive for object files. 41428 AR_OUT_OPTION='rcs$(SPACE)' 41429 fi 41430 41431 41432 41433 41434 41435 # On Windows, we need to set RC flags. 41436 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41437 RC_FLAGS="-nologo -l0x409" 41438 if test "x$VARIANT" = xOPT; then 41439 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41440 fi 41441 41442 # The version variables used to create RC_FLAGS may be overridden 41443 # in a custom configure script, or possibly the command line. 41444 # Let those variables be expanded at make time in spec.gmk. 41445 # The \$ are escaped to the shell, and the $(...) variables 41446 # are evaluated by make. 41447 RC_FLAGS="$RC_FLAGS \ 41448 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41449 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41450 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41451 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41452 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41453 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41454 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41455 fi 41456 41457 41458 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41459 # silence copyright notice and other headers. 41460 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41461 fi 41462 41463 if test "x$SYSROOT" != "x"; then 41464 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41465 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41466 # Solaris Studio does not have a concept of sysroot. Instead we must 41467 # make sure the default include and lib dirs are appended to each 41468 # compile and link command line. 41469 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41470 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41471 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41472 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41473 fi 41474 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41475 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41476 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41477 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41478 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41479 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41480 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41481 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41482 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41483 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41484 fi 41485 # Propagate the sysroot args to hotspot 41486 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41487 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41488 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41489 fi 41490 41491 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41492 # set this here so it doesn't have to be peppered throughout the forest 41493 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41494 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41495 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41496 fi 41497 41498 41499 41500 41501 41502 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41503 41504 # Now we can test some aspects on the target using configure macros. 41505 41506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41507 $as_echo_n "checking for ANSI C header files... " >&6; } 41508 if ${ac_cv_header_stdc+:} false; then : 41509 $as_echo_n "(cached) " >&6 41510 else 41511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41512 /* end confdefs.h. */ 41513 #include <stdlib.h> 41514 #include <stdarg.h> 41515 #include <string.h> 41516 #include <float.h> 41517 41518 int 41519 main () 41520 { 41521 41522 ; 41523 return 0; 41524 } 41525 _ACEOF 41526 if ac_fn_cxx_try_compile "$LINENO"; then : 41527 ac_cv_header_stdc=yes 41528 else 41529 ac_cv_header_stdc=no 41530 fi 41531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41532 41533 if test $ac_cv_header_stdc = yes; then 41534 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41536 /* end confdefs.h. */ 41537 #include <string.h> 41538 41539 _ACEOF 41540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41541 $EGREP "memchr" >/dev/null 2>&1; then : 41542 41543 else 41544 ac_cv_header_stdc=no 41545 fi 41546 rm -f conftest* 41547 41548 fi 41549 41550 if test $ac_cv_header_stdc = yes; then 41551 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41553 /* end confdefs.h. */ 41554 #include <stdlib.h> 41555 41556 _ACEOF 41557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41558 $EGREP "free" >/dev/null 2>&1; then : 41559 41560 else 41561 ac_cv_header_stdc=no 41562 fi 41563 rm -f conftest* 41564 41565 fi 41566 41567 if test $ac_cv_header_stdc = yes; then 41568 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41569 if test "$cross_compiling" = yes; then : 41570 : 41571 else 41572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41573 /* end confdefs.h. */ 41574 #include <ctype.h> 41575 #include <stdlib.h> 41576 #if ((' ' & 0x0FF) == 0x020) 41577 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41578 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41579 #else 41580 # define ISLOWER(c) \ 41581 (('a' <= (c) && (c) <= 'i') \ 41582 || ('j' <= (c) && (c) <= 'r') \ 41583 || ('s' <= (c) && (c) <= 'z')) 41584 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41585 #endif 41586 41587 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41588 int 41589 main () 41590 { 41591 int i; 41592 for (i = 0; i < 256; i++) 41593 if (XOR (islower (i), ISLOWER (i)) 41594 || toupper (i) != TOUPPER (i)) 41595 return 2; 41596 return 0; 41597 } 41598 _ACEOF 41599 if ac_fn_cxx_try_run "$LINENO"; then : 41600 41601 else 41602 ac_cv_header_stdc=no 41603 fi 41604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41605 conftest.$ac_objext conftest.beam conftest.$ac_ext 41606 fi 41607 41608 fi 41609 fi 41610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41611 $as_echo "$ac_cv_header_stdc" >&6; } 41612 if test $ac_cv_header_stdc = yes; then 41613 41614 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41615 41616 fi 41617 41618 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41619 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41620 inttypes.h stdint.h unistd.h 41621 do : 41622 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41623 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41624 " 41625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41626 cat >>confdefs.h <<_ACEOF 41627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41628 _ACEOF 41629 41630 fi 41631 41632 done 41633 41634 41635 41636 ############################################################################### 41637 # 41638 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41639 # (The JVM can use 32 or 64 bit Java pointers but that decision 41640 # is made at runtime.) 41641 # 41642 41643 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41644 # Always specify -m flag on Solaris 41645 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41646 41647 # When we add flags to the "official" CFLAGS etc, we need to 41648 # keep track of these additions in ADDED_CFLAGS etc. These 41649 # will later be checked to make sure only controlled additions 41650 # have been made to CFLAGS etc. 41651 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41652 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41653 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41654 41655 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41656 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41657 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41658 41659 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41660 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41661 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41662 41663 elif test "x$COMPILE_TYPE" = xreduced; then 41664 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41665 # Specify -m if running reduced on unix platforms 41666 41667 # When we add flags to the "official" CFLAGS etc, we need to 41668 # keep track of these additions in ADDED_CFLAGS etc. These 41669 # will later be checked to make sure only controlled additions 41670 # have been made to CFLAGS etc. 41671 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41672 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41673 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41674 41675 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41676 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41677 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41678 41679 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41680 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41681 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41682 41683 fi 41684 fi 41685 41686 # Make compilation sanity check 41687 for ac_header in stdio.h 41688 do : 41689 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41690 if test "x$ac_cv_header_stdio_h" = xyes; then : 41691 cat >>confdefs.h <<_ACEOF 41692 #define HAVE_STDIO_H 1 41693 _ACEOF 41694 41695 else 41696 41697 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41698 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41699 if test "x$COMPILE_TYPE" = xreduced; then 41700 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41701 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41702 elif test "x$COMPILE_TYPE" = xcross; then 41703 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41704 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41705 fi 41706 as_fn_error $? "Cannot continue." "$LINENO" 5 41707 41708 fi 41709 41710 done 41711 41712 41713 # The cast to long int works around a bug in the HP C Compiler 41714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41716 # This bug is HP SR number 8606223364. 41717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41718 $as_echo_n "checking size of int *... " >&6; } 41719 if ${ac_cv_sizeof_int_p+:} false; then : 41720 $as_echo_n "(cached) " >&6 41721 else 41722 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41723 41724 else 41725 if test "$ac_cv_type_int_p" = yes; then 41726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41728 as_fn_error 77 "cannot compute sizeof (int *) 41729 See \`config.log' for more details" "$LINENO" 5; } 41730 else 41731 ac_cv_sizeof_int_p=0 41732 fi 41733 fi 41734 41735 fi 41736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41737 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41738 41739 41740 41741 cat >>confdefs.h <<_ACEOF 41742 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41743 _ACEOF 41744 41745 41746 41747 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41748 if test "x$ac_cv_sizeof_int_p" = x; then 41749 # The test failed, lets stick to the assumed value. 41750 { $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 41751 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41752 else 41753 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41754 41755 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41756 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41757 # Let's try to implicitely set the compilers target architecture and retry the test 41758 { $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 41759 $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;} 41760 { $as_echo "$as_me:${as_lineno-$LINENO}: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&5 41761 $as_echo "$as_me: I'll retry after setting the platforms compiler target bits flag to ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" >&6;} 41762 41763 # When we add flags to the "official" CFLAGS etc, we need to 41764 # keep track of these additions in ADDED_CFLAGS etc. These 41765 # will later be checked to make sure only controlled additions 41766 # have been made to CFLAGS etc. 41767 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41768 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41769 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41770 41771 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41772 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41773 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41774 41775 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41776 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41777 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41778 41779 41780 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41781 unset ac_cv_sizeof_int_p 41782 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41783 cat >>confdefs.h <<_ACEOF 41784 #undef SIZEOF_INT_P 41785 _ACEOF 41786 41787 # The cast to long int works around a bug in the HP C Compiler 41788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41790 # This bug is HP SR number 8606223364. 41791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41792 $as_echo_n "checking size of int *... " >&6; } 41793 if ${ac_cv_sizeof_int_p+:} false; then : 41794 $as_echo_n "(cached) " >&6 41795 else 41796 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41797 41798 else 41799 if test "$ac_cv_type_int_p" = yes; then 41800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41802 as_fn_error 77 "cannot compute sizeof (int *) 41803 See \`config.log' for more details" "$LINENO" 5; } 41804 else 41805 ac_cv_sizeof_int_p=0 41806 fi 41807 fi 41808 41809 fi 41810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41811 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41812 41813 41814 41815 cat >>confdefs.h <<_ACEOF 41816 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41817 _ACEOF 41818 41819 41820 41821 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41822 41823 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41824 as_fn_error $? "The tested number of bits in the target ($TESTED_TARGET_CPU_BITS) differs from the number of bits expected to be found in the target ($OPENJDK_TARGET_CPU_BITS)" "$LINENO" 5 41825 fi 41826 fi 41827 fi 41828 41829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41830 $as_echo_n "checking for target address size... " >&6; } 41831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41832 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41833 41834 41835 ############################################################################### 41836 # 41837 # Is the target little of big endian? 41838 # 41839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41840 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41841 if ${ac_cv_c_bigendian+:} false; then : 41842 $as_echo_n "(cached) " >&6 41843 else 41844 ac_cv_c_bigendian=unknown 41845 # See if we're dealing with a universal compiler. 41846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41847 /* end confdefs.h. */ 41848 #ifndef __APPLE_CC__ 41849 not a universal capable compiler 41850 #endif 41851 typedef int dummy; 41852 41853 _ACEOF 41854 if ac_fn_cxx_try_compile "$LINENO"; then : 41855 41856 # Check for potential -arch flags. It is not universal unless 41857 # there are at least two -arch flags with different values. 41858 ac_arch= 41859 ac_prev= 41860 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41861 if test -n "$ac_prev"; then 41862 case $ac_word in 41863 i?86 | x86_64 | ppc | ppc64) 41864 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41865 ac_arch=$ac_word 41866 else 41867 ac_cv_c_bigendian=universal 41868 break 41869 fi 41870 ;; 41871 esac 41872 ac_prev= 41873 elif test "x$ac_word" = "x-arch"; then 41874 ac_prev=arch 41875 fi 41876 done 41877 fi 41878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41879 if test $ac_cv_c_bigendian = unknown; then 41880 # See if sys/param.h defines the BYTE_ORDER macro. 41881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41882 /* end confdefs.h. */ 41883 #include <sys/types.h> 41884 #include <sys/param.h> 41885 41886 int 41887 main () 41888 { 41889 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41890 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41891 && LITTLE_ENDIAN) 41892 bogus endian macros 41893 #endif 41894 41895 ; 41896 return 0; 41897 } 41898 _ACEOF 41899 if ac_fn_cxx_try_compile "$LINENO"; then : 41900 # It does; now see whether it defined to BIG_ENDIAN or not. 41901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41902 /* end confdefs.h. */ 41903 #include <sys/types.h> 41904 #include <sys/param.h> 41905 41906 int 41907 main () 41908 { 41909 #if BYTE_ORDER != BIG_ENDIAN 41910 not big endian 41911 #endif 41912 41913 ; 41914 return 0; 41915 } 41916 _ACEOF 41917 if ac_fn_cxx_try_compile "$LINENO"; then : 41918 ac_cv_c_bigendian=yes 41919 else 41920 ac_cv_c_bigendian=no 41921 fi 41922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41923 fi 41924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41925 fi 41926 if test $ac_cv_c_bigendian = unknown; then 41927 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41929 /* end confdefs.h. */ 41930 #include <limits.h> 41931 41932 int 41933 main () 41934 { 41935 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41936 bogus endian macros 41937 #endif 41938 41939 ; 41940 return 0; 41941 } 41942 _ACEOF 41943 if ac_fn_cxx_try_compile "$LINENO"; then : 41944 # It does; now see whether it defined to _BIG_ENDIAN or not. 41945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41946 /* end confdefs.h. */ 41947 #include <limits.h> 41948 41949 int 41950 main () 41951 { 41952 #ifndef _BIG_ENDIAN 41953 not big endian 41954 #endif 41955 41956 ; 41957 return 0; 41958 } 41959 _ACEOF 41960 if ac_fn_cxx_try_compile "$LINENO"; then : 41961 ac_cv_c_bigendian=yes 41962 else 41963 ac_cv_c_bigendian=no 41964 fi 41965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41966 fi 41967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41968 fi 41969 if test $ac_cv_c_bigendian = unknown; then 41970 # Compile a test program. 41971 if test "$cross_compiling" = yes; then : 41972 # Try to guess by grepping values from an object file. 41973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41974 /* end confdefs.h. */ 41975 short int ascii_mm[] = 41976 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41977 short int ascii_ii[] = 41978 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41979 int use_ascii (int i) { 41980 return ascii_mm[i] + ascii_ii[i]; 41981 } 41982 short int ebcdic_ii[] = 41983 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41984 short int ebcdic_mm[] = 41985 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41986 int use_ebcdic (int i) { 41987 return ebcdic_mm[i] + ebcdic_ii[i]; 41988 } 41989 extern int foo; 41990 41991 int 41992 main () 41993 { 41994 return use_ascii (foo) == use_ebcdic (foo); 41995 ; 41996 return 0; 41997 } 41998 _ACEOF 41999 if ac_fn_cxx_try_compile "$LINENO"; then : 42000 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 42001 ac_cv_c_bigendian=yes 42002 fi 42003 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 42004 if test "$ac_cv_c_bigendian" = unknown; then 42005 ac_cv_c_bigendian=no 42006 else 42007 # finding both strings is unlikely to happen, but who knows? 42008 ac_cv_c_bigendian=unknown 42009 fi 42010 fi 42011 fi 42012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42013 else 42014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42015 /* end confdefs.h. */ 42016 $ac_includes_default 42017 int 42018 main () 42019 { 42020 42021 /* Are we little or big endian? From Harbison&Steele. */ 42022 union 42023 { 42024 long int l; 42025 char c[sizeof (long int)]; 42026 } u; 42027 u.l = 1; 42028 return u.c[sizeof (long int) - 1] == 1; 42029 42030 ; 42031 return 0; 42032 } 42033 _ACEOF 42034 if ac_fn_cxx_try_run "$LINENO"; then : 42035 ac_cv_c_bigendian=no 42036 else 42037 ac_cv_c_bigendian=yes 42038 fi 42039 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 42040 conftest.$ac_objext conftest.beam conftest.$ac_ext 42041 fi 42042 42043 fi 42044 fi 42045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 42046 $as_echo "$ac_cv_c_bigendian" >&6; } 42047 case $ac_cv_c_bigendian in #( 42048 yes) 42049 ENDIAN="big";; #( 42050 no) 42051 ENDIAN="little" ;; #( 42052 universal) 42053 ENDIAN="universal_endianness" 42054 ;; #( 42055 *) 42056 ENDIAN="unknown" ;; 42057 esac 42058 42059 42060 if test "x$ENDIAN" = xuniversal_endianness; then 42061 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 42062 fi 42063 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 42064 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 42065 fi 42066 42067 42068 # Configure flags for the tools 42069 42070 ############################################################################### 42071 # 42072 # How to compile shared libraries. 42073 # 42074 42075 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42076 PICFLAG="-fPIC" 42077 C_FLAG_REORDER='' 42078 CXX_FLAG_REORDER='' 42079 42080 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42081 # Linking is different on MacOSX 42082 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42083 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42084 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42085 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42086 SET_SHARED_LIBRARY_MAPFILE='' 42087 else 42088 # Default works for linux, might work on other platforms as well. 42089 SHARED_LIBRARY_FLAGS='-shared' 42090 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42091 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42092 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42093 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42094 fi 42095 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42096 PICFLAG='' 42097 C_FLAG_REORDER='' 42098 CXX_FLAG_REORDER='' 42099 42100 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42101 # Linking is different on MacOSX 42102 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 42103 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 42104 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42105 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 42106 SET_SHARED_LIBRARY_MAPFILE='' 42107 else 42108 # Default works for linux, might work on other platforms as well. 42109 SHARED_LIBRARY_FLAGS='-shared' 42110 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 42111 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 42112 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 42113 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 42114 fi 42115 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42116 PICFLAG="-KPIC" 42117 C_FLAG_REORDER='-xF' 42118 CXX_FLAG_REORDER='-xF' 42119 SHARED_LIBRARY_FLAGS="-G" 42120 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 42121 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 42122 SET_SHARED_LIBRARY_NAME='' 42123 SET_SHARED_LIBRARY_MAPFILE='-M$1' 42124 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42125 PICFLAG="-qpic=large" 42126 C_FLAG_REORDER='' 42127 CXX_FLAG_REORDER='' 42128 SHARED_LIBRARY_FLAGS="-qmkshrobj" 42129 SET_EXECUTABLE_ORIGIN="" 42130 SET_SHARED_LIBRARY_ORIGIN='' 42131 SET_SHARED_LIBRARY_NAME='' 42132 SET_SHARED_LIBRARY_MAPFILE='' 42133 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42134 PICFLAG="" 42135 C_FLAG_REORDER='' 42136 CXX_FLAG_REORDER='' 42137 SHARED_LIBRARY_FLAGS="-LD" 42138 SET_EXECUTABLE_ORIGIN='' 42139 SET_SHARED_LIBRARY_ORIGIN='' 42140 SET_SHARED_LIBRARY_NAME='' 42141 SET_SHARED_LIBRARY_MAPFILE='' 42142 fi 42143 42144 42145 42146 42147 42148 42149 42150 42151 42152 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42153 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 42154 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 42155 CFLAGS_JDKLIB_EXTRA='-xstrconst' 42156 fi 42157 # The (cross) compiler is now configured, we can now test capabilities 42158 # of the target platform. 42159 42160 42161 42162 ############################################################################### 42163 # 42164 # Setup the opt flags for different compilers 42165 # and different operating systems. 42166 # 42167 42168 # FIXME: this was indirectly the old default, but just inherited. 42169 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42170 # C_FLAG_DEPS="-MMD -MF" 42171 # fi 42172 42173 # Generate make dependency files 42174 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42175 C_FLAG_DEPS="-MMD -MF" 42176 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42177 C_FLAG_DEPS="-MMD -MF" 42178 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42179 C_FLAG_DEPS="-xMMD -xMF" 42180 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42181 C_FLAG_DEPS="-qmakedep=gcc -MF" 42182 fi 42183 CXX_FLAG_DEPS="$C_FLAG_DEPS" 42184 42185 42186 42187 # Debug symbols 42188 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42189 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 42190 # reduce from default "-g2" option to save space 42191 CFLAGS_DEBUG_SYMBOLS="-g1" 42192 CXXFLAGS_DEBUG_SYMBOLS="-g1" 42193 else 42194 CFLAGS_DEBUG_SYMBOLS="-g" 42195 CXXFLAGS_DEBUG_SYMBOLS="-g" 42196 fi 42197 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42198 CFLAGS_DEBUG_SYMBOLS="-g" 42199 CXXFLAGS_DEBUG_SYMBOLS="-g" 42200 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42201 CFLAGS_DEBUG_SYMBOLS="-g -xs" 42202 # FIXME: likely a bug, this disables debug symbols rather than enables them 42203 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 42204 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42205 CFLAGS_DEBUG_SYMBOLS="-g" 42206 CXXFLAGS_DEBUG_SYMBOLS="-g" 42207 fi 42208 42209 42210 42211 # bounds, memory and behavior checking options 42212 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42213 case $DEBUG_LEVEL in 42214 release ) 42215 # no adjustment 42216 ;; 42217 fastdebug ) 42218 # no adjustment 42219 ;; 42220 slowdebug ) 42221 # Add runtime stack smashing and undefined behavior checks 42222 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42223 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 42224 ;; 42225 esac 42226 fi 42227 42228 42229 42230 # Optimization levels 42231 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42232 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 42233 42234 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42235 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42236 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42237 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42238 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42239 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42240 C_O_FLAG_NONE="-xregs=no%frameptr" 42241 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42242 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42243 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42244 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42245 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42246 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42247 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42248 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42249 fi 42250 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42251 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42252 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42253 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42254 C_O_FLAG_DEBUG="" 42255 C_O_FLAG_NONE="" 42256 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42257 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42258 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42259 C_O_FLAG_DEBUG="" 42260 CXX_O_FLAG_NONE="" 42261 fi 42262 else 42263 # The remaining toolchains share opt flags between CC and CXX; 42264 # setup for C and duplicate afterwards. 42265 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42266 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42267 # On MacOSX we optimize for size, something 42268 # we should do for all platforms? 42269 C_O_FLAG_HIGHEST="-Os" 42270 C_O_FLAG_HI="-Os" 42271 C_O_FLAG_NORM="-Os" 42272 else 42273 C_O_FLAG_HIGHEST="-O3" 42274 C_O_FLAG_HI="-O3" 42275 C_O_FLAG_NORM="-O2" 42276 fi 42277 C_O_FLAG_DEBUG="-O0" 42278 C_O_FLAG_NONE="-O0" 42279 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42280 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42281 # On MacOSX we optimize for size, something 42282 # we should do for all platforms? 42283 C_O_FLAG_HIGHEST="-Os" 42284 C_O_FLAG_HI="-Os" 42285 C_O_FLAG_NORM="-Os" 42286 else 42287 C_O_FLAG_HIGHEST="-O3" 42288 C_O_FLAG_HI="-O3" 42289 C_O_FLAG_NORM="-O2" 42290 fi 42291 C_O_FLAG_DEBUG="-O0" 42292 C_O_FLAG_NONE="-O0" 42293 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42294 C_O_FLAG_HIGHEST="-O3" 42295 C_O_FLAG_HI="-O3 -qstrict" 42296 C_O_FLAG_NORM="-O2" 42297 C_O_FLAG_DEBUG="-qnoopt" 42298 C_O_FLAG_NONE="-qnoop" 42299 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42300 C_O_FLAG_HIGHEST="-O2" 42301 C_O_FLAG_HI="-O1" 42302 C_O_FLAG_NORM="-O1" 42303 C_O_FLAG_DEBUG="-Od" 42304 C_O_FLAG_NONE="-Od" 42305 fi 42306 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42307 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42308 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42309 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42310 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42311 fi 42312 42313 # Adjust optimization flags according to debug level. 42314 case $DEBUG_LEVEL in 42315 release ) 42316 # no adjustment 42317 ;; 42318 fastdebug ) 42319 # Not quite so much optimization 42320 C_O_FLAG_HI="$C_O_FLAG_NORM" 42321 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42322 ;; 42323 slowdebug ) 42324 # Disable optimization 42325 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42326 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42327 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42328 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42329 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42330 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42331 ;; 42332 esac 42333 42334 42335 42336 42337 42338 42339 42340 42341 42342 42343 42344 42345 42346 # Special extras... 42347 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42348 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42349 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42350 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42351 fi 42352 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42353 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42354 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42355 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42356 fi 42357 42358 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42360 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42361 fi 42362 42363 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42365 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42366 fi 42367 42368 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42370 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42371 fi 42372 42373 42374 # Check whether --with-extra-cflags was given. 42375 if test "${with_extra_cflags+set}" = set; then : 42376 withval=$with_extra_cflags; 42377 fi 42378 42379 42380 42381 # Check whether --with-extra-cxxflags was given. 42382 if test "${with_extra_cxxflags+set}" = set; then : 42383 withval=$with_extra_cxxflags; 42384 fi 42385 42386 42387 42388 # Check whether --with-extra-ldflags was given. 42389 if test "${with_extra_ldflags+set}" = set; then : 42390 withval=$with_extra_ldflags; 42391 fi 42392 42393 42394 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42395 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42396 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42397 42398 # Hotspot needs these set in their legacy form 42399 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42400 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42401 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42402 42403 42404 42405 42406 42407 ############################################################################### 42408 # 42409 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42410 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42411 # 42412 42413 # Setup compiler/platform specific flags into 42414 # CFLAGS_JDK - C Compiler flags 42415 # CXXFLAGS_JDK - C++ Compiler flags 42416 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42417 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42418 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42419 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42420 case $OPENJDK_TARGET_CPU_ARCH in 42421 arm ) 42422 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42423 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42424 ;; 42425 ppc ) 42426 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42427 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42428 ;; 42429 * ) 42430 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42431 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42432 ;; 42433 esac 42434 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42435 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42436 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42437 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42438 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42439 fi 42440 42441 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42442 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42443 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42444 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42445 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42446 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42447 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK \ 42448 -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42449 -DWIN32_LEAN_AND_MEAN \ 42450 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42451 -DWIN32 -DIAL" 42452 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42453 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42454 else 42455 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42456 fi 42457 # If building with Visual Studio 2010, we can still use _STATIC_CPPLIB to 42458 # avoid bundling msvcpNNN.dll. Doesn't work with newer versions of visual 42459 # studio. 42460 if test "x$TOOLCHAIN_VERSION" = "x2010"; then 42461 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42462 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB" 42463 fi 42464 fi 42465 42466 ############################################################################### 42467 42468 # Adjust flags according to debug level. 42469 case $DEBUG_LEVEL in 42470 fastdebug | slowdebug ) 42471 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42472 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42473 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42474 ;; 42475 release ) 42476 ;; 42477 * ) 42478 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42479 ;; 42480 esac 42481 42482 # Setup LP64 42483 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42484 42485 # Set some common defines. These works for all compilers, but assume 42486 # -D is universally accepted. 42487 42488 # Setup endianness 42489 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42490 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42491 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42492 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42493 # Note: -Dmacro is the same as #define macro 1 42494 # -Dmacro= is the same as #define macro 42495 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42496 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42497 else 42498 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42499 fi 42500 else 42501 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42502 # are defined in the system? 42503 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42504 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42505 else 42506 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42507 fi 42508 fi 42509 42510 # Setup target OS define. Use OS target name but in upper case. 42511 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42512 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42513 42514 # Setup target CPU 42515 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42516 42517 # Setup debug/release defines 42518 if test "x$DEBUG_LEVEL" = xrelease; then 42519 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42520 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42521 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42522 fi 42523 else 42524 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42525 fi 42526 42527 # Setup release name 42528 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42529 42530 42531 # Set some additional per-OS defines. 42532 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42533 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42534 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42535 # FIXME: PPC64 should not be here. 42536 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42537 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42538 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42539 fi 42540 42541 # Additional macosx handling 42542 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42543 # Setting these parameters makes it an error to link to macosx APIs that are 42544 # newer than the given OS version and makes the linked binaries compatible 42545 # even if built on a newer version of the OS. 42546 # The expected format is X.Y.Z 42547 MACOSX_VERSION_MIN=10.7.0 42548 42549 42550 # The macro takes the version with no dots, ex: 1070 42551 # Let the flags variables get resolved in make for easier override on make 42552 # command line. 42553 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42554 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42555 fi 42556 42557 # Setup some hard coded includes 42558 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42559 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42560 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42561 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42562 42563 # The shared libraries are compiled using the picflag. 42564 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42565 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42566 42567 # Executable flags 42568 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42569 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42570 42571 42572 42573 42574 42575 42576 # Setup LDFLAGS et al. 42577 # 42578 42579 # Now this is odd. The JDK native libraries have to link against libjvm.so 42580 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42581 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42582 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42583 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42584 # libraries will link to whatever is in memory. Yuck. 42585 # 42586 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42587 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42588 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42589 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42590 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42591 fi 42592 # TODO: make -debug optional "--disable-full-debug-symbols" 42593 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42594 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42595 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42596 # We have previously set HAS_GNU_HASH if this is the case 42597 if test -n "$HAS_GNU_HASH"; then 42598 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42599 fi 42600 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42601 # And since we now know that the linker is gnu, then add -z defs, to forbid 42602 # undefined symbols in object files. 42603 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42604 case $DEBUG_LEVEL in 42605 release ) 42606 # tell linker to optimize libraries. 42607 # Should this be supplied to the OSS linker as well? 42608 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42609 ;; 42610 slowdebug ) 42611 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42612 # do relocations at load 42613 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42614 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42615 fi 42616 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42617 # mark relocations read only 42618 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42619 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42620 fi 42621 ;; 42622 fastdebug ) 42623 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42624 # mark relocations read only 42625 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42626 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42627 fi 42628 ;; 42629 * ) 42630 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42631 ;; 42632 esac 42633 fi 42634 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42635 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42636 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42637 fi 42638 42639 # Customize LDFLAGS for executables 42640 42641 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42642 42643 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42644 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42645 LDFLAGS_STACK_SIZE=1048576 42646 else 42647 LDFLAGS_STACK_SIZE=327680 42648 fi 42649 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42650 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42651 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42652 fi 42653 42654 # Customize LDFLAGS for libs 42655 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42656 42657 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42658 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42659 LDFLAGS_JDKLIB_SUFFIX="" 42660 else 42661 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42662 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42663 42664 # On some platforms (mac) the linker warns about non existing -L dirs. 42665 # Add server first if available. Linking aginst client does not always produce the same results. 42666 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42667 # Default to server for other variants. 42668 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42669 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42670 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42671 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42672 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42673 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42674 else 42675 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42676 fi 42677 42678 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42679 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42680 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42681 fi 42682 fi 42683 42684 42685 42686 42687 42688 42689 42690 42691 # Some Zero and Shark settings. 42692 # ZERO_ARCHFLAG tells the compiler which mode to build for 42693 case "${OPENJDK_TARGET_CPU}" in 42694 s390) 42695 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42696 ;; 42697 *) 42698 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42699 esac 42700 42701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42702 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42703 supports=yes 42704 42705 saved_cflags="$CFLAGS" 42706 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42707 ac_ext=c 42708 ac_cpp='$CPP $CPPFLAGS' 42709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42711 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42712 42713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42714 /* end confdefs.h. */ 42715 int i; 42716 _ACEOF 42717 if ac_fn_c_try_compile "$LINENO"; then : 42718 42719 else 42720 supports=no 42721 fi 42722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42723 ac_ext=cpp 42724 ac_cpp='$CXXCPP $CPPFLAGS' 42725 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42726 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42727 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42728 42729 CFLAGS="$saved_cflags" 42730 42731 saved_cxxflags="$CXXFLAGS" 42732 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42733 ac_ext=cpp 42734 ac_cpp='$CXXCPP $CPPFLAGS' 42735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42738 42739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42740 /* end confdefs.h. */ 42741 int i; 42742 _ACEOF 42743 if ac_fn_cxx_try_compile "$LINENO"; then : 42744 42745 else 42746 supports=no 42747 fi 42748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42749 ac_ext=cpp 42750 ac_cpp='$CXXCPP $CPPFLAGS' 42751 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42752 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42753 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42754 42755 CXXFLAGS="$saved_cxxflags" 42756 42757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42758 $as_echo "$supports" >&6; } 42759 if test "x$supports" = "xyes" ; then 42760 : 42761 else 42762 ZERO_ARCHFLAG="" 42763 fi 42764 42765 42766 42767 # Check that the compiler supports -mX (or -qX on AIX) flags 42768 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42769 42770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42771 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42772 supports=yes 42773 42774 saved_cflags="$CFLAGS" 42775 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42776 ac_ext=c 42777 ac_cpp='$CPP $CPPFLAGS' 42778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42780 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42781 42782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42783 /* end confdefs.h. */ 42784 int i; 42785 _ACEOF 42786 if ac_fn_c_try_compile "$LINENO"; then : 42787 42788 else 42789 supports=no 42790 fi 42791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42792 ac_ext=cpp 42793 ac_cpp='$CXXCPP $CPPFLAGS' 42794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42797 42798 CFLAGS="$saved_cflags" 42799 42800 saved_cxxflags="$CXXFLAGS" 42801 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42802 ac_ext=cpp 42803 ac_cpp='$CXXCPP $CPPFLAGS' 42804 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42805 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42806 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42807 42808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42809 /* end confdefs.h. */ 42810 int i; 42811 _ACEOF 42812 if ac_fn_cxx_try_compile "$LINENO"; then : 42813 42814 else 42815 supports=no 42816 fi 42817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42818 ac_ext=cpp 42819 ac_cpp='$CXXCPP $CPPFLAGS' 42820 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42821 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42822 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42823 42824 CXXFLAGS="$saved_cxxflags" 42825 42826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42827 $as_echo "$supports" >&6; } 42828 if test "x$supports" = "xyes" ; then 42829 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42830 else 42831 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42832 fi 42833 42834 42835 42836 case "${TOOLCHAIN_TYPE}" in 42837 microsoft) 42838 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 42839 ;; 42840 solstudio) 42841 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 42842 ;; 42843 gcc) 42844 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42845 ;; 42846 clang) 42847 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42848 ;; 42849 esac 42850 42851 42852 42853 # Setup debug symbols (need objcopy from the toolchain for that) 42854 42855 # 42856 # ENABLE_DEBUG_SYMBOLS 42857 # This must be done after the toolchain is setup, since we're looking at objcopy. 42858 # 42859 # Check whether --enable-debug-symbols was given. 42860 if test "${enable_debug_symbols+set}" = set; then : 42861 enableval=$enable_debug_symbols; 42862 fi 42863 42864 42865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42866 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42867 42868 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42869 # explicit enabling of enable-debug-symbols and can't find objcopy 42870 # this is an error 42871 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42872 fi 42873 42874 if test "x$enable_debug_symbols" = "xyes"; then 42875 ENABLE_DEBUG_SYMBOLS=true 42876 elif test "x$enable_debug_symbols" = "xno"; then 42877 ENABLE_DEBUG_SYMBOLS=false 42878 else 42879 # Default is on if objcopy is found 42880 if test "x$OBJCOPY" != x; then 42881 ENABLE_DEBUG_SYMBOLS=true 42882 # MacOS X and Windows don't use objcopy but default is on for those OSes 42883 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42884 ENABLE_DEBUG_SYMBOLS=true 42885 else 42886 ENABLE_DEBUG_SYMBOLS=false 42887 fi 42888 fi 42889 42890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42891 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42892 42893 # 42894 # ZIP_DEBUGINFO_FILES 42895 # 42896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42897 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42898 # Check whether --enable-zip-debug-info was given. 42899 if test "${enable_zip_debug_info+set}" = set; then : 42900 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42901 else 42902 enable_zip_debug_info="yes" 42903 fi 42904 42905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42906 $as_echo "${enable_zip_debug_info}" >&6; } 42907 42908 if test "x${enable_zip_debug_info}" = "xno"; then 42909 ZIP_DEBUGINFO_FILES=false 42910 else 42911 ZIP_DEBUGINFO_FILES=true 42912 fi 42913 42914 42915 42916 42917 42918 ############################################################################### 42919 # 42920 # Check dependencies for external and internal libraries. 42921 # 42922 ############################################################################### 42923 42924 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42925 42926 # When using cygwin or msys, we need a wrapper binary that renames 42927 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42928 # @files and rewrites these too! This wrapper binary is 42929 # called fixpath. 42930 FIXPATH= 42931 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42933 $as_echo_n "checking if fixpath can be created... " >&6; } 42934 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42935 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42936 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42937 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42938 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42939 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42940 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42941 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42942 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42943 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42944 42945 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42946 # @ was chosen as separator to minimize risk of other tools messing around with it 42947 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42948 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42949 42950 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42951 fi 42952 rm -f $OUTPUT_ROOT/fixpath* 42953 cd $OUTPUT_ROOT 42954 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42955 cd $CURDIR 42956 42957 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42959 $as_echo "no" >&6; } 42960 cat $OUTPUT_ROOT/fixpath1.log 42961 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42962 fi 42963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42964 $as_echo "yes" >&6; } 42965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42966 $as_echo_n "checking if fixpath.exe works... " >&6; } 42967 cd $OUTPUT_ROOT 42968 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42969 cd $CURDIR 42970 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42972 $as_echo "no" >&6; } 42973 cat $OUTPUT_ROOT/fixpath2.log 42974 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42975 fi 42976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42977 $as_echo "yes" >&6; } 42978 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42979 fi 42980 42981 42982 42983 42984 42985 42986 ############################################################################### 42987 # 42988 # OS specific settings that we never will need to probe. 42989 # 42990 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42992 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42993 PULSE_NOT_NEEDED=yes 42994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42995 $as_echo "pulse" >&6; } 42996 fi 42997 42998 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 43000 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 43001 ALSA_NOT_NEEDED=yes 43002 PULSE_NOT_NEEDED=yes 43003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43004 $as_echo "alsa pulse" >&6; } 43005 fi 43006 43007 if test "x$OPENJDK_TARGET_OS" = xaix; then 43008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 43009 $as_echo_n "checking what is not needed on AIX?... " >&6; } 43010 ALSA_NOT_NEEDED=yes 43011 PULSE_NOT_NEEDED=yes 43012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 43013 $as_echo "alsa pulse" >&6; } 43014 fi 43015 43016 43017 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 43019 $as_echo_n "checking what is not needed on Windows?... " >&6; } 43020 CUPS_NOT_NEEDED=yes 43021 ALSA_NOT_NEEDED=yes 43022 PULSE_NOT_NEEDED=yes 43023 X11_NOT_NEEDED=yes 43024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 43025 $as_echo "alsa cups pulse x11" >&6; } 43026 fi 43027 43028 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 43029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 43030 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 43031 ALSA_NOT_NEEDED=yes 43032 PULSE_NOT_NEEDED=yes 43033 X11_NOT_NEEDED=yes 43034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 43035 $as_echo "alsa pulse x11" >&6; } 43036 fi 43037 43038 if test "x$OPENJDK_TARGET_OS" = xbsd; then 43039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 43040 $as_echo_n "checking what is not needed on bsd?... " >&6; } 43041 ALSA_NOT_NEEDED=yes 43042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 43043 $as_echo "alsa" >&6; } 43044 fi 43045 43046 if test "x$OPENJDK" = "xfalse"; then 43047 FREETYPE_NOT_NEEDED=yes 43048 fi 43049 43050 if test "x$SUPPORT_HEADFUL" = xno; then 43051 X11_NOT_NEEDED=yes 43052 fi 43053 43054 43055 43056 ############################################################################### 43057 # 43058 # Check for X Windows 43059 # 43060 43061 if test "x$X11_NOT_NEEDED" = xyes; then 43062 if test "x${with_x}" != x; then 43063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 43064 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 43065 fi 43066 X_CFLAGS= 43067 X_LIBS= 43068 else 43069 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 43070 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 43071 # --x-libraries for the sysroot, if that seems to be correct. 43072 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 43073 if test "x$SYSROOT" != "x"; then 43074 if test "x$x_includes" = xNONE; then 43075 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 43076 x_includes="$SYSROOT/usr/X11R6/include" 43077 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 43078 x_includes="$SYSROOT/usr/include" 43079 fi 43080 fi 43081 if test "x$x_libraries" = xNONE; then 43082 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 43083 x_libraries="$SYSROOT/usr/X11R6/lib" 43084 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 43085 x_libraries="$SYSROOT/usr/lib64" 43086 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 43087 x_libraries="$SYSROOT/usr/lib" 43088 fi 43089 fi 43090 fi 43091 fi 43092 43093 # Now let autoconf do it's magic 43094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 43095 $as_echo_n "checking for X... " >&6; } 43096 43097 43098 # Check whether --with-x was given. 43099 if test "${with_x+set}" = set; then : 43100 withval=$with_x; 43101 fi 43102 43103 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 43104 if test "x$with_x" = xno; then 43105 # The user explicitly disabled X. 43106 have_x=disabled 43107 else 43108 case $x_includes,$x_libraries in #( 43109 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 43110 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 43111 $as_echo_n "(cached) " >&6 43112 else 43113 # One or both of the vars are not set, and there is no cached value. 43114 ac_x_includes=no ac_x_libraries=no 43115 rm -f -r conftest.dir 43116 if mkdir conftest.dir; then 43117 cd conftest.dir 43118 cat >Imakefile <<'_ACEOF' 43119 incroot: 43120 @echo incroot='${INCROOT}' 43121 usrlibdir: 43122 @echo usrlibdir='${USRLIBDIR}' 43123 libdir: 43124 @echo libdir='${LIBDIR}' 43125 _ACEOF 43126 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 43127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 43128 for ac_var in incroot usrlibdir libdir; do 43129 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 43130 done 43131 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 43132 for ac_extension in a so sl dylib la dll; do 43133 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 43134 test -f "$ac_im_libdir/libX11.$ac_extension"; then 43135 ac_im_usrlibdir=$ac_im_libdir; break 43136 fi 43137 done 43138 # Screen out bogus values from the imake configuration. They are 43139 # bogus both because they are the default anyway, and because 43140 # using them would break gcc on systems where it needs fixed includes. 43141 case $ac_im_incroot in 43142 /usr/include) ac_x_includes= ;; 43143 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 43144 esac 43145 case $ac_im_usrlibdir in 43146 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 43147 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 43148 esac 43149 fi 43150 cd .. 43151 rm -f -r conftest.dir 43152 fi 43153 43154 # Standard set of common directories for X headers. 43155 # Check X11 before X11Rn because it is often a symlink to the current release. 43156 ac_x_header_dirs=' 43157 /usr/X11/include 43158 /usr/X11R7/include 43159 /usr/X11R6/include 43160 /usr/X11R5/include 43161 /usr/X11R4/include 43162 43163 /usr/include/X11 43164 /usr/include/X11R7 43165 /usr/include/X11R6 43166 /usr/include/X11R5 43167 /usr/include/X11R4 43168 43169 /usr/local/X11/include 43170 /usr/local/X11R7/include 43171 /usr/local/X11R6/include 43172 /usr/local/X11R5/include 43173 /usr/local/X11R4/include 43174 43175 /usr/local/include/X11 43176 /usr/local/include/X11R7 43177 /usr/local/include/X11R6 43178 /usr/local/include/X11R5 43179 /usr/local/include/X11R4 43180 43181 /usr/X386/include 43182 /usr/x386/include 43183 /usr/XFree86/include/X11 43184 43185 /usr/include 43186 /usr/local/include 43187 /usr/unsupported/include 43188 /usr/athena/include 43189 /usr/local/x11r5/include 43190 /usr/lpp/Xamples/include 43191 43192 /usr/openwin/include 43193 /usr/openwin/share/include' 43194 43195 if test "$ac_x_includes" = no; then 43196 # Guess where to find include files, by looking for Xlib.h. 43197 # First, try using that file with no special directory specified. 43198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43199 /* end confdefs.h. */ 43200 #include <X11/Xlib.h> 43201 _ACEOF 43202 if ac_fn_cxx_try_cpp "$LINENO"; then : 43203 # We can compile using X headers with no special include directory. 43204 ac_x_includes= 43205 else 43206 for ac_dir in $ac_x_header_dirs; do 43207 if test -r "$ac_dir/X11/Xlib.h"; then 43208 ac_x_includes=$ac_dir 43209 break 43210 fi 43211 done 43212 fi 43213 rm -f conftest.err conftest.i conftest.$ac_ext 43214 fi # $ac_x_includes = no 43215 43216 if test "$ac_x_libraries" = no; then 43217 # Check for the libraries. 43218 # See if we find them without any special options. 43219 # Don't add to $LIBS permanently. 43220 ac_save_LIBS=$LIBS 43221 LIBS="-lX11 $LIBS" 43222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43223 /* end confdefs.h. */ 43224 #include <X11/Xlib.h> 43225 int 43226 main () 43227 { 43228 XrmInitialize () 43229 ; 43230 return 0; 43231 } 43232 _ACEOF 43233 if ac_fn_cxx_try_link "$LINENO"; then : 43234 LIBS=$ac_save_LIBS 43235 # We can link X programs with no special library path. 43236 ac_x_libraries= 43237 else 43238 LIBS=$ac_save_LIBS 43239 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 43240 do 43241 # Don't even attempt the hair of trying to link an X program! 43242 for ac_extension in a so sl dylib la dll; do 43243 if test -r "$ac_dir/libX11.$ac_extension"; then 43244 ac_x_libraries=$ac_dir 43245 break 2 43246 fi 43247 done 43248 done 43249 fi 43250 rm -f core conftest.err conftest.$ac_objext \ 43251 conftest$ac_exeext conftest.$ac_ext 43252 fi # $ac_x_libraries = no 43253 43254 case $ac_x_includes,$ac_x_libraries in #( 43255 no,* | *,no | *\'*) 43256 # Didn't find X, or a directory has "'" in its name. 43257 ac_cv_have_x="have_x=no";; #( 43258 *) 43259 # Record where we found X for the cache. 43260 ac_cv_have_x="have_x=yes\ 43261 ac_x_includes='$ac_x_includes'\ 43262 ac_x_libraries='$ac_x_libraries'" 43263 esac 43264 fi 43265 ;; #( 43266 *) have_x=yes;; 43267 esac 43268 eval "$ac_cv_have_x" 43269 fi # $with_x != no 43270 43271 if test "$have_x" != yes; then 43272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43273 $as_echo "$have_x" >&6; } 43274 no_x=yes 43275 else 43276 # If each of the values was on the command line, it overrides each guess. 43277 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43278 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43279 # Update the cache value to reflect the command line values. 43280 ac_cv_have_x="have_x=yes\ 43281 ac_x_includes='$x_includes'\ 43282 ac_x_libraries='$x_libraries'" 43283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43284 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43285 fi 43286 43287 if test "$no_x" = yes; then 43288 # Not all programs may use this symbol, but it does not hurt to define it. 43289 43290 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43291 43292 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43293 else 43294 if test -n "$x_includes"; then 43295 X_CFLAGS="$X_CFLAGS -I$x_includes" 43296 fi 43297 43298 # It would also be nice to do this for all -L options, not just this one. 43299 if test -n "$x_libraries"; then 43300 X_LIBS="$X_LIBS -L$x_libraries" 43301 # For Solaris; some versions of Sun CC require a space after -R and 43302 # others require no space. Words are not sufficient . . . . 43303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43304 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43305 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43306 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43307 ac_cxx_werror_flag=yes 43308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43309 /* end confdefs.h. */ 43310 43311 int 43312 main () 43313 { 43314 43315 ; 43316 return 0; 43317 } 43318 _ACEOF 43319 if ac_fn_cxx_try_link "$LINENO"; then : 43320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43321 $as_echo "no" >&6; } 43322 X_LIBS="$X_LIBS -R$x_libraries" 43323 else 43324 LIBS="$ac_xsave_LIBS -R $x_libraries" 43325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43326 /* end confdefs.h. */ 43327 43328 int 43329 main () 43330 { 43331 43332 ; 43333 return 0; 43334 } 43335 _ACEOF 43336 if ac_fn_cxx_try_link "$LINENO"; then : 43337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43338 $as_echo "yes" >&6; } 43339 X_LIBS="$X_LIBS -R $x_libraries" 43340 else 43341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43342 $as_echo "neither works" >&6; } 43343 fi 43344 rm -f core conftest.err conftest.$ac_objext \ 43345 conftest$ac_exeext conftest.$ac_ext 43346 fi 43347 rm -f core conftest.err conftest.$ac_objext \ 43348 conftest$ac_exeext conftest.$ac_ext 43349 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43350 LIBS=$ac_xsave_LIBS 43351 fi 43352 43353 # Check for system-dependent libraries X programs must link with. 43354 # Do this before checking for the system-independent R6 libraries 43355 # (-lICE), since we may need -lsocket or whatever for X linking. 43356 43357 if test "$ISC" = yes; then 43358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43359 else 43360 # Martyn Johnson says this is needed for Ultrix, if the X 43361 # libraries were built with DECnet support. And Karl Berry says 43362 # the Alpha needs dnet_stub (dnet does not exist). 43363 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43365 /* end confdefs.h. */ 43366 43367 /* Override any GCC internal prototype to avoid an error. 43368 Use char because int might match the return type of a GCC 43369 builtin and then its argument prototype would still apply. */ 43370 #ifdef __cplusplus 43371 extern "C" 43372 #endif 43373 char XOpenDisplay (); 43374 int 43375 main () 43376 { 43377 return XOpenDisplay (); 43378 ; 43379 return 0; 43380 } 43381 _ACEOF 43382 if ac_fn_cxx_try_link "$LINENO"; then : 43383 43384 else 43385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43386 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43387 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43388 $as_echo_n "(cached) " >&6 43389 else 43390 ac_check_lib_save_LIBS=$LIBS 43391 LIBS="-ldnet $LIBS" 43392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43393 /* end confdefs.h. */ 43394 43395 /* Override any GCC internal prototype to avoid an error. 43396 Use char because int might match the return type of a GCC 43397 builtin and then its argument prototype would still apply. */ 43398 #ifdef __cplusplus 43399 extern "C" 43400 #endif 43401 char dnet_ntoa (); 43402 int 43403 main () 43404 { 43405 return dnet_ntoa (); 43406 ; 43407 return 0; 43408 } 43409 _ACEOF 43410 if ac_fn_cxx_try_link "$LINENO"; then : 43411 ac_cv_lib_dnet_dnet_ntoa=yes 43412 else 43413 ac_cv_lib_dnet_dnet_ntoa=no 43414 fi 43415 rm -f core conftest.err conftest.$ac_objext \ 43416 conftest$ac_exeext conftest.$ac_ext 43417 LIBS=$ac_check_lib_save_LIBS 43418 fi 43419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43420 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43421 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43423 fi 43424 43425 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43427 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43428 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43429 $as_echo_n "(cached) " >&6 43430 else 43431 ac_check_lib_save_LIBS=$LIBS 43432 LIBS="-ldnet_stub $LIBS" 43433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43434 /* end confdefs.h. */ 43435 43436 /* Override any GCC internal prototype to avoid an error. 43437 Use char because int might match the return type of a GCC 43438 builtin and then its argument prototype would still apply. */ 43439 #ifdef __cplusplus 43440 extern "C" 43441 #endif 43442 char dnet_ntoa (); 43443 int 43444 main () 43445 { 43446 return dnet_ntoa (); 43447 ; 43448 return 0; 43449 } 43450 _ACEOF 43451 if ac_fn_cxx_try_link "$LINENO"; then : 43452 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43453 else 43454 ac_cv_lib_dnet_stub_dnet_ntoa=no 43455 fi 43456 rm -f core conftest.err conftest.$ac_objext \ 43457 conftest$ac_exeext conftest.$ac_ext 43458 LIBS=$ac_check_lib_save_LIBS 43459 fi 43460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43461 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43462 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43464 fi 43465 43466 fi 43467 fi 43468 rm -f core conftest.err conftest.$ac_objext \ 43469 conftest$ac_exeext conftest.$ac_ext 43470 LIBS="$ac_xsave_LIBS" 43471 43472 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43473 # to get the SysV transport functions. 43474 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43475 # needs -lnsl. 43476 # The nsl library prevents programs from opening the X display 43477 # on Irix 5.2, according to T.E. Dickey. 43478 # The functions gethostbyname, getservbyname, and inet_addr are 43479 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43480 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43481 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43482 43483 fi 43484 43485 if test $ac_cv_func_gethostbyname = no; then 43486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43487 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43488 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43489 $as_echo_n "(cached) " >&6 43490 else 43491 ac_check_lib_save_LIBS=$LIBS 43492 LIBS="-lnsl $LIBS" 43493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43494 /* end confdefs.h. */ 43495 43496 /* Override any GCC internal prototype to avoid an error. 43497 Use char because int might match the return type of a GCC 43498 builtin and then its argument prototype would still apply. */ 43499 #ifdef __cplusplus 43500 extern "C" 43501 #endif 43502 char gethostbyname (); 43503 int 43504 main () 43505 { 43506 return gethostbyname (); 43507 ; 43508 return 0; 43509 } 43510 _ACEOF 43511 if ac_fn_cxx_try_link "$LINENO"; then : 43512 ac_cv_lib_nsl_gethostbyname=yes 43513 else 43514 ac_cv_lib_nsl_gethostbyname=no 43515 fi 43516 rm -f core conftest.err conftest.$ac_objext \ 43517 conftest$ac_exeext conftest.$ac_ext 43518 LIBS=$ac_check_lib_save_LIBS 43519 fi 43520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43521 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43522 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43524 fi 43525 43526 if test $ac_cv_lib_nsl_gethostbyname = no; then 43527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43528 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43529 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43530 $as_echo_n "(cached) " >&6 43531 else 43532 ac_check_lib_save_LIBS=$LIBS 43533 LIBS="-lbsd $LIBS" 43534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43535 /* end confdefs.h. */ 43536 43537 /* Override any GCC internal prototype to avoid an error. 43538 Use char because int might match the return type of a GCC 43539 builtin and then its argument prototype would still apply. */ 43540 #ifdef __cplusplus 43541 extern "C" 43542 #endif 43543 char gethostbyname (); 43544 int 43545 main () 43546 { 43547 return gethostbyname (); 43548 ; 43549 return 0; 43550 } 43551 _ACEOF 43552 if ac_fn_cxx_try_link "$LINENO"; then : 43553 ac_cv_lib_bsd_gethostbyname=yes 43554 else 43555 ac_cv_lib_bsd_gethostbyname=no 43556 fi 43557 rm -f core conftest.err conftest.$ac_objext \ 43558 conftest$ac_exeext conftest.$ac_ext 43559 LIBS=$ac_check_lib_save_LIBS 43560 fi 43561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43562 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43563 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43565 fi 43566 43567 fi 43568 fi 43569 43570 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43571 # socket/setsockopt and other routines are undefined under SCO ODT 43572 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43573 # on later versions), says Simon Leinen: it contains gethostby* 43574 # variants that don't use the name server (or something). -lsocket 43575 # must be given before -lnsl if both are needed. We assume that 43576 # if connect needs -lnsl, so does gethostbyname. 43577 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43578 if test "x$ac_cv_func_connect" = xyes; then : 43579 43580 fi 43581 43582 if test $ac_cv_func_connect = no; then 43583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43584 $as_echo_n "checking for connect in -lsocket... " >&6; } 43585 if ${ac_cv_lib_socket_connect+:} false; then : 43586 $as_echo_n "(cached) " >&6 43587 else 43588 ac_check_lib_save_LIBS=$LIBS 43589 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43591 /* end confdefs.h. */ 43592 43593 /* Override any GCC internal prototype to avoid an error. 43594 Use char because int might match the return type of a GCC 43595 builtin and then its argument prototype would still apply. */ 43596 #ifdef __cplusplus 43597 extern "C" 43598 #endif 43599 char connect (); 43600 int 43601 main () 43602 { 43603 return connect (); 43604 ; 43605 return 0; 43606 } 43607 _ACEOF 43608 if ac_fn_cxx_try_link "$LINENO"; then : 43609 ac_cv_lib_socket_connect=yes 43610 else 43611 ac_cv_lib_socket_connect=no 43612 fi 43613 rm -f core conftest.err conftest.$ac_objext \ 43614 conftest$ac_exeext conftest.$ac_ext 43615 LIBS=$ac_check_lib_save_LIBS 43616 fi 43617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43618 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43619 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43620 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43621 fi 43622 43623 fi 43624 43625 # Guillermo Gomez says -lposix is necessary on A/UX. 43626 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43627 if test "x$ac_cv_func_remove" = xyes; then : 43628 43629 fi 43630 43631 if test $ac_cv_func_remove = no; then 43632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43633 $as_echo_n "checking for remove in -lposix... " >&6; } 43634 if ${ac_cv_lib_posix_remove+:} false; then : 43635 $as_echo_n "(cached) " >&6 43636 else 43637 ac_check_lib_save_LIBS=$LIBS 43638 LIBS="-lposix $LIBS" 43639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43640 /* end confdefs.h. */ 43641 43642 /* Override any GCC internal prototype to avoid an error. 43643 Use char because int might match the return type of a GCC 43644 builtin and then its argument prototype would still apply. */ 43645 #ifdef __cplusplus 43646 extern "C" 43647 #endif 43648 char remove (); 43649 int 43650 main () 43651 { 43652 return remove (); 43653 ; 43654 return 0; 43655 } 43656 _ACEOF 43657 if ac_fn_cxx_try_link "$LINENO"; then : 43658 ac_cv_lib_posix_remove=yes 43659 else 43660 ac_cv_lib_posix_remove=no 43661 fi 43662 rm -f core conftest.err conftest.$ac_objext \ 43663 conftest$ac_exeext conftest.$ac_ext 43664 LIBS=$ac_check_lib_save_LIBS 43665 fi 43666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43667 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43668 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43670 fi 43671 43672 fi 43673 43674 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43675 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43676 if test "x$ac_cv_func_shmat" = xyes; then : 43677 43678 fi 43679 43680 if test $ac_cv_func_shmat = no; then 43681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43682 $as_echo_n "checking for shmat in -lipc... " >&6; } 43683 if ${ac_cv_lib_ipc_shmat+:} false; then : 43684 $as_echo_n "(cached) " >&6 43685 else 43686 ac_check_lib_save_LIBS=$LIBS 43687 LIBS="-lipc $LIBS" 43688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43689 /* end confdefs.h. */ 43690 43691 /* Override any GCC internal prototype to avoid an error. 43692 Use char because int might match the return type of a GCC 43693 builtin and then its argument prototype would still apply. */ 43694 #ifdef __cplusplus 43695 extern "C" 43696 #endif 43697 char shmat (); 43698 int 43699 main () 43700 { 43701 return shmat (); 43702 ; 43703 return 0; 43704 } 43705 _ACEOF 43706 if ac_fn_cxx_try_link "$LINENO"; then : 43707 ac_cv_lib_ipc_shmat=yes 43708 else 43709 ac_cv_lib_ipc_shmat=no 43710 fi 43711 rm -f core conftest.err conftest.$ac_objext \ 43712 conftest$ac_exeext conftest.$ac_ext 43713 LIBS=$ac_check_lib_save_LIBS 43714 fi 43715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43716 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43717 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43719 fi 43720 43721 fi 43722 fi 43723 43724 # Check for libraries that X11R6 Xt/Xaw programs need. 43725 ac_save_LDFLAGS=$LDFLAGS 43726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43728 # check for ICE first), but we must link in the order -lSM -lICE or 43729 # we get undefined symbols. So assume we have SM if we have ICE. 43730 # These have to be linked with before -lX11, unlike the other 43731 # libraries we check for below, so use a different variable. 43732 # John Interrante, Karl Berry 43733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43734 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43735 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43736 $as_echo_n "(cached) " >&6 43737 else 43738 ac_check_lib_save_LIBS=$LIBS 43739 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43741 /* end confdefs.h. */ 43742 43743 /* Override any GCC internal prototype to avoid an error. 43744 Use char because int might match the return type of a GCC 43745 builtin and then its argument prototype would still apply. */ 43746 #ifdef __cplusplus 43747 extern "C" 43748 #endif 43749 char IceConnectionNumber (); 43750 int 43751 main () 43752 { 43753 return IceConnectionNumber (); 43754 ; 43755 return 0; 43756 } 43757 _ACEOF 43758 if ac_fn_cxx_try_link "$LINENO"; then : 43759 ac_cv_lib_ICE_IceConnectionNumber=yes 43760 else 43761 ac_cv_lib_ICE_IceConnectionNumber=no 43762 fi 43763 rm -f core conftest.err conftest.$ac_objext \ 43764 conftest$ac_exeext conftest.$ac_ext 43765 LIBS=$ac_check_lib_save_LIBS 43766 fi 43767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43768 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43769 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43770 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43771 fi 43772 43773 LDFLAGS=$ac_save_LDFLAGS 43774 43775 fi 43776 43777 43778 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43779 # this doesn't make sense so we remove it. 43780 if test "x$COMPILE_TYPE" = xcross; then 43781 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43782 fi 43783 43784 if test "x$no_x" = xyes; then 43785 43786 # Print a helpful message on how to acquire the necessary build dependency. 43787 # x11 is the help tag: freetype, cups, pulse, alsa etc 43788 MISSING_DEPENDENCY=x11 43789 43790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43791 cygwin_help $MISSING_DEPENDENCY 43792 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43793 msys_help $MISSING_DEPENDENCY 43794 else 43795 PKGHANDLER_COMMAND= 43796 43797 case $PKGHANDLER in 43798 apt-get) 43799 apt_help $MISSING_DEPENDENCY ;; 43800 yum) 43801 yum_help $MISSING_DEPENDENCY ;; 43802 port) 43803 port_help $MISSING_DEPENDENCY ;; 43804 pkgutil) 43805 pkgutil_help $MISSING_DEPENDENCY ;; 43806 pkgadd) 43807 pkgadd_help $MISSING_DEPENDENCY ;; 43808 esac 43809 43810 if test "x$PKGHANDLER_COMMAND" != x; then 43811 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43812 fi 43813 fi 43814 43815 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43816 fi 43817 43818 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43819 OPENWIN_HOME="/usr/openwin" 43820 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 43821 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43822 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43823 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43824 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 43825 fi 43826 43827 ac_ext=c 43828 ac_cpp='$CPP $CPPFLAGS' 43829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43831 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43832 43833 OLD_CFLAGS="$CFLAGS" 43834 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 43835 43836 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43837 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43838 do : 43839 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43840 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43841 # include <X11/Xlib.h> 43842 # include <X11/Xutil.h> 43843 43844 43845 " 43846 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43847 cat >>confdefs.h <<_ACEOF 43848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43849 _ACEOF 43850 X11_HEADERS_OK=yes 43851 else 43852 X11_HEADERS_OK=no; break 43853 fi 43854 43855 done 43856 43857 43858 if test "x$X11_HEADERS_OK" = xno; then 43859 43860 # Print a helpful message on how to acquire the necessary build dependency. 43861 # x11 is the help tag: freetype, cups, pulse, alsa etc 43862 MISSING_DEPENDENCY=x11 43863 43864 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43865 cygwin_help $MISSING_DEPENDENCY 43866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43867 msys_help $MISSING_DEPENDENCY 43868 else 43869 PKGHANDLER_COMMAND= 43870 43871 case $PKGHANDLER in 43872 apt-get) 43873 apt_help $MISSING_DEPENDENCY ;; 43874 yum) 43875 yum_help $MISSING_DEPENDENCY ;; 43876 port) 43877 port_help $MISSING_DEPENDENCY ;; 43878 pkgutil) 43879 pkgutil_help $MISSING_DEPENDENCY ;; 43880 pkgadd) 43881 pkgadd_help $MISSING_DEPENDENCY ;; 43882 esac 43883 43884 if test "x$PKGHANDLER_COMMAND" != x; then 43885 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43886 fi 43887 fi 43888 43889 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43890 fi 43891 43892 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 43893 # defined in libawt_xawt. 43894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 43895 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 43896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43897 /* end confdefs.h. */ 43898 #include <X11/extensions/Xrender.h> 43899 int 43900 main () 43901 { 43902 XLinearGradient x; 43903 ; 43904 return 0; 43905 } 43906 _ACEOF 43907 if ac_fn_c_try_compile "$LINENO"; then : 43908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43909 $as_echo "yes" >&6; } 43910 else 43911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43912 $as_echo "no" >&6; } 43913 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 43914 fi 43915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43916 43917 CFLAGS="$OLD_CFLAGS" 43918 ac_ext=cpp 43919 ac_cpp='$CXXCPP $CPPFLAGS' 43920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43923 43924 fi # X11_NOT_NEEDED 43925 43926 43927 43928 43929 43930 43931 ############################################################################### 43932 # 43933 # The common unix printing system cups is used to print from java. 43934 # 43935 43936 # Check whether --with-cups was given. 43937 if test "${with_cups+set}" = set; then : 43938 withval=$with_cups; 43939 fi 43940 43941 43942 # Check whether --with-cups-include was given. 43943 if test "${with_cups_include+set}" = set; then : 43944 withval=$with_cups_include; 43945 fi 43946 43947 43948 if test "x$CUPS_NOT_NEEDED" = xyes; then 43949 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43951 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43952 fi 43953 CUPS_CFLAGS= 43954 else 43955 CUPS_FOUND=no 43956 43957 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43958 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43959 fi 43960 43961 if test "x${with_cups}" != x; then 43962 CUPS_CFLAGS="-I${with_cups}/include" 43963 CUPS_FOUND=yes 43964 fi 43965 if test "x${with_cups_include}" != x; then 43966 CUPS_CFLAGS="-I${with_cups_include}" 43967 CUPS_FOUND=yes 43968 fi 43969 if test "x$CUPS_FOUND" = xno; then 43970 43971 43972 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43973 # Source the builddeps file again, to make sure it uses the latest variables! 43974 . $builddepsfile 43975 # Look for a target and build machine specific resource! 43976 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43977 if test "x$resource" = x; then 43978 # Ok, lets instead look for a target specific resource 43979 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43980 fi 43981 if test "x$resource" = x; then 43982 # Ok, lets instead look for a build specific resource 43983 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43984 fi 43985 if test "x$resource" = x; then 43986 # Ok, lets instead look for a generic resource 43987 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43988 resource=${builddep_cups} 43989 fi 43990 if test "x$resource" != x; then 43991 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43992 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43993 # If the resource in the builddeps.conf file is an existing directory, 43994 # for example /java/linux/cups 43995 if test -d ${resource}; then 43996 depdir=${resource} 43997 else 43998 43999 # cups is for example mymodule 44000 # $resource is for example libs/general/libmymod_1_2_3.zip 44001 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44002 # $with_builddeps_dir is for example /localhome/builddeps 44003 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44004 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44005 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44006 filename=`basename $resource` 44007 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44008 filebase=${filename%%.*} 44009 extension=${filename#*.} 44010 installdir=$with_builddeps_dir/$filebase 44011 if test ! -f $installdir/$filename.unpacked; then 44012 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 44013 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44014 if test ! -d $installdir; then 44015 mkdir -p $installdir 44016 fi 44017 if test ! -d $installdir; then 44018 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44019 fi 44020 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 44021 touch $tmpfile 44022 if test ! -f $tmpfile; then 44023 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44024 fi 44025 44026 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44027 # $tmpfile is the local file name for the downloaded file. 44028 VALID_TOOL=no 44029 if test "x$BDEPS_FTP" = xwget; then 44030 VALID_TOOL=yes 44031 wget -O $tmpfile $with_builddeps_server/$resource 44032 fi 44033 if test "x$BDEPS_FTP" = xlftp; then 44034 VALID_TOOL=yes 44035 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44036 fi 44037 if test "x$BDEPS_FTP" = xftp; then 44038 VALID_TOOL=yes 44039 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44040 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44041 FTPUSERPWD=${FTPSERVER%%@*} 44042 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44043 FTPUSER=${userpwd%%:*} 44044 FTPPWD=${userpwd#*@} 44045 FTPSERVER=${FTPSERVER#*@} 44046 else 44047 FTPUSER=ftp 44048 FTPPWD=ftp 44049 fi 44050 # the "pass" command does not work on some 44051 # ftp clients (read ftp.exe) but if it works, 44052 # passive mode is better! 44053 ( \ 44054 echo "user $FTPUSER $FTPPWD" ; \ 44055 echo "pass" ; \ 44056 echo "bin" ; \ 44057 echo "get $FTPPATH $tmpfile" ; \ 44058 ) | ftp -in $FTPSERVER 44059 fi 44060 if test "x$VALID_TOOL" != xyes; then 44061 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44062 fi 44063 44064 mv $tmpfile $installdir/$filename 44065 if test ! -s $installdir/$filename; then 44066 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44067 fi 44068 case "$extension" in 44069 zip) echo "Unzipping $installdir/$filename..." 44070 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44071 ;; 44072 tar.gz) echo "Untaring $installdir/$filename..." 44073 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44074 ;; 44075 tgz) echo "Untaring $installdir/$filename..." 44076 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44077 ;; 44078 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44079 ;; 44080 esac 44081 fi 44082 if test -f $installdir/$filename.unpacked; then 44083 depdir=$installdir 44084 fi 44085 44086 fi 44087 # Source the builddeps file again, because in the previous command, the depdir 44088 # was updated to point at the current build dependency install directory. 44089 . $builddepsfile 44090 # Now extract variables from the builddeps.conf files. 44091 theroot=${builddep_cups_ROOT} 44092 thecflags=${builddep_cups_CFLAGS} 44093 thelibs=${builddep_cups_LIBS} 44094 if test "x$depdir" = x; then 44095 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 44096 fi 44097 CUPS=$depdir 44098 if test "x$theroot" != x; then 44099 CUPS="$theroot" 44100 fi 44101 if test "x$thecflags" != x; then 44102 CUPS_CFLAGS="$thecflags" 44103 fi 44104 if test "x$thelibs" != x; then 44105 CUPS_LIBS="$thelibs" 44106 fi 44107 CUPS_FOUND=yes 44108 44109 fi 44110 44111 fi 44112 44113 fi 44114 if test "x$CUPS_FOUND" = xno; then 44115 # Are the cups headers installed in the default /usr/include location? 44116 for ac_header in cups/cups.h cups/ppd.h 44117 do : 44118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 44119 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 44120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 44121 cat >>confdefs.h <<_ACEOF 44122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 44123 _ACEOF 44124 44125 CUPS_FOUND=yes 44126 CUPS_CFLAGS= 44127 DEFAULT_CUPS=yes 44128 44129 44130 fi 44131 44132 done 44133 44134 fi 44135 if test "x$CUPS_FOUND" = xno; then 44136 # Getting nervous now? Lets poke around for standard Solaris third-party 44137 # package installation locations. 44138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 44139 $as_echo_n "checking for cups headers... " >&6; } 44140 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 44141 # An SFW package seems to be installed! 44142 CUPS_FOUND=yes 44143 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 44144 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 44145 # A CSW package seems to be installed! 44146 CUPS_FOUND=yes 44147 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 44148 fi 44149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 44150 $as_echo "$CUPS_FOUND" >&6; } 44151 fi 44152 if test "x$CUPS_FOUND" = xno; then 44153 44154 # Print a helpful message on how to acquire the necessary build dependency. 44155 # cups is the help tag: freetype, cups, pulse, alsa etc 44156 MISSING_DEPENDENCY=cups 44157 44158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44159 cygwin_help $MISSING_DEPENDENCY 44160 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44161 msys_help $MISSING_DEPENDENCY 44162 else 44163 PKGHANDLER_COMMAND= 44164 44165 case $PKGHANDLER in 44166 apt-get) 44167 apt_help $MISSING_DEPENDENCY ;; 44168 yum) 44169 yum_help $MISSING_DEPENDENCY ;; 44170 port) 44171 port_help $MISSING_DEPENDENCY ;; 44172 pkgutil) 44173 pkgutil_help $MISSING_DEPENDENCY ;; 44174 pkgadd) 44175 pkgadd_help $MISSING_DEPENDENCY ;; 44176 esac 44177 44178 if test "x$PKGHANDLER_COMMAND" != x; then 44179 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 44180 fi 44181 fi 44182 44183 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 44184 fi 44185 fi 44186 44187 44188 44189 44190 44191 44192 ############################################################################### 44193 # 44194 # The ubiquitous freetype library is used to render fonts. 44195 # 44196 44197 # Check whether --with-freetype was given. 44198 if test "${with_freetype+set}" = set; then : 44199 withval=$with_freetype; 44200 fi 44201 44202 44203 # Check whether --with-freetype-include was given. 44204 if test "${with_freetype_include+set}" = set; then : 44205 withval=$with_freetype_include; 44206 fi 44207 44208 44209 # Check whether --with-freetype-lib was given. 44210 if test "${with_freetype_lib+set}" = set; then : 44211 withval=$with_freetype_lib; 44212 fi 44213 44214 44215 # Check whether --with-freetype-src was given. 44216 if test "${with_freetype_src+set}" = set; then : 44217 withval=$with_freetype_src; 44218 fi 44219 44220 # Check whether --enable-freetype-bundling was given. 44221 if test "${enable_freetype_bundling+set}" = set; then : 44222 enableval=$enable_freetype_bundling; 44223 fi 44224 44225 44226 # Need to specify explicitly since it needs to be overridden on some versions of macosx 44227 FREETYPE_BASE_NAME=freetype 44228 FREETYPE_CFLAGS= 44229 FREETYPE_LIBS= 44230 FREETYPE_BUNDLE_LIB_PATH= 44231 44232 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 44233 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x || test "x$with_freetype_src" != x; then 44234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 44235 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 44236 fi 44237 if test "x$enable_freetype_bundling" != x; then 44238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 44239 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 44240 fi 44241 else 44242 # freetype is needed to build; go get it! 44243 44244 BUNDLE_FREETYPE="$enable_freetype_bundling" 44245 44246 if test "x$with_freetype_src" != x; then 44247 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44248 # Try to build freetype if --with-freetype-src was given on Windows 44249 44250 FREETYPE_SRC_PATH="$with_freetype_src" 44251 BUILD_FREETYPE=yes 44252 44253 # Check if the freetype sources are acessible.. 44254 if ! test -d $FREETYPE_SRC_PATH; then 44255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&5 44256 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44257 BUILD_FREETYPE=no 44258 fi 44259 # ..and contain a vc2010 project file 44260 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44261 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&5 44263 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44264 BUILD_FREETYPE=no 44265 fi 44266 # Now check if configure found a version of 'msbuild.exe' 44267 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44268 { $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 44269 $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;} 44270 BUILD_FREETYPE=no 44271 fi 44272 44273 # Ready to go.. 44274 if test "x$BUILD_FREETYPE" = xyes; then 44275 44276 # msbuild requires trailing slashes for output directories 44277 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44278 freetype_lib_path_unix="$freetype_lib_path" 44279 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44280 44281 unix_path="$vcxproj_path" 44282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44283 windows_path=`$CYGPATH -m "$unix_path"` 44284 vcxproj_path="$windows_path" 44285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44286 windows_path=`cmd //c echo $unix_path` 44287 vcxproj_path="$windows_path" 44288 fi 44289 44290 44291 unix_path="$freetype_lib_path" 44292 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44293 windows_path=`$CYGPATH -m "$unix_path"` 44294 freetype_lib_path="$windows_path" 44295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44296 windows_path=`cmd //c echo $unix_path` 44297 freetype_lib_path="$windows_path" 44298 fi 44299 44300 44301 unix_path="$freetype_obj_path" 44302 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44303 windows_path=`$CYGPATH -m "$unix_path"` 44304 freetype_obj_path="$windows_path" 44305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44306 windows_path=`cmd //c echo $unix_path` 44307 freetype_obj_path="$windows_path" 44308 fi 44309 44310 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44311 freetype_platform=x64 44312 else 44313 freetype_platform=win32 44314 fi 44315 44316 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44317 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44318 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44319 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44320 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44321 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44322 44323 # First we try to build the freetype.dll 44324 $ECHO -e "@echo off\n"\ 44325 "$MSBUILD $vcxproj_path "\ 44326 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44327 "/p:Configuration=\"Release Multithreaded\" "\ 44328 "/p:Platform=$freetype_platform "\ 44329 "/p:ConfigurationType=DynamicLibrary "\ 44330 "/p:TargetName=freetype "\ 44331 "/p:OutDir=\"$freetype_lib_path\" "\ 44332 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44333 cmd /c freetype.bat 44334 44335 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44336 # If that succeeds we also build freetype.lib 44337 $ECHO -e "@echo off\n"\ 44338 "$MSBUILD $vcxproj_path "\ 44339 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44340 "/p:Configuration=\"Release Multithreaded\" "\ 44341 "/p:Platform=$freetype_platform "\ 44342 "/p:ConfigurationType=StaticLibrary "\ 44343 "/p:TargetName=freetype "\ 44344 "/p:OutDir=\"$freetype_lib_path\" "\ 44345 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44346 cmd /c freetype.bat 44347 44348 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44349 # Once we build both, lib and dll, set freetype lib and include path appropriately 44350 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44351 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44352 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44353 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44354 else 44355 BUILD_FREETYPE=no 44356 fi 44357 else 44358 BUILD_FREETYPE=no 44359 fi 44360 fi 44361 44362 if test "x$BUILD_FREETYPE" = xyes; then 44363 # Okay, we built it. Check that it works. 44364 44365 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44366 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44367 METHOD="--with-freetype-src" 44368 44369 # Let's start with an optimistic view of the world :-) 44370 FOUND_FREETYPE=yes 44371 44372 # First look for the canonical freetype main include file ft2build.h. 44373 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44374 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44375 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44376 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44377 # Fail. 44378 FOUND_FREETYPE=no 44379 fi 44380 fi 44381 44382 if test "x$FOUND_FREETYPE" = xyes; then 44383 # Include file found, let's continue the sanity check. 44384 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44385 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44386 44387 # Reset to default value 44388 FREETYPE_BASE_NAME=freetype 44389 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44390 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44391 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44392 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44393 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44394 # for the .6 version explicitly. 44395 FREETYPE_BASE_NAME=freetype.6 44396 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44397 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44398 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44399 else 44400 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44401 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44402 FOUND_FREETYPE=no 44403 fi 44404 else 44405 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44406 # On Windows, we will need both .lib and .dll file. 44407 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44408 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44409 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44410 FOUND_FREETYPE=no 44411 fi 44412 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44413 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44414 # Found lib in isa dir, use that instead. 44415 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44416 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44417 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44418 fi 44419 fi 44420 fi 44421 44422 if test "x$FOUND_FREETYPE" = xyes; then 44423 44424 # Only process if variable expands to non-empty 44425 44426 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 44427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44428 44429 # Input might be given as Windows format, start by converting to 44430 # unix format. 44431 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44432 new_path=`$CYGPATH -u "$path"` 44433 44434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44437 # "foo.exe" is OK but "foo" is an error. 44438 # 44439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44440 # It is also a way to make sure we got the proper file name for the real test later on. 44441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44442 if test "x$test_shortpath" = x; then 44443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44444 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44445 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44446 fi 44447 44448 # Call helper function which possibly converts this using DOS-style short mode. 44449 # If so, the updated path is stored in $new_path. 44450 44451 input_path="$new_path" 44452 # Check if we need to convert this using DOS-style short mode. If the path 44453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44454 # take no chances and rewrite it. 44455 # Note: m4 eats our [], so we need to use [ and ] instead. 44456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44457 if test "x$has_forbidden_chars" != x; then 44458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44462 # Going to short mode and back again did indeed matter. Since short mode is 44463 # case insensitive, let's make it lowercase to improve readability. 44464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44465 # Now convert it back to Unix-stile (cygpath) 44466 input_path=`$CYGPATH -u "$shortmode_path"` 44467 new_path="$input_path" 44468 fi 44469 fi 44470 44471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44472 if test "x$test_cygdrive_prefix" = x; then 44473 # As a simple fix, exclude /usr/bin since it's not a real path. 44474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44476 # a path prefixed by /cygdrive for fixpath to work. 44477 new_path="$CYGWIN_ROOT_PATH$input_path" 44478 fi 44479 fi 44480 44481 44482 if test "x$path" != "x$new_path"; then 44483 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44485 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44486 fi 44487 44488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44489 44490 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44491 has_colon=`$ECHO $path | $GREP ^.:` 44492 new_path="$path" 44493 if test "x$has_colon" = x; then 44494 # Not in mixed or Windows style, start by that. 44495 new_path=`cmd //c echo $path` 44496 fi 44497 44498 44499 input_path="$new_path" 44500 # Check if we need to convert this using DOS-style short mode. If the path 44501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44502 # take no chances and rewrite it. 44503 # Note: m4 eats our [], so we need to use [ and ] instead. 44504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44505 if test "x$has_forbidden_chars" != x; then 44506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44508 fi 44509 44510 44511 windows_path="$new_path" 44512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44513 unix_path=`$CYGPATH -u "$windows_path"` 44514 new_path="$unix_path" 44515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44517 new_path="$unix_path" 44518 fi 44519 44520 if test "x$path" != "x$new_path"; then 44521 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44523 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44524 fi 44525 44526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44528 44529 else 44530 # We're on a unix platform. Hooray! :) 44531 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44532 has_space=`$ECHO "$path" | $GREP " "` 44533 if test "x$has_space" != x; then 44534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44535 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44537 fi 44538 44539 # Use eval to expand a potential ~ 44540 eval path="$path" 44541 if test ! -f "$path" && test ! -d "$path"; then 44542 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44543 fi 44544 44545 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44546 fi 44547 fi 44548 44549 44550 # Only process if variable expands to non-empty 44551 44552 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44554 44555 # Input might be given as Windows format, start by converting to 44556 # unix format. 44557 path="$POTENTIAL_FREETYPE_LIB_PATH" 44558 new_path=`$CYGPATH -u "$path"` 44559 44560 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44561 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44562 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44563 # "foo.exe" is OK but "foo" is an error. 44564 # 44565 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44566 # It is also a way to make sure we got the proper file name for the real test later on. 44567 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44568 if test "x$test_shortpath" = x; then 44569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44570 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44571 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44572 fi 44573 44574 # Call helper function which possibly converts this using DOS-style short mode. 44575 # If so, the updated path is stored in $new_path. 44576 44577 input_path="$new_path" 44578 # Check if we need to convert this using DOS-style short mode. If the path 44579 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44580 # take no chances and rewrite it. 44581 # Note: m4 eats our [], so we need to use [ and ] instead. 44582 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44583 if test "x$has_forbidden_chars" != x; then 44584 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44585 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44586 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44587 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44588 # Going to short mode and back again did indeed matter. Since short mode is 44589 # case insensitive, let's make it lowercase to improve readability. 44590 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44591 # Now convert it back to Unix-stile (cygpath) 44592 input_path=`$CYGPATH -u "$shortmode_path"` 44593 new_path="$input_path" 44594 fi 44595 fi 44596 44597 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44598 if test "x$test_cygdrive_prefix" = x; then 44599 # As a simple fix, exclude /usr/bin since it's not a real path. 44600 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44601 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44602 # a path prefixed by /cygdrive for fixpath to work. 44603 new_path="$CYGWIN_ROOT_PATH$input_path" 44604 fi 44605 fi 44606 44607 44608 if test "x$path" != "x$new_path"; then 44609 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44611 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44612 fi 44613 44614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44615 44616 path="$POTENTIAL_FREETYPE_LIB_PATH" 44617 has_colon=`$ECHO $path | $GREP ^.:` 44618 new_path="$path" 44619 if test "x$has_colon" = x; then 44620 # Not in mixed or Windows style, start by that. 44621 new_path=`cmd //c echo $path` 44622 fi 44623 44624 44625 input_path="$new_path" 44626 # Check if we need to convert this using DOS-style short mode. If the path 44627 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44628 # take no chances and rewrite it. 44629 # Note: m4 eats our [], so we need to use [ and ] instead. 44630 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44631 if test "x$has_forbidden_chars" != x; then 44632 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44633 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44634 fi 44635 44636 44637 windows_path="$new_path" 44638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44639 unix_path=`$CYGPATH -u "$windows_path"` 44640 new_path="$unix_path" 44641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44643 new_path="$unix_path" 44644 fi 44645 44646 if test "x$path" != "x$new_path"; then 44647 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44649 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44650 fi 44651 44652 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44653 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44654 44655 else 44656 # We're on a unix platform. Hooray! :) 44657 path="$POTENTIAL_FREETYPE_LIB_PATH" 44658 has_space=`$ECHO "$path" | $GREP " "` 44659 if test "x$has_space" != x; then 44660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44661 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44662 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44663 fi 44664 44665 # Use eval to expand a potential ~ 44666 eval path="$path" 44667 if test ! -f "$path" && test ! -d "$path"; then 44668 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44669 fi 44670 44671 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44672 fi 44673 fi 44674 44675 44676 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44678 $as_echo_n "checking for freetype includes... " >&6; } 44679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44680 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44681 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44683 $as_echo_n "checking for freetype libraries... " >&6; } 44684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44685 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44686 fi 44687 44688 if test "x$FOUND_FREETYPE" != xyes; then 44689 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44690 fi 44691 else 44692 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44693 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44694 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44695 fi 44696 else 44697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44698 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44699 fi 44700 fi 44701 44702 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44703 # User has specified settings 44704 44705 if test "x$BUNDLE_FREETYPE" = x; then 44706 # If not specified, default is to bundle freetype 44707 BUNDLE_FREETYPE=yes 44708 fi 44709 44710 if test "x$with_freetype" != x; then 44711 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44712 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44713 fi 44714 44715 # Allow --with-freetype-lib and --with-freetype-include to override 44716 if test "x$with_freetype_include" != x; then 44717 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44718 fi 44719 if test "x$with_freetype_lib" != x; then 44720 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44721 fi 44722 44723 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44724 # Okay, we got it. Check that it works. 44725 44726 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44727 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44728 METHOD="--with-freetype" 44729 44730 # Let's start with an optimistic view of the world :-) 44731 FOUND_FREETYPE=yes 44732 44733 # First look for the canonical freetype main include file ft2build.h. 44734 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44735 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44736 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44737 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44738 # Fail. 44739 FOUND_FREETYPE=no 44740 fi 44741 fi 44742 44743 if test "x$FOUND_FREETYPE" = xyes; then 44744 # Include file found, let's continue the sanity check. 44745 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44746 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44747 44748 # Reset to default value 44749 FREETYPE_BASE_NAME=freetype 44750 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44751 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44752 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44753 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44754 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44755 # for the .6 version explicitly. 44756 FREETYPE_BASE_NAME=freetype.6 44757 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44758 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44759 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44760 else 44761 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44762 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44763 FOUND_FREETYPE=no 44764 fi 44765 else 44766 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44767 # On Windows, we will need both .lib and .dll file. 44768 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44769 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44770 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44771 FOUND_FREETYPE=no 44772 fi 44773 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44774 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44775 # Found lib in isa dir, use that instead. 44776 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44777 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44778 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44779 fi 44780 fi 44781 fi 44782 44783 if test "x$FOUND_FREETYPE" = xyes; then 44784 44785 # Only process if variable expands to non-empty 44786 44787 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 44788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44789 44790 # Input might be given as Windows format, start by converting to 44791 # unix format. 44792 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44793 new_path=`$CYGPATH -u "$path"` 44794 44795 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44796 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44797 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44798 # "foo.exe" is OK but "foo" is an error. 44799 # 44800 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44801 # It is also a way to make sure we got the proper file name for the real test later on. 44802 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44803 if test "x$test_shortpath" = x; then 44804 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44805 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44806 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44807 fi 44808 44809 # Call helper function which possibly converts this using DOS-style short mode. 44810 # If so, the updated path is stored in $new_path. 44811 44812 input_path="$new_path" 44813 # Check if we need to convert this using DOS-style short mode. If the path 44814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44815 # take no chances and rewrite it. 44816 # Note: m4 eats our [], so we need to use [ and ] instead. 44817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44818 if test "x$has_forbidden_chars" != x; then 44819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44820 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44821 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44822 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44823 # Going to short mode and back again did indeed matter. Since short mode is 44824 # case insensitive, let's make it lowercase to improve readability. 44825 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44826 # Now convert it back to Unix-stile (cygpath) 44827 input_path=`$CYGPATH -u "$shortmode_path"` 44828 new_path="$input_path" 44829 fi 44830 fi 44831 44832 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44833 if test "x$test_cygdrive_prefix" = x; then 44834 # As a simple fix, exclude /usr/bin since it's not a real path. 44835 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44836 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44837 # a path prefixed by /cygdrive for fixpath to work. 44838 new_path="$CYGWIN_ROOT_PATH$input_path" 44839 fi 44840 fi 44841 44842 44843 if test "x$path" != "x$new_path"; then 44844 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44845 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44846 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44847 fi 44848 44849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44850 44851 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44852 has_colon=`$ECHO $path | $GREP ^.:` 44853 new_path="$path" 44854 if test "x$has_colon" = x; then 44855 # Not in mixed or Windows style, start by that. 44856 new_path=`cmd //c echo $path` 44857 fi 44858 44859 44860 input_path="$new_path" 44861 # Check if we need to convert this using DOS-style short mode. If the path 44862 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44863 # take no chances and rewrite it. 44864 # Note: m4 eats our [], so we need to use [ and ] instead. 44865 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44866 if test "x$has_forbidden_chars" != x; then 44867 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44868 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44869 fi 44870 44871 44872 windows_path="$new_path" 44873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44874 unix_path=`$CYGPATH -u "$windows_path"` 44875 new_path="$unix_path" 44876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44877 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44878 new_path="$unix_path" 44879 fi 44880 44881 if test "x$path" != "x$new_path"; then 44882 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44883 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44884 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44885 fi 44886 44887 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44888 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44889 44890 else 44891 # We're on a unix platform. Hooray! :) 44892 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44893 has_space=`$ECHO "$path" | $GREP " "` 44894 if test "x$has_space" != x; then 44895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44896 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44897 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44898 fi 44899 44900 # Use eval to expand a potential ~ 44901 eval path="$path" 44902 if test ! -f "$path" && test ! -d "$path"; then 44903 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44904 fi 44905 44906 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44907 fi 44908 fi 44909 44910 44911 # Only process if variable expands to non-empty 44912 44913 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44915 44916 # Input might be given as Windows format, start by converting to 44917 # unix format. 44918 path="$POTENTIAL_FREETYPE_LIB_PATH" 44919 new_path=`$CYGPATH -u "$path"` 44920 44921 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44922 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44923 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44924 # "foo.exe" is OK but "foo" is an error. 44925 # 44926 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44927 # It is also a way to make sure we got the proper file name for the real test later on. 44928 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44929 if test "x$test_shortpath" = x; then 44930 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44931 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44932 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44933 fi 44934 44935 # Call helper function which possibly converts this using DOS-style short mode. 44936 # If so, the updated path is stored in $new_path. 44937 44938 input_path="$new_path" 44939 # Check if we need to convert this using DOS-style short mode. If the path 44940 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44941 # take no chances and rewrite it. 44942 # Note: m4 eats our [], so we need to use [ and ] instead. 44943 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44944 if test "x$has_forbidden_chars" != x; then 44945 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44946 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44947 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44948 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44949 # Going to short mode and back again did indeed matter. Since short mode is 44950 # case insensitive, let's make it lowercase to improve readability. 44951 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44952 # Now convert it back to Unix-stile (cygpath) 44953 input_path=`$CYGPATH -u "$shortmode_path"` 44954 new_path="$input_path" 44955 fi 44956 fi 44957 44958 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44959 if test "x$test_cygdrive_prefix" = x; then 44960 # As a simple fix, exclude /usr/bin since it's not a real path. 44961 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44962 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44963 # a path prefixed by /cygdrive for fixpath to work. 44964 new_path="$CYGWIN_ROOT_PATH$input_path" 44965 fi 44966 fi 44967 44968 44969 if test "x$path" != "x$new_path"; then 44970 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44972 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44973 fi 44974 44975 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44976 44977 path="$POTENTIAL_FREETYPE_LIB_PATH" 44978 has_colon=`$ECHO $path | $GREP ^.:` 44979 new_path="$path" 44980 if test "x$has_colon" = x; then 44981 # Not in mixed or Windows style, start by that. 44982 new_path=`cmd //c echo $path` 44983 fi 44984 44985 44986 input_path="$new_path" 44987 # Check if we need to convert this using DOS-style short mode. If the path 44988 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44989 # take no chances and rewrite it. 44990 # Note: m4 eats our [], so we need to use [ and ] instead. 44991 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44992 if test "x$has_forbidden_chars" != x; then 44993 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44994 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44995 fi 44996 44997 44998 windows_path="$new_path" 44999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45000 unix_path=`$CYGPATH -u "$windows_path"` 45001 new_path="$unix_path" 45002 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45003 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45004 new_path="$unix_path" 45005 fi 45006 45007 if test "x$path" != "x$new_path"; then 45008 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45010 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45011 fi 45012 45013 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45014 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45015 45016 else 45017 # We're on a unix platform. Hooray! :) 45018 path="$POTENTIAL_FREETYPE_LIB_PATH" 45019 has_space=`$ECHO "$path" | $GREP " "` 45020 if test "x$has_space" != x; then 45021 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45022 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45023 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45024 fi 45025 45026 # Use eval to expand a potential ~ 45027 eval path="$path" 45028 if test ! -f "$path" && test ! -d "$path"; then 45029 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45030 fi 45031 45032 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45033 fi 45034 fi 45035 45036 45037 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45039 $as_echo_n "checking for freetype includes... " >&6; } 45040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45041 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45042 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45044 $as_echo_n "checking for freetype libraries... " >&6; } 45045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45046 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45047 fi 45048 45049 if test "x$FOUND_FREETYPE" != xyes; then 45050 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 45051 fi 45052 else 45053 # User specified only one of lib or include. This is an error. 45054 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 45055 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 45056 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 45057 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45058 else 45059 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 45060 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 45061 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 45062 fi 45063 fi 45064 else 45065 # User did not specify settings, but we need freetype. Try to locate it. 45066 45067 if test "x$BUNDLE_FREETYPE" = x; then 45068 # If not specified, default is to bundle freetype only on windows 45069 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45070 BUNDLE_FREETYPE=yes 45071 else 45072 BUNDLE_FREETYPE=no 45073 fi 45074 fi 45075 45076 if test "x$FOUND_FREETYPE" != xyes; then 45077 # Check builddeps 45078 45079 45080 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45081 # Source the builddeps file again, to make sure it uses the latest variables! 45082 . $builddepsfile 45083 # Look for a target and build machine specific resource! 45084 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45085 if test "x$resource" = x; then 45086 # Ok, lets instead look for a target specific resource 45087 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 45088 fi 45089 if test "x$resource" = x; then 45090 # Ok, lets instead look for a build specific resource 45091 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 45092 fi 45093 if test "x$resource" = x; then 45094 # Ok, lets instead look for a generic resource 45095 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 45096 resource=${builddep_freetype2} 45097 fi 45098 if test "x$resource" != x; then 45099 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 45100 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 45101 # If the resource in the builddeps.conf file is an existing directory, 45102 # for example /java/linux/cups 45103 if test -d ${resource}; then 45104 depdir=${resource} 45105 else 45106 45107 # freetype2 is for example mymodule 45108 # $resource is for example libs/general/libmymod_1_2_3.zip 45109 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45110 # $with_builddeps_dir is for example /localhome/builddeps 45111 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45112 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45113 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45114 filename=`basename $resource` 45115 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45116 filebase=${filename%%.*} 45117 extension=${filename#*.} 45118 installdir=$with_builddeps_dir/$filebase 45119 if test ! -f $installdir/$filename.unpacked; then 45120 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 45121 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45122 if test ! -d $installdir; then 45123 mkdir -p $installdir 45124 fi 45125 if test ! -d $installdir; then 45126 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45127 fi 45128 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 45129 touch $tmpfile 45130 if test ! -f $tmpfile; then 45131 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45132 fi 45133 45134 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45135 # $tmpfile is the local file name for the downloaded file. 45136 VALID_TOOL=no 45137 if test "x$BDEPS_FTP" = xwget; then 45138 VALID_TOOL=yes 45139 wget -O $tmpfile $with_builddeps_server/$resource 45140 fi 45141 if test "x$BDEPS_FTP" = xlftp; then 45142 VALID_TOOL=yes 45143 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45144 fi 45145 if test "x$BDEPS_FTP" = xftp; then 45146 VALID_TOOL=yes 45147 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45148 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45149 FTPUSERPWD=${FTPSERVER%%@*} 45150 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45151 FTPUSER=${userpwd%%:*} 45152 FTPPWD=${userpwd#*@} 45153 FTPSERVER=${FTPSERVER#*@} 45154 else 45155 FTPUSER=ftp 45156 FTPPWD=ftp 45157 fi 45158 # the "pass" command does not work on some 45159 # ftp clients (read ftp.exe) but if it works, 45160 # passive mode is better! 45161 ( \ 45162 echo "user $FTPUSER $FTPPWD" ; \ 45163 echo "pass" ; \ 45164 echo "bin" ; \ 45165 echo "get $FTPPATH $tmpfile" ; \ 45166 ) | ftp -in $FTPSERVER 45167 fi 45168 if test "x$VALID_TOOL" != xyes; then 45169 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45170 fi 45171 45172 mv $tmpfile $installdir/$filename 45173 if test ! -s $installdir/$filename; then 45174 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45175 fi 45176 case "$extension" in 45177 zip) echo "Unzipping $installdir/$filename..." 45178 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45179 ;; 45180 tar.gz) echo "Untaring $installdir/$filename..." 45181 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45182 ;; 45183 tgz) echo "Untaring $installdir/$filename..." 45184 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45185 ;; 45186 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45187 ;; 45188 esac 45189 fi 45190 if test -f $installdir/$filename.unpacked; then 45191 depdir=$installdir 45192 fi 45193 45194 fi 45195 # Source the builddeps file again, because in the previous command, the depdir 45196 # was updated to point at the current build dependency install directory. 45197 . $builddepsfile 45198 # Now extract variables from the builddeps.conf files. 45199 theroot=${builddep_freetype2_ROOT} 45200 thecflags=${builddep_freetype2_CFLAGS} 45201 thelibs=${builddep_freetype2_LIBS} 45202 if test "x$depdir" = x; then 45203 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 45204 fi 45205 FREETYPE=$depdir 45206 if test "x$theroot" != x; then 45207 FREETYPE="$theroot" 45208 fi 45209 if test "x$thecflags" != x; then 45210 FREETYPE_CFLAGS="$thecflags" 45211 fi 45212 if test "x$thelibs" != x; then 45213 FREETYPE_LIBS="$thelibs" 45214 fi 45215 FOUND_FREETYPE=yes 45216 else FOUND_FREETYPE=no 45217 45218 fi 45219 else FOUND_FREETYPE=no 45220 45221 fi 45222 45223 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45224 if test "x$FOUND_FREETYPE" = xyes; then 45225 if test "x$BUNDLE_FREETYPE" = xyes; then 45226 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 45227 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 45228 FOUND_FREETYPE=no 45229 else 45230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45231 $as_echo_n "checking for freetype... " >&6; } 45232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 45233 $as_echo "yes (using builddeps)" >&6; } 45234 fi 45235 fi 45236 fi 45237 45238 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 45239 if test "x$SYSROOT" = x; then 45240 if test "x$FOUND_FREETYPE" != xyes; then 45241 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 45242 if test "x$PKG_CONFIG" != x; then 45243 45244 pkg_failed=no 45245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 45246 $as_echo_n "checking for FREETYPE... " >&6; } 45247 45248 if test -n "$FREETYPE_CFLAGS"; then 45249 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 45250 elif test -n "$PKG_CONFIG"; then 45251 if test -n "$PKG_CONFIG" && \ 45252 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45253 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45254 ac_status=$? 45255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45256 test $ac_status = 0; }; then 45257 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45258 else 45259 pkg_failed=yes 45260 fi 45261 else 45262 pkg_failed=untried 45263 fi 45264 if test -n "$FREETYPE_LIBS"; then 45265 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45266 elif test -n "$PKG_CONFIG"; then 45267 if test -n "$PKG_CONFIG" && \ 45268 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45269 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45270 ac_status=$? 45271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45272 test $ac_status = 0; }; then 45273 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45274 else 45275 pkg_failed=yes 45276 fi 45277 else 45278 pkg_failed=untried 45279 fi 45280 45281 45282 45283 if test $pkg_failed = yes; then 45284 45285 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45286 _pkg_short_errors_supported=yes 45287 else 45288 _pkg_short_errors_supported=no 45289 fi 45290 if test $_pkg_short_errors_supported = yes; then 45291 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45292 else 45293 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45294 fi 45295 # Put the nasty error message in config.log where it belongs 45296 echo "$FREETYPE_PKG_ERRORS" >&5 45297 45298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45299 $as_echo "no" >&6; } 45300 FOUND_FREETYPE=no 45301 elif test $pkg_failed = untried; then 45302 FOUND_FREETYPE=no 45303 else 45304 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45305 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45307 $as_echo "yes" >&6; } 45308 FOUND_FREETYPE=yes 45309 fi 45310 if test "x$FOUND_FREETYPE" = xyes; then 45311 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45312 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45313 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45314 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45315 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45316 fi 45317 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45318 if test "x$BUNDLE_FREETYPE" = xyes; then 45319 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45320 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45321 FOUND_FREETYPE=no 45322 else 45323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45324 $as_echo_n "checking for freetype... " >&6; } 45325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45326 $as_echo "yes (using pkg-config)" >&6; } 45327 fi 45328 fi 45329 fi 45330 fi 45331 fi 45332 45333 if test "x$FOUND_FREETYPE" != xyes; then 45334 # Check in well-known locations 45335 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45336 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45337 45338 windows_path="$FREETYPE_BASE_DIR" 45339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45340 unix_path=`$CYGPATH -u "$windows_path"` 45341 FREETYPE_BASE_DIR="$unix_path" 45342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45344 FREETYPE_BASE_DIR="$unix_path" 45345 fi 45346 45347 45348 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45349 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45350 METHOD="well-known location" 45351 45352 # Let's start with an optimistic view of the world :-) 45353 FOUND_FREETYPE=yes 45354 45355 # First look for the canonical freetype main include file ft2build.h. 45356 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45357 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45358 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45359 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45360 # Fail. 45361 FOUND_FREETYPE=no 45362 fi 45363 fi 45364 45365 if test "x$FOUND_FREETYPE" = xyes; then 45366 # Include file found, let's continue the sanity check. 45367 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45368 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45369 45370 # Reset to default value 45371 FREETYPE_BASE_NAME=freetype 45372 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45373 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45374 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45375 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45376 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45377 # for the .6 version explicitly. 45378 FREETYPE_BASE_NAME=freetype.6 45379 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45380 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45381 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45382 else 45383 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45384 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45385 FOUND_FREETYPE=no 45386 fi 45387 else 45388 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45389 # On Windows, we will need both .lib and .dll file. 45390 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45391 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45392 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45393 FOUND_FREETYPE=no 45394 fi 45395 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45396 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45397 # Found lib in isa dir, use that instead. 45398 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45400 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45401 fi 45402 fi 45403 fi 45404 45405 if test "x$FOUND_FREETYPE" = xyes; then 45406 45407 # Only process if variable expands to non-empty 45408 45409 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45411 45412 # Input might be given as Windows format, start by converting to 45413 # unix format. 45414 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45415 new_path=`$CYGPATH -u "$path"` 45416 45417 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45418 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45419 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45420 # "foo.exe" is OK but "foo" is an error. 45421 # 45422 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45423 # It is also a way to make sure we got the proper file name for the real test later on. 45424 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45425 if test "x$test_shortpath" = x; then 45426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45427 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45428 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45429 fi 45430 45431 # Call helper function which possibly converts this using DOS-style short mode. 45432 # If so, the updated path is stored in $new_path. 45433 45434 input_path="$new_path" 45435 # Check if we need to convert this using DOS-style short mode. If the path 45436 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45437 # take no chances and rewrite it. 45438 # Note: m4 eats our [], so we need to use [ and ] instead. 45439 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45440 if test "x$has_forbidden_chars" != x; then 45441 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45442 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45443 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45444 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45445 # Going to short mode and back again did indeed matter. Since short mode is 45446 # case insensitive, let's make it lowercase to improve readability. 45447 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45448 # Now convert it back to Unix-stile (cygpath) 45449 input_path=`$CYGPATH -u "$shortmode_path"` 45450 new_path="$input_path" 45451 fi 45452 fi 45453 45454 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45455 if test "x$test_cygdrive_prefix" = x; then 45456 # As a simple fix, exclude /usr/bin since it's not a real path. 45457 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45458 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45459 # a path prefixed by /cygdrive for fixpath to work. 45460 new_path="$CYGWIN_ROOT_PATH$input_path" 45461 fi 45462 fi 45463 45464 45465 if test "x$path" != "x$new_path"; then 45466 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45467 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45468 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45469 fi 45470 45471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45472 45473 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45474 has_colon=`$ECHO $path | $GREP ^.:` 45475 new_path="$path" 45476 if test "x$has_colon" = x; then 45477 # Not in mixed or Windows style, start by that. 45478 new_path=`cmd //c echo $path` 45479 fi 45480 45481 45482 input_path="$new_path" 45483 # Check if we need to convert this using DOS-style short mode. If the path 45484 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45485 # take no chances and rewrite it. 45486 # Note: m4 eats our [], so we need to use [ and ] instead. 45487 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45488 if test "x$has_forbidden_chars" != x; then 45489 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45490 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45491 fi 45492 45493 45494 windows_path="$new_path" 45495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45496 unix_path=`$CYGPATH -u "$windows_path"` 45497 new_path="$unix_path" 45498 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45499 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45500 new_path="$unix_path" 45501 fi 45502 45503 if test "x$path" != "x$new_path"; then 45504 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45505 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45506 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45507 fi 45508 45509 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45510 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45511 45512 else 45513 # We're on a unix platform. Hooray! :) 45514 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45515 has_space=`$ECHO "$path" | $GREP " "` 45516 if test "x$has_space" != x; then 45517 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45518 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45519 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45520 fi 45521 45522 # Use eval to expand a potential ~ 45523 eval path="$path" 45524 if test ! -f "$path" && test ! -d "$path"; then 45525 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45526 fi 45527 45528 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45529 fi 45530 fi 45531 45532 45533 # Only process if variable expands to non-empty 45534 45535 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45537 45538 # Input might be given as Windows format, start by converting to 45539 # unix format. 45540 path="$POTENTIAL_FREETYPE_LIB_PATH" 45541 new_path=`$CYGPATH -u "$path"` 45542 45543 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45544 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45545 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45546 # "foo.exe" is OK but "foo" is an error. 45547 # 45548 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45549 # It is also a way to make sure we got the proper file name for the real test later on. 45550 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45551 if test "x$test_shortpath" = x; then 45552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45553 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45554 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45555 fi 45556 45557 # Call helper function which possibly converts this using DOS-style short mode. 45558 # If so, the updated path is stored in $new_path. 45559 45560 input_path="$new_path" 45561 # Check if we need to convert this using DOS-style short mode. If the path 45562 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45563 # take no chances and rewrite it. 45564 # Note: m4 eats our [], so we need to use [ and ] instead. 45565 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45566 if test "x$has_forbidden_chars" != x; then 45567 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45568 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45569 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45570 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45571 # Going to short mode and back again did indeed matter. Since short mode is 45572 # case insensitive, let's make it lowercase to improve readability. 45573 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45574 # Now convert it back to Unix-stile (cygpath) 45575 input_path=`$CYGPATH -u "$shortmode_path"` 45576 new_path="$input_path" 45577 fi 45578 fi 45579 45580 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45581 if test "x$test_cygdrive_prefix" = x; then 45582 # As a simple fix, exclude /usr/bin since it's not a real path. 45583 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45584 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45585 # a path prefixed by /cygdrive for fixpath to work. 45586 new_path="$CYGWIN_ROOT_PATH$input_path" 45587 fi 45588 fi 45589 45590 45591 if test "x$path" != "x$new_path"; then 45592 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45593 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45594 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45595 fi 45596 45597 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45598 45599 path="$POTENTIAL_FREETYPE_LIB_PATH" 45600 has_colon=`$ECHO $path | $GREP ^.:` 45601 new_path="$path" 45602 if test "x$has_colon" = x; then 45603 # Not in mixed or Windows style, start by that. 45604 new_path=`cmd //c echo $path` 45605 fi 45606 45607 45608 input_path="$new_path" 45609 # Check if we need to convert this using DOS-style short mode. If the path 45610 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45611 # take no chances and rewrite it. 45612 # Note: m4 eats our [], so we need to use [ and ] instead. 45613 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45614 if test "x$has_forbidden_chars" != x; then 45615 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45616 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45617 fi 45618 45619 45620 windows_path="$new_path" 45621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45622 unix_path=`$CYGPATH -u "$windows_path"` 45623 new_path="$unix_path" 45624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45625 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45626 new_path="$unix_path" 45627 fi 45628 45629 if test "x$path" != "x$new_path"; then 45630 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45632 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45633 fi 45634 45635 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45636 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45637 45638 else 45639 # We're on a unix platform. Hooray! :) 45640 path="$POTENTIAL_FREETYPE_LIB_PATH" 45641 has_space=`$ECHO "$path" | $GREP " "` 45642 if test "x$has_space" != x; then 45643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45644 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45645 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45646 fi 45647 45648 # Use eval to expand a potential ~ 45649 eval path="$path" 45650 if test ! -f "$path" && test ! -d "$path"; then 45651 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45652 fi 45653 45654 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45655 fi 45656 fi 45657 45658 45659 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45661 $as_echo_n "checking for freetype includes... " >&6; } 45662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45663 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45664 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45666 $as_echo_n "checking for freetype libraries... " >&6; } 45667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45668 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45669 fi 45670 45671 if test "x$FOUND_FREETYPE" != xyes; then 45672 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45673 45674 windows_path="$FREETYPE_BASE_DIR" 45675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45676 unix_path=`$CYGPATH -u "$windows_path"` 45677 FREETYPE_BASE_DIR="$unix_path" 45678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45680 FREETYPE_BASE_DIR="$unix_path" 45681 fi 45682 45683 45684 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45685 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45686 METHOD="well-known location" 45687 45688 # Let's start with an optimistic view of the world :-) 45689 FOUND_FREETYPE=yes 45690 45691 # First look for the canonical freetype main include file ft2build.h. 45692 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45693 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45694 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45695 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45696 # Fail. 45697 FOUND_FREETYPE=no 45698 fi 45699 fi 45700 45701 if test "x$FOUND_FREETYPE" = xyes; then 45702 # Include file found, let's continue the sanity check. 45703 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45704 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45705 45706 # Reset to default value 45707 FREETYPE_BASE_NAME=freetype 45708 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45709 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45710 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45711 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45712 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45713 # for the .6 version explicitly. 45714 FREETYPE_BASE_NAME=freetype.6 45715 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45716 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45717 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45718 else 45719 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45720 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45721 FOUND_FREETYPE=no 45722 fi 45723 else 45724 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45725 # On Windows, we will need both .lib and .dll file. 45726 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45727 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45728 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45729 FOUND_FREETYPE=no 45730 fi 45731 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45732 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45733 # Found lib in isa dir, use that instead. 45734 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45736 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45737 fi 45738 fi 45739 fi 45740 45741 if test "x$FOUND_FREETYPE" = xyes; then 45742 45743 # Only process if variable expands to non-empty 45744 45745 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 45746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45747 45748 # Input might be given as Windows format, start by converting to 45749 # unix format. 45750 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45751 new_path=`$CYGPATH -u "$path"` 45752 45753 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45754 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45755 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45756 # "foo.exe" is OK but "foo" is an error. 45757 # 45758 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45759 # It is also a way to make sure we got the proper file name for the real test later on. 45760 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45761 if test "x$test_shortpath" = x; then 45762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45763 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45764 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45765 fi 45766 45767 # Call helper function which possibly converts this using DOS-style short mode. 45768 # If so, the updated path is stored in $new_path. 45769 45770 input_path="$new_path" 45771 # Check if we need to convert this using DOS-style short mode. If the path 45772 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45773 # take no chances and rewrite it. 45774 # Note: m4 eats our [], so we need to use [ and ] instead. 45775 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45776 if test "x$has_forbidden_chars" != x; then 45777 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45778 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45779 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45780 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45781 # Going to short mode and back again did indeed matter. Since short mode is 45782 # case insensitive, let's make it lowercase to improve readability. 45783 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45784 # Now convert it back to Unix-stile (cygpath) 45785 input_path=`$CYGPATH -u "$shortmode_path"` 45786 new_path="$input_path" 45787 fi 45788 fi 45789 45790 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45791 if test "x$test_cygdrive_prefix" = x; then 45792 # As a simple fix, exclude /usr/bin since it's not a real path. 45793 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45794 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45795 # a path prefixed by /cygdrive for fixpath to work. 45796 new_path="$CYGWIN_ROOT_PATH$input_path" 45797 fi 45798 fi 45799 45800 45801 if test "x$path" != "x$new_path"; then 45802 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45803 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45804 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45805 fi 45806 45807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45808 45809 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45810 has_colon=`$ECHO $path | $GREP ^.:` 45811 new_path="$path" 45812 if test "x$has_colon" = x; then 45813 # Not in mixed or Windows style, start by that. 45814 new_path=`cmd //c echo $path` 45815 fi 45816 45817 45818 input_path="$new_path" 45819 # Check if we need to convert this using DOS-style short mode. If the path 45820 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45821 # take no chances and rewrite it. 45822 # Note: m4 eats our [], so we need to use [ and ] instead. 45823 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45824 if test "x$has_forbidden_chars" != x; then 45825 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45826 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45827 fi 45828 45829 45830 windows_path="$new_path" 45831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45832 unix_path=`$CYGPATH -u "$windows_path"` 45833 new_path="$unix_path" 45834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45835 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45836 new_path="$unix_path" 45837 fi 45838 45839 if test "x$path" != "x$new_path"; then 45840 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45841 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45842 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45843 fi 45844 45845 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45846 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45847 45848 else 45849 # We're on a unix platform. Hooray! :) 45850 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45851 has_space=`$ECHO "$path" | $GREP " "` 45852 if test "x$has_space" != x; then 45853 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45854 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45855 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45856 fi 45857 45858 # Use eval to expand a potential ~ 45859 eval path="$path" 45860 if test ! -f "$path" && test ! -d "$path"; then 45861 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45862 fi 45863 45864 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45865 fi 45866 fi 45867 45868 45869 # Only process if variable expands to non-empty 45870 45871 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 45872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45873 45874 # Input might be given as Windows format, start by converting to 45875 # unix format. 45876 path="$POTENTIAL_FREETYPE_LIB_PATH" 45877 new_path=`$CYGPATH -u "$path"` 45878 45879 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45880 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45881 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45882 # "foo.exe" is OK but "foo" is an error. 45883 # 45884 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45885 # It is also a way to make sure we got the proper file name for the real test later on. 45886 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45887 if test "x$test_shortpath" = x; then 45888 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45889 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45890 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45891 fi 45892 45893 # Call helper function which possibly converts this using DOS-style short mode. 45894 # If so, the updated path is stored in $new_path. 45895 45896 input_path="$new_path" 45897 # Check if we need to convert this using DOS-style short mode. If the path 45898 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45899 # take no chances and rewrite it. 45900 # Note: m4 eats our [], so we need to use [ and ] instead. 45901 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45902 if test "x$has_forbidden_chars" != x; then 45903 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45904 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45905 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45906 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45907 # Going to short mode and back again did indeed matter. Since short mode is 45908 # case insensitive, let's make it lowercase to improve readability. 45909 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45910 # Now convert it back to Unix-stile (cygpath) 45911 input_path=`$CYGPATH -u "$shortmode_path"` 45912 new_path="$input_path" 45913 fi 45914 fi 45915 45916 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45917 if test "x$test_cygdrive_prefix" = x; then 45918 # As a simple fix, exclude /usr/bin since it's not a real path. 45919 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45920 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45921 # a path prefixed by /cygdrive for fixpath to work. 45922 new_path="$CYGWIN_ROOT_PATH$input_path" 45923 fi 45924 fi 45925 45926 45927 if test "x$path" != "x$new_path"; then 45928 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45929 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45930 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45931 fi 45932 45933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45934 45935 path="$POTENTIAL_FREETYPE_LIB_PATH" 45936 has_colon=`$ECHO $path | $GREP ^.:` 45937 new_path="$path" 45938 if test "x$has_colon" = x; then 45939 # Not in mixed or Windows style, start by that. 45940 new_path=`cmd //c echo $path` 45941 fi 45942 45943 45944 input_path="$new_path" 45945 # Check if we need to convert this using DOS-style short mode. If the path 45946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45947 # take no chances and rewrite it. 45948 # Note: m4 eats our [], so we need to use [ and ] instead. 45949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45950 if test "x$has_forbidden_chars" != x; then 45951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45952 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45953 fi 45954 45955 45956 windows_path="$new_path" 45957 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45958 unix_path=`$CYGPATH -u "$windows_path"` 45959 new_path="$unix_path" 45960 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45961 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45962 new_path="$unix_path" 45963 fi 45964 45965 if test "x$path" != "x$new_path"; then 45966 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45967 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45968 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45969 fi 45970 45971 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45972 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45973 45974 else 45975 # We're on a unix platform. Hooray! :) 45976 path="$POTENTIAL_FREETYPE_LIB_PATH" 45977 has_space=`$ECHO "$path" | $GREP " "` 45978 if test "x$has_space" != x; then 45979 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45980 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45981 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45982 fi 45983 45984 # Use eval to expand a potential ~ 45985 eval path="$path" 45986 if test ! -f "$path" && test ! -d "$path"; then 45987 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45988 fi 45989 45990 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45991 fi 45992 fi 45993 45994 45995 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45997 $as_echo_n "checking for freetype includes... " >&6; } 45998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45999 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46000 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46002 $as_echo_n "checking for freetype libraries... " >&6; } 46003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46004 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46005 fi 46006 46007 fi 46008 else 46009 FREETYPE_BASE_DIR="$SYSROOT/usr" 46010 46011 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46012 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46013 METHOD="well-known location" 46014 46015 # Let's start with an optimistic view of the world :-) 46016 FOUND_FREETYPE=yes 46017 46018 # First look for the canonical freetype main include file ft2build.h. 46019 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46020 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46021 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46022 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46023 # Fail. 46024 FOUND_FREETYPE=no 46025 fi 46026 fi 46027 46028 if test "x$FOUND_FREETYPE" = xyes; then 46029 # Include file found, let's continue the sanity check. 46030 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46031 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46032 46033 # Reset to default value 46034 FREETYPE_BASE_NAME=freetype 46035 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46036 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46037 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46038 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46039 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46040 # for the .6 version explicitly. 46041 FREETYPE_BASE_NAME=freetype.6 46042 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46043 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46044 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46045 else 46046 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46047 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46048 FOUND_FREETYPE=no 46049 fi 46050 else 46051 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46052 # On Windows, we will need both .lib and .dll file. 46053 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46054 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46055 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46056 FOUND_FREETYPE=no 46057 fi 46058 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46059 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46060 # Found lib in isa dir, use that instead. 46061 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46062 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46063 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46064 fi 46065 fi 46066 fi 46067 46068 if test "x$FOUND_FREETYPE" = xyes; then 46069 46070 # Only process if variable expands to non-empty 46071 46072 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46074 46075 # Input might be given as Windows format, start by converting to 46076 # unix format. 46077 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46078 new_path=`$CYGPATH -u "$path"` 46079 46080 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46081 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46082 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46083 # "foo.exe" is OK but "foo" is an error. 46084 # 46085 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46086 # It is also a way to make sure we got the proper file name for the real test later on. 46087 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46088 if test "x$test_shortpath" = x; then 46089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46090 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46091 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46092 fi 46093 46094 # Call helper function which possibly converts this using DOS-style short mode. 46095 # If so, the updated path is stored in $new_path. 46096 46097 input_path="$new_path" 46098 # Check if we need to convert this using DOS-style short mode. If the path 46099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46100 # take no chances and rewrite it. 46101 # Note: m4 eats our [], so we need to use [ and ] instead. 46102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46103 if test "x$has_forbidden_chars" != x; then 46104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46105 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46106 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46107 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46108 # Going to short mode and back again did indeed matter. Since short mode is 46109 # case insensitive, let's make it lowercase to improve readability. 46110 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46111 # Now convert it back to Unix-stile (cygpath) 46112 input_path=`$CYGPATH -u "$shortmode_path"` 46113 new_path="$input_path" 46114 fi 46115 fi 46116 46117 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46118 if test "x$test_cygdrive_prefix" = x; then 46119 # As a simple fix, exclude /usr/bin since it's not a real path. 46120 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46121 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46122 # a path prefixed by /cygdrive for fixpath to work. 46123 new_path="$CYGWIN_ROOT_PATH$input_path" 46124 fi 46125 fi 46126 46127 46128 if test "x$path" != "x$new_path"; then 46129 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46131 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46132 fi 46133 46134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46135 46136 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46137 has_colon=`$ECHO $path | $GREP ^.:` 46138 new_path="$path" 46139 if test "x$has_colon" = x; then 46140 # Not in mixed or Windows style, start by that. 46141 new_path=`cmd //c echo $path` 46142 fi 46143 46144 46145 input_path="$new_path" 46146 # Check if we need to convert this using DOS-style short mode. If the path 46147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46148 # take no chances and rewrite it. 46149 # Note: m4 eats our [], so we need to use [ and ] instead. 46150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46151 if test "x$has_forbidden_chars" != x; then 46152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46153 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46154 fi 46155 46156 46157 windows_path="$new_path" 46158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46159 unix_path=`$CYGPATH -u "$windows_path"` 46160 new_path="$unix_path" 46161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46163 new_path="$unix_path" 46164 fi 46165 46166 if test "x$path" != "x$new_path"; then 46167 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46169 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46170 fi 46171 46172 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46173 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46174 46175 else 46176 # We're on a unix platform. Hooray! :) 46177 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46178 has_space=`$ECHO "$path" | $GREP " "` 46179 if test "x$has_space" != x; then 46180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46181 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46182 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46183 fi 46184 46185 # Use eval to expand a potential ~ 46186 eval path="$path" 46187 if test ! -f "$path" && test ! -d "$path"; then 46188 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46189 fi 46190 46191 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46192 fi 46193 fi 46194 46195 46196 # Only process if variable expands to non-empty 46197 46198 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46199 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46200 46201 # Input might be given as Windows format, start by converting to 46202 # unix format. 46203 path="$POTENTIAL_FREETYPE_LIB_PATH" 46204 new_path=`$CYGPATH -u "$path"` 46205 46206 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46207 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46208 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46209 # "foo.exe" is OK but "foo" is an error. 46210 # 46211 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46212 # It is also a way to make sure we got the proper file name for the real test later on. 46213 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46214 if test "x$test_shortpath" = x; then 46215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46216 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46217 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46218 fi 46219 46220 # Call helper function which possibly converts this using DOS-style short mode. 46221 # If so, the updated path is stored in $new_path. 46222 46223 input_path="$new_path" 46224 # Check if we need to convert this using DOS-style short mode. If the path 46225 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46226 # take no chances and rewrite it. 46227 # Note: m4 eats our [], so we need to use [ and ] instead. 46228 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46229 if test "x$has_forbidden_chars" != x; then 46230 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46231 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46232 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46233 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46234 # Going to short mode and back again did indeed matter. Since short mode is 46235 # case insensitive, let's make it lowercase to improve readability. 46236 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46237 # Now convert it back to Unix-stile (cygpath) 46238 input_path=`$CYGPATH -u "$shortmode_path"` 46239 new_path="$input_path" 46240 fi 46241 fi 46242 46243 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46244 if test "x$test_cygdrive_prefix" = x; then 46245 # As a simple fix, exclude /usr/bin since it's not a real path. 46246 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46247 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46248 # a path prefixed by /cygdrive for fixpath to work. 46249 new_path="$CYGWIN_ROOT_PATH$input_path" 46250 fi 46251 fi 46252 46253 46254 if test "x$path" != "x$new_path"; then 46255 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46256 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46257 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46258 fi 46259 46260 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46261 46262 path="$POTENTIAL_FREETYPE_LIB_PATH" 46263 has_colon=`$ECHO $path | $GREP ^.:` 46264 new_path="$path" 46265 if test "x$has_colon" = x; then 46266 # Not in mixed or Windows style, start by that. 46267 new_path=`cmd //c echo $path` 46268 fi 46269 46270 46271 input_path="$new_path" 46272 # Check if we need to convert this using DOS-style short mode. If the path 46273 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46274 # take no chances and rewrite it. 46275 # Note: m4 eats our [], so we need to use [ and ] instead. 46276 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46277 if test "x$has_forbidden_chars" != x; then 46278 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46279 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46280 fi 46281 46282 46283 windows_path="$new_path" 46284 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46285 unix_path=`$CYGPATH -u "$windows_path"` 46286 new_path="$unix_path" 46287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46288 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46289 new_path="$unix_path" 46290 fi 46291 46292 if test "x$path" != "x$new_path"; then 46293 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46295 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46296 fi 46297 46298 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46299 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46300 46301 else 46302 # We're on a unix platform. Hooray! :) 46303 path="$POTENTIAL_FREETYPE_LIB_PATH" 46304 has_space=`$ECHO "$path" | $GREP " "` 46305 if test "x$has_space" != x; then 46306 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46307 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46308 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46309 fi 46310 46311 # Use eval to expand a potential ~ 46312 eval path="$path" 46313 if test ! -f "$path" && test ! -d "$path"; then 46314 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46315 fi 46316 46317 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46318 fi 46319 fi 46320 46321 46322 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46324 $as_echo_n "checking for freetype includes... " >&6; } 46325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46326 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46327 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46329 $as_echo_n "checking for freetype libraries... " >&6; } 46330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46331 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46332 fi 46333 46334 46335 if test "x$FOUND_FREETYPE" != xyes; then 46336 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46337 46338 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46339 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46340 METHOD="well-known location" 46341 46342 # Let's start with an optimistic view of the world :-) 46343 FOUND_FREETYPE=yes 46344 46345 # First look for the canonical freetype main include file ft2build.h. 46346 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46347 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46348 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46349 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46350 # Fail. 46351 FOUND_FREETYPE=no 46352 fi 46353 fi 46354 46355 if test "x$FOUND_FREETYPE" = xyes; then 46356 # Include file found, let's continue the sanity check. 46357 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46358 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46359 46360 # Reset to default value 46361 FREETYPE_BASE_NAME=freetype 46362 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46363 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46364 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46365 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46366 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46367 # for the .6 version explicitly. 46368 FREETYPE_BASE_NAME=freetype.6 46369 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46370 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46371 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46372 else 46373 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46374 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46375 FOUND_FREETYPE=no 46376 fi 46377 else 46378 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46379 # On Windows, we will need both .lib and .dll file. 46380 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46381 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46382 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46383 FOUND_FREETYPE=no 46384 fi 46385 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46386 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46387 # Found lib in isa dir, use that instead. 46388 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46390 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46391 fi 46392 fi 46393 fi 46394 46395 if test "x$FOUND_FREETYPE" = xyes; then 46396 46397 # Only process if variable expands to non-empty 46398 46399 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46400 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46401 46402 # Input might be given as Windows format, start by converting to 46403 # unix format. 46404 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46405 new_path=`$CYGPATH -u "$path"` 46406 46407 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46408 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46409 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46410 # "foo.exe" is OK but "foo" is an error. 46411 # 46412 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46413 # It is also a way to make sure we got the proper file name for the real test later on. 46414 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46415 if test "x$test_shortpath" = x; then 46416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46417 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46418 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46419 fi 46420 46421 # Call helper function which possibly converts this using DOS-style short mode. 46422 # If so, the updated path is stored in $new_path. 46423 46424 input_path="$new_path" 46425 # Check if we need to convert this using DOS-style short mode. If the path 46426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46427 # take no chances and rewrite it. 46428 # Note: m4 eats our [], so we need to use [ and ] instead. 46429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46430 if test "x$has_forbidden_chars" != x; then 46431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46432 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46433 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46434 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46435 # Going to short mode and back again did indeed matter. Since short mode is 46436 # case insensitive, let's make it lowercase to improve readability. 46437 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46438 # Now convert it back to Unix-stile (cygpath) 46439 input_path=`$CYGPATH -u "$shortmode_path"` 46440 new_path="$input_path" 46441 fi 46442 fi 46443 46444 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46445 if test "x$test_cygdrive_prefix" = x; then 46446 # As a simple fix, exclude /usr/bin since it's not a real path. 46447 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46448 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46449 # a path prefixed by /cygdrive for fixpath to work. 46450 new_path="$CYGWIN_ROOT_PATH$input_path" 46451 fi 46452 fi 46453 46454 46455 if test "x$path" != "x$new_path"; then 46456 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46457 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46458 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46459 fi 46460 46461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46462 46463 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46464 has_colon=`$ECHO $path | $GREP ^.:` 46465 new_path="$path" 46466 if test "x$has_colon" = x; then 46467 # Not in mixed or Windows style, start by that. 46468 new_path=`cmd //c echo $path` 46469 fi 46470 46471 46472 input_path="$new_path" 46473 # Check if we need to convert this using DOS-style short mode. If the path 46474 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46475 # take no chances and rewrite it. 46476 # Note: m4 eats our [], so we need to use [ and ] instead. 46477 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46478 if test "x$has_forbidden_chars" != x; then 46479 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46480 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46481 fi 46482 46483 46484 windows_path="$new_path" 46485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46486 unix_path=`$CYGPATH -u "$windows_path"` 46487 new_path="$unix_path" 46488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46490 new_path="$unix_path" 46491 fi 46492 46493 if test "x$path" != "x$new_path"; then 46494 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46495 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46496 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46497 fi 46498 46499 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46500 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46501 46502 else 46503 # We're on a unix platform. Hooray! :) 46504 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46505 has_space=`$ECHO "$path" | $GREP " "` 46506 if test "x$has_space" != x; then 46507 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46508 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46509 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46510 fi 46511 46512 # Use eval to expand a potential ~ 46513 eval path="$path" 46514 if test ! -f "$path" && test ! -d "$path"; then 46515 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46516 fi 46517 46518 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46519 fi 46520 fi 46521 46522 46523 # Only process if variable expands to non-empty 46524 46525 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46526 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46527 46528 # Input might be given as Windows format, start by converting to 46529 # unix format. 46530 path="$POTENTIAL_FREETYPE_LIB_PATH" 46531 new_path=`$CYGPATH -u "$path"` 46532 46533 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46534 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46535 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46536 # "foo.exe" is OK but "foo" is an error. 46537 # 46538 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46539 # It is also a way to make sure we got the proper file name for the real test later on. 46540 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46541 if test "x$test_shortpath" = x; then 46542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46543 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46544 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46545 fi 46546 46547 # Call helper function which possibly converts this using DOS-style short mode. 46548 # If so, the updated path is stored in $new_path. 46549 46550 input_path="$new_path" 46551 # Check if we need to convert this using DOS-style short mode. If the path 46552 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46553 # take no chances and rewrite it. 46554 # Note: m4 eats our [], so we need to use [ and ] instead. 46555 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46556 if test "x$has_forbidden_chars" != x; then 46557 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46558 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46559 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46560 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46561 # Going to short mode and back again did indeed matter. Since short mode is 46562 # case insensitive, let's make it lowercase to improve readability. 46563 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46564 # Now convert it back to Unix-stile (cygpath) 46565 input_path=`$CYGPATH -u "$shortmode_path"` 46566 new_path="$input_path" 46567 fi 46568 fi 46569 46570 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46571 if test "x$test_cygdrive_prefix" = x; then 46572 # As a simple fix, exclude /usr/bin since it's not a real path. 46573 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46574 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46575 # a path prefixed by /cygdrive for fixpath to work. 46576 new_path="$CYGWIN_ROOT_PATH$input_path" 46577 fi 46578 fi 46579 46580 46581 if test "x$path" != "x$new_path"; then 46582 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46583 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46584 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46585 fi 46586 46587 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46588 46589 path="$POTENTIAL_FREETYPE_LIB_PATH" 46590 has_colon=`$ECHO $path | $GREP ^.:` 46591 new_path="$path" 46592 if test "x$has_colon" = x; then 46593 # Not in mixed or Windows style, start by that. 46594 new_path=`cmd //c echo $path` 46595 fi 46596 46597 46598 input_path="$new_path" 46599 # Check if we need to convert this using DOS-style short mode. If the path 46600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46601 # take no chances and rewrite it. 46602 # Note: m4 eats our [], so we need to use [ and ] instead. 46603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46604 if test "x$has_forbidden_chars" != x; then 46605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46606 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46607 fi 46608 46609 46610 windows_path="$new_path" 46611 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46612 unix_path=`$CYGPATH -u "$windows_path"` 46613 new_path="$unix_path" 46614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46615 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46616 new_path="$unix_path" 46617 fi 46618 46619 if test "x$path" != "x$new_path"; then 46620 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46622 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46623 fi 46624 46625 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46626 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46627 46628 else 46629 # We're on a unix platform. Hooray! :) 46630 path="$POTENTIAL_FREETYPE_LIB_PATH" 46631 has_space=`$ECHO "$path" | $GREP " "` 46632 if test "x$has_space" != x; then 46633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46634 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46635 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46636 fi 46637 46638 # Use eval to expand a potential ~ 46639 eval path="$path" 46640 if test ! -f "$path" && test ! -d "$path"; then 46641 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46642 fi 46643 46644 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46645 fi 46646 fi 46647 46648 46649 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46651 $as_echo_n "checking for freetype includes... " >&6; } 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46653 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46654 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46656 $as_echo_n "checking for freetype libraries... " >&6; } 46657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46658 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46659 fi 46660 46661 fi 46662 46663 if test "x$FOUND_FREETYPE" != xyes; then 46664 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46665 46666 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46667 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46668 METHOD="well-known location" 46669 46670 # Let's start with an optimistic view of the world :-) 46671 FOUND_FREETYPE=yes 46672 46673 # First look for the canonical freetype main include file ft2build.h. 46674 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46675 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46676 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46677 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46678 # Fail. 46679 FOUND_FREETYPE=no 46680 fi 46681 fi 46682 46683 if test "x$FOUND_FREETYPE" = xyes; then 46684 # Include file found, let's continue the sanity check. 46685 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46686 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46687 46688 # Reset to default value 46689 FREETYPE_BASE_NAME=freetype 46690 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46691 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46692 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46693 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46694 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46695 # for the .6 version explicitly. 46696 FREETYPE_BASE_NAME=freetype.6 46697 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46698 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46699 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46700 else 46701 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46702 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46703 FOUND_FREETYPE=no 46704 fi 46705 else 46706 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46707 # On Windows, we will need both .lib and .dll file. 46708 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46709 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46710 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46711 FOUND_FREETYPE=no 46712 fi 46713 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46714 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46715 # Found lib in isa dir, use that instead. 46716 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46717 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46718 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46719 fi 46720 fi 46721 fi 46722 46723 if test "x$FOUND_FREETYPE" = xyes; then 46724 46725 # Only process if variable expands to non-empty 46726 46727 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 46728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46729 46730 # Input might be given as Windows format, start by converting to 46731 # unix format. 46732 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46733 new_path=`$CYGPATH -u "$path"` 46734 46735 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46736 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46737 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46738 # "foo.exe" is OK but "foo" is an error. 46739 # 46740 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46741 # It is also a way to make sure we got the proper file name for the real test later on. 46742 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46743 if test "x$test_shortpath" = x; then 46744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46745 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46746 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46747 fi 46748 46749 # Call helper function which possibly converts this using DOS-style short mode. 46750 # If so, the updated path is stored in $new_path. 46751 46752 input_path="$new_path" 46753 # Check if we need to convert this using DOS-style short mode. If the path 46754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46755 # take no chances and rewrite it. 46756 # Note: m4 eats our [], so we need to use [ and ] instead. 46757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46758 if test "x$has_forbidden_chars" != x; then 46759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46760 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46761 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46762 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46763 # Going to short mode and back again did indeed matter. Since short mode is 46764 # case insensitive, let's make it lowercase to improve readability. 46765 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46766 # Now convert it back to Unix-stile (cygpath) 46767 input_path=`$CYGPATH -u "$shortmode_path"` 46768 new_path="$input_path" 46769 fi 46770 fi 46771 46772 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46773 if test "x$test_cygdrive_prefix" = x; then 46774 # As a simple fix, exclude /usr/bin since it's not a real path. 46775 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46776 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46777 # a path prefixed by /cygdrive for fixpath to work. 46778 new_path="$CYGWIN_ROOT_PATH$input_path" 46779 fi 46780 fi 46781 46782 46783 if test "x$path" != "x$new_path"; then 46784 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46785 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46786 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46787 fi 46788 46789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46790 46791 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46792 has_colon=`$ECHO $path | $GREP ^.:` 46793 new_path="$path" 46794 if test "x$has_colon" = x; then 46795 # Not in mixed or Windows style, start by that. 46796 new_path=`cmd //c echo $path` 46797 fi 46798 46799 46800 input_path="$new_path" 46801 # Check if we need to convert this using DOS-style short mode. If the path 46802 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46803 # take no chances and rewrite it. 46804 # Note: m4 eats our [], so we need to use [ and ] instead. 46805 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46806 if test "x$has_forbidden_chars" != x; then 46807 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46808 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46809 fi 46810 46811 46812 windows_path="$new_path" 46813 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46814 unix_path=`$CYGPATH -u "$windows_path"` 46815 new_path="$unix_path" 46816 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46817 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46818 new_path="$unix_path" 46819 fi 46820 46821 if test "x$path" != "x$new_path"; then 46822 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46823 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46824 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46825 fi 46826 46827 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46828 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46829 46830 else 46831 # We're on a unix platform. Hooray! :) 46832 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46833 has_space=`$ECHO "$path" | $GREP " "` 46834 if test "x$has_space" != x; then 46835 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46836 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46837 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46838 fi 46839 46840 # Use eval to expand a potential ~ 46841 eval path="$path" 46842 if test ! -f "$path" && test ! -d "$path"; then 46843 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46844 fi 46845 46846 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46847 fi 46848 fi 46849 46850 46851 # Only process if variable expands to non-empty 46852 46853 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 46854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46855 46856 # Input might be given as Windows format, start by converting to 46857 # unix format. 46858 path="$POTENTIAL_FREETYPE_LIB_PATH" 46859 new_path=`$CYGPATH -u "$path"` 46860 46861 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46862 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46863 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46864 # "foo.exe" is OK but "foo" is an error. 46865 # 46866 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46867 # It is also a way to make sure we got the proper file name for the real test later on. 46868 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46869 if test "x$test_shortpath" = x; then 46870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46871 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46872 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46873 fi 46874 46875 # Call helper function which possibly converts this using DOS-style short mode. 46876 # If so, the updated path is stored in $new_path. 46877 46878 input_path="$new_path" 46879 # Check if we need to convert this using DOS-style short mode. If the path 46880 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46881 # take no chances and rewrite it. 46882 # Note: m4 eats our [], so we need to use [ and ] instead. 46883 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46884 if test "x$has_forbidden_chars" != x; then 46885 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46886 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46887 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46888 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46889 # Going to short mode and back again did indeed matter. Since short mode is 46890 # case insensitive, let's make it lowercase to improve readability. 46891 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46892 # Now convert it back to Unix-stile (cygpath) 46893 input_path=`$CYGPATH -u "$shortmode_path"` 46894 new_path="$input_path" 46895 fi 46896 fi 46897 46898 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46899 if test "x$test_cygdrive_prefix" = x; then 46900 # As a simple fix, exclude /usr/bin since it's not a real path. 46901 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46902 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46903 # a path prefixed by /cygdrive for fixpath to work. 46904 new_path="$CYGWIN_ROOT_PATH$input_path" 46905 fi 46906 fi 46907 46908 46909 if test "x$path" != "x$new_path"; then 46910 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46911 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46912 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46913 fi 46914 46915 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46916 46917 path="$POTENTIAL_FREETYPE_LIB_PATH" 46918 has_colon=`$ECHO $path | $GREP ^.:` 46919 new_path="$path" 46920 if test "x$has_colon" = x; then 46921 # Not in mixed or Windows style, start by that. 46922 new_path=`cmd //c echo $path` 46923 fi 46924 46925 46926 input_path="$new_path" 46927 # Check if we need to convert this using DOS-style short mode. If the path 46928 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46929 # take no chances and rewrite it. 46930 # Note: m4 eats our [], so we need to use [ and ] instead. 46931 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46932 if test "x$has_forbidden_chars" != x; then 46933 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46934 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46935 fi 46936 46937 46938 windows_path="$new_path" 46939 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46940 unix_path=`$CYGPATH -u "$windows_path"` 46941 new_path="$unix_path" 46942 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46943 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46944 new_path="$unix_path" 46945 fi 46946 46947 if test "x$path" != "x$new_path"; then 46948 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46949 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46950 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46951 fi 46952 46953 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46954 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46955 46956 else 46957 # We're on a unix platform. Hooray! :) 46958 path="$POTENTIAL_FREETYPE_LIB_PATH" 46959 has_space=`$ECHO "$path" | $GREP " "` 46960 if test "x$has_space" != x; then 46961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46962 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46963 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46964 fi 46965 46966 # Use eval to expand a potential ~ 46967 eval path="$path" 46968 if test ! -f "$path" && test ! -d "$path"; then 46969 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46970 fi 46971 46972 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46973 fi 46974 fi 46975 46976 46977 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46979 $as_echo_n "checking for freetype includes... " >&6; } 46980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46981 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46982 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46984 $as_echo_n "checking for freetype libraries... " >&6; } 46985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46986 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46987 fi 46988 46989 fi 46990 46991 if test "x$FOUND_FREETYPE" != xyes; then 46992 FREETYPE_BASE_DIR="$SYSROOT/usr" 46993 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46994 46995 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46996 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46997 METHOD="well-known location" 46998 46999 # Let's start with an optimistic view of the world :-) 47000 FOUND_FREETYPE=yes 47001 47002 # First look for the canonical freetype main include file ft2build.h. 47003 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47004 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47005 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47006 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47007 # Fail. 47008 FOUND_FREETYPE=no 47009 fi 47010 fi 47011 47012 if test "x$FOUND_FREETYPE" = xyes; then 47013 # Include file found, let's continue the sanity check. 47014 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47015 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47016 47017 # Reset to default value 47018 FREETYPE_BASE_NAME=freetype 47019 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47020 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47021 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47022 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47023 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47024 # for the .6 version explicitly. 47025 FREETYPE_BASE_NAME=freetype.6 47026 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47027 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47028 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47029 else 47030 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47031 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47032 FOUND_FREETYPE=no 47033 fi 47034 else 47035 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47036 # On Windows, we will need both .lib and .dll file. 47037 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47038 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47039 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47040 FOUND_FREETYPE=no 47041 fi 47042 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47043 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47044 # Found lib in isa dir, use that instead. 47045 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47046 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47047 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47048 fi 47049 fi 47050 fi 47051 47052 if test "x$FOUND_FREETYPE" = xyes; then 47053 47054 # Only process if variable expands to non-empty 47055 47056 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47057 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47058 47059 # Input might be given as Windows format, start by converting to 47060 # unix format. 47061 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47062 new_path=`$CYGPATH -u "$path"` 47063 47064 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47065 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47066 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47067 # "foo.exe" is OK but "foo" is an error. 47068 # 47069 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47070 # It is also a way to make sure we got the proper file name for the real test later on. 47071 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47072 if test "x$test_shortpath" = x; then 47073 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47074 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47075 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47076 fi 47077 47078 # Call helper function which possibly converts this using DOS-style short mode. 47079 # If so, the updated path is stored in $new_path. 47080 47081 input_path="$new_path" 47082 # Check if we need to convert this using DOS-style short mode. If the path 47083 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47084 # take no chances and rewrite it. 47085 # Note: m4 eats our [], so we need to use [ and ] instead. 47086 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47087 if test "x$has_forbidden_chars" != x; then 47088 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47089 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47090 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47091 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47092 # Going to short mode and back again did indeed matter. Since short mode is 47093 # case insensitive, let's make it lowercase to improve readability. 47094 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47095 # Now convert it back to Unix-stile (cygpath) 47096 input_path=`$CYGPATH -u "$shortmode_path"` 47097 new_path="$input_path" 47098 fi 47099 fi 47100 47101 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47102 if test "x$test_cygdrive_prefix" = x; then 47103 # As a simple fix, exclude /usr/bin since it's not a real path. 47104 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47105 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47106 # a path prefixed by /cygdrive for fixpath to work. 47107 new_path="$CYGWIN_ROOT_PATH$input_path" 47108 fi 47109 fi 47110 47111 47112 if test "x$path" != "x$new_path"; then 47113 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47114 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47115 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47116 fi 47117 47118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47119 47120 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47121 has_colon=`$ECHO $path | $GREP ^.:` 47122 new_path="$path" 47123 if test "x$has_colon" = x; then 47124 # Not in mixed or Windows style, start by that. 47125 new_path=`cmd //c echo $path` 47126 fi 47127 47128 47129 input_path="$new_path" 47130 # Check if we need to convert this using DOS-style short mode. If the path 47131 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47132 # take no chances and rewrite it. 47133 # Note: m4 eats our [], so we need to use [ and ] instead. 47134 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47135 if test "x$has_forbidden_chars" != x; then 47136 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47137 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47138 fi 47139 47140 47141 windows_path="$new_path" 47142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47143 unix_path=`$CYGPATH -u "$windows_path"` 47144 new_path="$unix_path" 47145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47147 new_path="$unix_path" 47148 fi 47149 47150 if test "x$path" != "x$new_path"; then 47151 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47152 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47153 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47154 fi 47155 47156 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47157 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47158 47159 else 47160 # We're on a unix platform. Hooray! :) 47161 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47162 has_space=`$ECHO "$path" | $GREP " "` 47163 if test "x$has_space" != x; then 47164 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47165 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47166 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47167 fi 47168 47169 # Use eval to expand a potential ~ 47170 eval path="$path" 47171 if test ! -f "$path" && test ! -d "$path"; then 47172 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47173 fi 47174 47175 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47176 fi 47177 fi 47178 47179 47180 # Only process if variable expands to non-empty 47181 47182 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47184 47185 # Input might be given as Windows format, start by converting to 47186 # unix format. 47187 path="$POTENTIAL_FREETYPE_LIB_PATH" 47188 new_path=`$CYGPATH -u "$path"` 47189 47190 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47191 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47192 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47193 # "foo.exe" is OK but "foo" is an error. 47194 # 47195 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47196 # It is also a way to make sure we got the proper file name for the real test later on. 47197 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47198 if test "x$test_shortpath" = x; then 47199 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47200 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47201 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47202 fi 47203 47204 # Call helper function which possibly converts this using DOS-style short mode. 47205 # If so, the updated path is stored in $new_path. 47206 47207 input_path="$new_path" 47208 # Check if we need to convert this using DOS-style short mode. If the path 47209 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47210 # take no chances and rewrite it. 47211 # Note: m4 eats our [], so we need to use [ and ] instead. 47212 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47213 if test "x$has_forbidden_chars" != x; then 47214 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47215 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47216 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47217 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47218 # Going to short mode and back again did indeed matter. Since short mode is 47219 # case insensitive, let's make it lowercase to improve readability. 47220 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47221 # Now convert it back to Unix-stile (cygpath) 47222 input_path=`$CYGPATH -u "$shortmode_path"` 47223 new_path="$input_path" 47224 fi 47225 fi 47226 47227 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47228 if test "x$test_cygdrive_prefix" = x; then 47229 # As a simple fix, exclude /usr/bin since it's not a real path. 47230 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47231 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47232 # a path prefixed by /cygdrive for fixpath to work. 47233 new_path="$CYGWIN_ROOT_PATH$input_path" 47234 fi 47235 fi 47236 47237 47238 if test "x$path" != "x$new_path"; then 47239 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47240 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47241 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47242 fi 47243 47244 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47245 47246 path="$POTENTIAL_FREETYPE_LIB_PATH" 47247 has_colon=`$ECHO $path | $GREP ^.:` 47248 new_path="$path" 47249 if test "x$has_colon" = x; then 47250 # Not in mixed or Windows style, start by that. 47251 new_path=`cmd //c echo $path` 47252 fi 47253 47254 47255 input_path="$new_path" 47256 # Check if we need to convert this using DOS-style short mode. If the path 47257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47258 # take no chances and rewrite it. 47259 # Note: m4 eats our [], so we need to use [ and ] instead. 47260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47261 if test "x$has_forbidden_chars" != x; then 47262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47263 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47264 fi 47265 47266 47267 windows_path="$new_path" 47268 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47269 unix_path=`$CYGPATH -u "$windows_path"` 47270 new_path="$unix_path" 47271 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47272 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47273 new_path="$unix_path" 47274 fi 47275 47276 if test "x$path" != "x$new_path"; then 47277 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47278 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47279 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47280 fi 47281 47282 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47283 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47284 47285 else 47286 # We're on a unix platform. Hooray! :) 47287 path="$POTENTIAL_FREETYPE_LIB_PATH" 47288 has_space=`$ECHO "$path" | $GREP " "` 47289 if test "x$has_space" != x; then 47290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47291 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47292 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47293 fi 47294 47295 # Use eval to expand a potential ~ 47296 eval path="$path" 47297 if test ! -f "$path" && test ! -d "$path"; then 47298 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47299 fi 47300 47301 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47302 fi 47303 fi 47304 47305 47306 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47308 $as_echo_n "checking for freetype includes... " >&6; } 47309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47310 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47311 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47313 $as_echo_n "checking for freetype libraries... " >&6; } 47314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47315 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47316 fi 47317 47318 else 47319 47320 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47321 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47322 METHOD="well-known location" 47323 47324 # Let's start with an optimistic view of the world :-) 47325 FOUND_FREETYPE=yes 47326 47327 # First look for the canonical freetype main include file ft2build.h. 47328 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47329 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47330 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47331 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47332 # Fail. 47333 FOUND_FREETYPE=no 47334 fi 47335 fi 47336 47337 if test "x$FOUND_FREETYPE" = xyes; then 47338 # Include file found, let's continue the sanity check. 47339 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47340 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47341 47342 # Reset to default value 47343 FREETYPE_BASE_NAME=freetype 47344 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47345 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47346 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47347 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47348 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47349 # for the .6 version explicitly. 47350 FREETYPE_BASE_NAME=freetype.6 47351 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47352 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47353 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47354 else 47355 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47356 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47357 FOUND_FREETYPE=no 47358 fi 47359 else 47360 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47361 # On Windows, we will need both .lib and .dll file. 47362 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47363 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47364 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47365 FOUND_FREETYPE=no 47366 fi 47367 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47368 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47369 # Found lib in isa dir, use that instead. 47370 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47371 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47372 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47373 fi 47374 fi 47375 fi 47376 47377 if test "x$FOUND_FREETYPE" = xyes; then 47378 47379 # Only process if variable expands to non-empty 47380 47381 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47383 47384 # Input might be given as Windows format, start by converting to 47385 # unix format. 47386 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47387 new_path=`$CYGPATH -u "$path"` 47388 47389 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47390 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47391 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47392 # "foo.exe" is OK but "foo" is an error. 47393 # 47394 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47395 # It is also a way to make sure we got the proper file name for the real test later on. 47396 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47397 if test "x$test_shortpath" = x; then 47398 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47399 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47400 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47401 fi 47402 47403 # Call helper function which possibly converts this using DOS-style short mode. 47404 # If so, the updated path is stored in $new_path. 47405 47406 input_path="$new_path" 47407 # Check if we need to convert this using DOS-style short mode. If the path 47408 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47409 # take no chances and rewrite it. 47410 # Note: m4 eats our [], so we need to use [ and ] instead. 47411 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47412 if test "x$has_forbidden_chars" != x; then 47413 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47414 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47415 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47416 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47417 # Going to short mode and back again did indeed matter. Since short mode is 47418 # case insensitive, let's make it lowercase to improve readability. 47419 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47420 # Now convert it back to Unix-stile (cygpath) 47421 input_path=`$CYGPATH -u "$shortmode_path"` 47422 new_path="$input_path" 47423 fi 47424 fi 47425 47426 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47427 if test "x$test_cygdrive_prefix" = x; then 47428 # As a simple fix, exclude /usr/bin since it's not a real path. 47429 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47430 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47431 # a path prefixed by /cygdrive for fixpath to work. 47432 new_path="$CYGWIN_ROOT_PATH$input_path" 47433 fi 47434 fi 47435 47436 47437 if test "x$path" != "x$new_path"; then 47438 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47440 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47441 fi 47442 47443 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47444 47445 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47446 has_colon=`$ECHO $path | $GREP ^.:` 47447 new_path="$path" 47448 if test "x$has_colon" = x; then 47449 # Not in mixed or Windows style, start by that. 47450 new_path=`cmd //c echo $path` 47451 fi 47452 47453 47454 input_path="$new_path" 47455 # Check if we need to convert this using DOS-style short mode. If the path 47456 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47457 # take no chances and rewrite it. 47458 # Note: m4 eats our [], so we need to use [ and ] instead. 47459 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47460 if test "x$has_forbidden_chars" != x; then 47461 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47462 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47463 fi 47464 47465 47466 windows_path="$new_path" 47467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47468 unix_path=`$CYGPATH -u "$windows_path"` 47469 new_path="$unix_path" 47470 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47471 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47472 new_path="$unix_path" 47473 fi 47474 47475 if test "x$path" != "x$new_path"; then 47476 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47477 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47478 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47479 fi 47480 47481 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47482 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47483 47484 else 47485 # We're on a unix platform. Hooray! :) 47486 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47487 has_space=`$ECHO "$path" | $GREP " "` 47488 if test "x$has_space" != x; then 47489 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47490 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47491 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47492 fi 47493 47494 # Use eval to expand a potential ~ 47495 eval path="$path" 47496 if test ! -f "$path" && test ! -d "$path"; then 47497 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47498 fi 47499 47500 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47501 fi 47502 fi 47503 47504 47505 # Only process if variable expands to non-empty 47506 47507 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47508 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47509 47510 # Input might be given as Windows format, start by converting to 47511 # unix format. 47512 path="$POTENTIAL_FREETYPE_LIB_PATH" 47513 new_path=`$CYGPATH -u "$path"` 47514 47515 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47516 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47517 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47518 # "foo.exe" is OK but "foo" is an error. 47519 # 47520 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47521 # It is also a way to make sure we got the proper file name for the real test later on. 47522 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47523 if test "x$test_shortpath" = x; then 47524 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47525 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47526 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47527 fi 47528 47529 # Call helper function which possibly converts this using DOS-style short mode. 47530 # If so, the updated path is stored in $new_path. 47531 47532 input_path="$new_path" 47533 # Check if we need to convert this using DOS-style short mode. If the path 47534 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47535 # take no chances and rewrite it. 47536 # Note: m4 eats our [], so we need to use [ and ] instead. 47537 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47538 if test "x$has_forbidden_chars" != x; then 47539 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47540 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47541 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47542 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47543 # Going to short mode and back again did indeed matter. Since short mode is 47544 # case insensitive, let's make it lowercase to improve readability. 47545 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47546 # Now convert it back to Unix-stile (cygpath) 47547 input_path=`$CYGPATH -u "$shortmode_path"` 47548 new_path="$input_path" 47549 fi 47550 fi 47551 47552 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47553 if test "x$test_cygdrive_prefix" = x; then 47554 # As a simple fix, exclude /usr/bin since it's not a real path. 47555 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47556 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47557 # a path prefixed by /cygdrive for fixpath to work. 47558 new_path="$CYGWIN_ROOT_PATH$input_path" 47559 fi 47560 fi 47561 47562 47563 if test "x$path" != "x$new_path"; then 47564 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47565 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47566 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47567 fi 47568 47569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47570 47571 path="$POTENTIAL_FREETYPE_LIB_PATH" 47572 has_colon=`$ECHO $path | $GREP ^.:` 47573 new_path="$path" 47574 if test "x$has_colon" = x; then 47575 # Not in mixed or Windows style, start by that. 47576 new_path=`cmd //c echo $path` 47577 fi 47578 47579 47580 input_path="$new_path" 47581 # Check if we need to convert this using DOS-style short mode. If the path 47582 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47583 # take no chances and rewrite it. 47584 # Note: m4 eats our [], so we need to use [ and ] instead. 47585 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47586 if test "x$has_forbidden_chars" != x; then 47587 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47588 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47589 fi 47590 47591 47592 windows_path="$new_path" 47593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47594 unix_path=`$CYGPATH -u "$windows_path"` 47595 new_path="$unix_path" 47596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47598 new_path="$unix_path" 47599 fi 47600 47601 if test "x$path" != "x$new_path"; then 47602 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47603 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47604 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47605 fi 47606 47607 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47608 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47609 47610 else 47611 # We're on a unix platform. Hooray! :) 47612 path="$POTENTIAL_FREETYPE_LIB_PATH" 47613 has_space=`$ECHO "$path" | $GREP " "` 47614 if test "x$has_space" != x; then 47615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47616 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47617 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47618 fi 47619 47620 # Use eval to expand a potential ~ 47621 eval path="$path" 47622 if test ! -f "$path" && test ! -d "$path"; then 47623 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47624 fi 47625 47626 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47627 fi 47628 fi 47629 47630 47631 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47633 $as_echo_n "checking for freetype includes... " >&6; } 47634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47635 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47636 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47638 $as_echo_n "checking for freetype libraries... " >&6; } 47639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47640 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47641 fi 47642 47643 if test "x$FOUND_FREETYPE" != xyes; then 47644 47645 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47646 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47647 METHOD="well-known location" 47648 47649 # Let's start with an optimistic view of the world :-) 47650 FOUND_FREETYPE=yes 47651 47652 # First look for the canonical freetype main include file ft2build.h. 47653 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47654 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47655 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47656 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47657 # Fail. 47658 FOUND_FREETYPE=no 47659 fi 47660 fi 47661 47662 if test "x$FOUND_FREETYPE" = xyes; then 47663 # Include file found, let's continue the sanity check. 47664 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47665 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47666 47667 # Reset to default value 47668 FREETYPE_BASE_NAME=freetype 47669 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47670 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47671 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47672 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47673 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47674 # for the .6 version explicitly. 47675 FREETYPE_BASE_NAME=freetype.6 47676 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47677 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47678 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47679 else 47680 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47681 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47682 FOUND_FREETYPE=no 47683 fi 47684 else 47685 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47686 # On Windows, we will need both .lib and .dll file. 47687 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47688 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47689 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47690 FOUND_FREETYPE=no 47691 fi 47692 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47693 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47694 # Found lib in isa dir, use that instead. 47695 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47696 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47697 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47698 fi 47699 fi 47700 fi 47701 47702 if test "x$FOUND_FREETYPE" = xyes; then 47703 47704 # Only process if variable expands to non-empty 47705 47706 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x; then 47707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47708 47709 # Input might be given as Windows format, start by converting to 47710 # unix format. 47711 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47712 new_path=`$CYGPATH -u "$path"` 47713 47714 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47715 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47716 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47717 # "foo.exe" is OK but "foo" is an error. 47718 # 47719 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47720 # It is also a way to make sure we got the proper file name for the real test later on. 47721 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47722 if test "x$test_shortpath" = x; then 47723 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47724 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47725 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47726 fi 47727 47728 # Call helper function which possibly converts this using DOS-style short mode. 47729 # If so, the updated path is stored in $new_path. 47730 47731 input_path="$new_path" 47732 # Check if we need to convert this using DOS-style short mode. If the path 47733 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47734 # take no chances and rewrite it. 47735 # Note: m4 eats our [], so we need to use [ and ] instead. 47736 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47737 if test "x$has_forbidden_chars" != x; then 47738 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47739 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47740 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47741 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47742 # Going to short mode and back again did indeed matter. Since short mode is 47743 # case insensitive, let's make it lowercase to improve readability. 47744 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47745 # Now convert it back to Unix-stile (cygpath) 47746 input_path=`$CYGPATH -u "$shortmode_path"` 47747 new_path="$input_path" 47748 fi 47749 fi 47750 47751 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47752 if test "x$test_cygdrive_prefix" = x; then 47753 # As a simple fix, exclude /usr/bin since it's not a real path. 47754 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47755 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47756 # a path prefixed by /cygdrive for fixpath to work. 47757 new_path="$CYGWIN_ROOT_PATH$input_path" 47758 fi 47759 fi 47760 47761 47762 if test "x$path" != "x$new_path"; then 47763 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47765 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47766 fi 47767 47768 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47769 47770 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47771 has_colon=`$ECHO $path | $GREP ^.:` 47772 new_path="$path" 47773 if test "x$has_colon" = x; then 47774 # Not in mixed or Windows style, start by that. 47775 new_path=`cmd //c echo $path` 47776 fi 47777 47778 47779 input_path="$new_path" 47780 # Check if we need to convert this using DOS-style short mode. If the path 47781 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47782 # take no chances and rewrite it. 47783 # Note: m4 eats our [], so we need to use [ and ] instead. 47784 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47785 if test "x$has_forbidden_chars" != x; then 47786 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47787 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47788 fi 47789 47790 47791 windows_path="$new_path" 47792 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47793 unix_path=`$CYGPATH -u "$windows_path"` 47794 new_path="$unix_path" 47795 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47796 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47797 new_path="$unix_path" 47798 fi 47799 47800 if test "x$path" != "x$new_path"; then 47801 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47802 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47803 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47804 fi 47805 47806 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47807 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47808 47809 else 47810 # We're on a unix platform. Hooray! :) 47811 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47812 has_space=`$ECHO "$path" | $GREP " "` 47813 if test "x$has_space" != x; then 47814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47815 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47816 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47817 fi 47818 47819 # Use eval to expand a potential ~ 47820 eval path="$path" 47821 if test ! -f "$path" && test ! -d "$path"; then 47822 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47823 fi 47824 47825 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47826 fi 47827 fi 47828 47829 47830 # Only process if variable expands to non-empty 47831 47832 if test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 47833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47834 47835 # Input might be given as Windows format, start by converting to 47836 # unix format. 47837 path="$POTENTIAL_FREETYPE_LIB_PATH" 47838 new_path=`$CYGPATH -u "$path"` 47839 47840 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47841 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47842 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47843 # "foo.exe" is OK but "foo" is an error. 47844 # 47845 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47846 # It is also a way to make sure we got the proper file name for the real test later on. 47847 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47848 if test "x$test_shortpath" = x; then 47849 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47850 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47851 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47852 fi 47853 47854 # Call helper function which possibly converts this using DOS-style short mode. 47855 # If so, the updated path is stored in $new_path. 47856 47857 input_path="$new_path" 47858 # Check if we need to convert this using DOS-style short mode. If the path 47859 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47860 # take no chances and rewrite it. 47861 # Note: m4 eats our [], so we need to use [ and ] instead. 47862 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47863 if test "x$has_forbidden_chars" != x; then 47864 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47865 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47866 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47867 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47868 # Going to short mode and back again did indeed matter. Since short mode is 47869 # case insensitive, let's make it lowercase to improve readability. 47870 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47871 # Now convert it back to Unix-stile (cygpath) 47872 input_path=`$CYGPATH -u "$shortmode_path"` 47873 new_path="$input_path" 47874 fi 47875 fi 47876 47877 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47878 if test "x$test_cygdrive_prefix" = x; then 47879 # As a simple fix, exclude /usr/bin since it's not a real path. 47880 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47881 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47882 # a path prefixed by /cygdrive for fixpath to work. 47883 new_path="$CYGWIN_ROOT_PATH$input_path" 47884 fi 47885 fi 47886 47887 47888 if test "x$path" != "x$new_path"; then 47889 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47890 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47891 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47892 fi 47893 47894 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47895 47896 path="$POTENTIAL_FREETYPE_LIB_PATH" 47897 has_colon=`$ECHO $path | $GREP ^.:` 47898 new_path="$path" 47899 if test "x$has_colon" = x; then 47900 # Not in mixed or Windows style, start by that. 47901 new_path=`cmd //c echo $path` 47902 fi 47903 47904 47905 input_path="$new_path" 47906 # Check if we need to convert this using DOS-style short mode. If the path 47907 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47908 # take no chances and rewrite it. 47909 # Note: m4 eats our [], so we need to use [ and ] instead. 47910 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47911 if test "x$has_forbidden_chars" != x; then 47912 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47913 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47914 fi 47915 47916 47917 windows_path="$new_path" 47918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47919 unix_path=`$CYGPATH -u "$windows_path"` 47920 new_path="$unix_path" 47921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47922 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47923 new_path="$unix_path" 47924 fi 47925 47926 if test "x$path" != "x$new_path"; then 47927 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47928 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47929 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47930 fi 47931 47932 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47933 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47934 47935 else 47936 # We're on a unix platform. Hooray! :) 47937 path="$POTENTIAL_FREETYPE_LIB_PATH" 47938 has_space=`$ECHO "$path" | $GREP " "` 47939 if test "x$has_space" != x; then 47940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47942 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47943 fi 47944 47945 # Use eval to expand a potential ~ 47946 eval path="$path" 47947 if test ! -f "$path" && test ! -d "$path"; then 47948 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47949 fi 47950 47951 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47952 fi 47953 fi 47954 47955 47956 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47958 $as_echo_n "checking for freetype includes... " >&6; } 47959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47960 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47961 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47963 $as_echo_n "checking for freetype libraries... " >&6; } 47964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47965 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47966 fi 47967 47968 fi 47969 fi 47970 fi 47971 fi 47972 fi # end check in well-known locations 47973 47974 if test "x$FOUND_FREETYPE" != xyes; then 47975 47976 # Print a helpful message on how to acquire the necessary build dependency. 47977 # freetype is the help tag: freetype, cups, pulse, alsa etc 47978 MISSING_DEPENDENCY=freetype 47979 47980 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47981 cygwin_help $MISSING_DEPENDENCY 47982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47983 msys_help $MISSING_DEPENDENCY 47984 else 47985 PKGHANDLER_COMMAND= 47986 47987 case $PKGHANDLER in 47988 apt-get) 47989 apt_help $MISSING_DEPENDENCY ;; 47990 yum) 47991 yum_help $MISSING_DEPENDENCY ;; 47992 port) 47993 port_help $MISSING_DEPENDENCY ;; 47994 pkgutil) 47995 pkgutil_help $MISSING_DEPENDENCY ;; 47996 pkgadd) 47997 pkgadd_help $MISSING_DEPENDENCY ;; 47998 esac 47999 48000 if test "x$PKGHANDLER_COMMAND" != x; then 48001 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48002 fi 48003 fi 48004 48005 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 48006 fi 48007 fi # end user specified settings 48008 48009 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 48010 if test "x$FREETYPE_CFLAGS" = x; then 48011 48012 # Only process if variable expands to non-empty 48013 48014 if test "x$FREETYPE_INCLUDE_PATH" != x; then 48015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48016 48017 # Input might be given as Windows format, start by converting to 48018 # unix format. 48019 path="$FREETYPE_INCLUDE_PATH" 48020 new_path=`$CYGPATH -u "$path"` 48021 48022 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48023 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48024 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48025 # "foo.exe" is OK but "foo" is an error. 48026 # 48027 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48028 # It is also a way to make sure we got the proper file name for the real test later on. 48029 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48030 if test "x$test_shortpath" = x; then 48031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48032 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48033 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 48034 fi 48035 48036 # Call helper function which possibly converts this using DOS-style short mode. 48037 # If so, the updated path is stored in $new_path. 48038 48039 input_path="$new_path" 48040 # Check if we need to convert this using DOS-style short mode. If the path 48041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48042 # take no chances and rewrite it. 48043 # Note: m4 eats our [], so we need to use [ and ] instead. 48044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48045 if test "x$has_forbidden_chars" != x; then 48046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48047 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48048 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48049 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48050 # Going to short mode and back again did indeed matter. Since short mode is 48051 # case insensitive, let's make it lowercase to improve readability. 48052 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48053 # Now convert it back to Unix-stile (cygpath) 48054 input_path=`$CYGPATH -u "$shortmode_path"` 48055 new_path="$input_path" 48056 fi 48057 fi 48058 48059 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48060 if test "x$test_cygdrive_prefix" = x; then 48061 # As a simple fix, exclude /usr/bin since it's not a real path. 48062 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48063 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48064 # a path prefixed by /cygdrive for fixpath to work. 48065 new_path="$CYGWIN_ROOT_PATH$input_path" 48066 fi 48067 fi 48068 48069 48070 if test "x$path" != "x$new_path"; then 48071 FREETYPE_INCLUDE_PATH="$new_path" 48072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48073 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48074 fi 48075 48076 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48077 48078 path="$FREETYPE_INCLUDE_PATH" 48079 has_colon=`$ECHO $path | $GREP ^.:` 48080 new_path="$path" 48081 if test "x$has_colon" = x; then 48082 # Not in mixed or Windows style, start by that. 48083 new_path=`cmd //c echo $path` 48084 fi 48085 48086 48087 input_path="$new_path" 48088 # Check if we need to convert this using DOS-style short mode. If the path 48089 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48090 # take no chances and rewrite it. 48091 # Note: m4 eats our [], so we need to use [ and ] instead. 48092 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48093 if test "x$has_forbidden_chars" != x; then 48094 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48095 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48096 fi 48097 48098 48099 windows_path="$new_path" 48100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48101 unix_path=`$CYGPATH -u "$windows_path"` 48102 new_path="$unix_path" 48103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48105 new_path="$unix_path" 48106 fi 48107 48108 if test "x$path" != "x$new_path"; then 48109 FREETYPE_INCLUDE_PATH="$new_path" 48110 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 48111 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 48112 fi 48113 48114 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48115 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48116 48117 else 48118 # We're on a unix platform. Hooray! :) 48119 path="$FREETYPE_INCLUDE_PATH" 48120 has_space=`$ECHO "$path" | $GREP " "` 48121 if test "x$has_space" != x; then 48122 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 48123 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 48124 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48125 fi 48126 48127 # Use eval to expand a potential ~ 48128 eval path="$path" 48129 if test ! -f "$path" && test ! -d "$path"; then 48130 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48131 fi 48132 48133 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 48134 fi 48135 fi 48136 48137 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 48138 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 48139 else 48140 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 48141 fi 48142 fi 48143 48144 if test "x$FREETYPE_LIBS" = x; then 48145 48146 # Only process if variable expands to non-empty 48147 48148 if test "x$FREETYPE_LIB_PATH" != x; then 48149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48150 48151 # Input might be given as Windows format, start by converting to 48152 # unix format. 48153 path="$FREETYPE_LIB_PATH" 48154 new_path=`$CYGPATH -u "$path"` 48155 48156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48159 # "foo.exe" is OK but "foo" is an error. 48160 # 48161 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48162 # It is also a way to make sure we got the proper file name for the real test later on. 48163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48164 if test "x$test_shortpath" = x; then 48165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48166 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48167 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 48168 fi 48169 48170 # Call helper function which possibly converts this using DOS-style short mode. 48171 # If so, the updated path is stored in $new_path. 48172 48173 input_path="$new_path" 48174 # Check if we need to convert this using DOS-style short mode. If the path 48175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48176 # take no chances and rewrite it. 48177 # Note: m4 eats our [], so we need to use [ and ] instead. 48178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48179 if test "x$has_forbidden_chars" != x; then 48180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48181 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48182 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48183 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48184 # Going to short mode and back again did indeed matter. Since short mode is 48185 # case insensitive, let's make it lowercase to improve readability. 48186 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48187 # Now convert it back to Unix-stile (cygpath) 48188 input_path=`$CYGPATH -u "$shortmode_path"` 48189 new_path="$input_path" 48190 fi 48191 fi 48192 48193 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48194 if test "x$test_cygdrive_prefix" = x; then 48195 # As a simple fix, exclude /usr/bin since it's not a real path. 48196 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48197 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48198 # a path prefixed by /cygdrive for fixpath to work. 48199 new_path="$CYGWIN_ROOT_PATH$input_path" 48200 fi 48201 fi 48202 48203 48204 if test "x$path" != "x$new_path"; then 48205 FREETYPE_LIB_PATH="$new_path" 48206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48207 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48208 fi 48209 48210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48211 48212 path="$FREETYPE_LIB_PATH" 48213 has_colon=`$ECHO $path | $GREP ^.:` 48214 new_path="$path" 48215 if test "x$has_colon" = x; then 48216 # Not in mixed or Windows style, start by that. 48217 new_path=`cmd //c echo $path` 48218 fi 48219 48220 48221 input_path="$new_path" 48222 # Check if we need to convert this using DOS-style short mode. If the path 48223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48224 # take no chances and rewrite it. 48225 # Note: m4 eats our [], so we need to use [ and ] instead. 48226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48227 if test "x$has_forbidden_chars" != x; then 48228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48230 fi 48231 48232 48233 windows_path="$new_path" 48234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48235 unix_path=`$CYGPATH -u "$windows_path"` 48236 new_path="$unix_path" 48237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48239 new_path="$unix_path" 48240 fi 48241 48242 if test "x$path" != "x$new_path"; then 48243 FREETYPE_LIB_PATH="$new_path" 48244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 48245 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 48246 fi 48247 48248 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48249 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48250 48251 else 48252 # We're on a unix platform. Hooray! :) 48253 path="$FREETYPE_LIB_PATH" 48254 has_space=`$ECHO "$path" | $GREP " "` 48255 if test "x$has_space" != x; then 48256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 48257 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 48258 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48259 fi 48260 48261 # Use eval to expand a potential ~ 48262 eval path="$path" 48263 if test ! -f "$path" && test ! -d "$path"; then 48264 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 48265 fi 48266 48267 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 48268 fi 48269 fi 48270 48271 if test "x$OPENJDK_TARGET_OS" = xwindows; then 48272 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 48273 else 48274 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 48275 fi 48276 fi 48277 48278 # Try to compile it 48279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 48280 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 48281 ac_ext=cpp 48282 ac_cpp='$CXXCPP $CPPFLAGS' 48283 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48284 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48285 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48286 48287 PREV_CXXCFLAGS="$CXXFLAGS" 48288 PREV_LIBS="$LIBS" 48289 PREV_CXX="$CXX" 48290 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 48291 LIBS="$LIBS $FREETYPE_LIBS" 48292 CXX="$FIXPATH $CXX" 48293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48294 /* end confdefs.h. */ 48295 48296 #include<ft2build.h> 48297 #include FT_FREETYPE_H 48298 int main () { 48299 FT_Init_FreeType(NULL); 48300 return 0; 48301 } 48302 48303 _ACEOF 48304 if ac_fn_cxx_try_link "$LINENO"; then : 48305 48306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48307 $as_echo "yes" >&6; } 48308 48309 else 48310 48311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48312 $as_echo "no" >&6; } 48313 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 48314 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 48315 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 48316 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 48317 48318 48319 # Print a helpful message on how to acquire the necessary build dependency. 48320 # freetype is the help tag: freetype, cups, pulse, alsa etc 48321 MISSING_DEPENDENCY=freetype 48322 48323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48324 cygwin_help $MISSING_DEPENDENCY 48325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48326 msys_help $MISSING_DEPENDENCY 48327 else 48328 PKGHANDLER_COMMAND= 48329 48330 case $PKGHANDLER in 48331 apt-get) 48332 apt_help $MISSING_DEPENDENCY ;; 48333 yum) 48334 yum_help $MISSING_DEPENDENCY ;; 48335 port) 48336 port_help $MISSING_DEPENDENCY ;; 48337 pkgutil) 48338 pkgutil_help $MISSING_DEPENDENCY ;; 48339 pkgadd) 48340 pkgadd_help $MISSING_DEPENDENCY ;; 48341 esac 48342 48343 if test "x$PKGHANDLER_COMMAND" != x; then 48344 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48345 fi 48346 fi 48347 48348 48349 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48350 48351 48352 fi 48353 rm -f core conftest.err conftest.$ac_objext \ 48354 conftest$ac_exeext conftest.$ac_ext 48355 CXXCFLAGS="$PREV_CXXFLAGS" 48356 LIBS="$PREV_LIBS" 48357 CXX="$PREV_CXX" 48358 ac_ext=cpp 48359 ac_cpp='$CXXCPP $CPPFLAGS' 48360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48363 48364 48365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48366 $as_echo_n "checking if we should bundle freetype... " >&6; } 48367 if test "x$BUNDLE_FREETYPE" = xyes; then 48368 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48369 fi 48370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48371 $as_echo "$BUNDLE_FREETYPE" >&6; } 48372 48373 fi # end freetype needed 48374 48375 48376 48377 48378 48379 48380 48381 ############################################################################### 48382 # 48383 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48384 # 48385 48386 # Check whether --with-alsa was given. 48387 if test "${with_alsa+set}" = set; then : 48388 withval=$with_alsa; 48389 fi 48390 48391 48392 # Check whether --with-alsa-include was given. 48393 if test "${with_alsa_include+set}" = set; then : 48394 withval=$with_alsa_include; 48395 fi 48396 48397 48398 # Check whether --with-alsa-lib was given. 48399 if test "${with_alsa_lib+set}" = set; then : 48400 withval=$with_alsa_lib; 48401 fi 48402 48403 48404 if test "x$ALSA_NOT_NEEDED" = xyes; then 48405 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48407 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48408 fi 48409 ALSA_CFLAGS= 48410 ALSA_LIBS= 48411 else 48412 ALSA_FOUND=no 48413 48414 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48415 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48416 fi 48417 48418 if test "x${with_alsa}" != x; then 48419 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48420 ALSA_CFLAGS="-I${with_alsa}/include" 48421 ALSA_FOUND=yes 48422 fi 48423 if test "x${with_alsa_include}" != x; then 48424 ALSA_CFLAGS="-I${with_alsa_include}" 48425 ALSA_FOUND=yes 48426 fi 48427 if test "x${with_alsa_lib}" != x; then 48428 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48429 ALSA_FOUND=yes 48430 fi 48431 if test "x$ALSA_FOUND" = xno; then 48432 48433 48434 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48435 # Source the builddeps file again, to make sure it uses the latest variables! 48436 . $builddepsfile 48437 # Look for a target and build machine specific resource! 48438 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48439 if test "x$resource" = x; then 48440 # Ok, lets instead look for a target specific resource 48441 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48442 fi 48443 if test "x$resource" = x; then 48444 # Ok, lets instead look for a build specific resource 48445 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48446 fi 48447 if test "x$resource" = x; then 48448 # Ok, lets instead look for a generic resource 48449 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48450 resource=${builddep_alsa} 48451 fi 48452 if test "x$resource" != x; then 48453 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48454 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48455 # If the resource in the builddeps.conf file is an existing directory, 48456 # for example /java/linux/cups 48457 if test -d ${resource}; then 48458 depdir=${resource} 48459 else 48460 48461 # alsa is for example mymodule 48462 # $resource is for example libs/general/libmymod_1_2_3.zip 48463 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48464 # $with_builddeps_dir is for example /localhome/builddeps 48465 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48466 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48467 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48468 filename=`basename $resource` 48469 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48470 filebase=${filename%%.*} 48471 extension=${filename#*.} 48472 installdir=$with_builddeps_dir/$filebase 48473 if test ! -f $installdir/$filename.unpacked; then 48474 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48475 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48476 if test ! -d $installdir; then 48477 mkdir -p $installdir 48478 fi 48479 if test ! -d $installdir; then 48480 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48481 fi 48482 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48483 touch $tmpfile 48484 if test ! -f $tmpfile; then 48485 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48486 fi 48487 48488 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48489 # $tmpfile is the local file name for the downloaded file. 48490 VALID_TOOL=no 48491 if test "x$BDEPS_FTP" = xwget; then 48492 VALID_TOOL=yes 48493 wget -O $tmpfile $with_builddeps_server/$resource 48494 fi 48495 if test "x$BDEPS_FTP" = xlftp; then 48496 VALID_TOOL=yes 48497 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48498 fi 48499 if test "x$BDEPS_FTP" = xftp; then 48500 VALID_TOOL=yes 48501 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48502 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48503 FTPUSERPWD=${FTPSERVER%%@*} 48504 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48505 FTPUSER=${userpwd%%:*} 48506 FTPPWD=${userpwd#*@} 48507 FTPSERVER=${FTPSERVER#*@} 48508 else 48509 FTPUSER=ftp 48510 FTPPWD=ftp 48511 fi 48512 # the "pass" command does not work on some 48513 # ftp clients (read ftp.exe) but if it works, 48514 # passive mode is better! 48515 ( \ 48516 echo "user $FTPUSER $FTPPWD" ; \ 48517 echo "pass" ; \ 48518 echo "bin" ; \ 48519 echo "get $FTPPATH $tmpfile" ; \ 48520 ) | ftp -in $FTPSERVER 48521 fi 48522 if test "x$VALID_TOOL" != xyes; then 48523 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48524 fi 48525 48526 mv $tmpfile $installdir/$filename 48527 if test ! -s $installdir/$filename; then 48528 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48529 fi 48530 case "$extension" in 48531 zip) echo "Unzipping $installdir/$filename..." 48532 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48533 ;; 48534 tar.gz) echo "Untaring $installdir/$filename..." 48535 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48536 ;; 48537 tgz) echo "Untaring $installdir/$filename..." 48538 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48539 ;; 48540 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48541 ;; 48542 esac 48543 fi 48544 if test -f $installdir/$filename.unpacked; then 48545 depdir=$installdir 48546 fi 48547 48548 fi 48549 # Source the builddeps file again, because in the previous command, the depdir 48550 # was updated to point at the current build dependency install directory. 48551 . $builddepsfile 48552 # Now extract variables from the builddeps.conf files. 48553 theroot=${builddep_alsa_ROOT} 48554 thecflags=${builddep_alsa_CFLAGS} 48555 thelibs=${builddep_alsa_LIBS} 48556 if test "x$depdir" = x; then 48557 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48558 fi 48559 ALSA=$depdir 48560 if test "x$theroot" != x; then 48561 ALSA="$theroot" 48562 fi 48563 if test "x$thecflags" != x; then 48564 ALSA_CFLAGS="$thecflags" 48565 fi 48566 if test "x$thelibs" != x; then 48567 ALSA_LIBS="$thelibs" 48568 fi 48569 ALSA_FOUND=yes 48570 else ALSA_FOUND=no 48571 48572 fi 48573 else ALSA_FOUND=no 48574 48575 fi 48576 48577 fi 48578 # Do not try pkg-config if we have a sysroot set. 48579 if test "x$SYSROOT" = x; then 48580 if test "x$ALSA_FOUND" = xno; then 48581 48582 pkg_failed=no 48583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48584 $as_echo_n "checking for ALSA... " >&6; } 48585 48586 if test -n "$ALSA_CFLAGS"; then 48587 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48588 elif test -n "$PKG_CONFIG"; then 48589 if test -n "$PKG_CONFIG" && \ 48590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48591 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48592 ac_status=$? 48593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48594 test $ac_status = 0; }; then 48595 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48596 else 48597 pkg_failed=yes 48598 fi 48599 else 48600 pkg_failed=untried 48601 fi 48602 if test -n "$ALSA_LIBS"; then 48603 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48604 elif test -n "$PKG_CONFIG"; then 48605 if test -n "$PKG_CONFIG" && \ 48606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48607 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48608 ac_status=$? 48609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48610 test $ac_status = 0; }; then 48611 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48612 else 48613 pkg_failed=yes 48614 fi 48615 else 48616 pkg_failed=untried 48617 fi 48618 48619 48620 48621 if test $pkg_failed = yes; then 48622 48623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48624 _pkg_short_errors_supported=yes 48625 else 48626 _pkg_short_errors_supported=no 48627 fi 48628 if test $_pkg_short_errors_supported = yes; then 48629 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48630 else 48631 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48632 fi 48633 # Put the nasty error message in config.log where it belongs 48634 echo "$ALSA_PKG_ERRORS" >&5 48635 48636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48637 $as_echo "no" >&6; } 48638 ALSA_FOUND=no 48639 elif test $pkg_failed = untried; then 48640 ALSA_FOUND=no 48641 else 48642 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48643 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48645 $as_echo "yes" >&6; } 48646 ALSA_FOUND=yes 48647 fi 48648 fi 48649 fi 48650 if test "x$ALSA_FOUND" = xno; then 48651 for ac_header in alsa/asoundlib.h 48652 do : 48653 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48654 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48655 cat >>confdefs.h <<_ACEOF 48656 #define HAVE_ALSA_ASOUNDLIB_H 1 48657 _ACEOF 48658 48659 ALSA_FOUND=yes 48660 ALSA_CFLAGS=-Iignoreme 48661 ALSA_LIBS=-lasound 48662 DEFAULT_ALSA=yes 48663 48664 else 48665 ALSA_FOUND=no 48666 fi 48667 48668 done 48669 48670 fi 48671 if test "x$ALSA_FOUND" = xno; then 48672 48673 # Print a helpful message on how to acquire the necessary build dependency. 48674 # alsa is the help tag: freetype, cups, pulse, alsa etc 48675 MISSING_DEPENDENCY=alsa 48676 48677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48678 cygwin_help $MISSING_DEPENDENCY 48679 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48680 msys_help $MISSING_DEPENDENCY 48681 else 48682 PKGHANDLER_COMMAND= 48683 48684 case $PKGHANDLER in 48685 apt-get) 48686 apt_help $MISSING_DEPENDENCY ;; 48687 yum) 48688 yum_help $MISSING_DEPENDENCY ;; 48689 port) 48690 port_help $MISSING_DEPENDENCY ;; 48691 pkgutil) 48692 pkgutil_help $MISSING_DEPENDENCY ;; 48693 pkgadd) 48694 pkgadd_help $MISSING_DEPENDENCY ;; 48695 esac 48696 48697 if test "x$PKGHANDLER_COMMAND" != x; then 48698 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48699 fi 48700 fi 48701 48702 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48703 fi 48704 fi 48705 48706 48707 48708 48709 48710 48711 ############################################################################### 48712 # 48713 # Check for the jpeg library 48714 # 48715 48716 48717 # Check whether --with-libjpeg was given. 48718 if test "${with_libjpeg+set}" = set; then : 48719 withval=$with_libjpeg; 48720 fi 48721 48722 48723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48724 $as_echo_n "checking for which libjpeg to use... " >&6; } 48725 48726 # default is bundled 48727 DEFAULT_LIBJPEG=bundled 48728 48729 # 48730 # if user didn't specify, use DEFAULT_LIBJPEG 48731 # 48732 if test "x${with_libjpeg}" = "x"; then 48733 with_libjpeg=${DEFAULT_LIBJPEG} 48734 fi 48735 48736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48737 $as_echo "${with_libjpeg}" >&6; } 48738 48739 if test "x${with_libjpeg}" = "xbundled"; then 48740 USE_EXTERNAL_LIBJPEG=false 48741 elif test "x${with_libjpeg}" = "xsystem"; then 48742 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48743 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48744 48745 else 48746 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48747 fi 48748 48749 48750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48751 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48752 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48753 $as_echo_n "(cached) " >&6 48754 else 48755 ac_check_lib_save_LIBS=$LIBS 48756 LIBS="-ljpeg $LIBS" 48757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48758 /* end confdefs.h. */ 48759 48760 /* Override any GCC internal prototype to avoid an error. 48761 Use char because int might match the return type of a GCC 48762 builtin and then its argument prototype would still apply. */ 48763 #ifdef __cplusplus 48764 extern "C" 48765 #endif 48766 char jpeg_CreateDecompress (); 48767 int 48768 main () 48769 { 48770 return jpeg_CreateDecompress (); 48771 ; 48772 return 0; 48773 } 48774 _ACEOF 48775 if ac_fn_cxx_try_link "$LINENO"; then : 48776 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48777 else 48778 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48779 fi 48780 rm -f core conftest.err conftest.$ac_objext \ 48781 conftest$ac_exeext conftest.$ac_ext 48782 LIBS=$ac_check_lib_save_LIBS 48783 fi 48784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48785 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48786 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48787 cat >>confdefs.h <<_ACEOF 48788 #define HAVE_LIBJPEG 1 48789 _ACEOF 48790 48791 LIBS="-ljpeg $LIBS" 48792 48793 else 48794 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48795 fi 48796 48797 48798 USE_EXTERNAL_LIBJPEG=true 48799 else 48800 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48801 fi 48802 48803 48804 48805 ############################################################################### 48806 # 48807 # Check for the gif library 48808 # 48809 48810 48811 # Check whether --with-giflib was given. 48812 if test "${with_giflib+set}" = set; then : 48813 withval=$with_giflib; 48814 fi 48815 48816 48817 48818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48819 $as_echo_n "checking for which giflib to use... " >&6; } 48820 48821 # default is bundled 48822 DEFAULT_GIFLIB=bundled 48823 48824 # 48825 # if user didn't specify, use DEFAULT_GIFLIB 48826 # 48827 if test "x${with_giflib}" = "x"; then 48828 with_giflib=${DEFAULT_GIFLIB} 48829 fi 48830 48831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48832 $as_echo "${with_giflib}" >&6; } 48833 48834 if test "x${with_giflib}" = "xbundled"; then 48835 USE_EXTERNAL_LIBGIF=false 48836 elif test "x${with_giflib}" = "xsystem"; then 48837 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48838 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48839 48840 else 48841 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48842 fi 48843 48844 48845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48846 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48847 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48848 $as_echo_n "(cached) " >&6 48849 else 48850 ac_check_lib_save_LIBS=$LIBS 48851 LIBS="-lgif $LIBS" 48852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48853 /* end confdefs.h. */ 48854 48855 /* Override any GCC internal prototype to avoid an error. 48856 Use char because int might match the return type of a GCC 48857 builtin and then its argument prototype would still apply. */ 48858 #ifdef __cplusplus 48859 extern "C" 48860 #endif 48861 char DGifGetCode (); 48862 int 48863 main () 48864 { 48865 return DGifGetCode (); 48866 ; 48867 return 0; 48868 } 48869 _ACEOF 48870 if ac_fn_cxx_try_link "$LINENO"; then : 48871 ac_cv_lib_gif_DGifGetCode=yes 48872 else 48873 ac_cv_lib_gif_DGifGetCode=no 48874 fi 48875 rm -f core conftest.err conftest.$ac_objext \ 48876 conftest$ac_exeext conftest.$ac_ext 48877 LIBS=$ac_check_lib_save_LIBS 48878 fi 48879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48880 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48881 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48882 cat >>confdefs.h <<_ACEOF 48883 #define HAVE_LIBGIF 1 48884 _ACEOF 48885 48886 LIBS="-lgif $LIBS" 48887 48888 else 48889 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48890 fi 48891 48892 48893 USE_EXTERNAL_LIBGIF=true 48894 else 48895 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48896 fi 48897 48898 48899 ############################################################################### 48900 # 48901 # Check for the lcms2 library 48902 # 48903 48904 48905 # Check whether --with-lcms was given. 48906 if test "${with_lcms+set}" = set; then : 48907 withval=$with_lcms; 48908 fi 48909 48910 48911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 48912 $as_echo_n "checking for which lcms to use... " >&6; } 48913 48914 DEFAULT_LCMS=bundled 48915 48916 # 48917 # If user didn't specify, use DEFAULT_LCMS 48918 # 48919 if test "x${with_lcms}" = "x"; then 48920 with_lcms=${DEFAULT_LCMS} 48921 fi 48922 48923 if test "x${with_lcms}" = "xbundled"; then 48924 USE_EXTERNAL_LCMS=false 48925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48926 $as_echo "bundled" >&6; } 48927 elif test "x${with_lcms}" = "xsystem"; then 48928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48929 $as_echo "system" >&6; } 48930 48931 pkg_failed=no 48932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 48933 $as_echo_n "checking for LCMS... " >&6; } 48934 48935 if test -n "$LCMS_CFLAGS"; then 48936 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 48937 elif test -n "$PKG_CONFIG"; then 48938 if test -n "$PKG_CONFIG" && \ 48939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48940 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48941 ac_status=$? 48942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48943 test $ac_status = 0; }; then 48944 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 48945 else 48946 pkg_failed=yes 48947 fi 48948 else 48949 pkg_failed=untried 48950 fi 48951 if test -n "$LCMS_LIBS"; then 48952 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 48953 elif test -n "$PKG_CONFIG"; then 48954 if test -n "$PKG_CONFIG" && \ 48955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48956 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48957 ac_status=$? 48958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48959 test $ac_status = 0; }; then 48960 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 48961 else 48962 pkg_failed=yes 48963 fi 48964 else 48965 pkg_failed=untried 48966 fi 48967 48968 48969 48970 if test $pkg_failed = yes; then 48971 48972 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48973 _pkg_short_errors_supported=yes 48974 else 48975 _pkg_short_errors_supported=no 48976 fi 48977 if test $_pkg_short_errors_supported = yes; then 48978 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 48979 else 48980 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 48981 fi 48982 # Put the nasty error message in config.log where it belongs 48983 echo "$LCMS_PKG_ERRORS" >&5 48984 48985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48986 $as_echo "no" >&6; } 48987 LCMS_FOUND=no 48988 elif test $pkg_failed = untried; then 48989 LCMS_FOUND=no 48990 else 48991 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 48992 LCMS_LIBS=$pkg_cv_LCMS_LIBS 48993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48994 $as_echo "yes" >&6; } 48995 LCMS_FOUND=yes 48996 fi 48997 if test "x${LCMS_FOUND}" = "xyes"; then 48998 USE_EXTERNAL_LCMS=true 48999 else 49000 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 49001 fi 49002 else 49003 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 49004 fi 49005 49006 49007 49008 ############################################################################### 49009 # 49010 # Check for the png library 49011 # 49012 49013 49014 # Check whether --with-libpng was given. 49015 if test "${with_libpng+set}" = set; then : 49016 withval=$with_libpng; 49017 fi 49018 49019 49020 49021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 49022 $as_echo_n "checking for which libpng to use... " >&6; } 49023 49024 # default is bundled 49025 DEFAULT_LIBPNG=bundled 49026 49027 # 49028 # if user didn't specify, use DEFAULT_LIBPNG 49029 # 49030 if test "x${with_libpng}" = "x"; then 49031 with_libpng=${DEFAULT_LIBPNG} 49032 fi 49033 49034 if test "x${with_libpng}" = "xbundled"; then 49035 USE_EXTERNAL_LIBPNG=false 49036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49037 $as_echo "bundled" >&6; } 49038 elif test "x${with_libpng}" = "xsystem"; then 49039 49040 pkg_failed=no 49041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 49042 $as_echo_n "checking for PNG... " >&6; } 49043 49044 if test -n "$PNG_CFLAGS"; then 49045 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 49046 elif test -n "$PKG_CONFIG"; then 49047 if test -n "$PKG_CONFIG" && \ 49048 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49049 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49050 ac_status=$? 49051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49052 test $ac_status = 0; }; then 49053 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 49054 else 49055 pkg_failed=yes 49056 fi 49057 else 49058 pkg_failed=untried 49059 fi 49060 if test -n "$PNG_LIBS"; then 49061 pkg_cv_PNG_LIBS="$PNG_LIBS" 49062 elif test -n "$PKG_CONFIG"; then 49063 if test -n "$PKG_CONFIG" && \ 49064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 49065 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 49066 ac_status=$? 49067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49068 test $ac_status = 0; }; then 49069 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 49070 else 49071 pkg_failed=yes 49072 fi 49073 else 49074 pkg_failed=untried 49075 fi 49076 49077 49078 49079 if test $pkg_failed = yes; then 49080 49081 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49082 _pkg_short_errors_supported=yes 49083 else 49084 _pkg_short_errors_supported=no 49085 fi 49086 if test $_pkg_short_errors_supported = yes; then 49087 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 49088 else 49089 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 49090 fi 49091 # Put the nasty error message in config.log where it belongs 49092 echo "$PNG_PKG_ERRORS" >&5 49093 49094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49095 $as_echo "no" >&6; } 49096 LIBPNG_FOUND=no 49097 elif test $pkg_failed = untried; then 49098 LIBPNG_FOUND=no 49099 else 49100 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 49101 PNG_LIBS=$pkg_cv_PNG_LIBS 49102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49103 $as_echo "yes" >&6; } 49104 LIBPNG_FOUND=yes 49105 fi 49106 if test "x${LIBPNG_FOUND}" = "xyes"; then 49107 USE_EXTERNAL_LIBPNG=true 49108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49109 $as_echo "system" >&6; } 49110 else 49111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49112 $as_echo "system not found" >&6; } 49113 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 49114 fi 49115 else 49116 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 49117 fi 49118 49119 49120 ############################################################################### 49121 # 49122 # Check for the zlib library 49123 # 49124 49125 49126 # Check whether --with-zlib was given. 49127 if test "${with_zlib+set}" = set; then : 49128 withval=$with_zlib; 49129 fi 49130 49131 49132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 49133 $as_echo_n "checking for compress in -lz... " >&6; } 49134 if ${ac_cv_lib_z_compress+:} false; then : 49135 $as_echo_n "(cached) " >&6 49136 else 49137 ac_check_lib_save_LIBS=$LIBS 49138 LIBS="-lz $LIBS" 49139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49140 /* end confdefs.h. */ 49141 49142 /* Override any GCC internal prototype to avoid an error. 49143 Use char because int might match the return type of a GCC 49144 builtin and then its argument prototype would still apply. */ 49145 #ifdef __cplusplus 49146 extern "C" 49147 #endif 49148 char compress (); 49149 int 49150 main () 49151 { 49152 return compress (); 49153 ; 49154 return 0; 49155 } 49156 _ACEOF 49157 if ac_fn_cxx_try_link "$LINENO"; then : 49158 ac_cv_lib_z_compress=yes 49159 else 49160 ac_cv_lib_z_compress=no 49161 fi 49162 rm -f core conftest.err conftest.$ac_objext \ 49163 conftest$ac_exeext conftest.$ac_ext 49164 LIBS=$ac_check_lib_save_LIBS 49165 fi 49166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 49167 $as_echo "$ac_cv_lib_z_compress" >&6; } 49168 if test "x$ac_cv_lib_z_compress" = xyes; then : 49169 ZLIB_FOUND=yes 49170 else 49171 ZLIB_FOUND=no 49172 fi 49173 49174 49175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 49176 $as_echo_n "checking for which zlib to use... " >&6; } 49177 49178 DEFAULT_ZLIB=bundled 49179 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 49180 # 49181 # On macosx default is system...on others default is 49182 # 49183 DEFAULT_ZLIB=system 49184 fi 49185 49186 if test "x${ZLIB_FOUND}" != "xyes"; then 49187 # 49188 # If we don't find any system...set default to bundled 49189 # 49190 DEFAULT_ZLIB=bundled 49191 fi 49192 49193 # 49194 # If user didn't specify, use DEFAULT_ZLIB 49195 # 49196 if test "x${with_zlib}" = "x"; then 49197 with_zlib=${DEFAULT_ZLIB} 49198 fi 49199 49200 if test "x${with_zlib}" = "xbundled"; then 49201 USE_EXTERNAL_LIBZ=false 49202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 49203 $as_echo "bundled" >&6; } 49204 elif test "x${with_zlib}" = "xsystem"; then 49205 if test "x${ZLIB_FOUND}" = "xyes"; then 49206 USE_EXTERNAL_LIBZ=true 49207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 49208 $as_echo "system" >&6; } 49209 else 49210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 49211 $as_echo "system not found" >&6; } 49212 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 49213 fi 49214 else 49215 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 49216 fi 49217 49218 49219 49220 ############################################################################### 49221 LIBZIP_CAN_USE_MMAP=true 49222 49223 49224 49225 ############################################################################### 49226 # 49227 # Check if altzone exists in time.h 49228 # 49229 49230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49231 /* end confdefs.h. */ 49232 #include <time.h> 49233 int 49234 main () 49235 { 49236 return (int)altzone; 49237 ; 49238 return 0; 49239 } 49240 _ACEOF 49241 if ac_fn_cxx_try_link "$LINENO"; then : 49242 has_altzone=yes 49243 else 49244 has_altzone=no 49245 fi 49246 rm -f core conftest.err conftest.$ac_objext \ 49247 conftest$ac_exeext conftest.$ac_ext 49248 if test "x$has_altzone" = xyes; then 49249 49250 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 49251 49252 fi 49253 49254 ############################################################################### 49255 # 49256 # Check the maths library 49257 # 49258 49259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 49260 $as_echo_n "checking for cos in -lm... " >&6; } 49261 if ${ac_cv_lib_m_cos+:} false; then : 49262 $as_echo_n "(cached) " >&6 49263 else 49264 ac_check_lib_save_LIBS=$LIBS 49265 LIBS="-lm $LIBS" 49266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49267 /* end confdefs.h. */ 49268 49269 /* Override any GCC internal prototype to avoid an error. 49270 Use char because int might match the return type of a GCC 49271 builtin and then its argument prototype would still apply. */ 49272 #ifdef __cplusplus 49273 extern "C" 49274 #endif 49275 char cos (); 49276 int 49277 main () 49278 { 49279 return cos (); 49280 ; 49281 return 0; 49282 } 49283 _ACEOF 49284 if ac_fn_cxx_try_link "$LINENO"; then : 49285 ac_cv_lib_m_cos=yes 49286 else 49287 ac_cv_lib_m_cos=no 49288 fi 49289 rm -f core conftest.err conftest.$ac_objext \ 49290 conftest$ac_exeext conftest.$ac_ext 49291 LIBS=$ac_check_lib_save_LIBS 49292 fi 49293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 49294 $as_echo "$ac_cv_lib_m_cos" >&6; } 49295 if test "x$ac_cv_lib_m_cos" = xyes; then : 49296 cat >>confdefs.h <<_ACEOF 49297 #define HAVE_LIBM 1 49298 _ACEOF 49299 49300 LIBS="-lm $LIBS" 49301 49302 else 49303 49304 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 49305 $as_echo "$as_me: Maths library was not found" >&6;} 49306 49307 49308 fi 49309 49310 49311 49312 ############################################################################### 49313 # 49314 # Check for libdl.so 49315 49316 save_LIBS="$LIBS" 49317 LIBS="" 49318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 49319 $as_echo_n "checking for dlopen in -ldl... " >&6; } 49320 if ${ac_cv_lib_dl_dlopen+:} false; then : 49321 $as_echo_n "(cached) " >&6 49322 else 49323 ac_check_lib_save_LIBS=$LIBS 49324 LIBS="-ldl $LIBS" 49325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49326 /* end confdefs.h. */ 49327 49328 /* Override any GCC internal prototype to avoid an error. 49329 Use char because int might match the return type of a GCC 49330 builtin and then its argument prototype would still apply. */ 49331 #ifdef __cplusplus 49332 extern "C" 49333 #endif 49334 char dlopen (); 49335 int 49336 main () 49337 { 49338 return dlopen (); 49339 ; 49340 return 0; 49341 } 49342 _ACEOF 49343 if ac_fn_cxx_try_link "$LINENO"; then : 49344 ac_cv_lib_dl_dlopen=yes 49345 else 49346 ac_cv_lib_dl_dlopen=no 49347 fi 49348 rm -f core conftest.err conftest.$ac_objext \ 49349 conftest$ac_exeext conftest.$ac_ext 49350 LIBS=$ac_check_lib_save_LIBS 49351 fi 49352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49353 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49354 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49355 cat >>confdefs.h <<_ACEOF 49356 #define HAVE_LIBDL 1 49357 _ACEOF 49358 49359 LIBS="-ldl $LIBS" 49360 49361 fi 49362 49363 LIBDL="$LIBS" 49364 49365 LIBS="$save_LIBS" 49366 49367 49368 ############################################################################### 49369 # 49370 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49371 # dynamic build is configured on command line. 49372 # 49373 49374 # Check whether --with-stdc++lib was given. 49375 if test "${with_stdc__lib+set}" = set; then : 49376 withval=$with_stdc__lib; 49377 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49378 && test "x$with_stdc__lib" != xdefault; then 49379 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49380 fi 49381 49382 else 49383 with_stdc__lib=default 49384 49385 fi 49386 49387 49388 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49389 # Test if -lstdc++ works. 49390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49391 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49392 ac_ext=cpp 49393 ac_cpp='$CXXCPP $CPPFLAGS' 49394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49397 49398 OLD_CXXFLAGS="$CXXFLAGS" 49399 CXXFLAGS="$CXXFLAGS -lstdc++" 49400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49401 /* end confdefs.h. */ 49402 49403 int 49404 main () 49405 { 49406 return 0; 49407 ; 49408 return 0; 49409 } 49410 _ACEOF 49411 if ac_fn_cxx_try_link "$LINENO"; then : 49412 has_dynamic_libstdcxx=yes 49413 else 49414 has_dynamic_libstdcxx=no 49415 fi 49416 rm -f core conftest.err conftest.$ac_objext \ 49417 conftest$ac_exeext conftest.$ac_ext 49418 CXXFLAGS="$OLD_CXXFLAGS" 49419 ac_ext=cpp 49420 ac_cpp='$CXXCPP $CPPFLAGS' 49421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49424 49425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49426 $as_echo "$has_dynamic_libstdcxx" >&6; } 49427 49428 # Test if stdc++ can be linked statically. 49429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49430 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49431 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49432 ac_ext=cpp 49433 ac_cpp='$CXXCPP $CPPFLAGS' 49434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49437 49438 OLD_LIBS="$LIBS" 49439 OLD_CXX="$CXX" 49440 LIBS="$STATIC_STDCXX_FLAGS" 49441 CXX="$CC" 49442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49443 /* end confdefs.h. */ 49444 49445 int 49446 main () 49447 { 49448 return 0; 49449 ; 49450 return 0; 49451 } 49452 _ACEOF 49453 if ac_fn_cxx_try_link "$LINENO"; then : 49454 has_static_libstdcxx=yes 49455 else 49456 has_static_libstdcxx=no 49457 fi 49458 rm -f core conftest.err conftest.$ac_objext \ 49459 conftest$ac_exeext conftest.$ac_ext 49460 LIBS="$OLD_LIBS" 49461 CXX="$OLD_CXX" 49462 ac_ext=cpp 49463 ac_cpp='$CXXCPP $CPPFLAGS' 49464 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49465 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49466 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49467 49468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49469 $as_echo "$has_static_libstdcxx" >&6; } 49470 49471 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49472 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49473 fi 49474 49475 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49476 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49477 fi 49478 49479 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49480 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49481 fi 49482 49483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49484 $as_echo_n "checking how to link with libstdc++... " >&6; } 49485 # If dynamic was requested, it's available since it would fail above otherwise. 49486 # If dynamic wasn't requested, go with static unless it isn't available. 49487 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49488 LIBCXX="$LIBCXX -lstdc++" 49489 LDCXX="$CXX" 49490 STATIC_CXX_SETTING="STATIC_CXX=false" 49491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49492 $as_echo "dynamic" >&6; } 49493 else 49494 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49495 LDCXX="$CC" 49496 STATIC_CXX_SETTING="STATIC_CXX=true" 49497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49498 $as_echo "static" >&6; } 49499 fi 49500 fi 49501 49502 49503 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49504 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49505 49506 pkg_failed=no 49507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49508 $as_echo_n "checking for LIBFFI... " >&6; } 49509 49510 if test -n "$LIBFFI_CFLAGS"; then 49511 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49512 elif test -n "$PKG_CONFIG"; then 49513 if test -n "$PKG_CONFIG" && \ 49514 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49515 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49516 ac_status=$? 49517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49518 test $ac_status = 0; }; then 49519 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49520 else 49521 pkg_failed=yes 49522 fi 49523 else 49524 pkg_failed=untried 49525 fi 49526 if test -n "$LIBFFI_LIBS"; then 49527 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49528 elif test -n "$PKG_CONFIG"; then 49529 if test -n "$PKG_CONFIG" && \ 49530 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49531 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49532 ac_status=$? 49533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49534 test $ac_status = 0; }; then 49535 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49536 else 49537 pkg_failed=yes 49538 fi 49539 else 49540 pkg_failed=untried 49541 fi 49542 49543 49544 49545 if test $pkg_failed = yes; then 49546 49547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49548 _pkg_short_errors_supported=yes 49549 else 49550 _pkg_short_errors_supported=no 49551 fi 49552 if test $_pkg_short_errors_supported = yes; then 49553 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49554 else 49555 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49556 fi 49557 # Put the nasty error message in config.log where it belongs 49558 echo "$LIBFFI_PKG_ERRORS" >&5 49559 49560 as_fn_error $? "Package requirements (libffi) were not met: 49561 49562 $LIBFFI_PKG_ERRORS 49563 49564 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49565 installed software in a non-standard prefix. 49566 49567 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49568 and LIBFFI_LIBS to avoid the need to call pkg-config. 49569 See the pkg-config man page for more details. 49570 " "$LINENO" 5 49571 elif test $pkg_failed = untried; then 49572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49574 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49575 is in your PATH or set the PKG_CONFIG environment variable to the full 49576 path to pkg-config. 49577 49578 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49579 and LIBFFI_LIBS to avoid the need to call pkg-config. 49580 See the pkg-config man page for more details. 49581 49582 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49583 See \`config.log' for more details" "$LINENO" 5; } 49584 else 49585 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49586 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49588 $as_echo "yes" >&6; } 49589 : 49590 fi 49591 49592 fi 49593 49594 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49595 # Extract the first word of "llvm-config", so it can be a program name with args. 49596 set dummy llvm-config; ac_word=$2 49597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49598 $as_echo_n "checking for $ac_word... " >&6; } 49599 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49600 $as_echo_n "(cached) " >&6 49601 else 49602 if test -n "$LLVM_CONFIG"; then 49603 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49604 else 49605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49606 for as_dir in $PATH 49607 do 49608 IFS=$as_save_IFS 49609 test -z "$as_dir" && as_dir=. 49610 for ac_exec_ext in '' $ac_executable_extensions; do 49611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49612 ac_cv_prog_LLVM_CONFIG="llvm-config" 49613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49614 break 2 49615 fi 49616 done 49617 done 49618 IFS=$as_save_IFS 49619 49620 fi 49621 fi 49622 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49623 if test -n "$LLVM_CONFIG"; then 49624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49625 $as_echo "$LLVM_CONFIG" >&6; } 49626 else 49627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49628 $as_echo "no" >&6; } 49629 fi 49630 49631 49632 49633 if test "x$LLVM_CONFIG" != xllvm-config; then 49634 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49635 fi 49636 49637 llvm_components="jit mcjit engine nativecodegen native" 49638 unset LLVM_CFLAGS 49639 for flag in $("$LLVM_CONFIG" --cxxflags); do 49640 if echo "${flag}" | grep -q '^-[ID]'; then 49641 if test "${flag}" != "-D_DEBUG" ; then 49642 if test "${LLVM_CFLAGS}" != "" ; then 49643 LLVM_CFLAGS="${LLVM_CFLAGS} " 49644 fi 49645 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49646 fi 49647 fi 49648 done 49649 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 49650 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49651 49652 unset LLVM_LDFLAGS 49653 for flag in $("${LLVM_CONFIG}" --ldflags); do 49654 if echo "${flag}" | grep -q '^-L'; then 49655 if test "${LLVM_LDFLAGS}" != ""; then 49656 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49657 fi 49658 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49659 fi 49660 done 49661 49662 unset LLVM_LIBS 49663 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49664 if echo "${flag}" | grep -q '^-l'; then 49665 if test "${LLVM_LIBS}" != ""; then 49666 LLVM_LIBS="${LLVM_LIBS} " 49667 fi 49668 LLVM_LIBS="${LLVM_LIBS}${flag}" 49669 fi 49670 done 49671 49672 49673 49674 49675 fi 49676 49677 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49678 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49679 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49680 fi 49681 49682 # TODO better (platform agnostic) test 49683 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49684 LIBCXX="-lstdc++" 49685 fi 49686 49687 49688 49689 49690 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49691 49692 49693 # Check whether --with-msvcr-dll was given. 49694 if test "${with_msvcr_dll+set}" = set; then : 49695 withval=$with_msvcr_dll; 49696 fi 49697 49698 49699 if test "x$with_msvcr_dll" != x; then 49700 # If given explicitely by user, do not probe. If not present, fail directly. 49701 49702 DLL_NAME="$DLL_NAME" 49703 POSSIBLE_MSVC_DLL="$with_msvcr_dll" 49704 METHOD="--with-msvcr-dll" 49705 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49706 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49707 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49708 49709 # Need to check if the found msvcr is correct architecture 49710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49711 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49712 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49714 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49715 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49716 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49717 CORRECT_MSVCR_ARCH="PE32 executable" 49718 else 49719 CORRECT_MSVCR_ARCH="PE32+ executable" 49720 fi 49721 else 49722 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49723 CORRECT_MSVCR_ARCH=386 49724 else 49725 CORRECT_MSVCR_ARCH=x86-64 49726 fi 49727 fi 49728 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49730 $as_echo "ok" >&6; } 49731 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49733 $as_echo_n "checking for $DLL_NAME... " >&6; } 49734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49735 $as_echo "$MSVC_DLL" >&6; } 49736 else 49737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49738 $as_echo "incorrect, ignoring" >&6; } 49739 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49740 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49741 fi 49742 fi 49743 49744 if test "x$MSVC_DLL" = x; then 49745 as_fn_error $? "Could not find a proper $MSVCR_NAME as specified by --with-msvcr-dll" "$LINENO" 5 49746 fi 49747 else 49748 49749 VAR_NAME="MSVCR_DLL" 49750 DLL_NAME="${MSVCR_NAME}" 49751 MSVC_DLL= 49752 49753 if test "x$MSVC_DLL" = x; then 49754 # Probe: Using well-known location from Visual Studio 10.0 49755 if test "x$VCINSTALLDIR" != x; then 49756 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49757 49758 windows_path="$CYGWIN_VC_INSTALL_DIR" 49759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49760 unix_path=`$CYGPATH -u "$windows_path"` 49761 CYGWIN_VC_INSTALL_DIR="$unix_path" 49762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49764 CYGWIN_VC_INSTALL_DIR="$unix_path" 49765 fi 49766 49767 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49768 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49769 else 49770 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 49771 fi 49772 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 49773 49774 DLL_NAME="$DLL_NAME" 49775 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49776 METHOD="well-known location in VCINSTALLDIR" 49777 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49778 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49779 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49780 49781 # Need to check if the found msvcr is correct architecture 49782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49783 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49784 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49785 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49786 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49787 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49788 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49789 CORRECT_MSVCR_ARCH="PE32 executable" 49790 else 49791 CORRECT_MSVCR_ARCH="PE32+ executable" 49792 fi 49793 else 49794 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49795 CORRECT_MSVCR_ARCH=386 49796 else 49797 CORRECT_MSVCR_ARCH=x86-64 49798 fi 49799 fi 49800 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49802 $as_echo "ok" >&6; } 49803 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49805 $as_echo_n "checking for $DLL_NAME... " >&6; } 49806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49807 $as_echo "$MSVC_DLL" >&6; } 49808 else 49809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49810 $as_echo "incorrect, ignoring" >&6; } 49811 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49812 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49813 fi 49814 fi 49815 49816 fi 49817 fi 49818 49819 if test "x$MSVC_DLL" = x; then 49820 # Probe: Check in the Boot JDK directory. 49821 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 49822 49823 DLL_NAME="$DLL_NAME" 49824 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49825 METHOD="well-known location in Boot JDK" 49826 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49827 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49828 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49829 49830 # Need to check if the found msvcr is correct architecture 49831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49832 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49833 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49835 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49836 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49837 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49838 CORRECT_MSVCR_ARCH="PE32 executable" 49839 else 49840 CORRECT_MSVCR_ARCH="PE32+ executable" 49841 fi 49842 else 49843 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49844 CORRECT_MSVCR_ARCH=386 49845 else 49846 CORRECT_MSVCR_ARCH=x86-64 49847 fi 49848 fi 49849 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49851 $as_echo "ok" >&6; } 49852 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49854 $as_echo_n "checking for $DLL_NAME... " >&6; } 49855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49856 $as_echo "$MSVC_DLL" >&6; } 49857 else 49858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49859 $as_echo "incorrect, ignoring" >&6; } 49860 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49861 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49862 fi 49863 fi 49864 49865 fi 49866 49867 if test "x$MSVC_DLL" = x; then 49868 # Probe: Look in the Windows system32 directory 49869 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49870 49871 windows_path="$CYGWIN_SYSTEMROOT" 49872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49873 unix_path=`$CYGPATH -u "$windows_path"` 49874 CYGWIN_SYSTEMROOT="$unix_path" 49875 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49876 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49877 CYGWIN_SYSTEMROOT="$unix_path" 49878 fi 49879 49880 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 49881 49882 DLL_NAME="$DLL_NAME" 49883 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49884 METHOD="well-known location in SYSTEMROOT" 49885 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49886 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49887 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49888 49889 # Need to check if the found msvcr is correct architecture 49890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49891 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49892 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49894 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49895 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49896 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49897 CORRECT_MSVCR_ARCH="PE32 executable" 49898 else 49899 CORRECT_MSVCR_ARCH="PE32+ executable" 49900 fi 49901 else 49902 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49903 CORRECT_MSVCR_ARCH=386 49904 else 49905 CORRECT_MSVCR_ARCH=x86-64 49906 fi 49907 fi 49908 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49910 $as_echo "ok" >&6; } 49911 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49913 $as_echo_n "checking for $DLL_NAME... " >&6; } 49914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49915 $as_echo "$MSVC_DLL" >&6; } 49916 else 49917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49918 $as_echo "incorrect, ignoring" >&6; } 49919 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49920 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49921 fi 49922 fi 49923 49924 fi 49925 49926 if test "x$MSVC_DLL" = x; then 49927 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 49928 if test "x$VS100COMNTOOLS" != x; then 49929 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 49930 49931 windows_path="$CYGWIN_VS_TOOLS_DIR" 49932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49933 unix_path=`$CYGPATH -u "$windows_path"` 49934 CYGWIN_VS_TOOLS_DIR="$unix_path" 49935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49937 CYGWIN_VS_TOOLS_DIR="$unix_path" 49938 fi 49939 49940 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49941 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49942 | $GREP -i /x64/ | $HEAD --lines 1` 49943 else 49944 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 49945 | $GREP -i /x86/ | $HEAD --lines 1` 49946 fi 49947 49948 DLL_NAME="$DLL_NAME" 49949 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 49950 METHOD="search of VS100COMNTOOLS" 49951 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 49952 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 49953 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 49954 49955 # Need to check if the found msvcr is correct architecture 49956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 49957 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 49958 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 49959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49960 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49961 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49962 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49963 CORRECT_MSVCR_ARCH="PE32 executable" 49964 else 49965 CORRECT_MSVCR_ARCH="PE32+ executable" 49966 fi 49967 else 49968 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49969 CORRECT_MSVCR_ARCH=386 49970 else 49971 CORRECT_MSVCR_ARCH=x86-64 49972 fi 49973 fi 49974 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49976 $as_echo "ok" >&6; } 49977 MSVC_DLL="$POSSIBLE_MSVC_DLL" 49978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 49979 $as_echo_n "checking for $DLL_NAME... " >&6; } 49980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 49981 $as_echo "$MSVC_DLL" >&6; } 49982 else 49983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49984 $as_echo "incorrect, ignoring" >&6; } 49985 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 49986 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 49987 fi 49988 fi 49989 49990 fi 49991 fi 49992 49993 if test "x$MSVC_DLL" = x; then 49994 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49995 # (This was the original behaviour; kept since it might turn something up) 49996 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49997 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49998 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 49999 | $GREP x64 | $HEAD --lines 1` 50000 else 50001 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50002 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50003 if test "x$POSSIBLE_MSVC_DLL" = x; then 50004 # We're grasping at straws now... 50005 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50006 | $HEAD --lines 1` 50007 fi 50008 fi 50009 50010 50011 DLL_NAME="$DLL_NAME" 50012 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50013 METHOD="search of VCINSTALLDIR" 50014 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50015 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50016 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50017 50018 # Need to check if the found msvcr is correct architecture 50019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50020 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50021 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50023 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50024 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50025 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50026 CORRECT_MSVCR_ARCH="PE32 executable" 50027 else 50028 CORRECT_MSVCR_ARCH="PE32+ executable" 50029 fi 50030 else 50031 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50032 CORRECT_MSVCR_ARCH=386 50033 else 50034 CORRECT_MSVCR_ARCH=x86-64 50035 fi 50036 fi 50037 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50039 $as_echo "ok" >&6; } 50040 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50042 $as_echo_n "checking for $DLL_NAME... " >&6; } 50043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50044 $as_echo "$MSVC_DLL" >&6; } 50045 else 50046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50047 $as_echo "incorrect, ignoring" >&6; } 50048 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50049 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50050 fi 50051 fi 50052 50053 fi 50054 fi 50055 50056 if test "x$MSVC_DLL" = x; then 50057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50058 $as_echo_n "checking for $DLL_NAME... " >&6; } 50059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50060 $as_echo "no" >&6; } 50061 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50062 fi 50063 50064 MSVCR_DLL=$MSVC_DLL 50065 50066 # Only process if variable expands to non-empty 50067 50068 if test "x$MSVCR_DLL" != x; then 50069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50070 50071 # Input might be given as Windows format, start by converting to 50072 # unix format. 50073 path="$MSVCR_DLL" 50074 new_path=`$CYGPATH -u "$path"` 50075 50076 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50077 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50078 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50079 # "foo.exe" is OK but "foo" is an error. 50080 # 50081 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50082 # It is also a way to make sure we got the proper file name for the real test later on. 50083 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50084 if test "x$test_shortpath" = x; then 50085 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50086 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50087 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 50088 fi 50089 50090 # Call helper function which possibly converts this using DOS-style short mode. 50091 # If so, the updated path is stored in $new_path. 50092 50093 input_path="$new_path" 50094 # Check if we need to convert this using DOS-style short mode. If the path 50095 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50096 # take no chances and rewrite it. 50097 # Note: m4 eats our [], so we need to use [ and ] instead. 50098 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50099 if test "x$has_forbidden_chars" != x; then 50100 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50101 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50102 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50103 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50104 # Going to short mode and back again did indeed matter. Since short mode is 50105 # case insensitive, let's make it lowercase to improve readability. 50106 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50107 # Now convert it back to Unix-stile (cygpath) 50108 input_path=`$CYGPATH -u "$shortmode_path"` 50109 new_path="$input_path" 50110 fi 50111 fi 50112 50113 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50114 if test "x$test_cygdrive_prefix" = x; then 50115 # As a simple fix, exclude /usr/bin since it's not a real path. 50116 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50117 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50118 # a path prefixed by /cygdrive for fixpath to work. 50119 new_path="$CYGWIN_ROOT_PATH$input_path" 50120 fi 50121 fi 50122 50123 50124 if test "x$path" != "x$new_path"; then 50125 MSVCR_DLL="$new_path" 50126 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50127 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50128 fi 50129 50130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50131 50132 path="$MSVCR_DLL" 50133 has_colon=`$ECHO $path | $GREP ^.:` 50134 new_path="$path" 50135 if test "x$has_colon" = x; then 50136 # Not in mixed or Windows style, start by that. 50137 new_path=`cmd //c echo $path` 50138 fi 50139 50140 50141 input_path="$new_path" 50142 # Check if we need to convert this using DOS-style short mode. If the path 50143 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50144 # take no chances and rewrite it. 50145 # Note: m4 eats our [], so we need to use [ and ] instead. 50146 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50147 if test "x$has_forbidden_chars" != x; then 50148 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50149 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50150 fi 50151 50152 50153 windows_path="$new_path" 50154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50155 unix_path=`$CYGPATH -u "$windows_path"` 50156 new_path="$unix_path" 50157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50158 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50159 new_path="$unix_path" 50160 fi 50161 50162 if test "x$path" != "x$new_path"; then 50163 MSVCR_DLL="$new_path" 50164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 50165 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 50166 fi 50167 50168 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50169 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50170 50171 else 50172 # We're on a unix platform. Hooray! :) 50173 path="$MSVCR_DLL" 50174 has_space=`$ECHO "$path" | $GREP " "` 50175 if test "x$has_space" != x; then 50176 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 50177 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 50178 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50179 fi 50180 50181 # Use eval to expand a potential ~ 50182 eval path="$path" 50183 if test ! -f "$path" && test ! -d "$path"; then 50184 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50185 fi 50186 50187 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 50188 fi 50189 fi 50190 50191 MSVCR_DLL=$MSVCR_DLL 50192 50193 50194 fi 50195 50196 50197 # Check whether --with-msvcp-dll was given. 50198 if test "${with_msvcp_dll+set}" = set; then : 50199 withval=$with_msvcp_dll; 50200 fi 50201 50202 50203 if test "x$MSVCP_NAME" != "x"; then 50204 if test "x$with_msvcp_dll" != x; then 50205 # If given explicitely by user, do not probe. If not present, fail directly. 50206 50207 DLL_NAME="$DLL_NAME" 50208 POSSIBLE_MSVC_DLL="$with_msvcp_dll" 50209 METHOD="--with-msvcp-dll" 50210 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50211 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50212 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50213 50214 # Need to check if the found msvcr is correct architecture 50215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50216 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50217 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50219 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50220 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50221 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50222 CORRECT_MSVCR_ARCH="PE32 executable" 50223 else 50224 CORRECT_MSVCR_ARCH="PE32+ executable" 50225 fi 50226 else 50227 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50228 CORRECT_MSVCR_ARCH=386 50229 else 50230 CORRECT_MSVCR_ARCH=x86-64 50231 fi 50232 fi 50233 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50235 $as_echo "ok" >&6; } 50236 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50238 $as_echo_n "checking for $DLL_NAME... " >&6; } 50239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50240 $as_echo "$MSVC_DLL" >&6; } 50241 else 50242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50243 $as_echo "incorrect, ignoring" >&6; } 50244 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50245 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50246 fi 50247 fi 50248 50249 if test "x$MSVC_DLL" = x; then 50250 as_fn_error $? "Could not find a proper $MSVCP_NAME as specified by --with-msvcp-dll" "$LINENO" 5 50251 fi 50252 else 50253 50254 VAR_NAME="MSVCP_DLL" 50255 DLL_NAME="${MSVCP_NAME}" 50256 MSVC_DLL= 50257 50258 if test "x$MSVC_DLL" = x; then 50259 # Probe: Using well-known location from Visual Studio 10.0 50260 if test "x$VCINSTALLDIR" != x; then 50261 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 50262 50263 windows_path="$CYGWIN_VC_INSTALL_DIR" 50264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50265 unix_path=`$CYGPATH -u "$windows_path"` 50266 CYGWIN_VC_INSTALL_DIR="$unix_path" 50267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50269 CYGWIN_VC_INSTALL_DIR="$unix_path" 50270 fi 50271 50272 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50273 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50274 else 50275 POSSIBLE_MSVC_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC${VS_VERSION_INTERNAL}.CRT/$DLL_NAME" 50276 fi 50277 $ECHO "POSSIBLE_MSVC_DLL $POSSIBLEMSVC_DLL" 50278 50279 DLL_NAME="$DLL_NAME" 50280 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50281 METHOD="well-known location in VCINSTALLDIR" 50282 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50283 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50284 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50285 50286 # Need to check if the found msvcr is correct architecture 50287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50288 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50289 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50290 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50291 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50292 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50293 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50294 CORRECT_MSVCR_ARCH="PE32 executable" 50295 else 50296 CORRECT_MSVCR_ARCH="PE32+ executable" 50297 fi 50298 else 50299 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50300 CORRECT_MSVCR_ARCH=386 50301 else 50302 CORRECT_MSVCR_ARCH=x86-64 50303 fi 50304 fi 50305 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50307 $as_echo "ok" >&6; } 50308 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50310 $as_echo_n "checking for $DLL_NAME... " >&6; } 50311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50312 $as_echo "$MSVC_DLL" >&6; } 50313 else 50314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50315 $as_echo "incorrect, ignoring" >&6; } 50316 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50317 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50318 fi 50319 fi 50320 50321 fi 50322 fi 50323 50324 if test "x$MSVC_DLL" = x; then 50325 # Probe: Check in the Boot JDK directory. 50326 POSSIBLE_MSVC_DLL="$BOOT_JDK/bin/$DLL_NAME" 50327 50328 DLL_NAME="$DLL_NAME" 50329 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50330 METHOD="well-known location in Boot JDK" 50331 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50332 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50333 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50334 50335 # Need to check if the found msvcr is correct architecture 50336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50337 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50338 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50340 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50341 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50342 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50343 CORRECT_MSVCR_ARCH="PE32 executable" 50344 else 50345 CORRECT_MSVCR_ARCH="PE32+ executable" 50346 fi 50347 else 50348 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50349 CORRECT_MSVCR_ARCH=386 50350 else 50351 CORRECT_MSVCR_ARCH=x86-64 50352 fi 50353 fi 50354 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50356 $as_echo "ok" >&6; } 50357 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50359 $as_echo_n "checking for $DLL_NAME... " >&6; } 50360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50361 $as_echo "$MSVC_DLL" >&6; } 50362 else 50363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50364 $as_echo "incorrect, ignoring" >&6; } 50365 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50366 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50367 fi 50368 fi 50369 50370 fi 50371 50372 if test "x$MSVC_DLL" = x; then 50373 # Probe: Look in the Windows system32 directory 50374 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 50375 50376 windows_path="$CYGWIN_SYSTEMROOT" 50377 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50378 unix_path=`$CYGPATH -u "$windows_path"` 50379 CYGWIN_SYSTEMROOT="$unix_path" 50380 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50381 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50382 CYGWIN_SYSTEMROOT="$unix_path" 50383 fi 50384 50385 POSSIBLE_MSVC_DLL="$CYGWIN_SYSTEMROOT/system32/$DLL_NAME" 50386 50387 DLL_NAME="$DLL_NAME" 50388 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50389 METHOD="well-known location in SYSTEMROOT" 50390 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50391 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50392 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50393 50394 # Need to check if the found msvcr is correct architecture 50395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50396 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50397 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50399 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50400 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50401 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50402 CORRECT_MSVCR_ARCH="PE32 executable" 50403 else 50404 CORRECT_MSVCR_ARCH="PE32+ executable" 50405 fi 50406 else 50407 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50408 CORRECT_MSVCR_ARCH=386 50409 else 50410 CORRECT_MSVCR_ARCH=x86-64 50411 fi 50412 fi 50413 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50415 $as_echo "ok" >&6; } 50416 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50418 $as_echo_n "checking for $DLL_NAME... " >&6; } 50419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50420 $as_echo "$MSVC_DLL" >&6; } 50421 else 50422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50423 $as_echo "incorrect, ignoring" >&6; } 50424 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50425 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50426 fi 50427 fi 50428 50429 fi 50430 50431 if test "x$MSVC_DLL" = x; then 50432 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 50433 if test "x$VS100COMNTOOLS" != x; then 50434 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 50435 50436 windows_path="$CYGWIN_VS_TOOLS_DIR" 50437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50438 unix_path=`$CYGPATH -u "$windows_path"` 50439 CYGWIN_VS_TOOLS_DIR="$unix_path" 50440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50442 CYGWIN_VS_TOOLS_DIR="$unix_path" 50443 fi 50444 50445 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50446 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50447 | $GREP -i /x64/ | $HEAD --lines 1` 50448 else 50449 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name $DLL_NAME \ 50450 | $GREP -i /x86/ | $HEAD --lines 1` 50451 fi 50452 50453 DLL_NAME="$DLL_NAME" 50454 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50455 METHOD="search of VS100COMNTOOLS" 50456 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50457 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50458 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50459 50460 # Need to check if the found msvcr is correct architecture 50461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50462 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50463 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50465 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50466 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50467 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50468 CORRECT_MSVCR_ARCH="PE32 executable" 50469 else 50470 CORRECT_MSVCR_ARCH="PE32+ executable" 50471 fi 50472 else 50473 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50474 CORRECT_MSVCR_ARCH=386 50475 else 50476 CORRECT_MSVCR_ARCH=x86-64 50477 fi 50478 fi 50479 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50481 $as_echo "ok" >&6; } 50482 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50484 $as_echo_n "checking for $DLL_NAME... " >&6; } 50485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50486 $as_echo "$MSVC_DLL" >&6; } 50487 else 50488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50489 $as_echo "incorrect, ignoring" >&6; } 50490 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50491 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50492 fi 50493 fi 50494 50495 fi 50496 fi 50497 50498 if test "x$MSVC_DLL" = x; then 50499 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 50500 # (This was the original behaviour; kept since it might turn something up) 50501 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 50502 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 50503 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50504 | $GREP x64 | $HEAD --lines 1` 50505 else 50506 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50507 | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 50508 if test "x$POSSIBLE_MSVC_DLL" = x; then 50509 # We're grasping at straws now... 50510 POSSIBLE_MSVC_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name $DLL_NAME \ 50511 | $HEAD --lines 1` 50512 fi 50513 fi 50514 50515 50516 DLL_NAME="$DLL_NAME" 50517 POSSIBLE_MSVC_DLL="$POSSIBLE_MSVC_DLL" 50518 METHOD="search of VCINSTALLDIR" 50519 if test -n "$POSSIBLE_MSVC_DLL" -a -e "$POSSIBLE_MSVC_DLL"; then 50520 { $as_echo "$as_me:${as_lineno-$LINENO}: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&5 50521 $as_echo "$as_me: Found $DLL_NAME at $POSSIBLE_MSVC_DLL using $METHOD" >&6;} 50522 50523 # Need to check if the found msvcr is correct architecture 50524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found $DLL_NAME architecture" >&5 50525 $as_echo_n "checking found $DLL_NAME architecture... " >&6; } 50526 MSVC_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVC_DLL"` 50527 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50528 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 50529 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 50530 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50531 CORRECT_MSVCR_ARCH="PE32 executable" 50532 else 50533 CORRECT_MSVCR_ARCH="PE32+ executable" 50534 fi 50535 else 50536 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 50537 CORRECT_MSVCR_ARCH=386 50538 else 50539 CORRECT_MSVCR_ARCH=x86-64 50540 fi 50541 fi 50542 if $ECHO "$MSVC_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 50543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 50544 $as_echo "ok" >&6; } 50545 MSVC_DLL="$POSSIBLE_MSVC_DLL" 50546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50547 $as_echo_n "checking for $DLL_NAME... " >&6; } 50548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVC_DLL" >&5 50549 $as_echo "$MSVC_DLL" >&6; } 50550 else 50551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 50552 $as_echo "incorrect, ignoring" >&6; } 50553 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&5 50554 $as_echo "$as_me: The file type of the located $DLL_NAME is $MSVC_DLL_FILETYPE" >&6;} 50555 fi 50556 fi 50557 50558 fi 50559 fi 50560 50561 if test "x$MSVC_DLL" = x; then 50562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $DLL_NAME" >&5 50563 $as_echo_n "checking for $DLL_NAME... " >&6; } 50564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50565 $as_echo "no" >&6; } 50566 as_fn_error $? "Could not find $DLL_NAME. Please specify using --with-msvcr-dll." "$LINENO" 5 50567 fi 50568 50569 MSVCP_DLL=$MSVC_DLL 50570 50571 # Only process if variable expands to non-empty 50572 50573 if test "x$MSVCP_DLL" != x; then 50574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50575 50576 # Input might be given as Windows format, start by converting to 50577 # unix format. 50578 path="$MSVCP_DLL" 50579 new_path=`$CYGPATH -u "$path"` 50580 50581 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 50582 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 50583 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 50584 # "foo.exe" is OK but "foo" is an error. 50585 # 50586 # This test is therefore slightly more accurate than "test -f" to check for file precense. 50587 # It is also a way to make sure we got the proper file name for the real test later on. 50588 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 50589 if test "x$test_shortpath" = x; then 50590 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50591 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50592 as_fn_error $? "Cannot locate the the path of MSVCP_DLL" "$LINENO" 5 50593 fi 50594 50595 # Call helper function which possibly converts this using DOS-style short mode. 50596 # If so, the updated path is stored in $new_path. 50597 50598 input_path="$new_path" 50599 # Check if we need to convert this using DOS-style short mode. If the path 50600 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50601 # take no chances and rewrite it. 50602 # Note: m4 eats our [], so we need to use [ and ] instead. 50603 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 50604 if test "x$has_forbidden_chars" != x; then 50605 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50606 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 50607 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 50608 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 50609 # Going to short mode and back again did indeed matter. Since short mode is 50610 # case insensitive, let's make it lowercase to improve readability. 50611 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50612 # Now convert it back to Unix-stile (cygpath) 50613 input_path=`$CYGPATH -u "$shortmode_path"` 50614 new_path="$input_path" 50615 fi 50616 fi 50617 50618 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 50619 if test "x$test_cygdrive_prefix" = x; then 50620 # As a simple fix, exclude /usr/bin since it's not a real path. 50621 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 50622 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 50623 # a path prefixed by /cygdrive for fixpath to work. 50624 new_path="$CYGWIN_ROOT_PATH$input_path" 50625 fi 50626 fi 50627 50628 50629 if test "x$path" != "x$new_path"; then 50630 MSVCP_DLL="$new_path" 50631 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50632 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50633 fi 50634 50635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50636 50637 path="$MSVCP_DLL" 50638 has_colon=`$ECHO $path | $GREP ^.:` 50639 new_path="$path" 50640 if test "x$has_colon" = x; then 50641 # Not in mixed or Windows style, start by that. 50642 new_path=`cmd //c echo $path` 50643 fi 50644 50645 50646 input_path="$new_path" 50647 # Check if we need to convert this using DOS-style short mode. If the path 50648 # contains just simple characters, use it. Otherwise (spaces, weird characters), 50649 # take no chances and rewrite it. 50650 # Note: m4 eats our [], so we need to use [ and ] instead. 50651 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 50652 if test "x$has_forbidden_chars" != x; then 50653 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 50654 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 50655 fi 50656 50657 50658 windows_path="$new_path" 50659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50660 unix_path=`$CYGPATH -u "$windows_path"` 50661 new_path="$unix_path" 50662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50663 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 50664 new_path="$unix_path" 50665 fi 50666 50667 if test "x$path" != "x$new_path"; then 50668 MSVCP_DLL="$new_path" 50669 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCP_DLL to \"$new_path\"" >&5 50670 $as_echo "$as_me: Rewriting MSVCP_DLL to \"$new_path\"" >&6;} 50671 fi 50672 50673 # Save the first 10 bytes of this path to the storage, so fixpath can work. 50674 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 50675 50676 else 50677 # We're on a unix platform. Hooray! :) 50678 path="$MSVCP_DLL" 50679 has_space=`$ECHO "$path" | $GREP " "` 50680 if test "x$has_space" != x; then 50681 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&5 50682 $as_echo "$as_me: The path of MSVCP_DLL, which resolves as \"$path\", is invalid." >&6;} 50683 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 50684 fi 50685 50686 # Use eval to expand a potential ~ 50687 eval path="$path" 50688 if test ! -f "$path" && test ! -d "$path"; then 50689 as_fn_error $? "The path of MSVCP_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 50690 fi 50691 50692 MSVCP_DLL="`cd "$path"; $THEPWDCMD -L`" 50693 fi 50694 fi 50695 50696 MSVCP_DLL=$MSVCP_DLL 50697 50698 50699 fi 50700 fi 50701 50702 50703 50704 # Check whether --with-dxsdk was given. 50705 if test "${with_dxsdk+set}" = set; then : 50706 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 50707 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 50708 fi 50709 50710 50711 50712 50713 # Check whether --with-dxsdk-lib was given. 50714 if test "${with_dxsdk_lib+set}" = set; then : 50715 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 50716 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 50717 fi 50718 50719 50720 50721 50722 # Check whether --with-dxsdk-include was given. 50723 if test "${with_dxsdk_include+set}" = set; then : 50724 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 50725 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 50726 fi 50727 50728 50729 fi 50730 50731 50732 ############################################################################### 50733 # 50734 # We need to do some final tweaking, when everything else is done. 50735 # 50736 ############################################################################### 50737 50738 50739 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 50740 50741 50742 # The name of the Service Agent jar. 50743 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 50744 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 50745 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 50746 fi 50747 50748 50749 50750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 50751 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 50752 50753 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 50754 ENABLE_INTREE_EC=yes 50755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50756 $as_echo "yes" >&6; } 50757 else 50758 ENABLE_INTREE_EC=no 50759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50760 $as_echo "no" >&6; } 50761 fi 50762 50763 50764 50765 50766 ############################################################################### 50767 # 50768 # Configure parts of the build that only affect the build performance, 50769 # not the result. 50770 # 50771 ############################################################################### 50772 50773 50774 # How many cores do we have on this build system? 50775 50776 # Check whether --with-num-cores was given. 50777 if test "${with_num_cores+set}" = set; then : 50778 withval=$with_num_cores; 50779 fi 50780 50781 if test "x$with_num_cores" = x; then 50782 # The number of cores were not specified, try to probe them. 50783 50784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 50785 $as_echo_n "checking for number of cores... " >&6; } 50786 NUM_CORES=1 50787 FOUND_CORES=no 50788 50789 if test -f /proc/cpuinfo; then 50790 # Looks like a Linux (or cygwin) system 50791 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 50792 FOUND_CORES=yes 50793 elif test -x /usr/sbin/psrinfo; then 50794 # Looks like a Solaris system 50795 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 50796 FOUND_CORES=yes 50797 elif test -x /usr/sbin/system_profiler; then 50798 # Looks like a MacOSX system 50799 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 50800 FOUND_CORES=yes 50801 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 50802 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 50803 FOUND_CORES=yes 50804 elif test -n "$NUMBER_OF_PROCESSORS"; then 50805 # On windows, look in the env 50806 NUM_CORES=$NUMBER_OF_PROCESSORS 50807 FOUND_CORES=yes 50808 fi 50809 50810 if test "x$FOUND_CORES" = xyes; then 50811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 50812 $as_echo "$NUM_CORES" >&6; } 50813 else 50814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 50815 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 50816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 50817 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 50818 fi 50819 50820 else 50821 NUM_CORES=$with_num_cores 50822 fi 50823 50824 50825 50826 # How much memory do we have on this build system? 50827 50828 # Check whether --with-memory-size was given. 50829 if test "${with_memory_size+set}" = set; then : 50830 withval=$with_memory_size; 50831 fi 50832 50833 if test "x$with_memory_size" = x; then 50834 # The memory size was not specified, try to probe it. 50835 50836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 50837 $as_echo_n "checking for memory size... " >&6; } 50838 # Default to 1024 MB 50839 MEMORY_SIZE=1024 50840 FOUND_MEM=no 50841 50842 if test -f /proc/meminfo; then 50843 # Looks like a Linux (or cygwin) system 50844 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 50845 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 50846 FOUND_MEM=yes 50847 elif test -x /usr/sbin/prtconf; then 50848 # Looks like a Solaris or AIX system 50849 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 50850 FOUND_MEM=yes 50851 elif test -x /usr/sbin/system_profiler; then 50852 # Looks like a MacOSX system 50853 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 50854 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 50855 FOUND_MEM=yes 50856 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 50857 # Windows, but without cygwin 50858 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 50859 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 50860 FOUND_MEM=yes 50861 fi 50862 50863 if test "x$FOUND_MEM" = xyes; then 50864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 50865 $as_echo "$MEMORY_SIZE MB" >&6; } 50866 else 50867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 50868 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 50869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 50870 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 50871 fi 50872 50873 else 50874 MEMORY_SIZE=$with_memory_size 50875 fi 50876 50877 50878 50879 # Provide a decent default number of parallel jobs for make depending on 50880 # number of cores, amount of memory and machine architecture. 50881 50882 # Check whether --with-jobs was given. 50883 if test "${with_jobs+set}" = set; then : 50884 withval=$with_jobs; 50885 fi 50886 50887 if test "x$with_jobs" = x; then 50888 # Number of jobs was not specified, calculate. 50889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 50890 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 50891 # Approximate memory in GB. 50892 memory_gb=`expr $MEMORY_SIZE / 1024` 50893 # Pick the lowest of memory in gb and number of cores. 50894 if test "$memory_gb" -lt "$NUM_CORES"; then 50895 JOBS="$memory_gb" 50896 else 50897 JOBS="$NUM_CORES" 50898 # On bigger machines, leave some room for other processes to run 50899 if test "$JOBS" -gt "4"; then 50900 JOBS=`expr $JOBS '*' 90 / 100` 50901 fi 50902 fi 50903 # Cap number of jobs to 16 50904 if test "$JOBS" -gt "16"; then 50905 JOBS=16 50906 fi 50907 if test "$JOBS" -eq "0"; then 50908 JOBS=1 50909 fi 50910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 50911 $as_echo "$JOBS" >&6; } 50912 else 50913 JOBS=$with_jobs 50914 fi 50915 50916 50917 50918 # Setup arguments for the boot jdk (after cores and memory have been setup) 50919 50920 ############################################################################## 50921 # 50922 # Specify jvm options for anything that is run with the Boot JDK. 50923 # Not all JVM:s accept the same arguments on the command line. 50924 # 50925 50926 # Check whether --with-boot-jdk-jvmargs was given. 50927 if test "${with_boot_jdk_jvmargs+set}" = set; then : 50928 withval=$with_boot_jdk_jvmargs; 50929 fi 50930 50931 50932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 50933 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 50934 50935 # Disable special log output when a debug build is used as Boot JDK... 50936 50937 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 50938 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 50939 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 50940 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50941 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50942 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50943 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 50944 JVM_ARG_OK=true 50945 else 50946 $ECHO "Arg failed:" >&5 50947 $ECHO "$OUTPUT" >&5 50948 JVM_ARG_OK=false 50949 fi 50950 50951 50952 # Apply user provided options. 50953 50954 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 50955 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 50956 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 50957 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50958 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50959 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50960 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 50961 JVM_ARG_OK=true 50962 else 50963 $ECHO "Arg failed:" >&5 50964 $ECHO "$OUTPUT" >&5 50965 JVM_ARG_OK=false 50966 fi 50967 50968 50969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 50970 $as_echo "$boot_jdk_jvmargs" >&6; } 50971 50972 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 50973 JAVA_FLAGS=$boot_jdk_jvmargs 50974 50975 50976 50977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 50978 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 50979 50980 # Starting amount of heap memory. 50981 50982 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 50983 $ECHO "Command: $JAVA -Xms64M -version" >&5 50984 OUTPUT=`$JAVA -Xms64M -version 2>&1` 50985 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50986 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50987 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50988 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 50989 JVM_ARG_OK=true 50990 else 50991 $ECHO "Arg failed:" >&5 50992 $ECHO "$OUTPUT" >&5 50993 JVM_ARG_OK=false 50994 fi 50995 50996 50997 # Maximum amount of heap memory. 50998 # Maximum stack size. 50999 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 51000 if test "x$BUILD_NUM_BITS" = x32; then 51001 if test "$JVM_MAX_HEAP" -gt "1100"; then 51002 JVM_MAX_HEAP=1100 51003 elif test "$JVM_MAX_HEAP" -lt "512"; then 51004 JVM_MAX_HEAP=512 51005 fi 51006 STACK_SIZE=768 51007 else 51008 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 51009 # pointers are used. Apparently, we need to increase the heap and stack 51010 # space for the jvm. More specifically, when running javac to build huge 51011 # jdk batch 51012 if test "$JVM_MAX_HEAP" -gt "1600"; then 51013 JVM_MAX_HEAP=1600 51014 elif test "$JVM_MAX_HEAP" -lt "512"; then 51015 JVM_MAX_HEAP=512 51016 fi 51017 STACK_SIZE=1536 51018 fi 51019 51020 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 51021 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 51022 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 51023 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51024 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51025 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51026 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 51027 JVM_ARG_OK=true 51028 else 51029 $ECHO "Arg failed:" >&5 51030 $ECHO "$OUTPUT" >&5 51031 JVM_ARG_OK=false 51032 fi 51033 51034 51035 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 51036 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 51037 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 51038 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51039 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51040 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51041 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 51042 JVM_ARG_OK=true 51043 else 51044 $ECHO "Arg failed:" >&5 51045 $ECHO "$OUTPUT" >&5 51046 JVM_ARG_OK=false 51047 fi 51048 51049 51050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 51051 $as_echo "$boot_jdk_jvmargs_big" >&6; } 51052 51053 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 51054 51055 51056 51057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 51058 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 51059 51060 # Use serial gc for small short lived tools if possible 51061 51062 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 51063 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 51064 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 51065 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51066 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51067 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51068 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 51069 JVM_ARG_OK=true 51070 else 51071 $ECHO "Arg failed:" >&5 51072 $ECHO "$OUTPUT" >&5 51073 JVM_ARG_OK=false 51074 fi 51075 51076 51077 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 51078 $ECHO "Command: $JAVA -Xms32M -version" >&5 51079 OUTPUT=`$JAVA -Xms32M -version 2>&1` 51080 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51081 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51082 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51083 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 51084 JVM_ARG_OK=true 51085 else 51086 $ECHO "Arg failed:" >&5 51087 $ECHO "$OUTPUT" >&5 51088 JVM_ARG_OK=false 51089 fi 51090 51091 51092 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 51093 $ECHO "Command: $JAVA -Xmx512M -version" >&5 51094 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 51095 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51096 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51097 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51098 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 51099 JVM_ARG_OK=true 51100 else 51101 $ECHO "Arg failed:" >&5 51102 $ECHO "$OUTPUT" >&5 51103 JVM_ARG_OK=false 51104 fi 51105 51106 51107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 51108 $as_echo "$boot_jdk_jvmargs_small" >&6; } 51109 51110 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 51111 51112 51113 JAVA_TOOL_FLAGS_SMALL="" 51114 for f in $JAVA_FLAGS_SMALL; do 51115 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 51116 done 51117 51118 51119 51120 # Setup smart javac (after cores and memory have been setup) 51121 51122 51123 # Check whether --with-sjavac-server-java was given. 51124 if test "${with_sjavac_server_java+set}" = set; then : 51125 withval=$with_sjavac_server_java; 51126 fi 51127 51128 51129 if test "x$with_sjavac_server_java" != x; then 51130 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 51131 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 51132 if test "x$FOUND_VERSION" = x; then 51133 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 51134 fi 51135 else 51136 SJAVAC_SERVER_JAVA="$JAVA" 51137 fi 51138 51139 51140 if test "$MEMORY_SIZE" -gt "3000"; then 51141 51142 $ECHO "Check if jvm arg is ok: -d64" >&5 51143 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 51144 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 51145 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51146 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51147 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51148 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 51149 JVM_ARG_OK=true 51150 else 51151 $ECHO "Arg failed:" >&5 51152 $ECHO "$OUTPUT" >&5 51153 JVM_ARG_OK=false 51154 fi 51155 51156 if test "$JVM_ARG_OK" = true; then 51157 JVM_64BIT=true 51158 JVM_ARG_OK=false 51159 fi 51160 fi 51161 51162 MX_VALUE=`expr $MEMORY_SIZE / 2` 51163 if test "$JVM_64BIT" = true; then 51164 # Set ms lower than mx since more than one instance of the server might 51165 # get launched at the same time before they figure out which instance won. 51166 MS_VALUE=512 51167 if test "$MX_VALUE" -gt "2048"; then 51168 MX_VALUE=2048 51169 fi 51170 else 51171 MS_VALUE=256 51172 if test "$MX_VALUE" -gt "1500"; then 51173 MX_VALUE=1500 51174 fi 51175 fi 51176 if test "$MX_VALUE" -lt "512"; then 51177 MX_VALUE=512 51178 fi 51179 51180 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 51181 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 51182 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 51183 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 51184 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 51185 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 51186 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 51187 JVM_ARG_OK=true 51188 else 51189 $ECHO "Arg failed:" >&5 51190 $ECHO "$OUTPUT" >&5 51191 JVM_ARG_OK=false 51192 fi 51193 51194 51195 51196 # Check whether --enable-sjavac was given. 51197 if test "${enable_sjavac+set}" = set; then : 51198 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 51199 else 51200 ENABLE_SJAVAC='no' 51201 fi 51202 51203 if test "x$JVM_ARG_OK" = "xfalse"; then 51204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 51205 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 51206 ENABLE_SJAVAC=no; 51207 fi 51208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 51209 $as_echo_n "checking whether to use sjavac... " >&6; } 51210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 51211 $as_echo "$ENABLE_SJAVAC" >&6; } 51212 51213 51214 if test "x$ENABLE_SJAVAC" = xyes; then 51215 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 51216 else 51217 SJAVAC_SERVER_DIR= 51218 fi 51219 51220 51221 51222 # Can the C/C++ compiler use precompiled headers? 51223 51224 51225 ############################################################################### 51226 # 51227 # Can the C/C++ compiler use precompiled headers? 51228 # 51229 # Check whether --enable-precompiled-headers was given. 51230 if test "${enable_precompiled_headers+set}" = set; then : 51231 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 51232 else 51233 ENABLE_PRECOMPH=yes 51234 fi 51235 51236 51237 USE_PRECOMPILED_HEADER=1 51238 if test "x$ENABLE_PRECOMPH" = xno; then 51239 USE_PRECOMPILED_HEADER=0 51240 fi 51241 51242 if test "x$ENABLE_PRECOMPH" = xyes; then 51243 # Check that the compiler actually supports precomp headers. 51244 if test "x$TOOLCHAIN_TYPE" = xgcc; then 51245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 51246 $as_echo_n "checking that precompiled headers work... " >&6; } 51247 echo "int alfa();" > conftest.h 51248 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 51249 if test ! -f conftest.hpp.gch; then 51250 USE_PRECOMPILED_HEADER=0 51251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51252 $as_echo "no" >&6; } 51253 else 51254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51255 $as_echo "yes" >&6; } 51256 fi 51257 rm -f conftest.h conftest.hpp.gch 51258 fi 51259 fi 51260 51261 51262 51263 51264 # Setup use of ccache, if available 51265 51266 # Check whether --enable-ccache was given. 51267 if test "${enable_ccache+set}" = set; then : 51268 enableval=$enable_ccache; 51269 fi 51270 51271 51272 CCACHE= 51273 CCACHE_STATUS= 51274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 51275 $as_echo_n "checking is ccache enabled... " >&6; } 51276 if test "x$enable_ccache" = xyes; then 51277 if test "x$TOOLCHAIN_TYPE" = "xgcc" -o "x$TOOLCHAIN_TYPE" = "xclang"; then 51278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51279 $as_echo "yes" >&6; } 51280 OLD_PATH="$PATH" 51281 if test "x$TOOLCHAIN_PATH" != x; then 51282 PATH=$TOOLCHAIN_PATH:$PATH 51283 fi 51284 51285 51286 51287 # Publish this variable in the help. 51288 51289 51290 if test "x$CCACHE" = x; then 51291 # The variable is not set by user, try to locate tool using the code snippet 51292 for ac_prog in ccache 51293 do 51294 # Extract the first word of "$ac_prog", so it can be a program name with args. 51295 set dummy $ac_prog; ac_word=$2 51296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51297 $as_echo_n "checking for $ac_word... " >&6; } 51298 if ${ac_cv_path_CCACHE+:} false; then : 51299 $as_echo_n "(cached) " >&6 51300 else 51301 case $CCACHE in 51302 [\\/]* | ?:[\\/]*) 51303 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51304 ;; 51305 *) 51306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51307 for as_dir in $PATH 51308 do 51309 IFS=$as_save_IFS 51310 test -z "$as_dir" && as_dir=. 51311 for ac_exec_ext in '' $ac_executable_extensions; do 51312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51313 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51315 break 2 51316 fi 51317 done 51318 done 51319 IFS=$as_save_IFS 51320 51321 ;; 51322 esac 51323 fi 51324 CCACHE=$ac_cv_path_CCACHE 51325 if test -n "$CCACHE"; then 51326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51327 $as_echo "$CCACHE" >&6; } 51328 else 51329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51330 $as_echo "no" >&6; } 51331 fi 51332 51333 51334 test -n "$CCACHE" && break 51335 done 51336 51337 else 51338 # The variable is set, but is it from the command line or the environment? 51339 51340 # Try to remove the string !CCACHE! from our list. 51341 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 51342 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 51343 # If it failed, the variable was not from the command line. Ignore it, 51344 # but warn the user (except for BASH, which is always set by the calling BASH). 51345 if test "xCCACHE" != xBASH; then 51346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 51347 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 51348 fi 51349 # Try to locate tool using the code snippet 51350 for ac_prog in ccache 51351 do 51352 # Extract the first word of "$ac_prog", so it can be a program name with args. 51353 set dummy $ac_prog; ac_word=$2 51354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51355 $as_echo_n "checking for $ac_word... " >&6; } 51356 if ${ac_cv_path_CCACHE+:} false; then : 51357 $as_echo_n "(cached) " >&6 51358 else 51359 case $CCACHE in 51360 [\\/]* | ?:[\\/]*) 51361 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51362 ;; 51363 *) 51364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51365 for as_dir in $PATH 51366 do 51367 IFS=$as_save_IFS 51368 test -z "$as_dir" && as_dir=. 51369 for ac_exec_ext in '' $ac_executable_extensions; do 51370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51371 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51373 break 2 51374 fi 51375 done 51376 done 51377 IFS=$as_save_IFS 51378 51379 ;; 51380 esac 51381 fi 51382 CCACHE=$ac_cv_path_CCACHE 51383 if test -n "$CCACHE"; then 51384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51385 $as_echo "$CCACHE" >&6; } 51386 else 51387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51388 $as_echo "no" >&6; } 51389 fi 51390 51391 51392 test -n "$CCACHE" && break 51393 done 51394 51395 else 51396 # If it succeeded, then it was overridden by the user. We will use it 51397 # for the tool. 51398 51399 # First remove it from the list of overridden variables, so we can test 51400 # for unknown variables in the end. 51401 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 51402 51403 # Check if the provided tool contains a complete path. 51404 tool_specified="$CCACHE" 51405 tool_basename="${tool_specified##*/}" 51406 if test "x$tool_basename" = "x$tool_specified"; then 51407 # A command without a complete path is provided, search $PATH. 51408 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 51409 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 51410 # Extract the first word of "$tool_basename", so it can be a program name with args. 51411 set dummy $tool_basename; ac_word=$2 51412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 51413 $as_echo_n "checking for $ac_word... " >&6; } 51414 if ${ac_cv_path_CCACHE+:} false; then : 51415 $as_echo_n "(cached) " >&6 51416 else 51417 case $CCACHE in 51418 [\\/]* | ?:[\\/]*) 51419 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 51420 ;; 51421 *) 51422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51423 for as_dir in $PATH 51424 do 51425 IFS=$as_save_IFS 51426 test -z "$as_dir" && as_dir=. 51427 for ac_exec_ext in '' $ac_executable_extensions; do 51428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 51429 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 51430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 51431 break 2 51432 fi 51433 done 51434 done 51435 IFS=$as_save_IFS 51436 51437 ;; 51438 esac 51439 fi 51440 CCACHE=$ac_cv_path_CCACHE 51441 if test -n "$CCACHE"; then 51442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 51443 $as_echo "$CCACHE" >&6; } 51444 else 51445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51446 $as_echo "no" >&6; } 51447 fi 51448 51449 51450 if test "x$CCACHE" = x; then 51451 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 51452 fi 51453 else 51454 # Otherwise we believe it is a complete path. Use it as it is. 51455 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 51456 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 51457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 51458 $as_echo_n "checking for CCACHE... " >&6; } 51459 if test ! -x "$tool_specified"; then 51460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 51461 $as_echo "not found" >&6; } 51462 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 51463 fi 51464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 51465 $as_echo "$tool_specified" >&6; } 51466 fi 51467 fi 51468 fi 51469 51470 51471 51472 if test "x$CCACHE" = x; then 51473 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 51474 fi 51475 51476 51477 PATH="$OLD_PATH" 51478 CCACHE_VERSION=`$CCACHE --version | head -n1 | $SED 's/[A-Za-z ]*//'` 51479 CCACHE_STATUS="Active ($CCACHE_VERSION)" 51480 else 51481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51482 $as_echo "no" >&6; } 51483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&5 51484 $as_echo "$as_me: WARNING: ccache is not supported with toolchain type $TOOLCHAIN_TYPE" >&2;} 51485 fi 51486 elif test "x$enable_ccache" = xno; then 51487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 51488 $as_echo "no, explicitly disabled" >&6; } 51489 CCACHE_STATUS="Disabled" 51490 elif test "x$enable_ccache" = x; then 51491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51492 $as_echo "no" >&6; } 51493 else 51494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 51495 $as_echo "unknown" >&6; } 51496 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 51497 fi 51498 51499 51500 51501 # Check whether --with-ccache-dir was given. 51502 if test "${with_ccache_dir+set}" = set; then : 51503 withval=$with_ccache_dir; 51504 fi 51505 51506 51507 if test "x$with_ccache_dir" != x; then 51508 # When using a non home ccache directory, assume the use is to share ccache files 51509 # with other users. Thus change the umask. 51510 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 51511 if test "x$CCACHE" = x; then 51512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 51513 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 51514 fi 51515 fi 51516 51517 if test "x$CCACHE" != x; then 51518 51519 if test "x$CCACHE" != x; then 51520 if test "x$USE_PRECOMPILED_HEADER" = "x1"; then 51521 HAS_BAD_CCACHE=`$ECHO $CCACHE_VERSION | \ 51522 $GREP -e '^1.*' -e '^2.*' -e '^3\.0.*' -e '^3\.1\.[0123]'` 51523 if test "x$HAS_BAD_CCACHE" != "x"; then 51524 as_fn_error $? "Precompiled headers requires ccache 3.1.4 or later, found $CCACHE_VERSION" "$LINENO" 5 51525 fi 51526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 51527 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 51528 CCACHE_PRECOMP_FLAG="-fpch-preprocess" 51529 PUSHED_FLAGS="$CXXFLAGS" 51530 CXXFLAGS="$CCACHE_PRECOMP_FLAG $CXXFLAGS" 51531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 51532 /* end confdefs.h. */ 51533 51534 int 51535 main () 51536 { 51537 51538 ; 51539 return 0; 51540 } 51541 _ACEOF 51542 if ac_fn_cxx_try_compile "$LINENO"; then : 51543 CC_KNOWS_CCACHE_TRICK=yes 51544 else 51545 CC_KNOWS_CCACHE_TRICK=no 51546 fi 51547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 51548 CXXFLAGS="$PUSHED_FLAGS" 51549 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 51550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 51551 $as_echo "yes" >&6; } 51552 CFLAGS_CCACHE="$CCACHE_PRECOMP_FLAG" 51553 51554 CCACHE_SLOPPINESS=pch_defines,time_macros 51555 else 51556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 51557 $as_echo "no" >&6; } 51558 as_fn_error $? "Cannot use ccache with precompiled headers without compiler support for $CCACHE_PRECOMP_FLAG" "$LINENO" 5 51559 fi 51560 fi 51561 51562 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR \ 51563 CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS CCACHE_BASEDIR=$TOPDIR $CCACHE" 51564 51565 if test "x$SET_CCACHE_DIR" != x; then 51566 mkdir -p $CCACHE_DIR > /dev/null 2>&1 51567 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 51568 fi 51569 fi 51570 51571 fi 51572 51573 51574 ############################################################################### 51575 # 51576 # And now the finish... 51577 # 51578 ############################################################################### 51579 51580 # Check for some common pitfalls 51581 51582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 51583 file_to_test="$SRC_ROOT/LICENSE" 51584 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 51585 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 51586 fi 51587 fi 51588 51589 51590 # Did user specify any unknown variables? 51591 51592 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 51593 # Replace the separating ! with spaces before presenting for end user. 51594 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 51595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 51596 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 51597 fi 51598 51599 51600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 51601 $as_echo_n "checking if build directory is on local disk... " >&6; } 51602 51603 # df -l lists only local disks; if the given directory is not found then 51604 # a non-zero exit code is given 51605 if test "x$DF" = x; then 51606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 51607 # msys does not have df; use Windows "net use" instead. 51608 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 51609 if test "x$IS_NETWORK_DISK" = x; then 51610 OUTPUT_DIR_IS_LOCAL="yes" 51611 else 51612 OUTPUT_DIR_IS_LOCAL="no" 51613 fi 51614 else 51615 # No df here, say it's local 51616 OUTPUT_DIR_IS_LOCAL="yes" 51617 fi 51618 else 51619 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 51620 OUTPUT_DIR_IS_LOCAL="yes" 51621 else 51622 OUTPUT_DIR_IS_LOCAL="no" 51623 fi 51624 fi 51625 51626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 51627 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 51628 51629 51630 51631 # Check if the user has any old-style ALT_ variables set. 51632 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 51633 51634 # Before generating output files, test if they exist. If they do, this is a reconfigure. 51635 # Since we can't properly handle the dependencies for this, warn the user about the situation 51636 if test -e $OUTPUT_ROOT/spec.gmk; then 51637 IS_RECONFIGURE=yes 51638 else 51639 IS_RECONFIGURE=no 51640 fi 51641 51642 51643 # At the end, call the custom hook. (Dummy macro if no custom sources available) 51644 51645 51646 # We're messing a bit with internal autoconf variables to put the config.status 51647 # in the output directory instead of the current directory. 51648 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 51649 51650 # Create the actual output files. Now the main work of configure is done. 51651 cat >confcache <<\_ACEOF 51652 # This file is a shell script that caches the results of configure 51653 # tests run on this system so they can be shared between configure 51654 # scripts and configure runs, see configure's option --config-cache. 51655 # It is not useful on other systems. If it contains results you don't 51656 # want to keep, you may remove or edit it. 51657 # 51658 # config.status only pays attention to the cache file if you give it 51659 # the --recheck option to rerun configure. 51660 # 51661 # `ac_cv_env_foo' variables (set or unset) will be overridden when 51662 # loading this file, other *unset* `ac_cv_foo' will be assigned the 51663 # following values. 51664 51665 _ACEOF 51666 51667 # The following way of writing the cache mishandles newlines in values, 51668 # but we know of no workaround that is simple, portable, and efficient. 51669 # So, we kill variables containing newlines. 51670 # Ultrix sh set writes to stderr and can't be redirected directly, 51671 # and sets the high bit in the cache file unless we assign to the vars. 51672 ( 51673 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 51674 eval ac_val=\$$ac_var 51675 case $ac_val in #( 51676 *${as_nl}*) 51677 case $ac_var in #( 51678 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 51679 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 51680 esac 51681 case $ac_var in #( 51682 _ | IFS | as_nl) ;; #( 51683 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 51684 *) { eval $ac_var=; unset $ac_var;} ;; 51685 esac ;; 51686 esac 51687 done 51688 51689 (set) 2>&1 | 51690 case $as_nl`(ac_space=' '; set) 2>&1` in #( 51691 *${as_nl}ac_space=\ *) 51692 # `set' does not quote correctly, so add quotes: double-quote 51693 # substitution turns \\\\ into \\, and sed turns \\ into \. 51694 sed -n \ 51695 "s/'/'\\\\''/g; 51696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 51697 ;; #( 51698 *) 51699 # `set' quotes correctly as required by POSIX, so do not add quotes. 51700 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 51701 ;; 51702 esac | 51703 sort 51704 ) | 51705 sed ' 51706 /^ac_cv_env_/b end 51707 t clear 51708 :clear 51709 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 51710 t end 51711 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 51712 :end' >>confcache 51713 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 51714 if test -w "$cache_file"; then 51715 if test "x$cache_file" != "x/dev/null"; then 51716 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 51717 $as_echo "$as_me: updating cache $cache_file" >&6;} 51718 if test ! -f "$cache_file" || test -h "$cache_file"; then 51719 cat confcache >"$cache_file" 51720 else 51721 case $cache_file in #( 51722 */* | ?:*) 51723 mv -f confcache "$cache_file"$$ && 51724 mv -f "$cache_file"$$ "$cache_file" ;; #( 51725 *) 51726 mv -f confcache "$cache_file" ;; 51727 esac 51728 fi 51729 fi 51730 else 51731 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 51732 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 51733 fi 51734 fi 51735 rm -f confcache 51736 51737 test "x$prefix" = xNONE && prefix=$ac_default_prefix 51738 # Let make expand exec_prefix. 51739 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 51740 51741 # Transform confdefs.h into DEFS. 51742 # Protect against shell expansion while executing Makefile rules. 51743 # Protect against Makefile macro expansion. 51744 # 51745 # If the first sed substitution is executed (which looks for macros that 51746 # take arguments), then branch to the quote section. Otherwise, 51747 # look for a macro that doesn't take arguments. 51748 ac_script=' 51749 :mline 51750 /\\$/{ 51751 N 51752 s,\\\n,, 51753 b mline 51754 } 51755 t clear 51756 :clear 51757 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 51758 t quote 51759 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 51760 t quote 51761 b any 51762 :quote 51763 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 51764 s/\[/\\&/g 51765 s/\]/\\&/g 51766 s/\$/$$/g 51767 H 51768 :any 51769 ${ 51770 g 51771 s/^\n// 51772 s/\n/ /g 51773 p 51774 } 51775 ' 51776 DEFS=`sed -n "$ac_script" confdefs.h` 51777 51778 51779 ac_libobjs= 51780 ac_ltlibobjs= 51781 U= 51782 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 51783 # 1. Remove the extension, and $U if already installed. 51784 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 51785 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 51786 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 51787 # will be set to the directory where LIBOBJS objects are built. 51788 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 51789 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 51790 done 51791 LIBOBJS=$ac_libobjs 51792 51793 LTLIBOBJS=$ac_ltlibobjs 51794 51795 51796 51797 : "${CONFIG_STATUS=./config.status}" 51798 ac_write_fail=0 51799 ac_clean_files_save=$ac_clean_files 51800 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 51801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 51802 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 51803 as_write_fail=0 51804 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 51805 #! $SHELL 51806 # Generated by $as_me. 51807 # Run this file to recreate the current configuration. 51808 # Compiler output produced by configure, useful for debugging 51809 # configure, is in config.log if it exists. 51810 51811 debug=false 51812 ac_cs_recheck=false 51813 ac_cs_silent=false 51814 51815 SHELL=\${CONFIG_SHELL-$SHELL} 51816 export SHELL 51817 _ASEOF 51818 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 51819 ## -------------------- ## 51820 ## M4sh Initialization. ## 51821 ## -------------------- ## 51822 51823 # Be more Bourne compatible 51824 DUALCASE=1; export DUALCASE # for MKS sh 51825 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 51826 emulate sh 51827 NULLCMD=: 51828 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 51829 # is contrary to our usage. Disable this feature. 51830 alias -g '${1+"$@"}'='"$@"' 51831 setopt NO_GLOB_SUBST 51832 else 51833 case `(set -o) 2>/dev/null` in #( 51834 *posix*) : 51835 set -o posix ;; #( 51836 *) : 51837 ;; 51838 esac 51839 fi 51840 51841 51842 as_nl=' 51843 ' 51844 export as_nl 51845 # Printing a long string crashes Solaris 7 /usr/bin/printf. 51846 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 51847 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 51848 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 51849 # Prefer a ksh shell builtin over an external printf program on Solaris, 51850 # but without wasting forks for bash or zsh. 51851 if test -z "$BASH_VERSION$ZSH_VERSION" \ 51852 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 51853 as_echo='print -r --' 51854 as_echo_n='print -rn --' 51855 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51856 as_echo='printf %s\n' 51857 as_echo_n='printf %s' 51858 else 51859 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51860 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 51861 as_echo_n='/usr/ucb/echo -n' 51862 else 51863 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51864 as_echo_n_body='eval 51865 arg=$1; 51866 case $arg in #( 51867 *"$as_nl"*) 51868 expr "X$arg" : "X\\(.*\\)$as_nl"; 51869 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 51870 esac; 51871 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 51872 ' 51873 export as_echo_n_body 51874 as_echo_n='sh -c $as_echo_n_body as_echo' 51875 fi 51876 export as_echo_body 51877 as_echo='sh -c $as_echo_body as_echo' 51878 fi 51879 51880 # The user is always right. 51881 if test "${PATH_SEPARATOR+set}" != set; then 51882 PATH_SEPARATOR=: 51883 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 51884 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 51885 PATH_SEPARATOR=';' 51886 } 51887 fi 51888 51889 51890 # IFS 51891 # We need space, tab and new line, in precisely that order. Quoting is 51892 # there to prevent editors from complaining about space-tab. 51893 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 51894 # splitting by setting IFS to empty value.) 51895 IFS=" "" $as_nl" 51896 51897 # Find who we are. Look in the path if we contain no directory separator. 51898 as_myself= 51899 case $0 in #(( 51900 *[\\/]* ) as_myself=$0 ;; 51901 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51902 for as_dir in $PATH 51903 do 51904 IFS=$as_save_IFS 51905 test -z "$as_dir" && as_dir=. 51906 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 51907 done 51908 IFS=$as_save_IFS 51909 51910 ;; 51911 esac 51912 # We did not find ourselves, most probably we were run as `sh COMMAND' 51913 # in which case we are not to be found in the path. 51914 if test "x$as_myself" = x; then 51915 as_myself=$0 51916 fi 51917 if test ! -f "$as_myself"; then 51918 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 51919 exit 1 51920 fi 51921 51922 # Unset variables that we do not need and which cause bugs (e.g. in 51923 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 51924 # suppresses any "Segmentation fault" message there. '((' could 51925 # trigger a bug in pdksh 5.2.14. 51926 for as_var in BASH_ENV ENV MAIL MAILPATH 51927 do eval test x\${$as_var+set} = xset \ 51928 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 51929 done 51930 PS1='$ ' 51931 PS2='> ' 51932 PS4='+ ' 51933 51934 # NLS nuisances. 51935 LC_ALL=C 51936 export LC_ALL 51937 LANGUAGE=C 51938 export LANGUAGE 51939 51940 # CDPATH. 51941 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51942 51943 51944 # as_fn_error STATUS ERROR [LINENO LOG_FD] 51945 # ---------------------------------------- 51946 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 51947 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 51948 # script with STATUS, using 1 if that was 0. 51949 as_fn_error () 51950 { 51951 as_status=$1; test $as_status -eq 0 && as_status=1 51952 if test "$4"; then 51953 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 51954 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 51955 fi 51956 $as_echo "$as_me: error: $2" >&2 51957 as_fn_exit $as_status 51958 } # as_fn_error 51959 51960 51961 # as_fn_set_status STATUS 51962 # ----------------------- 51963 # Set $? to STATUS, without forking. 51964 as_fn_set_status () 51965 { 51966 return $1 51967 } # as_fn_set_status 51968 51969 # as_fn_exit STATUS 51970 # ----------------- 51971 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51972 as_fn_exit () 51973 { 51974 set +e 51975 as_fn_set_status $1 51976 exit $1 51977 } # as_fn_exit 51978 51979 # as_fn_unset VAR 51980 # --------------- 51981 # Portably unset VAR. 51982 as_fn_unset () 51983 { 51984 { eval $1=; unset $1;} 51985 } 51986 as_unset=as_fn_unset 51987 # as_fn_append VAR VALUE 51988 # ---------------------- 51989 # Append the text in VALUE to the end of the definition contained in VAR. Take 51990 # advantage of any shell optimizations that allow amortized linear growth over 51991 # repeated appends, instead of the typical quadratic growth present in naive 51992 # implementations. 51993 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51994 eval 'as_fn_append () 51995 { 51996 eval $1+=\$2 51997 }' 51998 else 51999 as_fn_append () 52000 { 52001 eval $1=\$$1\$2 52002 } 52003 fi # as_fn_append 52004 52005 # as_fn_arith ARG... 52006 # ------------------ 52007 # Perform arithmetic evaluation on the ARGs, and store the result in the 52008 # global $as_val. Take advantage of shells that can avoid forks. The arguments 52009 # must be portable across $(()) and expr. 52010 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 52011 eval 'as_fn_arith () 52012 { 52013 as_val=$(( $* )) 52014 }' 52015 else 52016 as_fn_arith () 52017 { 52018 as_val=`expr "$@" || test $? -eq 1` 52019 } 52020 fi # as_fn_arith 52021 52022 52023 if expr a : '\(a\)' >/dev/null 2>&1 && 52024 test "X`expr 00001 : '.*\(...\)'`" = X001; then 52025 as_expr=expr 52026 else 52027 as_expr=false 52028 fi 52029 52030 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 52031 as_basename=basename 52032 else 52033 as_basename=false 52034 fi 52035 52036 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 52037 as_dirname=dirname 52038 else 52039 as_dirname=false 52040 fi 52041 52042 as_me=`$as_basename -- "$0" || 52043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 52044 X"$0" : 'X\(//\)$' \| \ 52045 X"$0" : 'X\(/\)' \| . 2>/dev/null || 52046 $as_echo X/"$0" | 52047 sed '/^.*\/\([^/][^/]*\)\/*$/{ 52048 s//\1/ 52049 q 52050 } 52051 /^X\/\(\/\/\)$/{ 52052 s//\1/ 52053 q 52054 } 52055 /^X\/\(\/\).*/{ 52056 s//\1/ 52057 q 52058 } 52059 s/.*/./; q'` 52060 52061 # Avoid depending upon Character Ranges. 52062 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 52063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 52064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 52065 as_cr_digits='0123456789' 52066 as_cr_alnum=$as_cr_Letters$as_cr_digits 52067 52068 ECHO_C= ECHO_N= ECHO_T= 52069 case `echo -n x` in #((((( 52070 -n*) 52071 case `echo 'xy\c'` in 52072 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 52073 xy) ECHO_C='\c';; 52074 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 52075 ECHO_T=' ';; 52076 esac;; 52077 *) 52078 ECHO_N='-n';; 52079 esac 52080 52081 rm -f conf$$ conf$$.exe conf$$.file 52082 if test -d conf$$.dir; then 52083 rm -f conf$$.dir/conf$$.file 52084 else 52085 rm -f conf$$.dir 52086 mkdir conf$$.dir 2>/dev/null 52087 fi 52088 if (echo >conf$$.file) 2>/dev/null; then 52089 if ln -s conf$$.file conf$$ 2>/dev/null; then 52090 as_ln_s='ln -s' 52091 # ... but there are two gotchas: 52092 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 52093 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 52094 # In both cases, we have to default to `cp -pR'. 52095 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 52096 as_ln_s='cp -pR' 52097 elif ln conf$$.file conf$$ 2>/dev/null; then 52098 as_ln_s=ln 52099 else 52100 as_ln_s='cp -pR' 52101 fi 52102 else 52103 as_ln_s='cp -pR' 52104 fi 52105 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 52106 rmdir conf$$.dir 2>/dev/null 52107 52108 52109 # as_fn_mkdir_p 52110 # ------------- 52111 # Create "$as_dir" as a directory, including parents if necessary. 52112 as_fn_mkdir_p () 52113 { 52114 52115 case $as_dir in #( 52116 -*) as_dir=./$as_dir;; 52117 esac 52118 test -d "$as_dir" || eval $as_mkdir_p || { 52119 as_dirs= 52120 while :; do 52121 case $as_dir in #( 52122 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 52123 *) as_qdir=$as_dir;; 52124 esac 52125 as_dirs="'$as_qdir' $as_dirs" 52126 as_dir=`$as_dirname -- "$as_dir" || 52127 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52128 X"$as_dir" : 'X\(//\)[^/]' \| \ 52129 X"$as_dir" : 'X\(//\)$' \| \ 52130 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 52131 $as_echo X"$as_dir" | 52132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52133 s//\1/ 52134 q 52135 } 52136 /^X\(\/\/\)[^/].*/{ 52137 s//\1/ 52138 q 52139 } 52140 /^X\(\/\/\)$/{ 52141 s//\1/ 52142 q 52143 } 52144 /^X\(\/\).*/{ 52145 s//\1/ 52146 q 52147 } 52148 s/.*/./; q'` 52149 test -d "$as_dir" && break 52150 done 52151 test -z "$as_dirs" || eval "mkdir $as_dirs" 52152 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 52153 52154 52155 } # as_fn_mkdir_p 52156 if mkdir -p . 2>/dev/null; then 52157 as_mkdir_p='mkdir -p "$as_dir"' 52158 else 52159 test -d ./-p && rmdir ./-p 52160 as_mkdir_p=false 52161 fi 52162 52163 52164 # as_fn_executable_p FILE 52165 # ----------------------- 52166 # Test if FILE is an executable regular file. 52167 as_fn_executable_p () 52168 { 52169 test -f "$1" && test -x "$1" 52170 } # as_fn_executable_p 52171 as_test_x='test -x' 52172 as_executable_p=as_fn_executable_p 52173 52174 # Sed expression to map a string onto a valid CPP name. 52175 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 52176 52177 # Sed expression to map a string onto a valid variable name. 52178 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 52179 52180 52181 exec 6>&1 52182 ## ----------------------------------- ## 52183 ## Main body of $CONFIG_STATUS script. ## 52184 ## ----------------------------------- ## 52185 _ASEOF 52186 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 52187 52188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52189 # Save the log message, to keep $0 and so on meaningful, and to 52190 # report actual input values of CONFIG_FILES etc. instead of their 52191 # values after options handling. 52192 ac_log=" 52193 This file was extended by OpenJDK $as_me jdk9, which was 52194 generated by GNU Autoconf 2.69. Invocation command line was 52195 52196 CONFIG_FILES = $CONFIG_FILES 52197 CONFIG_HEADERS = $CONFIG_HEADERS 52198 CONFIG_LINKS = $CONFIG_LINKS 52199 CONFIG_COMMANDS = $CONFIG_COMMANDS 52200 $ $0 $@ 52201 52202 on `(hostname || uname -n) 2>/dev/null | sed 1q` 52203 " 52204 52205 _ACEOF 52206 52207 case $ac_config_files in *" 52208 "*) set x $ac_config_files; shift; ac_config_files=$*;; 52209 esac 52210 52211 52212 52213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52214 # Files that config.status was made for. 52215 config_files="$ac_config_files" 52216 52217 _ACEOF 52218 52219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52220 ac_cs_usage="\ 52221 \`$as_me' instantiates files and other configuration actions 52222 from templates according to the current configuration. Unless the files 52223 and actions are specified as TAGs, all are instantiated by default. 52224 52225 Usage: $0 [OPTION]... [TAG]... 52226 52227 -h, --help print this help, then exit 52228 -V, --version print version number and configuration settings, then exit 52229 --config print configuration, then exit 52230 -q, --quiet, --silent 52231 do not print progress messages 52232 -d, --debug don't remove temporary files 52233 --recheck update $as_me by reconfiguring in the same conditions 52234 --file=FILE[:TEMPLATE] 52235 instantiate the configuration file FILE 52236 52237 Configuration files: 52238 $config_files 52239 52240 Report bugs to <build-dev@openjdk.java.net>. 52241 OpenJDK home page: <http://openjdk.java.net>." 52242 52243 _ACEOF 52244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52245 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 52246 ac_cs_version="\\ 52247 OpenJDK config.status jdk9 52248 configured by $0, generated by GNU Autoconf 2.69, 52249 with options \\"\$ac_cs_config\\" 52250 52251 Copyright (C) 2012 Free Software Foundation, Inc. 52252 This config.status script is free software; the Free Software Foundation 52253 gives unlimited permission to copy, distribute and modify it." 52254 52255 ac_pwd='$ac_pwd' 52256 srcdir='$srcdir' 52257 AWK='$AWK' 52258 test -n "\$AWK" || AWK=awk 52259 _ACEOF 52260 52261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52262 # The default lists apply if the user does not specify any file. 52263 ac_need_defaults=: 52264 while test $# != 0 52265 do 52266 case $1 in 52267 --*=?*) 52268 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52269 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 52270 ac_shift=: 52271 ;; 52272 --*=) 52273 ac_option=`expr "X$1" : 'X\([^=]*\)='` 52274 ac_optarg= 52275 ac_shift=: 52276 ;; 52277 *) 52278 ac_option=$1 52279 ac_optarg=$2 52280 ac_shift=shift 52281 ;; 52282 esac 52283 52284 case $ac_option in 52285 # Handling of the options. 52286 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 52287 ac_cs_recheck=: ;; 52288 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 52289 $as_echo "$ac_cs_version"; exit ;; 52290 --config | --confi | --conf | --con | --co | --c ) 52291 $as_echo "$ac_cs_config"; exit ;; 52292 --debug | --debu | --deb | --de | --d | -d ) 52293 debug=: ;; 52294 --file | --fil | --fi | --f ) 52295 $ac_shift 52296 case $ac_optarg in 52297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 52298 '') as_fn_error $? "missing file argument" ;; 52299 esac 52300 as_fn_append CONFIG_FILES " '$ac_optarg'" 52301 ac_need_defaults=false;; 52302 --he | --h | --help | --hel | -h ) 52303 $as_echo "$ac_cs_usage"; exit ;; 52304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 52305 | -silent | --silent | --silen | --sile | --sil | --si | --s) 52306 ac_cs_silent=: ;; 52307 52308 # This is an error. 52309 -*) as_fn_error $? "unrecognized option: \`$1' 52310 Try \`$0 --help' for more information." ;; 52311 52312 *) as_fn_append ac_config_targets " $1" 52313 ac_need_defaults=false ;; 52314 52315 esac 52316 shift 52317 done 52318 52319 ac_configure_extra_args= 52320 52321 if $ac_cs_silent; then 52322 exec 6>/dev/null 52323 ac_configure_extra_args="$ac_configure_extra_args --silent" 52324 fi 52325 52326 _ACEOF 52327 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52328 if \$ac_cs_recheck; then 52329 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 52330 shift 52331 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 52332 CONFIG_SHELL='$SHELL' 52333 export CONFIG_SHELL 52334 exec "\$@" 52335 fi 52336 52337 _ACEOF 52338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52339 exec 5>>config.log 52340 { 52341 echo 52342 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 52343 ## Running $as_me. ## 52344 _ASBOX 52345 $as_echo "$ac_log" 52346 } >&5 52347 52348 _ACEOF 52349 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52350 _ACEOF 52351 52352 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52353 52354 # Handling of arguments. 52355 for ac_config_target in $ac_config_targets 52356 do 52357 case $ac_config_target in 52358 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 52359 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 52360 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 52361 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 52362 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 52363 52364 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 52365 esac 52366 done 52367 52368 52369 # If the user did not use the arguments to specify the items to instantiate, 52370 # then the envvar interface is used. Set only those that are not. 52371 # We use the long form for the default assignment because of an extremely 52372 # bizarre bug on SunOS 4.1.3. 52373 if $ac_need_defaults; then 52374 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 52375 fi 52376 52377 # Have a temporary directory for convenience. Make it in the build tree 52378 # simply because there is no reason against having it here, and in addition, 52379 # creating and moving files from /tmp can sometimes cause problems. 52380 # Hook for its removal unless debugging. 52381 # Note that there is a small window in which the directory will not be cleaned: 52382 # after its creation but before its name has been assigned to `$tmp'. 52383 $debug || 52384 { 52385 tmp= ac_tmp= 52386 trap 'exit_status=$? 52387 : "${ac_tmp:=$tmp}" 52388 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 52389 ' 0 52390 trap 'as_fn_exit 1' 1 2 13 15 52391 } 52392 # Create a (secure) tmp directory for tmp files. 52393 52394 { 52395 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 52396 test -d "$tmp" 52397 } || 52398 { 52399 tmp=./conf$$-$RANDOM 52400 (umask 077 && mkdir "$tmp") 52401 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 52402 ac_tmp=$tmp 52403 52404 # Set up the scripts for CONFIG_FILES section. 52405 # No need to generate them if there are no CONFIG_FILES. 52406 # This happens for instance with `./config.status config.h'. 52407 if test -n "$CONFIG_FILES"; then 52408 52409 52410 ac_cr=`echo X | tr X '\015'` 52411 # On cygwin, bash can eat \r inside `` if the user requested igncr. 52412 # But we know of no other shell where ac_cr would be empty at this 52413 # point, so we can use a bashism as a fallback. 52414 if test "x$ac_cr" = x; then 52415 eval ac_cr=\$\'\\r\' 52416 fi 52417 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 52418 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 52419 ac_cs_awk_cr='\\r' 52420 else 52421 ac_cs_awk_cr=$ac_cr 52422 fi 52423 52424 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 52425 _ACEOF 52426 52427 52428 { 52429 echo "cat >conf$$subs.awk <<_ACEOF" && 52430 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 52431 echo "_ACEOF" 52432 } >conf$$subs.sh || 52433 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52434 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 52435 ac_delim='%!_!# ' 52436 for ac_last_try in false false false false false :; do 52437 . ./conf$$subs.sh || 52438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52439 52440 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 52441 if test $ac_delim_n = $ac_delim_num; then 52442 break 52443 elif $ac_last_try; then 52444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 52445 else 52446 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 52447 fi 52448 done 52449 rm -f conf$$subs.sh 52450 52451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52452 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 52453 _ACEOF 52454 sed -n ' 52455 h 52456 s/^/S["/; s/!.*/"]=/ 52457 p 52458 g 52459 s/^[^!]*!// 52460 :repl 52461 t repl 52462 s/'"$ac_delim"'$// 52463 t delim 52464 :nl 52465 h 52466 s/\(.\{148\}\)..*/\1/ 52467 t more1 52468 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 52469 p 52470 n 52471 b repl 52472 :more1 52473 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52474 p 52475 g 52476 s/.\{148\}// 52477 t nl 52478 :delim 52479 h 52480 s/\(.\{148\}\)..*/\1/ 52481 t more2 52482 s/["\\]/\\&/g; s/^/"/; s/$/"/ 52483 p 52484 b 52485 :more2 52486 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 52487 p 52488 g 52489 s/.\{148\}// 52490 t delim 52491 ' <conf$$subs.awk | sed ' 52492 /^[^""]/{ 52493 N 52494 s/\n// 52495 } 52496 ' >>$CONFIG_STATUS || ac_write_fail=1 52497 rm -f conf$$subs.awk 52498 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52499 _ACAWK 52500 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 52501 for (key in S) S_is_set[key] = 1 52502 FS = "" 52503 52504 } 52505 { 52506 line = $ 0 52507 nfields = split(line, field, "@") 52508 substed = 0 52509 len = length(field[1]) 52510 for (i = 2; i < nfields; i++) { 52511 key = field[i] 52512 keylen = length(key) 52513 if (S_is_set[key]) { 52514 value = S[key] 52515 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 52516 len += length(value) + length(field[++i]) 52517 substed = 1 52518 } else 52519 len += 1 + keylen 52520 } 52521 52522 print line 52523 } 52524 52525 _ACAWK 52526 _ACEOF 52527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52528 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 52529 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 52530 else 52531 cat 52532 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 52533 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 52534 _ACEOF 52535 52536 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 52537 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 52538 # trailing colons and then remove the whole line if VPATH becomes empty 52539 # (actually we leave an empty line to preserve line numbers). 52540 if test "x$srcdir" = x.; then 52541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 52542 h 52543 s/// 52544 s/^/:/ 52545 s/[ ]*$/:/ 52546 s/:\$(srcdir):/:/g 52547 s/:\${srcdir}:/:/g 52548 s/:@srcdir@:/:/g 52549 s/^:*// 52550 s/:*$// 52551 x 52552 s/\(=[ ]*\).*/\1/ 52553 G 52554 s/\n// 52555 s/^[^=]*=[ ]*$// 52556 }' 52557 fi 52558 52559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52560 fi # test -n "$CONFIG_FILES" 52561 52562 52563 eval set X " :F $CONFIG_FILES " 52564 shift 52565 for ac_tag 52566 do 52567 case $ac_tag in 52568 :[FHLC]) ac_mode=$ac_tag; continue;; 52569 esac 52570 case $ac_mode$ac_tag in 52571 :[FHL]*:*);; 52572 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 52573 :[FH]-) ac_tag=-:-;; 52574 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 52575 esac 52576 ac_save_IFS=$IFS 52577 IFS=: 52578 set x $ac_tag 52579 IFS=$ac_save_IFS 52580 shift 52581 ac_file=$1 52582 shift 52583 52584 case $ac_mode in 52585 :L) ac_source=$1;; 52586 :[FH]) 52587 ac_file_inputs= 52588 for ac_f 52589 do 52590 case $ac_f in 52591 -) ac_f="$ac_tmp/stdin";; 52592 *) # Look for the file first in the build tree, then in the source tree 52593 # (if the path is not absolute). The absolute path cannot be DOS-style, 52594 # because $ac_f cannot contain `:'. 52595 test -f "$ac_f" || 52596 case $ac_f in 52597 [\\/$]*) false;; 52598 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 52599 esac || 52600 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 52601 esac 52602 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 52603 as_fn_append ac_file_inputs " '$ac_f'" 52604 done 52605 52606 # Let's still pretend it is `configure' which instantiates (i.e., don't 52607 # use $as_me), people would be surprised to read: 52608 # /* config.h. Generated by config.status. */ 52609 configure_input='Generated from '` 52610 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 52611 `' by configure.' 52612 if test x"$ac_file" != x-; then 52613 configure_input="$ac_file. $configure_input" 52614 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 52615 $as_echo "$as_me: creating $ac_file" >&6;} 52616 fi 52617 # Neutralize special characters interpreted by sed in replacement strings. 52618 case $configure_input in #( 52619 *\&* | *\|* | *\\* ) 52620 ac_sed_conf_input=`$as_echo "$configure_input" | 52621 sed 's/[\\\\&|]/\\\\&/g'`;; #( 52622 *) ac_sed_conf_input=$configure_input;; 52623 esac 52624 52625 case $ac_tag in 52626 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 52627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 52628 esac 52629 ;; 52630 esac 52631 52632 ac_dir=`$as_dirname -- "$ac_file" || 52633 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 52634 X"$ac_file" : 'X\(//\)[^/]' \| \ 52635 X"$ac_file" : 'X\(//\)$' \| \ 52636 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 52637 $as_echo X"$ac_file" | 52638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 52639 s//\1/ 52640 q 52641 } 52642 /^X\(\/\/\)[^/].*/{ 52643 s//\1/ 52644 q 52645 } 52646 /^X\(\/\/\)$/{ 52647 s//\1/ 52648 q 52649 } 52650 /^X\(\/\).*/{ 52651 s//\1/ 52652 q 52653 } 52654 s/.*/./; q'` 52655 as_dir="$ac_dir"; as_fn_mkdir_p 52656 ac_builddir=. 52657 52658 case "$ac_dir" in 52659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 52660 *) 52661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 52662 # A ".." for each directory in $ac_dir_suffix. 52663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 52664 case $ac_top_builddir_sub in 52665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 52666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 52667 esac ;; 52668 esac 52669 ac_abs_top_builddir=$ac_pwd 52670 ac_abs_builddir=$ac_pwd$ac_dir_suffix 52671 # for backward compatibility: 52672 ac_top_builddir=$ac_top_build_prefix 52673 52674 case $srcdir in 52675 .) # We are building in place. 52676 ac_srcdir=. 52677 ac_top_srcdir=$ac_top_builddir_sub 52678 ac_abs_top_srcdir=$ac_pwd ;; 52679 [\\/]* | ?:[\\/]* ) # Absolute name. 52680 ac_srcdir=$srcdir$ac_dir_suffix; 52681 ac_top_srcdir=$srcdir 52682 ac_abs_top_srcdir=$srcdir ;; 52683 *) # Relative name. 52684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 52685 ac_top_srcdir=$ac_top_build_prefix$srcdir 52686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 52687 esac 52688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 52689 52690 52691 case $ac_mode in 52692 :F) 52693 # 52694 # CONFIG_FILE 52695 # 52696 52697 _ACEOF 52698 52699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52700 # If the template does not know about datarootdir, expand it. 52701 # FIXME: This hack should be removed a few years after 2.60. 52702 ac_datarootdir_hack=; ac_datarootdir_seen= 52703 ac_sed_dataroot=' 52704 /datarootdir/ { 52705 p 52706 q 52707 } 52708 /@datadir@/p 52709 /@docdir@/p 52710 /@infodir@/p 52711 /@localedir@/p 52712 /@mandir@/p' 52713 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 52714 *datarootdir*) ac_datarootdir_seen=yes;; 52715 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 52716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 52717 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 52718 _ACEOF 52719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52720 ac_datarootdir_hack=' 52721 s&@datadir@&$datadir&g 52722 s&@docdir@&$docdir&g 52723 s&@infodir@&$infodir&g 52724 s&@localedir@&$localedir&g 52725 s&@mandir@&$mandir&g 52726 s&\\\${datarootdir}&$datarootdir&g' ;; 52727 esac 52728 _ACEOF 52729 52730 # Neutralize VPATH when `$srcdir' = `.'. 52731 # Shell code in configure.ac might set extrasub. 52732 # FIXME: do we really want to maintain this feature? 52733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 52734 ac_sed_extra="$ac_vpsub 52735 $extrasub 52736 _ACEOF 52737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 52738 :t 52739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 52740 s|@configure_input@|$ac_sed_conf_input|;t t 52741 s&@top_builddir@&$ac_top_builddir_sub&;t t 52742 s&@top_build_prefix@&$ac_top_build_prefix&;t t 52743 s&@srcdir@&$ac_srcdir&;t t 52744 s&@abs_srcdir@&$ac_abs_srcdir&;t t 52745 s&@top_srcdir@&$ac_top_srcdir&;t t 52746 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 52747 s&@builddir@&$ac_builddir&;t t 52748 s&@abs_builddir@&$ac_abs_builddir&;t t 52749 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 52750 $ac_datarootdir_hack 52751 " 52752 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 52753 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52754 52755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 52756 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 52757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 52758 "$ac_tmp/out"`; test -z "$ac_out"; } && 52759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52760 which seems to be undefined. Please make sure it is defined" >&5 52761 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 52762 which seems to be undefined. Please make sure it is defined" >&2;} 52763 52764 rm -f "$ac_tmp/stdin" 52765 case $ac_file in 52766 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 52767 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 52768 esac \ 52769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 52770 ;; 52771 52772 52773 52774 esac 52775 52776 done # for ac_tag 52777 52778 52779 as_fn_exit 0 52780 _ACEOF 52781 ac_clean_files=$ac_clean_files_save 52782 52783 test $ac_write_fail = 0 || 52784 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 52785 52786 52787 # configure is writing to config.log, and then calls config.status. 52788 # config.status does its own redirection, appending to config.log. 52789 # Unfortunately, on DOS this fails, as config.log is still kept open 52790 # by configure, so config.status won't be able to write to it; its 52791 # output is simply discarded. So we exec the FD to /dev/null, 52792 # effectively closing config.log, so it can be properly (re)opened and 52793 # appended to by config.status. When coming back to configure, we 52794 # need to make the FD available again. 52795 if test "$no_create" != yes; then 52796 ac_cs_success=: 52797 ac_config_status_args= 52798 test "$silent" = yes && 52799 ac_config_status_args="$ac_config_status_args --quiet" 52800 exec 5>/dev/null 52801 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 52802 exec 5>>config.log 52803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 52804 # would make configure fail if this is the last instruction. 52805 $ac_cs_success || as_fn_exit 1 52806 fi 52807 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 52808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 52809 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 52810 fi 52811 52812 52813 # Try to move the config.log file to the output directory. 52814 if test -e ./config.log; then 52815 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 52816 fi 52817 52818 # Make the compare script executable 52819 $CHMOD +x $OUTPUT_ROOT/compare.sh 52820 52821 # Finally output some useful information to the user 52822 52823 # Finally output some useful information to the user 52824 52825 printf "\n" 52826 printf "====================================================\n" 52827 if test "x$no_create" != "xyes"; then 52828 if test "x$IS_RECONFIGURE" != "xyes"; then 52829 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 52830 else 52831 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 52832 fi 52833 else 52834 if test "x$IS_RECONFIGURE" != "xyes"; then 52835 printf "A configuration has been successfully checked but not created\n" 52836 else 52837 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 52838 fi 52839 fi 52840 if test "x$CONFIGURE_COMMAND_LINE" != x; then 52841 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 52842 else 52843 printf "using default settings.\n" 52844 fi 52845 52846 printf "\n" 52847 printf "Configuration summary:\n" 52848 printf "* Debug level: $DEBUG_LEVEL\n" 52849 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 52850 printf "* JDK variant: $JDK_VARIANT\n" 52851 printf "* JVM variants: $with_jvm_variants\n" 52852 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 52853 52854 printf "\n" 52855 printf "Tools summary:\n" 52856 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 52857 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 52858 fi 52859 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 52860 if test "x$TOOLCHAIN_VERSION" != "x"; then 52861 print_version=" $TOOLCHAIN_VERSION" 52862 fi 52863 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION$print_version)\n" 52864 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 52865 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 52866 52867 printf "\n" 52868 printf "Build performance summary:\n" 52869 printf "* Cores to use: $JOBS\n" 52870 printf "* Memory limit: $MEMORY_SIZE MB\n" 52871 if test "x$CCACHE_STATUS" != "x"; then 52872 printf "* ccache status: $CCACHE_STATUS\n" 52873 fi 52874 printf "\n" 52875 52876 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 52877 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 52878 printf "will result in longer build times.\n" 52879 printf "\n" 52880 fi 52881 52882 if test "x$FOUND_ALT_VARIABLES" != "x"; then 52883 printf "WARNING: You have old-style ALT_ environment variables set.\n" 52884 printf "These are not respected, and will be ignored. It is recommended\n" 52885 printf "that you clean your environment. The following variables are set:\n" 52886 printf "$FOUND_ALT_VARIABLES\n" 52887 printf "\n" 52888 fi 52889 52890 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 52891 printf "WARNING: Your build output directory is not on a local disk.\n" 52892 printf "This will severely degrade build performance!\n" 52893 printf "It is recommended that you create an output directory on a local disk,\n" 52894 printf "and run the configure script again from that directory.\n" 52895 printf "\n" 52896 fi 52897 52898 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 52899 printf "WARNING: The result of this configuration has overridden an older\n" 52900 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 52901 printf "proper build. Failure to do so might result in strange build problems.\n" 52902 printf "\n" 52903 fi 52904 52905 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 52906 printf "WARNING: The result of this configuration was not saved.\n" 52907 printf "You should run without '--no-create | -n' to create the configuration.\n" 52908 printf "\n" 52909 fi 52910 52911 52912 52913 if test -e "$OUTPUT_ROOT/config.log"; then 52914 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 52915 if test $? -eq 0; then 52916 printf "The following warnings were produced. Repeated here for convenience:\n" 52917 # We must quote sed expression (using []) to stop m4 from eating the []. 52918 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 52919 printf "\n" 52920 fi 52921 fi 52922 52923